method stringlengths 13 441k | clean_method stringlengths 7 313k | doc stringlengths 17 17.3k | comment stringlengths 3 1.42k | method_name stringlengths 1 273 | extra dict | imports list | imports_info stringlengths 19 34.8k | cluster_imports_info stringlengths 15 3.66k | libraries list | libraries_info stringlengths 6 661 | id int64 0 2.92M |
|---|---|---|---|---|---|---|---|---|---|---|---|
public void executeAll(Person person, HealthRecord record, long time, long step) {
if (this.registeredEditors.size() > 0) {
long start = time - step;
List<HealthRecord.Encounter> encountersThisStep = record.encounters.stream()
.filter(e -> e.start >= start)
.collect(Collectors.toLi... | void function(Person person, HealthRecord record, long time, long step) { if (this.registeredEditors.size() > 0) { long start = time - step; List<HealthRecord.Encounter> encountersThisStep = record.encounters.stream() .filter(e -> e.start >= start) .collect(Collectors.toList()); this.registeredEditors.forEach(m -> { if... | /**
* Runs all of the registered implementations of HealthRecordEditor. Will first check to see if
* the editor should be run by invoking... shouldRun. If it should run, will call process on
* the editor.
* <p>
* It's unlikely that this method should be called by anything outside of Generator.
* </p>
... | Runs all of the registered implementations of HealthRecordEditor. Will first check to see if the editor should be run by invoking... shouldRun. If it should run, will call process on the editor. It's unlikely that this method should be called by anything outside of Generator. | executeAll | {
"repo_name": "synthetichealth/synthea",
"path": "src/main/java/org/mitre/synthea/engine/HealthRecordEditors.java",
"license": "apache-2.0",
"size": 2233
} | [
"java.util.List",
"java.util.stream.Collectors",
"org.mitre.synthea.world.agents.Person",
"org.mitre.synthea.world.concepts.HealthRecord"
] | import java.util.List; import java.util.stream.Collectors; import org.mitre.synthea.world.agents.Person; import org.mitre.synthea.world.concepts.HealthRecord; | import java.util.*; import java.util.stream.*; import org.mitre.synthea.world.agents.*; import org.mitre.synthea.world.concepts.*; | [
"java.util",
"org.mitre.synthea"
] | java.util; org.mitre.synthea; | 2,872,546 |
EAttribute getConditionActionTransition_ApplicationConditionText(); | EAttribute getConditionActionTransition_ApplicationConditionText(); | /**
* Returns the meta object for the attribute '{@link org.tud.inf.st.mbt.ulang.guigraph.ConditionActionTransition#getApplicationConditionText <em>Application Condition Text</em>}'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @return the meta object for the attribute '<em>Application Condition Text</em... | Returns the meta object for the attribute '<code>org.tud.inf.st.mbt.ulang.guigraph.ConditionActionTransition#getApplicationConditionText Application Condition Text</code>'. | getConditionActionTransition_ApplicationConditionText | {
"repo_name": "paetti1988/qmate",
"path": "MATE/org.tud.inf.st.mbt.emf/src-gen/org/tud/inf/st/mbt/ulang/guigraph/GuigraphPackage.java",
"license": "apache-2.0",
"size": 62918
} | [
"org.eclipse.emf.ecore.EAttribute"
] | import org.eclipse.emf.ecore.EAttribute; | import org.eclipse.emf.ecore.*; | [
"org.eclipse.emf"
] | org.eclipse.emf; | 456,901 |
public ClassLoader getClassLoader() {
if (this.resourceLoader != null) {
return this.resourceLoader.getClassLoader();
}
return ClassUtils.getDefaultClassLoader();
} | ClassLoader function() { if (this.resourceLoader != null) { return this.resourceLoader.getClassLoader(); } return ClassUtils.getDefaultClassLoader(); } | /**
* Either the ClassLoader that will be used in the ApplicationContext (if
* {@link #setResourceLoader(ResourceLoader) resourceLoader} is set, or the context
* class loader (if not null), or the loader of the Spring {@link ClassUtils} class.
* @return a ClassLoader (never null)
*/ | Either the ClassLoader that will be used in the ApplicationContext (if <code>#setResourceLoader(ResourceLoader) resourceLoader</code> is set, or the context class loader (if not null), or the loader of the Spring <code>ClassUtils</code> class | getClassLoader | {
"repo_name": "vandan16/Vandan",
"path": "spring-boot/src/main/java/org/springframework/boot/SpringApplication.java",
"license": "apache-2.0",
"size": 36408
} | [
"org.springframework.util.ClassUtils"
] | import org.springframework.util.ClassUtils; | import org.springframework.util.*; | [
"org.springframework.util"
] | org.springframework.util; | 1,930,229 |
private void bottomChanged(BytesRef lastTerm, boolean init)
throws IOException {
int oldMaxEdits = maxEdits;
// true if the last term encountered is lexicographically equal or after the bottom term in the PQ
boolean termAfter = bottomTerm == null || (lastTerm != null && termComparator.compare(l... | void function(BytesRef lastTerm, boolean init) throws IOException { int oldMaxEdits = maxEdits; boolean termAfter = bottomTerm == null (lastTerm != null && termComparator.compare(lastTerm, bottomTerm) >= 0); while (maxEdits > 0 && (termAfter ? bottom >= calculateMaxBoost(maxEdits) : bottom > calculateMaxBoost(maxEdits)... | /**
* fired when the max non-competitive boost has changed. this is the hook to
* swap in a smarter actualEnum
*/ | fired when the max non-competitive boost has changed. this is the hook to swap in a smarter actualEnum | bottomChanged | {
"repo_name": "yintaoxue/read-open-source-code",
"path": "solr-4.7.2/src/org/apache/lucene/search/FuzzyTermsEnum.java",
"license": "apache-2.0",
"size": 16627
} | [
"java.io.IOException",
"org.apache.lucene.util.BytesRef"
] | import java.io.IOException; import org.apache.lucene.util.BytesRef; | import java.io.*; import org.apache.lucene.util.*; | [
"java.io",
"org.apache.lucene"
] | java.io; org.apache.lucene; | 1,399,433 |
public PubsubFuture<Void> modifyAckDeadline(final String project, final String subscription,
final int ackDeadlineSeconds, final String... ackIds) {
return modifyAckDeadline(project, subscription, ackDeadlineSeconds, asList(ackIds));
} | PubsubFuture<Void> function(final String project, final String subscription, final int ackDeadlineSeconds, final String... ackIds) { return modifyAckDeadline(project, subscription, ackDeadlineSeconds, asList(ackIds)); } | /**
* Modify the ack deadline for a list of received messages.
*
* @param project The Google Cloud project.
* @param subscription The subscription of the received message to modify the ack deadline on.
* @param ackDeadlineSeconds The new ack deadline.
* @param ackIds List ... | Modify the ack deadline for a list of received messages | modifyAckDeadline | {
"repo_name": "spotify/async-google-pubsub-client",
"path": "src/main/java/com/spotify/google/cloud/pubsub/client/Pubsub.java",
"license": "apache-2.0",
"size": 44356
} | [
"java.util.Arrays"
] | import java.util.Arrays; | import java.util.*; | [
"java.util"
] | java.util; | 2,867,472 |
@Test void testPushAggregateThroughOuterJoin3() {
final String sql = "select e.ename, d.mgr\n"
+ "from (select * from sales.emp where ename = 'A') as e\n"
+ "left outer join sales.emp as d on e.job = d.job\n"
+ "group by e.ename,d.mgr";
sql(sql)
.withPreRule(CoreRules.AGGREGATE... | @Test void testPushAggregateThroughOuterJoin3() { final String sql = STR + STR + STR + STR; sql(sql) .withPreRule(CoreRules.AGGREGATE_PROJECT_MERGE) .withRule(CoreRules.AGGREGATE_JOIN_TRANSPOSE_EXTENDED) .check(); } | /** Test case for outer join, group by on both side on non-join
* keys. */ | Test case for outer join, group by on both side on non-join | testPushAggregateThroughOuterJoin3 | {
"repo_name": "datametica/calcite",
"path": "core/src/test/java/org/apache/calcite/test/RelOptRulesTest.java",
"license": "apache-2.0",
"size": 264929
} | [
"org.apache.calcite.rel.rules.CoreRules",
"org.junit.jupiter.api.Test"
] | import org.apache.calcite.rel.rules.CoreRules; import org.junit.jupiter.api.Test; | import org.apache.calcite.rel.rules.*; import org.junit.jupiter.api.*; | [
"org.apache.calcite",
"org.junit.jupiter"
] | org.apache.calcite; org.junit.jupiter; | 166,890 |
public Version getCreationVersion() {
return indexCreatedVersion;
} | Version function() { return indexCreatedVersion; } | /**
* Return the {@link Version} on which this index has been created. This
* information is typically useful for backward compatibility.
*/ | Return the <code>Version</code> on which this index has been created. This information is typically useful for backward compatibility | getCreationVersion | {
"repo_name": "nazarewk/elasticsearch",
"path": "core/src/main/java/org/elasticsearch/cluster/metadata/IndexMetaData.java",
"license": "apache-2.0",
"size": 59653
} | [
"org.elasticsearch.Version"
] | import org.elasticsearch.Version; | import org.elasticsearch.*; | [
"org.elasticsearch"
] | org.elasticsearch; | 2,530,552 |
public void test7() {
Calendar cal = Calendar.getInstance(Locale.UK);
cal.set(Calendar.YEAR, 2004);
cal.set(Calendar.MONTH, Calendar.MARCH);
cal.set(Calendar.DAY_OF_MONTH, 29);
cal.set(Calendar.HOUR_OF_DAY, 9);
cal.set(Calendar.MINUTE, 0);
cal.set(Calendar.SEC... | void function() { Calendar cal = Calendar.getInstance(Locale.UK); cal.set(Calendar.YEAR, 2004); cal.set(Calendar.MONTH, Calendar.MARCH); cal.set(Calendar.DAY_OF_MONTH, 29); cal.set(Calendar.HOUR_OF_DAY, 9); cal.set(Calendar.MINUTE, 0); cal.set(Calendar.SECOND, 0); cal.set(Calendar.MILLISECOND, 0); Date date = cal.getTi... | /**
* Test 7 checks 9am Monday 29 March 2004 converts to a timeline value and
* back again correctly. This is during Daylight Saving.
*/ | Test 7 checks 9am Monday 29 March 2004 converts to a timeline value and back again correctly. This is during Daylight Saving | test7 | {
"repo_name": "nologic/nabs",
"path": "client/trunk/shared/libraries/jfreechart-1.0.5/tests/org/jfree/chart/axis/junit/SegmentedTimelineTests2.java",
"license": "gpl-2.0",
"size": 16013
} | [
"java.util.Calendar",
"java.util.Date",
"java.util.Locale",
"org.jfree.chart.axis.SegmentedTimeline"
] | import java.util.Calendar; import java.util.Date; import java.util.Locale; import org.jfree.chart.axis.SegmentedTimeline; | import java.util.*; import org.jfree.chart.axis.*; | [
"java.util",
"org.jfree.chart"
] | java.util; org.jfree.chart; | 2,322,048 |
T visitMultiKeyMessageHead(@NotNull DuroParser.MultiKeyMessageHeadContext ctx); | T visitMultiKeyMessageHead(@NotNull DuroParser.MultiKeyMessageHeadContext ctx); | /**
* Visit a parse tree produced by {@link DuroParser#multiKeyMessageHead}.
* @param ctx the parse tree
* @return the visitor result
*/ | Visit a parse tree produced by <code>DuroParser#multiKeyMessageHead</code> | visitMultiKeyMessageHead | {
"repo_name": "jakobehmsen/duro",
"path": "eclipse/src/duro/reflang/antlr4/DuroVisitor.java",
"license": "mit",
"size": 11411
} | [
"org.antlr.v4.runtime.misc.NotNull"
] | import org.antlr.v4.runtime.misc.NotNull; | import org.antlr.v4.runtime.misc.*; | [
"org.antlr.v4"
] | org.antlr.v4; | 1,341,094 |
protected void updateSelectedPathsFromSelectedRows() {
if (!updatingListSelectionModel) {
updatingListSelectionModel = true;
try {
if (listSelectionModel.isSelectionEmpty()) {
clearSelection();
} else {
... | void function() { if (!updatingListSelectionModel) { updatingListSelectionModel = true; try { if (listSelectionModel.isSelectionEmpty()) { clearSelection(); } else { int min = listSelectionModel.getMinSelectionIndex(); int max = listSelectionModel.getMaxSelectionIndex(); List<TreePath> paths = new ArrayList<TreePath>()... | /**
* If <code>updatingListSelectionModel</code> is false, this will
* reset the selected paths from the selected rows in the list
* selection model.
*/ | If <code>updatingListSelectionModel</code> is false, this will reset the selected paths from the selected rows in the list selection model | updateSelectedPathsFromSelectedRows | {
"repo_name": "syncer/swingx",
"path": "swingx-core/src/main/java/org/jdesktop/swingx/JXTreeTable.java",
"license": "lgpl-2.1",
"size": 132592
} | [
"java.util.ArrayList",
"java.util.List",
"javax.swing.tree.TreePath"
] | import java.util.ArrayList; import java.util.List; import javax.swing.tree.TreePath; | import java.util.*; import javax.swing.tree.*; | [
"java.util",
"javax.swing"
] | java.util; javax.swing; | 2,617,245 |
@Nonnull
public java.util.concurrent.CompletableFuture<BaseItemVersion> deleteAsync() {
return sendAsync(HttpMethod.DELETE, null);
} | java.util.concurrent.CompletableFuture<BaseItemVersion> function() { return sendAsync(HttpMethod.DELETE, null); } | /**
* Delete this item from the service
*
* @return a future with the deletion result
*/ | Delete this item from the service | deleteAsync | {
"repo_name": "microsoftgraph/msgraph-sdk-java",
"path": "src/main/java/com/microsoft/graph/requests/BaseItemVersionRequest.java",
"license": "mit",
"size": 6583
} | [
"com.microsoft.graph.http.HttpMethod",
"com.microsoft.graph.models.BaseItemVersion"
] | import com.microsoft.graph.http.HttpMethod; import com.microsoft.graph.models.BaseItemVersion; | import com.microsoft.graph.http.*; import com.microsoft.graph.models.*; | [
"com.microsoft.graph"
] | com.microsoft.graph; | 1,987,341 |
private void doTransition(DataNode datanode,
NamespaceInfo nsInfo, StartupOption startOpt) throws IOException {
if (startOpt == StartupOption.ROLLBACK)
doRollback(nsInfo); // rollback if applicable
int numOfDirs = getNumStorageDirs();
List<StorageDirectory> dirsToUpgrade = new ArrayList<S... | void function(DataNode datanode, NamespaceInfo nsInfo, StartupOption startOpt) throws IOException { if (startOpt == StartupOption.ROLLBACK) doRollback(nsInfo); int numOfDirs = getNumStorageDirs(); List<StorageDirectory> dirsToUpgrade = new ArrayList<StorageDirectory>(numOfDirs); List<StorageInfo> dirsInfo = new ArrayLi... | /**
* Analyze whether a transition of the NS state is required and
* perform it if necessary.
* <br>
* Rollback if previousLV == LAYOUT_VERSION && prevCTime <= namenode.cTime.
* Upgrade if this.LV == LAYOUT_VERSION || this.cTime < namenode.cTime Regular
* startup if this.LV = LAYOUT_VERSION && this.cT... | Analyze whether a transition of the NS state is required and perform it if necessary. Rollback if previousLV == LAYOUT_VERSION && prevCTime <= namenode.cTime. Upgrade if this.LV == LAYOUT_VERSION || this.cTime < namenode.cTime Regular startup if this.LV = LAYOUT_VERSION && this.cTime = namenode.cTime | doTransition | {
"repo_name": "rvadali/fb-raid-refactoring",
"path": "src/hdfs/org/apache/hadoop/hdfs/server/datanode/NameSpaceSliceStorage.java",
"license": "apache-2.0",
"size": 17695
} | [
"java.io.IOException",
"java.util.ArrayList",
"java.util.List",
"org.apache.hadoop.hdfs.protocol.FSConstants",
"org.apache.hadoop.hdfs.server.common.HdfsConstants",
"org.apache.hadoop.hdfs.server.common.Storage",
"org.apache.hadoop.hdfs.server.common.StorageInfo",
"org.apache.hadoop.hdfs.server.protoc... | import java.io.IOException; import java.util.ArrayList; import java.util.List; import org.apache.hadoop.hdfs.protocol.FSConstants; import org.apache.hadoop.hdfs.server.common.HdfsConstants; import org.apache.hadoop.hdfs.server.common.Storage; import org.apache.hadoop.hdfs.server.common.StorageInfo; import org.apache.ha... | import java.io.*; import java.util.*; import org.apache.hadoop.hdfs.protocol.*; import org.apache.hadoop.hdfs.server.common.*; import org.apache.hadoop.hdfs.server.protocol.*; | [
"java.io",
"java.util",
"org.apache.hadoop"
] | java.io; java.util; org.apache.hadoop; | 979,111 |
public List<DccdUser> getActiveNormalUsers() throws UserServiceException
{
List<DccdUser> users = null;
try
{
users = getUserRepo().getActiveNormalUsers();
}
catch (final RepositoryException e)
{
logger.debug("Could not retrieve users: ", e);
throw new UserServiceException("Could not retrieve u... | List<DccdUser> function() throws UserServiceException { List<DccdUser> users = null; try { users = getUserRepo().getActiveNormalUsers(); } catch (final RepositoryException e) { logger.debug(STR, e); throw new UserServiceException(STR, e); } return users; } | /** Activated non-Admin users, instead of just all users
*
* @return
* @throws UserServiceException
*/ | Activated non-Admin users, instead of just all users | getActiveNormalUsers | {
"repo_name": "PaulBoon/dccd-lib",
"path": "src/main/java/nl/knaw/dans/dccd/application/services/DccdUserService.java",
"license": "apache-2.0",
"size": 22570
} | [
"java.util.List",
"nl.knaw.dans.common.lang.RepositoryException",
"nl.knaw.dans.dccd.model.DccdUser"
] | import java.util.List; import nl.knaw.dans.common.lang.RepositoryException; import nl.knaw.dans.dccd.model.DccdUser; | import java.util.*; import nl.knaw.dans.common.lang.*; import nl.knaw.dans.dccd.model.*; | [
"java.util",
"nl.knaw.dans"
] | java.util; nl.knaw.dans; | 634,607 |
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
SyncPoller<PollResult<VirtualMachineScaleSetVMExtensionInner>, VirtualMachineScaleSetVMExtensionInner>
beginCreateOrUpdate(
String resourceGroupName,
String vmScaleSetName,
String instanceId,
Stri... | @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) SyncPoller<PollResult<VirtualMachineScaleSetVMExtensionInner>, VirtualMachineScaleSetVMExtensionInner> beginCreateOrUpdate( String resourceGroupName, String vmScaleSetName, String instanceId, String vmExtensionName, VirtualMachineScaleSetVMExtensionInner exten... | /**
* The operation to create or update the VMSS VM extension.
*
* @param resourceGroupName The name of the resource group.
* @param vmScaleSetName The name of the VM scale set.
* @param instanceId The instance ID of the virtual machine.
* @param vmExtensionName The name of the virtual mac... | The operation to create or update the VMSS VM extension | beginCreateOrUpdate | {
"repo_name": "Azure/azure-sdk-for-java",
"path": "sdk/resourcemanager/azure-resourcemanager-compute/src/main/java/com/azure/resourcemanager/compute/fluent/VirtualMachineScaleSetVMExtensionsClient.java",
"license": "mit",
"size": 34243
} | [
"com.azure.core.annotation.ReturnType",
"com.azure.core.annotation.ServiceMethod",
"com.azure.core.management.polling.PollResult",
"com.azure.core.util.polling.SyncPoller",
"com.azure.resourcemanager.compute.fluent.models.VirtualMachineScaleSetVMExtensionInner"
] | import com.azure.core.annotation.ReturnType; import com.azure.core.annotation.ServiceMethod; import com.azure.core.management.polling.PollResult; import com.azure.core.util.polling.SyncPoller; import com.azure.resourcemanager.compute.fluent.models.VirtualMachineScaleSetVMExtensionInner; | import com.azure.core.annotation.*; import com.azure.core.management.polling.*; import com.azure.core.util.polling.*; import com.azure.resourcemanager.compute.fluent.models.*; | [
"com.azure.core",
"com.azure.resourcemanager"
] | com.azure.core; com.azure.resourcemanager; | 1,633,005 |
public String format(Calendar calendar, String format) {
char[] formatChars = format.toCharArray();
int fmtc_len = formatChars.length;
StringBuilder result = new StringBuilder(fmtc_len);
int i = 0;
while (i < fmtc_len) {
if (formatChars[i] == escapeChar) { // quote founded
int end = i + 1;
whil... | String function(Calendar calendar, String format) { char[] formatChars = format.toCharArray(); int fmtc_len = formatChars.length; StringBuilder result = new StringBuilder(fmtc_len); int i = 0; while (i < fmtc_len) { if (formatChars[i] == escapeChar) { int end = i + 1; while (end < fmtc_len) { if (formatChars[end] == es... | /**
* Converts date time to a string using specified format.
*
* @param date
* date time to read from
* @param format
* pattern string format defined.
* @return formatted string with date time information
*/ | Converts date time to a string using specified format | format | {
"repo_name": "legend0702/zhq",
"path": "zhq-core/src/main/java/cn/zhuhongqing/utils/date/DateFormat.java",
"license": "apache-2.0",
"size": 6894
} | [
"java.util.Calendar"
] | import java.util.Calendar; | import java.util.*; | [
"java.util"
] | java.util; | 1,685,110 |
void translateToParent(Translatable t);
| void translateToParent(Translatable t); | /**
* Translates a Translatable from this IFigure's coordinates to its parent's
* coordinates.
*
* @param t
* The object to translate
*/ | Translates a Translatable from this IFigure's coordinates to its parent's coordinates | translateToParent | {
"repo_name": "opensagres/xdocreport.eclipse",
"path": "rap/org.eclipse.draw2d/src/org/eclipse/draw2d/IFigure.java",
"license": "lgpl-2.1",
"size": 31295
} | [
"org.eclipse.draw2d.geometry.Translatable"
] | import org.eclipse.draw2d.geometry.Translatable; | import org.eclipse.draw2d.geometry.*; | [
"org.eclipse.draw2d"
] | org.eclipse.draw2d; | 1,273,765 |
public void clearMatrix() {
EngineArray.fill(this.hopfield.getWeights(),0);
} | void function() { EngineArray.fill(this.hopfield.getWeights(),0); } | /**
* Clear the weight matrix.
*/ | Clear the weight matrix | clearMatrix | {
"repo_name": "automenta/java_dann",
"path": "example/example/neural/gui/hopfield/HopfieldPanel.java",
"license": "agpl-3.0",
"size": 4061
} | [
"org.encog.util.EngineArray"
] | import org.encog.util.EngineArray; | import org.encog.util.*; | [
"org.encog.util"
] | org.encog.util; | 1,115,258 |
private void proposeSetterDelegate(IJavaProject project, IMethod method,
int invocationOffset, int indentationUnits, boolean isStatic,
List<ICompletionProposal> proposals, int numCharsFilled,
int numCharsToOverwrite) throws JavaModelException {
String[] parameterNames = method.getParameterNames... | void function(IJavaProject project, IMethod method, int invocationOffset, int indentationUnits, boolean isStatic, List<ICompletionProposal> proposals, int numCharsFilled, int numCharsToOverwrite) throws JavaModelException { String[] parameterNames = method.getParameterNames(); String expression = createJsMethodInvocati... | /**
* Proposes a setter that is assumed to delegate to a method with the same
* name as the java method.
*/ | Proposes a setter that is assumed to delegate to a method with the same name as the java method | proposeSetterDelegate | {
"repo_name": "boa0332/google-plugin-for-eclipse",
"path": "plugins/com.google.gwt.eclipse.core/src/com/google/gwt/eclipse/core/editors/java/JsniMethodBodyCompletionProposalComputer.java",
"license": "epl-1.0",
"size": 26143
} | [
"java.util.List",
"org.eclipse.jdt.core.IJavaProject",
"org.eclipse.jdt.core.IMethod",
"org.eclipse.jdt.core.JavaModelException",
"org.eclipse.jface.text.contentassist.ICompletionProposal"
] | import java.util.List; import org.eclipse.jdt.core.IJavaProject; import org.eclipse.jdt.core.IMethod; import org.eclipse.jdt.core.JavaModelException; import org.eclipse.jface.text.contentassist.ICompletionProposal; | import java.util.*; import org.eclipse.jdt.core.*; import org.eclipse.jface.text.contentassist.*; | [
"java.util",
"org.eclipse.jdt",
"org.eclipse.jface"
] | java.util; org.eclipse.jdt; org.eclipse.jface; | 1,192,669 |
Future<VoltCacheProcBase.Result> asyncSet(String key, int flags, int exptime, byte[] data); | Future<VoltCacheProcBase.Result> asyncSet(String key, int flags, int exptime, byte[] data); | /**
* Asynchronously Adds or Replaces a cache item.
* @param key Key of the cache item to set.
* @param flags Custom flags to save along with the cache item.
* @param exptime Expiration time for the item (number of second, up to 30 days), or UNIX time in seconds - use <= 0 for no expiration.
* ... | Asynchronously Adds or Replaces a cache item | asyncSet | {
"repo_name": "vtorshyn/voltdb-shardit-src",
"path": "voltdb-3.7/examples/voltcache/src/voltcache/api/IVoltCache.java",
"license": "apache-2.0",
"size": 12838
} | [
"java.util.concurrent.Future"
] | import java.util.concurrent.Future; | import java.util.concurrent.*; | [
"java.util"
] | java.util; | 1,283,904 |
notNull("suffix", suffix);
if (suffix.startsWith(".") || suffix.endsWith(".")) {
throw new IllegalArgumentException("The suffix can not start or end with a '.'");
}
String name = PREFIX + "." + suffix;
if (USE_SLF4J) {
return new SLF4JLogger(name);
}
... | notNull(STR, suffix); if (suffix.startsWith(".") suffix.endsWith(".")) { throw new IllegalArgumentException(STR); } String name = PREFIX + "." + suffix; if (USE_SLF4J) { return new SLF4JLogger(name); } else { return new JULLogger(name); } } private Loggers() { } | /**
* Gets a logger with the given suffix appended on to {@code PREFIX}, separated by a '.'.
*
* @param suffix
* the suffix for the logger
* @return the logger
* @see Loggers#PREFIX
*/ | Gets a logger with the given suffix appended on to PREFIX, separated by a '.' | getLogger | {
"repo_name": "dbuschman7/mongoFS",
"path": "src/main/java/org/mongodb/diagnostics/Loggers.java",
"license": "apache-2.0",
"size": 2234
} | [
"org.mongodb.diagnostics.logging.JULLogger",
"org.mongodb.diagnostics.logging.SLF4JLogger"
] | import org.mongodb.diagnostics.logging.JULLogger; import org.mongodb.diagnostics.logging.SLF4JLogger; | import org.mongodb.diagnostics.logging.*; | [
"org.mongodb.diagnostics"
] | org.mongodb.diagnostics; | 2,257,246 |
public Builder addDnsServer(String address) {
return addDnsServer(InetAddress.parseNumericAddress(address));
} | Builder function(String address) { return addDnsServer(InetAddress.parseNumericAddress(address)); } | /**
* Convenience method to add a DNS server to the VPN connection
* using a numeric address string. See {@link InetAddress} for the
* definitions of numeric address formats.
*
* Adding a server implicitly allows traffic from that address family
* (i.e., IPv4 or IPv... | Convenience method to add a DNS server to the VPN connection using a numeric address string. See <code>InetAddress</code> for the definitions of numeric address formats. Adding a server implicitly allows traffic from that address family (i.e., IPv4 or IPv6) to be routed over the VPN. @see #allowFamily | addDnsServer | {
"repo_name": "xorware/android_frameworks_base",
"path": "core/java/android/net/VpnService.java",
"license": "apache-2.0",
"size": 33757
} | [
"java.net.InetAddress"
] | import java.net.InetAddress; | import java.net.*; | [
"java.net"
] | java.net; | 2,454,165 |
@Override
public SampleResult sample(Entry entry) {
Arguments args = getArguments();
args.addArgument(TestElement.NAME, getName()); // Allow Sampler access
// to test element name
context = new JavaSamplerContext(args);
... | SampleResult function(Entry entry) { Arguments args = getArguments(); args.addArgument(TestElement.NAME, getName()); context = new JavaSamplerContext(args); if (javaClient == null) { if (log.isDebugEnabled()) { log.debug(STR, whoAmI()); } javaClient = createJavaClient(); javaClient.setupTest(context); } SampleResult re... | /**
* Performs a test sample.
*
* The <code>sample()</code> method retrieves the reference to the Java
* client and calls its <code>runTest()</code> method.
*
* @see JavaSamplerClient#runTest(JavaSamplerContext)
*
* @param entry
* the Entry for this sample
* ... | Performs a test sample. The <code>sample()</code> method retrieves the reference to the Java client and calls its <code>runTest()</code> method | sample | {
"repo_name": "ubikloadpack/jmeter",
"path": "src/protocol/java/org/apache/jmeter/protocol/java/sampler/JavaSampler.java",
"license": "apache-2.0",
"size": 12241
} | [
"org.apache.jmeter.config.Arguments",
"org.apache.jmeter.samplers.Entry",
"org.apache.jmeter.samplers.SampleResult",
"org.apache.jmeter.testelement.TestElement"
] | import org.apache.jmeter.config.Arguments; import org.apache.jmeter.samplers.Entry; import org.apache.jmeter.samplers.SampleResult; import org.apache.jmeter.testelement.TestElement; | import org.apache.jmeter.config.*; import org.apache.jmeter.samplers.*; import org.apache.jmeter.testelement.*; | [
"org.apache.jmeter"
] | org.apache.jmeter; | 1,293,706 |
private Object readResolve() throws ObjectStreamException {
try {
return of(eraValue);
} catch (DateTimeException e) {
InvalidObjectException ex = new InvalidObjectException("Invalid era");
ex.initCause(e);
throw ex;
}
}
//------------... | Object function() throws ObjectStreamException { try { return of(eraValue); } catch (DateTimeException e) { InvalidObjectException ex = new InvalidObjectException(STR); ex.initCause(e); throw ex; } } /** * Returns the Sun private Era instance corresponding to this {@code JapaneseEra}. * SEIREKI doesn't have its corresp... | /**
* Returns the singleton {@code JapaneseEra} corresponding to this object.
* It's possible that this version of {@code JapaneseEra} doesn't support the latest era value.
* In that case, this method throws an {@code ObjectStreamException}.
*
* @return the singleton {@code JapaneseEra} for thi... | Returns the singleton JapaneseEra corresponding to this object. It's possible that this version of JapaneseEra doesn't support the latest era value. In that case, this method throws an ObjectStreamException | readResolve | {
"repo_name": "jnehlmeier/threetenbp",
"path": "src/main/java/org/threeten/bp/chrono/JapaneseEra.java",
"license": "bsd-3-clause",
"size": 12528
} | [
"java.io.InvalidObjectException",
"java.io.ObjectStreamException",
"org.threeten.bp.DateTimeException"
] | import java.io.InvalidObjectException; import java.io.ObjectStreamException; import org.threeten.bp.DateTimeException; | import java.io.*; import org.threeten.bp.*; | [
"java.io",
"org.threeten.bp"
] | java.io; org.threeten.bp; | 497,472 |
@Deprecated
public void appendCOSName(COSName name) throws IOException
{
name.writePDF(output);
} | void function(COSName name) throws IOException { name.writePDF(output); } | /**
* This will append a {@link COSName} to the content stream.
*
* @param name the name
* @throws IOException If an error occurs while writing to the stream.
* @deprecated This method will be removed in a future release.
*/ | This will append a <code>COSName</code> to the content stream | appendCOSName | {
"repo_name": "mdamt/pdfbox",
"path": "pdfbox/src/main/java/org/apache/pdfbox/pdmodel/PDPageContentStream.java",
"license": "apache-2.0",
"size": 73880
} | [
"java.io.IOException",
"org.apache.pdfbox.cos.COSName"
] | import java.io.IOException; import org.apache.pdfbox.cos.COSName; | import java.io.*; import org.apache.pdfbox.cos.*; | [
"java.io",
"org.apache.pdfbox"
] | java.io; org.apache.pdfbox; | 97,457 |
LogFilePropertiesDTO[] listLogFileAttributes(String aJob); | LogFilePropertiesDTO[] listLogFileAttributes(String aJob); | /**
* List all the the log files currently available for the specified job.
* @param aJob the job to return the list of files for
* @return the array of 'log file objects'
*/ | List all the the log files currently available for the specified job | listLogFileAttributes | {
"repo_name": "DIA-NZ/webcurator",
"path": "wct-core/src/main/java/org/webcurator/core/reader/LogReader.java",
"license": "apache-2.0",
"size": 6435
} | [
"org.webcurator.domain.model.core.LogFilePropertiesDTO"
] | import org.webcurator.domain.model.core.LogFilePropertiesDTO; | import org.webcurator.domain.model.core.*; | [
"org.webcurator.domain"
] | org.webcurator.domain; | 1,602,564 |
void iccIO (int command, int fileid, String path, int p1, int p2, int p3,
String data, String pin2, Message response); | void iccIO (int command, int fileid, String path, int p1, int p2, int p3, String data, String pin2, Message response); | /**
* parameters equivalent to 27.007 AT+CRSM command
* response.obj will be an AsyncResult
* response.obj.result will be an IccIoResult on success
*/ | parameters equivalent to 27.007 AT+CRSM command response.obj will be an AsyncResult response.obj.result will be an IccIoResult on success | iccIO | {
"repo_name": "indashnet/InDashNet.Open.UN2000",
"path": "android/frameworks/opt/telephony/src/java/com/android/internal/telephony/CommandsInterface.java",
"license": "apache-2.0",
"size": 60442
} | [
"android.os.Message"
] | import android.os.Message; | import android.os.*; | [
"android.os"
] | android.os; | 1,621,225 |
public static StructrOAuthClient getServer(final String name) {
final String configuredOauthServers = Settings.OAuthServers.getValue();
final String[] authServers = configuredOauthServers.split(" ");
for (String authServer : authServers) {
if (authServer.equals(name)) {
final String authLoc... | static StructrOAuthClient function(final String name) { final String configuredOauthServers = Settings.OAuthServers.getValue(); final String[] authServers = configuredOauthServers.split(" "); for (String authServer : authServers) { if (authServer.equals(name)) { final String authLocation = Settings.getOrCreateStringSet... | /**
* Build an OAuth2 server from the configured values for the given name.
*
* @param name
* @return server
*/ | Build an OAuth2 server from the configured values for the given name | getServer | {
"repo_name": "structr/structr",
"path": "structr-ui/src/main/java/org/structr/web/auth/StructrOAuthClient.java",
"license": "gpl-3.0",
"size": 15323
} | [
"org.apache.oltu.oauth2.common.OAuth",
"org.structr.api.config.Settings"
] | import org.apache.oltu.oauth2.common.OAuth; import org.structr.api.config.Settings; | import org.apache.oltu.oauth2.common.*; import org.structr.api.config.*; | [
"org.apache.oltu",
"org.structr.api"
] | org.apache.oltu; org.structr.api; | 398,091 |
protected JvmRTClassPathEntryMeta createJvmRTClassPathEntryMetaNode(String snmpEntryName, String tableName, SnmpMib mib, MBeanServer server) {
return new JvmRTClassPathEntryMeta(mib, objectserver);
}
// ------------------------------------------------------------
//
// Implements the "cre... | JvmRTClassPathEntryMeta function(String snmpEntryName, String tableName, SnmpMib mib, MBeanServer server) { return new JvmRTClassPathEntryMeta(mib, objectserver); } | /**
* Factory method for "JvmRTClassPathEntry" entry metadata class.
*
* You can redefine this method if you need to replace the default
* generated metadata class with your own customized class.
*
* @param snmpEntryName Name of the SNMP Entry object (conceptual row) ("JvmRTClassPathEntry"... | Factory method for "JvmRTClassPathEntry" entry metadata class. You can redefine this method if you need to replace the default generated metadata class with your own customized class | createJvmRTClassPathEntryMetaNode | {
"repo_name": "rokn/Count_Words_2015",
"path": "testing/openjdk2/jdk/src/share/classes/sun/management/snmp/jvmmib/JvmRTClassPathTableMeta.java",
"license": "mit",
"size": 9571
} | [
"com.sun.jmx.snmp.agent.SnmpMib",
"javax.management.MBeanServer"
] | import com.sun.jmx.snmp.agent.SnmpMib; import javax.management.MBeanServer; | import com.sun.jmx.snmp.agent.*; import javax.management.*; | [
"com.sun.jmx",
"javax.management"
] | com.sun.jmx; javax.management; | 2,014,186 |
public Hashtable getDocEntryFormServiceTypeTable()
{
return docEntryFromServiceTypeTable;
} | Hashtable function() { return docEntryFromServiceTypeTable; } | /**
* Retrieves the upnpDocEntryTable.
*
* @return The upnpDocEntryTable
*/ | Retrieves the upnpDocEntryTable | getDocEntryFormServiceTypeTable | {
"repo_name": "fraunhoferfokus/fokus-upnp",
"path": "upnp-core/src/main/java/de/fraunhofer/fokus/upnp/core/UPnPDocParser.java",
"license": "gpl-3.0",
"size": 5855
} | [
"java.util.Hashtable"
] | import java.util.Hashtable; | import java.util.*; | [
"java.util"
] | java.util; | 1,284,364 |
public void onSelectedResultsChanged() {
RssItemListAdapter adapter = (RssItemListAdapter) getListAdapter();
if (adapter.getSelected().size() == 0) {
// Hide the 'add selected' button
addSelected.setVisibility(View.GONE);
} else {
addSelected.setVisibility(View.VISIBLE);
}
}
| void function() { RssItemListAdapter adapter = (RssItemListAdapter) getListAdapter(); if (adapter.getSelected().size() == 0) { addSelected.setVisibility(View.GONE); } else { addSelected.setVisibility(View.VISIBLE); } } | /**
* Called by the SelectableArrayAdapter when the set of selected items changed
*/ | Called by the SelectableArrayAdapter when the set of selected items changed | onSelectedResultsChanged | {
"repo_name": "koying/transdroid",
"path": "android/src/org/transdroid/gui/rss/RssListingFragment.java",
"license": "gpl-3.0",
"size": 20782
} | [
"android.view.View"
] | import android.view.View; | import android.view.*; | [
"android.view"
] | android.view; | 175,624 |
boolean onExchangeFailed(Exchange exchange); | boolean onExchangeFailed(Exchange exchange); | /**
* Callback for {@link Exchange} lifecycle
*
* @param exchange the exchange
* @return <tt>true</tt> to allow continue evaluating, <tt>false</tt> to stop immediately
*/ | Callback for <code>Exchange</code> lifecycle | onExchangeFailed | {
"repo_name": "kevinearls/camel",
"path": "camel-core/src/main/java/org/apache/camel/builder/NotifyBuilder.java",
"license": "apache-2.0",
"size": 54739
} | [
"org.apache.camel.Exchange"
] | import org.apache.camel.Exchange; | import org.apache.camel.*; | [
"org.apache.camel"
] | org.apache.camel; | 2,839,010 |
public static void initialize(String[] args)
{
if (args.length <= 0)
return;
for (int i = 0; i < args.length; ++i)
{
System.out.println(args[i]);
switch (args[i])
{
case Constants.PARAM_VERBOSE:
case Constan... | static void function(String[] args) { if (args.length <= 0) return; for (int i = 0; i < args.length; ++i) { System.out.println(args[i]); switch (args[i]) { case Constants.PARAM_VERBOSE: case Constants.PARAM_VERBOSE_L: _verbose = true; break; case Constants.PARAM_PROJECT: if (args.length > i) _projectName = args[i + 1];... | /**
* Initialize the static configuration<br>
* Sets all values according to what was given by the CL arguments
*
* @param args The command line args
* @return
*/ | Initialize the static configuration Sets all values according to what was given by the CL arguments | initialize | {
"repo_name": "1fechner/FeatureExtractor",
"path": "sources/FeatureExtractor/src/de/uni/hamburg/swk/extractor/configuration/Configuration.java",
"license": "lgpl-2.1",
"size": 3810
} | [
"de.uni.hamburg.swk.extractor.utils.Constants"
] | import de.uni.hamburg.swk.extractor.utils.Constants; | import de.uni.hamburg.swk.extractor.utils.*; | [
"de.uni.hamburg"
] | de.uni.hamburg; | 2,871,968 |
void enqueue(final long seqno, final boolean lastPacketInBlock,
final long offsetInBlock, final Status ackStatus) {
final Packet p = new Packet(seqno, lastPacketInBlock, offsetInBlock,
System.nanoTime(), ackStatus);
LOG.debug("{}: enqueue {}", this, p);
synchronized (ackQueue) {
... | void enqueue(final long seqno, final boolean lastPacketInBlock, final long offsetInBlock, final Status ackStatus) { final Packet p = new Packet(seqno, lastPacketInBlock, offsetInBlock, System.nanoTime(), ackStatus); LOG.debug(STR, this, p); synchronized (ackQueue) { if (running) { ackQueue.add(p); ackQueue.notifyAll();... | /**
* enqueue the seqno that is still be to acked by the downstream datanode.
* @param seqno sequence number of the packet
* @param lastPacketInBlock if true, this is the last packet in block
* @param offsetInBlock offset of this packet in block
*/ | enqueue the seqno that is still be to acked by the downstream datanode | enqueue | {
"repo_name": "mapr/hadoop-common",
"path": "hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/server/datanode/BlockReceiver.java",
"license": "apache-2.0",
"size": 68361
} | [
"org.apache.hadoop.hdfs.protocol.proto.DataTransferProtos"
] | import org.apache.hadoop.hdfs.protocol.proto.DataTransferProtos; | import org.apache.hadoop.hdfs.protocol.proto.*; | [
"org.apache.hadoop"
] | org.apache.hadoop; | 1,517,756 |
@Override
public final void invoke(Request request, Response response)
throws IOException, ServletException {
// Select the Context to be used for this Request
Context context = request.getContext();
if (context == null) {
response.sendError
(HttpServ... | final void function(Request request, Response response) throws IOException, ServletException { Context context = request.getContext(); if (context == null) { response.sendError (HttpServletResponse.SC_INTERNAL_SERVER_ERROR, sm.getString(STR)); return; } if( context.getLoader() != null ) { if (Globals.IS_SECURITY_ENABLE... | /**
* Select the appropriate child Context to process this request,
* based on the specified request URI. If no matching Context can
* be found, return an appropriate HTTP error.
*
* @param request Request to be processed
* @param response Response to be produced
*
* @exception ... | Select the appropriate child Context to process this request, based on the specified request URI. If no matching Context can be found, return an appropriate HTTP error | invoke | {
"repo_name": "plumer/codana",
"path": "tomcat_files/7.0.0/StandardHostValve.java",
"license": "mit",
"size": 17445
} | [
"java.io.IOException",
"java.security.AccessController",
"java.security.PrivilegedAction",
"javax.servlet.ServletException",
"javax.servlet.http.HttpServletResponse",
"org.apache.catalina.Context",
"org.apache.catalina.Globals",
"org.apache.catalina.connector.Request",
"org.apache.catalina.connector... | import java.io.IOException; import java.security.AccessController; import java.security.PrivilegedAction; import javax.servlet.ServletException; import javax.servlet.http.HttpServletResponse; import org.apache.catalina.Context; import org.apache.catalina.Globals; import org.apache.catalina.connector.Request; import org... | import java.io.*; import java.security.*; import javax.servlet.*; import javax.servlet.http.*; import org.apache.catalina.*; import org.apache.catalina.connector.*; | [
"java.io",
"java.security",
"javax.servlet",
"org.apache.catalina"
] | java.io; java.security; javax.servlet; org.apache.catalina; | 2,035,966 |
public KualiInteger getPersistedAccountLineAnnualBalanceAmount() {
return persistedAccountLineAnnualBalanceAmount;
} | KualiInteger function() { return persistedAccountLineAnnualBalanceAmount; } | /**
* Gets the persistedAccountLineAnnualBalanceAmount attribute.
*
* @return Returns the persistedAccountLineAnnualBalanceAmount.
*/ | Gets the persistedAccountLineAnnualBalanceAmount attribute | getPersistedAccountLineAnnualBalanceAmount | {
"repo_name": "Ariah-Group/Finance",
"path": "af_webapp/src/main/java/org/kuali/kfs/module/bc/businessobject/PendingBudgetConstructionGeneralLedger.java",
"license": "apache-2.0",
"size": 20722
} | [
"org.kuali.rice.core.api.util.type.KualiInteger"
] | import org.kuali.rice.core.api.util.type.KualiInteger; | import org.kuali.rice.core.api.util.type.*; | [
"org.kuali.rice"
] | org.kuali.rice; | 372,834 |
private static IFilledList<IResultsPanel> getPanels(
final CGraphModel model, final CDebugPerspectiveModel debugPerspectiveModel) {
final IFilledList<IResultsPanel> debugPanels = new FilledList<IResultsPanel>();
debugPanels.add(new CCombinedMemoryPanel(model.getParent(), debugPerspectiveModel));
de... | static IFilledList<IResultsPanel> function( final CGraphModel model, final CDebugPerspectiveModel debugPerspectiveModel) { final IFilledList<IResultsPanel> debugPanels = new FilledList<IResultsPanel>(); debugPanels.add(new CCombinedMemoryPanel(model.getParent(), debugPerspectiveModel)); debugPanels.add(new CModulesPane... | /**
* Creates the panels that are shown in the panel.
*
* @param model Provides the data needed by the components in the panel.
* @param debugPerspectiveModel Describes the debug perspective.
*
* @return The created panels.
*/ | Creates the panels that are shown in the panel | getPanels | {
"repo_name": "AmesianX/binnavi",
"path": "src/main/java/com/google/security/zynamics/binnavi/Gui/GraphWindows/Panels/Bottom/Debug/CDebugBottomPanel.java",
"license": "apache-2.0",
"size": 4338
} | [
"com.google.security.zynamics.binnavi.Gui",
"com.google.security.zynamics.zylib.types.lists.FilledList",
"com.google.security.zynamics.zylib.types.lists.IFilledList"
] | import com.google.security.zynamics.binnavi.Gui; import com.google.security.zynamics.zylib.types.lists.FilledList; import com.google.security.zynamics.zylib.types.lists.IFilledList; | import com.google.security.zynamics.binnavi.*; import com.google.security.zynamics.zylib.types.lists.*; | [
"com.google.security"
] | com.google.security; | 2,029,690 |
public void generateResponse(HttpServletRequest request,
HttpServletResponse response) throws IOException {
if (true) { // try {
String language = "en";
String view = BasePage.getInputField(request, "view" , "index");
String function = BasePage.getInput... | void function(HttpServletRequest request, HttpServletResponse response) throws IOException { if (true) { String language = "en"; String view = BasePage.getInputField(request, "viewSTRindex"); String function = BasePage.getInputField(request, STR, "iban" ); String parm1 = BasePage.getInputField(request, "parm1" , STRpar... | /** Creates the response for a HTTP GET or POST request.
* @param request fields from the client input form
* @param response data to be sent back the user's browser
* @throws IOException for IO errors
*/ | Creates the response for a HTTP GET or POST request | generateResponse | {
"repo_name": "gfis/checkdig",
"path": "src/main/java/org/teherba/checkdig/web/CheckdigServlet.java",
"license": "apache-2.0",
"size": 6074
} | [
"java.io.IOException",
"javax.servlet.http.HttpServletRequest",
"javax.servlet.http.HttpServletResponse",
"org.teherba.common.web.BasePage"
] | import java.io.IOException; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse; import org.teherba.common.web.BasePage; | import java.io.*; import javax.servlet.http.*; import org.teherba.common.web.*; | [
"java.io",
"javax.servlet",
"org.teherba.common"
] | java.io; javax.servlet; org.teherba.common; | 615,556 |
public boolean saveChunks(boolean p_73151_1_, IProgressUpdate p_73151_2_)
{
return true;
}
public void saveExtraData() {} | boolean function(boolean p_73151_1_, IProgressUpdate p_73151_2_) { return true; } public void saveExtraData() {} | /**
* Two modes of operation: if passed true, save all Chunks in one go. If passed false, save up to two chunks.
* Return true if all chunks have been saved.
*/ | Two modes of operation: if passed true, save all Chunks in one go. If passed false, save up to two chunks. Return true if all chunks have been saved | saveChunks | {
"repo_name": "mviitanen/marsmod",
"path": "mcp/src/minecraft_server/net/minecraft/world/gen/ChunkProviderGenerate.java",
"license": "gpl-2.0",
"size": 20744
} | [
"net.minecraft.util.IProgressUpdate"
] | import net.minecraft.util.IProgressUpdate; | import net.minecraft.util.*; | [
"net.minecraft.util"
] | net.minecraft.util; | 1,958,221 |
@SuppressLint("NewApi") public static ProgressDialog show(final Context context, final boolean cancelable, final DialogInterface.OnCancelListener cancelListener) {
final ProgressDialog dialog = ProgressDialog.show(context, null, null, true, cancelable, cancelListener);
final ProgressBar view = new ProgressBar(co... | @SuppressLint(STR) static ProgressDialog function(final Context context, final boolean cancelable, final DialogInterface.OnCancelListener cancelListener) { final ProgressDialog dialog = ProgressDialog.show(context, null, null, true, cancelable, cancelListener); final ProgressBar view = new ProgressBar(context); if (MAT... | /** Creates and shows a progress dialog with no borders, frame nor text over the default semi-transparent dialogs' background.
* @return ProgressDialog The new dialog instance */ | Creates and shows a progress dialog with no borders, frame nor text over the default semi-transparent dialogs' background | show | {
"repo_name": "lorenzos/AndroidUtilClasses",
"path": "com/lorenzostanco/utils/ProgressOverlay.java",
"license": "mit",
"size": 2091
} | [
"android.annotation.SuppressLint",
"android.app.ProgressDialog",
"android.content.Context",
"android.content.DialogInterface",
"android.content.res.ColorStateList",
"android.os.Build",
"android.widget.ProgressBar"
] | import android.annotation.SuppressLint; import android.app.ProgressDialog; import android.content.Context; import android.content.DialogInterface; import android.content.res.ColorStateList; import android.os.Build; import android.widget.ProgressBar; | import android.annotation.*; import android.app.*; import android.content.*; import android.content.res.*; import android.os.*; import android.widget.*; | [
"android.annotation",
"android.app",
"android.content",
"android.os",
"android.widget"
] | android.annotation; android.app; android.content; android.os; android.widget; | 1,102,731 |
public File getFile(Collection<File> someSearchFolders, String aFilename) {
ThreadExecutionStatus status = new ThreadExecutionStatus();
for (File folder : someSearchFolders) {
DirectoryScannerThread thread = new DirectoryScannerThread(status, folder, aFilename);
thread.add... | File function(Collection<File> someSearchFolders, String aFilename) { ThreadExecutionStatus status = new ThreadExecutionStatus(); for (File folder : someSearchFolders) { DirectoryScannerThread thread = new DirectoryScannerThread(status, folder, aFilename); thread.addListener(this); synchronized (this) { activeScans++; ... | /**
* Returns the file with the specified filename. All specified folders are
* searched to identify the file's location.
*
* @param someSearchFolders
* the folders which are searched
* @param aFilename
* the file which is searched
*
* @return a file or <code>n... | Returns the file with the specified filename. All specified folders are searched to identify the file's location | getFile | {
"repo_name": "gammalgris/jmul",
"path": "Utilities/Persistence/src/jmul/persistence/file/FileLookup.java",
"license": "gpl-3.0",
"size": 10628
} | [
"java.io.File",
"java.util.Collection"
] | import java.io.File; import java.util.Collection; | import java.io.*; import java.util.*; | [
"java.io",
"java.util"
] | java.io; java.util; | 1,063,377 |
public Actions keyDown(WebElement target, CharSequence key) {
if (isBuildingActions()) {
action.addAction(new KeyDownAction(jsonKeyboard, jsonMouse, (Locatable) target, asKeys(key)));
}
return focusInTicks(target)
.addKeyAction(key, codepoint -> tick(defaultKeyboard.createKeyDown(codepoint))... | Actions function(WebElement target, CharSequence key) { if (isBuildingActions()) { action.addAction(new KeyDownAction(jsonKeyboard, jsonMouse, (Locatable) target, asKeys(key))); } return focusInTicks(target) .addKeyAction(key, codepoint -> tick(defaultKeyboard.createKeyDown(codepoint))); } | /**
* Performs a modifier key press after focusing on an element. Equivalent to:
* <i>Actions.click(element).sendKeys(theKey);</i>
* @see #keyDown(CharSequence)
*
* @param key Either {@link Keys#SHIFT}, {@link Keys#ALT} or {@link Keys#CONTROL}. If the
* provided key is none of those, {@link IllegalArg... | Performs a modifier key press after focusing on an element. Equivalent to: Actions.click(element).sendKeys(theKey) | keyDown | {
"repo_name": "carlosroh/selenium",
"path": "java/client/src/org/openqa/selenium/interactions/Actions.java",
"license": "apache-2.0",
"size": 21552
} | [
"org.openqa.selenium.WebElement",
"org.openqa.selenium.internal.Locatable"
] | import org.openqa.selenium.WebElement; import org.openqa.selenium.internal.Locatable; | import org.openqa.selenium.*; import org.openqa.selenium.internal.*; | [
"org.openqa.selenium"
] | org.openqa.selenium; | 357,930 |
public TIntIterator entityIdIterator() {
TIntSet idSet = new TIntHashSet();
for (TIntObjectMap<Component> componentMap : store.values()) {
idSet.addAll(componentMap.keys());
}
return idSet.iterator();
} | TIntIterator function() { TIntSet idSet = new TIntHashSet(); for (TIntObjectMap<Component> componentMap : store.values()) { idSet.addAll(componentMap.keys()); } return idSet.iterator(); } | /**
* Produces an iterator for iterating over all entities
* <p/>
* This is not designed to be performant, and in general usage entities should not be iterated over.
*
* @return An iterator over all entity ids.
*/ | Produces an iterator for iterating over all entities This is not designed to be performant, and in general usage entities should not be iterated over | entityIdIterator | {
"repo_name": "xposure/zSprite_Old",
"path": "Source/Framework/zSprite.Sandbox/Terasology/entitySystem/entity/internal/ComponentTable.java",
"license": "gpl-3.0",
"size": 4096
} | [
"gnu.trove.iterator.TIntIterator",
"gnu.trove.map.TIntObjectMap",
"gnu.trove.set.TIntSet",
"gnu.trove.set.hash.TIntHashSet",
"org.terasology.entitySystem.Component"
] | import gnu.trove.iterator.TIntIterator; import gnu.trove.map.TIntObjectMap; import gnu.trove.set.TIntSet; import gnu.trove.set.hash.TIntHashSet; import org.terasology.entitySystem.Component; | import gnu.trove.iterator.*; import gnu.trove.map.*; import gnu.trove.set.*; import gnu.trove.set.hash.*; import org.terasology.*; | [
"gnu.trove.iterator",
"gnu.trove.map",
"gnu.trove.set",
"org.terasology"
] | gnu.trove.iterator; gnu.trove.map; gnu.trove.set; org.terasology; | 1,792,056 |
public void testMessageCloned() throws MessagingException, IOException, InterruptedException {
MimeMessageWrapper mmw = new MimeMessageWrapper(mw);
LifecycleUtil.dispose(mw);
mw = null;
System.gc();
Thread.sleep(200);
mmw.writeTo(System.out);
} | void function() throws MessagingException, IOException, InterruptedException { MimeMessageWrapper mmw = new MimeMessageWrapper(mw); LifecycleUtil.dispose(mw); mw = null; System.gc(); Thread.sleep(200); mmw.writeTo(System.out); } | /**
* See JAMES-474 MimeMessageWrapper(MimeMessage) should clone the original
* message.
*/ | See JAMES-474 MimeMessageWrapper(MimeMessage) should clone the original message | testMessageCloned | {
"repo_name": "imatin/James",
"path": "core/src/test/java/org/apache/james/core/MimeMessageWrapperTest.java",
"license": "apache-2.0",
"size": 11035
} | [
"java.io.IOException",
"javax.mail.MessagingException",
"org.apache.james.lifecycle.api.LifecycleUtil"
] | import java.io.IOException; import javax.mail.MessagingException; import org.apache.james.lifecycle.api.LifecycleUtil; | import java.io.*; import javax.mail.*; import org.apache.james.lifecycle.api.*; | [
"java.io",
"javax.mail",
"org.apache.james"
] | java.io; javax.mail; org.apache.james; | 943,347 |
public HttpClient build() {
java.net.http.HttpClient.Builder httpClientBuilder = this.httpClientBuilder == null
? java.net.http.HttpClient.newBuilder()
: this.httpClientBuilder;
httpClientBuilder = (this.connectionTimeout != null)
? httpClientBu... | HttpClient function() { java.net.http.HttpClient.Builder httpClientBuilder = this.httpClientBuilder == null ? java.net.http.HttpClient.newBuilder() : this.httpClientBuilder; httpClientBuilder = (this.connectionTimeout != null) ? httpClientBuilder.connectTimeout(this.connectionTimeout) : httpClientBuilder.connectTimeout... | /**
* Build a HttpClient with current configurations.
*
* @return a {@link HttpClient}.
*/ | Build a HttpClient with current configurations | build | {
"repo_name": "selvasingh/azure-sdk-for-java",
"path": "sdk/core/azure-core-http-jdk-httpclient/src/main/java/com/azure/core/http/jdk/httpclient/JdkAsyncHttpClientBuilder.java",
"license": "mit",
"size": 9885
} | [
"com.azure.core.http.HttpClient",
"com.azure.core.http.ProxyOptions",
"com.azure.core.http.jdk.httpclient.implementation.JdkHttpClientProxySelector",
"com.azure.core.util.Configuration",
"java.util.Collections"
] | import com.azure.core.http.HttpClient; import com.azure.core.http.ProxyOptions; import com.azure.core.http.jdk.httpclient.implementation.JdkHttpClientProxySelector; import com.azure.core.util.Configuration; import java.util.Collections; | import com.azure.core.http.*; import com.azure.core.http.jdk.httpclient.implementation.*; import com.azure.core.util.*; import java.util.*; | [
"com.azure.core",
"java.util"
] | com.azure.core; java.util; | 1,717,070 |
private void send(Socket socket, int flags) {
if (socket == null) {
throw new IllegalArgumentException("socket parameter must be set");
}
if (!hasData()) {
throw new IllegalAccessError("Cannot send frame without data");
}
// Note the jzmq Socket.cpp JNI class does a memcpy of the byte data before ... | void function(Socket socket, int flags) { if (socket == null) { throw new IllegalArgumentException(STR); } if (!hasData()) { throw new IllegalAccessError(STR); } socket.send(data, flags); } | /**
* Internal method to call org.zeromq.Socket send() method.
* @param socket
* 0MQ socket to send on
* @param flags
* Valid send() method flags, defined in org.zeromq.ZMQ class
*/ | Internal method to call org.zeromq.Socket send() method | send | {
"repo_name": "VoltDB/jzmq",
"path": "src/org/zeromq/ZFrame.java",
"license": "gpl-3.0",
"size": 7900
} | [
"org.zeromq.ZMQ"
] | import org.zeromq.ZMQ; | import org.zeromq.*; | [
"org.zeromq"
] | org.zeromq; | 1,228,278 |
@SuppressWarnings({ "rawtypes", "unchecked" })
private LinkedHashMap getFieldMetadata(JCoFieldIterator iterator,LinkedHashMap parameters)
{
// TODO Auto-generated method stub
while(iterator.hasNextField())
{
JCoField jf=iterator.nextField();
if(jf.getTypeAsString()=="TABLE")
{
parameter... | @SuppressWarnings({ STR, STR }) LinkedHashMap function(JCoFieldIterator iterator,LinkedHashMap parameters) { while(iterator.hasNextField()) { JCoField jf=iterator.nextField(); if(jf.getTypeAsString()=="TABLE") { parameters.put(jf.getName(),getTableParameterMetadata(jf)); } else if(jf.getTypeAsString()==STR) { parameter... | /**<ul><li>Returns the description of field of requested <TT>JCoParameterList</TT> as meta-data.
*
* @param iterator instance of <tt>JCoFieldIterator</tt> to iterate over fields <tt>JCoParameterList</tt>.
* @param parameters instance of <tt>LinkedHashMap</tt> to put values of fields.
* @return parameters i... | Returns the description of field of requested JCoParameterList as meta-data | getFieldMetadata | {
"repo_name": "runmyprocess/sec-jco3",
"path": "src/main/java/com/runmyprocess/sec/JCO3DataHandler.java",
"license": "apache-2.0",
"size": 32065
} | [
"com.sap.conn.jco.JCoField",
"com.sap.conn.jco.JCoFieldIterator",
"java.util.LinkedHashMap"
] | import com.sap.conn.jco.JCoField; import com.sap.conn.jco.JCoFieldIterator; import java.util.LinkedHashMap; | import com.sap.conn.jco.*; import java.util.*; | [
"com.sap.conn",
"java.util"
] | com.sap.conn; java.util; | 1,634,127 |
@Test
public void test05_saveLocation() throws ApplicationException{
LocationTypeDto countryLocationTypeDto = createAndSaveLocationType(locationService, "Country", null);
LocationDto location = createLocation("India", countryLocationTypeDto, null);
LocationDto savedLocation = locationService.saveLocation(loca... | void function() throws ApplicationException{ LocationTypeDto countryLocationTypeDto = createAndSaveLocationType(locationService, STR, null); LocationDto location = createLocation("India", countryLocationTypeDto, null); LocationDto savedLocation = locationService.saveLocation(location); savedLocation.setName("US"); save... | /**
* Simple Test to save Location and then update it
* @throws ApplicationException
*/ | Simple Test to save Location and then update it | test05_saveLocation | {
"repo_name": "ping2ravi/eswaraj",
"path": "core/src/test/java/com/eswaraj/core/service/impl/TestLocationServiceImpl.java",
"license": "gpl-3.0",
"size": 15055
} | [
"com.eswaraj.core.exceptions.ApplicationException",
"com.eswaraj.web.dto.LocationDto",
"com.eswaraj.web.dto.LocationTypeDto",
"org.junit.Assert"
] | import com.eswaraj.core.exceptions.ApplicationException; import com.eswaraj.web.dto.LocationDto; import com.eswaraj.web.dto.LocationTypeDto; import org.junit.Assert; | import com.eswaraj.core.exceptions.*; import com.eswaraj.web.dto.*; import org.junit.*; | [
"com.eswaraj.core",
"com.eswaraj.web",
"org.junit"
] | com.eswaraj.core; com.eswaraj.web; org.junit; | 733,416 |
private void prepararPainelGrupoEsquerda (){
painelGrupoEsquerda = new JPanel ();
padrao = new Dimension(250, alturaMaxima);
painelGrupoEsquerda.setLayout (new GridLayout(2, 1));
painelGrupoEsquerda.setMaximumSize(padrao);
painelGrupoEsquerda.setMinimumSize(padrao);
painelGrupoEsquerda.setPr... | void function (){ painelGrupoEsquerda = new JPanel (); padrao = new Dimension(250, alturaMaxima); painelGrupoEsquerda.setLayout (new GridLayout(2, 1)); painelGrupoEsquerda.setMaximumSize(padrao); painelGrupoEsquerda.setMinimumSize(padrao); painelGrupoEsquerda.setPreferredSize(padrao); painelGrupoEsquerda.setOpaque (tru... | /**
* Configuracao inicial do painel que abrigara os paineis:
* "Abrir" e "Som"
*/ | Configuracao inicial do painel que abrigara os paineis: "Abrir" e "Som" | prepararPainelGrupoEsquerda | {
"repo_name": "rodrigofegui/UnB",
"path": "2016.1/Introdução a Computação Sônica/Trabalho 2/src/principal/InterfaceGrafica.java",
"license": "gpl-3.0",
"size": 26381
} | [
"java.awt.Dimension",
"java.awt.GridLayout",
"javax.swing.BorderFactory",
"javax.swing.JPanel",
"javax.swing.border.Border"
] | import java.awt.Dimension; import java.awt.GridLayout; import javax.swing.BorderFactory; import javax.swing.JPanel; import javax.swing.border.Border; | import java.awt.*; import javax.swing.*; import javax.swing.border.*; | [
"java.awt",
"javax.swing"
] | java.awt; javax.swing; | 2,856,517 |
public static HMACVerifier newVerifier(Path path) {
return newVerifier(path, new DefaultCryptoProvider());
} | static HMACVerifier function(Path path) { return newVerifier(path, new DefaultCryptoProvider()); } | /**
* Return a new instance of the HMAC Verifier with the provided secret.
*
* @param path The path to the secret.
* @return a new instance of the HMAC verifier.
*/ | Return a new instance of the HMAC Verifier with the provided secret | newVerifier | {
"repo_name": "inversoft/prime-jwt",
"path": "src/main/java/io/fusionauth/jwt/hmac/HMACVerifier.java",
"license": "apache-2.0",
"size": 5427
} | [
"io.fusionauth.security.DefaultCryptoProvider",
"java.nio.file.Path"
] | import io.fusionauth.security.DefaultCryptoProvider; import java.nio.file.Path; | import io.fusionauth.security.*; import java.nio.file.*; | [
"io.fusionauth.security",
"java.nio"
] | io.fusionauth.security; java.nio; | 108,065 |
@Nonnull
default EChange removeAll ()
{
if (isEmpty ())
return EChange.UNCHANGED;
clear ();
return EChange.CHANGED;
} | default EChange removeAll () { if (isEmpty ()) return EChange.UNCHANGED; clear (); return EChange.CHANGED; } | /**
* Remove all elements from this collection. This is similar to
* {@link #clear()} but it returns a different value whether something was
* cleared or not.
*
* @return {@link EChange#CHANGED} if the collection was not empty and
* something was removed, {@link EChange#UNCHANGED} otherwise.
... | Remove all elements from this collection. This is similar to <code>#clear()</code> but it returns a different value whether something was cleared or not | removeAll | {
"repo_name": "phax/ph-commons",
"path": "ph-commons/src/main/java/com/helger/commons/collection/impl/ICommonsCollection.java",
"license": "apache-2.0",
"size": 30543
} | [
"com.helger.commons.state.EChange"
] | import com.helger.commons.state.EChange; | import com.helger.commons.state.*; | [
"com.helger.commons"
] | com.helger.commons; | 1,042,760 |
private static void readConfiguration(String loggerConfigurationAbsolutePath) throws MalformedURLException,
URISyntaxException {
File configFile = new File(loggerConfigurationAbsolutePath);
MifosDOMConfigurator.configureAndWatch(configFile.getAbsolutePath(), LoggerConstants.DELAY);
... | static void function(String loggerConfigurationAbsolutePath) throws MalformedURLException, URISyntaxException { File configFile = new File(loggerConfigurationAbsolutePath); MifosDOMConfigurator.configureAndWatch(configFile.getAbsolutePath(), LoggerConstants.DELAY); } | /**
* Configures the root logger from the loggerconfiguration.xml A root logger
* instance is also created and the resource bundle for the locale of the
* MFI is associated with the logger
*/ | Configures the root logger from the loggerconfiguration.xml A root logger instance is also created and the resource bundle for the locale of the MFI is associated with the logger | readConfiguration | {
"repo_name": "mifos/1.4.x",
"path": "application/src/main/java/org/mifos/framework/components/logger/MifosLogManager.java",
"license": "apache-2.0",
"size": 8218
} | [
"java.io.File",
"java.net.MalformedURLException",
"java.net.URISyntaxException"
] | import java.io.File; import java.net.MalformedURLException; import java.net.URISyntaxException; | import java.io.*; import java.net.*; | [
"java.io",
"java.net"
] | java.io; java.net; | 122,021 |
public Observable<ServiceResponse<PublicIPPrefixInner>> createOrUpdateWithServiceResponseAsync(String resourceGroupName, String publicIpPrefixName, PublicIPPrefixInner parameters) {
if (resourceGroupName == null) {
throw new IllegalArgumentException("Parameter resourceGroupName is required and c... | Observable<ServiceResponse<PublicIPPrefixInner>> function(String resourceGroupName, String publicIpPrefixName, PublicIPPrefixInner parameters) { if (resourceGroupName == null) { throw new IllegalArgumentException(STR); } if (publicIpPrefixName == null) { throw new IllegalArgumentException(STR); } if (this.client.subscr... | /**
* Creates or updates a static or dynamic public IP prefix.
*
* @param resourceGroupName The name of the resource group.
* @param publicIpPrefixName The name of the public IP prefix.
* @param parameters Parameters supplied to the create or update public IP prefix operation.
* @throws Il... | Creates or updates a static or dynamic public IP prefix | createOrUpdateWithServiceResponseAsync | {
"repo_name": "selvasingh/azure-sdk-for-java",
"path": "sdk/network/mgmt-v2019_04_01/src/main/java/com/microsoft/azure/management/network/v2019_04_01/implementation/PublicIPPrefixesInner.java",
"license": "mit",
"size": 78189
} | [
"com.google.common.reflect.TypeToken",
"com.microsoft.rest.ServiceResponse",
"com.microsoft.rest.Validator"
] | import com.google.common.reflect.TypeToken; import com.microsoft.rest.ServiceResponse; import com.microsoft.rest.Validator; | import com.google.common.reflect.*; import com.microsoft.rest.*; | [
"com.google.common",
"com.microsoft.rest"
] | com.google.common; com.microsoft.rest; | 941,103 |
@Test
public void testGetActionLock_1()
throws Exception {
Object result = ActionLockFactory.getActionLock();
// add additional test code here
assertNotNull(result);
}
| void function() throws Exception { Object result = ActionLockFactory.getActionLock(); assertNotNull(result); } | /**
* Run the Object getActionLock() method test.
*
* @throws Exception
*
* @generatedBy CodePro at 15/05/15 23:06
*/ | Run the Object getActionLock() method test | testGetActionLock_1 | {
"repo_name": "laynos/GLPOO_ESIEA_1415_Eternity_Souhel",
"path": "eternity/test/main/java/fr/esiea/glpoo/options_du_jeu/ActionLockFactoryTest.java",
"license": "apache-2.0",
"size": 1861
} | [
"org.junit.Assert"
] | import org.junit.Assert; | import org.junit.*; | [
"org.junit"
] | org.junit; | 542,645 |
public void index(Set<Polygon> polygons) {
for (Polygon x : polygons) {
index(x);
}
}
| void function(Set<Polygon> polygons) { for (Polygon x : polygons) { index(x); } } | /**
* Indexes a list of polygons by mapping the uri of each polygon to the
* corresponding distanceIndex
*
* @param polygons
* to be indexed
*/ | Indexes a list of polygons by mapping the uri of each polygon to the corresponding distanceIndex | index | {
"repo_name": "AKSW/LIMES-CORE",
"path": "limes-core/src/main/java/org/aksw/limes/core/measures/mapper/pointsets/PolygonIndex.java",
"license": "gpl-2.0",
"size": 4029
} | [
"java.util.Set"
] | import java.util.Set; | import java.util.*; | [
"java.util"
] | java.util; | 2,420,012 |
public Path buildResourcePath(String dirName, String fileName) {
Preconditions.checkNotNull(dirName);
Preconditions.checkNotNull(fileName);
Path path = getBaseApplicationPath();
return new Path(path, YarnServiceConstants.RESOURCE_DIR + "/" + dirName + "/" + fileName);
} | Path function(String dirName, String fileName) { Preconditions.checkNotNull(dirName); Preconditions.checkNotNull(fileName); Path path = getBaseApplicationPath(); return new Path(path, YarnServiceConstants.RESOURCE_DIR + "/" + dirName + "/" + fileName); } | /**
* Build up the path string for resource install location -no attempt to
* create the directory is made
*
* @return the path for resource
*/ | Build up the path string for resource install location -no attempt to create the directory is made | buildResourcePath | {
"repo_name": "JingchengDu/hadoop",
"path": "hadoop-yarn-project/hadoop-yarn/hadoop-yarn-applications/hadoop-yarn-services/hadoop-yarn-services-core/src/main/java/org/apache/hadoop/yarn/service/utils/CoreFileSystem.java",
"license": "apache-2.0",
"size": 19805
} | [
"org.apache.hadoop.fs.Path",
"org.apache.hadoop.util.Preconditions",
"org.apache.hadoop.yarn.service.conf.YarnServiceConstants"
] | import org.apache.hadoop.fs.Path; import org.apache.hadoop.util.Preconditions; import org.apache.hadoop.yarn.service.conf.YarnServiceConstants; | import org.apache.hadoop.fs.*; import org.apache.hadoop.util.*; import org.apache.hadoop.yarn.service.conf.*; | [
"org.apache.hadoop"
] | org.apache.hadoop; | 472,800 |
EList<IfcValue> getDefiningValues();
| EList<IfcValue> getDefiningValues(); | /**
* Returns the value of the '<em><b>Defining Values</b></em>' reference list.
* The list contents are of type {@link org.bimserver.models.ifc4.IfcValue}.
* <!-- begin-user-doc -->
* <p>
* If the meaning of the '<em>Defining Values</em>' reference list isn't clear,
* there really should be more of a... | Returns the value of the 'Defining Values' reference list. The list contents are of type <code>org.bimserver.models.ifc4.IfcValue</code>. If the meaning of the 'Defining Values' reference list isn't clear, there really should be more of a description here... | getDefiningValues | {
"repo_name": "opensourceBIM/BIMserver",
"path": "PluginBase/generated/org/bimserver/models/ifc4/IfcPropertyTableValue.java",
"license": "agpl-3.0",
"size": 13487
} | [
"org.eclipse.emf.common.util.EList"
] | import org.eclipse.emf.common.util.EList; | import org.eclipse.emf.common.util.*; | [
"org.eclipse.emf"
] | org.eclipse.emf; | 640,936 |
public PolicyFinderResult findPolicy(EvaluationCtx context) {
AbstractPolicy selectedPolicy = null;
Iterator it = policies.iterator();
// iterate through all the policies we currently have loaded
while (it.hasNext()) {
AbstractPolicy policy = (AbstractPolicy)(it.next());... | PolicyFinderResult function(EvaluationCtx context) { AbstractPolicy selectedPolicy = null; Iterator it = policies.iterator(); while (it.hasNext()) { AbstractPolicy policy = (AbstractPolicy)(it.next()); MatchResult match = policy.match(context); int result = match.getResult(); if (result == MatchResult.INDETERMINATE) re... | /**
* Finds the applicable policy (if there is one) for the given context.
*
* @param context the evaluation context
*
* @return an applicable policy, if one exists, or an error
*/ | Finds the applicable policy (if there is one) for the given context | findPolicy | {
"repo_name": "townbull/mtaaas",
"path": "CloudSvcPEP/mtrbac/CloudSvcPEP/TestPolicyFinderModule.java",
"license": "apache-2.0",
"size": 12120
} | [
"com.sun.xacml.AbstractPolicy",
"com.sun.xacml.EvaluationCtx",
"com.sun.xacml.MatchResult",
"com.sun.xacml.ctx.Status",
"com.sun.xacml.finder.PolicyFinderResult",
"java.util.ArrayList",
"java.util.Iterator"
] | import com.sun.xacml.AbstractPolicy; import com.sun.xacml.EvaluationCtx; import com.sun.xacml.MatchResult; import com.sun.xacml.ctx.Status; import com.sun.xacml.finder.PolicyFinderResult; import java.util.ArrayList; import java.util.Iterator; | import com.sun.xacml.*; import com.sun.xacml.ctx.*; import com.sun.xacml.finder.*; import java.util.*; | [
"com.sun.xacml",
"java.util"
] | com.sun.xacml; java.util; | 1,696,837 |
@Inline("$1.log(com.blockwithme.util.xtend.JavaUtilLoggingExtension.JUL_DEBUG, $2, $3)")
public static void debug(final Logger log, final String msg,
final Throwable error) {
log.log(JUL_DEBUG, msg, error);
}
| @Inline(STR) static void function(final Logger log, final String msg, final Throwable error) { log.log(JUL_DEBUG, msg, error); } | /**
* Log a DEBUG message.
* @param msg The message
* @param error The error
*/ | Log a DEBUG message | debug | {
"repo_name": "skunkiferous/Util",
"path": "xtend/src/main/java/com/blockwithme/util/xtend/JavaUtilLoggingExtension.java",
"license": "apache-2.0",
"size": 7206
} | [
"java.util.logging.Logger",
"org.eclipse.xtext.xbase.lib.Inline"
] | import java.util.logging.Logger; import org.eclipse.xtext.xbase.lib.Inline; | import java.util.logging.*; import org.eclipse.xtext.xbase.lib.*; | [
"java.util",
"org.eclipse.xtext"
] | java.util; org.eclipse.xtext; | 431,344 |
public int getPeriod(short servoNum) throws TimeoutException, NotConnectedException {
byte options = 0;
boolean isResponseExpected = getResponseExpected(FUNCTION_GET_PERIOD);
if(isResponseExpected) {
options = 8;
}
ByteBuffer bb = ipcon.createRequestBuffer(uid, (byte)9, FUNCTION_GET_PERIOD, options, (by... | int function(short servoNum) throws TimeoutException, NotConnectedException { byte options = 0; boolean isResponseExpected = getResponseExpected(FUNCTION_GET_PERIOD); if(isResponseExpected) { options = 8; } ByteBuffer bb = ipcon.createRequestBuffer(uid, (byte)9, FUNCTION_GET_PERIOD, options, (byte)(0)); bb.put((byte)se... | /**
* Returns the period for the specified servo as set by {@link com.tinkerforge.BrickServo.setPeriod}.
*/ | Returns the period for the specified servo as set by <code>com.tinkerforge.BrickServo.setPeriod</code> | getPeriod | {
"repo_name": "ezeeb/pipes-tinkerforge",
"path": "src/main/java/com/tinkerforge/BrickServo.java",
"license": "apache-2.0",
"size": 40034
} | [
"java.nio.ByteBuffer",
"java.nio.ByteOrder"
] | import java.nio.ByteBuffer; import java.nio.ByteOrder; | import java.nio.*; | [
"java.nio"
] | java.nio; | 762,537 |
@ApiMethod(name = "sendMessageToDevice")
public void sendMessageToDeviceAPI(Message msg,
@Named(HelperFunctions.KEY_RECIPIENT_DEVICE_REG_ID) String recipientDeviceID)
throws IOException
{
sendMessageToDevice(msg, recipientDeviceID);
} | @ApiMethod(name = STR) void function(Message msg, @Named(HelperFunctions.KEY_RECIPIENT_DEVICE_REG_ID) String recipientDeviceID) throws IOException { sendMessageToDevice(msg, recipientDeviceID); } | /**
* Send given Message to all devices registered to the given recipientDeviceID.
* (Sending the given Message to 1 specific device.)
*
* @param msg
* @param recipientUUID
* @throws IOException
*/ | Send given Message to all devices registered to the given recipientDeviceID. (Sending the given Message to 1 specific device.) | sendMessageToDeviceAPI | {
"repo_name": "Mithrandir21/RelationshipPoints",
"path": "relpoints_backend/src/main/java/com/bahram/relpoints/backend/PublicAPIs/MessagingFunctions.java",
"license": "gpl-3.0",
"size": 7917
} | [
"com.bahram.relpoints.backend.HelperFunctions",
"com.google.android.gcm.server.Message",
"com.google.api.server.spi.config.ApiMethod",
"java.io.IOException",
"javax.inject.Named"
] | import com.bahram.relpoints.backend.HelperFunctions; import com.google.android.gcm.server.Message; import com.google.api.server.spi.config.ApiMethod; import java.io.IOException; import javax.inject.Named; | import com.bahram.relpoints.backend.*; import com.google.android.gcm.server.*; import com.google.api.server.spi.config.*; import java.io.*; import javax.inject.*; | [
"com.bahram.relpoints",
"com.google.android",
"com.google.api",
"java.io",
"javax.inject"
] | com.bahram.relpoints; com.google.android; com.google.api; java.io; javax.inject; | 2,496,235 |
public static SearchResponse verifyResponse(MultiSearchResponse.Item normalResponse) throws Exception {
if (normalResponse.isFailure()) {
throw normalResponse.getFailure();
}
return normalResponse.getResponse();
} | static SearchResponse function(MultiSearchResponse.Item normalResponse) throws Exception { if (normalResponse.isFailure()) { throw normalResponse.getFailure(); } return normalResponse.getResponse(); } | /**
* Verifies a live-only search response. Essentially just checks for failure then returns
* the response since we have no work to do
*/ | Verifies a live-only search response. Essentially just checks for failure then returns the response since we have no work to do | verifyResponse | {
"repo_name": "GlenRSmith/elasticsearch",
"path": "x-pack/plugin/rollup/src/main/java/org/elasticsearch/xpack/rollup/RollupResponseTranslator.java",
"license": "apache-2.0",
"size": 29169
} | [
"org.elasticsearch.action.search.MultiSearchResponse",
"org.elasticsearch.action.search.SearchResponse"
] | import org.elasticsearch.action.search.MultiSearchResponse; import org.elasticsearch.action.search.SearchResponse; | import org.elasticsearch.action.search.*; | [
"org.elasticsearch.action"
] | org.elasticsearch.action; | 2,436,117 |
InputStream jsonStream = McastConfigTest.class
.getResourceAsStream("/mcast-config.json");
InputStream invalidJsonStream = McastConfigTest.class
.getResourceAsStream("/mcast-config-invalid.json");
ApplicationId subject = APP_ID;
String key = CoreService.CORE_APP_... | InputStream jsonStream = McastConfigTest.class .getResourceAsStream(STR); InputStream invalidJsonStream = McastConfigTest.class .getResourceAsStream(STR); ApplicationId subject = APP_ID; String key = CoreService.CORE_APP_NAME; ObjectMapper mapper = new ObjectMapper(); JsonNode jsonNode = mapper.readTree(jsonStream); Js... | /**
* Initialize test related variables.
*
* @throws Exception
*/ | Initialize test related variables | setUp | {
"repo_name": "kuujo/onos",
"path": "core/api/src/test/java/org/onosproject/net/config/basics/McastConfigTest.java",
"license": "apache-2.0",
"size": 4588
} | [
"com.fasterxml.jackson.databind.JsonNode",
"com.fasterxml.jackson.databind.ObjectMapper",
"java.io.InputStream",
"org.onosproject.core.ApplicationId",
"org.onosproject.core.CoreService",
"org.onosproject.net.config.ConfigApplyDelegate"
] | import com.fasterxml.jackson.databind.JsonNode; import com.fasterxml.jackson.databind.ObjectMapper; import java.io.InputStream; import org.onosproject.core.ApplicationId; import org.onosproject.core.CoreService; import org.onosproject.net.config.ConfigApplyDelegate; | import com.fasterxml.jackson.databind.*; import java.io.*; import org.onosproject.core.*; import org.onosproject.net.config.*; | [
"com.fasterxml.jackson",
"java.io",
"org.onosproject.core",
"org.onosproject.net"
] | com.fasterxml.jackson; java.io; org.onosproject.core; org.onosproject.net; | 70,422 |
@ApiModelProperty(value = "")
public Integer getTotalPages() {
return totalPages;
} | @ApiModelProperty(value = "") Integer function() { return totalPages; } | /**
* Get totalPages
* @return totalPages
**/ | Get totalPages | getTotalPages | {
"repo_name": "knetikmedia/knetikcloud-java-client",
"path": "src/main/java/com/knetikcloud/model/PageResourceLocationLogResource.java",
"license": "apache-2.0",
"size": 7644
} | [
"io.swagger.annotations.ApiModelProperty"
] | import io.swagger.annotations.ApiModelProperty; | import io.swagger.annotations.*; | [
"io.swagger.annotations"
] | io.swagger.annotations; | 2,201,258 |
public static byte[] createHeaderBytes(RtpVersion version, boolean hasPadding, boolean hasExtension,
int csrcCount, boolean setMarker, PayloadType payloadType, int sequenceNumber, long timeStamp, long ssrc) {
byte[] h = new byte[12];
h[0] = ByteUtil.setLeftBitsValue(h[0], 2, version.getVersion());
h[0] = B... | static byte[] function(RtpVersion version, boolean hasPadding, boolean hasExtension, int csrcCount, boolean setMarker, PayloadType payloadType, int sequenceNumber, long timeStamp, long ssrc) { byte[] h = new byte[12]; h[0] = ByteUtil.setLeftBitsValue(h[0], 2, version.getVersion()); h[0] = ByteUtil.setBit(h[0], 5, hasPa... | /**
* creates the first 4 bytes of the RTP header
* @param version
* @param hasPadding
* @param hasExtension
* @return
*/ | creates the first 4 bytes of the RTP header | createHeaderBytes | {
"repo_name": "alladin-IT/open-rmbt",
"path": "RMBTUtil/src/main/java/at/alladin/rmbt/util/net/rtp/RealtimeTransportProtocol.java",
"license": "apache-2.0",
"size": 6305
} | [
"at.alladin.rmbt.util.ByteUtil",
"java.nio.ByteOrder"
] | import at.alladin.rmbt.util.ByteUtil; import java.nio.ByteOrder; | import at.alladin.rmbt.util.*; import java.nio.*; | [
"at.alladin.rmbt",
"java.nio"
] | at.alladin.rmbt; java.nio; | 599,376 |
public final Duration toDuration(final Duration defaultValue)
{
if (text != null)
{
try
{
return toDuration();
}
catch (Exception x)
{
if (LOG.isDebugEnabled())
{
LOG.debug(
String.format("An error occurred while converting '%s' to a Duration: %s",
text, x.getMessage... | final Duration function(final Duration defaultValue) { if (text != null) { try { return toDuration(); } catch (Exception x) { if (LOG.isDebugEnabled()) { LOG.debug( String.format(STR, text, x.getMessage()), x); } } } return defaultValue; } | /**
* Convert to duration, returning default value if text is inconvertible.
*
* @param defaultValue
* the default value
* @return the converted text as a duration or the default value if text is empty or
* inconvertible
* @see Duration#parse(CharSequence)
*/ | Convert to duration, returning default value if text is inconvertible | toDuration | {
"repo_name": "apache/wicket",
"path": "wicket-util/src/main/java/org/apache/wicket/util/string/StringValue.java",
"license": "apache-2.0",
"size": 23282
} | [
"java.time.Duration"
] | import java.time.Duration; | import java.time.*; | [
"java.time"
] | java.time; | 797,271 |
@Test
public void testSpecificationV1Examples() throws EncoderException {
final String[][] data = {{"David", "TFT111"}, {"Whittle", "WTL111"}};
this.checkEncodings(data);
} | void function() throws EncoderException { final String[][] data = {{"David", STR}, {STR, STR}}; this.checkEncodings(data); } | /**
* Tests example from http://caversham.otago.ac.nz/files/working/ctp060902.pdf
*
* @throws EncoderException for some failure scenarios.
*/ | Tests example from HREF | testSpecificationV1Examples | {
"repo_name": "apache/commons-codec",
"path": "src/test/java/org/apache/commons/codec/language/Caverphone1Test.java",
"license": "apache-2.0",
"size": 3528
} | [
"org.apache.commons.codec.EncoderException"
] | import org.apache.commons.codec.EncoderException; | import org.apache.commons.codec.*; | [
"org.apache.commons"
] | org.apache.commons; | 1,593,783 |
public int evalBoolean(QueryContext context)
throws SQLException
{
if (_column.isNull(context))
return UNKNOWN;
else
return _column.evalEqual(context, _matchBuffer) ? TRUE : FALSE;
} | int function(QueryContext context) throws SQLException { if (_column.isNull(context)) return UNKNOWN; else return _column.evalEqual(context, _matchBuffer) ? TRUE : FALSE; } | /**
* Evaluates the expression as a boolean.
*/ | Evaluates the expression as a boolean | evalBoolean | {
"repo_name": "dlitz/resin",
"path": "modules/resin/src/com/caucho/db/sql/BinaryEqExpr.java",
"license": "gpl-2.0",
"size": 2313
} | [
"java.sql.SQLException"
] | import java.sql.SQLException; | import java.sql.*; | [
"java.sql"
] | java.sql; | 902,854 |
@Test
public void testSimpleExecutionTraceSession() throws AnalysisConfigurationException {
final List<OperationExecutionRecord> records = SessionReconstructionFilterTest.createSimpleExecutionTrace();
final SessionReconstructionTestSetup<ExecutionTraceBasedSession> setup = SessionReconstructionTestUtil.createSe... | void function() throws AnalysisConfigurationException { final List<OperationExecutionRecord> records = SessionReconstructionFilterTest.createSimpleExecutionTrace(); final SessionReconstructionTestSetup<ExecutionTraceBasedSession> setup = SessionReconstructionTestUtil.createSetup(records, MAX_THINK_TIME_MILLIS); setup.r... | /**
* Tests a simple trace constellation with two traces which get assigned to the same session.
*
* @throws AnalysisConfigurationException
* If a configuration error occurs
*/ | Tests a simple trace constellation with two traces which get assigned to the same session | testSimpleExecutionTraceSession | {
"repo_name": "kieker-monitoring/kieker",
"path": "kieker-tools/test/kieker/test/tools/junit/trace/analysis/filter/sessionReconstruction/SessionReconstructionFilterTest.java",
"license": "apache-2.0",
"size": 7572
} | [
"java.util.List",
"org.junit.Assert"
] | import java.util.List; import org.junit.Assert; | import java.util.*; import org.junit.*; | [
"java.util",
"org.junit"
] | java.util; org.junit; | 569,726 |
public java.sql.CallableStatement prepareCall(String sql, int resultSetType, int resultSetConcurrency) throws SQLException {
if (versionMeetsMinimum(5, 0, 0)) {
CallableStatement cStmt = null;
if (!getCacheCallableStatements()) {
cStmt = parseCallableStatement(sql);... | java.sql.CallableStatement function(String sql, int resultSetType, int resultSetConcurrency) throws SQLException { if (versionMeetsMinimum(5, 0, 0)) { CallableStatement cStmt = null; if (!getCacheCallableStatements()) { cStmt = parseCallableStatement(sql); } else { synchronized (this.parsedCallableStatementCache) { Com... | /**
* JDBC 2.0 Same as prepareCall() above, but allows the default result set
* type and result set concurrency type to be overridden.
*
* @param sql
* the SQL representing the callable statement
* @param resultSetType
* a result set type, see ResultSet.TYPE_XXX... | JDBC 2.0 Same as prepareCall() above, but allows the default result set type and result set concurrency type to be overridden | prepareCall | {
"repo_name": "mwaylabs/mysql-connector-j",
"path": "src/com/mysql/jdbc/ConnectionImpl.java",
"license": "gpl-2.0",
"size": 217278
} | [
"java.sql.SQLException"
] | import java.sql.SQLException; | import java.sql.*; | [
"java.sql"
] | java.sql; | 1,833,596 |
public List<Path> compact(final CompactionRequestImpl request,
ThroughputController throughputController, User user) throws IOException {
return compact(request, defaultScannerFactory, writerFactory, throughputController, user);
} | List<Path> function(final CompactionRequestImpl request, ThroughputController throughputController, User user) throws IOException { return compact(request, defaultScannerFactory, writerFactory, throughputController, user); } | /**
* Do a minor/major compaction on an explicit set of storefiles from a Store.
*/ | Do a minor/major compaction on an explicit set of storefiles from a Store | compact | {
"repo_name": "ultratendency/hbase",
"path": "hbase-server/src/main/java/org/apache/hadoop/hbase/regionserver/compactions/DefaultCompactor.java",
"license": "apache-2.0",
"size": 4554
} | [
"java.io.IOException",
"java.util.List",
"org.apache.hadoop.fs.Path",
"org.apache.hadoop.hbase.regionserver.throttle.ThroughputController",
"org.apache.hadoop.hbase.security.User"
] | import java.io.IOException; import java.util.List; import org.apache.hadoop.fs.Path; import org.apache.hadoop.hbase.regionserver.throttle.ThroughputController; import org.apache.hadoop.hbase.security.User; | import java.io.*; import java.util.*; import org.apache.hadoop.fs.*; import org.apache.hadoop.hbase.regionserver.throttle.*; import org.apache.hadoop.hbase.security.*; | [
"java.io",
"java.util",
"org.apache.hadoop"
] | java.io; java.util; org.apache.hadoop; | 2,339,405 |
String toString(int indentFactor, int indent) throws JSONException {
int j;
int n = length();
if (n == 0) {
return "{}";
}
Iterator keys = sortedKeys();
StringBuilder sb = new StringBuilder("{");
int newindent = indent + indentFactor;
... | String toString(int indentFactor, int indent) throws JSONException { int j; int n = length(); if (n == 0) { return "{}"; } Iterator keys = sortedKeys(); StringBuilder sb = new StringBuilder("{"); int newindent = indent + indentFactor; Object o; if (n == 1) { o = keys.next(); sb.append(quote(o.toString())); sb.append(ST... | /**
* Make a prettyprinted JSON text of this JSONObject.
* <p>
* Warning: This method assumes that the data structure is acyclical.
* @param indentFactor The number of spaces to add to each level of
* indentation.
* @param indent The indentation of the top level.
* @return a printabl... | Make a prettyprinted JSON text of this JSONObject. Warning: This method assumes that the data structure is acyclical | toString | {
"repo_name": "OpenBD/openbd-core",
"path": "src/org/json/JSONObject.java",
"license": "gpl-3.0",
"size": 51997
} | [
"java.util.Iterator"
] | import java.util.Iterator; | import java.util.*; | [
"java.util"
] | java.util; | 897,792 |
PlayerGroup createGroup(Player leader, Collection<Player> members, String name, Dungeon dungeon); | PlayerGroup createGroup(Player leader, Collection<Player> members, String name, Dungeon dungeon); | /**
* Creates a new group.
*
* @param leader the leader
* @param members the group members with or without the leader
* @param name the name of the group
* @param dungeon the dungeon to play
* @return a new group or null if values are invalid
*/ | Creates a new group | createGroup | {
"repo_name": "DRE2N/DungeonsXL",
"path": "api/src/main/java/de/erethon/dungeonsxl/api/DungeonsAPI.java",
"license": "gpl-3.0",
"size": 10136
} | [
"de.erethon.dungeonsxl.api.dungeon.Dungeon",
"de.erethon.dungeonsxl.api.player.PlayerGroup",
"java.util.Collection",
"org.bukkit.entity.Player"
] | import de.erethon.dungeonsxl.api.dungeon.Dungeon; import de.erethon.dungeonsxl.api.player.PlayerGroup; import java.util.Collection; import org.bukkit.entity.Player; | import de.erethon.dungeonsxl.api.dungeon.*; import de.erethon.dungeonsxl.api.player.*; import java.util.*; import org.bukkit.entity.*; | [
"de.erethon.dungeonsxl",
"java.util",
"org.bukkit.entity"
] | de.erethon.dungeonsxl; java.util; org.bukkit.entity; | 175,584 |
@Override
public Rectangle getGlyphPixelBounds(int glyphIndex, FontRenderContext frc,
float x, float y) {
if ((glyphIndex < 0) || (glyphIndex >= this.getNumGlyphs())) {
// awt.43=glyphIndex is out of vector's limits
throw new IndexOutOfBoundsException(Messages.... | Rectangle function(int glyphIndex, FontRenderContext frc, float x, float y) { if ((glyphIndex < 0) (glyphIndex >= this.getNumGlyphs())) { throw new IndexOutOfBoundsException(Messages.getString(STR)); } int idx = glyphIndex << 1; if (vector[glyphIndex].getWidth() == 0){ AffineTransform fontTransform = this.transform; do... | /**
* Returnes the pixel bounds of the specified glyph within GlyphVector
* rendered at the specified x,y location.
*
* @param glyphIndex index of the glyph
* @param frc a FontRenderContext that is used
* @param x specified x coordinate value
* @param y specified y coordinat... | Returnes the pixel bounds of the specified glyph within GlyphVector rendered at the specified x,y location | getGlyphPixelBounds | {
"repo_name": "shannah/cn1",
"path": "Ports/iOSPort/xmlvm/apache-harmony-6.0-src-r991881/classlib/modules/awt/src/main/java/common/org/apache/harmony/awt/gl/font/CommonGlyphVector.java",
"license": "gpl-2.0",
"size": 32407
} | [
"java.awt.Rectangle",
"java.awt.font.FontRenderContext",
"java.awt.geom.AffineTransform",
"java.awt.geom.GeneralPath",
"org.apache.harmony.awt.internal.nls.Messages"
] | import java.awt.Rectangle; import java.awt.font.FontRenderContext; import java.awt.geom.AffineTransform; import java.awt.geom.GeneralPath; import org.apache.harmony.awt.internal.nls.Messages; | import java.awt.*; import java.awt.font.*; import java.awt.geom.*; import org.apache.harmony.awt.internal.nls.*; | [
"java.awt",
"org.apache.harmony"
] | java.awt; org.apache.harmony; | 989,134 |
public void setTAccount(TAccount v) throws TorqueException
{
if (v == null)
{
setAccount((Integer) null);
}
else
{
setAccount(v.getObjectID());
}
aTAccount = v;
} | void function(TAccount v) throws TorqueException { if (v == null) { setAccount((Integer) null); } else { setAccount(v.getObjectID()); } aTAccount = v; } | /**
* Declares an association between this object and a TAccount object
*
* @param v TAccount
* @throws TorqueException
*/ | Declares an association between this object and a TAccount object | setTAccount | {
"repo_name": "trackplus/Genji",
"path": "src/main/java/com/aurel/track/persist/BaseTCost.java",
"license": "gpl-3.0",
"size": 53870
} | [
"com.aurel.track.persist.TAccount",
"org.apache.torque.TorqueException"
] | import com.aurel.track.persist.TAccount; import org.apache.torque.TorqueException; | import com.aurel.track.persist.*; import org.apache.torque.*; | [
"com.aurel.track",
"org.apache.torque"
] | com.aurel.track; org.apache.torque; | 2,851,871 |
@SuppressWarnings("unchecked")
// <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
private void initComponents() {
filterPanel = new javax.swing.JPanel();
searchButton = new javax.swing.JButton();
errorLabel = new javax.swing.JLabel();
... | @SuppressWarnings(STR) void function() { filterPanel = new javax.swing.JPanel(); searchButton = new javax.swing.JButton(); errorLabel = new javax.swing.JLabel(); setPreferredSize(new java.awt.Dimension(300, 300)); filterPanel.setBorder(javax.swing.BorderFactory.createEmptyBorder(10, 10, 10, 10)); filterPanel.setPreferr... | /**
* This method is called from within the constructor to initialize the form.
* WARNING: Do NOT modify this code. The content of this method is always
* regenerated by the Form Editor.
*/ | This method is called from within the constructor to initialize the form. regenerated by the Form Editor | initComponents | {
"repo_name": "APriestman/autopsy",
"path": "Core/src/org/sleuthkit/autopsy/filesearch/FileSearchPanel.java",
"license": "apache-2.0",
"size": 13737
} | [
"java.awt.Dimension",
"javax.swing.JLabel",
"org.openide.util.NbBundle"
] | import java.awt.Dimension; import javax.swing.JLabel; import org.openide.util.NbBundle; | import java.awt.*; import javax.swing.*; import org.openide.util.*; | [
"java.awt",
"javax.swing",
"org.openide.util"
] | java.awt; javax.swing; org.openide.util; | 421,697 |
@Override
public ClipboardSelection getObject() {
count += 1;
return lastObject;
} | ClipboardSelection function() { count += 1; return lastObject; } | /**
* Paste a node.
*
* @return
*/ | Paste a node | getObject | {
"repo_name": "CecileBONIN/Silverpeas-Core",
"path": "ejb-core/clipboard/src/main/java/com/stratelia/webactiv/clipboard/control/ejb/ClipboardBmEJB.java",
"license": "agpl-3.0",
"size": 11208
} | [
"com.silverpeas.util.clipboard.ClipboardSelection"
] | import com.silverpeas.util.clipboard.ClipboardSelection; | import com.silverpeas.util.clipboard.*; | [
"com.silverpeas.util"
] | com.silverpeas.util; | 2,670,887 |
@ServiceMethod(returns = ReturnType.SINGLE)
public ListAccountSasResponseInner listAccountSas(
String resourceGroupName, String accountName, AccountSasParameters parameters) {
return listAccountSasAsync(resourceGroupName, accountName, parameters).block();
} | @ServiceMethod(returns = ReturnType.SINGLE) ListAccountSasResponseInner function( String resourceGroupName, String accountName, AccountSasParameters parameters) { return listAccountSasAsync(resourceGroupName, accountName, parameters).block(); } | /**
* List SAS credentials of a storage account.
*
* @param resourceGroupName The name of the resource group within the user's subscription. The name is case
* insensitive.
* @param accountName The name of the storage account within the specified resource group. Storage account names
*... | List SAS credentials of a storage account | listAccountSas | {
"repo_name": "Azure/azure-sdk-for-java",
"path": "sdk/resourcemanager/azure-resourcemanager-storage/src/main/java/com/azure/resourcemanager/storage/implementation/StorageAccountsClientImpl.java",
"license": "mit",
"size": 213141
} | [
"com.azure.core.annotation.ReturnType",
"com.azure.core.annotation.ServiceMethod",
"com.azure.resourcemanager.storage.fluent.models.ListAccountSasResponseInner",
"com.azure.resourcemanager.storage.models.AccountSasParameters"
] | import com.azure.core.annotation.ReturnType; import com.azure.core.annotation.ServiceMethod; import com.azure.resourcemanager.storage.fluent.models.ListAccountSasResponseInner; import com.azure.resourcemanager.storage.models.AccountSasParameters; | import com.azure.core.annotation.*; import com.azure.resourcemanager.storage.fluent.models.*; import com.azure.resourcemanager.storage.models.*; | [
"com.azure.core",
"com.azure.resourcemanager"
] | com.azure.core; com.azure.resourcemanager; | 2,333,702 |
@SuppressWarnings("unchecked")
final <S,T> ObjectConverter<S,T> findEquals(final SystemConverter<S,T> converter) {
ObjectConverter<? super S, ? extends T> existing;
synchronized (converters) {
existing = get(converter);
}
if (existing != null && existing.getSourceClas... | @SuppressWarnings(STR) final <S,T> ObjectConverter<S,T> findEquals(final SystemConverter<S,T> converter) { ObjectConverter<? super S, ? extends T> existing; synchronized (converters) { existing = get(converter); } if (existing != null && existing.getSourceClass() == converter.getSourceClass()) { return findEquals(conve... | /**
* Returns a converter equals to the given {@code converter}, or {@code null} if none.
*
* @param <S> The {@code converter} source class.
* @param <T> The {@code converter} target class.
* @param converter The converter to replace by an existing converter, if possible.
* @return A co... | Returns a converter equals to the given converter, or null if none | findEquals | {
"repo_name": "desruisseaux/sis",
"path": "core/sis-utility/src/main/java/org/apache/sis/internal/converter/ConverterRegistry.java",
"license": "apache-2.0",
"size": 27397
} | [
"org.apache.sis.util.ObjectConverter"
] | import org.apache.sis.util.ObjectConverter; | import org.apache.sis.util.*; | [
"org.apache.sis"
] | org.apache.sis; | 2,400,541 |
public Expression getInnerExpression()
{
return m_expr;
} | Expression function() { return m_expr; } | /**
* Get the inner contained expression of this filter.
*/ | Get the inner contained expression of this filter | getInnerExpression | {
"repo_name": "JetBrains/jdk8u_jaxp",
"path": "src/com/sun/org/apache/xpath/internal/axes/FilterExprWalker.java",
"license": "gpl-2.0",
"size": 9945
} | [
"com.sun.org.apache.xpath.internal.Expression"
] | import com.sun.org.apache.xpath.internal.Expression; | import com.sun.org.apache.xpath.internal.*; | [
"com.sun.org"
] | com.sun.org; | 1,603,112 |
public JspWriter getPreviousOut() {
return bodyContent.getEnclosingWriter();
}
// protected fields
protected transient BodyContent bodyContent; | JspWriter function() { return bodyContent.getEnclosingWriter(); } protected transient BodyContent bodyContent; | /**
* Get surrounding out JspWriter.
*
* @return the enclosing JspWriter, from the bodyContent.
*/ | Get surrounding out JspWriter | getPreviousOut | {
"repo_name": "plumer/codana",
"path": "tomcat_files/8.0.22/BodyTagSupport.java",
"license": "mit",
"size": 4359
} | [
"javax.servlet.jsp.JspWriter"
] | import javax.servlet.jsp.JspWriter; | import javax.servlet.jsp.*; | [
"javax.servlet"
] | javax.servlet; | 1,768,735 |
public ObjectName getMbean() {
return mbean;
} | ObjectName function() { return mbean; } | /**
* Gets name used in MBean server.
*
* @return Object name of MBean.
*/ | Gets name used in MBean server | getMbean | {
"repo_name": "f7753/ignite",
"path": "modules/core/src/main/java/org/apache/ignite/internal/IgnitionEx.java",
"license": "apache-2.0",
"size": 100868
} | [
"javax.management.ObjectName"
] | import javax.management.ObjectName; | import javax.management.*; | [
"javax.management"
] | javax.management; | 231,260 |
public BufferedImage createSingleChannelImage(boolean color, int channel,
PlaneDef pDef)
{
try {
String cm = model.getColorModel();
if (!color) model.setColorModel(GREY_SCALE_MODEL);
List active = model.getActiveChannels();
for (int i = 0; i < model.getMaxC(); i++) {
model.setActive(i, channel... | BufferedImage function(boolean color, int channel, PlaneDef pDef) { try { String cm = model.getColorModel(); if (!color) model.setColorModel(GREY_SCALE_MODEL); List active = model.getActiveChannels(); for (int i = 0; i < model.getMaxC(); i++) { model.setActive(i, channel == i); } BufferedImage img = model.render(pDef);... | /**
* Implemented as specified by the {@link Renderer} interface.
* @see Renderer#createSingleChannelImage(int, Color, PlaneDef)
*/ | Implemented as specified by the <code>Renderer</code> interface | createSingleChannelImage | {
"repo_name": "bramalingam/openmicroscopy",
"path": "components/insight/SRC/org/openmicroscopy/shoola/agents/metadata/rnd/RendererComponent.java",
"license": "gpl-2.0",
"size": 36084
} | [
"java.awt.image.BufferedImage",
"java.util.Iterator",
"java.util.List"
] | import java.awt.image.BufferedImage; import java.util.Iterator; import java.util.List; | import java.awt.image.*; import java.util.*; | [
"java.awt",
"java.util"
] | java.awt; java.util; | 2,410,314 |
@Generated
@CVariable()
@MappedReturn(ObjCStringMapper.class)
public static native String UIFontDescriptorTraitsAttribute(); | @CVariable() @MappedReturn(ObjCStringMapper.class) static native String function(); | /**
* An NSDictionary instance fully describing font traits. (default: supplied by font)
*/ | An NSDictionary instance fully describing font traits. (default: supplied by font) | UIFontDescriptorTraitsAttribute | {
"repo_name": "multi-os-engine/moe-core",
"path": "moe.apple/moe.platform.ios/src/main/java/apple/uikit/c/UIKit.java",
"license": "apache-2.0",
"size": 134869
} | [
"org.moe.natj.c.ann.CVariable",
"org.moe.natj.general.ann.MappedReturn",
"org.moe.natj.objc.map.ObjCStringMapper"
] | import org.moe.natj.c.ann.CVariable; import org.moe.natj.general.ann.MappedReturn; import org.moe.natj.objc.map.ObjCStringMapper; | import org.moe.natj.c.ann.*; import org.moe.natj.general.ann.*; import org.moe.natj.objc.map.*; | [
"org.moe.natj"
] | org.moe.natj; | 1,741,598 |
void cancel(Status status);
}
private final Framer framer;
private boolean useGet;
private Metadata headers;
private boolean outboundClosed;
private volatile boolean cancelled;
protected AbstractClientStream2(WritableBufferAllocator bufferAllocator,
StatsTraceContext statsTraceCtx, Metadata... | void cancel(Status status); } final Framer framer; private boolean useGet; private Metadata headers; private boolean outboundClosed; private volatile boolean functionled; protected AbstractClientStream2(WritableBufferAllocator bufferAllocator, StatsTraceContext statsTraceCtx, Metadata headers, boolean useGet) { Precond... | /**
* Tears down the stream, typically in the event of a timeout. This method may be called
* multiple times and from any thread.
*
* <p>This is a clone of {@link ClientStream#cancel(Status)};
* {@link AbstractClientStream2#cancel} delegates to this method.
*/ | Tears down the stream, typically in the event of a timeout. This method may be called multiple times and from any thread. This is a clone of <code>ClientStream#cancel(Status)</code>; <code>AbstractClientStream2#cancel</code> delegates to this method | cancel | {
"repo_name": "gxwangdi/practice",
"path": "grpc-java/core/src/main/java/io/grpc/internal/AbstractClientStream2.java",
"license": "gpl-2.0",
"size": 13602
} | [
"com.google.common.base.Preconditions",
"io.grpc.Metadata",
"io.grpc.Status"
] | import com.google.common.base.Preconditions; import io.grpc.Metadata; import io.grpc.Status; | import com.google.common.base.*; import io.grpc.*; | [
"com.google.common",
"io.grpc"
] | com.google.common; io.grpc; | 1,737,269 |
public static Map<String, Object> handleZwaveCmdReserveNodeIds(byte[] payload) {
// Create our response map
Map<String, Object> response = new HashMap<String, Object>();
// Return the map of processed response data;
return response;
} | static Map<String, Object> function(byte[] payload) { Map<String, Object> response = new HashMap<String, Object>(); return response; } | /**
* Processes a received frame with the ZWAVE_CMD_RESERVE_NODE_IDS command.
* <p>
* Reserve Node ID
*
* @param payload the {@link byte[]} payload data to process
* @return a {@link Map} of processed response data
*/ | Processes a received frame with the ZWAVE_CMD_RESERVE_NODE_IDS command. Reserve Node ID | handleZwaveCmdReserveNodeIds | {
"repo_name": "zsmartsystems/com.zsmartsystems.zwave",
"path": "com.zsmartsystems.zwave/src/main/java/com/zsmartsystems/zwave/commandclass/impl/ZwaveCmdClassV1.java",
"license": "epl-1.0",
"size": 64368
} | [
"java.util.HashMap",
"java.util.Map"
] | import java.util.HashMap; import java.util.Map; | import java.util.*; | [
"java.util"
] | java.util; | 561,372 |
private static Set<Link> buildLinksSubSet( DBMetaData md, Set tableSubSet )
throws MraldException
{
Set<Link> linkSubSet = new HashSet<Link>();
// String tableName;
Set linkList = md.getLinkList();
Iterator linkIter = linkList.iterator();
//Loop through the LinkList,... | static Set<Link> function( DBMetaData md, Set tableSubSet ) throws MraldException { Set<Link> linkSubSet = new HashSet<Link>(); Set linkList = md.getLinkList(); Iterator linkIter = linkList.iterator(); while ( linkIter.hasNext() ) { Link link = ( Link ) linkIter.next(); if ( tableSubSet.contains( link.getPtable() ) ) {... | /**
* Produces a Set of links from the jdbc driver - all links between the
* tables contained in tableSet are included. buildTableSet() must be
* called before this method.
*
*@param md Description of the Parameter
*@param tableSubSet Description of the Parame... | Produces a Set of links from the jdbc driver - all links between the tables contained in tableSet are included. buildTableSet() must be called before this method | buildLinksSubSet | {
"repo_name": "jchoyt/mrald-lite",
"path": "src/org/mitre/mrald/util/MetaData.java",
"license": "apache-2.0",
"size": 22680
} | [
"java.util.HashSet",
"java.util.Iterator",
"java.util.Set"
] | import java.util.HashSet; import java.util.Iterator; import java.util.Set; | import java.util.*; | [
"java.util"
] | java.util; | 164,014 |
// Materials:
public static HashSet<Material> getXrayBlocks() {
HashSet<Material> materials = new HashSet<>();
materials.add(Material.COAL_ORE);
materials.add(Material.IRON_ORE);
materials.add(Material.GOLD_ORE);
materials.add(Material.LAPIS_ORE);
materials.add(Material.DIAMOND_ORE);
materials.add(M... | static HashSet<Material> function() { HashSet<Material> materials = new HashSet<>(); materials.add(Material.COAL_ORE); materials.add(Material.IRON_ORE); materials.add(Material.GOLD_ORE); materials.add(Material.LAPIS_ORE); materials.add(Material.DIAMOND_ORE); materials.add(Material.MOSSY_COBBLESTONE); return materials; ... | /**
* Gets all xray targets.
*
* @return xray targets
*/ | Gets all xray targets | getXrayBlocks | {
"repo_name": "Olyol95/Saga",
"path": "src/org/saga/statistics/XrayIndicator.java",
"license": "gpl-3.0",
"size": 5313
} | [
"java.util.HashSet",
"org.bukkit.Material"
] | import java.util.HashSet; import org.bukkit.Material; | import java.util.*; import org.bukkit.*; | [
"java.util",
"org.bukkit"
] | java.util; org.bukkit; | 2,310,915 |
public static Bson text(final String search) {
notNull("search", search);
return text(search, null);
} | static Bson function(final String search) { notNull(STR, search); return text(search, null); } | /**
* Creates a filter that matches all documents matching the given search term.
*
* @param search the search term
* @return the filter
* @mongodb.driver.manual reference/operator/query/text $text
*/ | Creates a filter that matches all documents matching the given search term | text | {
"repo_name": "kay-kim/mongo-java-driver",
"path": "driver-core/src/main/com/mongodb/client/model/Filters.java",
"license": "apache-2.0",
"size": 42464
} | [
"com.mongodb.assertions.Assertions",
"org.bson.conversions.Bson"
] | import com.mongodb.assertions.Assertions; import org.bson.conversions.Bson; | import com.mongodb.assertions.*; import org.bson.conversions.*; | [
"com.mongodb.assertions",
"org.bson.conversions"
] | com.mongodb.assertions; org.bson.conversions; | 1,849,947 |
public boolean isLocalMonitoringAvailable(ModuleClassID moduleClassID); | boolean function(ModuleClassID moduleClassID); | /**
* See if Local monitoring is available from a specific ServiceMonitor.
* Local monitoring is only available if you are using a version of
* of jxta.jar that was build with metering activated. <p>
* <p/>
* See the document:
* <UL>
* <LI> <I> Building and Configuring JXTA with Moni... | See if Local monitoring is available from a specific ServiceMonitor. Local monitoring is only available if you are using a version of of jxta.jar that was build with metering activated. See the document: Building and Configuring JXTA with Monitoring Capabilities | isLocalMonitoringAvailable | {
"repo_name": "johnjianfang/jxse",
"path": "src/main/java/net/jxta/peer/PeerInfoService.java",
"license": "apache-2.0",
"size": 15983
} | [
"net.jxta.platform.ModuleClassID"
] | import net.jxta.platform.ModuleClassID; | import net.jxta.platform.*; | [
"net.jxta.platform"
] | net.jxta.platform; | 2,409,664 |
private IDDMSComponent inputLoop(Class<?> theClass) throws IOException {
IDDMSComponent component = null;
while (component == null) {
try {
component = CONSTRUCTOR_BUILDERS.get(theClass).build();
}
catch (Exception e) {
printError(e);
}
}
return (component);
}
| IDDMSComponent function(Class<?> theClass) throws IOException { IDDMSComponent component = null; while (component == null) { try { component = CONSTRUCTOR_BUILDERS.get(theClass).build(); } catch (Exception e) { printError(e); } } return (component); } | /**
* Loops around a builder's input methods until a valid component is created,
* and then returns that component
*
* @param theClass the class of the component to build
* @return a valid component
*/ | Loops around a builder's input methods until a valid component is created, and then returns that component | inputLoop | {
"repo_name": "imintel/ddmsence",
"path": "src/samples/buri/ddmsence/samples/Escort.java",
"license": "lgpl-3.0",
"size": 26953
} | [
"java.io.IOException"
] | import java.io.IOException; | import java.io.*; | [
"java.io"
] | java.io; | 2,037,924 |
// <editor-fold defaultstate="collapsed" desc=" Generated Code ">//GEN-BEGIN:initComponents
private void initComponents() {
jPanel1 = new javax.swing.JPanel();
jScrollPane1 = new javax.swing.JScrollPane();
jTable1 = new javax.swing.JTable();
jPanel2 = new javax.swing.JPanel();
... | void function() { jPanel1 = new javax.swing.JPanel(); jScrollPane1 = new javax.swing.JScrollPane(); jTable1 = new javax.swing.JTable(); jPanel2 = new javax.swing.JPanel(); jLabel1 = new javax.swing.JLabel(); jTextField_title = new javax.swing.JTextField(); jLabel2 = new javax.swing.JLabel(); jTextField_obslen = new jav... | /** This method is called from within the constructor to
* initialize the form.
* WARNING: Do NOT modify this code. The content of this method is
* always regenerated by the Form Editor.
*/ | This method is called from within the constructor to initialize the form. always regenerated by the Form Editor | initComponents | {
"repo_name": "SixByNine/pulsarhunter",
"path": "src/pulsarhunter/displaypanels/ZapFileDisplayFrame.java",
"license": "gpl-2.0",
"size": 14996
} | [
"java.awt.BorderLayout",
"javax.swing.table.DefaultTableModel"
] | import java.awt.BorderLayout; import javax.swing.table.DefaultTableModel; | import java.awt.*; import javax.swing.table.*; | [
"java.awt",
"javax.swing"
] | java.awt; javax.swing; | 178,901 |
protected final Object invoke(Object target, Method method, Object[] args, String path) throws Exception {
try {
Object retval = method.invoke(target, args);
if (method.getReturnType() == void.class) {
retval = void.class;
}
return retval;
... | final Object function(Object target, Method method, Object[] args, String path) throws Exception { try { Object retval = method.invoke(target, args); if (method.getReturnType() == void.class) { retval = void.class; } return retval; } catch (IllegalAccessException e) { String message = messages.getMessage(MSG_KEY_DISPAT... | /**
* Convenience method to help dispatch the specified method. The method is
* invoked via reflection.
*
* @param target the target object
* @param method the method of the target object
* @param args the arguments for the method
* @param path the mapping path
* @return the ret... | Convenience method to help dispatch the specified method. The method is invoked via reflection | invoke | {
"repo_name": "davcamer/clients",
"path": "projects-for-testing/struts/core/src/main/java/org/apache/struts/dispatcher/AbstractDispatcher.java",
"license": "apache-2.0",
"size": 12351
} | [
"java.lang.reflect.InvocationTargetException",
"java.lang.reflect.Method"
] | import java.lang.reflect.InvocationTargetException; import java.lang.reflect.Method; | import java.lang.reflect.*; | [
"java.lang"
] | java.lang; | 1,655,029 |
@Test(groups = { "EnterpriseOnly" }, timeOut = 600000)
public void AONE_9287() throws Exception
{
String sysAdminObject = "Alfresco:Type=Configuration,Category=sysAdmin,id1=default";
String allowedUsers = "server.allowedusers";
String testName = getTestName();
Strin... | @Test(groups = { STR }, timeOut = 600000) void function() throws Exception { String sysAdminObject = STR; String allowedUsers = STR; String testName = getTestName(); String testUser1 = getUserNameFreeDomain(testName + "-1"); String testUser2 = getUserNameFreeDomain(testName + "-2"); try { dronePropertiesMap.get(drone).... | /**
* Test - AONE-9287:Module "sysAdmin->default", change Operations
* <ul>
* <li>2 servers are working in cluster</li>
* <li>Monitoring and Management Console go to MBeans</li>
* <li>open in sysAdmin->default Attributes bookmark</li>
* <li>Change any attribute (e.g. server.allowedus... | Test - AONE-9287:Module "sysAdmin->default", change Operations 2 servers are working in cluster Monitoring and Management Console go to MBeans open in sysAdmin->default Attributes bookmark Change any attribute (e.g. server.allowedusers) Click operation "Start" Click any operation (e.g. revert) Click operation "Start" V... | AONE_9287 | {
"repo_name": "nguyentienlong/community-edition",
"path": "projects/qa-share/src/test/java/org/alfresco/share/clustering/repository/ClusterJMX.java",
"license": "lgpl-3.0",
"size": 69991
} | [
"org.alfresco.po.share.SharePage",
"org.alfresco.share.util.JmxUtils",
"org.alfresco.share.util.ShareUser",
"org.alfresco.share.util.api.CreateUserAPI",
"org.testng.Assert",
"org.testng.annotations.Test"
] | import org.alfresco.po.share.SharePage; import org.alfresco.share.util.JmxUtils; import org.alfresco.share.util.ShareUser; import org.alfresco.share.util.api.CreateUserAPI; import org.testng.Assert; import org.testng.annotations.Test; | import org.alfresco.po.share.*; import org.alfresco.share.util.*; import org.alfresco.share.util.api.*; import org.testng.*; import org.testng.annotations.*; | [
"org.alfresco.po",
"org.alfresco.share",
"org.testng",
"org.testng.annotations"
] | org.alfresco.po; org.alfresco.share; org.testng; org.testng.annotations; | 2,036,511 |
public final List<BetweenParticipantFactor>
getBetweenParticipantFactorList() {
return betweenParticipantFactorList;
}
| final List<BetweenParticipantFactor> function() { return betweenParticipantFactorList; } | /**
* Gets the between participant factor list.
*
* @return the between participant factor list
*/ | Gets the between participant factor list | getBetweenParticipantFactorList | {
"repo_name": "SampleSizeShop/WebServiceCommon",
"path": "src/edu/ucdenver/bios/webservice/common/domain/StudyDesign.java",
"license": "gpl-2.0",
"size": 37979
} | [
"java.util.List"
] | import java.util.List; | import java.util.*; | [
"java.util"
] | java.util; | 897,632 |
protected static Path getLocalRunfilesDirectory(TestRunnerAction testAction,
ActionExecutionContext actionExecutionContext, BinTools binTools) throws ExecException,
InterruptedException {
TestTargetExecutionSettings execSettings = testAction.getExecutionSettings();
// If the symlink farm is alrea... | static Path function(TestRunnerAction testAction, ActionExecutionContext actionExecutionContext, BinTools binTools) throws ExecException, InterruptedException { TestTargetExecutionSettings execSettings = testAction.getExecutionSettings(); if (execSettings.getRunfilesSymlinksCreated()) { return execSettings.getRunfilesD... | /**
* Returns the runfiles directory associated with the test executable,
* creating/updating it if necessary and --build_runfile_links is specified.
*/ | Returns the runfiles directory associated with the test executable, creating/updating it if necessary and --build_runfile_links is specified | getLocalRunfilesDirectory | {
"repo_name": "hhclam/bazel",
"path": "src/main/java/com/google/devtools/build/lib/rules/test/TestStrategy.java",
"license": "apache-2.0",
"size": 18575
} | [
"com.google.devtools.build.lib.actions.ActionExecutionContext",
"com.google.devtools.build.lib.actions.ExecException",
"com.google.devtools.build.lib.analysis.config.BinTools",
"com.google.devtools.build.lib.profiler.Profiler",
"com.google.devtools.build.lib.profiler.ProfilerTask",
"com.google.devtools.bu... | import com.google.devtools.build.lib.actions.ActionExecutionContext; import com.google.devtools.build.lib.actions.ExecException; import com.google.devtools.build.lib.analysis.config.BinTools; import com.google.devtools.build.lib.profiler.Profiler; import com.google.devtools.build.lib.profiler.ProfilerTask; import com.g... | import com.google.devtools.build.lib.actions.*; import com.google.devtools.build.lib.analysis.config.*; import com.google.devtools.build.lib.profiler.*; import com.google.devtools.build.lib.vfs.*; | [
"com.google.devtools"
] | com.google.devtools; | 1,849,992 |
public static junit.framework.Test suite() {
try {assert false; throw new IllegalStateException("need -ea");}
catch (AssertionError e) {}
return new TestSuite(GaussNewtonSolverTest.class);
} | static junit.framework.Test function() { try {assert false; throw new IllegalStateException(STR);} catch (AssertionError e) {} return new TestSuite(GaussNewtonSolverTest.class); } | /** This automatically generates a suite of all "test" methods
* @return junit test */ | This automatically generates a suite of all "test" methods | suite | {
"repo_name": "ctrueden/jtk",
"path": "src/test/java/edu/mines/jtk/opt/GaussNewtonSolverTest.java",
"license": "epl-1.0",
"size": 11573
} | [
"junit.framework.TestSuite"
] | import junit.framework.TestSuite; | import junit.framework.*; | [
"junit.framework"
] | junit.framework; | 1,404,364 |
public List<IPersonAttributes> searchForPeople(final IPerson searcher, final Map<String, Object> query); | List<IPersonAttributes> function(final IPerson searcher, final Map<String, Object> query); | /**
* Search for people matching the specified query, limited to the permissions
* of the searching user. Both the returned person list and the attributes
* of the returned people will be filtered according to the searching user's
* permissions.
*
* @param searcher
* @param query
... | Search for people matching the specified query, limited to the permissions of the searching user. Both the returned person list and the attributes of the returned people will be filtered according to the searching user's permissions | searchForPeople | {
"repo_name": "Mines-Albi/esup-uportal",
"path": "uportal-war/src/main/java/org/jasig/portal/portlets/lookup/IPersonLookupHelper.java",
"license": "apache-2.0",
"size": 4762
} | [
"java.util.List",
"java.util.Map",
"org.jasig.portal.security.IPerson",
"org.jasig.services.persondir.IPersonAttributes"
] | import java.util.List; import java.util.Map; import org.jasig.portal.security.IPerson; import org.jasig.services.persondir.IPersonAttributes; | import java.util.*; import org.jasig.portal.security.*; import org.jasig.services.persondir.*; | [
"java.util",
"org.jasig.portal",
"org.jasig.services"
] | java.util; org.jasig.portal; org.jasig.services; | 1,175,537 |
public void show(AssistantPage firstPage, Rectangle bounds) {
initPage(firstPage);
setCurrentPage(firstPage);
if (bounds == null) {
dialog.setSize(480, 320);
UIUtils.centerComponent(dialog, dialog.getParent());
} else {
dialog.setBounds(bounds);
... | void function(AssistantPage firstPage, Rectangle bounds) { initPage(firstPage); setCurrentPage(firstPage); if (bounds == null) { dialog.setSize(480, 320); UIUtils.centerComponent(dialog, dialog.getParent()); } else { dialog.setBounds(bounds); } dialog.setVisible(true); } | /**
* Displays the dialog if this {@code AssistantPane} with
* the given {@link AssistantPage page} as first page.
*
* @param firstPage The first page which is displayed in the dialog.
* @param bounds The screen bounds of the window, may be {@code null}.
*/ | Displays the dialog if this AssistantPane with the given <code>AssistantPage page</code> as first page | show | {
"repo_name": "arraydev/snap-desktop",
"path": "snap-ui/src/main/java/org/esa/snap/framework/ui/assistant/AssistantPane.java",
"license": "gpl-3.0",
"size": 9189
} | [
"java.awt.Rectangle",
"org.esa.snap.framework.ui.UIUtils"
] | import java.awt.Rectangle; import org.esa.snap.framework.ui.UIUtils; | import java.awt.*; import org.esa.snap.framework.ui.*; | [
"java.awt",
"org.esa.snap"
] | java.awt; org.esa.snap; | 76,654 |
@Override
public void onCheckedChanged(CompoundButton compound, boolean isChecked) {
if (!isResumed()) {
// very important, setCheched(...) is called automatically during
// Fragment recreation on device rotations
return;
}
... | void function(CompoundButton compound, boolean isChecked) { if (!isResumed()) { return; } CompoundButton subordinate; switch(compound.getId()) { case R.id.canShareSwitch: Log_OC.v(TAG, STR + isChecked); updatePermissionsToShare(); break; case R.id.canEditSwitch: Log_OC.v(TAG, STR + isChecked); if (mFile.isFolder()) { i... | /**
* Called by every {@link Switch} and {@link CheckBox} in the fragment to update
* the state of its associated permission.
*
* @param compound {@link CompoundButton} toggled by the user
* @param isChecked New switch state.
*/ | Called by every <code>Switch</code> and <code>CheckBox</code> in the fragment to update the state of its associated permission | onCheckedChanged | {
"repo_name": "dexterfichuk/Healthpass",
"path": "src/com/owncloud/android/ui/fragment/EditShareFragment.java",
"license": "gpl-2.0",
"size": 19121
} | [
"android.view.View",
"android.widget.CompoundButton"
] | import android.view.View; import android.widget.CompoundButton; | import android.view.*; import android.widget.*; | [
"android.view",
"android.widget"
] | android.view; android.widget; | 1,727,995 |
public SearchSourceBuilder filter(XContentBuilder filter) {
return filter(filter.bytes());
} | SearchSourceBuilder function(XContentBuilder filter) { return filter(filter.bytes()); } | /**
* Constructs a new search source builder with a query from a builder.
*/ | Constructs a new search source builder with a query from a builder | filter | {
"repo_name": "exercitussolus/yolo",
"path": "src/main/java/org/elasticsearch/search/builder/SearchSourceBuilder.java",
"license": "agpl-3.0",
"size": 27772
} | [
"org.elasticsearch.common.xcontent.XContentBuilder"
] | import org.elasticsearch.common.xcontent.XContentBuilder; | import org.elasticsearch.common.xcontent.*; | [
"org.elasticsearch.common"
] | org.elasticsearch.common; | 967,166 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.