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 |
|---|---|---|---|---|---|---|---|---|---|---|---|
// "upload" FLOW EVENT HANDLERS
public Event handleUploadEvent(RequestContext context, Object command, BindingResult errors) throws Exception {
return doUploadEvent(context,command,errors);
}
| Event function(RequestContext context, Object command, BindingResult errors) throws Exception { return doUploadEvent(context,command,errors); } | /**
* "upload" flow, "upload" state transitioning to "review" state
*/ | "upload" flow, "upload" state transitioning to "review" state | handleUploadEvent | {
"repo_name": "UCSFMemoryAndAging/lava",
"path": "lava-crms/src/edu/ucsf/lava/crms/assessment/controller/InstrumentHandler.java",
"license": "bsd-2-clause",
"size": 92159
} | [
"org.springframework.validation.BindingResult",
"org.springframework.webflow.execution.Event",
"org.springframework.webflow.execution.RequestContext"
] | import org.springframework.validation.BindingResult; import org.springframework.webflow.execution.Event; import org.springframework.webflow.execution.RequestContext; | import org.springframework.validation.*; import org.springframework.webflow.execution.*; | [
"org.springframework.validation",
"org.springframework.webflow"
] | org.springframework.validation; org.springframework.webflow; | 2,678,220 |
final TiffRasterData instance = new TiffRasterDataFloat(width, height);
for (int y = 0; y < height; y++) {
for (int x = 0; x < width; x++) {
final int index = y * width + height;
instance.setValue(x, y, index);
final int test = (int) instance.getValue(... | final TiffRasterData instance = new TiffRasterDataFloat(width, height); for (int y = 0; y < height; y++) { for (int x = 0; x < width; x++) { final int index = y * width + height; instance.setValue(x, y, index); final int test = (int) instance.getValue(x, y); assertEquals(index, test, STR + x + "," + y + ")"); instance.... | /**
* Test of setValue method, of class TiffRasterData.
*/ | Test of setValue method, of class TiffRasterData | testSetValue | {
"repo_name": "apache/commons-imaging",
"path": "src/test/java/org/apache/commons/imaging/formats/tiff/TiffRasterDataTest.java",
"license": "apache-2.0",
"size": 8633
} | [
"org.junit.jupiter.api.Assertions"
] | import org.junit.jupiter.api.Assertions; | import org.junit.jupiter.api.*; | [
"org.junit.jupiter"
] | org.junit.jupiter; | 1,083,086 |
public Collection<? extends Person<?>> execute( CollectorResult aCollectorResult )
throws SdiException; | Collection<? extends Person<?>> function( CollectorResult aCollectorResult ) throws SdiException; | /**
* Transforms the raw collected input into a normalized collection of Person
* <p>
* @param aCollectorResult
* @return a normalized collection of Person
* @throws SdiException on any problem
*/ | Transforms the raw collected input into a normalized collection of Person | execute | {
"repo_name": "heribender/SocialDataImporter",
"path": "SDI-core/src/main/java/ch/sdi/core/impl/data/InputTransformer.java",
"license": "lgpl-3.0",
"size": 1613
} | [
"ch.sdi.core.exc.SdiException",
"ch.sdi.core.intf.CollectorResult",
"java.util.Collection"
] | import ch.sdi.core.exc.SdiException; import ch.sdi.core.intf.CollectorResult; import java.util.Collection; | import ch.sdi.core.exc.*; import ch.sdi.core.intf.*; import java.util.*; | [
"ch.sdi.core",
"java.util"
] | ch.sdi.core; java.util; | 155,203 |
public int noop() throws IOException
{
return sendCommand(FTPCmd.NOOP);
} | int function() throws IOException { return sendCommand(FTPCmd.NOOP); } | /**
* A convenience method to send the FTP NOOP command to the server,
* receive the reply, and return the reply code.
*
* @return The reply code received from the server.
* @throws FTPConnectionClosedException
* If the FTP server prematurely closes the connection as a result
* ... | A convenience method to send the FTP NOOP command to the server, receive the reply, and return the reply code | noop | {
"repo_name": "apache/commons-net",
"path": "src/main/java/org/apache/commons/net/ftp/FTP.java",
"license": "apache-2.0",
"size": 80585
} | [
"java.io.IOException"
] | import java.io.IOException; | import java.io.*; | [
"java.io"
] | java.io; | 2,111,573 |
void createActivityRecovery(String channel, long activityId, String reason, Date dateTime, Element data, String[] actions, int retries); | void createActivityRecovery(String channel, long activityId, String reason, Date dateTime, Element data, String[] actions, int retries); | /**
* Create an activity recovery object for a given activity instance.
* Specify the reason and optional data associated with the failure.
* Date/time failure occurred, and the recovery channel and available
* recovery actions.
*/ | Create an activity recovery object for a given activity instance. Specify the reason and optional data associated with the failure. Date/time failure occurred, and the recovery channel and available recovery actions | createActivityRecovery | {
"repo_name": "dinkelaker/hbs4ode",
"path": "bpel-dao/src/main/java/org/apache/ode/bpel/dao/ProcessInstanceDAO.java",
"license": "apache-2.0",
"size": 7160
} | [
"java.util.Date",
"org.w3c.dom.Element"
] | import java.util.Date; import org.w3c.dom.Element; | import java.util.*; import org.w3c.dom.*; | [
"java.util",
"org.w3c.dom"
] | java.util; org.w3c.dom; | 24,845 |
public void addStore( FeatureStore fs ) {
synchronized ( this ) {
if ( schemaToStore.containsValue( fs ) ) {
String msg = get( "WFS_FEATURESTORE_ALREADY_REGISTERED", fs );
LOG.error( msg );
throw new IllegalArgumentException( msg );
}
... | void function( FeatureStore fs ) { synchronized ( this ) { if ( schemaToStore.containsValue( fs ) ) { String msg = get( STR, fs ); LOG.error( msg ); throw new IllegalArgumentException( msg ); } for ( FeatureType ft : fs.getSchema().getFeatureTypes( null, true, false ) ) { if ( ft.getName().getNamespaceURI().equals( GML... | /**
* Registers a new {@link FeatureStore} to the WFS.
*
* @param fs
* store to be registered
*/ | Registers a new <code>FeatureStore</code> to the WFS | addStore | {
"repo_name": "deegree/deegree3",
"path": "deegree-services/deegree-services-wfs/src/main/java/org/deegree/services/wfs/WfsFeatureStoreManager.java",
"license": "lgpl-2.1",
"size": 9790
} | [
"java.util.Map",
"org.deegree.feature.persistence.FeatureStore",
"org.deegree.feature.types.FeatureType",
"org.deegree.services.i18n.Messages"
] | import java.util.Map; import org.deegree.feature.persistence.FeatureStore; import org.deegree.feature.types.FeatureType; import org.deegree.services.i18n.Messages; | import java.util.*; import org.deegree.feature.persistence.*; import org.deegree.feature.types.*; import org.deegree.services.i18n.*; | [
"java.util",
"org.deegree.feature",
"org.deegree.services"
] | java.util; org.deegree.feature; org.deegree.services; | 2,092,702 |
private boolean checkHost(String hostName) {
if( hostName == null )
return false;
hostName = hostName.toLowerCase();
// System.out.println("checking host: " + hostName);
for (Iterator iter = allowedHosts.iterator(); iter.hasNext();) {
String allowedHost = (String) iter.next();
if( hostName.equals(al... | boolean function(String hostName) { if( hostName == null ) return false; hostName = hostName.toLowerCase(); for (Iterator iter = allowedHosts.iterator(); iter.hasNext();) { String allowedHost = (String) iter.next(); if( hostName.equals(allowedHost) ) return true; } return false; } | /**
* compare the specified host (might be a hostname or an IP - dont really care)
* and see if it is a match against one of the allowed hosts
* @param hostName
* @return true if this hostname matches one in our allowed hosts
*/ | compare the specified host (might be a hostname or an IP - dont really care) and see if it is a match against one of the allowed hosts | checkHost | {
"repo_name": "BiglySoftware/BiglyBT",
"path": "uis/src/com/biglybt/ui/telnet/SocketServer.java",
"license": "gpl-2.0",
"size": 5970
} | [
"java.util.Iterator"
] | import java.util.Iterator; | import java.util.*; | [
"java.util"
] | java.util; | 388,212 |
@Override
public void onReceive(Object message) {
if(message instanceof NewArticles){
NewArticles articles = (NewArticles) message;
HashSet<OrpArticle> newArticles = articles.getNewArticles();
this.articles.merge(newArticles);
} else if (message instanceof RemovedArticles) {
Remo... | void function(Object message) { if(message instanceof NewArticles){ NewArticles articles = (NewArticles) message; HashSet<OrpArticle> newArticles = articles.getNewArticles(); this.articles.merge(newArticles); } else if (message instanceof RemovedArticles) { RemovedArticles articles = (RemovedArticles) message; HashSet<... | /**
* Handles received messages.
* @param message A message can either be an item (OrpArticleRemove) or "getItems" to request all stored items
* or "getRecentItems" to get only the last recently added items.
*/ | Handles received messages | onReceive | {
"repo_name": "PatchOnTheEdge/orp",
"path": "orp-master/src/main/java/de/tuberlin/orp/master/ArticleMerger.java",
"license": "mit",
"size": 4355
} | [
"de.tuberlin.orp.common.message.OrpArticle",
"de.tuberlin.orp.common.message.OrpArticleRemove",
"java.util.HashSet"
] | import de.tuberlin.orp.common.message.OrpArticle; import de.tuberlin.orp.common.message.OrpArticleRemove; import java.util.HashSet; | import de.tuberlin.orp.common.message.*; import java.util.*; | [
"de.tuberlin.orp",
"java.util"
] | de.tuberlin.orp; java.util; | 1,887,025 |
@Override
public String createToken(@NonNull String subject)
{
val now = Instant.now();
return Jwts.builder()
.setSubject(subject)
.setIssuedAt(Date.from(now))
.setExpiration(Date.from(now.plus(getExpirationTime())))
.signWith(... | String function(@NonNull String subject) { val now = Instant.now(); return Jwts.builder() .setSubject(subject) .setIssuedAt(Date.from(now)) .setExpiration(Date.from(now.plus(getExpirationTime()))) .signWith(SIGNATURE_ALGORITHM, keysRef.get()[0]) .compact(); } | /**
* Create a new token using the first secret key in the array for signing.
*/ | Create a new token using the first secret key in the array for signing | createToken | {
"repo_name": "lyind/base",
"path": "src/main/java/net/talpidae/base/util/auth/AbstractAuthenticator.java",
"license": "gpl-3.0",
"size": 3302
} | [
"io.jsonwebtoken.Jwts",
"java.sql.Date",
"java.time.Instant"
] | import io.jsonwebtoken.Jwts; import java.sql.Date; import java.time.Instant; | import io.jsonwebtoken.*; import java.sql.*; import java.time.*; | [
"io.jsonwebtoken",
"java.sql",
"java.time"
] | io.jsonwebtoken; java.sql; java.time; | 2,401,954 |
public AnimatableValue interpolate(AnimatableValue result,
AnimatableValue to,
float interpolation,
AnimatableValue accumulation,
int multiplier) {
Anim... | AnimatableValue function(AnimatableValue result, AnimatableValue to, float interpolation, AnimatableValue accumulation, int multiplier) { AnimatableAngleValue res; if (result == null) { res = new AnimatableAngleValue(target); } else { res = (AnimatableAngleValue) result; } float v = value; short u = unit; if (to != nul... | /**
* Performs interpolation to the given value.
*/ | Performs interpolation to the given value | interpolate | {
"repo_name": "Uni-Sol/batik",
"path": "sources/org/apache/batik/anim/values/AnimatableAngleValue.java",
"license": "apache-2.0",
"size": 3939
} | [
"org.w3c.dom.svg.SVGAngle"
] | import org.w3c.dom.svg.SVGAngle; | import org.w3c.dom.svg.*; | [
"org.w3c.dom"
] | org.w3c.dom; | 1,470,460 |
public static NetworkInterface getByName(String name)
throws SocketException
{
for (Enumeration e = getNetworkInterfaces(); e.hasMoreElements();)
{
NetworkInterface tmp = (NetworkInterface) e.nextElement();
if (name.equals(tmp.getName()))
return tmp;
}
// No interface with the given n... | static NetworkInterface function(String name) throws SocketException { for (Enumeration e = getNetworkInterfaces(); e.hasMoreElements();) { NetworkInterface tmp = (NetworkInterface) e.nextElement(); if (name.equals(tmp.getName())) return tmp; } return null; } | /**
* Returns an network interface by name
*
* @param name The name of the interface to return
*
* @return a <code>NetworkInterface</code> object representing the interface,
* or null if there is no interface with that name.
*
* @exception SocketException If an error occurs
* @exception Null... | Returns an network interface by name | getByName | {
"repo_name": "shaotuanchen/sunflower_exp",
"path": "tools/source/gcc-4.2.4/libjava/classpath/java/net/NetworkInterface.java",
"license": "bsd-3-clause",
"size": 8340
} | [
"java.util.Enumeration"
] | import java.util.Enumeration; | import java.util.*; | [
"java.util"
] | java.util; | 1,378,469 |
public Object getValue(final int index) {
ExpressionSegment valueExpression = valueExpressions.get(index);
return valueExpression instanceof ParameterMarkerExpressionSegment ? parameters.get(getParameterIndex(valueExpression)) : ((LiteralExpressionSegment) valueExpression).getLiterals();
} | Object function(final int index) { ExpressionSegment valueExpression = valueExpressions.get(index); return valueExpression instanceof ParameterMarkerExpressionSegment ? parameters.get(getParameterIndex(valueExpression)) : ((LiteralExpressionSegment) valueExpression).getLiterals(); } | /**
* Get value.
*
* @param index index
* @return value
*/ | Get value | getValue | {
"repo_name": "shardingjdbc/sharding-jdbc",
"path": "shardingsphere-sql-parser/shardingsphere-sql-parser-binder/src/main/java/org/apache/shardingsphere/sql/parser/binder/segment/insert/values/InsertValueContext.java",
"license": "apache-2.0",
"size": 3744
} | [
"org.apache.shardingsphere.sql.parser.sql.segment.dml.expr.ExpressionSegment",
"org.apache.shardingsphere.sql.parser.sql.segment.dml.expr.simple.LiteralExpressionSegment",
"org.apache.shardingsphere.sql.parser.sql.segment.dml.expr.simple.ParameterMarkerExpressionSegment"
] | import org.apache.shardingsphere.sql.parser.sql.segment.dml.expr.ExpressionSegment; import org.apache.shardingsphere.sql.parser.sql.segment.dml.expr.simple.LiteralExpressionSegment; import org.apache.shardingsphere.sql.parser.sql.segment.dml.expr.simple.ParameterMarkerExpressionSegment; | import org.apache.shardingsphere.sql.parser.sql.segment.dml.expr.*; import org.apache.shardingsphere.sql.parser.sql.segment.dml.expr.simple.*; | [
"org.apache.shardingsphere"
] | org.apache.shardingsphere; | 630,055 |
protected double[][] createRandomMatrix(String name, int rows, int cols, double min, double max, double sparsity,
long seed, boolean bIncludeR) {
double[][] matrix = TestUtils.generateTestMatrix(rows, cols, min, max, sparsity, seed);
String completePath = baseDirectory + INPUT_DIR + name + "/in";
TestUtils... | double[][] function(String name, int rows, int cols, double min, double max, double sparsity, long seed, boolean bIncludeR) { double[][] matrix = TestUtils.generateTestMatrix(rows, cols, min, max, sparsity, seed); String completePath = baseDirectory + INPUT_DIR + name + "/in"; TestUtils.writeTestMatrix(completePath, ma... | /**
* <p>
* Generates a random matrix with the specified characteristics and writes
* it to a file.
* </p>
*
* @param name
* directory name
* @param rows
* number of rows
* @param cols
* number of columns
* @param min
* minimum value
* @param max
... | Generates a random matrix with the specified characteristics and writes it to a file. | createRandomMatrix | {
"repo_name": "dusenberrymw/systemml_old",
"path": "system-ml/src/test/java/com/ibm/bi/dml/test/integration/AutomatedTestBase.java",
"license": "apache-2.0",
"size": 46105
} | [
"com.ibm.bi.dml.test.utils.TestUtils"
] | import com.ibm.bi.dml.test.utils.TestUtils; | import com.ibm.bi.dml.test.utils.*; | [
"com.ibm.bi"
] | com.ibm.bi; | 207,093 |
private int runAsPlugin()
{
Environment env = (Environment) registry.lookup(LookupNames.ENV);
if (env == null) return -1;
return env.runAsPlugin();
}
ActivityComponent(UserNotifier viewer, Registry registry,
SecurityContext ctx)
{
if (viewer == null) throw new NullPointerExcepti... | int function() { Environment env = (Environment) registry.lookup(LookupNames.ENV); if (env == null) return -1; return env.runAsPlugin(); } ActivityComponent(UserNotifier viewer, Registry registry, SecurityContext ctx) { if (viewer == null) throw new NullPointerException(STR); if (registry == null) throw new NullPointer... | /**
* Returns the identifier of the plugin to run.
*
* @return See above.
*/ | Returns the identifier of the plugin to run | runAsPlugin | {
"repo_name": "rleigh-dundee/openmicroscopy",
"path": "components/insight/SRC/org/openmicroscopy/shoola/env/ui/ActivityComponent.java",
"license": "gpl-2.0",
"size": 28001
} | [
"org.openmicroscopy.shoola.env.Environment",
"org.openmicroscopy.shoola.env.LookupNames",
"org.openmicroscopy.shoola.env.config.Registry",
"org.openmicroscopy.shoola.env.data.util.SecurityContext"
] | import org.openmicroscopy.shoola.env.Environment; import org.openmicroscopy.shoola.env.LookupNames; import org.openmicroscopy.shoola.env.config.Registry; import org.openmicroscopy.shoola.env.data.util.SecurityContext; | import org.openmicroscopy.shoola.env.*; import org.openmicroscopy.shoola.env.config.*; import org.openmicroscopy.shoola.env.data.util.*; | [
"org.openmicroscopy.shoola"
] | org.openmicroscopy.shoola; | 2,051,196 |
public Locale getLocale(); | Locale function(); | /**
* Returns the preferred <code>Locale</code> that the client will accept
* content in, based on the Accept-Language header. If the client request
* doesn't provide an Accept-Language header, this method returns the
* default locale for the server.
*
* @return the preferred <code>Locale... | Returns the preferred <code>Locale</code> that the client will accept content in, based on the Accept-Language header. If the client request doesn't provide an Accept-Language header, this method returns the default locale for the server | getLocale | {
"repo_name": "plumer/codana",
"path": "tomcat_files/7.0.61/ServletRequest.java",
"license": "mit",
"size": 19378
} | [
"java.util.Locale"
] | import java.util.Locale; | import java.util.*; | [
"java.util"
] | java.util; | 2,075,333 |
boolean checkIfValidTargetNode( DOMForest parent, Element bindings, Element target ); | boolean checkIfValidTargetNode( DOMForest parent, Element bindings, Element target ); | /**
* Checks if the specified element is a valid target node
* to attach a customization.
*
* @param parent
* The owner DOMForest object. Probably useful only
* to obtain context information, such as error handler.
* @param bindings
* {@code <jaxb:bindings>} elemen... | Checks if the specified element is a valid target node to attach a customization | checkIfValidTargetNode | {
"repo_name": "FauxFaux/jdk9-jaxws",
"path": "src/jdk.xml.bind/share/classes/com/sun/tools/internal/xjc/reader/internalizer/InternalizationLogic.java",
"license": "gpl-2.0",
"size": 3529
} | [
"org.w3c.dom.Element"
] | import org.w3c.dom.Element; | import org.w3c.dom.*; | [
"org.w3c.dom"
] | org.w3c.dom; | 923,231 |
private void setupView() {
LinearLayout lLinLayout = new LinearLayout(this);
lLinLayout.setId(1);
lLinLayout.setOrientation(LinearLayout.VERTICAL);
lLinLayout.setGravity(Gravity.CENTER);
lLinLayout.setBackgroundColor(Color.BLACK);
LayoutParams lLinLayoutParms = new L... | void function() { LinearLayout lLinLayout = new LinearLayout(this); lLinLayout.setId(1); lLinLayout.setOrientation(LinearLayout.VERTICAL); lLinLayout.setGravity(Gravity.CENTER); lLinLayout.setBackgroundColor(Color.BLACK); LayoutParams lLinLayoutParms = new LayoutParams(ViewGroup.LayoutParams.MATCH_PARENT, ViewGroup.Lay... | /**
* Create the view in which the video will be rendered.
*/ | Create the view in which the video will be rendered | setupView | {
"repo_name": "keshwans/TutosAndroidFrance",
"path": "MyYoutube/app/src/main/java/com/github/florent37/myyoutube/videoplay/IntroVideoActivity.java",
"license": "mit",
"size": 25496
} | [
"android.graphics.Color",
"android.util.TypedValue",
"android.view.Gravity",
"android.view.ViewGroup",
"android.widget.LinearLayout",
"android.widget.ProgressBar",
"android.widget.RelativeLayout",
"android.widget.TextView",
"android.widget.VideoView"
] | import android.graphics.Color; import android.util.TypedValue; import android.view.Gravity; import android.view.ViewGroup; import android.widget.LinearLayout; import android.widget.ProgressBar; import android.widget.RelativeLayout; import android.widget.TextView; import android.widget.VideoView; | import android.graphics.*; import android.util.*; import android.view.*; import android.widget.*; | [
"android.graphics",
"android.util",
"android.view",
"android.widget"
] | android.graphics; android.util; android.view; android.widget; | 279,173 |
@SafeVarargs
public static <T, C extends Collection<T>> C combine(
C rCollection,
T... rValues)
{
return combine(rCollection, Arrays.asList(rValues));
} | static <T, C extends Collection<T>> C function( C rCollection, T... rValues) { return combine(rCollection, Arrays.asList(rValues)); } | /***************************************
* Creates a new collection from an existing collection and one or more
* additional elements.
*
* @param rCollection The collection to combine with the additional values
* @param rValues The additional values to combine with the collection
*
* @see #combine(C... | Creates a new collection from an existing collection and one or more additional elements | combine | {
"repo_name": "esoco/objectrelations",
"path": "src/main/java/de/esoco/lib/collection/CollectionUtil.java",
"license": "apache-2.0",
"size": 46897
} | [
"java.util.Arrays",
"java.util.Collection"
] | import java.util.Arrays; import java.util.Collection; | import java.util.*; | [
"java.util"
] | java.util; | 1,009,429 |
public static LDAPSearchResults searchEntries(String entryDN, int searchScope,
String searchFilter, String[] attrs, LDAPSearchConstraints constraints) throws UserManagementException {
// connect to the server
try {
LDAPConnection lc = createLDAPConnection();
//typesOnly - fal... | static LDAPSearchResults function(String entryDN, int searchScope, String searchFilter, String[] attrs, LDAPSearchConstraints constraints) throws UserManagementException { try { LDAPConnection lc = createLDAPConnection(); LDAPSearchResults searchResults = lc.search(entryDN, searchScope, searchFilter, attrs, false, cons... | /**
* Search entry.
* @param entryDN The base distinguished name to search from.
* @param searchScope The scope of the entries to search. The following are the valid options:
* - SCOPE_BASE - searches only the base DN
* - SCOPE_ONE - searches only entries under the base DN
* - SCOPE_SUB... | Search entry | searchEntries | {
"repo_name": "OpenWIS/openwis",
"path": "openwis-securityservice/openwis-securityservice-war/src/main/java/org/openwis/usermanagement/UtilEntry.java",
"license": "gpl-3.0",
"size": 11312
} | [
"com.novell.ldap.LDAPConnection",
"com.novell.ldap.LDAPException",
"com.novell.ldap.LDAPSearchConstraints",
"com.novell.ldap.LDAPSearchResults",
"java.io.UnsupportedEncodingException",
"org.openwis.usermanagement.exception.UserManagementException"
] | import com.novell.ldap.LDAPConnection; import com.novell.ldap.LDAPException; import com.novell.ldap.LDAPSearchConstraints; import com.novell.ldap.LDAPSearchResults; import java.io.UnsupportedEncodingException; import org.openwis.usermanagement.exception.UserManagementException; | import com.novell.ldap.*; import java.io.*; import org.openwis.usermanagement.exception.*; | [
"com.novell.ldap",
"java.io",
"org.openwis.usermanagement"
] | com.novell.ldap; java.io; org.openwis.usermanagement; | 113,176 |
@VisibleForTesting
static Node queryForNodeByXPath(Document dom, String xpathQuery) {
XPath xpath = XPathFactory.newInstance().newXPath();
try {
return (Node) xpath.compile(xpathQuery).evaluate(dom, XPathConstants.NODE);
} catch (XPathExpressionException e) {
throw new IllegalArgumentExcepti... | static Node queryForNodeByXPath(Document dom, String xpathQuery) { XPath xpath = XPathFactory.newInstance().newXPath(); try { return (Node) xpath.compile(xpathQuery).evaluate(dom, XPathConstants.NODE); } catch (XPathExpressionException e) { throw new IllegalArgumentException(STR, e); } } | /**
* Queries the specified DOM document for a single node corresponding to the specified XPath
* query. Assumes the specified XPath query resolves to a single node.
*
* @param dom The DOM document to be queried.
* @param xpathQuery The XPath query to be executed.
* @return A single node matching the ... | Queries the specified DOM document for a single node corresponding to the specified XPath query. Assumes the specified XPath query resolves to a single node | queryForNodeByXPath | {
"repo_name": "benjyw/kythe",
"path": "kythe/java/com/google/devtools/kythe/platform/tools/MvnPomPreprocessor.java",
"license": "apache-2.0",
"size": 6901
} | [
"javax.xml.xpath.XPath",
"javax.xml.xpath.XPathConstants",
"javax.xml.xpath.XPathExpressionException",
"javax.xml.xpath.XPathFactory",
"org.w3c.dom.Document",
"org.w3c.dom.Node"
] | import javax.xml.xpath.XPath; import javax.xml.xpath.XPathConstants; import javax.xml.xpath.XPathExpressionException; import javax.xml.xpath.XPathFactory; import org.w3c.dom.Document; import org.w3c.dom.Node; | import javax.xml.xpath.*; import org.w3c.dom.*; | [
"javax.xml",
"org.w3c.dom"
] | javax.xml; org.w3c.dom; | 2,194,269 |
private static byte[] readClass(final InputStream is, boolean close)
throws IOException {
if (is == null) {
throw new IOException("Class not found");
}
try {
byte[] b = new byte[is.available()];
int len = 0;
while (true) {
... | static byte[] function(final InputStream is, boolean close) throws IOException { if (is == null) { throw new IOException(STR); } try { byte[] b = new byte[is.available()]; int len = 0; while (true) { int n = is.read(b, len, b.length - len); if (n == -1) { if (len < b.length) { byte[] c = new byte[len]; System.arraycopy... | /**
* Reads the bytecode of a class.
*
* @param is
* an input stream from which to read the class.
* @param close
* true to close the input stream after reading.
* @return the bytecode read from the given input stream.
* @throws IOException
* ... | Reads the bytecode of a class | readClass | {
"repo_name": "malin1993ml/h-store",
"path": "third_party/cpp/berkeleydb/lang/java/src/com/sleepycat/asm/ClassReader.java",
"license": "gpl-3.0",
"size": 98163
} | [
"java.io.IOException",
"java.io.InputStream"
] | import java.io.IOException; import java.io.InputStream; | import java.io.*; | [
"java.io"
] | java.io; | 2,107,102 |
static Map<Object, Object> getRegistry() {
return REGISTRY.get();
} | static Map<Object, Object> getRegistry() { return REGISTRY.get(); } | /**
* <p>
* Returns the registry of objects being traversed by the <code>reflectionToString</code>
* methods in the current thread.
* </p>
*
* @return Set the registry of objects being traversed
*/ | Returns the registry of objects being traversed by the <code>reflectionToString</code> methods in the current thread. | getRegistry | {
"repo_name": "dpisarewski/gka_wise12",
"path": "src/org/apache/commons/lang3/builder/ToStringStyle.java",
"license": "lgpl-2.1",
"size": 74903
} | [
"java.util.Map"
] | import java.util.Map; | import java.util.*; | [
"java.util"
] | java.util; | 2,786,953 |
@SelectProvider(type=AsyncProcessFileSqlProvider.class, method="selectByExample")
@Results({
@Result(column="ID", property="id", jdbcType=JdbcType.BIGINT, id=true),
@Result(column="ASYNC_ID", property="asyncId", jdbcType=JdbcType.BIGINT),
@Result(column="HANDLER_NAME", property="handlerN... | @SelectProvider(type=AsyncProcessFileSqlProvider.class, method=STR) @Results({ @Result(column="ID", property="id", jdbcType=JdbcType.BIGINT, id=true), @Result(column=STR, property=STR, jdbcType=JdbcType.BIGINT), @Result(column=STR, property=STR, jdbcType=JdbcType.VARCHAR), @Result(column=STR, property=STR, jdbcType=Jdb... | /**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table ASYNC_PROCESS_FILE
*
* @mbggenerated
*/ | This method was generated by MyBatis Generator. This method corresponds to the database table ASYNC_PROCESS_FILE | selectByExampleWithRowbounds | {
"repo_name": "agwlvssainokuni/sqlapp",
"path": "src/generated/java/cherry/sqlapp/db/gen/mapper/AsyncProcessFileMapper.java",
"license": "apache-2.0",
"size": 9287
} | [
"java.util.List",
"org.apache.ibatis.annotations.Result",
"org.apache.ibatis.annotations.Results",
"org.apache.ibatis.annotations.SelectProvider",
"org.apache.ibatis.session.RowBounds",
"org.apache.ibatis.type.JdbcType"
] | import java.util.List; import org.apache.ibatis.annotations.Result; import org.apache.ibatis.annotations.Results; import org.apache.ibatis.annotations.SelectProvider; import org.apache.ibatis.session.RowBounds; import org.apache.ibatis.type.JdbcType; | import java.util.*; import org.apache.ibatis.annotations.*; import org.apache.ibatis.session.*; import org.apache.ibatis.type.*; | [
"java.util",
"org.apache.ibatis"
] | java.util; org.apache.ibatis; | 1,704,565 |
protected String createResponse(String challenge) {
String handshake = challenge.concat("-").concat(password);
MessageDigest md5;
try {
md5 = MessageDigest.getInstance("MD5");
} catch (NoSuchAlgorithmException e) {
logger.error("This version of Java does not support MD5 hashing");
return "";
}
b... | String function(String challenge) { String handshake = challenge.concat("-").concat(password); MessageDigest md5; try { md5 = MessageDigest.getInstance("MD5"); } catch (NoSuchAlgorithmException e) { logger.error(STR); return STRUTF-16LESTRThis version of Java does not understand UTF-16LE encodingSTRSTR-STR%02xSTRCould ... | /**
* Creates the proper response to a given challenge based on the password
* stored
*
* @param challenge
* Challenge string as returned by the Fritz!OS login script
* @return Response to the challenge
*/ | Creates the proper response to a given challenge based on the password stored | createResponse | {
"repo_name": "Gerguis/openhab2",
"path": "bundles/binding/org.openhab.binding.fritzaha/src/main/java/org/openhab/binding/fritzaha/internal/hardware/FritzahaWebInterface.java",
"license": "epl-1.0",
"size": 10371
} | [
"java.security.MessageDigest",
"java.security.NoSuchAlgorithmException"
] | import java.security.MessageDigest; import java.security.NoSuchAlgorithmException; | import java.security.*; | [
"java.security"
] | java.security; | 603,174 |
public static java.util.Set extractBladderManagementSet(ims.domain.ILightweightDomainFactory domainFactory, ims.nursing.vo.BladderManagementCollection voCollection)
{
return extractBladderManagementSet(domainFactory, voCollection, null, new HashMap());
}
| static java.util.Set function(ims.domain.ILightweightDomainFactory domainFactory, ims.nursing.vo.BladderManagementCollection voCollection) { return extractBladderManagementSet(domainFactory, voCollection, null, new HashMap()); } | /**
* Create the ims.nursing.assessment.domain.objects.BladderManagement set from the value object collection.
* @param domainFactory - used to create existing (persistent) domain objects.
* @param voCollection - the collection of value objects
*/ | Create the ims.nursing.assessment.domain.objects.BladderManagement set from the value object collection | extractBladderManagementSet | {
"repo_name": "FreudianNM/openMAXIMS",
"path": "Source Library/openmaxims_workspace/ValueObjects/src/ims/nursing/vo/domain/BladderManagementAssembler.java",
"license": "agpl-3.0",
"size": 21399
} | [
"java.util.HashMap"
] | import java.util.HashMap; | import java.util.*; | [
"java.util"
] | java.util; | 209,667 |
public static Shell startRootShell(Context mContext, ArrayList<String> customEnv, String baseDirectory)
throws IOException {
Log.d(RootCommands.TAG, "Starting Root Shell!");
// On some versions of Android (ICS) LD_LIBRARY_PATH is unset when using su
// We need to pass LD_LIBRARY... | static Shell function(Context mContext, ArrayList<String> customEnv, String baseDirectory) throws IOException { Log.d(RootCommands.TAG, STR); if (customEnv == null) { customEnv = new ArrayList<String>(); } customEnv.add(STR + LD_LIBRARY_PATH); Shell shell = new Shell(mContext, Utils.getSuPath(), customEnv, baseDirector... | /**
* Start root shell
*
* @param customEnv
* @param baseDirectory
* @return
* @throws IOException
*/ | Start root shell | startRootShell | {
"repo_name": "WtfJoke/Rashr",
"path": "root-commands/src/main/java/org/sufficientlysecure/rootcommands/Shell.java",
"license": "gpl-3.0",
"size": 16258
} | [
"android.content.Context",
"java.io.IOException",
"java.util.ArrayList",
"org.sufficientlysecure.rootcommands.util.Log",
"org.sufficientlysecure.rootcommands.util.Utils"
] | import android.content.Context; import java.io.IOException; import java.util.ArrayList; import org.sufficientlysecure.rootcommands.util.Log; import org.sufficientlysecure.rootcommands.util.Utils; | import android.content.*; import java.io.*; import java.util.*; import org.sufficientlysecure.rootcommands.util.*; | [
"android.content",
"java.io",
"java.util",
"org.sufficientlysecure.rootcommands"
] | android.content; java.io; java.util; org.sufficientlysecure.rootcommands; | 815,508 |
ChunkTicketManager.LoadingTicket getTicket(); | ChunkTicketManager.LoadingTicket getTicket(); | /**
* Gets the ticket that the chunk was added to.
*
* @return The ticket the chunk was added to
*/ | Gets the ticket that the chunk was added to | getTicket | {
"repo_name": "JBYoshi/SpongeAPI",
"path": "src/main/java/org/spongepowered/api/event/world/chunk/ForcedChunkEvent.java",
"license": "mit",
"size": 1798
} | [
"org.spongepowered.api.world.ChunkTicketManager"
] | import org.spongepowered.api.world.ChunkTicketManager; | import org.spongepowered.api.world.*; | [
"org.spongepowered.api"
] | org.spongepowered.api; | 977,799 |
public void onTick(TickEvent event) {
AllTick.onTick(event);
switch(this) {
case HG: TickHG.onTick(event); return;
case CTF: TickCTF.onTick(event); return;
case RAID: TickRaid.onTick(event); return;
case KIT: TickKit.onTick(event); return;
case MAZE: TickMaze.onTick(event); retu... | void function(TickEvent event) { AllTick.onTick(event); switch(this) { case HG: TickHG.onTick(event); return; case CTF: TickCTF.onTick(event); return; case RAID: TickRaid.onTick(event); return; case KIT: TickKit.onTick(event); return; case MAZE: TickMaze.onTick(event); return; case SAB: TickSab.onTick(event); return; c... | /**
* Dictates which render handler to re-direct to.
* @param event The render event to handle.
*/ | Dictates which render handler to re-direct to | onTick | {
"repo_name": "NomNuggetNom/mcpvp-mod",
"path": "src/main/java/us/mcpvpmod/Server.java",
"license": "gpl-3.0",
"size": 10989
} | [
"us.mcpvpmod.events.tick.AllTick",
"us.mcpvpmod.events.tick.TickBuild",
"us.mcpvpmod.events.tick.TickCTF",
"us.mcpvpmod.events.tick.TickHG",
"us.mcpvpmod.events.tick.TickHS",
"us.mcpvpmod.events.tick.TickHub",
"us.mcpvpmod.events.tick.TickKit",
"us.mcpvpmod.events.tick.TickMaze",
"us.mcpvpmod.events... | import us.mcpvpmod.events.tick.AllTick; import us.mcpvpmod.events.tick.TickBuild; import us.mcpvpmod.events.tick.TickCTF; import us.mcpvpmod.events.tick.TickHG; import us.mcpvpmod.events.tick.TickHS; import us.mcpvpmod.events.tick.TickHub; import us.mcpvpmod.events.tick.TickKit; import us.mcpvpmod.events.tick.TickMaze;... | import us.mcpvpmod.events.tick.*; | [
"us.mcpvpmod.events"
] | us.mcpvpmod.events; | 2,244,893 |
Vector<ProjectInfos> getProjectSubsequents(int u_id, GregorianCalendar date, String timeInterval)
throws SQLException; | Vector<ProjectInfos> getProjectSubsequents(int u_id, GregorianCalendar date, String timeInterval) throws SQLException; | /**
* DOCUMENT ME!
*
* @param u_id DOCUMENT ME!
* @param date DOCUMENT ME!
* @param timeInterval gueltige Werte zum Beispiel: year, month
*
* @return DOCUMENT ME!
*
* @throws SQLException DOCUMENT ME!
*/ | DOCUMENT ME | getProjectSubsequents | {
"repo_name": "cismet/time-tracker",
"path": "src/main/java/de/cismet/web/timetracker/DatabaseInterface.java",
"license": "lgpl-3.0",
"size": 8294
} | [
"de.cismet.web.timetracker.types.ProjectInfos",
"java.sql.SQLException",
"java.util.GregorianCalendar",
"java.util.Vector"
] | import de.cismet.web.timetracker.types.ProjectInfos; import java.sql.SQLException; import java.util.GregorianCalendar; import java.util.Vector; | import de.cismet.web.timetracker.types.*; import java.sql.*; import java.util.*; | [
"de.cismet.web",
"java.sql",
"java.util"
] | de.cismet.web; java.sql; java.util; | 2,740,685 |
public void setProjecttype(final ProjectProjecttypeEnum projecttype) {
this.projecttype = projecttype;
} | void function(final ProjectProjecttypeEnum projecttype) { this.projecttype = projecttype; } | /**
* Set the value related to the column: projecttype.
* @param projecttype the projecttype value you wish to set
*/ | Set the value related to the column: projecttype | setProjecttype | {
"repo_name": "servinglynk/hmis-lynk-open-source",
"path": "hmis-model-v2016/src/main/java/com/servinglynk/hmis/warehouse/model/v2016/Project.java",
"license": "mpl-2.0",
"size": 18010
} | [
"com.servinglynk.hmis.warehouse.enums.ProjectProjecttypeEnum"
] | import com.servinglynk.hmis.warehouse.enums.ProjectProjecttypeEnum; | import com.servinglynk.hmis.warehouse.enums.*; | [
"com.servinglynk.hmis"
] | com.servinglynk.hmis; | 1,888,639 |
@Test
public void testIsCompleted() throws Exception {
boolean expected = false;
boolean actual = message.isCompleted(10);
assertEquals(expected, actual);
expected = true;
actual = message.isCompleted(4);
assertEquals(expected, actual);
} | void function() throws Exception { boolean expected = false; boolean actual = message.isCompleted(10); assertEquals(expected, actual); expected = true; actual = message.isCompleted(4); assertEquals(expected, actual); } | /**
* Method: isCompleted(int expected)
*/ | Method: isCompleted(int expected) | testIsCompleted | {
"repo_name": "vlc-citi-lab/camcomsim",
"path": "src/test/java/fr/rtone/vlc/simulator/network/MessageTest.java",
"license": "apache-2.0",
"size": 2083
} | [
"org.junit.Assert"
] | import org.junit.Assert; | import org.junit.*; | [
"org.junit"
] | org.junit; | 2,824,809 |
public int getFlags()
{
if (flags == -1)
{
flags = dic.getInt( COSName.FLAGS, 0 );
}
return flags;
}
| int function() { if (flags == -1) { flags = dic.getInt( COSName.FLAGS, 0 ); } return flags; } | /**
* This will get the font flags.
*
* @return The font flags.
*/ | This will get the font flags | getFlags | {
"repo_name": "mdamt/PdfBox-Android",
"path": "library/src/main/java/org/apache/pdfbox/pdmodel/font/PDFontDescriptor.java",
"license": "apache-2.0",
"size": 19677
} | [
"org.apache.pdfbox.cos.COSName"
] | import org.apache.pdfbox.cos.COSName; | import org.apache.pdfbox.cos.*; | [
"org.apache.pdfbox"
] | org.apache.pdfbox; | 528,861 |
public static void onUrlsRefreshed(Context context, int numUrls) {
if (sUploadAllowed) {
RecordHistogram.recordCountHistogram(TOTAL_URLS_REFRESH_COUNTS, numUrls);
} else {
storeValue(context, TOTAL_URLS_REFRESH_COUNTS, numUrls);
}
} | static void function(Context context, int numUrls) { if (sUploadAllowed) { RecordHistogram.recordCountHistogram(TOTAL_URLS_REFRESH_COUNTS, numUrls); } else { storeValue(context, TOTAL_URLS_REFRESH_COUNTS, numUrls); } } | /**
* Records number of URLs displayed to a user when the user refreshes the URL list.
* @param numUrls The number of URLs displayed to a user.
*/ | Records number of URLs displayed to a user when the user refreshes the URL list | onUrlsRefreshed | {
"repo_name": "axinging/chromium-crosswalk",
"path": "chrome/android/java/src/org/chromium/chrome/browser/physicalweb/PhysicalWebUma.java",
"license": "bsd-3-clause",
"size": 18648
} | [
"android.content.Context",
"org.chromium.base.metrics.RecordHistogram"
] | import android.content.Context; import org.chromium.base.metrics.RecordHistogram; | import android.content.*; import org.chromium.base.metrics.*; | [
"android.content",
"org.chromium.base"
] | android.content; org.chromium.base; | 1,584,617 |
Document approveDocument(Document document, String annotation,
List<AdHocRouteRecipient> adHocRoutingRecipients) throws WorkflowException;
| Document approveDocument(Document document, String annotation, List<AdHocRouteRecipient> adHocRoutingRecipients) throws WorkflowException; | /**
* Save and then approve the document, optionally providing an annotation which will show up in the route log
* of the document for the action taken, and optionally providing a list of ad hoc recipients for the document.
*
* @param document the document to be approved
* @param annotatio... | Save and then approve the document, optionally providing an annotation which will show up in the route log of the document for the action taken, and optionally providing a list of ad hoc recipients for the document | approveDocument | {
"repo_name": "ricepanda/rice-git3",
"path": "rice-framework/krad-web-framework/src/main/java/org/kuali/rice/krad/service/DocumentService.java",
"license": "apache-2.0",
"size": 18076
} | [
"java.util.List",
"org.kuali.rice.kew.api.exception.WorkflowException",
"org.kuali.rice.krad.bo.AdHocRouteRecipient",
"org.kuali.rice.krad.document.Document"
] | import java.util.List; import org.kuali.rice.kew.api.exception.WorkflowException; import org.kuali.rice.krad.bo.AdHocRouteRecipient; import org.kuali.rice.krad.document.Document; | import java.util.*; import org.kuali.rice.kew.api.exception.*; import org.kuali.rice.krad.bo.*; import org.kuali.rice.krad.document.*; | [
"java.util",
"org.kuali.rice"
] | java.util; org.kuali.rice; | 173 |
private LinkedHashMap<String, ZipEntry> getEntries() throws IOException
{
synchronized(raf)
{
checkClosed();
if (entries == null)
readEntries();
return entries;
}
} | LinkedHashMap<String, ZipEntry> function() throws IOException { synchronized(raf) { checkClosed(); if (entries == null) readEntries(); return entries; } } | /**
* Checks that the ZipFile is still open and reads entries when necessary.
*
* @exception IllegalStateException when the ZipFile has already been closed.
* @exception IOException when the entries could not be read.
*/ | Checks that the ZipFile is still open and reads entries when necessary | getEntries | {
"repo_name": "rhuitl/uClinux",
"path": "lib/classpath/java/util/zip/ZipFile.java",
"license": "gpl-2.0",
"size": 21581
} | [
"java.io.IOException",
"java.util.LinkedHashMap"
] | import java.io.IOException; import java.util.LinkedHashMap; | import java.io.*; import java.util.*; | [
"java.io",
"java.util"
] | java.io; java.util; | 2,312,814 |
private static void populateProperyFile(Document document)
{
Element root = document.getDocumentElement();
NodeList children = root.getChildNodes();
for (int i = 0; i < children.getLength(); i++)
{
Node child = children.item(i);
if (child instanceof Element)
{
NodeList subChildNodes = ... | static void function(Document document) { Element root = document.getDocumentElement(); NodeList children = root.getChildNodes(); for (int i = 0; i < children.getLength(); i++) { Node child = children.item(i); if (child instanceof Element) { NodeList subChildNodes = child.getChildNodes(); boolean isNameFound = false; S... | /**
* Populate the properties object with the values in the med_lookup_view.xml file.
* @param document :document
*/ | Populate the properties object with the values in the med_lookup_view.xml file | populateProperyFile | {
"repo_name": "NCIP/catissue-participant-manager",
"path": "software/ParticipantManager/src/main/java/edu/wustl/patientLookUp/util/PropertyHandler.java",
"license": "bsd-3-clause",
"size": 5032
} | [
"org.w3c.dom.Document",
"org.w3c.dom.Element",
"org.w3c.dom.Node",
"org.w3c.dom.NodeList"
] | import org.w3c.dom.Document; import org.w3c.dom.Element; import org.w3c.dom.Node; import org.w3c.dom.NodeList; | import org.w3c.dom.*; | [
"org.w3c.dom"
] | org.w3c.dom; | 2,711,248 |
public Address getAddress() {
return this.address;
} | Address function() { return this.address; } | /**
* Get the Address to be rendered
*
* @return Address that is set
*/ | Get the Address to be rendered | getAddress | {
"repo_name": "colloquium/spacewalk",
"path": "java/code/src/com/redhat/rhn/frontend/taglibs/AddressTag.java",
"license": "gpl-2.0",
"size": 8389
} | [
"com.redhat.rhn.domain.user.Address"
] | import com.redhat.rhn.domain.user.Address; | import com.redhat.rhn.domain.user.*; | [
"com.redhat.rhn"
] | com.redhat.rhn; | 1,782,825 |
public void setOutFile(File outFile) {
this.outFile = outFile;
}
| void function(File outFile) { this.outFile = outFile; } | /**
* Sets output file for annotation.
*/ | Sets output file for annotation | setOutFile | {
"repo_name": "statalign/WeaveAlign",
"path": "src/wvalign/MinRiskAnnotator.java",
"license": "gpl-3.0",
"size": 10118
} | [
"java.io.File"
] | import java.io.File; | import java.io.*; | [
"java.io"
] | java.io; | 256,930 |
public void displayMessage(IngestMessage ingestMessage) {
messagePanel.addMessage(ingestMessage);
//post special messages to notification area
MessageType ingestMessageType = ingestMessage.getMessageType();
if (ingestMessageType.equals(MessageType.ERROR)
|| ingestMes... | void function(IngestMessage ingestMessage) { messagePanel.addMessage(ingestMessage); MessageType ingestMessageType = ingestMessage.getMessageType(); if (ingestMessageType.equals(MessageType.ERROR) ingestMessageType.equals(MessageType.WARNING)) { MessageNotifyUtil.MessageType notifyMessageType = ingestMessageType.equals... | /**
* Display IngestMessage from module (forwarded by IngestManager)
*/ | Display IngestMessage from module (forwarded by IngestManager) | displayMessage | {
"repo_name": "mhmdfy/autopsy",
"path": "Core/src/org/sleuthkit/autopsy/ingest/IngestMessageTopComponent.java",
"license": "apache-2.0",
"size": 10579
} | [
"org.sleuthkit.autopsy.coreutils.MessageNotifyUtil",
"org.sleuthkit.autopsy.ingest.IngestMessage"
] | import org.sleuthkit.autopsy.coreutils.MessageNotifyUtil; import org.sleuthkit.autopsy.ingest.IngestMessage; | import org.sleuthkit.autopsy.coreutils.*; import org.sleuthkit.autopsy.ingest.*; | [
"org.sleuthkit.autopsy"
] | org.sleuthkit.autopsy; | 775,112 |
@Test
public void whenUserDeleteItemNull() {
Tracker tracker = new Tracker();
String name1 = "testName";
String desc = "testDesc";
String time = "45";
String exit = "7";
Input input0 = new StubInput(new String[]{"1", name1, desc, time, exit});
new StartUI(... | void function() { Tracker tracker = new Tracker(); String name1 = STR; String desc = STR; String time = "45"; String exit = "7"; Input input0 = new StubInput(new String[]{"1", name1, desc, time, exit}); new StartUI(input0).init(tracker); String name2 = STR; String desc2 = STR; String time2 = "60"; Input input1 = new St... | /**
* Test delete item NULL.
*/ | Test delete item NULL | whenUserDeleteItemNull | {
"repo_name": "1Evgeny/java-a-to-z",
"path": "chapter_002/src/test/java/by/vorokhobko/Polymorphism/StubInputTest.java",
"license": "apache-2.0",
"size": 7044
} | [
"by.vorokhobko.encapsulation.start.Tracker",
"org.junit.Assert"
] | import by.vorokhobko.encapsulation.start.Tracker; import org.junit.Assert; | import by.vorokhobko.encapsulation.start.*; import org.junit.*; | [
"by.vorokhobko.encapsulation",
"org.junit"
] | by.vorokhobko.encapsulation; org.junit; | 1,559,553 |
public void clearPublication()
{
if(entity != null)
getEntity().clearPublication();
else
ArrayUtility.clear(publications);
} | void function() { if(entity != null) getEntity().clearPublication(); else ArrayUtility.clear(publications); } | /**
* Clears author's publication list.
*/ | Clears author's publication list | clearPublication | {
"repo_name": "nomencurator/taxonaut",
"path": "src/main/java/org/nomencurator/model/Author.java",
"license": "apache-2.0",
"size": 36374
} | [
"org.nomencurator.util.ArrayUtility"
] | import org.nomencurator.util.ArrayUtility; | import org.nomencurator.util.*; | [
"org.nomencurator.util"
] | org.nomencurator.util; | 2,760,071 |
public static GcsPath fromUri(URI uri) {
checkArgument(uri.getScheme().equalsIgnoreCase(SCHEME), "URI: %s is not a GCS URI", uri);
checkArgument(uri.getPort() == -1, "GCS URI may not specify port: %s (%i)", uri, uri.getPort());
checkArgument(
isNullOrEmpty(uri.getUserInfo()),
"GCS URI may ... | static GcsPath function(URI uri) { checkArgument(uri.getScheme().equalsIgnoreCase(SCHEME), STR, uri); checkArgument(uri.getPort() == -1, STR, uri, uri.getPort()); checkArgument( isNullOrEmpty(uri.getUserInfo()), STR, uri, uri.getUserInfo()); checkArgument( isNullOrEmpty(uri.getQuery()), STR, uri, uri.getQuery()); check... | /**
* Creates a GcsPath from a URI.
*
* <p>The URI must be in the form {@code gs://[bucket]/[path]}, and may not contain a port, user
* info, a query, or a fragment.
*/ | Creates a GcsPath from a URI. The URI must be in the form gs://[bucket]/[path], and may not contain a port, user info, a query, or a fragment | fromUri | {
"repo_name": "axbaretto/beam",
"path": "sdks/java/extensions/google-cloud-platform-core/src/main/java/org/apache/beam/sdk/util/gcsfs/GcsPath.java",
"license": "apache-2.0",
"size": 18214
} | [
"java.util.regex.Pattern",
"org.apache.beam.vendor.guava.v20_0.com.google.common.base.Preconditions",
"org.apache.beam.vendor.guava.v20_0.com.google.common.base.Strings"
] | import java.util.regex.Pattern; import org.apache.beam.vendor.guava.v20_0.com.google.common.base.Preconditions; import org.apache.beam.vendor.guava.v20_0.com.google.common.base.Strings; | import java.util.regex.*; import org.apache.beam.vendor.guava.v20_0.com.google.common.base.*; | [
"java.util",
"org.apache.beam"
] | java.util; org.apache.beam; | 1,638,870 |
@Override
@UiThread
public void send(
@NonNull String channel,
@Nullable ByteBuffer message,
@Nullable BinaryMessenger.BinaryReply callback) {
messenger.send(channel, message, callback);
} | void function( @NonNull String channel, @Nullable ByteBuffer message, @Nullable BinaryMessenger.BinaryReply callback) { messenger.send(channel, message, callback); } | /**
* Sends the given {@code messages} from Android to Dart over the given {@code channel} and then
* has the provided {@code callback} invoked when the Dart side responds.
*
* @param channel the name of the logical channel used for the message.
* @param message the message payload, a direct-al... | Sends the given messages from Android to Dart over the given channel and then has the provided callback invoked when the Dart side responds | send | {
"repo_name": "rmacnak-google/engine",
"path": "shell/platform/android/io/flutter/embedding/engine/dart/DartExecutor.java",
"license": "bsd-3-clause",
"size": 15487
} | [
"androidx.annotation.NonNull",
"androidx.annotation.Nullable",
"io.flutter.plugin.common.BinaryMessenger",
"java.nio.ByteBuffer"
] | import androidx.annotation.NonNull; import androidx.annotation.Nullable; import io.flutter.plugin.common.BinaryMessenger; import java.nio.ByteBuffer; | import androidx.annotation.*; import io.flutter.plugin.common.*; import java.nio.*; | [
"androidx.annotation",
"io.flutter.plugin",
"java.nio"
] | androidx.annotation; io.flutter.plugin; java.nio; | 125,014 |
public static void loadFromFile(Properties p, String fileName) throws IOException {
loadFromFile(p, new File(fileName));
} | static void function(Properties p, String fileName) throws IOException { loadFromFile(p, new File(fileName)); } | /**
* Loads properties from the file. Properties are appended to the existing
* properties object.
*
* @param p properties to fill in
* @param fileName properties file name to load
*/ | Loads properties from the file. Properties are appended to the existing properties object | loadFromFile | {
"repo_name": "007slm/jodd",
"path": "jodd-core/src/main/java/jodd/util/PropertiesUtil.java",
"license": "bsd-3-clause",
"size": 6748
} | [
"java.io.File",
"java.io.IOException",
"java.util.Properties"
] | import java.io.File; import java.io.IOException; import java.util.Properties; | import java.io.*; import java.util.*; | [
"java.io",
"java.util"
] | java.io; java.util; | 2,352,864 |
Disk d = new Disk(UUID.randomUUID().toString(), 8, 8, 5f);
d.setZOrder(999999);
d.setSolidColor(ColorRGBA.red);
d.setLocalTranslation(x, y, 0);
portal.getDisplayPanel().getWindow().getNode().attachChild(d);
}
| Disk d = new Disk(UUID.randomUUID().toString(), 8, 8, 5f); d.setZOrder(999999); d.setSolidColor(ColorRGBA.red); d.setLocalTranslation(x, y, 0); portal.getDisplayPanel().getWindow().getNode().attachChild(d); } | /**
* Item moved.
*
* @param item
* the item
* @param x
* the x
* @param y
* the y
*/ | Item moved | itemMoved | {
"repo_name": "synergynet/synergynet2.5",
"path": "synergynet2.5/src/main/java/apps/remotecontrol/networkmanager/managers/trackmanager/TrackListener.java",
"license": "bsd-3-clause",
"size": 1386
} | [
"com.jme.renderer.ColorRGBA",
"com.jme.scene.shape.Disk",
"java.util.UUID"
] | import com.jme.renderer.ColorRGBA; import com.jme.scene.shape.Disk; import java.util.UUID; | import com.jme.renderer.*; import com.jme.scene.shape.*; import java.util.*; | [
"com.jme.renderer",
"com.jme.scene",
"java.util"
] | com.jme.renderer; com.jme.scene; java.util; | 323,096 |
boolean prebuild( AbstractBuild<?,?> build, BuildListener listener );
/**
* Runs the step over the given build and reports the progress to the listener.
*
* <p>
* A plugin can contribute the action object to {@link Build#getActions()}
* so that a 'report' becomes a part of the persiste... | boolean prebuild( AbstractBuild<?,?> build, BuildListener listener ); /** * Runs the step over the given build and reports the progress to the listener. * * <p> * A plugin can contribute the action object to {@link Build#getActions()} * so that a 'report' becomes a part of the persisted data of {@link Build}. * This is... | /**
* Runs before the build begins.
*
* @return
* true if the build can continue, false if there was an error
* and the build needs to be aborted.
* <p>
* Using the return value to indicate success/failure should
* be considered deprecated, and implementa... | Runs before the build begins | prebuild | {
"repo_name": "keyurpatankar/hudson",
"path": "core/src/main/java/hudson/tasks/BuildStep.java",
"license": "mit",
"size": 13644
} | [
"hudson.model.AbstractBuild",
"hudson.model.Build",
"hudson.model.BuildListener",
"hudson.security.Permission",
"java.io.IOException",
"org.acegisecurity.Authentication"
] | import hudson.model.AbstractBuild; import hudson.model.Build; import hudson.model.BuildListener; import hudson.security.Permission; import java.io.IOException; import org.acegisecurity.Authentication; | import hudson.model.*; import hudson.security.*; import java.io.*; import org.acegisecurity.*; | [
"hudson.model",
"hudson.security",
"java.io",
"org.acegisecurity"
] | hudson.model; hudson.security; java.io; org.acegisecurity; | 815,731 |
public Adapter createVerbatimProtocolAdapter() {
return null;
} | Adapter function() { return null; } | /**
* Creates a new adapter for an object of class '{@link de.oklab.leipzig.oparl.VerbatimProtocol <em>Verbatim Protocol</em>}'.
* <!-- begin-user-doc -->
* This default implementation returns null so that we can easily ignore cases;
* it's useful to ignore a case when inheritance will catch all the cases anywa... | Creates a new adapter for an object of class '<code>de.oklab.leipzig.oparl.VerbatimProtocol Verbatim Protocol</code>'. This default implementation returns null so that we can easily ignore cases; it's useful to ignore a case when inheritance will catch all the cases anyway. | createVerbatimProtocolAdapter | {
"repo_name": "joergreichert/stadtratmonitor-utils",
"path": "plugins/de.oklab.leipzig.oparl.model/src-gen/de/oklab/leipzig/oparl/util/OparlAdapterFactory.java",
"license": "epl-1.0",
"size": 24385
} | [
"org.eclipse.emf.common.notify.Adapter"
] | import org.eclipse.emf.common.notify.Adapter; | import org.eclipse.emf.common.notify.*; | [
"org.eclipse.emf"
] | org.eclipse.emf; | 1,649,514 |
public void aliasType(String name, Class type) {
if (classAliasingMapper == null) {
throw new com.thoughtworks.xstream.InitializationException("No "
+ ClassAliasingMapper.class.getName()
+ " available");
}
classAliasingMapper.addTypeAlias(name, typ... | void function(String name, Class type) { if (classAliasingMapper == null) { throw new com.thoughtworks.xstream.InitializationException(STR + ClassAliasingMapper.class.getName() + STR); } classAliasingMapper.addTypeAlias(name, type); } | /**
* Alias a type to a shorter name to be used in XML elements. Any class that is assignable
* to this type will be aliased to the same name.
*
* @param name Short name
* @param type Type to be aliased
* @since 1.2
* @throws InitializationException if no {@link ClassAliasingMapper} ... | Alias a type to a shorter name to be used in XML elements. Any class that is assignable to this type will be aliased to the same name | aliasType | {
"repo_name": "Groostav/XStream-GG",
"path": "xstream/src/java/com/thoughtworks/xstream/XStream.java",
"license": "bsd-3-clause",
"size": 90964
} | [
"com.thoughtworks.xstream.mapper.ClassAliasingMapper"
] | import com.thoughtworks.xstream.mapper.ClassAliasingMapper; | import com.thoughtworks.xstream.mapper.*; | [
"com.thoughtworks.xstream"
] | com.thoughtworks.xstream; | 1,265,205 |
public void separator(short separator, Augmentations augs)
throws XNIException {
// call handlers
if(fDTDGrammar != null)
fDTDGrammar.separator(separator, augs);
if (fDTDContentModelHandler != null) {
fDTDContentModelHandler.separator(separator, augs);
... | void function(short separator, Augmentations augs) throws XNIException { if(fDTDGrammar != null) fDTDGrammar.separator(separator, augs); if (fDTDContentModelHandler != null) { fDTDContentModelHandler.separator(separator, augs); } } | /**
* The separator between choices or sequences of a mixed or children
* content model.
*
* @param separator The type of children separator.
* @param augs Additional information that may include infoset
* augmentations.
*
* @throws XNIException Thrown by han... | The separator between choices or sequences of a mixed or children content model | separator | {
"repo_name": "samskivert/ikvm-openjdk",
"path": "build/linux-amd64/impsrc/com/sun/org/apache/xerces/internal/impl/dtd/XMLDTDProcessor.java",
"license": "gpl-2.0",
"size": 68949
} | [
"com.sun.org.apache.xerces.internal.xni.Augmentations",
"com.sun.org.apache.xerces.internal.xni.XNIException"
] | import com.sun.org.apache.xerces.internal.xni.Augmentations; import com.sun.org.apache.xerces.internal.xni.XNIException; | import com.sun.org.apache.xerces.internal.xni.*; | [
"com.sun.org"
] | com.sun.org; | 2,018,051 |
public @NonNull byte[] getValue() {
return mValue;
} | @NonNull byte[] function() { return mValue; } | /**
* Checksum value.
*/ | Checksum value | getValue | {
"repo_name": "AndroidX/androidx",
"path": "core/core-appdigest/src/main/java/androidx/core/appdigest/Checksum.java",
"license": "apache-2.0",
"size": 8260
} | [
"androidx.annotation.NonNull"
] | import androidx.annotation.NonNull; | import androidx.annotation.*; | [
"androidx.annotation"
] | androidx.annotation; | 2,123,922 |
AceImpl model = new AceImpl();
model.setGuest(true);
assertTrue(model.isGuest());
AceImpl actual = new AceImpl();
actual.setGuest(false);
assertFalse(actual.isGuest());
actual.setGuest(true);
assertNotEquals(model, null);
assertNotEquals(model, new Object());
assertEquals(model, m... | AceImpl model = new AceImpl(); model.setGuest(true); assertTrue(model.isGuest()); AceImpl actual = new AceImpl(); actual.setGuest(false); assertFalse(actual.isGuest()); actual.setGuest(true); assertNotEquals(model, null); assertNotEquals(model, new Object()); assertEquals(model, model); assertEquals(model, actual); ass... | /**
* Is guest.
*/ | Is guest | isGuest | {
"repo_name": "bremersee/common",
"path": "common-base/src/test/java/org/bremersee/security/access/AceImplTest.java",
"license": "apache-2.0",
"size": 2809
} | [
"org.junit.jupiter.api.Assertions"
] | import org.junit.jupiter.api.Assertions; | import org.junit.jupiter.api.*; | [
"org.junit.jupiter"
] | org.junit.jupiter; | 647,652 |
@Override
public void removeLayoutComponent(Component comp) {
} | void function(Component comp) { } | /**
* Not used by this class.
*/ | Not used by this class | removeLayoutComponent | {
"repo_name": "benbenw/jmeter",
"path": "src/jorphan/src/main/java/org/apache/jorphan/gui/layout/VerticalLayout.java",
"license": "apache-2.0",
"size": 8024
} | [
"java.awt.Component"
] | import java.awt.Component; | import java.awt.*; | [
"java.awt"
] | java.awt; | 1,728,727 |
private void setupCropBounds() {
int height = (int) (mThisWidth / mTargetAspectRatio);
if (height > mThisHeight) {
int width = (int) (mThisHeight * mTargetAspectRatio);
int halfDiff = (mThisWidth - width) / 2;
mCropRect.set(halfDiff, 0, width + halfDiff, mThisHeig... | void function() { int height = (int) (mThisWidth / mTargetAspectRatio); if (height > mThisHeight) { int width = (int) (mThisHeight * mTargetAspectRatio); int halfDiff = (mThisWidth - width) / 2; mCropRect.set(halfDiff, 0, width + halfDiff, mThisHeight); } else { int halfDiff = (mThisHeight - height) / 2; mCropRect.set(... | /**
* This method setups crop bounds rectangles for given aspect ratio and view size.
* {@link #mCropRect} is used for crop calculations.
*/ | This method setups crop bounds rectangles for given aspect ratio and view size. <code>#mCropRect</code> is used for crop calculations | setupCropBounds | {
"repo_name": "ezhuwx/Picseler",
"path": "ucrop/src/main/java/com/ez/gallery/ucrop/view/CropImageView.java",
"license": "apache-2.0",
"size": 25571
} | [
"java.lang.ref.WeakReference"
] | import java.lang.ref.WeakReference; | import java.lang.ref.*; | [
"java.lang"
] | java.lang; | 2,589,733 |
private void insertSMSPResponse(SMSPResponseLog smspResponse){
SqlSession session = sqlSessionFactory.openSession();
try {
session.insert("SMSPResponse.insert", smspResponse);
session.commit();
} finally {
session.close();
}
} | void function(SMSPResponseLog smspResponse){ SqlSession session = sqlSessionFactory.openSession(); try { session.insert(STR, smspResponse); session.commit(); } finally { session.close(); } } | /**
* Insert an instance of SMSPResponse into the database.
* @param smspRequest the instance to be persisted.
*/ | Insert an instance of SMSPResponse into the database | insertSMSPResponse | {
"repo_name": "Inhealthcare/open-inhealthcare",
"path": "open-inhealthcare-core/src/main/java/uk/co/inhealthcare/open/smsc/messages/logging/DatabaseSMSCLoggingServiceImpl.java",
"license": "apache-2.0",
"size": 5056
} | [
"org.apache.ibatis.session.SqlSession"
] | import org.apache.ibatis.session.SqlSession; | import org.apache.ibatis.session.*; | [
"org.apache.ibatis"
] | org.apache.ibatis; | 483,259 |
public static void launchDataReductionPromo(Activity parentActivity) {
// The promo is displayed if Chrome is launched directly (i.e., not with the intent to
// navigate to and view a URL on startup), the instance is part of the field trial,
// and the promo has not been displayed before.
... | static void function(Activity parentActivity) { if (!DataReductionProxySettings.getInstance().isDataReductionProxyPromoAllowed()) { return; } if (DataReductionProxySettings.getInstance().isDataReductionProxyManaged()) return; if (DataReductionProxySettings.getInstance().isDataReductionProxyEnabled()) return; if (getDis... | /**
* Launch the data reduction promo, if it needs to be displayed.
*/ | Launch the data reduction promo, if it needs to be displayed | launchDataReductionPromo | {
"repo_name": "ds-hwang/chromium-crosswalk",
"path": "chrome/android/java/src/org/chromium/chrome/browser/preferences/datareduction/DataReductionPromoScreen.java",
"license": "bsd-3-clause",
"size": 6283
} | [
"android.app.Activity",
"android.content.Context",
"android.os.Build",
"android.widget.Button",
"android.widget.LinearLayout",
"org.chromium.chrome.browser.multiwindow.MultiWindowUtils",
"org.chromium.chrome.browser.net.spdyproxy.DataReductionProxySettings"
] | import android.app.Activity; import android.content.Context; import android.os.Build; import android.widget.Button; import android.widget.LinearLayout; import org.chromium.chrome.browser.multiwindow.MultiWindowUtils; import org.chromium.chrome.browser.net.spdyproxy.DataReductionProxySettings; | import android.app.*; import android.content.*; import android.os.*; import android.widget.*; import org.chromium.chrome.browser.multiwindow.*; import org.chromium.chrome.browser.net.spdyproxy.*; | [
"android.app",
"android.content",
"android.os",
"android.widget",
"org.chromium.chrome"
] | android.app; android.content; android.os; android.widget; org.chromium.chrome; | 75,733 |
public static <T extends Cloudlet> int getPositionById(List<T> cloudletList, int id) {
int i = 0;
for (Cloudlet cloudlet : cloudletList) {
if (cloudlet.getId() == id) {
return i;
}
i++;
}
return NOT_FOUND_INDEX;
} | static <T extends Cloudlet> int function(List<T> cloudletList, int id) { int i = 0; for (Cloudlet cloudlet : cloudletList) { if (cloudlet.getId() == id) { return i; } i++; } return NOT_FOUND_INDEX; } | /**
* Gets the position of a cloudlet with a given id.
*
* @param <T>
* @param cloudletList the list of existing cloudlets
* @param id the cloudlet id
* @return the position of the cloudlet with the given id or -1 if not found
*/ | Gets the position of a cloudlet with a given id | getPositionById | {
"repo_name": "thejotta/CloudSimPlusModificado",
"path": "cloudsim-plus/src/main/java/org/cloudbus/cloudsim/lists/CloudletList.java",
"license": "gpl-3.0",
"size": 2551
} | [
"java.util.List",
"org.cloudbus.cloudsim.Cloudlet"
] | import java.util.List; import org.cloudbus.cloudsim.Cloudlet; | import java.util.*; import org.cloudbus.cloudsim.*; | [
"java.util",
"org.cloudbus.cloudsim"
] | java.util; org.cloudbus.cloudsim; | 498,308 |
public static <T> Set<T> toSet(List<T> list) {
ListExtensions<T> extensions = new ListExtensionsImpl<>(list);
return extensions.toSet();
}
| static <T> Set<T> function(List<T> list) { ListExtensions<T> extensions = new ListExtensionsImpl<>(list); return extensions.toSet(); } | /**
* Converts the list into a {@link Set}.
*
* @return a set with all the elements of the list
*/ | Converts the list into a <code>Set</code> | toSet | {
"repo_name": "jdiasamaro/extension-box",
"path": "extension-box/src/main/java/io/amaro/extension/box/util/list/ListExtensionBox.java",
"license": "mit",
"size": 10189
} | [
"java.util.List",
"java.util.Set"
] | import java.util.List; import java.util.Set; | import java.util.*; | [
"java.util"
] | java.util; | 1,633,175 |
public void testMethodDeclarationInAnonymous2() throws JavaModelException {
ICompilationUnit cu = getCompilationUnit("Resolve", "src", "", "ResolveMethodDeclarationInAnonymous2.java");
IJavaElement[] elements = codeSelect(cu, "foo()", "foo");
assertElementsEqual(
"Unexpected elements",
"foo() [in <anonymous #1> ... | void function() throws JavaModelException { ICompilationUnit cu = getCompilationUnit(STR, "src", STRResolveMethodDeclarationInAnonymous2.javaSTRfoo()STRfooSTRUnexpected elementsSTRfoo() [in <anonymous #1> [in field [in ResolveMethodDeclarationInAnonymous2 [in ResolveMethodDeclarationInAnonymous2.java [in <default> [in ... | /**
* Resolve method declaration in anonymous
* (regression test for bug 45786 No selection on method declaration in field initializer)
*/ | Resolve method declaration in anonymous (regression test for bug 45786 No selection on method declaration in field initializer) | testMethodDeclarationInAnonymous2 | {
"repo_name": "maxeler/eclipse",
"path": "eclipse.jdt.core/org.eclipse.jdt.core.tests.model/src/org/eclipse/jdt/core/tests/model/ResolveTests.java",
"license": "epl-1.0",
"size": 92379
} | [
"org.eclipse.jdt.core.ICompilationUnit",
"org.eclipse.jdt.core.JavaModelException"
] | import org.eclipse.jdt.core.ICompilationUnit; import org.eclipse.jdt.core.JavaModelException; | import org.eclipse.jdt.core.*; | [
"org.eclipse.jdt"
] | org.eclipse.jdt; | 738,088 |
protected CaArrayFileSet uploadFiles(Project project, MageTabFileSet fileSet) {
return uploadFiles(project, fileSet, UnparsedDataHandler.FILE_TYPE_MAGE_TAB_DATA_MATRIX);
} | CaArrayFileSet function(Project project, MageTabFileSet fileSet) { return uploadFiles(project, fileSet, UnparsedDataHandler.FILE_TYPE_MAGE_TAB_DATA_MATRIX); } | /**
* "Upload" files to a project, returning the CaArrayFileSet containing those files.
*
* @param project project to upload to
* @param fileSet MageTabFileSet containing the files to upload (should correspond to the files in the file set)
* @return
*/ | "Upload" files to a project, returning the CaArrayFileSet containing those files | uploadFiles | {
"repo_name": "NCIP/caarray",
"path": "software/caarray-ejb.jar/src/test/java/gov/nih/nci/caarray/application/file/AbstractFileManagementServiceIntegrationTest.java",
"license": "bsd-3-clause",
"size": 25436
} | [
"gov.nih.nci.caarray.domain.file.CaArrayFileSet",
"gov.nih.nci.caarray.domain.project.Project",
"gov.nih.nci.caarray.magetab.MageTabFileSet",
"gov.nih.nci.caarray.platforms.unparsed.UnparsedDataHandler"
] | import gov.nih.nci.caarray.domain.file.CaArrayFileSet; import gov.nih.nci.caarray.domain.project.Project; import gov.nih.nci.caarray.magetab.MageTabFileSet; import gov.nih.nci.caarray.platforms.unparsed.UnparsedDataHandler; | import gov.nih.nci.caarray.domain.file.*; import gov.nih.nci.caarray.domain.project.*; import gov.nih.nci.caarray.magetab.*; import gov.nih.nci.caarray.platforms.unparsed.*; | [
"gov.nih.nci"
] | gov.nih.nci; | 1,981,715 |
private static native boolean activeProfessionalForVer(ContextWrapper context,
String company, String mail, String serial); | static native boolean function(ContextWrapper context, String company, String mail, String serial); | /**
* active license for professional version.<br/>
* this is for annotation editing version but no form features.<br/>
* the license for this method is binding to version string, see Global.getVersion();
* @param context
* Context object
* @param company
* company name, exapmle "rad... | active license for professional version. this is for annotation editing version but no form features. the license for this method is binding to version string, see Global.getVersion() | activeProfessionalForVer | {
"repo_name": "gearit/RadaeePDF-B4A",
"path": "Source/PDFViewer/PDFViewer2.9.8beta2/PDFHttpDemo/src/com/radaee/pdf/Global.java",
"license": "apache-2.0",
"size": 22634
} | [
"android.content.ContextWrapper"
] | import android.content.ContextWrapper; | import android.content.*; | [
"android.content"
] | android.content; | 1,534,563 |
if (getSize() == 0) {
throw new NoSuchElementException();
}
E elem = remove(0);
return elem;
} | if (getSize() == 0) { throw new NoSuchElementException(); } E elem = remove(0); return elem; } | /**
* Getting element from queue and delete it.
* @return element.
*/ | Getting element from queue and delete it | poll | {
"repo_name": "Alesandrus/aivanov",
"path": "chapter_005_Collections_Pro/src/main/java/ru/job4j/list/QueueContainer.java",
"license": "apache-2.0",
"size": 556
} | [
"java.util.NoSuchElementException"
] | import java.util.NoSuchElementException; | import java.util.*; | [
"java.util"
] | java.util; | 547,271 |
public static ViewConfiguration get(Context context) {
final DisplayMetrics metrics = context.getResources().getDisplayMetrics();
final int density = (int) (100.0f * metrics.density);
ViewConfiguration configuration = sConfigurations.get(density);
if (configuration == null) {
... | static ViewConfiguration function(Context context) { final DisplayMetrics metrics = context.getResources().getDisplayMetrics(); final int density = (int) (100.0f * metrics.density); ViewConfiguration configuration = sConfigurations.get(density); if (configuration == null) { configuration = new ViewConfiguration(context... | /**
* Returns a configuration for the specified context. The configuration depends on
* various parameters of the context, like the dimension of the display or the
* density of the display.
*
* @param context The application context used to initialize the view configuration.
*/ | Returns a configuration for the specified context. The configuration depends on various parameters of the context, like the dimension of the display or the density of the display | get | {
"repo_name": "s20121035/rk3288_android5.1_repo",
"path": "frameworks/base/core/java/android/view/ViewConfiguration.java",
"license": "gpl-3.0",
"size": 25569
} | [
"android.content.Context",
"android.util.DisplayMetrics"
] | import android.content.Context; import android.util.DisplayMetrics; | import android.content.*; import android.util.*; | [
"android.content",
"android.util"
] | android.content; android.util; | 1,223,349 |
Observable<ServiceResponse<Page<JobInformation>>> listWithServiceResponseAsync(final String accountName, final String filter, final Integer top, final Integer skip, final String select, final String orderby, final Boolean count); | Observable<ServiceResponse<Page<JobInformation>>> listWithServiceResponseAsync(final String accountName, final String filter, final Integer top, final Integer skip, final String select, final String orderby, final Boolean count); | /**
* Lists the jobs, if any, associated with the specified Data Lake Analytics account. The response includes a link to the next page of results, if any.
*
* @param accountName The Azure Data Lake Analytics account to execute job operations on.
* @param filter OData filter. Optional.
* @param ... | Lists the jobs, if any, associated with the specified Data Lake Analytics account. The response includes a link to the next page of results, if any | listWithServiceResponseAsync | {
"repo_name": "pomortaz/azure-sdk-for-java",
"path": "azure-mgmt-datalake-analytics/src/main/java/com/microsoft/azure/management/datalake/analytics/Jobs.java",
"license": "mit",
"size": 20587
} | [
"com.microsoft.azure.Page",
"com.microsoft.azure.management.datalake.analytics.models.JobInformation",
"com.microsoft.rest.ServiceResponse"
] | import com.microsoft.azure.Page; import com.microsoft.azure.management.datalake.analytics.models.JobInformation; import com.microsoft.rest.ServiceResponse; | import com.microsoft.azure.*; import com.microsoft.azure.management.datalake.analytics.models.*; import com.microsoft.rest.*; | [
"com.microsoft.azure",
"com.microsoft.rest"
] | com.microsoft.azure; com.microsoft.rest; | 2,375,726 |
@ServiceMethod(returns = ReturnType.SINGLE)
private Mono<Response<ActionGroupResourceInner>> updateWithResponseAsync(
String resourceGroupName, String actionGroupName, ActionGroupPatchBody actionGroupPatch, Context context) {
if (this.client.getEndpoint() == null) {
return Mono
... | @ServiceMethod(returns = ReturnType.SINGLE) Mono<Response<ActionGroupResourceInner>> function( String resourceGroupName, String actionGroupName, ActionGroupPatchBody actionGroupPatch, Context context) { if (this.client.getEndpoint() == null) { return Mono .error( new IllegalArgumentException( STR)); } if (this.client.g... | /**
* Updates an existing action group's tags. To update other fields use the CreateOrUpdate method.
*
* @param resourceGroupName The name of the resource group.
* @param actionGroupName The name of the action group.
* @param actionGroupPatch Parameters supplied to the operation.
* @param ... | Updates an existing action group's tags. To update other fields use the CreateOrUpdate method | updateWithResponseAsync | {
"repo_name": "Azure/azure-sdk-for-java",
"path": "sdk/resourcemanagerhybrid/azure-resourcemanager-monitor/src/main/java/com/azure/resourcemanager/monitor/implementation/ActionGroupsClientImpl.java",
"license": "mit",
"size": 60371
} | [
"com.azure.core.annotation.ReturnType",
"com.azure.core.annotation.ServiceMethod",
"com.azure.core.http.rest.Response",
"com.azure.core.util.Context",
"com.azure.resourcemanager.monitor.fluent.models.ActionGroupResourceInner",
"com.azure.resourcemanager.monitor.models.ActionGroupPatchBody"
] | import com.azure.core.annotation.ReturnType; import com.azure.core.annotation.ServiceMethod; import com.azure.core.http.rest.Response; import com.azure.core.util.Context; import com.azure.resourcemanager.monitor.fluent.models.ActionGroupResourceInner; import com.azure.resourcemanager.monitor.models.ActionGroupPatchBody... | import com.azure.core.annotation.*; import com.azure.core.http.rest.*; import com.azure.core.util.*; import com.azure.resourcemanager.monitor.fluent.models.*; import com.azure.resourcemanager.monitor.models.*; | [
"com.azure.core",
"com.azure.resourcemanager"
] | com.azure.core; com.azure.resourcemanager; | 2,197,082 |
public final Inventory getEquipment() {
return equipment;
} | final Inventory function() { return equipment; } | /**
* Gets this mob's equipment.
*
* @return The mob's equipment.
*/ | Gets this mob's equipment | getEquipment | {
"repo_name": "apollo-rsps/apollo",
"path": "game/src/main/java/org/apollo/game/model/entity/Mob.java",
"license": "isc",
"size": 14201
} | [
"org.apollo.game.model.inv.Inventory"
] | import org.apollo.game.model.inv.Inventory; | import org.apollo.game.model.inv.*; | [
"org.apollo.game"
] | org.apollo.game; | 876,049 |
@Override
public DocumentCollection FTSearchRange(String query, int maxDocs, FTSortOption sortOpt,
Set<FTSearchOption> otherOpt, int start) {
// TODO Auto-generated method stub
return null;
} | DocumentCollection function(String query, int maxDocs, FTSortOption sortOpt, Set<FTSearchOption> otherOpt, int start) { return null; } | /**
* Not implemented yet.
*/ | Not implemented yet | FTSearchRange | {
"repo_name": "hyarthi/project-red",
"path": "src/java/org.openntf.red.main/src/org/openntf/red/impl/Database.java",
"license": "apache-2.0",
"size": 36930
} | [
"java.util.Set",
"org.openntf.red.DocumentCollection"
] | import java.util.Set; import org.openntf.red.DocumentCollection; | import java.util.*; import org.openntf.red.*; | [
"java.util",
"org.openntf.red"
] | java.util; org.openntf.red; | 2,729,981 |
public boolean applyProjectRequest(ProjectRequest entity) {
String namespace = getOrCreateMetadata(entity).getName();
LOG.info("Using project: " + namespace);
String name = getName(entity);
Objects.notNull(name, "No name for " + entity);
OpenShiftClient openshiftClient = getO... | boolean function(ProjectRequest entity) { String namespace = getOrCreateMetadata(entity).getName(); LOG.info(STR + namespace); String name = getName(entity); Objects.notNull(name, STR + entity); OpenShiftClient openshiftClient = getOpenShiftClientOrNull(); if (openshiftClient == null) { LOG.warn(STR + namespace + STR);... | /**
* Returns true if the ProjectRequest is created
*/ | Returns true if the ProjectRequest is created | applyProjectRequest | {
"repo_name": "dhirajsb/fabric8",
"path": "components/kubernetes-api/src/main/java/io/fabric8/kubernetes/api/Controller.java",
"license": "apache-2.0",
"size": 69701
} | [
"io.fabric8.kubernetes.api.KubernetesHelper",
"io.fabric8.openshift.api.model.ProjectRequest",
"io.fabric8.openshift.client.OpenShiftClient",
"io.fabric8.utils.Objects"
] | import io.fabric8.kubernetes.api.KubernetesHelper; import io.fabric8.openshift.api.model.ProjectRequest; import io.fabric8.openshift.client.OpenShiftClient; import io.fabric8.utils.Objects; | import io.fabric8.kubernetes.api.*; import io.fabric8.openshift.api.model.*; import io.fabric8.openshift.client.*; import io.fabric8.utils.*; | [
"io.fabric8.kubernetes",
"io.fabric8.openshift",
"io.fabric8.utils"
] | io.fabric8.kubernetes; io.fabric8.openshift; io.fabric8.utils; | 2,248,102 |
public ColorBarBuilder len(double len) {
Preconditions.checkArgument(len >= 0);
this.len = len;
return this;
} | ColorBarBuilder function(double len) { Preconditions.checkArgument(len >= 0); this.len = len; return this; } | /**
* Sets the length of the color bar, This measure excludes the size of the padding, ticks and
* labels.
*
* @param len a double greater than 0
* @return this ColorBar
*/ | Sets the length of the color bar, This measure excludes the size of the padding, ticks and labels | len | {
"repo_name": "axkr/symja_android_library",
"path": "symja_android_library/matheclipse-external/src/main/java/tech/tablesaw/plotly/components/ColorBar.java",
"license": "gpl-3.0",
"size": 9620
} | [
"com.google.common.base.Preconditions"
] | import com.google.common.base.Preconditions; | import com.google.common.base.*; | [
"com.google.common"
] | com.google.common; | 1,385,041 |
protected OverlayKey[] createOverlayStoreKeys() {
ArrayList overlayKeys = new ArrayList();
ArrayList styleList = new ArrayList();
initStyleList(styleList);
Iterator i = styleList.iterator();
while (i.hasNext()) {
overlayKeys.add(new OverlayPreferenceStore.OverlayKey(OverlayPreferenceStore.STRING, (Stri... | OverlayKey[] function() { ArrayList overlayKeys = new ArrayList(); ArrayList styleList = new ArrayList(); initStyleList(styleList); Iterator i = styleList.iterator(); while (i.hasNext()) { overlayKeys.add(new OverlayPreferenceStore.OverlayKey(OverlayPreferenceStore.STRING, (String) i.next())); } OverlayPreferenceStore.... | /**
* Set up all the style preference keys in the overlay store
*/ | Set up all the style preference keys in the overlay store | createOverlayStoreKeys | {
"repo_name": "ttimbul/eclipse.wst",
"path": "bundles/org.eclipse.wst.xml.ui/src/org/eclipse/wst/xml/ui/internal/preferences/XMLColorPage.java",
"license": "epl-1.0",
"size": 12062
} | [
"java.util.ArrayList",
"java.util.Iterator",
"org.eclipse.wst.sse.ui.internal.preferences.OverlayPreferenceStore"
] | import java.util.ArrayList; import java.util.Iterator; import org.eclipse.wst.sse.ui.internal.preferences.OverlayPreferenceStore; | import java.util.*; import org.eclipse.wst.sse.ui.internal.preferences.*; | [
"java.util",
"org.eclipse.wst"
] | java.util; org.eclipse.wst; | 1,424,552 |
@Override
public void updateNClob(String columnLabel, Reader x) throws SQLException {
updateClob(columnLabel, x, -1);
} | void function(String columnLabel, Reader x) throws SQLException { updateClob(columnLabel, x, -1); } | /**
* Updates a column in the current or insert row.
*
* @param columnLabel the column label
* @param x the value
* @throws SQLException if the result set is closed or not updatable
*/ | Updates a column in the current or insert row | updateNClob | {
"repo_name": "wizardofos/Protozoo",
"path": "extra/h2/src/main/java/org/h2/jdbc/JdbcResultSet.java",
"license": "mit",
"size": 120208
} | [
"java.io.Reader",
"java.sql.SQLException"
] | import java.io.Reader; import java.sql.SQLException; | import java.io.*; import java.sql.*; | [
"java.io",
"java.sql"
] | java.io; java.sql; | 1,839,288 |
public JVMClusterUtil.RegionServerThread startRegionServer()
throws IOException {
final Configuration newConf = HBaseConfiguration.create(conf);
User rsUser =
HBaseTestingUtility.getDifferentUser(newConf, ".hfs."+index++);
JVMClusterUtil.RegionServerThread t = null;
try {
t = hbas... | JVMClusterUtil.RegionServerThread function() throws IOException { final Configuration newConf = HBaseConfiguration.create(conf); User rsUser = HBaseTestingUtility.getDifferentUser(newConf, ".hfs."+index++); JVMClusterUtil.RegionServerThread t = null; try { t = hbaseCluster.addRegionServer( newConf, hbaseCluster.getRegi... | /**
* Starts a region server thread running
*
* @throws IOException
* @return New RegionServerThread
*/ | Starts a region server thread running | startRegionServer | {
"repo_name": "JingchengDu/hbase",
"path": "hbase-server/src/test/java/org/apache/hadoop/hbase/MiniHBaseCluster.java",
"license": "apache-2.0",
"size": 27643
} | [
"java.io.IOException",
"org.apache.hadoop.conf.Configuration",
"org.apache.hadoop.hbase.security.User",
"org.apache.hadoop.hbase.util.JVMClusterUtil"
] | import java.io.IOException; import org.apache.hadoop.conf.Configuration; import org.apache.hadoop.hbase.security.User; import org.apache.hadoop.hbase.util.JVMClusterUtil; | import java.io.*; import org.apache.hadoop.conf.*; import org.apache.hadoop.hbase.security.*; import org.apache.hadoop.hbase.util.*; | [
"java.io",
"org.apache.hadoop"
] | java.io; org.apache.hadoop; | 1,351,430 |
private Optional<Vector3d> checkHorizontalSquareOutline(LocalWorld world, Vector3d center, int halfEdgeLength) {
int blockSteps = getEdgeLength(halfEdgeLength) - 1;
Vector3d checkPosition = center.add(halfEdgeLength - 1, 0, halfEdgeLength - 1);
for (int i = 0; i < blockSteps; i++) {
checkPosition =... | Optional<Vector3d> function(LocalWorld world, Vector3d center, int halfEdgeLength) { int blockSteps = getEdgeLength(halfEdgeLength) - 1; Vector3d checkPosition = center.add(halfEdgeLength - 1, 0, halfEdgeLength - 1); for (int i = 0; i < blockSteps; i++) { checkPosition = checkPosition.add(-1, 0, 0); if (isSafe(world, c... | /**
* Gets an Optional with the first safe position from the outline of horizontal square with the given half-edge-length
* centered at the given position in the given world, if such a position exits.
*
* @param world the world where the position is placed it
* @param center the central ... | Gets an Optional with the first safe position from the outline of horizontal square with the given half-edge-length centered at the given position in the given world, if such a position exits | checkHorizontalSquareOutline | {
"repo_name": "TheE/MyWarp",
"path": "mywarp-bukkit/src/main/java/io/github/mywarp/mywarp/bukkit/util/CubicSafetyValidationCapability.java",
"license": "gpl-3.0",
"size": 7537
} | [
"com.flowpowered.math.vector.Vector3d",
"io.github.mywarp.mywarp.platform.LocalWorld",
"java.util.Optional"
] | import com.flowpowered.math.vector.Vector3d; import io.github.mywarp.mywarp.platform.LocalWorld; import java.util.Optional; | import com.flowpowered.math.vector.*; import io.github.mywarp.mywarp.platform.*; import java.util.*; | [
"com.flowpowered.math",
"io.github.mywarp",
"java.util"
] | com.flowpowered.math; io.github.mywarp; java.util; | 2,455,039 |
private ConnectionManager initializeConnectionManager(final AddressBasedServerConfig serverConfig) {
LOGGER.entry();
final EventLoopGroup applicationEventLoopGroup = new OioEventLoopGroup();
final EventLoopGroup networkEventLoopGroup = new OioEventLoopGroup();
eventExecutorGroups.add(applicationEventLoopGrou... | ConnectionManager function(final AddressBasedServerConfig serverConfig) { LOGGER.entry(); final EventLoopGroup applicationEventLoopGroup = new OioEventLoopGroup(); final EventLoopGroup networkEventLoopGroup = new OioEventLoopGroup(); eventExecutorGroups.add(applicationEventLoopGroup); eventExecutorGroups.add(networkEve... | /**
* Initializes a new TCPConnectionManager.
*
* @param serverConfig
* a configuration to use for initializing
* @return the new ConnectionManager
*/ | Initializes a new TCPConnectionManager | initializeConnectionManager | {
"repo_name": "DesignAndDeploy/dnd",
"path": "DND/src/edu/teco/dnd/server/TCPUDPServerManager.java",
"license": "apache-2.0",
"size": 8067
} | [
"edu.teco.dnd.network.ConnectionManager",
"edu.teco.dnd.network.tcp.ClientBootstrapChannelFactory",
"edu.teco.dnd.network.tcp.ServerBootstrapChannelFactory",
"edu.teco.dnd.network.tcp.TCPConnectionManager",
"io.netty.bootstrap.Bootstrap",
"io.netty.bootstrap.ServerBootstrap",
"io.netty.channel.EventLoop... | import edu.teco.dnd.network.ConnectionManager; import edu.teco.dnd.network.tcp.ClientBootstrapChannelFactory; import edu.teco.dnd.network.tcp.ServerBootstrapChannelFactory; import edu.teco.dnd.network.tcp.TCPConnectionManager; import io.netty.bootstrap.Bootstrap; import io.netty.bootstrap.ServerBootstrap; import io.net... | import edu.teco.dnd.network.*; import edu.teco.dnd.network.tcp.*; import io.netty.bootstrap.*; import io.netty.channel.*; import io.netty.channel.oio.*; import io.netty.channel.socket.oio.*; import java.net.*; | [
"edu.teco.dnd",
"io.netty.bootstrap",
"io.netty.channel",
"java.net"
] | edu.teco.dnd; io.netty.bootstrap; io.netty.channel; java.net; | 2,914,461 |
public static String describeCommand(
CommandDescriptionForm form,
boolean prettyPrintArgs,
Collection<String> commandLineElements,
@Nullable Map<String, String> environment,
@Nullable String cwd,
@Nullable String configurationChecksum,
@Nullable String executionPlatformAsLab... | static String function( CommandDescriptionForm form, boolean prettyPrintArgs, Collection<String> commandLineElements, @Nullable Map<String, String> environment, @Nullable String cwd, @Nullable String configurationChecksum, @Nullable String executionPlatformAsLabelString) { Preconditions.checkNotNull(form); StringBuilde... | /**
* Construct a string that describes the command. Currently this returns a message of the form
* "foo bar baz", with shell meta-characters appropriately quoted and/or escaped, prefixed (if
* verbose is true) with an "env" command to set the environment.
*
* @param form Form of the command to generate;... | Construct a string that describes the command. Currently this returns a message of the form "foo bar baz", with shell meta-characters appropriately quoted and/or escaped, prefixed (if verbose is true) with an "env" command to set the environment | describeCommand | {
"repo_name": "perezd/bazel",
"path": "src/main/java/com/google/devtools/build/lib/util/CommandFailureUtils.java",
"license": "apache-2.0",
"size": 11963
} | [
"com.google.common.base.Preconditions",
"com.google.common.collect.Ordering",
"java.util.Collection",
"java.util.Comparator",
"java.util.Map",
"javax.annotation.Nullable"
] | import com.google.common.base.Preconditions; import com.google.common.collect.Ordering; import java.util.Collection; import java.util.Comparator; import java.util.Map; import javax.annotation.Nullable; | import com.google.common.base.*; import com.google.common.collect.*; import java.util.*; import javax.annotation.*; | [
"com.google.common",
"java.util",
"javax.annotation"
] | com.google.common; java.util; javax.annotation; | 624,424 |
public SourceValidity getValidity() {
return NOPValidity.SHARED_INSTANCE;
}
/**
* Returns true so the pipeline implementation will buffer generated
* output and write content length to the response.
*
* <p>Batik's PNGTranscoder closes the output stream, therefore we
* canno... | SourceValidity function() { return NOPValidity.SHARED_INSTANCE; } /** * Returns true so the pipeline implementation will buffer generated * output and write content length to the response. * * <p>Batik's PNGTranscoder closes the output stream, therefore we * cannot pass the output stream directly to Batik and have to *... | /**
* Generate the validity object.
* Before this method can be invoked the getKey() method
* must be invoked.
*
* @return The generated validity object or <code>null</code> if the
* component is currently not cacheable.
*/ | Generate the validity object. Before this method can be invoked the getKey() method must be invoked | getValidity | {
"repo_name": "apache/cocoon",
"path": "blocks/cocoon-batik/cocoon-batik-impl/src/main/java/org/apache/cocoon/serialization/SVGSerializer.java",
"license": "apache-2.0",
"size": 11681
} | [
"org.apache.excalibur.source.SourceValidity",
"org.apache.excalibur.source.impl.validity.NOPValidity"
] | import org.apache.excalibur.source.SourceValidity; import org.apache.excalibur.source.impl.validity.NOPValidity; | import org.apache.excalibur.source.*; import org.apache.excalibur.source.impl.validity.*; | [
"org.apache.excalibur"
] | org.apache.excalibur; | 323,424 |
@Override
public List<Category> loadInBackground() {
ArrayList<Category> result = DatabaseManager.getInstance().getCategories();
try {
return result;
} catch (Exception e) {
LOGE(TAG, "Type of exception ", e);
}
... | List<Category> function() { ArrayList<Category> result = DatabaseManager.getInstance().getCategories(); try { return result; } catch (Exception e) { LOGE(TAG, STR, e); } return result; } | /**
* This is where the bulk of our work is done. This function is called in a background thread
* and should generate a new set of data to be published by the loader.
*/ | This is where the bulk of our work is done. This function is called in a background thread and should generate a new set of data to be published by the loader | loadInBackground | {
"repo_name": "ashishbhandari/RetailStore",
"path": "app/src/main/java/com/crazymin2/retailstore/home/CategoryTabFragment.java",
"license": "apache-2.0",
"size": 10576
} | [
"com.crazymin2.retailstore.database.DatabaseManager",
"com.crazymin2.retailstore.home.data.Category",
"java.util.ArrayList",
"java.util.List"
] | import com.crazymin2.retailstore.database.DatabaseManager; import com.crazymin2.retailstore.home.data.Category; import java.util.ArrayList; import java.util.List; | import com.crazymin2.retailstore.database.*; import com.crazymin2.retailstore.home.data.*; import java.util.*; | [
"com.crazymin2.retailstore",
"java.util"
] | com.crazymin2.retailstore; java.util; | 1,386,275 |
private JScrollPane getJScrollPane() {
if (jScrollPane == null) {
jScrollPane = new JScrollPane();
jScrollPane.setViewportView(getMessage());
}
return jScrollPane;
} | JScrollPane function() { if (jScrollPane == null) { jScrollPane = new JScrollPane(); jScrollPane.setViewportView(getMessage()); } return jScrollPane; } | /**
* This method initializes jScrollPane
*
* @return javax.swing.JScrollPane
*/ | This method initializes jScrollPane | getJScrollPane | {
"repo_name": "NCIP/cagrid-core",
"path": "caGrid/projects/gaards-ui/src/org/cagrid/gaards/ui/dorian/idp/IdentityProviderRecordWindow.java",
"license": "bsd-3-clause",
"size": 13520
} | [
"javax.swing.JScrollPane"
] | import javax.swing.JScrollPane; | import javax.swing.*; | [
"javax.swing"
] | javax.swing; | 464,559 |
public void addDescriptorProblemsTo(List currentProblems) {
this.checkSuperclass(currentProblems);
this.checkInterfaces(currentProblems);
this.checkAttributes(currentProblems); // remove this when we get a VCR
}
| void function(List currentProblems) { this.checkSuperclass(currentProblems); this.checkInterfaces(currentProblems); this.checkAttributes(currentProblems); } | /**
* NB: until we have a visible class repository, these problems
* are added to the descriptor's problems
*/ | are added to the descriptor's problems | addDescriptorProblemsTo | {
"repo_name": "bfg-repo-cleaner-demos/eclipselink.runtime-bfg-strip-big-blobs",
"path": "utils/eclipselink.utils.workbench/mappingsmodel/source/org/eclipse/persistence/tools/workbench/mappingsmodel/meta/MWClass.java",
"license": "epl-1.0",
"size": 110145
} | [
"java.util.List"
] | import java.util.List; | import java.util.*; | [
"java.util"
] | java.util; | 2,842,489 |
@UnstableApi
final boolean removeAfterEventLoopIterationTask(Runnable task) {
return tailTasks.remove(ObjectUtil.checkNotNull(task, "task"));
} | final boolean removeAfterEventLoopIterationTask(Runnable task) { return tailTasks.remove(ObjectUtil.checkNotNull(task, "task")); } | /**
* Removes a task that was added previously via {@link #executeAfterEventLoopIteration(Runnable)}.
*
* @param task to be removed.
*
* @return {@code true} if the task was removed as a result of this call.
*/ | Removes a task that was added previously via <code>#executeAfterEventLoopIteration(Runnable)</code> | removeAfterEventLoopIterationTask | {
"repo_name": "fenik17/netty",
"path": "transport/src/main/java/io/netty/channel/SingleThreadEventLoop.java",
"license": "apache-2.0",
"size": 5721
} | [
"io.netty.util.internal.ObjectUtil"
] | import io.netty.util.internal.ObjectUtil; | import io.netty.util.internal.*; | [
"io.netty.util"
] | io.netty.util; | 901,040 |
void close() throws OjaiException; | void close() throws OjaiException; | /**
* Overridden to remove checked exception
*/ | Overridden to remove checked exception | close | {
"repo_name": "ojai/ojai",
"path": "java/core/src/main/java/org/ojai/DocumentStream.java",
"license": "apache-2.0",
"size": 2033
} | [
"org.ojai.exceptions.OjaiException"
] | import org.ojai.exceptions.OjaiException; | import org.ojai.exceptions.*; | [
"org.ojai.exceptions"
] | org.ojai.exceptions; | 67,153 |
@Test(timeout = 60000)
public void testReconnectionOnClientSide(TestContext context) throws Exception {
final Async async = context.async(2);
vertx = serverRule.vertx();
prepareClientsideTest("reconnect_test");
final HttpServer httpServer = startServer(context);
startTestClient(context, async,... | @Test(timeout = 60000) void function(TestContext context) throws Exception { final Async async = context.async(2); vertx = serverRule.vertx(); prepareClientsideTest(STR); final HttpServer httpServer = startServer(context); startTestClient(context, async, STR); vertx.setTimer(15000, init -> { httpServer.close(); vertx.s... | /**
* Test for 2 connection losts in a row.
*
* @param context
* @throws Exception
*/ | Test for 2 connection losts in a row | testReconnectionOnClientSide | {
"repo_name": "wem/vertx-dart-sockjs",
"path": "src/test/java/ch/sourcemotion/vertx/dart/eventbus/ReconnectTest.java",
"license": "mit",
"size": 3833
} | [
"io.vertx.core.http.HttpServer",
"io.vertx.ext.unit.Async",
"io.vertx.ext.unit.TestContext",
"java.io.IOException",
"org.junit.Test"
] | import io.vertx.core.http.HttpServer; import io.vertx.ext.unit.Async; import io.vertx.ext.unit.TestContext; import java.io.IOException; import org.junit.Test; | import io.vertx.core.http.*; import io.vertx.ext.unit.*; import java.io.*; import org.junit.*; | [
"io.vertx.core",
"io.vertx.ext",
"java.io",
"org.junit"
] | io.vertx.core; io.vertx.ext; java.io; org.junit; | 1,653,911 |
private double[] getVotesForInstance(Instance instance) {
ErrorWeightedVote errorWeightedVote=newErrorWeightedVote();
int numberOfRulesCovering = 0;
for (ActiveRule rule: ruleSet) {
if (rule.isCovering(instance) == true){
numberOfRulesCovering++;
double [] vote=rule.getPrediction(ins... | double[] function(Instance instance) { ErrorWeightedVote errorWeightedVote=newErrorWeightedVote(); int numberOfRulesCovering = 0; for (ActiveRule rule: ruleSet) { if (rule.isCovering(instance) == true){ numberOfRulesCovering++; double [] vote=rule.getPrediction(instance); double error= rule.getCurrentError(); errorWeig... | /**
* getVotesForInstance extension of the instance method getVotesForInstance
* in moa.classifier.java
* returns the prediction of the instance.
* Called in EvaluateModelRegression
*/ | getVotesForInstance extension of the instance method getVotesForInstance in moa.classifier.java returns the prediction of the instance. Called in EvaluateModelRegression | getVotesForInstance | {
"repo_name": "gdfm/samoa",
"path": "samoa-api/src/main/java/com/yahoo/labs/samoa/learners/classifiers/rules/centralized/AMRulesRegressorProcessor.java",
"license": "apache-2.0",
"size": 15752
} | [
"com.yahoo.labs.samoa.instances.Instance",
"com.yahoo.labs.samoa.learners.classifiers.rules.common.ActiveRule",
"com.yahoo.labs.samoa.moa.classifiers.rules.core.voting.ErrorWeightedVote"
] | import com.yahoo.labs.samoa.instances.Instance; import com.yahoo.labs.samoa.learners.classifiers.rules.common.ActiveRule; import com.yahoo.labs.samoa.moa.classifiers.rules.core.voting.ErrorWeightedVote; | import com.yahoo.labs.samoa.instances.*; import com.yahoo.labs.samoa.learners.classifiers.rules.common.*; import com.yahoo.labs.samoa.moa.classifiers.rules.core.voting.*; | [
"com.yahoo.labs"
] | com.yahoo.labs; | 1,277,194 |
private boolean generateKeyPair()
{
assert m_keyStoreWrap != null;
assert m_keyStoreWrap.getKeyStore() != null;
// Display the Generate Key Pair dialog to get the key pair generation parameters from the user
DGenerateKeyPair dGenerateKeyPair = new DGenerateKeyPair(this);
dGenerateKeyPair.setLocationRelat... | boolean function() { assert m_keyStoreWrap != null; assert m_keyStoreWrap.getKeyStore() != null; DGenerateKeyPair dGenerateKeyPair = new DGenerateKeyPair(this); dGenerateKeyPair.setLocationRelativeTo(this); SwingHelper.showAndWait(dGenerateKeyPair); if (!dGenerateKeyPair.isSuccessful()) { return false; } int iKeySize =... | /**
* Generate a key pair (with certificate) in the currently opened keystore.
*
* @return True if a key pair is generated, false otherwise
*/ | Generate a key pair (with certificate) in the currently opened keystore | generateKeyPair | {
"repo_name": "gavioto/portecle",
"path": "src/main/net/sf/portecle/FPortecle.java",
"license": "gpl-2.0",
"size": 188859
} | [
"java.security.KeyPair",
"java.security.KeyStore",
"java.security.KeyStoreException",
"java.security.cert.X509Certificate",
"java.util.concurrent.ExecutionException",
"javax.swing.JOptionPane",
"javax.swing.SwingWorker",
"net.sf.portecle.crypto.KeyPairType",
"net.sf.portecle.crypto.KeyStoreUtil",
... | import java.security.KeyPair; import java.security.KeyStore; import java.security.KeyStoreException; import java.security.cert.X509Certificate; import java.util.concurrent.ExecutionException; import javax.swing.JOptionPane; import javax.swing.SwingWorker; import net.sf.portecle.crypto.KeyPairType; import net.sf.portecl... | import java.security.*; import java.security.cert.*; import java.util.concurrent.*; import javax.swing.*; import net.sf.portecle.crypto.*; import net.sf.portecle.gui.*; import net.sf.portecle.gui.error.*; import net.sf.portecle.gui.password.*; | [
"java.security",
"java.util",
"javax.swing",
"net.sf.portecle"
] | java.security; java.util; javax.swing; net.sf.portecle; | 1,182,433 |
public static void toXContent(FileInfo file, XContentBuilder builder, Params params) throws IOException {
builder.startObject();
builder.field(NAME, file.name);
builder.field(PHYSICAL_NAME, file.metadata.name());
builder.field(LENGTH, file.metadata.length());
... | static void function(FileInfo file, XContentBuilder builder, Params params) throws IOException { builder.startObject(); builder.field(NAME, file.name); builder.field(PHYSICAL_NAME, file.metadata.name()); builder.field(LENGTH, file.metadata.length()); builder.field(CHECKSUM, file.metadata.checksum()); if (file.partSize ... | /**
* Serializes file info into JSON
*
* @param file file info
* @param builder XContent builder
*/ | Serializes file info into JSON | toXContent | {
"repo_name": "GlenRSmith/elasticsearch",
"path": "server/src/main/java/org/elasticsearch/index/snapshots/blobstore/BlobStoreIndexShardSnapshot.java",
"license": "apache-2.0",
"size": 22421
} | [
"java.io.IOException",
"org.apache.lucene.util.BytesRef",
"org.elasticsearch.xcontent.XContentBuilder"
] | import java.io.IOException; import org.apache.lucene.util.BytesRef; import org.elasticsearch.xcontent.XContentBuilder; | import java.io.*; import org.apache.lucene.util.*; import org.elasticsearch.xcontent.*; | [
"java.io",
"org.apache.lucene",
"org.elasticsearch.xcontent"
] | java.io; org.apache.lucene; org.elasticsearch.xcontent; | 2,463,540 |
public static <T> Matcher<T> matches(Predicate<T> predicate) {
return predicate(predicate);
} | static <T> Matcher<T> function(Predicate<T> predicate) { return predicate(predicate); } | /**
* Returns a Matcher that matches with values defined by the given {@code predicate}.
* <p>
* This method is a synonym for {@link #predicate(Predicate)} to allow for better readability
*
* @param predicate The predicate defining matching values
* @param <T> The type of value match... | Returns a Matcher that matches with values defined by the given predicate. This method is a synonym for <code>#predicate(Predicate)</code> to allow for better readability | matches | {
"repo_name": "Cosium/AxonFramework",
"path": "test/src/main/java/org/axonframework/test/matchers/Matchers.java",
"license": "apache-2.0",
"size": 8495
} | [
"java.util.function.Predicate",
"org.hamcrest.Matcher"
] | import java.util.function.Predicate; import org.hamcrest.Matcher; | import java.util.function.*; import org.hamcrest.*; | [
"java.util",
"org.hamcrest"
] | java.util; org.hamcrest; | 17,124 |
public void bind(String name, Object obj)
throws NamingException {
bind(new CompositeName(name), obj);
}
| void function(String name, Object obj) throws NamingException { bind(new CompositeName(name), obj); } | /**
* Binds a name to an object.
*
* @param name the name to bind; may not be empty
* @param obj the object to bind; possibly null
* @exception NameAlreadyBoundException if name is already bound
* @exception InvalidAttributesException if object did not supply all
* mandatory ... | Binds a name to an object | bind | {
"repo_name": "c-rainstorm/jerrydog",
"path": "src/main/java/org/apache/naming/NamingContext.java",
"license": "gpl-3.0",
"size": 35764
} | [
"javax.naming.CompositeName",
"javax.naming.NamingException"
] | import javax.naming.CompositeName; import javax.naming.NamingException; | import javax.naming.*; | [
"javax.naming"
] | javax.naming; | 1,155,448 |
public void taskStatusUpdatedToFinalState() {
// If any of the build tasks have failed or all are complete, then the build set is done
if (buildTasks.stream().anyMatch(bt -> bt.getStatus().equals(BuildCoordinationStatus.CANCELLED))) {
log.debug("Marking build set as CANCELLED as one or m... | void function() { if (buildTasks.stream().anyMatch(bt -> bt.getStatus().equals(BuildCoordinationStatus.CANCELLED))) { log.debug(STR, this); if (log.isDebugEnabled()) { logTasksStatus(buildTasks); } buildConfigSetRecord.ifPresent(r -> r.setStatus(BuildStatus.CANCELLED)); finishBuildSetTask(); } else if (buildTasks.strea... | /**
* Notify the set that the state of one of it's tasks has changed.
*
*/ | Notify the set that the state of one of it's tasks has changed | taskStatusUpdatedToFinalState | {
"repo_name": "thescouser89/pnc",
"path": "spi/src/main/java/org/jboss/pnc/spi/coordinator/BuildSetTask.java",
"license": "apache-2.0",
"size": 7748
} | [
"java.util.stream.Collectors",
"org.jboss.pnc.enums.BuildCoordinationStatus",
"org.jboss.pnc.enums.BuildStatus"
] | import java.util.stream.Collectors; import org.jboss.pnc.enums.BuildCoordinationStatus; import org.jboss.pnc.enums.BuildStatus; | import java.util.stream.*; import org.jboss.pnc.enums.*; | [
"java.util",
"org.jboss.pnc"
] | java.util; org.jboss.pnc; | 133,541 |
public static Configuration getDefaultFreemarkerConfiguration()
{
freemarker.template.Configuration configuration = new freemarker.template.Configuration(Configuration.DEFAULT_INCOMPATIBLE_IMPROVEMENTS);
DefaultObjectWrapperBuilder objectWrapperBuilder = new DefaultObjectWrapperBuilder(Configura... | static Configuration function() { freemarker.template.Configuration configuration = new freemarker.template.Configuration(Configuration.DEFAULT_INCOMPATIBLE_IMPROVEMENTS); DefaultObjectWrapperBuilder objectWrapperBuilder = new DefaultObjectWrapperBuilder(Configuration.DEFAULT_INCOMPATIBLE_IMPROVEMENTS); objectWrapperBu... | /**
* Gets the default configuration for Freemarker within Windup.
*/ | Gets the default configuration for Freemarker within Windup | getDefaultFreemarkerConfiguration | {
"repo_name": "d-s/windup",
"path": "reporting/api/src/main/java/org/jboss/windup/reporting/freemarker/FreeMarkerUtil.java",
"license": "epl-1.0",
"size": 5434
} | [
"freemarker.template.Configuration",
"freemarker.template.DefaultObjectWrapperBuilder"
] | import freemarker.template.Configuration; import freemarker.template.DefaultObjectWrapperBuilder; | import freemarker.template.*; | [
"freemarker.template"
] | freemarker.template; | 416,443 |
public void deleteHabit(Context context, int userIndex, int habitIndex){
loadFromFile(context);
this.allUsers.get(userIndex).getHabitListAsArray().remove(habitIndex);
saveToFile(context);
} | void function(Context context, int userIndex, int habitIndex){ loadFromFile(context); this.allUsers.get(userIndex).getHabitListAsArray().remove(habitIndex); saveToFile(context); } | /**
* Deletes habit from a certain user's habit list.
*
* @param context instance of Context
* @param userIndex integer user index
* @param habitIndex integer index of habit
*/ | Deletes habit from a certain user's habit list | deleteHabit | {
"repo_name": "CMPUT301F17T11/CupOfJava",
"path": "app/src/main/java/com/cmput301f17t11/cupofjava/Controllers/SaveFileController.java",
"license": "mit",
"size": 8104
} | [
"android.content.Context"
] | import android.content.Context; | import android.content.*; | [
"android.content"
] | android.content; | 1,284,050 |
public Dimension2D getDimensions() {
return dimensions;
}
| Dimension2D function() { return dimensions; } | /**
* Returns dimensions of this layer
*
* @return dimensions of this layer
*/ | Returns dimensions of this layer | getDimensions | {
"repo_name": "sigma-phi-delta-beta-nu/liars-dice-ai",
"path": "lib/neuroph-2.92/sources/neuroph-2.92/Core/src/main/java/org/neuroph/nnet/comp/layer/FeatureMapLayer.java",
"license": "gpl-3.0",
"size": 4163
} | [
"org.neuroph.nnet.comp.Dimension2D"
] | import org.neuroph.nnet.comp.Dimension2D; | import org.neuroph.nnet.comp.*; | [
"org.neuroph.nnet"
] | org.neuroph.nnet; | 1,479,196 |
public void resetDailySessionTestsStatus(String user_name, String subject)
{
String status_file = "status.record";
String path_to_file = new String(root_path+File.separator
+"files"+File.separator+user_name+File.separator
+subject+File.separator+status_file);
File file = new File(path_to_file);
Docume... | void function(String user_name, String subject) { String status_file = STR; String path_to_file = new String(root_path+File.separator +"files"+File.separator+user_name+File.separator +subject+File.separator+status_file); File file = new File(path_to_file); Document doc = loadDocument(file); Element root = doc.getRootEl... | /**
*<p>This method resets the daily_session_tests element to zero
* in the status.record file.
* <p>It also stores a new login time to start a new session.
*/ | This method resets the daily_session_tests element to zero in the status.record file. It also stores a new login time to start a new session | resetDailySessionTestsStatus | {
"repo_name": "timofeysie/catechis",
"path": "src/org/catechis/file/FileTestRecords.java",
"license": "apache-2.0",
"size": 68533
} | [
"java.io.File",
"java.util.Date",
"org.jdom.Document",
"org.jdom.Element"
] | import java.io.File; import java.util.Date; import org.jdom.Document; import org.jdom.Element; | import java.io.*; import java.util.*; import org.jdom.*; | [
"java.io",
"java.util",
"org.jdom"
] | java.io; java.util; org.jdom; | 784,558 |
public ArrayList<URLLoader> getClassPath() {
return null;
} | ArrayList<URLLoader> function() { return null; } | /**
* Return a list of new URLLoader objects representing any class path
* entries added by this container.
*/ | Return a list of new URLLoader objects representing any class path entries added by this container | getClassPath | {
"repo_name": "webos21/xi",
"path": "java/jcl/src/java/gnu/java/net/loader/URLLoader.java",
"license": "apache-2.0",
"size": 4597
} | [
"java.util.ArrayList"
] | import java.util.ArrayList; | import java.util.*; | [
"java.util"
] | java.util; | 874,781 |
private Vector addMultiRecordAltName(String altName, String acName, String acID, Vector<String> vRes)
throws Exception
{
String hyperText = "";
if (altName != null && !altName.equals(""))
{
UtilService util = new UtilService();
acName = util.pa... | Vector function(String altName, String acName, String acID, Vector<String> vRes) throws Exception { String hyperText = STRSTR<a href=STR\"STRjavascript:openAltNameWindow('ALL','STR')STR\"STR><br><b>Details_>></b></a>STR STR"); return vRes; } | /**
* Adds details hyperlink for alt names in the search resutls of an ac
*
* @param altName
* String altername name
* @param acName
* STring ac name
* @param acID
* String ac_idseq
* @param vRes
* Vector of search results to... | Adds details hyperlink for alt names in the search resutls of an ac | addMultiRecordAltName | {
"repo_name": "NCIP/cadsr-cdecurate",
"path": "src/gov/nih/nci/cadsr/cdecurate/tool/GetACSearch.java",
"license": "bsd-3-clause",
"size": 517161
} | [
"java.util.Vector"
] | import java.util.Vector; | import java.util.*; | [
"java.util"
] | java.util; | 1,007,951 |
public Connection connectTo(Socket socket) {
Connection connection = new Connection(socket, this);
connections.add(connection);
return connection;
}
protected HashSet connections = new HashSet(); | Connection function(Socket socket) { Connection connection = new Connection(socket, this); connections.add(connection); return connection; } protected HashSet connections = new HashSet(); | /**
* creates a new connection for a socket
*
* @param socket
* socket
* @return the Connection object that handles all further communication with
* this socket
*/ | creates a new connection for a socket | connectTo | {
"repo_name": "SergiyKolesnikov/fuji",
"path": "examples/Chat_casestudies/chat-alexander-beck/src/Root/Server.java",
"license": "lgpl-3.0",
"size": 1944
} | [
"java.net.Socket",
"java.util.HashSet"
] | import java.net.Socket; import java.util.HashSet; | import java.net.*; import java.util.*; | [
"java.net",
"java.util"
] | java.net; java.util; | 580,822 |
public SecuritySource getSecuritySource() {
return (SecuritySource) get(SECURITY_SOURCE_NAME);
} | SecuritySource function() { return (SecuritySource) get(SECURITY_SOURCE_NAME); } | /**
* Gets the source of securities.
*
* @return the source of securities, null if not in the context
*/ | Gets the source of securities | getSecuritySource | {
"repo_name": "jeorme/OG-Platform",
"path": "projects/OG-Engine/src/main/java/com/opengamma/engine/function/FunctionCompilationContext.java",
"license": "apache-2.0",
"size": 13824
} | [
"com.opengamma.core.security.SecuritySource"
] | import com.opengamma.core.security.SecuritySource; | import com.opengamma.core.security.*; | [
"com.opengamma.core"
] | com.opengamma.core; | 610,089 |
public double toMeters(double d, String units)
{
int i = ArrayUtil.matches("^" + units + "$", FREQ_UNITS, true);
if (i != -1)
{
return freqToMeters(d, i);
}
i = ArrayUtil.matches("^" + units + "$", EN_UNITS, true);
if (i != -1)
{
r... | double function(double d, String units) { int i = ArrayUtil.matches("^" + units + "$", FREQ_UNITS, true); if (i != -1) { return freqToMeters(d, i); } i = ArrayUtil.matches("^" + units + "$", EN_UNITS, true); if (i != -1) { return energyToMeters(d, i); } i = ArrayUtil.matches("^" + units + "$", WAVE_UNITS, true); if (i ... | /**
* Convert the energy value d from the specified units to wavelength in meters.
*
* @param d
* @param units
* @return wavelength in meters
*/ | Convert the energy value d from the specified units to wavelength in meters | toMeters | {
"repo_name": "at88mph/caom2ui",
"path": "caom2-search-lib/src/main/java/ca/nrc/cadc/astro/EnergyUnitConverter.java",
"license": "agpl-3.0",
"size": 6628
} | [
"ca.nrc.cadc.util.ArrayUtil"
] | import ca.nrc.cadc.util.ArrayUtil; | import ca.nrc.cadc.util.*; | [
"ca.nrc.cadc"
] | ca.nrc.cadc; | 17,808 |
T next() throws IOException;
| T next() throws IOException; | /**
* Retrieve the next resource.
*
* @return The next crawled resource.
* @throws IOException
* If the resource cannot be accessed.
*/ | Retrieve the next resource | next | {
"repo_name": "ecologylab/BigSemanticsService",
"path": "BasicCrawler/src/ecologylab/bigsemantics/service/crawler/ResourceCrawler.java",
"license": "apache-2.0",
"size": 1304
} | [
"java.io.IOException"
] | import java.io.IOException; | import java.io.*; | [
"java.io"
] | java.io; | 1,285,053 |
EClass getOperationDefinition(); | EClass getOperationDefinition(); | /**
* Returns the meta object for class '{@link org.yakindu.sct.model.stext.stext.OperationDefinition <em>Operation Definition</em>}'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @return the meta object for class '<em>Operation Definition</em>'.
* @see org.yakindu.sct.model.stext.stext.OperationDefini... | Returns the meta object for class '<code>org.yakindu.sct.model.stext.stext.OperationDefinition Operation Definition</code>'. | getOperationDefinition | {
"repo_name": "Yakindu/statecharts",
"path": "plugins/org.yakindu.sct.model.stext/emf-gen/org/yakindu/sct/model/stext/stext/StextPackage.java",
"license": "epl-1.0",
"size": 92325
} | [
"org.eclipse.emf.ecore.EClass"
] | import org.eclipse.emf.ecore.EClass; | import org.eclipse.emf.ecore.*; | [
"org.eclipse.emf"
] | org.eclipse.emf; | 2,525,146 |
public static <C extends Expr> boolean equalLists(List<C> l1, List<C> l2) {
if (l1.size() != l2.size()) return false;
Iterator<C> l1Iter = l1.iterator();
Iterator<C> l2Iter = l2.iterator();
while (l1Iter.hasNext()) {
if (!l1Iter.next().equals(l2Iter.next())) return false;
}
return true;
... | static <C extends Expr> boolean function(List<C> l1, List<C> l2) { if (l1.size() != l2.size()) return false; Iterator<C> l1Iter = l1.iterator(); Iterator<C> l2Iter = l2.iterator(); while (l1Iter.hasNext()) { if (!l1Iter.next().equals(l2Iter.next())) return false; } return true; } | /**
* Return true if l1[i].equals(l2[i]) for all i.
*/ | Return true if l1[i].equals(l2[i]) for all i | equalLists | {
"repo_name": "cloudera/Impala",
"path": "fe/src/main/java/org/apache/impala/analysis/Expr.java",
"license": "apache-2.0",
"size": 61617
} | [
"java.util.Iterator",
"java.util.List"
] | import java.util.Iterator; import java.util.List; | import java.util.*; | [
"java.util"
] | java.util; | 2,455,683 |
public List<String> iotHubs() {
return this.iotHubs;
} | List<String> function() { return this.iotHubs; } | /**
* Get the iotHubs property: IoT Hub resource IDs.
*
* @return the iotHubs value.
*/ | Get the iotHubs property: IoT Hub resource IDs | iotHubs | {
"repo_name": "Azure/azure-sdk-for-java",
"path": "sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/models/IoTSecuritySolutionModelInner.java",
"license": "mit",
"size": 12547
} | [
"java.util.List"
] | import java.util.List; | import java.util.*; | [
"java.util"
] | java.util; | 1,288,008 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.