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
default void createTable(ConnectorSession session, ConnectorTableMetadata tableMetadata, boolean ignoreExisting) { throw new TrinoException(NOT_SUPPORTED, "This connector does not support creating tables"); }
default void createTable(ConnectorSession session, ConnectorTableMetadata tableMetadata, boolean ignoreExisting) { throw new TrinoException(NOT_SUPPORTED, STR); }
/** * Creates a table using the specified table metadata. * * @throws TrinoException with {@code ALREADY_EXISTS} if the table already exists and {@param ignoreExisting} is not set */
Creates a table using the specified table metadata
createTable
{ "repo_name": "electrum/presto", "path": "core/trino-spi/src/main/java/io/trino/spi/connector/ConnectorMetadata.java", "license": "apache-2.0", "size": 48062 }
[ "io.trino.spi.TrinoException" ]
import io.trino.spi.TrinoException;
import io.trino.spi.*;
[ "io.trino.spi" ]
io.trino.spi;
2,402,618
protected void populateResultWarningMessages(DocumentSearchResults searchResults) { // check various warning conditions boolean overThreshold = searchResults.isOverThreshold(); int numFiltered = searchResults.getNumberOfSecurityFilteredResults(); int numResults = searchResults.getSea...
void function(DocumentSearchResults searchResults) { boolean overThreshold = searchResults.isOverThreshold(); int numFiltered = searchResults.getNumberOfSecurityFilteredResults(); int numResults = searchResults.getSearchResults().size(); if (overThreshold && numFiltered > 0) { GlobalVariables.getMessageMap().putWarning...
/** * Inspects the lookup results to determine if any warning messages should be published to the message map. */
Inspects the lookup results to determine if any warning messages should be published to the message map
populateResultWarningMessages
{ "repo_name": "ricepanda/rice-git3", "path": "rice-middleware/impl/src/main/java/org/kuali/rice/kew/impl/document/search/DocumentSearchCriteriaBoLookupableHelperService.java", "license": "apache-2.0", "size": 51947 }
[ "org.kuali.rice.kew.api.document.search.DocumentSearchResults", "org.kuali.rice.krad.util.GlobalVariables", "org.kuali.rice.krad.util.KRADConstants" ]
import org.kuali.rice.kew.api.document.search.DocumentSearchResults; import org.kuali.rice.krad.util.GlobalVariables; import org.kuali.rice.krad.util.KRADConstants;
import org.kuali.rice.kew.api.document.search.*; import org.kuali.rice.krad.util.*;
[ "org.kuali.rice" ]
org.kuali.rice;
281,149
public Map.Entry<K,V> pollFirstEntry() { return (SnapshotEntry<K,V>)doRemoveFirst(false); }
Map.Entry<K,V> function() { return (SnapshotEntry<K,V>)doRemoveFirst(false); }
/** * Removes and returns a key-value mapping associated with * the least key in this map, or <tt>null</tt> if the map is empty. * The returned entry does <em>not</em> support * the <tt>Entry.setValue</tt> method. * * @return the removed first entry of this map, or <tt>null</tt> * if ...
Removes and returns a key-value mapping associated with the least key in this map, or null if the map is empty. The returned entry does not support the Entry.setValue method
pollFirstEntry
{ "repo_name": "jboss/jboss-common-core", "path": "src/main/java/org/jboss/util/collection/ConcurrentSkipListMap.java", "license": "apache-2.0", "size": 129327 }
[ "java.util.Map" ]
import java.util.Map;
import java.util.*;
[ "java.util" ]
java.util;
15,252
@Override public void sort(Comparator queueComparator) { return; }
void function(Comparator queueComparator) { return; }
/** * Dont do anything in sort , this is leaf level queue. * * @param queueComparator */
Dont do anything in sort , this is leaf level queue
sort
{ "repo_name": "apache/hadoop-mapreduce", "path": "src/contrib/capacity-scheduler/src/java/org/apache/hadoop/mapred/JobQueue.java", "license": "apache-2.0", "size": 13972 }
[ "java.util.Comparator" ]
import java.util.Comparator;
import java.util.*;
[ "java.util" ]
java.util;
1,139,335
public int getTeleportCost(Vec3d pos1, Vec3d pos2) { double xDiff = pos1.x - pos2.x; double yDiff = pos1.y - pos2.y; double zDiff = pos1.z - pos2.z; return (int)(TELEPORTATION_EC_COST * Math.sqrt(xDiff * xDiff + yDiff * yDiff + zDiff * zDiff)); }
int function(Vec3d pos1, Vec3d pos2) { double xDiff = pos1.x - pos2.x; double yDiff = pos1.y - pos2.y; double zDiff = pos1.z - pos2.z; return (int)(TELEPORTATION_EC_COST * Math.sqrt(xDiff * xDiff + yDiff * yDiff + zDiff * zDiff)); }
/** * Returns the cost of teleportation for the amount of distance between the given coordinates */
Returns the cost of teleportation for the amount of distance between the given coordinates
getTeleportCost
{ "repo_name": "maruohon/enderutilities", "path": "src/main/java/fi/dy/masa/enderutilities/item/ItemPortalScaler.java", "license": "gpl-3.0", "size": 17511 }
[ "net.minecraft.util.math.Vec3d" ]
import net.minecraft.util.math.Vec3d;
import net.minecraft.util.math.*;
[ "net.minecraft.util" ]
net.minecraft.util;
908,023
public void writeLine(String text) throws IOException { write(text); out.newLine(); }
void function(String text) throws IOException { write(text); out.newLine(); }
/** * Write a line of text, followed by a newline. * The text will be escaped as necessary. * @param text the text to be written. * @throws IOException if there is a problem closing the underlying stream */
Write a line of text, followed by a newline. The text will be escaped as necessary
writeLine
{ "repo_name": "Distrotech/icedtea7-2.3", "path": "test/jtreg/com/sun/javatest/util/HTMLWriter.java", "license": "gpl-2.0", "size": 20661 }
[ "java.io.IOException" ]
import java.io.IOException;
import java.io.*;
[ "java.io" ]
java.io;
2,155,721
public Set<RexNode> getExpressionLineage(Join rel, RelMetadataQuery mq, RexNode outputExpression) { final RexBuilder rexBuilder = rel.getCluster().getRexBuilder(); final RelNode leftInput = rel.getLeft(); final RelNode rightInput = rel.getRight(); final int nLeftColumns = leftInput.getRowType()....
Set<RexNode> function(Join rel, RelMetadataQuery mq, RexNode outputExpression) { final RexBuilder rexBuilder = rel.getCluster().getRexBuilder(); final RelNode leftInput = rel.getLeft(); final RelNode rightInput = rel.getRight(); final int nLeftColumns = leftInput.getRowType().getFieldList().size(); final ImmutableBitSe...
/** * Expression lineage from {@link Join}. * * <p>We only extract the lineage for INNER joins. */
Expression lineage from <code>Join</code>. We only extract the lineage for INNER joins
getExpressionLineage
{ "repo_name": "googleinterns/calcite", "path": "core/src/main/java/org/apache/calcite/rel/metadata/RelMdExpressionLineage.java", "license": "apache-2.0", "size": 19106 }
[ "com.google.common.collect.HashMultimap", "com.google.common.collect.ImmutableList", "com.google.common.collect.ImmutableSet", "com.google.common.collect.Iterables", "com.google.common.collect.Multimap", "java.util.Collection", "java.util.HashMap", "java.util.LinkedHashMap", "java.util.List", "jav...
import com.google.common.collect.HashMultimap; import com.google.common.collect.ImmutableList; import com.google.common.collect.ImmutableSet; import com.google.common.collect.Iterables; import com.google.common.collect.Multimap; import java.util.Collection; import java.util.HashMap; import java.util.LinkedHashMap; impo...
import com.google.common.collect.*; import java.util.*; import org.apache.calcite.rel.*; import org.apache.calcite.rel.core.*; import org.apache.calcite.rel.type.*; import org.apache.calcite.rex.*; import org.apache.calcite.sql.validate.*; import org.apache.calcite.util.*;
[ "com.google.common", "java.util", "org.apache.calcite" ]
com.google.common; java.util; org.apache.calcite;
112,834
final public void finishFragmentByStep(int step) { Activity activity = getActivity(); if (activity == null) { throw new IllegalStateException("Fragment " + this + " not attached to Activity"); } List<android.support.v4.app.Fragment> list = getFragmen...
final void function(int step) { Activity activity = getActivity(); if (activity == null) { throw new IllegalStateException(STR + this + STR); } List<android.support.v4.app.Fragment> list = getFragmentManager().getFragments(); if ( list == null list.size() < step) { throw new IllegalStateException(STR); } for (int i = 0...
/** * close several fragment by step * * @param step the number of the fragments which will be finished. * */
close several fragment by step
finishFragmentByStep
{ "repo_name": "RyanTech/android-core", "path": "lib/src/main/java/com/github/snowdream/android/support/Fragment.java", "license": "apache-2.0", "size": 2108 }
[ "android.app.Activity", "java.util.List" ]
import android.app.Activity; import java.util.List;
import android.app.*; import java.util.*;
[ "android.app", "java.util" ]
android.app; java.util;
166,523
public static boolean hasAnnotationDeep(Class<?> clazz, Class<? extends Annotation> annotationClass) { if (clazz.equals(annotationClass)) { return true; } for (Annotation anno : clazz.getAnnotations()) { Class<? extends Annotation> annoClass = anno.annotationType();...
static boolean function(Class<?> clazz, Class<? extends Annotation> annotationClass) { if (clazz.equals(annotationClass)) { return true; } for (Annotation anno : clazz.getAnnotations()) { Class<? extends Annotation> annoClass = anno.annotationType(); if (!annoClass.getPackage().getName().startsWith(JAVA_LANG) && hasAnn...
/** * Check if the class clazz has the annotation annotationClass up in the hierarchy. * * @param clazz The class to search from. * @param annotationClass The annotation class to search. * @return true if annotation is present, false otherwise. */
Check if the class clazz has the annotation annotationClass up in the hierarchy
hasAnnotationDeep
{ "repo_name": "tbouvet/seed", "path": "core/src/main/java/org/seedstack/seed/core/utils/SeedReflectionUtils.java", "license": "mpl-2.0", "size": 21192 }
[ "java.lang.annotation.Annotation" ]
import java.lang.annotation.Annotation;
import java.lang.annotation.*;
[ "java.lang" ]
java.lang;
1,803,027
void addTab( String title, IRIcon ricon, Producer< JComponent > tabProducer, boolean addTabMnemonic );
void addTab( String title, IRIcon ricon, Producer< JComponent > tabProducer, boolean addTabMnemonic );
/** * Adds a new, lazily created non-closeable tab. * * @param title title of the tab * @param ricon ricon of the tab * @param tabProducer tab component producer * @param addTabMnemonic tells if a tab mnemonic has to be added */
Adds a new, lazily created non-closeable tab
addTab
{ "repo_name": "icza/scelight", "path": "src-ext-mod-api/hu/scelightapi/gui/comp/ITabbedPane.java", "license": "apache-2.0", "size": 4132 }
[ "hu.scelightapibase.gui.icon.IRIcon", "hu.scelightapibase.util.iface.Producer", "javax.swing.JComponent" ]
import hu.scelightapibase.gui.icon.IRIcon; import hu.scelightapibase.util.iface.Producer; import javax.swing.JComponent;
import hu.scelightapibase.gui.icon.*; import hu.scelightapibase.util.iface.*; import javax.swing.*;
[ "hu.scelightapibase.gui", "hu.scelightapibase.util", "javax.swing" ]
hu.scelightapibase.gui; hu.scelightapibase.util; javax.swing;
1,386,498
private void addListeners() { passwordField.addKeyListener(new KeyListener() { @Override public void keyTyped(KeyEvent e) {}
void function() { passwordField.addKeyListener(new KeyListener() { public void keyTyped(KeyEvent e) {}
/** * Add listeners to password field and submit button that will call attemptLogIn */
Add listeners to password field and submit button that will call attemptLogIn
addListeners
{ "repo_name": "sehcheese/food-pantry-manager", "path": "Food Pantry Manager/src/gui/LogIn.java", "license": "gpl-3.0", "size": 3530 }
[ "java.awt.event.KeyEvent", "java.awt.event.KeyListener" ]
import java.awt.event.KeyEvent; import java.awt.event.KeyListener;
import java.awt.event.*;
[ "java.awt" ]
java.awt;
2,347,442
@Override public boolean doPostDeleteUser(String userName, UserStoreManager userStoreManager) throws UserStoreException { if (!isEnable()) { return true; } // remove from the identity store try { IdentityMgtConfig.getInstance().getIdentityDat...
boolean function(String userName, UserStoreManager userStoreManager) throws UserStoreException { if (!isEnable()) { return true; } try { IdentityMgtConfig.getInstance().getIdentityDataStore() .remove(userName, userStoreManager); } catch (IdentityException e) { throw new UserStoreException(STR + userName + STR, e); } Us...
/** * Deleting user from the identity database. What are the registry keys ? */
Deleting user from the identity database. What are the registry keys
doPostDeleteUser
{ "repo_name": "PasinduTennage/carbon-identity-framework", "path": "components/identity-mgt/org.wso2.carbon.identity.mgt/src/main/java/org/wso2/carbon/identity/mgt/IdentityMgtEventListener.java", "license": "apache-2.0", "size": 56540 }
[ "org.wso2.carbon.identity.base.IdentityException", "org.wso2.carbon.identity.mgt.constants.IdentityMgtConstants", "org.wso2.carbon.identity.mgt.internal.IdentityMgtServiceComponent", "org.wso2.carbon.registry.core.RegistryConstants", "org.wso2.carbon.registry.core.exceptions.RegistryException", "org.wso2....
import org.wso2.carbon.identity.base.IdentityException; import org.wso2.carbon.identity.mgt.constants.IdentityMgtConstants; import org.wso2.carbon.identity.mgt.internal.IdentityMgtServiceComponent; import org.wso2.carbon.registry.core.RegistryConstants; import org.wso2.carbon.registry.core.exceptions.RegistryException;...
import org.wso2.carbon.identity.base.*; import org.wso2.carbon.identity.mgt.constants.*; import org.wso2.carbon.identity.mgt.internal.*; import org.wso2.carbon.registry.core.*; import org.wso2.carbon.registry.core.exceptions.*; import org.wso2.carbon.registry.core.session.*; import org.wso2.carbon.user.core.*;
[ "org.wso2.carbon" ]
org.wso2.carbon;
1,711,391
public Observable<ServiceResponse<FirewallPolicyRuleCollectionGroupInner>> getWithServiceResponseAsync(String resourceGroupName, String firewallPolicyName, String ruleCollectionGroupName) { if (resourceGroupName == null) { throw new IllegalArgumentException("Parameter resourceGroupName is requir...
Observable<ServiceResponse<FirewallPolicyRuleCollectionGroupInner>> function(String resourceGroupName, String firewallPolicyName, String ruleCollectionGroupName) { if (resourceGroupName == null) { throw new IllegalArgumentException(STR); } if (firewallPolicyName == null) { throw new IllegalArgumentException(STR); } if ...
/** * Gets the specified FirewallPolicyRuleCollectionGroup. * * @param resourceGroupName The name of the resource group. * @param firewallPolicyName The name of the Firewall Policy. * @param ruleCollectionGroupName The name of the FirewallPolicyRuleCollectionGroup. * @throws IllegalArgumen...
Gets the specified FirewallPolicyRuleCollectionGroup
getWithServiceResponseAsync
{ "repo_name": "selvasingh/azure-sdk-for-java", "path": "sdk/network/mgmt-v2020_05_01/src/main/java/com/microsoft/azure/management/network/v2020_05_01/implementation/FirewallPolicyRuleCollectionGroupsInner.java", "license": "mit", "size": 49922 }
[ "com.microsoft.rest.ServiceResponse" ]
import com.microsoft.rest.ServiceResponse;
import com.microsoft.rest.*;
[ "com.microsoft.rest" ]
com.microsoft.rest;
443,345
public static Callable<Void> toCallable(Runnable runnable) { return () -> { runnable.run(); return null; }; }
static Callable<Void> function(Runnable runnable) { return () -> { runnable.run(); return null; }; }
/** * Turns a Runnable into a Void Callable in order to submit it to the rule for execution * * @param runnable a Runnable to convert to a Callable * @return a Callable with Void return type */
Turns a Runnable into a Void Callable in order to submit it to the rule for execution
toCallable
{ "repo_name": "smgoller/geode", "path": "geode-junit/src/main/java/org/apache/geode/test/junit/rules/ConcurrencyRule.java", "license": "apache-2.0", "size": 17788 }
[ "java.util.concurrent.Callable" ]
import java.util.concurrent.Callable;
import java.util.concurrent.*;
[ "java.util" ]
java.util;
1,908,975
public static Image scaleToFit(final BufferedImage img, final int w, final int h) { final int iw = img.getWidth(), ih = img.getHeight(); if (iw <= w && ih <= h) { return img; } int nw = h * iw / ih, nh = h; if (nw > w) { nw = w; nh = w * ih / iw; } return img.getS...
static Image function(final BufferedImage img, final int w, final int h) { final int iw = img.getWidth(), ih = img.getHeight(); if (iw <= w && ih <= h) { return img; } int nw = h * iw / ih, nh = h; if (nw > w) { nw = w; nh = w * ih / iw; } return img.getScaledInstance(Math.max(nw, 1), Math.max(nh, 1), Image.SCALE_AREA_...
/** * Scale an image proportionally so that it fits into the given lengths. * * @param img image * @param w width * @param h height * @return scaled image */
Scale an image proportionally so that it fits into the given lengths
scaleToFit
{ "repo_name": "LeoWoerteler/ChartyGUI", "path": "src/de/woerteler/util/ImageUtils.java", "license": "mit", "size": 2554 }
[ "java.awt.Image", "java.awt.image.BufferedImage" ]
import java.awt.Image; import java.awt.image.BufferedImage;
import java.awt.*; import java.awt.image.*;
[ "java.awt" ]
java.awt;
1,341,265
@Test public void parseReader() { // Setup. final String bitSetString = "2\n4\n6\n8\n10\n"; final Reader reader = new StringReader(bitSetString); final BitSetFormat formatter = new BitSetFormat(); // Run. final BitSet result = formatter.parse(reader); ...
void function() { final String bitSetString = STR; final Reader reader = new StringReader(bitSetString); final BitSetFormat formatter = new BitSetFormat(); final BitSet result = formatter.parse(reader); verifyBitSet(result); }
/** * Test the <code>parse()</code> method. */
Test the <code>parse()</code> method
parseReader
{ "repo_name": "jmthompson2015/vizzini", "path": "game/illyriad/src/test/java/org/vizzini/illyriad/map/BitSetFormatTest.java", "license": "mit", "size": 3357 }
[ "java.io.Reader", "java.io.StringReader", "java.util.BitSet" ]
import java.io.Reader; import java.io.StringReader; import java.util.BitSet;
import java.io.*; import java.util.*;
[ "java.io", "java.util" ]
java.io; java.util;
538,947
protected String buildMessage() { StringBuffer sb = new StringBuffer(); sb.append(text).append(Const.CR); if (stepList != null) { for (Iterator<String> it = stepList.iterator(); it.hasNext(); ) { sb.append(" - ").append(it.next()).append(Const.CR); //$NON-NLS-1$ } } return sb....
String function() { StringBuffer sb = new StringBuffer(); sb.append(text).append(Const.CR); if (stepList != null) { for (Iterator<String> it = stepList.iterator(); it.hasNext(); ) { sb.append(STR).append(it.next()).append(Const.CR); } } return sb.toString(); }
/** * Builds a message from the text and the stepList * @return */
Builds a message from the text and the stepList
buildMessage
{ "repo_name": "yintaoxue/read-open-source-code", "path": "kettle4.3/src/org/pentaho/di/ui/spoon/dialog/DeleteMessageBox.java", "license": "apache-2.0", "size": 3070 }
[ "java.util.Iterator", "org.pentaho.di.core.Const" ]
import java.util.Iterator; import org.pentaho.di.core.Const;
import java.util.*; import org.pentaho.di.core.*;
[ "java.util", "org.pentaho.di" ]
java.util; org.pentaho.di;
488,045
public List<?> getCustomAttributeValues() { return customAttributeValues; }
List<?> function() { return customAttributeValues; }
/** * Method getCustomAttributeValues returns the attributeValues of this SamlAttribute object. * * @return the attributeValues (type List) of this SamlAttribute object. */
Method getCustomAttributeValues returns the attributeValues of this SamlAttribute object
getCustomAttributeValues
{ "repo_name": "fatfredyy/wss4j-ecc", "path": "src/main/java/org/apache/ws/security/saml/ext/bean/AttributeBean.java", "license": "apache-2.0", "size": 6779 }
[ "java.util.List" ]
import java.util.List;
import java.util.*;
[ "java.util" ]
java.util;
729,579
protected void setErrorStream(OutputStream errorStream) { this.errorStream = errorStream; }
void function(OutputStream errorStream) { this.errorStream = errorStream; }
/** * sets a stream to which the stderr from the cvs exe should go * * @param errorStream an output stream willing to process stderr */
sets a stream to which the stderr from the cvs exe should go
setErrorStream
{ "repo_name": "eclipse/hudson.plugins.cvs", "path": "src/main/java/hudson/org/apache/tools/ant/taskdefs/AbstractCvsTask.java", "license": "apache-2.0", "size": 25502 }
[ "java.io.OutputStream" ]
import java.io.OutputStream;
import java.io.*;
[ "java.io" ]
java.io;
2,257,304
public Set<Message> getMessages() { return newSet(messages.values()); }
Set<Message> function() { return newSet(messages.values()); }
/** * Returns the collected messages. */
Returns the collected messages
getMessages
{ "repo_name": "cs-au-dk/TAJS", "path": "src/dk/brics/tajs/monitoring/AnalysisMonitor.java", "license": "apache-2.0", "size": 66064 }
[ "dk.brics.tajs.solver.Message", "dk.brics.tajs.util.Collections", "java.util.Set" ]
import dk.brics.tajs.solver.Message; import dk.brics.tajs.util.Collections; import java.util.Set;
import dk.brics.tajs.solver.*; import dk.brics.tajs.util.*; import java.util.*;
[ "dk.brics.tajs", "java.util" ]
dk.brics.tajs; java.util;
2,700,158
public Enumeration getPictures () { return (mRegions.elements ()); }
Enumeration function () { return (mRegions.elements ()); }
/** * Get the list of pictures. * @return An enumeration over the picture objects in this set. */
Get the list of pictures
getPictures
{ "repo_name": "besom/bbossgroups-mvn", "path": "bboss_taglib/src/main/java/org/htmlparser/lexerapplications/thumbelina/TileSet.java", "license": "apache-2.0", "size": 16462 }
[ "java.util.Enumeration" ]
import java.util.Enumeration;
import java.util.*;
[ "java.util" ]
java.util;
1,786,902
Variable getVariable(String name) { VarKey varKey = VarKey.create(Kind.USER_DEFINED, name); return getVariable(varKey); }
Variable getVariable(String name) { VarKey varKey = VarKey.create(Kind.USER_DEFINED, name); return getVariable(varKey); }
/** * Looks up a user defined variable with the given name. The variable must have been created in a * currently active scope. */
Looks up a user defined variable with the given name. The variable must have been created in a currently active scope
getVariable
{ "repo_name": "Medium/closure-templates", "path": "java/src/com/google/template/soy/jbcsrc/TemplateVariableManager.java", "license": "apache-2.0", "size": 24360 }
[ "com.google.template.soy.jbcsrc.TemplateVariableManager" ]
import com.google.template.soy.jbcsrc.TemplateVariableManager;
import com.google.template.soy.jbcsrc.*;
[ "com.google.template" ]
com.google.template;
498,746
public void removeChildren(X3DNode[] val) { if ( removeChildren == null ) { removeChildren = (MFNode)getField( "removeChildren" ); } removeChildren.setValue( val.length, val ); }
void function(X3DNode[] val) { if ( removeChildren == null ) { removeChildren = (MFNode)getField( STR ); } removeChildren.setValue( val.length, val ); }
/** Set the removeChildren field. * @param val The X3DNode[] to set. */
Set the removeChildren field
removeChildren
{ "repo_name": "Norkart/NK-VirtualGlobe", "path": "Xj3D/src/java/org/xj3d/sai/external/node/pickingsensor/SAIPickableGroup.java", "license": "gpl-2.0", "size": 5591 }
[ "org.web3d.x3d.sai.MFNode", "org.web3d.x3d.sai.X3DNode" ]
import org.web3d.x3d.sai.MFNode; import org.web3d.x3d.sai.X3DNode;
import org.web3d.x3d.sai.*;
[ "org.web3d.x3d" ]
org.web3d.x3d;
456,306
session.getTransactionalEditingDomain().getCommandStack() .execute(new DeleteRepresentationCommand(session, Sets.newHashSet(representation))); }
session.getTransactionalEditingDomain().getCommandStack() .execute(new DeleteRepresentationCommand(session, Sets.newHashSet(representation))); }
/** * delete the representation. */
delete the representation
run
{ "repo_name": "ldelaigue/M2Doc", "path": "plugins/org.obeonetwork.m2doc.sirius/src/org/obeonetwork/m2doc/sirius/session/CleaningAIRDJob.java", "license": "epl-1.0", "size": 1887 }
[ "com.google.common.collect.Sets", "org.eclipse.sirius.business.api.dialect.command.DeleteRepresentationCommand" ]
import com.google.common.collect.Sets; import org.eclipse.sirius.business.api.dialect.command.DeleteRepresentationCommand;
import com.google.common.collect.*; import org.eclipse.sirius.business.api.dialect.command.*;
[ "com.google.common", "org.eclipse.sirius" ]
com.google.common; org.eclipse.sirius;
303,745
GridFutureAdapter<MetadataUpdateResult> requestUpToDateMetadata(int typeId) { ClientMetadataRequestFuture newFut = new ClientMetadataRequestFuture(ctx, typeId, clientReqSyncMap); ClientMetadataRequestFuture oldFut = clientReqSyncMap.putIfAbsent(typeId, newFut); if (oldFut != null) ...
GridFutureAdapter<MetadataUpdateResult> requestUpToDateMetadata(int typeId) { ClientMetadataRequestFuture newFut = new ClientMetadataRequestFuture(ctx, typeId, clientReqSyncMap); ClientMetadataRequestFuture oldFut = clientReqSyncMap.putIfAbsent(typeId, newFut); if (oldFut != null) return oldFut; newFut.requestMetadata(...
/** * Allows client node to request latest version of binary metadata for a given typeId from the cluster * in case client is able to detect that it has obsolete metadata in its local cache. * * @param typeId ID of binary type. * @return future to wait for request arrival on. */
Allows client node to request latest version of binary metadata for a given typeId from the cluster in case client is able to detect that it has obsolete metadata in its local cache
requestUpToDateMetadata
{ "repo_name": "ntikhonov/ignite", "path": "modules/core/src/main/java/org/apache/ignite/internal/processors/cache/binary/BinaryMetadataTransport.java", "license": "apache-2.0", "size": 24601 }
[ "org.apache.ignite.internal.util.future.GridFutureAdapter" ]
import org.apache.ignite.internal.util.future.GridFutureAdapter;
import org.apache.ignite.internal.util.future.*;
[ "org.apache.ignite" ]
org.apache.ignite;
2,662,333
protected Node exitNotifications(Token node) throws ParseException { return node; }
Node function(Token node) throws ParseException { return node; }
/** * Called when exiting a parse tree node. * * @param node the node being exited * * @return the node to add to the parse tree, or * null if no parse tree should be created * * @throws ParseException if the node analysis discovered errors */
Called when exiting a parse tree node
exitNotifications
{ "repo_name": "richb-hanover/mibble-2.9.2", "path": "src/java/net/percederberg/mibble/asn1/Asn1Analyzer.java", "license": "gpl-2.0", "size": 275483 }
[ "net.percederberg.grammatica.parser.Node", "net.percederberg.grammatica.parser.ParseException", "net.percederberg.grammatica.parser.Token" ]
import net.percederberg.grammatica.parser.Node; import net.percederberg.grammatica.parser.ParseException; import net.percederberg.grammatica.parser.Token;
import net.percederberg.grammatica.parser.*;
[ "net.percederberg.grammatica" ]
net.percederberg.grammatica;
447,486
public static <T, K, V> MutableMap<K, V> toMap( Iterable<T> iterable, Function<? super T, ? extends K> keyFunction, Function<? super T, ? extends V> valueFunction) { return Iterate.addToMap(iterable, keyFunction, valueFunction, UnifiedMap.<K, V>newMap()); }
static <T, K, V> MutableMap<K, V> function( Iterable<T> iterable, Function<? super T, ? extends K> keyFunction, Function<? super T, ? extends V> valueFunction) { return Iterate.addToMap(iterable, keyFunction, valueFunction, UnifiedMap.<K, V>newMap()); }
/** * Iterate over the specified collection applying the specified Functions to each element to calculate * a key and value, and return the results as a Map. */
Iterate over the specified collection applying the specified Functions to each element to calculate a key and value, and return the results as a Map
toMap
{ "repo_name": "jlz27/gs-collections", "path": "collections/src/main/java/com/gs/collections/impl/utility/Iterate.java", "license": "apache-2.0", "size": 72978 }
[ "com.gs.collections.api.block.function.Function", "com.gs.collections.api.map.MutableMap", "com.gs.collections.impl.map.mutable.UnifiedMap" ]
import com.gs.collections.api.block.function.Function; import com.gs.collections.api.map.MutableMap; import com.gs.collections.impl.map.mutable.UnifiedMap;
import com.gs.collections.api.block.function.*; import com.gs.collections.api.map.*; import com.gs.collections.impl.map.mutable.*;
[ "com.gs.collections" ]
com.gs.collections;
1,128,804
@GwtIncompatible("To be supported") @Override MapMaker keyEquivalence(Equivalence<Object> equivalence) { checkState(keyEquivalence == null, "key equivalence was already set to %s", keyEquivalence); keyEquivalence = checkNotNull(equivalence); this.useCustomMap = true; return this; }
@GwtIncompatible(STR) MapMaker keyEquivalence(Equivalence<Object> equivalence) { checkState(keyEquivalence == null, STR, keyEquivalence); keyEquivalence = checkNotNull(equivalence); this.useCustomMap = true; return this; }
/** * Sets a custom {@code Equivalence} strategy for comparing keys. * * <p>By default, the map uses {@link Equivalence#identity} to determine key equality when {@link * #weakKeys} is specified, and {@link Equivalence#equals()} otherwise. The only place this is * used is in {@link Interners.WeakInterner}...
Sets a custom Equivalence strategy for comparing keys. By default, the map uses <code>Equivalence#identity</code> to determine key equality when <code>#weakKeys</code> is specified, and <code>Equivalence#equals()</code> otherwise. The only place this is used is in <code>Interners.WeakInterner</code>
keyEquivalence
{ "repo_name": "eoneil1942/voltdb-4.7fix", "path": "third_party/java/src/com/google_voltpatches/common/collect/MapMaker.java", "license": "agpl-3.0", "size": 37491 }
[ "com.google_voltpatches.common.annotations.GwtIncompatible", "com.google_voltpatches.common.base.Equivalence", "com.google_voltpatches.common.base.Preconditions" ]
import com.google_voltpatches.common.annotations.GwtIncompatible; import com.google_voltpatches.common.base.Equivalence; import com.google_voltpatches.common.base.Preconditions;
import com.google_voltpatches.common.annotations.*; import com.google_voltpatches.common.base.*;
[ "com.google_voltpatches.common" ]
com.google_voltpatches.common;
638,170
public Challenge httpChallenge(Authorization auth, String domain) throws AcmeException { // Find a single http-01 challenge Http01Challenge challenge = auth.findChallenge(Http01Challenge.TYPE); if (challenge == null) { LOG.severe("Found no " + Http01Challenge.TYPE + " challenge, don't know what to do..."); ...
Challenge function(Authorization auth, String domain) throws AcmeException { Http01Challenge challenge = auth.findChallenge(Http01Challenge.TYPE); if (challenge == null) { LOG.severe(STR + Http01Challenge.TYPE + STR); return null; } AcmeServlet.addChallenge(challenge.getToken(), challenge.getAuthorization()); return ch...
/** * Prepares HTTP challenge. */
Prepares HTTP challenge
httpChallenge
{ "repo_name": "tommypung/jeller", "path": "src/main/java/org/svearike/jeller/acme/LetsEncrypt.java", "license": "mit", "size": 7183 }
[ "org.shredzone.acme4j.Authorization", "org.shredzone.acme4j.challenge.Challenge", "org.shredzone.acme4j.challenge.Http01Challenge", "org.shredzone.acme4j.exception.AcmeException" ]
import org.shredzone.acme4j.Authorization; import org.shredzone.acme4j.challenge.Challenge; import org.shredzone.acme4j.challenge.Http01Challenge; import org.shredzone.acme4j.exception.AcmeException;
import org.shredzone.acme4j.*; import org.shredzone.acme4j.challenge.*; import org.shredzone.acme4j.exception.*;
[ "org.shredzone.acme4j" ]
org.shredzone.acme4j;
1,658,718
EList<II> getIds();
EList<II> getIds();
/** * Returns the value of the '<em><b>Id</b></em>' containment reference list. * The list contents are of type {@link org.openhealthtools.mdht.uml.hl7.datatypes.II}. * <!-- begin-user-doc --> * <p> * If the meaning of the '<em>Id</em>' containment reference list isn't clear, * there really should be ...
Returns the value of the 'Id' containment reference list. The list contents are of type <code>org.openhealthtools.mdht.uml.hl7.datatypes.II</code>. If the meaning of the 'Id' containment reference list isn't clear, there really should be more of a description here...
getIds
{ "repo_name": "drbgfc/mdht", "path": "cda/plugins/org.openhealthtools.mdht.uml.cda/src/org/openhealthtools/mdht/uml/cda/ExternalObservation.java", "license": "epl-1.0", "size": 14462 }
[ "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;
899,457
public static Test suite(String superclass, Vector packages) { return suite(addAll(superclass, packages), getMissing(superclass, packages)); }
static Test function(String superclass, Vector packages) { return suite(addAll(superclass, packages), getMissing(superclass, packages)); }
/** * Generates a TestSuite for all the Test class of subclasses of the given * superclasses. The given package names are used in the search. * Potentially missing test classes are output. * * @param superclass the class to generate the test suite for * @param packages the packages to look for tes...
Generates a TestSuite for all the Test class of subclasses of the given superclasses. The given package names are used in the search. Potentially missing test classes are output
suite
{ "repo_name": "dsibournemouth/autoweka", "path": "weka-3.7.7/src/test/java/weka/test/WekaTestSuite.java", "license": "gpl-3.0", "size": 8710 }
[ "java.util.Vector", "junit.framework.Test" ]
import java.util.Vector; import junit.framework.Test;
import java.util.*; import junit.framework.*;
[ "java.util", "junit.framework" ]
java.util; junit.framework;
2,350,421
void getDeletedMessageIDs(){ String providerNo= this.getProviderNo(); messageid = new java.util.Vector(); status = new java.util.Vector(); try{ java.sql.ResultSet rs; String sql = new String("select message from messagelisttbl where provider_no = '"+ providerNo+"' and ...
void getDeletedMessageIDs(){ String providerNo= this.getProviderNo(); messageid = new java.util.Vector(); status = new java.util.Vector(); try{ java.sql.ResultSet rs; String sql = new String(STR+ providerNo+STR+getCurrentLocationId()+"'"); rs = DBHandler.GetSQL(sql); int cou = 0; while (rs.next()) { messageid.add( osca...
/** * This method uses the ProviderNo and searches for messages for this providerNo * in the messagelisttbl */
This method uses the ProviderNo and searches for messages for this providerNo in the messagelisttbl
getDeletedMessageIDs
{ "repo_name": "vvanherk/oscar_emr", "path": "src/main/java/oscar/oscarMessenger/pageUtil/MsgDisplayMessagesBean.java", "license": "gpl-2.0", "size": 23771 }
[ "org.oscarehr.util.MiscUtils" ]
import org.oscarehr.util.MiscUtils;
import org.oscarehr.util.*;
[ "org.oscarehr.util" ]
org.oscarehr.util;
1,873,818
@Test public void allFormattedFlagsWithValidBits() { List<String> formattedFlags = new ArrayList<>(0x40); // Highest valid flag is 0x20. for (byte i = 0; i < 0x40; i++) formattedFlags.add(Http2.INSTANCE.formatFlags(TYPE_HEADERS, i)); assertThat(formattedFlags).containsExactly( "", "END_ST...
@Test void function() { List<String> formattedFlags = new ArrayList<>(0x40); for (byte i = 0; i < 0x40; i++) formattedFlags.add(Http2.INSTANCE.formatFlags(TYPE_HEADERS, i)); assertThat(formattedFlags).containsExactly( STREND_STREAMSTR00000010STR00000011STREND_HEADERSSTREND_STREAM END_HEADERSSTR00000110STR00000111STRPAD...
/** * Ensures that valid flag combinations appear visually correct, and invalid show in hex. This * also demonstrates how sparse the lookup table is. */
Ensures that valid flag combinations appear visually correct, and invalid show in hex. This also demonstrates how sparse the lookup table is
allFormattedFlagsWithValidBits
{ "repo_name": "ansman/okhttp", "path": "okhttp/src/test/java/okhttp3/internal/http2/FrameLogTest.java", "license": "apache-2.0", "size": 6094 }
[ "java.util.ArrayList", "java.util.List", "org.assertj.core.api.Assertions", "org.junit.jupiter.api.Test" ]
import java.util.ArrayList; import java.util.List; import org.assertj.core.api.Assertions; import org.junit.jupiter.api.Test;
import java.util.*; import org.assertj.core.api.*; import org.junit.jupiter.api.*;
[ "java.util", "org.assertj.core", "org.junit.jupiter" ]
java.util; org.assertj.core; org.junit.jupiter;
98,493
public void testMetastoreVersion () throws Exception { // let the schema and version be auto created System.setProperty(HiveConf.ConfVars.METASTORE_SCHEMA_VERIFICATION.toString(), "false"); hiveConf = new HiveConf(this.getClass()); SessionState.start(new CliSessionState(hiveConf)); driver = new Dr...
void function () throws Exception { System.setProperty(HiveConf.ConfVars.METASTORE_SCHEMA_VERIFICATION.toString(), "false"); hiveConf = new HiveConf(this.getClass()); SessionState.start(new CliSessionState(hiveConf)); driver = new Driver(hiveConf); driver.run(STR); assertEquals(MetaStoreSchemaInfo.getHiveSchemaVersion(...
/*** * Test that with no verification, hive populates the schema and version correctly * @throws Exception */
Test that with no verification, hive populates the schema and version correctly
testMetastoreVersion
{ "repo_name": "WANdisco/amplab-hive", "path": "itests/hive-unit/src/test/java/org/apache/hadoop/hive/metastore/TestMetastoreVersion.java", "license": "apache-2.0", "size": 8229 }
[ "org.apache.hadoop.hive.cli.CliSessionState", "org.apache.hadoop.hive.conf.HiveConf", "org.apache.hadoop.hive.ql.Driver", "org.apache.hadoop.hive.ql.session.SessionState" ]
import org.apache.hadoop.hive.cli.CliSessionState; import org.apache.hadoop.hive.conf.HiveConf; import org.apache.hadoop.hive.ql.Driver; import org.apache.hadoop.hive.ql.session.SessionState;
import org.apache.hadoop.hive.cli.*; import org.apache.hadoop.hive.conf.*; import org.apache.hadoop.hive.ql.*; import org.apache.hadoop.hive.ql.session.*;
[ "org.apache.hadoop" ]
org.apache.hadoop;
103,660
private List<PrismObject<ShadowType>> findConflictingShadowsInRepo(ObjectQuery query, Task task, OperationResult parentResult) throws SchemaException { final List<PrismObject<ShadowType>> foundAccount = new ArrayList<>(); repositoryService.searchObjectsIterative(ShadowType.class, query, (object,result)...
List<PrismObject<ShadowType>> function(ObjectQuery query, Task task, OperationResult parentResult) throws SchemaException { final List<PrismObject<ShadowType>> foundAccount = new ArrayList<>(); repositoryService.searchObjectsIterative(ShadowType.class, query, (object,result) -> foundAccount.add(object), null, true, par...
/** * Note: this may return dead shadow. */
Note: this may return dead shadow
findConflictingShadowsInRepo
{ "repo_name": "arnost-starosta/midpoint", "path": "provisioning/provisioning-impl/src/main/java/com/evolveum/midpoint/provisioning/impl/errorhandling/ObjectAlreadyExistHandler.java", "license": "apache-2.0", "size": 12549 }
[ "com.evolveum.midpoint.prism.PrismObject", "com.evolveum.midpoint.prism.query.ObjectQuery", "com.evolveum.midpoint.schema.result.OperationResult", "com.evolveum.midpoint.task.api.Task", "com.evolveum.midpoint.util.exception.SchemaException", "com.evolveum.midpoint.xml.ns._public.common.common_3.ShadowType...
import com.evolveum.midpoint.prism.PrismObject; import com.evolveum.midpoint.prism.query.ObjectQuery; import com.evolveum.midpoint.schema.result.OperationResult; import com.evolveum.midpoint.task.api.Task; import com.evolveum.midpoint.util.exception.SchemaException; import com.evolveum.midpoint.xml.ns._public.common.co...
import com.evolveum.midpoint.prism.*; import com.evolveum.midpoint.prism.query.*; import com.evolveum.midpoint.schema.result.*; import com.evolveum.midpoint.task.api.*; import com.evolveum.midpoint.util.exception.*; import com.evolveum.midpoint.xml.ns._public.common.common_3.*; import java.util.*;
[ "com.evolveum.midpoint", "java.util" ]
com.evolveum.midpoint; java.util;
1,994,990
public IFormatContextWrapper wrap(AVFormatContext53 formatContext) { return new FormatContextWrapper53(formatContext); }
IFormatContextWrapper function(AVFormatContext53 formatContext) { return new FormatContextWrapper53(formatContext); }
/** * Wrap the given struct. * * @param formatContext AVFormatContext struct * @return format context wrapper */
Wrap the given struct
wrap
{ "repo_name": "operutka/jlibav", "path": "jlibav/src/main/java/org/libav/avformat/FormatContextWrapperFactory.java", "license": "lgpl-3.0", "size": 5430 }
[ "org.libav.avformat.bridge.AVFormatContext53" ]
import org.libav.avformat.bridge.AVFormatContext53;
import org.libav.avformat.bridge.*;
[ "org.libav.avformat" ]
org.libav.avformat;
2,577,608
private void interpolatedDraw(BrushAction action) { final int STEP_DIVISION = 8; Graphics2D g = action.getLayer().getGraphics(); setCompositeForBrush(g, action.getBrush()); BufferedImage brushImage = action.getBrush().getImage(); double distX = (double)lastX - (double)action.getX(); doub...
void function(BrushAction action) { final int STEP_DIVISION = 8; Graphics2D g = action.getLayer().getGraphics(); setCompositeForBrush(g, action.getBrush()); BufferedImage brushImage = action.getBrush().getImage(); double distX = (double)lastX - (double)action.getX(); double distY = (double)lastY - (double)action.getY()...
/** * Draws the brush between last draw point and current draw point. * @param action The {@code BrushAction} containing the draw action. */
Draws the brush between last draw point and current draw point
interpolatedDraw
{ "repo_name": "coobird/Paint", "path": "src/net/coobird/paint/brush/BrushController.java", "license": "mit", "size": 9904 }
[ "java.awt.Graphics2D", "java.awt.RenderingHints", "java.awt.image.BufferedImage" ]
import java.awt.Graphics2D; import java.awt.RenderingHints; import java.awt.image.BufferedImage;
import java.awt.*; import java.awt.image.*;
[ "java.awt" ]
java.awt;
1,406,208
@Override public Collection<? extends EStructuralFeature> getChildrenFeatures(Object object) { if (childrenFeatures == null) { super.getChildrenFeatures(object); childrenFeatures.add(ActionsPackage.Literals.SET_PROPERTY_ACTION__VALUE); } return childrenFeatures; }
Collection<? extends EStructuralFeature> function(Object object) { if (childrenFeatures == null) { super.getChildrenFeatures(object); childrenFeatures.add(ActionsPackage.Literals.SET_PROPERTY_ACTION__VALUE); } return childrenFeatures; }
/** * This specifies how to implement {@link #getChildren} and is used to deduce an appropriate feature for an * {@link org.eclipse.emf.edit.command.AddCommand}, {@link org.eclipse.emf.edit.command.RemoveCommand} or * {@link org.eclipse.emf.edit.command.MoveCommand} in {@link #createCommand}. * <!-- begin-user-...
This specifies how to implement <code>#getChildren</code> and is used to deduce an appropriate feature for an <code>org.eclipse.emf.edit.command.AddCommand</code>, <code>org.eclipse.emf.edit.command.RemoveCommand</code> or <code>org.eclipse.emf.edit.command.MoveCommand</code> in <code>#createCommand</code>.
getChildrenFeatures
{ "repo_name": "paetti1988/qmate", "path": "MATE/org.tud.inf.st.mbt.emf.edit/src-gen/org/tud/inf/st/mbt/actions/provider/SetPropertyActionItemProvider.java", "license": "apache-2.0", "size": 6845 }
[ "java.util.Collection", "org.eclipse.emf.ecore.EStructuralFeature", "org.tud.inf.st.mbt.actions.ActionsPackage" ]
import java.util.Collection; import org.eclipse.emf.ecore.EStructuralFeature; import org.tud.inf.st.mbt.actions.ActionsPackage;
import java.util.*; import org.eclipse.emf.ecore.*; import org.tud.inf.st.mbt.actions.*;
[ "java.util", "org.eclipse.emf", "org.tud.inf" ]
java.util; org.eclipse.emf; org.tud.inf;
583,391
public static <E extends Comparable<E>> LinkedList<E> maxima(Iterator<? extends E> iterator) { return maximize(iterator).getValue(); }
static <E extends Comparable<E>> LinkedList<E> function(Iterator<? extends E> iterator) { return maximize(iterator).getValue(); }
/** * Returns the list of objects having the maximal value in the same order * as provided by the iterator as its value. For being able to use a * default {@link xxl.core.comparators.ComparableComparator comparator} all * elements of the iteration must implement the interface * {@link java.lang.Comparable}. ...
Returns the list of objects having the maximal value in the same order as provided by the iterator as its value. For being able to use a default <code>xxl.core.comparators.ComparableComparator comparator</code> all elements of the iteration must implement the interface <code>java.lang.Comparable</code>
maxima
{ "repo_name": "hannoman/xxl", "path": "src/xxl/core/cursors/Cursors.java", "license": "lgpl-3.0", "size": 46425 }
[ "java.util.Iterator", "java.util.LinkedList" ]
import java.util.Iterator; import java.util.LinkedList;
import java.util.*;
[ "java.util" ]
java.util;
1,796,688
public void replaceBundleArchive(BundleArchive oldBA, BundleArchive newBA) throws Exception { int pos; final long id = oldBA.getBundleId(); synchronized (archives) { pos = find(id); if (pos >= archives.size() || archives.get(pos) != oldBA) { throw new Exception("replaceBundleJar:...
void function(BundleArchive oldBA, BundleArchive newBA) throws Exception { int pos; final long id = oldBA.getBundleId(); synchronized (archives) { pos = find(id); if (pos >= archives.size() archives.get(pos) != oldBA) { throw new Exception(STR + pos); } archives.set(pos, newBA); } }
/** * Replace old bundle archive with a new updated bundle archive, that * was created with updateBundleArchive. * * @param oldBA BundleArchive to be replaced. * @param newBA Inputstrem with bundle content. * @return New bundle archive object. */
Replace old bundle archive with a new updated bundle archive, that was created with updateBundleArchive
replaceBundleArchive
{ "repo_name": "cnoelle/knopflerfish_framework", "path": "src/main/java/org/knopflerfish/framework/bundlestorage/memory/BundleStorageImpl.java", "license": "bsd-3-clause", "size": 6226 }
[ "org.knopflerfish.framework.BundleArchive" ]
import org.knopflerfish.framework.BundleArchive;
import org.knopflerfish.framework.*;
[ "org.knopflerfish.framework" ]
org.knopflerfish.framework;
1,535,055
@ApiModelProperty(required = true, value = "Consumer key of the application") public String getConsumerKey() { return consumerKey; }
@ApiModelProperty(required = true, value = STR) String function() { return consumerKey; }
/** * Consumer key of the application * @return consumerKey **/
Consumer key of the application
getConsumerKey
{ "repo_name": "Minoli/carbon-apimgt", "path": "components/apimgt/org.wso2.carbon.apimgt.rest.api.store/src/gen/java/org/wso2/carbon/apimgt/rest/api/store/dto/ApplicationKeyMappingRequestDTO.java", "license": "apache-2.0", "size": 3789 }
[ "io.swagger.annotations.ApiModelProperty" ]
import io.swagger.annotations.ApiModelProperty;
import io.swagger.annotations.*;
[ "io.swagger.annotations" ]
io.swagger.annotations;
2,041,342
public ResourceReference addResourceReference(String fullyQualifiedName, ResourceType type) { ResourceReference resRef = internalGetResourceReferences().get(fullyQualifiedName); if( resRef == null ) { resRef = new ResourceReference(fullyQualifiedName, type); referencedResourc...
ResourceReference function(String fullyQualifiedName, ResourceType type) { ResourceReference resRef = internalGetResourceReferences().get(fullyQualifiedName); if( resRef == null ) { resRef = new ResourceReference(fullyQualifiedName, type); referencedResourcesMap.put(fullyQualifiedName, resRef); } else if( type != null ...
/** * Used by the Visitor implementation to add the FQN and type of a reference. * @param fullyQualifiedName The FQN of the reference * @param type The type of the reference part. * @return The {@link ResourceReference} being added, so that more part references can be added. */
Used by the Visitor implementation to add the FQN and type of a reference
addResourceReference
{ "repo_name": "jhrcek/kie-wb-common", "path": "kie-wb-common-services/kie-wb-common-refactoring/kie-wb-common-refactoring-backend/src/main/java/org/kie/workbench/common/services/refactoring/backend/server/impact/ResourceReferenceCollector.java", "license": "apache-2.0", "size": 6799 }
[ "org.kie.workbench.common.services.refactoring.ResourceReference", "org.kie.workbench.common.services.refactoring.service.ResourceType" ]
import org.kie.workbench.common.services.refactoring.ResourceReference; import org.kie.workbench.common.services.refactoring.service.ResourceType;
import org.kie.workbench.common.services.refactoring.*; import org.kie.workbench.common.services.refactoring.service.*;
[ "org.kie.workbench" ]
org.kie.workbench;
527,061
EReference getassignmentStmnt_Designator();
EReference getassignmentStmnt_Designator();
/** * Returns the meta object for the containment reference '{@link org.xtext.example.delphi.delphi.assignmentStmnt#getDesignator <em>Designator</em>}'. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @return the meta object for the containment reference '<em>Designator</em>'. * @see org.xtext.example.de...
Returns the meta object for the containment reference '<code>org.xtext.example.delphi.delphi.assignmentStmnt#getDesignator Designator</code>'.
getassignmentStmnt_Designator
{ "repo_name": "adolfosbh/cs2as", "path": "org.xtext.example.delphi/src-gen/org/xtext/example/delphi/delphi/DelphiPackage.java", "license": "epl-1.0", "size": 434880 }
[ "org.eclipse.emf.ecore.EReference" ]
import org.eclipse.emf.ecore.EReference;
import org.eclipse.emf.ecore.*;
[ "org.eclipse.emf" ]
org.eclipse.emf;
416,413
public void register(ServiceDefinition serviceDefinition) { String serviceUrlBase = trimServiceUrlBase(serviceDefinition.getEndpointUrl().toExternalForm()); if (serviceUrlBase.endsWith("/")) { serviceUrlBase = StringUtils.chop(serviceUrlBase); } servicePathToQName.put(serviceUrlBase, serviceDefinit...
void function(ServiceDefinition serviceDefinition) { String serviceUrlBase = trimServiceUrlBase(serviceDefinition.getEndpointUrl().toExternalForm()); if (serviceUrlBase.endsWith("/")) { serviceUrlBase = StringUtils.chop(serviceUrlBase); } servicePathToQName.put(serviceUrlBase, serviceDefinition.getServiceName()); }
/** * adds a mapping from the service specific portion of the service URL to the service name. */
adds a mapping from the service specific portion of the service URL to the service name
register
{ "repo_name": "bhutchinson/rice", "path": "rice-middleware/ksb/client-impl/src/main/java/org/kuali/rice/ksb/messaging/serviceexporters/ServiceExportManagerImpl.java", "license": "apache-2.0", "size": 7088 }
[ "org.apache.commons.lang.StringUtils", "org.kuali.rice.ksb.api.bus.ServiceDefinition" ]
import org.apache.commons.lang.StringUtils; import org.kuali.rice.ksb.api.bus.ServiceDefinition;
import org.apache.commons.lang.*; import org.kuali.rice.ksb.api.bus.*;
[ "org.apache.commons", "org.kuali.rice" ]
org.apache.commons; org.kuali.rice;
2,166,885
protected void addTargetInteractionFlowElementPropertyDescriptor(Object object) { itemPropertyDescriptors.add (createItemPropertyDescriptor (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), getResourceLocator(), getString("_UI_InteractionFlow_targetInteractionFlowElement_featur...
void function(Object object) { itemPropertyDescriptors.add (createItemPropertyDescriptor (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), getResourceLocator(), getString(STR), getString(STR, STR, STR), CorePackage.Literals.INTERACTION_FLOW__TARGET_INTERACTION_FLOW_ELEMENT, true, false, true, null, ...
/** * This adds a property descriptor for the Target Interaction Flow Element feature. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */
This adds a property descriptor for the Target Interaction Flow Element feature.
addTargetInteractionFlowElementPropertyDescriptor
{ "repo_name": "ifml/ifml-editor", "path": "plugins/IFMLEditor.edit/src/IFML/Core/provider/InteractionFlowItemProvider.java", "license": "mit", "size": 5326 }
[ "org.eclipse.emf.edit.provider.ComposeableAdapterFactory" ]
import org.eclipse.emf.edit.provider.ComposeableAdapterFactory;
import org.eclipse.emf.edit.provider.*;
[ "org.eclipse.emf" ]
org.eclipse.emf;
2,401,649
public void testNoOtherDiseaseName_WhenDiseaseTermIsNotHematopoieticmalignancyNOS() throws Exception { ExpeditedAdverseEventReport aeReport = createAEReport(); aeReport.getSaeReportPreExistingConditions().clear(); aeReport.getDiseaseHistory().setOtherPrimaryDisease(null); Disea...
void function() throws Exception { ExpeditedAdverseEventReport aeReport = createAEReport(); aeReport.getSaeReportPreExistingConditions().clear(); aeReport.getDiseaseHistory().setOtherPrimaryDisease(null); DiseaseTerm diseaseTerm = new DiseaseTerm(); diseaseTerm.setTerm(STR); aeReport.getDiseaseHistory().getAbstractStud...
/** * RuleName : PAT_BR2A_CHK Rule : Disease Name Not Listed must not be null if Disease Name is * 'Solid tumor, NOS' or 'Hematopoietic malignancy, NOS'. Error Code : PAT_BR2A_ERR Error * Message : DISEASE_NAME_NOT_LISTED must be provided if DISEASE_NAME is "Solid tumor, NOS" or * "Hematopoietic...
RuleName : PAT_BR2A_CHK Rule : Disease Name Not Listed must not be null if Disease Name is 'Solid tumor, NOS' or 'Hematopoietic malignancy, NOS'. Error Code : PAT_BR2A_ERR Error Message : DISEASE_NAME_NOT_LISTED must be provided if DISEASE_NAME is "Solid tumor, NOS" or "Hematopoietic malignancy, NOS"
testNoOtherDiseaseName_WhenDiseaseTermIsNotHematopoieticmalignancyNOS
{ "repo_name": "NCIP/caaers", "path": "caAERS/software/core/src/test/java/gov/nih/nci/cabig/caaers/rules/deploy/MedicalInfoBusinessRulesTest.java", "license": "bsd-3-clause", "size": 19179 }
[ "gov.nih.nci.cabig.caaers.domain.DiseaseTerm", "gov.nih.nci.cabig.caaers.domain.ExpeditedAdverseEventReport", "gov.nih.nci.cabig.caaers.validation.ValidationErrors" ]
import gov.nih.nci.cabig.caaers.domain.DiseaseTerm; import gov.nih.nci.cabig.caaers.domain.ExpeditedAdverseEventReport; import gov.nih.nci.cabig.caaers.validation.ValidationErrors;
import gov.nih.nci.cabig.caaers.domain.*; import gov.nih.nci.cabig.caaers.validation.*;
[ "gov.nih.nci" ]
gov.nih.nci;
1,321,142
Log.i(TAG, "Creating database [" + DATABASE_NAME + " v." + DATABASE_VERSION + "]..."); Log.i(TAG, "Creating tables..."); db.execSQL(ApplistHelper.SQL_CREATE_TABLE); db.execSQL(ReleaseHelper.SQL_CREATE_TABLE); db.execSQL(BuildHelper.SQL_CREATE_TABLE); db.execSQL(UnitHelper.SQL_CRE...
Log.i(TAG, STR + DATABASE_NAME + STR + DATABASE_VERSION + "]..."); Log.i(TAG, STR); db.execSQL(ApplistHelper.SQL_CREATE_TABLE); db.execSQL(ReleaseHelper.SQL_CREATE_TABLE); db.execSQL(BuildHelper.SQL_CREATE_TABLE); db.execSQL(UnitHelper.SQL_CREATE_TABLE); db.execSQL(UnitHelper.UnitApplists.SQL_CREATE_TABLE); db.execSQL(...
/** * Called if the database named DATABASE_NAME doesn't exist in order to create it. */
Called if the database named DATABASE_NAME doesn't exist in order to create it
onCreate
{ "repo_name": "igorgo/UDP-Android-Client", "path": "AndroidStudioProject/parus8claims/app/src/main/java/ua/parus/pmo/parus8claims/db/DatabaseWrapper.java", "license": "mit", "size": 2255 }
[ "android.util.Log", "ua.parus.pmo.parus8claims.objects.dicts.ApplistHelper", "ua.parus.pmo.parus8claims.objects.dicts.BuildHelper", "ua.parus.pmo.parus8claims.objects.dicts.ReleaseHelper", "ua.parus.pmo.parus8claims.objects.dicts.UnitHelper" ]
import android.util.Log; import ua.parus.pmo.parus8claims.objects.dicts.ApplistHelper; import ua.parus.pmo.parus8claims.objects.dicts.BuildHelper; import ua.parus.pmo.parus8claims.objects.dicts.ReleaseHelper; import ua.parus.pmo.parus8claims.objects.dicts.UnitHelper;
import android.util.*; import ua.parus.pmo.parus8claims.objects.dicts.*;
[ "android.util", "ua.parus.pmo" ]
android.util; ua.parus.pmo;
1,497,405
protected void drawOutline(TreeDiffItem item, TreeDiffSide side, TreeDiffType diffType, GC gc) { int horizontalMargin = -2; TreeViewer treeViewer = null; if (side == TreeDiffSide.LEFT) { treeViewer = leftTreeViewer; } else { treeViewer = rightTreeViewer; } Tree tree = treeViewer.getTree(); ...
void function(TreeDiffItem item, TreeDiffSide side, TreeDiffType diffType, GC gc) { int horizontalMargin = -2; TreeViewer treeViewer = null; if (side == TreeDiffSide.LEFT) { treeViewer = leftTreeViewer; } else { treeViewer = rightTreeViewer; } Tree tree = treeViewer.getTree(); TreeItem treeItem = getContextTreeItem(ite...
/** * draws an outline around the context tree item on the given * {@link TreeDiffSide} for the given {@link TreeDiffItem}, styled for the * given {@link TreeDiffType}. * * @param item * the {@link TreeDiffItem} to draw the outline for. * @param side * the {@link TreeDiffSide} to ...
draws an outline around the context tree item on the given <code>TreeDiffSide</code> for the given <code>TreeDiffItem</code>, styled for the given <code>TreeDiffType</code>
drawOutline
{ "repo_name": "theArchonius/mervin", "path": "plugins/at.bitandart.zoubek.mervin/src/at/bitandart/zoubek/mervin/swt/diff/tree/TreeDiff.java", "license": "epl-1.0", "size": 60472 }
[ "org.eclipse.jface.viewers.TreeViewer", "org.eclipse.swt.graphics.Point", "org.eclipse.swt.graphics.Rectangle", "org.eclipse.swt.widgets.Tree", "org.eclipse.swt.widgets.TreeItem" ]
import org.eclipse.jface.viewers.TreeViewer; import org.eclipse.swt.graphics.Point; import org.eclipse.swt.graphics.Rectangle; import org.eclipse.swt.widgets.Tree; import org.eclipse.swt.widgets.TreeItem;
import org.eclipse.jface.viewers.*; import org.eclipse.swt.graphics.*; import org.eclipse.swt.widgets.*;
[ "org.eclipse.jface", "org.eclipse.swt" ]
org.eclipse.jface; org.eclipse.swt;
2,858,372
public static String DES_encode(String toEncode, String phrase) throws InvalidKeySpecException, NoSuchAlgorithmException, NoSuchPaddingException, InvalidKeyException, InvalidAlgorithmParameterException, UnsupportedEncodingException, IllegalBlockSizeException, BadPaddingException { String code = ""; KeySpec ...
static String function(String toEncode, String phrase) throws InvalidKeySpecException, NoSuchAlgorithmException, NoSuchPaddingException, InvalidKeyException, InvalidAlgorithmParameterException, UnsupportedEncodingException, IllegalBlockSizeException, BadPaddingException { String code = STRPBEWithMD5AndDESSTRUTF8"); byt...
/** * Convenience method to hash user passwords. * * @param plainTextPassword * - password to hash */
Convenience method to hash user passwords
DES_encode
{ "repo_name": "wylfrand/smart-album", "path": "smartalbum-filesystem/src/main/java/com/mycompany/filesystem/utils/HashUtils.java", "license": "gpl-3.0", "size": 7238 }
[ "java.io.UnsupportedEncodingException", "java.security.InvalidAlgorithmParameterException", "java.security.InvalidKeyException", "java.security.NoSuchAlgorithmException", "java.security.spec.InvalidKeySpecException", "javax.crypto.BadPaddingException", "javax.crypto.IllegalBlockSizeException", "javax....
import java.io.UnsupportedEncodingException; import java.security.InvalidAlgorithmParameterException; import java.security.InvalidKeyException; import java.security.NoSuchAlgorithmException; import java.security.spec.InvalidKeySpecException; import javax.crypto.BadPaddingException; import javax.crypto.IllegalBlockSizeE...
import java.io.*; import java.security.*; import java.security.spec.*; import javax.crypto.*; import org.apache.commons.codec.binary.*;
[ "java.io", "java.security", "javax.crypto", "org.apache.commons" ]
java.io; java.security; javax.crypto; org.apache.commons;
1,726,766
public PrayerSet getPrayer() { return prayer; }
PrayerSet function() { return prayer; }
/** * Object containing active prayers and handles toggling them & drainrate * @return the Persona's prayer information */
Object containing active prayers and handles toggling them & drainrate
getPrayer
{ "repo_name": "tehnewb/Titan", "path": "src/org/maxgamer/rs/model/entity/mob/persona/Persona.java", "license": "gpl-3.0", "size": 29244 }
[ "org.maxgamer.rs.model.skill.prayer.PrayerSet" ]
import org.maxgamer.rs.model.skill.prayer.PrayerSet;
import org.maxgamer.rs.model.skill.prayer.*;
[ "org.maxgamer.rs" ]
org.maxgamer.rs;
353,255
public static double heapSize(Iterable<ClusterNode> nodes, int precision) { // In bytes. double heap = 0.0; for (ClusterNode n : nodesPerJvm(nodes)) { ClusterMetrics m = n.metrics(); heap += Math.max(m.getHeapMemoryInitialized(), m.getHeapMemoryMaximum()); }...
static double function(Iterable<ClusterNode> nodes, int precision) { double heap = 0.0; for (ClusterNode n : nodesPerJvm(nodes)) { ClusterMetrics m = n.metrics(); heap += Math.max(m.getHeapMemoryInitialized(), m.getHeapMemoryMaximum()); } return roundedHeapSize(heap, precision); }
/** * Gets total heap size in GB rounded to specified precision. * * @param nodes Nodes. * @param precision Precision. * @return Total heap size in GB. */
Gets total heap size in GB rounded to specified precision
heapSize
{ "repo_name": "mcherkasov/ignite", "path": "modules/core/src/main/java/org/apache/ignite/internal/util/IgniteUtils.java", "license": "apache-2.0", "size": 316648 }
[ "org.apache.ignite.cluster.ClusterMetrics", "org.apache.ignite.cluster.ClusterNode" ]
import org.apache.ignite.cluster.ClusterMetrics; import org.apache.ignite.cluster.ClusterNode;
import org.apache.ignite.cluster.*;
[ "org.apache.ignite" ]
org.apache.ignite;
2,321,643
public List<GroupData> loadGroups(long groupID) throws DSOutOfServiceException, DSAccessException;
List<GroupData> function(long groupID) throws DSOutOfServiceException, DSAccessException;
/** * Loads the group specified by the passed identifier or all available * groups if <code>-1</code>. * * @param groupID The group identifier. * @return See above. * @throws DSOutOfServiceException If the connection is broken, or logged * in. * @throws DSAccessExcepti...
Loads the group specified by the passed identifier or all available groups if <code>-1</code>
loadGroups
{ "repo_name": "joshmoore/openmicroscopy", "path": "components/insight/SRC/org/openmicroscopy/shoola/env/data/AdminService.java", "license": "gpl-2.0", "size": 14444 }
[ "java.util.List" ]
import java.util.List;
import java.util.*;
[ "java.util" ]
java.util;
2,347,300
public void updateInput() { if (state == STATE_SETUP_PROTOCOL) { setupInput(); return; } if ((state & INPUT_MASK) == 0) return; switch (state & INPUT_MASK) { case STATE_RECEIVE_EXCLUDE: try { String l = null; while ((l = Buffer...
void function() { if (state == STATE_SETUP_PROTOCOL) { setupInput(); return; } if ((state & INPUT_MASK) == 0) return; switch (state & INPUT_MASK) { case STATE_RECEIVE_EXCLUDE: try { String l = null; while ((l = BufferUtil.getString(inBuffer, MAXPATHLEN)) != null) { if (l.length() == 0) break; l = l.replace('/', File.se...
/** * Signals that there is more input to be consumed. */
Signals that there is more input to be consumed
updateInput
{ "repo_name": "Tongbupan/Jarsync", "path": "source/org/metastatic/rsync/v2/Protocol.java", "license": "gpl-2.0", "size": 21887 }
[ "java.io.File", "java.nio.BufferUnderflowException" ]
import java.io.File; import java.nio.BufferUnderflowException;
import java.io.*; import java.nio.*;
[ "java.io", "java.nio" ]
java.io; java.nio;
2,225,636
@Override public void close() throws IOException { // delete all files that were marked as delete-on-exit. processDeleteOnExit(); CACHE.remove(this.key, this); }
void function() throws IOException { processDeleteOnExit(); CACHE.remove(this.key, this); }
/** * No more filesystem operations are needed. Will * release any held locks. */
No more filesystem operations are needed. Will release any held locks
close
{ "repo_name": "joyghosh/hadoop", "path": "hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/fs/FileSystem.java", "license": "gpl-3.0", "size": 116427 }
[ "java.io.IOException" ]
import java.io.IOException;
import java.io.*;
[ "java.io" ]
java.io;
1,307,803
static public int lerpColor(int c1, int c2, float amt, int mode) { if (mode == RGB) { float a1 = ((c1 >> 24) & 0xff); float r1 = (c1 >> 16) & 0xff; float g1 = (c1 >> 8) & 0xff; float b1 = c1 & 0xff; float a2 = (c2 >> 24) & 0xff; float r2 = (c2 >> 16) & 0xff; float g2 = (c...
static int function(int c1, int c2, float amt, int mode) { if (mode == RGB) { float a1 = ((c1 >> 24) & 0xff); float r1 = (c1 >> 16) & 0xff; float g1 = (c1 >> 8) & 0xff; float b1 = c1 & 0xff; float a2 = (c2 >> 24) & 0xff; float r2 = (c2 >> 16) & 0xff; float g2 = (c2 >> 8) & 0xff; float b2 = c2 & 0xff; return (((int) (a1...
/** * Interpolate between two colors. Like lerp(), but for the * individual color components of a color supplied as an int value. */
Interpolate between two colors. Like lerp(), but for the individual color components of a color supplied as an int value
lerpColor
{ "repo_name": "Cheddles/InertiaSpring", "path": "Modes/processing-android-master/processing-android-master/core/src/processing/core/PGraphics.java", "license": "gpl-2.0", "size": 150845 }
[ "android.graphics.Color" ]
import android.graphics.Color;
import android.graphics.*;
[ "android.graphics" ]
android.graphics;
2,731,377
public Paint getTickLabelPaint() { return this.tickLabelPaintSample.getPaint(); }
Paint function() { return this.tickLabelPaintSample.getPaint(); }
/** * Returns the current tick label paint. * * @return The current tick label paint. */
Returns the current tick label paint
getTickLabelPaint
{ "repo_name": "simon04/jfreechart", "path": "src/main/java/org/jfree/chart/editor/DefaultAxisEditor.java", "license": "lgpl-2.1", "size": 17596 }
[ "java.awt.Paint" ]
import java.awt.Paint;
import java.awt.*;
[ "java.awt" ]
java.awt;
1,302,748
BundleVersionEntity createBundleVersion(BundleVersionEntity extensionBundleVersion);
BundleVersionEntity createBundleVersion(BundleVersionEntity extensionBundleVersion);
/** * Creates a version of an extension bundle. * * @param extensionBundleVersion the bundle version to create * @return the created bundle version */
Creates a version of an extension bundle
createBundleVersion
{ "repo_name": "MikeThomsen/nifi", "path": "nifi-registry/nifi-registry-core/nifi-registry-framework/src/main/java/org/apache/nifi/registry/service/MetadataService.java", "license": "apache-2.0", "size": 17347 }
[ "org.apache.nifi.registry.db.entity.BundleVersionEntity" ]
import org.apache.nifi.registry.db.entity.BundleVersionEntity;
import org.apache.nifi.registry.db.entity.*;
[ "org.apache.nifi" ]
org.apache.nifi;
1,600,915
private TaskData doInBackgroundRemoveTemplate(TaskData... params) { Timber.d("doInBackgroundRemoveTemplate"); Collection col = CollectionHelper.getInstance().getCol(mContext); Object [] args = params[0].getObjArray(); JSONObject model = (JSONObject) args[0]; JSONObject templa...
TaskData function(TaskData... params) { Timber.d(STR); Collection col = CollectionHelper.getInstance().getCol(mContext); Object [] args = params[0].getObjArray(); JSONObject model = (JSONObject) args[0]; JSONObject template = (JSONObject) args[1]; try { boolean success = col.getModels().remTemplate(model, template); if...
/** * Remove a card template */
Remove a card template
doInBackgroundRemoveTemplate
{ "repo_name": "Nking92/Anki-Android", "path": "AnkiDroid/src/main/java/com/ichi2/async/DeckTask.java", "license": "gpl-3.0", "size": 52178 }
[ "com.ichi2.anki.CollectionHelper", "com.ichi2.anki.exception.ConfirmModSchemaException", "com.ichi2.libanki.Collection", "org.json.JSONObject" ]
import com.ichi2.anki.CollectionHelper; import com.ichi2.anki.exception.ConfirmModSchemaException; import com.ichi2.libanki.Collection; import org.json.JSONObject;
import com.ichi2.anki.*; import com.ichi2.anki.exception.*; import com.ichi2.libanki.*; import org.json.*;
[ "com.ichi2.anki", "com.ichi2.libanki", "org.json" ]
com.ichi2.anki; com.ichi2.libanki; org.json;
1,562,729
public static Node getNode(HazelcastInstance hz) { if (isProxyClass(hz.getClass())) { return HazelcastStarter.getNode(hz); } else { HazelcastInstanceImpl hazelcastInstanceImpl = getHazelcastInstanceImpl(hz); return hazelcastInstanceImpl.node; } }
static Node function(HazelcastInstance hz) { if (isProxyClass(hz.getClass())) { return HazelcastStarter.getNode(hz); } else { HazelcastInstanceImpl hazelcastInstanceImpl = getHazelcastInstanceImpl(hz); return hazelcastInstanceImpl.node; } }
/** * Retrieves the {@link Node} from a given Hazelcast instance. * * @param hz the Hazelcast instance to retrieve the Node from * @return the {@link Node} from the given Hazelcast instance */
Retrieves the <code>Node</code> from a given Hazelcast instance
getNode
{ "repo_name": "emre-aydin/hazelcast", "path": "hazelcast/src/test/java/com/hazelcast/instance/impl/TestUtil.java", "license": "apache-2.0", "size": 8510 }
[ "com.hazelcast.core.HazelcastInstance", "com.hazelcast.test.starter.HazelcastStarter" ]
import com.hazelcast.core.HazelcastInstance; import com.hazelcast.test.starter.HazelcastStarter;
import com.hazelcast.core.*; import com.hazelcast.test.starter.*;
[ "com.hazelcast.core", "com.hazelcast.test" ]
com.hazelcast.core; com.hazelcast.test;
1,891,375
@Override public String toString() { return this.name; } }; private static final long serialVersionUID = -6103606419664405344L; private Geometry geom; private ZoneEntity nivelPadre;
String function() { return this.name; } }; private static final long serialVersionUID = -6103606419664405344L; private Geometry geom; private ZoneEntity nivelPadre;
/** * Consulta {@link Object#toString()}. * * @return Una representación del objeto. */
Consulta <code>Object#toString()</code>
toString
{ "repo_name": "Emergya/opensir", "path": "sir-admin/sir-admin-base/sir-admin-base-core/src/main/java/com/emergya/ohiggins/model/ZoneEntity.java", "license": "lgpl-2.1", "size": 5881 }
[ "com.vividsolutions.jts.geom.Geometry" ]
import com.vividsolutions.jts.geom.Geometry;
import com.vividsolutions.jts.geom.*;
[ "com.vividsolutions.jts" ]
com.vividsolutions.jts;
1,176,569
public MovementEvent removeMovementEvent( MovementEvent event ) { for (int i = 0; i < movementEvents.length; i++) if (movementEvents[i].equals( event )) { movementEvents = ArrayUtilities.removeObject( movementEvents, i ); return event; } return null; }
MovementEvent function( MovementEvent event ) { for (int i = 0; i < movementEvents.length; i++) if (movementEvents[i].equals( event )) { movementEvents = ArrayUtilities.removeObject( movementEvents, i ); return event; } return null; }
/** * Removes an attached movement event. * * @param event remove this event, if it exists * @return the removed event, or <code>null</code> if it wasn't found */
Removes an attached movement event
removeMovementEvent
{ "repo_name": "grim-ripper/LoWW-movelib", "path": "src/fi/grimripper/loww/tiles/Tile.java", "license": "lgpl-2.1", "size": 17115 }
[ "fi.grimripper.loww.ArrayUtilities" ]
import fi.grimripper.loww.ArrayUtilities;
import fi.grimripper.loww.*;
[ "fi.grimripper.loww" ]
fi.grimripper.loww;
532,655
private void startLocalOutputBuild() throws ExecutorInitException { try (SilentCloseable c = Profiler.instance().profile("Starting local output build")) { Path outputPath = env.getDirectories().getOutputPath(env.getWorkspaceName()); Path localOutputPath = env.getDirectories().getLocalOutputPath(); ...
void function() throws ExecutorInitException { try (SilentCloseable c = Profiler.instance().profile(STR)) { Path outputPath = env.getDirectories().getOutputPath(env.getWorkspaceName()); Path localOutputPath = env.getDirectories().getLocalOutputPath(); if (outputPath.isSymbolicLink()) { try { outputPath.delete(); if (lo...
/** * Prepare for a local output build. */
Prepare for a local output build
startLocalOutputBuild
{ "repo_name": "dropbox/bazel", "path": "src/main/java/com/google/devtools/build/lib/buildtool/ExecutionTool.java", "license": "apache-2.0", "size": 28263 }
[ "com.google.devtools.build.lib.actions.ExecutorInitException", "com.google.devtools.build.lib.profiler.Profiler", "com.google.devtools.build.lib.profiler.SilentCloseable", "com.google.devtools.build.lib.vfs.Path", "java.io.IOException" ]
import com.google.devtools.build.lib.actions.ExecutorInitException; import com.google.devtools.build.lib.profiler.Profiler; import com.google.devtools.build.lib.profiler.SilentCloseable; import com.google.devtools.build.lib.vfs.Path; import java.io.IOException;
import com.google.devtools.build.lib.actions.*; import com.google.devtools.build.lib.profiler.*; import com.google.devtools.build.lib.vfs.*; import java.io.*;
[ "com.google.devtools", "java.io" ]
com.google.devtools; java.io;
2,407,939
void deleteTable(TableReference tableRef) throws IOException, InterruptedException;
void deleteTable(TableReference tableRef) throws IOException, InterruptedException;
/** * Deletes the table specified by tableId from the dataset. * If the table contains data, all the data will be deleted. */
Deletes the table specified by tableId from the dataset. If the table contains data, all the data will be deleted
deleteTable
{ "repo_name": "jbonofre/beam", "path": "sdks/java/io/google-cloud-platform/src/main/java/org/apache/beam/sdk/io/gcp/bigquery/BigQueryServices.java", "license": "apache-2.0", "size": 6256 }
[ "com.google.api.services.bigquery.model.TableReference", "java.io.IOException" ]
import com.google.api.services.bigquery.model.TableReference; import java.io.IOException;
import com.google.api.services.bigquery.model.*; import java.io.*;
[ "com.google.api", "java.io" ]
com.google.api; java.io;
2,676,734
public Collection<T> getAvailables(){ HashSet<T> deltaAvailables = new HashSet<T>(); deltaAvailables.addAll(this.preDeltaAvailables); deltaAvailables.addAll(this.updates); return deltaAvailables; }
Collection<T> function(){ HashSet<T> deltaAvailables = new HashSet<T>(); deltaAvailables.addAll(this.preDeltaAvailables); deltaAvailables.addAll(this.updates); return deltaAvailables; }
/** * Returns all Object that were present in the given time delta. * Uses internal an HashSet * @return List of all present Objects( Identifier or Metadata ) */
Returns all Object that were present in the given time delta. Uses internal an HashSet
getAvailables
{ "repo_name": "trustathsh/metalyzer", "path": "dataservice-module/src/main/java/de/hshannover/f4/trust/metalyzer/api/MetalyzerDelta.java", "license": "apache-2.0", "size": 3015 }
[ "java.util.Collection", "java.util.HashSet" ]
import java.util.Collection; import java.util.HashSet;
import java.util.*;
[ "java.util" ]
java.util;
1,581,401
public GlyphTester getIgnoreDefault() { return ignoreDefault; }
GlyphTester function() { return ignoreDefault; }
/** * Obtain governing default ignores tester. * @return default ignores tester */
Obtain governing default ignores tester
getIgnoreDefault
{ "repo_name": "pellcorp/fop", "path": "src/java/org/apache/fop/complexscripts/fonts/GlyphProcessingState.java", "license": "apache-2.0", "size": 45993 }
[ "org.apache.fop.complexscripts.util.GlyphTester" ]
import org.apache.fop.complexscripts.util.GlyphTester;
import org.apache.fop.complexscripts.util.*;
[ "org.apache.fop" ]
org.apache.fop;
2,479,166
public void fetchCollaborations() { if (mCollaboratorsInitialsVM == null) { return; } if (getCollaborationItem() == null || SdkUtils.isBlank(getCollaborationItem().getId())) { showToast(getContext(), getString(R.string.box_sharesdk_cannot_view_collaborations)); ...
void function() { if (mCollaboratorsInitialsVM == null) { return; } if (getCollaborationItem() == null SdkUtils.isBlank(getCollaborationItem().getId())) { showToast(getContext(), getString(R.string.box_sharesdk_cannot_view_collaborations)); return; } mProgressBar.setVisibility(VISIBLE); mCollabsCount.setVisibility(GONE...
/** * Executes the request to retrieve collaborations for the folder */
Executes the request to retrieve collaborations for the folder
fetchCollaborations
{ "repo_name": "box/box-android-share-sdk", "path": "box-share-sdk/src/main/java/com/box/androidsdk/share/usx/views/CollaboratorsInitialsView.java", "license": "apache-2.0", "size": 9896 }
[ "com.box.androidsdk.content.utils.SdkUtils" ]
import com.box.androidsdk.content.utils.SdkUtils;
import com.box.androidsdk.content.utils.*;
[ "com.box.androidsdk" ]
com.box.androidsdk;
1,541,037
public RequestHoliday getById(int id) throws DataAccException { return super.getByPk(RequestHoliday.class, id); }
RequestHoliday function(int id) throws DataAccException { return super.getByPk(RequestHoliday.class, id); }
/** * Retrieve a RequestHoliday object from database given its id * * @param id primary key of RequestHoliday object * @return the RequestHoliday object identified by the id * @throws DataAccException on error */
Retrieve a RequestHoliday object from database given its id
getById
{ "repo_name": "terrex/tntconcept-materials-testing", "path": "src/main/java/com/autentia/intra/dao/hibernate/RequestHolidayDAO.java", "license": "gpl-2.0", "size": 4525 }
[ "com.autentia.intra.businessobject.RequestHoliday", "com.autentia.intra.dao.DataAccException" ]
import com.autentia.intra.businessobject.RequestHoliday; import com.autentia.intra.dao.DataAccException;
import com.autentia.intra.businessobject.*; import com.autentia.intra.dao.*;
[ "com.autentia.intra" ]
com.autentia.intra;
315,341
public File getDirectory() { return _directoryName; }
File function() { return _directoryName; }
/** * get the directory name */
get the directory name
getDirectory
{ "repo_name": "debrief/debrief", "path": "org.mwc.asset.legacy/src/ASSET/Scenario/Observers/RecordToFileObserverType.java", "license": "epl-1.0", "size": 6385 }
[ "java.io.File" ]
import java.io.File;
import java.io.*;
[ "java.io" ]
java.io;
902,828
public PropertyValue getStoreProperty(String store, QName name) { if (store == null || name == null) { throw new AVMBadArgumentException("Illegal null argument."); } return fAVMRepository.getStoreProperty(store, name); }
PropertyValue function(String store, QName name) { if (store == null name == null) { throw new AVMBadArgumentException(STR); } return fAVMRepository.getStoreProperty(store, name); }
/** * Get a property from a store. * @param store The name of the store. * @param name The name of the property. * @return A PropertyValue or null if non-existent. */
Get a property from a store
getStoreProperty
{ "repo_name": "loftuxab/community-edition-old", "path": "projects/repository/source/java/org/alfresco/repo/avm/AVMServiceImpl.java", "license": "lgpl-3.0", "size": 59118 }
[ "org.alfresco.repo.domain.PropertyValue", "org.alfresco.service.cmr.avm.AVMBadArgumentException", "org.alfresco.service.namespace.QName" ]
import org.alfresco.repo.domain.PropertyValue; import org.alfresco.service.cmr.avm.AVMBadArgumentException; import org.alfresco.service.namespace.QName;
import org.alfresco.repo.domain.*; import org.alfresco.service.cmr.avm.*; import org.alfresco.service.namespace.*;
[ "org.alfresco.repo", "org.alfresco.service" ]
org.alfresco.repo; org.alfresco.service;
118,902
@VisibleForTesting synchronized boolean checkLeases() { boolean needSync = false; assert fsnamesystem.hasWriteLock(); Lease leaseToCheck = null; try { leaseToCheck = sortedLeases.first(); } catch(NoSuchElementException e) {} while(leaseToCheck != null) { if (!leaseToCheck.expire...
synchronized boolean checkLeases() { boolean needSync = false; assert fsnamesystem.hasWriteLock(); Lease leaseToCheck = null; try { leaseToCheck = sortedLeases.first(); } catch(NoSuchElementException e) {} while(leaseToCheck != null) { if (!leaseToCheck.expiredHardLimit()) { break; } LOG.info(leaseToCheck + STR); final...
/** Check the leases beginning from the oldest. * @return true is sync is needed. */
Check the leases beginning from the oldest
checkLeases
{ "repo_name": "zhe-thoughts/hadoop", "path": "hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/server/namenode/LeaseManager.java", "license": "apache-2.0", "size": 17288 }
[ "java.io.IOException", "java.util.ArrayList", "java.util.List", "java.util.NoSuchElementException", "org.apache.hadoop.hdfs.server.common.HdfsServerConstants" ]
import java.io.IOException; import java.util.ArrayList; import java.util.List; import java.util.NoSuchElementException; import org.apache.hadoop.hdfs.server.common.HdfsServerConstants;
import java.io.*; import java.util.*; import org.apache.hadoop.hdfs.server.common.*;
[ "java.io", "java.util", "org.apache.hadoop" ]
java.io; java.util; org.apache.hadoop;
108,060
@Override public long renewToken(Token<DelegationTokenIdentifier> token, String renewer) throws DelegationTokenManagerException { try { return secretManager.renewToken(token, renewer); } catch (IOException ex) { throw new DelegationTokenManagerException( DelegationTokenManagerExcepti...
long function(Token<DelegationTokenIdentifier> token, String renewer) throws DelegationTokenManagerException { try { return secretManager.renewToken(token, renewer); } catch (IOException ex) { throw new DelegationTokenManagerException( DelegationTokenManagerException.ERROR.DT02, ex.toString(), ex); } }
/** * Renews a delegation token. * * @param token delegation token to renew. * @param renewer token renewer. * @return epoc expiration time. * @throws DelegationTokenManagerException thrown if the token could not be * renewed. */
Renews a delegation token
renewToken
{ "repo_name": "ict-carch/hadoop-plus", "path": "hadoop-hdfs-project/hadoop-hdfs-httpfs/src/main/java/org/apache/hadoop/lib/service/security/DelegationTokenManagerService.java", "license": "apache-2.0", "size": 8135 }
[ "java.io.IOException", "org.apache.hadoop.lib.service.DelegationTokenIdentifier", "org.apache.hadoop.lib.service.DelegationTokenManagerException", "org.apache.hadoop.security.token.Token" ]
import java.io.IOException; import org.apache.hadoop.lib.service.DelegationTokenIdentifier; import org.apache.hadoop.lib.service.DelegationTokenManagerException; import org.apache.hadoop.security.token.Token;
import java.io.*; import org.apache.hadoop.lib.service.*; import org.apache.hadoop.security.token.*;
[ "java.io", "org.apache.hadoop" ]
java.io; org.apache.hadoop;
1,964,844
void expectNumber(NodeTraversal t, Node n, JSType type, String msg) { if (!type.matchesNumberContext()) { mismatch(t, n, msg, type, NUMBER_TYPE); } }
void expectNumber(NodeTraversal t, Node n, JSType type, String msg) { if (!type.matchesNumberContext()) { mismatch(t, n, msg, type, NUMBER_TYPE); } }
/** * Expect the type to be a number, or a type convertible to number. If the * expectation is not met, issue a warning at the provided node's source code * position. */
Expect the type to be a number, or a type convertible to number. If the expectation is not met, issue a warning at the provided node's source code position
expectNumber
{ "repo_name": "nuxleus/closure-compiler", "path": "src/com/google/javascript/jscomp/TypeValidator.java", "license": "apache-2.0", "size": 29320 }
[ "com.google.javascript.rhino.Node", "com.google.javascript.rhino.jstype.JSType" ]
import com.google.javascript.rhino.Node; import com.google.javascript.rhino.jstype.JSType;
import com.google.javascript.rhino.*; import com.google.javascript.rhino.jstype.*;
[ "com.google.javascript" ]
com.google.javascript;
2,829,672
public JSONArray getAppAttributesFromConfig(String userId) throws APIManagementException { String tenantDomain = MultitenantUtils.getTenantDomain(userId); int tenantId = 0; try { tenantId = getTenantId(tenantDomain); } catch (UserStoreException e) { handleExc...
JSONArray function(String userId) throws APIManagementException { String tenantDomain = MultitenantUtils.getTenantDomain(userId); int tenantId = 0; try { tenantId = getTenantId(tenantDomain); } catch (UserStoreException e) { handleException(STR + tenantDomain, e); } JSONArray applicationAttributes = null; JSONObject ap...
/** * This method is used to get keys of custom attributes, configured by user * * @param userId user name of logged in user * @return Array of JSONObject, contains keys of attributes * @throws APIManagementException */
This method is used to get keys of custom attributes, configured by user
getAppAttributesFromConfig
{ "repo_name": "pubudu538/carbon-apimgt", "path": "components/apimgt/org.wso2.carbon.apimgt.impl/src/main/java/org/wso2/carbon/apimgt/impl/APIConsumerImpl.java", "license": "apache-2.0", "size": 278305 }
[ "org.json.simple.JSONArray", "org.json.simple.JSONObject", "org.wso2.carbon.apimgt.api.APIManagementException", "org.wso2.carbon.apimgt.impl.utils.APIUtil", "org.wso2.carbon.user.api.UserStoreException", "org.wso2.carbon.utils.multitenancy.MultitenantUtils" ]
import org.json.simple.JSONArray; import org.json.simple.JSONObject; import org.wso2.carbon.apimgt.api.APIManagementException; import org.wso2.carbon.apimgt.impl.utils.APIUtil; import org.wso2.carbon.user.api.UserStoreException; import org.wso2.carbon.utils.multitenancy.MultitenantUtils;
import org.json.simple.*; import org.wso2.carbon.apimgt.api.*; import org.wso2.carbon.apimgt.impl.utils.*; import org.wso2.carbon.user.api.*; import org.wso2.carbon.utils.multitenancy.*;
[ "org.json.simple", "org.wso2.carbon" ]
org.json.simple; org.wso2.carbon;
1,516,615
protected static void normalizeProbabilities(HashMap<String, ServiceAttributeTypeStatistics> typeStatsMap) { double divisor = 0.0; for (String key : typeStatsMap.keySet()) { divisor += typeStatsMap.get(key).getOccurrences(); } for (String key : typeStatsMap.keySet()) { typeStatsMap.get(key).setOccurren...
static void function(HashMap<String, ServiceAttributeTypeStatistics> typeStatsMap) { double divisor = 0.0; for (String key : typeStatsMap.keySet()) { divisor += typeStatsMap.get(key).getOccurrences(); } for (String key : typeStatsMap.keySet()) { typeStatsMap.get(key).setOccurrenceProbability(typeStatsMap.get(key).getOc...
/** * Normalizes the occurrence probability to a value between 0 and 1. * * @param typeStatsMap */
Normalizes the occurrence probability to a value between 0 and 1
normalizeProbabilities
{ "repo_name": "Fiware/apps.WMarket", "path": "src/main/java/org/fiware/apps/marketplace/helpers/AttributeTypeStatisticsResolver.java", "license": "bsd-3-clause", "size": 8594 }
[ "java.util.HashMap", "org.fiware.apps.marketplace.model.ServiceAttributeTypeStatistics" ]
import java.util.HashMap; import org.fiware.apps.marketplace.model.ServiceAttributeTypeStatistics;
import java.util.*; import org.fiware.apps.marketplace.model.*;
[ "java.util", "org.fiware.apps" ]
java.util; org.fiware.apps;
1,521,753
public List<ValidRates> getMatchingValidRates(AwardFandaRate rate) { AwardFandaRateService fandaRateService = KcServiceLocator.getService(AwardFandaRateService.class); List<ValidRates> validRates = fandaRateService.getValidRates(rate); for (Iterator<ValidRates> iter = validRates.iterator(); ...
List<ValidRates> function(AwardFandaRate rate) { AwardFandaRateService fandaRateService = KcServiceLocator.getService(AwardFandaRateService.class); List<ValidRates> validRates = fandaRateService.getValidRates(rate); for (Iterator<ValidRates> iter = validRates.iterator(); iter.hasNext();) { if (StringUtils.isBlank(iter....
/** * Return matching Valid Rates entries for the given AwardFandaRate. * @param rate * @return */
Return matching Valid Rates entries for the given AwardFandaRate
getMatchingValidRates
{ "repo_name": "sanjupolus/KC6.oLatest", "path": "coeus-impl/src/main/java/org/kuali/kra/external/award/web/AccountCreationPresentationHelper.java", "license": "agpl-3.0", "size": 2860 }
[ "java.util.Iterator", "java.util.List", "org.apache.commons.lang3.StringUtils", "org.kuali.coeus.sys.framework.service.KcServiceLocator", "org.kuali.kra.award.commitments.AwardFandaRate", "org.kuali.kra.award.commitments.AwardFandaRateService", "org.kuali.kra.award.home.ValidRates" ]
import java.util.Iterator; import java.util.List; import org.apache.commons.lang3.StringUtils; import org.kuali.coeus.sys.framework.service.KcServiceLocator; import org.kuali.kra.award.commitments.AwardFandaRate; import org.kuali.kra.award.commitments.AwardFandaRateService; import org.kuali.kra.award.home.ValidRates;
import java.util.*; import org.apache.commons.lang3.*; import org.kuali.coeus.sys.framework.service.*; import org.kuali.kra.award.commitments.*; import org.kuali.kra.award.home.*;
[ "java.util", "org.apache.commons", "org.kuali.coeus", "org.kuali.kra" ]
java.util; org.apache.commons; org.kuali.coeus; org.kuali.kra;
499,760
public static MLocation getBPLocation (Properties ctx, int C_BPartner_Location_ID, String trxName) { if (C_BPartner_Location_ID == 0) // load default return null; MLocation loc = null; final String sql = "SELECT * FROM C_Location l " + "WHERE C_Location_ID IN (SELECT C_Location_ID FROM C_BPartner_L...
static MLocation function (Properties ctx, int C_BPartner_Location_ID, String trxName) { if (C_BPartner_Location_ID == 0) return null; MLocation loc = null; final String sql = STR + STR; PreparedStatement pstmt = null; ResultSet rs = null; try { pstmt = DB.prepareStatement(sql, trxName); pstmt.setInt(1, C_BPartner_Loca...
/** * Load Location with ID if Business Partner Location * @param ctx context * @param C_BPartner_Location_ID Business Partner Location * @param trxName transaction * @return location or null */
Load Location with ID if Business Partner Location
getBPLocation
{ "repo_name": "klst-com/metasfresh", "path": "de.metas.adempiere.adempiere/base/src/main/java-legacy/org/compiere/model/MLocation.java", "license": "gpl-2.0", "size": 18566 }
[ "de.metas.logging.LogManager", "java.sql.PreparedStatement", "java.sql.ResultSet", "java.sql.SQLException", "java.util.Properties", "org.compiere.util.DB", "org.slf4j.Logger" ]
import de.metas.logging.LogManager; import java.sql.PreparedStatement; import java.sql.ResultSet; import java.sql.SQLException; import java.util.Properties; import org.compiere.util.DB; import org.slf4j.Logger;
import de.metas.logging.*; import java.sql.*; import java.util.*; import org.compiere.util.*; import org.slf4j.*;
[ "de.metas.logging", "java.sql", "java.util", "org.compiere.util", "org.slf4j" ]
de.metas.logging; java.sql; java.util; org.compiere.util; org.slf4j;
2,785,167
public static boolean isGestureLauncherEnabled(Resources resources) { return isCameraLaunchEnabled(resources) || isCameraDoubleTapPowerEnabled(resources); }
static boolean function(Resources resources) { return isCameraLaunchEnabled(resources) isCameraDoubleTapPowerEnabled(resources); }
/** * Whether GestureLauncherService should be enabled according to system properties. */
Whether GestureLauncherService should be enabled according to system properties
isGestureLauncherEnabled
{ "repo_name": "Ant-Droid/android_frameworks_base_OLD", "path": "services/core/java/com/android/server/GestureLauncherService.java", "license": "apache-2.0", "size": 16833 }
[ "android.content.res.Resources" ]
import android.content.res.Resources;
import android.content.res.*;
[ "android.content" ]
android.content;
1,666,879
@Test public void testSuspendedOutOfRunning() throws Exception { final int parallelism = 10; final InteractionsCountingTaskManagerGateway gateway = new InteractionsCountingTaskManagerGateway(parallelism); final SchedulerBase scheduler = createScheduler(gateway, parallelism); final ExecutionGraph eg = schedu...
void function() throws Exception { final int parallelism = 10; final InteractionsCountingTaskManagerGateway gateway = new InteractionsCountingTaskManagerGateway(parallelism); final SchedulerBase scheduler = createScheduler(gateway, parallelism); final ExecutionGraph eg = scheduler.getExecutionGraph(); scheduler.startSc...
/** * Going into SUSPENDED out of RUNNING vertices should cancel all vertices once with RPC calls. */
Going into SUSPENDED out of RUNNING vertices should cancel all vertices once with RPC calls
testSuspendedOutOfRunning
{ "repo_name": "greghogan/flink", "path": "flink-runtime/src/test/java/org/apache/flink/runtime/executiongraph/ExecutionGraphSuspendTest.java", "license": "apache-2.0", "size": 11167 }
[ "org.apache.flink.api.common.JobStatus", "org.apache.flink.runtime.execution.ExecutionState", "org.apache.flink.runtime.scheduler.SchedulerBase", "org.junit.Assert" ]
import org.apache.flink.api.common.JobStatus; import org.apache.flink.runtime.execution.ExecutionState; import org.apache.flink.runtime.scheduler.SchedulerBase; import org.junit.Assert;
import org.apache.flink.api.common.*; import org.apache.flink.runtime.execution.*; import org.apache.flink.runtime.scheduler.*; import org.junit.*;
[ "org.apache.flink", "org.junit" ]
org.apache.flink; org.junit;
485,339
static final String getSignature(Constructor cons) { final StringBuffer sb = new StringBuffer(); sb.append('('); final Class[] params = cons.getParameterTypes(); // avoid clone for (int j = 0; j < params.length; j++) { sb.append(getSignature(params[j])); } return sb.append(")V").toString(); }...
static final String getSignature(Constructor cons) { final StringBuffer sb = new StringBuffer(); sb.append('('); final Class[] params = cons.getParameterTypes(); for (int j = 0; j < params.length; j++) { sb.append(getSignature(params[j])); } return sb.append(")V").toString(); }
/** * Compute the JVM constructor descriptor for the constructor. */
Compute the JVM constructor descriptor for the constructor
getSignature
{ "repo_name": "srnsw/xena", "path": "xena/ext/src/xalan-j_2_7_1/src/org/apache/xalan/xsltc/compiler/FunctionCall.java", "license": "gpl-3.0", "size": 38350 }
[ "java.lang.reflect.Constructor" ]
import java.lang.reflect.Constructor;
import java.lang.reflect.*;
[ "java.lang" ]
java.lang;
1,234,594
private static boolean isGroup(Element unit) { Element properties = unit.getChild(PROPERTIES_VARIABLE); if (properties != null) { for (Iterator<?> iterator = properties.getChildren(PROPERTY_VARIABLE).iterator(); iterator.hasNext();) { Element property = (Element) iterator.next(); if (GROUP_TYPE.equals...
static boolean function(Element unit) { Element properties = unit.getChild(PROPERTIES_VARIABLE); if (properties != null) { for (Iterator<?> iterator = properties.getChildren(PROPERTY_VARIABLE).iterator(); iterator.hasNext();) { Element property = (Element) iterator.next(); if (GROUP_TYPE.equals(property.getAttributeVal...
/** * returns true is the unit passed as parameter is an XML element for a p2 group * * @param unit * @return */
returns true is the unit passed as parameter is an XML element for a p2 group
isGroup
{ "repo_name": "awltech/eclipse-p2repo-index", "path": "src/main/java/com/worldline/mojo/p2repoindex/locators/UpdateSiteDescriptorReader.java", "license": "lgpl-3.0", "size": 15046 }
[ "java.util.Iterator", "org.jdom.Element" ]
import java.util.Iterator; import org.jdom.Element;
import java.util.*; import org.jdom.*;
[ "java.util", "org.jdom" ]
java.util; org.jdom;
476,280
private void showSparkles(World world, int x, int y, int z, Random rand) { // OBS: If the particle config is set to 'Minimal', particles won't be displayed. // That is controlled by the game engine, no need to check it here. // Ref: BlockRedstoneOre final double distance = 0.062...
void function(World world, int x, int y, int z, Random rand) { final double distance = 0.0625D; for (int i = 2; i < 6; ++i) { double particleX = x + rand.nextFloat(); final double particleY = y + rand.nextFloat(); double particleZ = z + rand.nextFloat(); if (i == 2 && !world.getBlock(x, y, z + 1).isOpaqueCube()) { part...
/** * Displays redstone sparkles on the block sides. */
Displays redstone sparkles on the block sides
showSparkles
{ "repo_name": "sidben/RedstoneJukebox", "path": "src/main/java/sidben/redstonejukebox/block/BlockRedstoneJukebox.java", "license": "gpl-3.0", "size": 18219 }
[ "java.util.Random", "net.minecraft.world.World" ]
import java.util.Random; import net.minecraft.world.World;
import java.util.*; import net.minecraft.world.*;
[ "java.util", "net.minecraft.world" ]
java.util; net.minecraft.world;
2,432,490
public void setDefaultSteuersatz(final BigDecimal value) { defaultSteuersatz = value; }
void function(final BigDecimal value) { defaultSteuersatz = value; }
/** * Not static for invocation of Spring. * @param value */
Not static for invocation of Spring
setDefaultSteuersatz
{ "repo_name": "developerleo/ProjectForge-2nd", "path": "src/main/java/org/projectforge/fibu/RechnungDao.java", "license": "gpl-3.0", "size": 15903 }
[ "java.math.BigDecimal" ]
import java.math.BigDecimal;
import java.math.*;
[ "java.math" ]
java.math;
2,289,601
public HtmlData getInquiryUrl(PersistableBusinessObject bo, String propertyName) { return (new AccountBalanceByLevelInquirableImpl()).getInquiryUrl(bo, propertyName); }
HtmlData function(PersistableBusinessObject bo, String propertyName) { return (new AccountBalanceByLevelInquirableImpl()).getInquiryUrl(bo, propertyName); }
/** * Returns the inquiry url for a field if one exist. * * @param bo the business object instance to build the urls for * @param propertyName the property which links to an inquirable * @return String url to inquiry */
Returns the inquiry url for a field if one exist
getInquiryUrl
{ "repo_name": "Ariah-Group/Finance", "path": "af_webapp/src/main/java/org/kuali/kfs/gl/businessobject/lookup/AccountBalanceByLevelLookupableImpl.java", "license": "apache-2.0", "size": 5578 }
[ "org.kuali.kfs.gl.businessobject.inquiry.AccountBalanceByLevelInquirableImpl", "org.kuali.rice.kns.lookup.HtmlData", "org.kuali.rice.krad.bo.PersistableBusinessObject" ]
import org.kuali.kfs.gl.businessobject.inquiry.AccountBalanceByLevelInquirableImpl; import org.kuali.rice.kns.lookup.HtmlData; import org.kuali.rice.krad.bo.PersistableBusinessObject;
import org.kuali.kfs.gl.businessobject.inquiry.*; import org.kuali.rice.kns.lookup.*; import org.kuali.rice.krad.bo.*;
[ "org.kuali.kfs", "org.kuali.rice" ]
org.kuali.kfs; org.kuali.rice;
626,845
@SuppressWarnings("rawtypes") public static <I extends WritableComparable> I createVertexIndex(Configuration conf) { Class<I> vertexClass = getVertexIndexClass(conf); try { return vertexClass.newInstance(); } catch (InstantiationException e) { throw new IllegalArg...
@SuppressWarnings(STR) static <I extends WritableComparable> I function(Configuration conf) { Class<I> vertexClass = getVertexIndexClass(conf); try { return vertexClass.newInstance(); } catch (InstantiationException e) { throw new IllegalArgumentException(STR, e); } catch (IllegalAccessException e) { throw new IllegalA...
/** * Create a user vertex index * * @param conf * Configuration to check * @return Instantiated user vertex index */
Create a user vertex index
createVertexIndex
{ "repo_name": "sigmod/asterixdb-analytics", "path": "pregelix/pregelix-api/src/main/java/edu/uci/ics/pregelix/api/util/BspUtils.java", "license": "apache-2.0", "size": 39926 }
[ "org.apache.hadoop.conf.Configuration", "org.apache.hadoop.io.WritableComparable" ]
import org.apache.hadoop.conf.Configuration; import org.apache.hadoop.io.WritableComparable;
import org.apache.hadoop.conf.*; import org.apache.hadoop.io.*;
[ "org.apache.hadoop" ]
org.apache.hadoop;
1,979,080
public final SourceStructureExplorerItem getSourceStructureExplorerItem() { return sourceStructureExplorerItem; } /** * Returns the asset node with the given name. * * @param name asset name * @return asset node found or {@code null}
final SourceStructureExplorerItem function() { return sourceStructureExplorerItem; } /** * Returns the asset node with the given name. * * @param name asset name * @return asset node found or {@code null}
/** * Returns the source structure explorer item for this component. */
Returns the source structure explorer item for this component
getSourceStructureExplorerItem
{ "repo_name": "GodUseVPN/appinventor-sources", "path": "appinventor/appengine/src/com/google/appinventor/client/editor/simple/components/MockComponent.java", "license": "apache-2.0", "size": 32453 }
[ "com.google.appinventor.client.explorer.SourceStructureExplorerItem" ]
import com.google.appinventor.client.explorer.SourceStructureExplorerItem;
import com.google.appinventor.client.explorer.*;
[ "com.google.appinventor" ]
com.google.appinventor;
123,016
public void getDistanceFilter(Point2f[] attenuation) { if (isLiveOrCompiled()) if (!this.getCapability(ALLOW_DISTANCE_FILTER_READ)) throw new CapabilityNotSetException(J3dI18N.getString("AuralAttributes12")); ((AuralAttributesRetained)this.retained).getDistanceFilter(atte...
void function(Point2f[] attenuation) { if (isLiveOrCompiled()) if (!this.getCapability(ALLOW_DISTANCE_FILTER_READ)) throw new CapabilityNotSetException(J3dI18N.getString(STR)); ((AuralAttributesRetained)this.retained).getDistanceFilter(attenuation); }
/** * Retrieve Distance Filter as a single array containing distances * and frequency cutoff. The distance filter is copied into * the specified array. * The array must be large enough to hold all of the points. * The individual array elements must be allocated by the caller. * @param atte...
Retrieve Distance Filter as a single array containing distances and frequency cutoff. The distance filter is copied into the specified array. The array must be large enough to hold all of the points. The individual array elements must be allocated by the caller
getDistanceFilter
{ "repo_name": "kephale/java3d-core", "path": "src/classes/share/javax/media/j3d/AuralAttributes.java", "license": "gpl-2.0", "size": 57763 }
[ "javax.vecmath.Point2f" ]
import javax.vecmath.Point2f;
import javax.vecmath.*;
[ "javax.vecmath" ]
javax.vecmath;
2,104,600
ManagementMessage testMessage = new ManagementMessage(); testMessage.getHeader().setNetIDEProtocolVersion(NetIDEProtocolVersion.VERSION_1_1); testMessage.getHeader().setPayloadLength((short) 3); testMessage.getHeader().setTransactionId(17); testMessage.getHeader().setModuleId(2); ...
ManagementMessage testMessage = new ManagementMessage(); testMessage.getHeader().setNetIDEProtocolVersion(NetIDEProtocolVersion.VERSION_1_1); testMessage.getHeader().setPayloadLength((short) 3); testMessage.getHeader().setTransactionId(17); testMessage.getHeader().setModuleId(2); testMessage.getHeader().setDatapathId(4...
/** * Test message serialization. testName = * "ManagementMessage serialization test", suiteName = * "ManagementMessage Tests" */
Test message serialization. testName = "ManagementMessage serialization test", suiteName = "ManagementMessage Tests"
TestMessageSerialization
{ "repo_name": "fp7-netide/Engine", "path": "odl-shim/netiplib/src/test/java/org/opendaylight/netide/netiplib/tests/ManagementMessageTest.java", "license": "epl-1.0", "size": 4220 }
[ "org.junit.Assert", "org.opendaylight.netide.netiplib.ManagementMessage", "org.opendaylight.netide.netiplib.NetIDEProtocolVersion" ]
import org.junit.Assert; import org.opendaylight.netide.netiplib.ManagementMessage; import org.opendaylight.netide.netiplib.NetIDEProtocolVersion;
import org.junit.*; import org.opendaylight.netide.netiplib.*;
[ "org.junit", "org.opendaylight.netide" ]
org.junit; org.opendaylight.netide;
769,489
DebugAssistent.doNullCheck(messageFileName, msgKey); if (map == null) { map = new HashMap<String, Properties>(); } Properties p = map.get(messageFileName); if (p == null) { // wenn in der globalen Map noch nicht vorhanden, Texte laden. p = new...
DebugAssistent.doNullCheck(messageFileName, msgKey); if (map == null) { map = new HashMap<String, Properties>(); } Properties p = map.get(messageFileName); if (p == null) { p = new Properties(); try { p.load(DefaultClassFactory.FACTORY.getResource("text/" + messageFileName + STR)); map.put(messageFileName, p); } catch ...
/** * Holt den in einer text/*.properties Datei enthaltenen Text. * * @param messageFileName * @param msgKey * @return */
Holt den in einer text/*.properties Datei enthaltenen Text
getText
{ "repo_name": "ThoNill/JanusValidations", "path": "JanusValidations/src/org/janus/message/MessageSource.java", "license": "gpl-3.0", "size": 1851 }
[ "java.io.IOException", "java.util.HashMap", "java.util.Properties", "org.janus.data.DefaultClassFactory", "org.janus.helper.DebugAssistent" ]
import java.io.IOException; import java.util.HashMap; import java.util.Properties; import org.janus.data.DefaultClassFactory; import org.janus.helper.DebugAssistent;
import java.io.*; import java.util.*; import org.janus.data.*; import org.janus.helper.*;
[ "java.io", "java.util", "org.janus.data", "org.janus.helper" ]
java.io; java.util; org.janus.data; org.janus.helper;
2,385,940
@NotAuditable public Set<TransferTarget>getTransferTargets() throws TransferException;
public Set<TransferTarget>getTransferTargets() throws TransferException;
/** * Get all the transfer targets */
Get all the transfer targets
getTransferTargets
{ "repo_name": "daniel-he/community-edition", "path": "projects/repository/source/java/org/alfresco/service/cmr/transfer/TransferService.java", "license": "lgpl-3.0", "size": 10950 }
[ "java.util.Set" ]
import java.util.Set;
import java.util.*;
[ "java.util" ]
java.util;
1,118,322
private void checkStitching(Geometric geom, Map<NodeInst, ObjectQTree> nodePortBounds, Map<ArcProto,Layer> arcLayers, PolyMerge stayInside, StitchingTopology top, Rectangle2D limitBound, ArcProto preferredArc) { Cell cell = geom.getParent(); NodeInst ni = null; if (geom instanceof NodeInst) ni = (NodeInst...
void function(Geometric geom, Map<NodeInst, ObjectQTree> nodePortBounds, Map<ArcProto,Layer> arcLayers, PolyMerge stayInside, StitchingTopology top, Rectangle2D limitBound, ArcProto preferredArc) { Cell cell = geom.getParent(); NodeInst ni = null; if (geom instanceof NodeInst) ni = (NodeInst)geom; List<Geometric> geoms...
/** * Method to check an object for possible stitching to neighboring objects. * @param geom the object to check for stitching. * @param nodePortBounds quad-tree bounds information for all nodes in the Cell. * @param arcLayers a map from ArcProtos to Layers. * @param stayInside is the area in which to route (...
Method to check an object for possible stitching to neighboring objects
checkStitching
{ "repo_name": "imr/Electric8", "path": "com/sun/electric/tool/routing/AutoStitch.java", "license": "gpl-3.0", "size": 116435 }
[ "com.sun.electric.database.geometry.DBMath", "com.sun.electric.database.geometry.ObjectQTree", "com.sun.electric.database.geometry.PolyMerge", "com.sun.electric.database.hierarchy.Cell", "com.sun.electric.database.topology.ArcInst", "com.sun.electric.database.topology.Geometric", "com.sun.electric.datab...
import com.sun.electric.database.geometry.DBMath; import com.sun.electric.database.geometry.ObjectQTree; import com.sun.electric.database.geometry.PolyMerge; import com.sun.electric.database.hierarchy.Cell; import com.sun.electric.database.topology.ArcInst; import com.sun.electric.database.topology.Geometric; import co...
import com.sun.electric.database.geometry.*; import com.sun.electric.database.hierarchy.*; import com.sun.electric.database.topology.*; import com.sun.electric.technology.*; import com.sun.electric.technology.technologies.*; import java.awt.geom.*; import java.util.*;
[ "com.sun.electric", "java.awt", "java.util" ]
com.sun.electric; java.awt; java.util;
293,092
private Template createTemplateWithResource(Resource resource, boolean cacheable) throws IOException { InputStream in = resource.getInputStream(); try { // If "pageName" will be passed null, it will be determined by "establishPageName" method which will // make it such that i...
Template function(Resource resource, boolean cacheable) throws IOException { InputStream in = resource.getInputStream(); try { if (cacheable) { return createTemplate(in, resource, getPathForResource(resource)); } return createTemplate(in, resource, null); } finally { in.close(); } }
/** * Creates a Template for the given Spring Resource instance * * @param resource The Spring resource instance * @return A Groovy Template * @throws java.io.IOException Thrown when an error occurs reading the template */
Creates a Template for the given Spring Resource instance
createTemplateWithResource
{ "repo_name": "erdi/grails-core", "path": "grails-web/src/main/groovy/org/codehaus/groovy/grails/web/pages/GroovyPagesTemplateEngine.java", "license": "apache-2.0", "size": 33532 }
[ "groovy.text.Template", "java.io.IOException", "java.io.InputStream", "org.springframework.core.io.Resource" ]
import groovy.text.Template; import java.io.IOException; import java.io.InputStream; import org.springframework.core.io.Resource;
import groovy.text.*; import java.io.*; import org.springframework.core.io.*;
[ "groovy.text", "java.io", "org.springframework.core" ]
groovy.text; java.io; org.springframework.core;
1,247,924
public final boolean isSet(InternalThreadLocalMap threadLocalMap) { return threadLocalMap != null && threadLocalMap.isIndexedVariableSet(index); }
final boolean function(InternalThreadLocalMap threadLocalMap) { return threadLocalMap != null && threadLocalMap.isIndexedVariableSet(index); }
/** * Returns {@code true} if and only if this thread-local variable is set. * The specified thread local map must be for the current thread. */
Returns true if and only if this thread-local variable is set. The specified thread local map must be for the current thread
isSet
{ "repo_name": "artgon/netty", "path": "common/src/main/java/io/netty/util/concurrent/FastThreadLocal.java", "license": "apache-2.0", "size": 10086 }
[ "io.netty.util.internal.InternalThreadLocalMap" ]
import io.netty.util.internal.InternalThreadLocalMap;
import io.netty.util.internal.*;
[ "io.netty.util" ]
io.netty.util;
2,749,232
@Test(groups = {"prism", "0.2", "embedded"}) public void testScheduleNonExistentFeedOnBothColos() throws Exception { AssertUtil.assertFailed(prism.getFeedHelper().submitAndSchedule(feed1)); AssertUtil.assertFailed(prism.getFeedHelper().submitAndSchedule(feed2)); }
@Test(groups = {"prism", "0.2", STR}) void function() throws Exception { AssertUtil.assertFailed(prism.getFeedHelper().submitAndSchedule(feed1)); AssertUtil.assertFailed(prism.getFeedHelper().submitAndSchedule(feed2)); }
/** * Attempt to submit and schedule non-registered feed should fail. */
Attempt to submit and schedule non-registered feed should fail
testScheduleNonExistentFeedOnBothColos
{ "repo_name": "pisaychuk/falcon", "path": "falcon-regression/merlin/src/test/java/org/apache/falcon/regression/prism/PrismFeedSnSTest.java", "license": "apache-2.0", "size": 22637 }
[ "org.apache.falcon.regression.core.util.AssertUtil", "org.testng.annotations.Test" ]
import org.apache.falcon.regression.core.util.AssertUtil; import org.testng.annotations.Test;
import org.apache.falcon.regression.core.util.*; import org.testng.annotations.*;
[ "org.apache.falcon", "org.testng.annotations" ]
org.apache.falcon; org.testng.annotations;
2,242,168
public static IntValuedEnum<RTresult> rtBufferGetSize3D(RTbuffer buffer, Pointer<Long> width, Pointer<Long> height, Pointer<Long> depth) { return FlagSet .fromValue(rtBufferGetSize3D(Pointer.getPeer(buffer), Pointer.getPeer(width), Pointer.getPeer(height), Pointer.getPeer(depth)), RTresult.class); }
static IntValuedEnum<RTresult> function(RTbuffer buffer, Pointer<Long> width, Pointer<Long> height, Pointer<Long> depth) { return FlagSet .fromValue(rtBufferGetSize3D(Pointer.getPeer(buffer), Pointer.getPeer(width), Pointer.getPeer(height), Pointer.getPeer(depth)), RTresult.class); }
/** * Original signature : <code>RTresult rtBufferGetSize3D(RTbuffer, RTsize*, RTsize*, RTsize*)</code><br> * <i>native declaration : include\optix_host.h:8348</i> */
Original signature : <code>RTresult rtBufferGetSize3D(RTbuffer, RTsize*, RTsize*, RTsize*)</code> native declaration : include\optix_host.h:8348
rtBufferGetSize3D
{ "repo_name": "fetox74/optix-wrapper", "path": "src/main/java/com/fetoxdevelopments/optix/api/RT.java", "license": "mit", "size": 162970 }
[ "com.fetoxdevelopments.optix.api.enumeration.RTresult", "com.fetoxdevelopments.optix.api.struct.RTbuffer", "org.bridj.FlagSet", "org.bridj.IntValuedEnum", "org.bridj.Pointer" ]
import com.fetoxdevelopments.optix.api.enumeration.RTresult; import com.fetoxdevelopments.optix.api.struct.RTbuffer; import org.bridj.FlagSet; import org.bridj.IntValuedEnum; import org.bridj.Pointer;
import com.fetoxdevelopments.optix.api.enumeration.*; import com.fetoxdevelopments.optix.api.struct.*; import org.bridj.*;
[ "com.fetoxdevelopments.optix", "org.bridj" ]
com.fetoxdevelopments.optix; org.bridj;
861,291
public void setModules(List modules) { _modules = modules; }
void function(List modules) { _modules = modules; }
/** * Sets the entry modules. * <p> * @param modules the list of ModuleImpl elements with the entry modules to set, * an empty list or <b>null</b> if none. * */
Sets the entry modules.
setModules
{ "repo_name": "4thline/feeds", "path": "src/main/java/com/sun/syndication/feed/atom/Person.java", "license": "agpl-3.0", "size": 5381 }
[ "java.util.List" ]
import java.util.List;
import java.util.*;
[ "java.util" ]
java.util;
1,801,846
void recordNewTransaction(String name) { synchronized (this.allStreamNames) { Preconditions.checkArgument(!this.allStreams.containsKey(name), "Given Stream already exists"); this.allStreamNames.add(name); } this.allStreams.put(name, new StreamInfo(name, true)); }
void recordNewTransaction(String name) { synchronized (this.allStreamNames) { Preconditions.checkArgument(!this.allStreams.containsKey(name), STR); this.allStreamNames.add(name); } this.allStreams.put(name, new StreamInfo(name, true)); }
/** * Records the fact that a new Transaction was created. * * @param name The name of the Transaction. */
Records the fact that a new Transaction was created
recordNewTransaction
{ "repo_name": "pravega/pravega", "path": "test/integration/src/main/java/io/pravega/test/integration/selftest/TestState.java", "license": "apache-2.0", "size": 20907 }
[ "com.google.common.base.Preconditions" ]
import com.google.common.base.Preconditions;
import com.google.common.base.*;
[ "com.google.common" ]
com.google.common;
1,965,882
void write(int address, byte b) throws IOException;
void write(int address, byte b) throws IOException;
/** * This method writes one byte to i2c device. * * @param address local address in the i2c device * @param b byte to be written * * @throws IOException thrown in case byte cannot be written to the i2c device or i2c bus */
This method writes one byte to i2c device
write
{ "repo_name": "Pi4J/pi4j", "path": "pi4j-core/src/main/java/com/pi4j/io/i2c/I2CDevice.java", "license": "lgpl-3.0", "size": 6967 }
[ "java.io.IOException" ]
import java.io.IOException;
import java.io.*;
[ "java.io" ]
java.io;
1,372,189
public void pause() { if (timer.isRunning()) { timer.stop(); } } /** * Resumes the animation if it is armed/has been paused, automatically * called by {@link #paintIcon(Component, Graphics, int, int)}
void function() { if (timer.isRunning()) { timer.stop(); } } /** * Resumes the animation if it is armed/has been paused, automatically * called by {@link #paintIcon(Component, Graphics, int, int)}
/** * Pauses the animation at the current frame. */
Pauses the animation at the current frame
pause
{ "repo_name": "valib/UniversalMediaServer", "path": "src/main/java/net/pms/newgui/components/AnimatedIcon.java", "license": "gpl-2.0", "size": 21399 }
[ "java.awt.Component", "java.awt.Graphics" ]
import java.awt.Component; import java.awt.Graphics;
import java.awt.*;
[ "java.awt" ]
java.awt;
190,304
private void loadServerVariables() throws SQLException { try {//我加上的 DEBUG.P(this,"loadServerVariables()"); DEBUG.P("getCacheServerConfiguration()="+getCacheServerConfiguration()); //当cacheServerConfiguration=true时 if (getCacheServerConfiguration()) { synchronized (serverConfigByUrl) { //serverConf...
void function() throws SQLException { try { DEBUG.P(this,STR); DEBUG.P(STR+getCacheServerConfiguration()); if (getCacheServerConfiguration()) { synchronized (serverConfigByUrl) { Map cachedVariableMap = (Map) serverConfigByUrl.get(getURL()); if (cachedVariableMap != null) { this.serverVariables = cachedVariableMap; thi...
/** * Loads the result of 'SHOW VARIABLES' into the serverVariables field so * that the driver can configure itself. * * @throws SQLException * if the 'SHOW VARIABLES' query fails for any reason. */
Loads the result of 'SHOW VARIABLES' into the serverVariables field so that the driver can configure itself
loadServerVariables
{ "repo_name": "mashuai/Open-Source-Research", "path": "MySQL-JDBC-Driver/src/com/mysql/jdbc/ConnectionImpl.java", "license": "apache-2.0", "size": 172162 }
[ "java.sql.ResultSet", "java.sql.SQLException", "java.util.Map" ]
import java.sql.ResultSet; import java.sql.SQLException; import java.util.Map;
import java.sql.*; import java.util.*;
[ "java.sql", "java.util" ]
java.sql; java.util;
113,659
EditMode.Mode mode();
EditMode.Mode mode();
/** * Get the current Mode. * Default mode is Emacs * */
Get the current Mode. Default mode is Emacs
mode
{ "repo_name": "jfdenise/aesh", "path": "aesh/src/main/java/org/aesh/command/settings/Settings.java", "license": "apache-2.0", "size": 7255 }
[ "org.aesh.readline.editing.EditMode" ]
import org.aesh.readline.editing.EditMode;
import org.aesh.readline.editing.*;
[ "org.aesh.readline" ]
org.aesh.readline;
1,290,888