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
protected void decreaseMatchingNodeRemoveUnweighted( HashSet<Node> neighborNodes) { for (Node node1 : neighborNodes) for (Node node2 : neighborNodes) { if (node1.getIndex() > node2.getIndex()) continue; decreaseMatching(node1, node2); } }
void function( HashSet<Node> neighborNodes) { for (Node node1 : neighborNodes) for (Node node2 : neighborNodes) { if (node1.getIndex() > node2.getIndex()) continue; decreaseMatching(node1, node2); } }
/** * Decrease the matching measure if a node is to be removed. * * @param neighborNodes * The neighbors of the node to be removed. * @see #decreaseMatching(UndirectedNode, UndirectedNode) */
Decrease the matching measure if a node is to be removed
decreaseMatchingNodeRemoveUnweighted
{ "repo_name": "timgrube/DNA", "path": "src/dna/metrics/similarityMeasures/Measures.java", "license": "gpl-3.0", "size": 25489 }
[ "dna.graph.nodes.Node", "java.util.HashSet" ]
import dna.graph.nodes.Node; import java.util.HashSet;
import dna.graph.nodes.*; import java.util.*;
[ "dna.graph.nodes", "java.util" ]
dna.graph.nodes; java.util;
1,887,597
public static List<Surfer> getSurfersByCountry(String country) { if (country.equals("")) { return Surfer.find().all(); } return Surfer.find().where().eq("country", CountryDB.getCountry(country)).findList(); }
static List<Surfer> function(String country) { if (country.equals(STRcountry", CountryDB.getCountry(country)).findList(); }
/** * Gets a list of surfers of the specified country. * @param country The country of the surfers. * @return A list of surfers. */
Gets a list of surfers of the specified country
getSurfersByCountry
{ "repo_name": "RobNamahoe/surferpedia", "path": "app/models/SurferDB.java", "license": "mit", "size": 4788 }
[ "java.util.List" ]
import java.util.List;
import java.util.*;
[ "java.util" ]
java.util;
837,989
public void testQueryUsesContainsTwiceOnFieldWithNamespace2MtoN() { PersistenceManager pm = pmf.getPersistenceManager(); Transaction tx = pm.currentTransaction(); try { tx.begin(); PetroleumCustomer customer1 = new PetroleumCustomer("C1"); ...
void function() { PersistenceManager pm = pmf.getPersistenceManager(); Transaction tx = pm.currentTransaction(); try { tx.begin(); PetroleumCustomer customer1 = new PetroleumCustomer("C1"); PetroleumCustomer customer2 = new PetroleumCustomer("C2"); PetroleumCustomer customer3 = new PetroleumCustomer("C3"); PetroleumSup...
/** * test query with "field.contains(x) && field.contains(y)" * * namespace put related expressions inside parentheses */
test query with "field.contains(x) && field.contains(y)" namespace put related expressions inside parentheses
testQueryUsesContainsTwiceOnFieldWithNamespace2MtoN
{ "repo_name": "hopecee/texsts", "path": "jdo/identity/src/test/org/datanucleus/tests/JDOQLContainerTest.java", "license": "apache-2.0", "size": 235732 }
[ "java.util.Collection", "javax.jdo.PersistenceManager", "javax.jdo.Query", "javax.jdo.Transaction", "org.jpox.samples.many_many.PetroleumCustomer", "org.jpox.samples.many_many.PetroleumSupplier" ]
import java.util.Collection; import javax.jdo.PersistenceManager; import javax.jdo.Query; import javax.jdo.Transaction; import org.jpox.samples.many_many.PetroleumCustomer; import org.jpox.samples.many_many.PetroleumSupplier;
import java.util.*; import javax.jdo.*; import org.jpox.samples.many_many.*;
[ "java.util", "javax.jdo", "org.jpox.samples" ]
java.util; javax.jdo; org.jpox.samples;
1,818,132
private void writeBinaryDataToXml(EwsServiceXmlWriter writer) throws XMLStreamException, ServiceXmlSerializationException { EwsUtilities.EwsAssert(writer != null, "UserConfiguration.WriteBinaryDataToXml", "writer is null"); writeByteArrayToXml(writer, this.binaryData, XmlElementNames.BinaryData); }...
void function(EwsServiceXmlWriter writer) throws XMLStreamException, ServiceXmlSerializationException { EwsUtilities.EwsAssert(writer != null, STR, STR); writeByteArrayToXml(writer, this.binaryData, XmlElementNames.BinaryData); }
/** * Writes the BinaryData property to Xml. * * @param writer * The writer. * @throws javax.xml.stream.XMLStreamException * the xML stream exception * @throws ServiceXmlSerializationException * the service xml serialization exception */
Writes the BinaryData property to Xml
writeBinaryDataToXml
{ "repo_name": "vboctor/ews-java-api", "path": "src/main/java/microsoft/exchange/webservices/data/UserConfiguration.java", "license": "mit", "size": 20117 }
[ "javax.xml.stream.XMLStreamException" ]
import javax.xml.stream.XMLStreamException;
import javax.xml.stream.*;
[ "javax.xml" ]
javax.xml;
649,061
private void queue(Consumer<Value> queueMe) { assert targetObject == null: "Don't queue after the targetObject has been built! Just apply the consumer directly."; if (queuedFields == null) { @SuppressWarnings("unchecked") Consumer<Value>[] queuedFields = n...
void function(Consumer<Value> queueMe) { assert targetObject == null: STR; if (queuedFields == null) { @SuppressWarnings(STR) Consumer<Value>[] queuedFields = new Consumer[numberOfFields]; this.queuedFields = queuedFields; } queuedFields[queuedFieldsCount] = queueMe; queuedFieldsCount++; }
/** * Queue a consumer that we'll call once the targetObject is built. If targetObject has been built this will fail because the caller * should have just applied the consumer immediately. */
Queue a consumer that we'll call once the targetObject is built. If targetObject has been built this will fail because the caller should have just applied the consumer immediately
queue
{ "repo_name": "jimczi/elasticsearch", "path": "core/src/main/java/org/elasticsearch/common/xcontent/ConstructingObjectParser.java", "license": "apache-2.0", "size": 26117 }
[ "java.util.function.Consumer" ]
import java.util.function.Consumer;
import java.util.function.*;
[ "java.util" ]
java.util;
1,152,462
private boolean canAdministerKeys(User user, ActivationKey key) { return user != null && key != null && user.getOrg().equals(key.getOrg()) && user.hasRole(RoleFactory.ACTIVATION_KEY_ADMIN); }
boolean function(User user, ActivationKey key) { return user != null && key != null && user.getOrg().equals(key.getOrg()) && user.hasRole(RoleFactory.ACTIVATION_KEY_ADMIN); }
/** * Returns true if the the given user can * administer activation keys.. * This should be the baseline for us to load activation keys. * @param user the user to check on * @param key the activation key to authenticate. * @return true if a key can be administered. False otherwise. *...
Returns true if the the given user can administer activation keys.. This should be the baseline for us to load activation keys
canAdministerKeys
{ "repo_name": "aronparsons/spacewalk", "path": "java/code/src/com/redhat/rhn/manager/token/ActivationKeyManager.java", "license": "gpl-2.0", "size": 24292 }
[ "com.redhat.rhn.domain.role.RoleFactory", "com.redhat.rhn.domain.token.ActivationKey", "com.redhat.rhn.domain.user.User" ]
import com.redhat.rhn.domain.role.RoleFactory; import com.redhat.rhn.domain.token.ActivationKey; import com.redhat.rhn.domain.user.User;
import com.redhat.rhn.domain.role.*; import com.redhat.rhn.domain.token.*; import com.redhat.rhn.domain.user.*;
[ "com.redhat.rhn" ]
com.redhat.rhn;
2,665,636
public static SuperFloppyFormatter get(BlockDevice dev) throws IOException { return new SuperFloppyFormatter(dev); }
static SuperFloppyFormatter function(BlockDevice dev) throws IOException { return new SuperFloppyFormatter(dev); }
/** * Retruns a {@code SuperFloppyFormatter} instance suitable for formatting * the specified device. * * @param dev the device that should be formatted * @return the formatter for the device * @throws IOException on error creating the formatter */
Retruns a SuperFloppyFormatter instance suitable for formatting the specified device
get
{ "repo_name": "monkey0506/jobbifier", "path": "libfat32/src/main/java/de/waldheinz/fs/fat/SuperFloppyFormatter.java", "license": "lgpl-3.0", "size": 15714 }
[ "de.waldheinz.fs.BlockDevice", "java.io.IOException" ]
import de.waldheinz.fs.BlockDevice; import java.io.IOException;
import de.waldheinz.fs.*; import java.io.*;
[ "de.waldheinz.fs", "java.io" ]
de.waldheinz.fs; java.io;
2,865,213
public static Expr createConjunctivePredicate(List<Expr> conjuncts) { Expr conjunctivePred = null; for (Expr expr: conjuncts) { if (conjunctivePred == null) { conjunctivePred = expr; continue; } conjunctivePred = new CompoundPredicate(CompoundPredicate.Operator.AND, ...
static Expr function(List<Expr> conjuncts) { Expr conjunctivePred = null; for (Expr expr: conjuncts) { if (conjunctivePred == null) { conjunctivePred = expr; continue; } conjunctivePred = new CompoundPredicate(CompoundPredicate.Operator.AND, expr, conjunctivePred); } return conjunctivePred; } public Expr clone() { retu...
/** * Creates a conjunctive predicate from a list of exprs. */
Creates a conjunctive predicate from a list of exprs
createConjunctivePredicate
{ "repo_name": "AtScaleInc/Impala", "path": "fe/src/main/java/com/cloudera/impala/analysis/CompoundPredicate.java", "license": "apache-2.0", "size": 6493 }
[ "java.util.List" ]
import java.util.List;
import java.util.*;
[ "java.util" ]
java.util;
2,504,254
MimeMessage mm = createMessage(); mm.setSubject(subject); mm.setText(buildText(text)); Transport.send(mm); }
MimeMessage mm = createMessage(); mm.setSubject(subject); mm.setText(buildText(text)); Transport.send(mm); }
/** Send an email. * @param subject Subject of mail. * @param text Text of mail. */
Send an email
send
{ "repo_name": "SRF-Consulting/NDOR-IRIS", "path": "src/us/mn/state/dot/tms/utils/Emailer.java", "license": "gpl-2.0", "size": 2662 }
[ "javax.mail.Transport", "javax.mail.internet.MimeMessage" ]
import javax.mail.Transport; import javax.mail.internet.MimeMessage;
import javax.mail.*; import javax.mail.internet.*;
[ "javax.mail" ]
javax.mail;
1,103,996
protected void initializeOutputStream(PMML pmmlModel) { for (FieldName predictedField : predictedFields) { String dataType = evaluator.getDataField(predictedField).getDataType().toString(); Attribute.Type type = null; if (dataType.equalsIgnoreCase("double")) { ...
void function(PMML pmmlModel) { for (FieldName predictedField : predictedFields) { String dataType = evaluator.getDataField(predictedField).getDataType().toString(); Attribute.Type type = null; if (dataType.equalsIgnoreCase(STR)) { type = Attribute.Type.DOUBLE; } else if (dataType.equalsIgnoreCase("float")) { type = At...
/** * Extract the name and the data type of the output fields and predicted fields from the * pmml definition and initialize an output stream having attributes with same name and data * type. * * @param pmmlModel Pmml model to which the output stream is define */
Extract the name and the data type of the output fields and predicted fields from the pmml definition and initialize an output stream having attributes with same name and data type
initializeOutputStream
{ "repo_name": "gayanlggd/siddhi", "path": "modules/siddhi-extensions/machine-learning/src/main/java/org/wso2/siddhi/extension/machine/learning/PmmlModelExecutor.java", "license": "apache-2.0", "size": 12232 }
[ "org.dmg.pmml.DataType", "org.dmg.pmml.FieldName", "org.wso2.siddhi.query.api.definition.Attribute" ]
import org.dmg.pmml.DataType; import org.dmg.pmml.FieldName; import org.wso2.siddhi.query.api.definition.Attribute;
import org.dmg.pmml.*; import org.wso2.siddhi.query.api.definition.*;
[ "org.dmg.pmml", "org.wso2.siddhi" ]
org.dmg.pmml; org.wso2.siddhi;
2,667,432
protected void unsetExecutor(ExecutorService svc) { executor = null; }
void function(ExecutorService svc) { executor = null; }
/** * Declarative Services method for unsetting the Liberty executor. * * @param svc the service */
Declarative Services method for unsetting the Liberty executor
unsetExecutor
{ "repo_name": "kgibm/open-liberty", "path": "dev/com.ibm.ws.concurrent.persistent/src/com/ibm/ws/concurrent/persistent/internal/PersistentExecutorImpl.java", "license": "epl-1.0", "size": 106994 }
[ "java.util.concurrent.ExecutorService" ]
import java.util.concurrent.ExecutorService;
import java.util.concurrent.*;
[ "java.util" ]
java.util;
495,866
public Calendar getThirdQuarter() { return thirdQuarter; }
Calendar function() { return thirdQuarter; }
/** * Returns the date at which the moon is in the third quarter. */
Returns the date at which the moon is in the third quarter
getThirdQuarter
{ "repo_name": "paolodenti/openhab", "path": "bundles/binding/org.openhab.binding.astro/src/main/java/org/openhab/binding/astro/internal/model/MoonPhase.java", "license": "epl-1.0", "size": 3275 }
[ "java.util.Calendar" ]
import java.util.Calendar;
import java.util.*;
[ "java.util" ]
java.util;
2,403,911
public static RefactoringStatus checkIdentifier(String name, IJavaElement context) { return checkName(name, JavaConventionsUtil.validateIdentifier(name, context)); }
static RefactoringStatus function(String name, IJavaElement context) { return checkName(name, JavaConventionsUtil.validateIdentifier(name, context)); }
/** * Checks if the given name is a valid Java identifier. * * @param name the java identifier. * @param context an {@link IJavaElement} or <code>null</code> * @return a refactoring status containing the error message if the * name is not a valid java identifier. */
Checks if the given name is a valid Java identifier
checkIdentifier
{ "repo_name": "elucash/eclipse-oxygen", "path": "org.eclipse.jdt.ui/src/org/eclipse/jdt/internal/corext/refactoring/Checks.java", "license": "epl-1.0", "size": 34153 }
[ "org.eclipse.jdt.core.IJavaElement", "org.eclipse.jdt.internal.corext.util.JavaConventionsUtil", "org.eclipse.ltk.core.refactoring.RefactoringStatus" ]
import org.eclipse.jdt.core.IJavaElement; import org.eclipse.jdt.internal.corext.util.JavaConventionsUtil; import org.eclipse.ltk.core.refactoring.RefactoringStatus;
import org.eclipse.jdt.core.*; import org.eclipse.jdt.internal.corext.util.*; import org.eclipse.ltk.core.refactoring.*;
[ "org.eclipse.jdt", "org.eclipse.ltk" ]
org.eclipse.jdt; org.eclipse.ltk;
2,911,761
private Node parseContextTypeExpression(JsDocToken token) { if (token == JsDocToken.QMARK) { return newNode(Token.QMARK); } else { return parseBasicTypeExpression(token); } }
Node function(JsDocToken token) { if (token == JsDocToken.QMARK) { return newNode(Token.QMARK); } else { return parseBasicTypeExpression(token); } }
/** * ContextTypeExpression := BasicTypeExpression | '?' * For expressions on the right hand side of a this: or new: */
ContextTypeExpression := BasicTypeExpression | '?' For expressions on the right hand side of a this: or new:
parseContextTypeExpression
{ "repo_name": "brad4d/closure-compiler", "path": "src/com/google/javascript/jscomp/parsing/JsDocInfoParser.java", "license": "apache-2.0", "size": 86616 }
[ "com.google.javascript.rhino.Node", "com.google.javascript.rhino.Token" ]
import com.google.javascript.rhino.Node; import com.google.javascript.rhino.Token;
import com.google.javascript.rhino.*;
[ "com.google.javascript" ]
com.google.javascript;
2,119,496
public static String formatPropertyName(final String value) { String formattedValue = toUpperFirstChar(value); if (ValidationUtil.isGolangKeyword(formattedValue)) { final String keywordAppendToken = System.getProperty(SbeTool.KEYWORD_APPEND_TOKEN); if (null == ke...
static String function(final String value) { String formattedValue = toUpperFirstChar(value); if (ValidationUtil.isGolangKeyword(formattedValue)) { final String keywordAppendToken = System.getProperty(SbeTool.KEYWORD_APPEND_TOKEN); if (null == keywordAppendToken) { throw new IllegalStateException( STR + formattedValue ...
/** * Format a String as a property name. * * @param value to be formatted. * @return the string formatted as a property name. */
Format a String as a property name
formatPropertyName
{ "repo_name": "marksantos/simple-binary-encoding", "path": "sbe-tool/src/main/java/uk/co/real_logic/sbe/generation/golang/GolangUtil.java", "license": "apache-2.0", "size": 5532 }
[ "uk.co.real_logic.sbe.SbeTool", "uk.co.real_logic.sbe.util.ValidationUtil" ]
import uk.co.real_logic.sbe.SbeTool; import uk.co.real_logic.sbe.util.ValidationUtil;
import uk.co.real_logic.sbe.*; import uk.co.real_logic.sbe.util.*;
[ "uk.co.real_logic" ]
uk.co.real_logic;
280,033
public static JButton getShowGermanyButton(final JXMapViewer mapViewer) { final JButton showGermanyButton = new JButton("Show Germany"); showGermanyButton.addActionListener((l) -> { showGermany(mapViewer); } ); return showGermanyButton; }
static JButton function(final JXMapViewer mapViewer) { final JButton showGermanyButton = new JButton(STR); showGermanyButton.addActionListener((l) -> { showGermany(mapViewer); } ); return showGermanyButton; }
/** * Get the show germany button * @return */
Get the show germany button
getShowGermanyButton
{ "repo_name": "jnidzwetzki/bboxdb", "path": "bboxdb-tools/src/main/java/org/bboxdb/tools/gui/util/MapViewerFactory.java", "license": "apache-2.0", "size": 6839 }
[ "javax.swing.JButton", "org.jxmapviewer.JXMapViewer" ]
import javax.swing.JButton; import org.jxmapviewer.JXMapViewer;
import javax.swing.*; import org.jxmapviewer.*;
[ "javax.swing", "org.jxmapviewer" ]
javax.swing; org.jxmapviewer;
496,523
public static String convertNumber(final String pJavaString) { return StringToSQL.convertNumber(pJavaString, Constants.JDBC_CLASS_MYSQL); }
static String function(final String pJavaString) { return StringToSQL.convertNumber(pJavaString, Constants.JDBC_CLASS_MYSQL); }
/** * The <code>convertNumber</code> method converts a Java string, contains a number to SQL. * * @param pJavaString Java string to convert * @return string as SQL */
The <code>convertNumber</code> method converts a Java string, contains a number to SQL
convertNumber
{ "repo_name": "ManfredTremmel/dbnavigationbar", "path": "src/main/java/de/knightsoft/dbnavigationbar/server/StringToSQL.java", "license": "agpl-3.0", "size": 19376 }
[ "de.knightsoft.dbnavigationbar.shared.Constants" ]
import de.knightsoft.dbnavigationbar.shared.Constants;
import de.knightsoft.dbnavigationbar.shared.*;
[ "de.knightsoft.dbnavigationbar" ]
de.knightsoft.dbnavigationbar;
1,912,591
private void verifyNoMoreInteractionsHelper() { verifyNoMoreInteractions(securityRoleFunctionDao); }
void function() { verifyNoMoreInteractions(securityRoleFunctionDao); }
/** * Checks if any of the mocks has any interaction. */
Checks if any of the mocks has any interaction
verifyNoMoreInteractionsHelper
{ "repo_name": "FINRAOS/herd", "path": "herd-code/herd-service/src/test/java/org/finra/herd/service/helper/SecurityRoleFunctionDaoHelperTest.java", "license": "apache-2.0", "size": 3528 }
[ "org.mockito.Mockito" ]
import org.mockito.Mockito;
import org.mockito.*;
[ "org.mockito" ]
org.mockito;
2,160,662
public boolean shouldCompareExistingObjectForChange(Object object, UnitOfWorkImpl unitOfWork, ClassDescriptor descriptor) { //PERF: Breakdown the logic to have the most likely scenario checked first ObjectChangeListener listener = (ObjectChangeListener)((ChangeTracker)object)._persistence_getPropert...
boolean function(Object object, UnitOfWorkImpl unitOfWork, ClassDescriptor descriptor) { ObjectChangeListener listener = (ObjectChangeListener)((ChangeTracker)object)._persistence_getPropertyChangeListener(); if ((listener != null) && listener.hasChanges()) { return true; } Boolean optimisticRead = null; if (unitOfWork...
/** * INTERNAL: * Return true if the Object should be compared, false otherwise. In ObjectChangeTrackingPolicy or * AttributeChangeTracking Policy this method will return true if the object is new, if the object * is in the OptimisticReadLock list or if the listener.hasChanges() returns true. ...
Return true if the Object should be compared, false otherwise. In ObjectChangeTrackingPolicy or AttributeChangeTracking Policy this method will return true if the object is new, if the object is in the OptimisticReadLock list or if the listener.hasChanges() returns true
shouldCompareExistingObjectForChange
{ "repo_name": "RallySoftware/eclipselink.runtime", "path": "foundation/org.eclipse.persistence.core/src/org/eclipse/persistence/descriptors/changetracking/ObjectChangeTrackingPolicy.java", "license": "epl-1.0", "size": 8285 }
[ "org.eclipse.persistence.descriptors.ClassDescriptor", "org.eclipse.persistence.internal.descriptors.changetracking.ObjectChangeListener", "org.eclipse.persistence.internal.sessions.UnitOfWorkImpl" ]
import org.eclipse.persistence.descriptors.ClassDescriptor; import org.eclipse.persistence.internal.descriptors.changetracking.ObjectChangeListener; import org.eclipse.persistence.internal.sessions.UnitOfWorkImpl;
import org.eclipse.persistence.descriptors.*; import org.eclipse.persistence.internal.descriptors.changetracking.*; import org.eclipse.persistence.internal.sessions.*;
[ "org.eclipse.persistence" ]
org.eclipse.persistence;
2,526,794
public static void generateProxyCall(MethodVisitor visitor, String calleeClassName, String calleeMethodName, String descriptor, int access, boolean isInstanceMethod, boolean isInterface) { Label start = new Label(), end = new Label(); visitor.visitLabel(start); long sizesAndReturnCode =...
static void function(MethodVisitor visitor, String calleeClassName, String calleeMethodName, String descriptor, int access, boolean isInstanceMethod, boolean isInterface) { Label start = new Label(), end = new Label(); visitor.visitLabel(start); long sizesAndReturnCode = visitProxyCall(visitor, calleeClassName, calleeM...
/** * Generate a proxy method call, i.e. one whose only job is forwarding the parameters to a different method * (and perhaps within a superclass, or another class entirely if static) with the same signature but perhaps * different properties. */
Generate a proxy method call, i.e. one whose only job is forwarding the parameters to a different method (and perhaps within a superclass, or another class entirely if static) with the same signature but perhaps different properties
generateProxyCall
{ "repo_name": "belliottsmith/cassandra", "path": "test/simulator/asm/org/apache/cassandra/simulator/asm/Utils.java", "license": "apache-2.0", "size": 10525 }
[ "org.objectweb.asm.Label", "org.objectweb.asm.MethodVisitor" ]
import org.objectweb.asm.Label; import org.objectweb.asm.MethodVisitor;
import org.objectweb.asm.*;
[ "org.objectweb.asm" ]
org.objectweb.asm;
1,816,819
static boolean isDefinitionNode(Node n) { Node parent = n.getParent(); if (parent == null) { return false; } if (NodeUtil.isVarDeclaration(n) && (n.isFromExterns() || n.hasChildren())) { return true; } else if (parent.isFunction() && parent.getFirstChild() == n) { if (!NodeUtil....
static boolean isDefinitionNode(Node n) { Node parent = n.getParent(); if (parent == null) { return false; } if (NodeUtil.isVarDeclaration(n) && (n.isFromExterns() n.hasChildren())) { return true; } else if (parent.isFunction() && parent.getFirstChild() == n) { if (!NodeUtil.isFunctionExpression(parent)) { return true;...
/** * This logic must match {@link getDefinition}. * * @return Whether a definition object can be created. */
This logic must match <code>getDefinition</code>
isDefinitionNode
{ "repo_name": "brad4d/closure-compiler", "path": "src/com/google/javascript/jscomp/DefinitionsRemover.java", "license": "apache-2.0", "size": 12752 }
[ "com.google.common.base.Preconditions", "com.google.javascript.rhino.Node", "com.google.javascript.rhino.Token" ]
import com.google.common.base.Preconditions; import com.google.javascript.rhino.Node; import com.google.javascript.rhino.Token;
import com.google.common.base.*; import com.google.javascript.rhino.*;
[ "com.google.common", "com.google.javascript" ]
com.google.common; com.google.javascript;
2,152,443
@SuppressWarnings("unchecked") public JComponent createComponent () { JComponent cmp = null; m_component = null; switch (m_property.getType ()) { case INTEGER: int nValue = 0; try { nValue = Integer.parseInt (m_property.getDisplayValue ()); } catch (NumberFormatExceptio...
@SuppressWarnings(STR) JComponent function () { JComponent cmp = null; m_component = null; switch (m_property.getType ()) { case INTEGER: int nValue = 0; try { nValue = Integer.parseInt (m_property.getDisplayValue ()); } catch (NumberFormatException e) { } if (m_property.getValues ().size () > 1) { int nMin = (Integer)...
/** * Creates a UI component corresponding to the property. * @return The UI component */
Creates a UI component corresponding to the property
createComponent
{ "repo_name": "intersense/patus-gw", "path": "src/ch/unibas/cs/hpwc/patus/config/ConfigUI.java", "license": "lgpl-2.1", "size": 8595 }
[ "javax.swing.JComponent", "javax.swing.JSpinner", "javax.swing.SpinnerNumberModel" ]
import javax.swing.JComponent; import javax.swing.JSpinner; import javax.swing.SpinnerNumberModel;
import javax.swing.*;
[ "javax.swing" ]
javax.swing;
1,780,947
public static ContainmentAssociationControl getAssociationControlForpreviewMode( ContainerInterface containerInterface, String childContainerId) { Collection<ControlInterface> controlCollection = containerInterface.getAllControls(); for (ControlInterface control : controlCollecti...
static ContainmentAssociationControl function( ContainerInterface containerInterface, String childContainerId) { Collection<ControlInterface> controlCollection = containerInterface.getAllControls(); for (ControlInterface control : controlCollection) { if (control instanceof ContainmentAssociationControl) { ContainmentA...
/** Added this method for bug fix 5864 * This method returns the associationControl for a given Container and its child caintener id * @param containerInterface * @param childContainerId * @return */
Added this method for bug fix 5864 This method returns the associationControl for a given Container and its child caintener id
getAssociationControlForpreviewMode
{ "repo_name": "NCIP/cab2b", "path": "software/dependencies/dynamicextensions/caB2B_2009_JUN_02/src/edu/common/dynamicextensions/ui/webui/util/UserInterfaceiUtility.java", "license": "bsd-3-clause", "size": 19134 }
[ "edu.common.dynamicextensions.domain.userinterface.ContainmentAssociationControl", "edu.common.dynamicextensions.domaininterface.userinterface.ContainerInterface", "edu.common.dynamicextensions.domaininterface.userinterface.ControlInterface", "java.util.Collection" ]
import edu.common.dynamicextensions.domain.userinterface.ContainmentAssociationControl; import edu.common.dynamicextensions.domaininterface.userinterface.ContainerInterface; import edu.common.dynamicextensions.domaininterface.userinterface.ControlInterface; import java.util.Collection;
import edu.common.dynamicextensions.domain.userinterface.*; import edu.common.dynamicextensions.domaininterface.userinterface.*; import java.util.*;
[ "edu.common.dynamicextensions", "java.util" ]
edu.common.dynamicextensions; java.util;
134,213
List<Member> getGroupDirectMembers(PerunSession perunSession, Group group) throws InternalErrorException, PrivilegeException, GroupNotExistsException;
List<Member> getGroupDirectMembers(PerunSession perunSession, Group group) throws InternalErrorException, PrivilegeException, GroupNotExistsException;
/** * Return all direct group members. * * @param perunSession perun session * @param group group * @return list of direct members * @throws InternalErrorException internal error * @throws PrivilegeException insufficient permission * @throws GroupNotExistsException when group does not exist */
Return all direct group members
getGroupDirectMembers
{ "repo_name": "stavamichal/perun", "path": "perun-core/src/main/java/cz/metacentrum/perun/core/api/GroupsManager.java", "license": "bsd-2-clause", "size": 54135 }
[ "cz.metacentrum.perun.core.api.exceptions.GroupNotExistsException", "cz.metacentrum.perun.core.api.exceptions.InternalErrorException", "cz.metacentrum.perun.core.api.exceptions.PrivilegeException", "java.util.List" ]
import cz.metacentrum.perun.core.api.exceptions.GroupNotExistsException; import cz.metacentrum.perun.core.api.exceptions.InternalErrorException; import cz.metacentrum.perun.core.api.exceptions.PrivilegeException; import java.util.List;
import cz.metacentrum.perun.core.api.exceptions.*; import java.util.*;
[ "cz.metacentrum.perun", "java.util" ]
cz.metacentrum.perun; java.util;
295,899
public Builder<T> setWizardInModal(final boolean wizardInModal) { this.wizardInModal = wizardInModal; return this; } } public static class ExitEvent { private final AjaxRequestTarget target; public ExitEvent(final AjaxRequestTarget target) { ...
Builder<T> function(final boolean wizardInModal) { this.wizardInModal = wizardInModal; return this; } } public static class ExitEvent { private final AjaxRequestTarget target; public ExitEvent(final AjaxRequestTarget target) { this.target = target; }
/** * Specifies to open an edit item wizard into a new modal page. * * @param wizardInModal TRUE to request to open wizard in a new modal. * @return the current builder. */
Specifies to open an edit item wizard into a new modal page
setWizardInModal
{ "repo_name": "NuwanSameera/syncope", "path": "client/console/src/main/java/org/apache/syncope/client/console/wizards/WizardMgtPanel.java", "license": "apache-2.0", "size": 16722 }
[ "org.apache.wicket.ajax.AjaxRequestTarget" ]
import org.apache.wicket.ajax.AjaxRequestTarget;
import org.apache.wicket.ajax.*;
[ "org.apache.wicket" ]
org.apache.wicket;
2,078,936
@Column(name = "RNT_CAR_CLOSE_DT", nullable = true) public Date getRentalCarCloseDate() { return rentalCarCloseDate; }
@Column(name = STR, nullable = true) Date function() { return rentalCarCloseDate; }
/** * Gets the rentalCarCloseDate attribute. * @return Returns the rentalCarCloseDate. */
Gets the rentalCarCloseDate attribute
getRentalCarCloseDate
{ "repo_name": "bhutchinson/kfs", "path": "kfs-tem/src/main/java/org/kuali/kfs/module/tem/businessobject/AgencyStagingData.java", "license": "agpl-3.0", "size": 52782 }
[ "java.sql.Date", "javax.persistence.Column" ]
import java.sql.Date; import javax.persistence.Column;
import java.sql.*; import javax.persistence.*;
[ "java.sql", "javax.persistence" ]
java.sql; javax.persistence;
2,056,268
@Test(expected=IllegalArgumentException.class) public void testMissingFile1() { cfg.setKeyStorePath(PREFIX_KEY_PATH + "does-not-exist"); cfg.setKeyStorePassword("honokeys"); cfg.getKeyCertOptions(); }
@Test(expected=IllegalArgumentException.class) void function() { cfg.setKeyStorePath(PREFIX_KEY_PATH + STR); cfg.setKeyStorePassword(STR); cfg.getKeyCertOptions(); }
/** * Specify a non existing keystore. */
Specify a non existing keystore
testMissingFile1
{ "repo_name": "dejanb/hono", "path": "core/src/test/java/org/eclipse/hono/config/AbstractConfigTest.java", "license": "epl-1.0", "size": 3984 }
[ "org.junit.Test" ]
import org.junit.Test;
import org.junit.*;
[ "org.junit" ]
org.junit;
364,040
EReference getXMLTypeDocumentRoot_XMLNSPrefixMap();
EReference getXMLTypeDocumentRoot_XMLNSPrefixMap();
/** * Returns the meta object for the map '{@link org.eclipse.emf.ecore.xml.type.XMLTypeDocumentRoot#getXMLNSPrefixMap <em>XMLNS Prefix Map</em>}'. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @return the meta object for the map '<em>XMLNS Prefix Map</em>'. * @see org.eclipse.emf.ecore.xml.type.XM...
Returns the meta object for the map '<code>org.eclipse.emf.ecore.xml.type.XMLTypeDocumentRoot#getXMLNSPrefixMap XMLNS Prefix Map</code>'.
getXMLTypeDocumentRoot_XMLNSPrefixMap
{ "repo_name": "LangleyStudios/eclipse-avro", "path": "test/org.eclipse.emf.ecore/src/org/eclipse/emf/ecore/xml/type/XMLTypePackage.java", "license": "epl-1.0", "size": 81687 }
[ "org.eclipse.emf.ecore.EReference" ]
import org.eclipse.emf.ecore.EReference;
import org.eclipse.emf.ecore.*;
[ "org.eclipse.emf" ]
org.eclipse.emf;
458,480
public Machina detect(Player player, final BlockLocation anchor, final BlockFace leverFace, ItemStack itemInHand) { // log.info("blueprint detected"); if (leverFace != BlockFace.UP){ // log.info("detect 1"); return null;} if (!anchor.checkType(anchorMaterial)){ // ...
Machina function(Player player, final BlockLocation anchor, final BlockFace leverFace, ItemStack itemInHand) { if (leverFace != BlockFace.UP){ return null;} if (!anchor.checkType(anchorMaterial)){ return null; } BlockLocation centralBase = anchor.getRelative(BlockFace.DOWN); List<Integer> detectedModules = new ArrayLis...
/** * Detects whether a drill is present at the given BlockLocation. Key blocks * defined above must be detected manually. */
Detects whether a drill is present at the given BlockLocation. Key blocks defined above must be detected manually
detect
{ "repo_name": "bulshavik/Toolworx", "path": "MachinaDrill/src/me/lyneira/MachinaDrill/Blueprint.java", "license": "gpl-3.0", "size": 11624 }
[ "java.util.ArrayList", "java.util.List", "me.lyneira.MachinaCore", "org.bukkit.block.BlockFace", "org.bukkit.entity.Player", "org.bukkit.inventory.ItemStack" ]
import java.util.ArrayList; import java.util.List; import me.lyneira.MachinaCore; import org.bukkit.block.BlockFace; import org.bukkit.entity.Player; import org.bukkit.inventory.ItemStack;
import java.util.*; import me.lyneira.*; import org.bukkit.block.*; import org.bukkit.entity.*; import org.bukkit.inventory.*;
[ "java.util", "me.lyneira", "org.bukkit.block", "org.bukkit.entity", "org.bukkit.inventory" ]
java.util; me.lyneira; org.bukkit.block; org.bukkit.entity; org.bukkit.inventory;
2,586,575
private void saveBackROI(String path) { Registry reg = MeasurementAgent.getRegistry(); UserNotifier un = reg.getUserNotifier(); try { model.saveROI(path, false); } catch (ParsingException e) { reg.getLogger().error(this, "Cannot save the ROI "+e.getMessage()); un.notifyInfo("Save ROI", "Cannot save...
void function(String path) { Registry reg = MeasurementAgent.getRegistry(); UserNotifier un = reg.getUserNotifier(); try { model.saveROI(path, false); } catch (ParsingException e) { reg.getLogger().error(this, STR+e.getMessage()); un.notifyInfo(STR, STR + STR+model.getImageID()); } un.notifyInfo(STR, STR + STR); firePr...
/** * Saves the ROI without displaying a file chooser. * * @param path The absolute path to the file. */
Saves the ROI without displaying a file chooser
saveBackROI
{ "repo_name": "jballanc/openmicroscopy", "path": "components/insight/SRC/org/openmicroscopy/shoola/agents/measurement/view/MeasurementViewerComponent.java", "license": "gpl-2.0", "size": 32914 }
[ "org.openmicroscopy.shoola.agents.measurement.MeasurementAgent", "org.openmicroscopy.shoola.env.config.Registry", "org.openmicroscopy.shoola.env.ui.UserNotifier", "org.openmicroscopy.shoola.util.roi.exception.ParsingException" ]
import org.openmicroscopy.shoola.agents.measurement.MeasurementAgent; import org.openmicroscopy.shoola.env.config.Registry; import org.openmicroscopy.shoola.env.ui.UserNotifier; import org.openmicroscopy.shoola.util.roi.exception.ParsingException;
import org.openmicroscopy.shoola.agents.measurement.*; import org.openmicroscopy.shoola.env.config.*; import org.openmicroscopy.shoola.env.ui.*; import org.openmicroscopy.shoola.util.roi.exception.*;
[ "org.openmicroscopy.shoola" ]
org.openmicroscopy.shoola;
1,876,928
public Tex registerValueSource(String name, ValueSource valueSource) { checkConfigureState("Appender"); if (name == null) { throw new IllegalArgumentException("Value source name cannot be null!"); } if (valueSource == null) { throw new IllegalArgumentException("Value source cannot be null!");...
Tex function(String name, ValueSource valueSource) { checkConfigureState(STR); if (name == null) { throw new IllegalArgumentException(STR); } if (valueSource == null) { throw new IllegalArgumentException(STR); } if (name.equals(STR)) { throw new IllegalArgumentException(STR); } valueSourceMap.put(name, valueSource); lo...
/** * Registers a new value source, who tex will call when a column name matches this in order to obtain the calculated value of column. * Note the same instance will be used in every row. * @param name Name of the value source (tag name in XML). There is two reserved names: 'column' and 'counter'; in the firs...
Registers a new value source, who tex will call when a column name matches this in order to obtain the calculated value of column. Note the same instance will be used in every row
registerValueSource
{ "repo_name": "utluiz/tex", "path": "src/main/java/br/com/starcode/tex/Tex.java", "license": "mit", "size": 14727 }
[ "br.com.starcode.tex.source.ValueSource" ]
import br.com.starcode.tex.source.ValueSource;
import br.com.starcode.tex.source.*;
[ "br.com.starcode" ]
br.com.starcode;
2,777,835
@ServiceMethod(returns = ReturnType.SINGLE) public GatewayContractInner createOrUpdate( String resourceGroupName, String serviceName, String gatewayId, GatewayContractInner parameters) { final String ifMatch = null; return createOrUpdateAsync(resourceGroupName, serviceName, gatewayId, pa...
@ServiceMethod(returns = ReturnType.SINGLE) GatewayContractInner function( String resourceGroupName, String serviceName, String gatewayId, GatewayContractInner parameters) { final String ifMatch = null; return createOrUpdateAsync(resourceGroupName, serviceName, gatewayId, parameters, ifMatch).block(); }
/** * Creates or updates a Gateway to be used in Api Management instance. * * @param resourceGroupName The name of the resource group. * @param serviceName The name of the API Management service. * @param gatewayId Gateway entity identifier. Must be unique in the current API Management service ...
Creates or updates a Gateway to be used in Api Management instance
createOrUpdate
{ "repo_name": "Azure/azure-sdk-for-java", "path": "sdk/apimanagement/azure-resourcemanager-apimanagement/src/main/java/com/azure/resourcemanager/apimanagement/implementation/GatewaysClientImpl.java", "license": "mit", "size": 103637 }
[ "com.azure.core.annotation.ReturnType", "com.azure.core.annotation.ServiceMethod", "com.azure.resourcemanager.apimanagement.fluent.models.GatewayContractInner" ]
import com.azure.core.annotation.ReturnType; import com.azure.core.annotation.ServiceMethod; import com.azure.resourcemanager.apimanagement.fluent.models.GatewayContractInner;
import com.azure.core.annotation.*; import com.azure.resourcemanager.apimanagement.fluent.models.*;
[ "com.azure.core", "com.azure.resourcemanager" ]
com.azure.core; com.azure.resourcemanager;
1,710,489
@Test public void testAccessibilityOfItemsBeingPushedOut() throws Throwable { Intent intent = new Intent(); intent.putExtra(GridActivity.EXTRA_LAYOUT_RESOURCE_ID, R.layout.horizontal_grid); intent.putExtra(GridActivity.EXTRA_NUM_ITEMS, 100); intent.putExtra(GridActivity.EXTRA_STA...
void function() throws Throwable { Intent intent = new Intent(); intent.putExtra(GridActivity.EXTRA_LAYOUT_RESOURCE_ID, R.layout.horizontal_grid); intent.putExtra(GridActivity.EXTRA_NUM_ITEMS, 100); intent.putExtra(GridActivity.EXTRA_STAGGERED, false); mOrientation = BaseGridView.HORIZONTAL; mNumRows = 3; initActivity(...
/** * This test would need talkback on. */
This test would need talkback on
testAccessibilityOfItemsBeingPushedOut
{ "repo_name": "aosp-mirror/platform_frameworks_support", "path": "leanback/src/androidTest/java/androidx/leanback/widget/GridWidgetTest.java", "license": "apache-2.0", "size": 252365 }
[ "android.content.Intent" ]
import android.content.Intent;
import android.content.*;
[ "android.content" ]
android.content;
554,186
@Override public java.util.Iterator<T> iterator() { if (isEmpty()) { return new EmptyIterator(); } else { return new MainIterator(); } } private class EmptyIterator implements Iterator<T> {
java.util.Iterator<T> function() { if (isEmpty()) { return new EmptyIterator(); } else { return new MainIterator(); } } private class EmptyIterator implements Iterator<T> {
/** * Creates a new iterator to browse elements. * * @return Iterator */
Creates a new iterator to browse elements
iterator
{ "repo_name": "tectronics/javasimon", "path": "core/src/main/java/org/javasimon/callback/lastsplits/CircularList.java", "license": "bsd-3-clause", "size": 6415 }
[ "java.util.Iterator" ]
import java.util.Iterator;
import java.util.*;
[ "java.util" ]
java.util;
256,405
public String serialize(AuthorNode input) throws AuthorOperationException { return Utils.serialize(getAuthorAccess(), input); }
String function(AuthorNode input) throws AuthorOperationException { return Utils.serialize(getAuthorAccess(), input); }
/** * Serializes a {@link AuthorNode} to it's xml representation, including all content nodes * @param input The {@link AuthorNode} to serialize * @return The serialized xml representation * @throws AuthorOperationException * When the given {@link AuthorNode} unexpectedly could not be serialized */
Serializes a <code>AuthorNode</code> to it's xml representation, including all content nodes
serialize
{ "repo_name": "ybk/nota.oxygen", "path": "addins/src/nota/oxygen/common/BaseAuthorOperation.java", "license": "lgpl-3.0", "size": 9794 }
[ "ro.sync.ecss.extensions.api.AuthorOperationException", "ro.sync.ecss.extensions.api.node.AuthorNode" ]
import ro.sync.ecss.extensions.api.AuthorOperationException; import ro.sync.ecss.extensions.api.node.AuthorNode;
import ro.sync.ecss.extensions.api.*; import ro.sync.ecss.extensions.api.node.*;
[ "ro.sync.ecss" ]
ro.sync.ecss;
1,391,291
@Override public void backward() { Tensor tmp = new Tensor(yAdj); // copy tmp.elemMultiply(y); modInX.getOutputAdj().elemAdd(tmp); }
void function() { Tensor tmp = new Tensor(yAdj); tmp.elemMultiply(y); modInX.getOutputAdj().elemAdd(tmp); }
/** * Backward pass: * dG/dx_i += dG/dy_i dy_i/dx_i = dG/dy_i exp(x_i) */
Backward pass: dG/dx_i += dG/dy_i dy_i/dx_i = dG/dy_i exp(x_i)
backward
{ "repo_name": "mgormley/pacaya", "path": "src/main/java/edu/jhu/pacaya/autodiff/tensor/Exp.java", "license": "apache-2.0", "size": 1119 }
[ "edu.jhu.pacaya.autodiff.Tensor" ]
import edu.jhu.pacaya.autodiff.Tensor;
import edu.jhu.pacaya.autodiff.*;
[ "edu.jhu.pacaya" ]
edu.jhu.pacaya;
2,139,162
private void processClassD(ClassInstance cls, CommonClasses common) { Queue<ClassInstance> toCheck = new ArrayDeque<>(); Set<ClassInstance> checked = Util.newIdentityHashSet(); Set<MemberHierarchyData<MethodInstance>> nameObfChecked = Util.newIdentityHashSet(); for (MethodInstance method : cls.getMethods())...
void function(ClassInstance cls, CommonClasses common) { Queue<ClassInstance> toCheck = new ArrayDeque<>(); Set<ClassInstance> checked = Util.newIdentityHashSet(); Set<MemberHierarchyData<MethodInstance>> nameObfChecked = Util.newIdentityHashSet(); for (MethodInstance method : cls.getMethods()) { if (method.hierarchyDa...
/** * 4th processing pass, child<->parent relation and in depth analysis. */
4th processing pass, childparent relation and in depth analysis
processClassD
{ "repo_name": "sfPlayer1/Matcher", "path": "src/matcher/type/ClassFeatureExtractor.java", "license": "gpl-3.0", "size": 21005 }
[ "java.util.ArrayDeque", "java.util.Collections", "java.util.Queue", "java.util.Set" ]
import java.util.ArrayDeque; import java.util.Collections; import java.util.Queue; import java.util.Set;
import java.util.*;
[ "java.util" ]
java.util;
199,517
@SuppressWarnings("unchecked") public static <T, IT extends Iterable<T>> void coderDecodeEncodeContentsInSameOrderInContext( Coder<IT> coder, Coder.Context context, IT value) throws Exception { Iterable<T> result = decodeEncode(coder, context, value); // Matchers.contains() requires at least one...
@SuppressWarnings(STR) static <T, IT extends Iterable<T>> void function( Coder<IT> coder, Coder.Context context, IT value) throws Exception { Iterable<T> result = decodeEncode(coder, context, value); if (Iterables.isEmpty(value)) { assertThat(result, emptyIterable()); } else { assertThat(result, contains((T[]) Iterable...
/** * Verifies that for the given {@link Coder Coder<Iterable<T>>}, * and value of type {@code Iterable<T>}, encoding followed by decoding yields an * equal value of type {@code Collection<T>}, in the given {@link Coder.Context}. */
Verifies that for the given <code>Coder Coder></code>, and value of type Iterable, encoding followed by decoding yields an equal value of type Collection, in the given <code>Coder.Context</code>
coderDecodeEncodeContentsInSameOrderInContext
{ "repo_name": "haonaturel/DataflowJavaSDK", "path": "sdk/src/test/java/com/google/cloud/dataflow/sdk/coders/CoderProperties.java", "license": "apache-2.0", "size": 9180 }
[ "com.google.common.collect.Iterables", "org.hamcrest.Matchers", "org.junit.Assert" ]
import com.google.common.collect.Iterables; import org.hamcrest.Matchers; import org.junit.Assert;
import com.google.common.collect.*; import org.hamcrest.*; import org.junit.*;
[ "com.google.common", "org.hamcrest", "org.junit" ]
com.google.common; org.hamcrest; org.junit;
1,476,586
@Override public void exitSrebop(@NotNull PoCoParser.SrebopContext ctx) { }
@Override public void exitSrebop(@NotNull PoCoParser.SrebopContext ctx) { }
/** * {@inheritDoc} * * <p>The default implementation does nothing.</p> */
The default implementation does nothing
enterSrebop
{ "repo_name": "Corjuh/PoCo-Compiler", "path": "src/com/poco/PoCoParser/PoCoParserBaseListener.java", "license": "lgpl-2.1", "size": 18510 }
[ "org.antlr.v4.runtime.misc.NotNull" ]
import org.antlr.v4.runtime.misc.NotNull;
import org.antlr.v4.runtime.misc.*;
[ "org.antlr.v4" ]
org.antlr.v4;
1,869,343
public void addChild(WildCATTreeNode newChild) { children.add(newChild); Collections.sort(children); }
void function(WildCATTreeNode newChild) { children.add(newChild); Collections.sort(children); }
/** * Adds a child to the node. * * @param newChild The new Child to add. * * @since 1.00 */
Adds a child to the node
addChild
{ "repo_name": "SSEHUB/spassMeter", "path": "InstrumentationWildCAT/src/de/uni_hildesheim/sse/wildcat/gui/WildCATTreeNode.java", "license": "apache-2.0", "size": 4787 }
[ "java.util.Collections" ]
import java.util.Collections;
import java.util.*;
[ "java.util" ]
java.util;
759,522
public static JSplitPane waitJSplitPane(Container cont, int index) { return waitJSplitPane(cont, ComponentSearcher.getTrueChooser(Integer.toString(index) + "'th JSplitPane instance"), index); }
static JSplitPane function(Container cont, int index) { return waitJSplitPane(cont, ComponentSearcher.getTrueChooser(Integer.toString(index) + STR), index); }
/** * Waits JSplitPane in container. * * @param cont Container to search component in. * @param index Ordinal component index. * @return JSplitPane instance or null if component was not displayed. * @throws TimeoutExpiredException */
Waits JSplitPane in container
waitJSplitPane
{ "repo_name": "md-5/jdk10", "path": "test/jdk/sanity/client/lib/jemmy/src/org/netbeans/jemmy/operators/JSplitPaneOperator.java", "license": "gpl-2.0", "size": 29887 }
[ "java.awt.Container", "javax.swing.JSplitPane", "org.netbeans.jemmy.ComponentSearcher" ]
import java.awt.Container; import javax.swing.JSplitPane; import org.netbeans.jemmy.ComponentSearcher;
import java.awt.*; import javax.swing.*; import org.netbeans.jemmy.*;
[ "java.awt", "javax.swing", "org.netbeans.jemmy" ]
java.awt; javax.swing; org.netbeans.jemmy;
1,980,195
public static ExtensionList<QueueDecisionHandler> all() { return ExtensionList.lookup(QueueDecisionHandler.class); } } public static final class WaitingItem extends Item implements Comparable<WaitingItem> { private static final AtomicLong COUNTER = new AtomicLong(0); @...
static ExtensionList<QueueDecisionHandler> function() { return ExtensionList.lookup(QueueDecisionHandler.class); } } public static final class WaitingItem extends Item implements Comparable<WaitingItem> { private static final AtomicLong COUNTER = new AtomicLong(0); public Calendar timestamp; public WaitingItem(Calendar...
/** * All registered {@link QueueDecisionHandler}s */
All registered <code>QueueDecisionHandler</code>s
all
{ "repo_name": "ndeloof/jenkins", "path": "core/src/main/java/hudson/model/Queue.java", "license": "mit", "size": 108592 }
[ "hudson.model.queue.FutureImpl", "java.util.Calendar", "java.util.List", "java.util.concurrent.atomic.AtomicLong" ]
import hudson.model.queue.FutureImpl; import java.util.Calendar; import java.util.List; import java.util.concurrent.atomic.AtomicLong;
import hudson.model.queue.*; import java.util.*; import java.util.concurrent.atomic.*;
[ "hudson.model.queue", "java.util" ]
hudson.model.queue; java.util;
4,612
public void setKandidaatcodesDatabaseFP(byte[] kandidaatcodesDatabaseFP) { sKandidaatcodesDatabaseFP = KOAEncryptionUtil.fingerprintValueToString( kandidaatcodesDatabaseFP); }
void function(byte[] kandidaatcodesDatabaseFP) { sKandidaatcodesDatabaseFP = KOAEncryptionUtil.fingerprintValueToString( kandidaatcodesDatabaseFP); }
/** * Sets the kandidaatcodesDatabaseFP * @param kandidaatcodesDatabaseFP The kandidaatcodesDatabaseFP to set */
Sets the kandidaatcodesDatabaseFP
setKandidaatcodesDatabaseFP
{ "repo_name": "GaloisInc/KOA", "path": "infrastructure/source/WebVotingSystem/src/ie/ucd/srg/koa/dataobjects/KiesLijstFingerprintCompareResult.java", "license": "gpl-2.0", "size": 5255 }
[ "ie.ucd.srg.koa.security.KOAEncryptionUtil" ]
import ie.ucd.srg.koa.security.KOAEncryptionUtil;
import ie.ucd.srg.koa.security.*;
[ "ie.ucd.srg" ]
ie.ucd.srg;
1,791,917
private void generateDispatchC() { try { PrintStream stream_dispatchhc = new PrintStream(new File(dir + "Dispatch.c")); printHeader(stream_dispatchhc); stream_dispatchhc.println("#include \"Dispatch.h\""); stream_dispatchhc.println("#include \"Common.h\""); stream_dispatchhc.println("#include <strin...
void function() { try { PrintStream stream_dispatchhc = new PrintStream(new File(dir + STR)); printHeader(stream_dispatchhc); stream_dispatchhc.println(STRDispatch.h\""); stream_dispatchhc.println(STRCommon.h\STR#include <string.h>STR#include <assert.h>STR#include <stdio.h>STRocrGuid_t cncEnvInEdt(u32 paramc, u64 param...
/** * Generate the dispatch and prescribe functions: Dispatch.c */
Generate the dispatch and prescribe functions: Dispatch.c
generateDispatchC
{ "repo_name": "pelmers/cnc-ocr", "path": "CnCLPGParser/src/CnCParser/CncHcGenerator.java", "license": "bsd-3-clause", "size": 65250 }
[ "java.io.File", "java.io.IOException", "java.io.PrintStream" ]
import java.io.File; import java.io.IOException; import java.io.PrintStream;
import java.io.*;
[ "java.io" ]
java.io;
24,508
@Override public boolean equals(final Object object, final ComparisonMode mode) { if (object instanceof Transform) { final Transform that = (Transform) object; return source.equals(that.source) && source3D == that.source3D && target.equals(that.target) && target3D...
boolean function(final Object object, final ComparisonMode mode) { if (object instanceof Transform) { final Transform that = (Transform) object; return source.equals(that.source) && source3D == that.source3D && target.equals(that.target) && target3D == that.target3D; } return false; }
/** * Compares the given object with this transform for equality. * This implementation can not ignore metadata or rounding errors. */
Compares the given object with this transform for equality. This implementation can not ignore metadata or rounding errors
equals
{ "repo_name": "Geomatys/sis", "path": "storage/sis-gdal/src/main/java/org/apache/sis/storage/gdal/Transform.java", "license": "apache-2.0", "size": 9028 }
[ "org.apache.sis.util.ComparisonMode" ]
import org.apache.sis.util.ComparisonMode;
import org.apache.sis.util.*;
[ "org.apache.sis" ]
org.apache.sis;
810,395
public SafeStyleSheet toSafeStyleSheet() { Preconditions.checkState( getContentKind() == ContentKind.CSS, "toSafeStyleSheet() only valid for SanitizedContent of kind CSS, is: %s", getContentKind()); // Sanity check: Try to prevent accidental misuse when this is not really a stylesheet...
SafeStyleSheet function() { Preconditions.checkState( getContentKind() == ContentKind.CSS, STR, getContentKind()); Preconditions.checkState( getContent().isEmpty() getContent().indexOf('{') > 0, STR); return UncheckedConversions.safeStyleSheetFromStringKnownToSatisfyTypeContract(getContent()); }
/** * Converts a Soy {@link SanitizedContent} of kind CSS into a {@link SafeStyleSheet}. * * <p>To ensure correct behavior and usage, the SanitizedContent object should fulfill the * contract of SafeStyleSheet - the CSS content should represent the top-level content of a style * element within HTML. *...
Converts a Soy <code>SanitizedContent</code> of kind CSS into a <code>SafeStyleSheet</code>. To ensure correct behavior and usage, the SanitizedContent object should fulfill the contract of SafeStyleSheet - the CSS content should represent the top-level content of a style element within HTML
toSafeStyleSheet
{ "repo_name": "Medium/closure-templates", "path": "java/src/com/google/template/soy/data/SanitizedContent.java", "license": "apache-2.0", "size": 15658 }
[ "com.google.common.base.Preconditions", "com.google.common.html.types.SafeStyleSheet", "com.google.common.html.types.UncheckedConversions" ]
import com.google.common.base.Preconditions; import com.google.common.html.types.SafeStyleSheet; import com.google.common.html.types.UncheckedConversions;
import com.google.common.base.*; import com.google.common.html.types.*;
[ "com.google.common" ]
com.google.common;
291,552
@Nonnull public static TurtleCommandResult failure(@Nullable String errorMessage) { if (errorMessage == null) { return s_emptyFailure; } else { return new TurtleCommandResult(false, errorMessage, null); } } private final boolean m_success; private fin...
static TurtleCommandResult function(@Nullable String errorMessage) { if (errorMessage == null) { return s_emptyFailure; } else { return new TurtleCommandResult(false, errorMessage, null); } } private final boolean m_success; private final String m_errorMessage; private final Object[] m_results; private TurtleCommandRes...
/** * Create a failed command result with an error message. * * @param errorMessage The error message to provide. * @return A failed command result with a message. */
Create a failed command result with an error message
failure
{ "repo_name": "OpenModularTurretsTeam/OpenModularTurrets", "path": "src/api/java/dan200/computercraft/api/turtle/TurtleCommandResult.java", "license": "gpl-3.0", "size": 3309 }
[ "javax.annotation.Nullable" ]
import javax.annotation.Nullable;
import javax.annotation.*;
[ "javax.annotation" ]
javax.annotation;
2,437,778
public SlotsBuilder<T> slot(int x, int y, LanternInventoryArchetype<? extends AbstractSlot> slotArchetype) { checkNotNull(slotArchetype, "slotArchetype"); expand(x + 1, y + 1); checkState(this.slots[y][x] == null, "There is already a slot bound at %s;%s", x, y); t...
SlotsBuilder<T> function(int x, int y, LanternInventoryArchetype<? extends AbstractSlot> slotArchetype) { checkNotNull(slotArchetype, STR); expand(x + 1, y + 1); checkState(this.slots[y][x] == null, STR, x, y); this.slots[y][x] = slotArchetype; this.cachedArchetypesList = null; return this; }
/** * Adds the provided slot {@link LanternInventoryArchetype} to the x and y coordinates. * * @param x The x coordinate * @param y The y coordinate * @param slotArchetype The slot archetype * @return This builder, for chaining */
Adds the provided slot <code>LanternInventoryArchetype</code> to the x and y coordinates
slot
{ "repo_name": "LanternPowered/LanternServer", "path": "src/main/java/org/lanternpowered/server/inventory/AbstractGridInventory.java", "license": "mit", "size": 40816 }
[ "com.google.common.base.Preconditions" ]
import com.google.common.base.Preconditions;
import com.google.common.base.*;
[ "com.google.common" ]
com.google.common;
465,375
public Set<Integer> getVisibleExressionIds() { return m_visibleExpressions; }
Set<Integer> function() { return m_visibleExpressions; }
/** * Method to get all the user added expression Ids in query object * * @return List of visible expressionIds */
Method to get all the user added expression Ids in query object
getVisibleExressionIds
{ "repo_name": "NCIP/metadata-based-query", "path": "software/Query/src/main/java/edu/wustl/common/querysuite/utils/ConstraintsObjectBuilder.java", "license": "bsd-3-clause", "size": 20623 }
[ "java.util.Set" ]
import java.util.Set;
import java.util.*;
[ "java.util" ]
java.util;
1,890,809
public HttpResponse execute( final HttpUriRequest request ) throws IOException, ReadOnlyException { if ( readOnly ) { switch ( request.getMethod().toLowerCase() ) { case "copy": case "delete": case "move": case "patch": case "post": case "put": throw new ReadO...
HttpResponse function( final HttpUriRequest request ) throws IOException, ReadOnlyException { if ( readOnly ) { switch ( request.getMethod().toLowerCase() ) { case "copy": case STR: case "move": case "patch": case "post": case "put": throw new ReadOnlyException(); default: break; } } return httpClient.execute(request, ...
/** * Execute a request for a subclass. * * @param request request to be executed * @return response containing response to request * @throws IOException * @throws ReadOnlyException **/
Execute a request for a subclass
execute
{ "repo_name": "fcrepo4-labs/fcrepo4-client", "path": "fcrepo-client-impl/src/main/java/org/fcrepo/client/utils/HttpHelper.java", "license": "apache-2.0", "size": 17056 }
[ "java.io.IOException", "org.apache.http.HttpResponse", "org.apache.http.client.methods.HttpUriRequest", "org.fcrepo.client.ReadOnlyException" ]
import java.io.IOException; import org.apache.http.HttpResponse; import org.apache.http.client.methods.HttpUriRequest; import org.fcrepo.client.ReadOnlyException;
import java.io.*; import org.apache.http.*; import org.apache.http.client.methods.*; import org.fcrepo.client.*;
[ "java.io", "org.apache.http", "org.fcrepo.client" ]
java.io; org.apache.http; org.fcrepo.client;
1,253,097
void setUpgradeEntity(UpgradeEntity upgradeEntity) throws AmbariException;
void setUpgradeEntity(UpgradeEntity upgradeEntity) throws AmbariException;
/** * Sets or clears the associated upgrade with the cluster. * * @param upgradeEntity * the upgrade entity to set for cluster, or {@code null} for none. * @throws AmbariException */
Sets or clears the associated upgrade with the cluster
setUpgradeEntity
{ "repo_name": "sekikn/ambari", "path": "ambari-server/src/main/java/org/apache/ambari/server/state/Cluster.java", "license": "apache-2.0", "size": 24252 }
[ "org.apache.ambari.server.AmbariException", "org.apache.ambari.server.orm.entities.UpgradeEntity" ]
import org.apache.ambari.server.AmbariException; import org.apache.ambari.server.orm.entities.UpgradeEntity;
import org.apache.ambari.server.*; import org.apache.ambari.server.orm.entities.*;
[ "org.apache.ambari" ]
org.apache.ambari;
860,457
void paintExpandControl(Graphics g, Rectangle clipBounds, Insets insets, Rectangle bounds, TreePath path, int row, boolean isExpanded, boolean hasBeenExpanded, boolean isLeaf);
void paintExpandControl(Graphics g, Rectangle clipBounds, Insets insets, Rectangle bounds, TreePath path, int row, boolean isExpanded, boolean hasBeenExpanded, boolean isLeaf);
/** * Draws expand control (control which being clicked expand/collapse row). * * @param g Graphics to paint on * @param clipBounds Rectangle representing current Graphics's clip * @param insets Insets of the tree (tree's border) * @param path TreePath for which ver...
Draws expand control (control which being clicked expand/collapse row)
paintExpandControl
{ "repo_name": "freeVM/freeVM", "path": "enhanced/archive/classlib/java6/modules/swing/src/main/java/common/org/apache/harmony/x/swing/TreeCommons.java", "license": "apache-2.0", "size": 10315 }
[ "java.awt.Graphics", "java.awt.Insets", "java.awt.Rectangle", "javax.swing.tree.TreePath" ]
import java.awt.Graphics; import java.awt.Insets; import java.awt.Rectangle; import javax.swing.tree.TreePath;
import java.awt.*; import javax.swing.tree.*;
[ "java.awt", "javax.swing" ]
java.awt; javax.swing;
2,852,173
@ServiceMethod(returns = ReturnType.SINGLE) ResourceGuardProxyBaseResourceInner put(String vaultName, String resourceGroupName, String resourceGuardProxyName);
@ServiceMethod(returns = ReturnType.SINGLE) ResourceGuardProxyBaseResourceInner put(String vaultName, String resourceGroupName, String resourceGuardProxyName);
/** * Add or Update ResourceGuardProxy under vault Secures vault critical operations. * * @param vaultName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is present. * @param resourceGuardProxyName The resourc...
Add or Update ResourceGuardProxy under vault Secures vault critical operations
put
{ "repo_name": "Azure/azure-sdk-for-java", "path": "sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/main/java/com/azure/resourcemanager/recoveryservicesbackup/fluent/ResourceGuardProxyOperationsClient.java", "license": "mit", "size": 8286 }
[ "com.azure.core.annotation.ReturnType", "com.azure.core.annotation.ServiceMethod", "com.azure.resourcemanager.recoveryservicesbackup.fluent.models.ResourceGuardProxyBaseResourceInner" ]
import com.azure.core.annotation.ReturnType; import com.azure.core.annotation.ServiceMethod; import com.azure.resourcemanager.recoveryservicesbackup.fluent.models.ResourceGuardProxyBaseResourceInner;
import com.azure.core.annotation.*; import com.azure.resourcemanager.recoveryservicesbackup.fluent.models.*;
[ "com.azure.core", "com.azure.resourcemanager" ]
com.azure.core; com.azure.resourcemanager;
2,487,018
public T getClone() { try (Input input = new Input(bin)) { return kryo.readObject(input, clazz); } }
T function() { try (Input input = new Input(bin)) { return kryo.readObject(input, clazz); } }
/** * Clone from the binary data of the source object * @return T */
Clone from the binary data of the source object
getClone
{ "repo_name": "ananthc/apex-malhar", "path": "library/src/main/java/org/apache/apex/malhar/lib/util/KryoCloneUtils.java", "license": "apache-2.0", "size": 4617 }
[ "com.esotericsoftware.kryo.io.Input" ]
import com.esotericsoftware.kryo.io.Input;
import com.esotericsoftware.kryo.io.*;
[ "com.esotericsoftware.kryo" ]
com.esotericsoftware.kryo;
2,796,814
public InstitutionalProposal getInstitutionalProposalForValidation() { return institutionalProposal; }
InstitutionalProposal function() { return institutionalProposal; }
/** * This method returns the equipment item for validation * @return */
This method returns the equipment item for validation
getInstitutionalProposalForValidation
{ "repo_name": "blackcathacker/kc.preclean", "path": "coeus-code/src/main/java/org/kuali/kra/institutionalproposal/rules/InstitutionalProposalFinancialRuleEvent.java", "license": "apache-2.0", "size": 2584 }
[ "org.kuali.kra.institutionalproposal.home.InstitutionalProposal" ]
import org.kuali.kra.institutionalproposal.home.InstitutionalProposal;
import org.kuali.kra.institutionalproposal.home.*;
[ "org.kuali.kra" ]
org.kuali.kra;
2,481,434
void setScaleType(ImageView.ScaleType scaleType);
void setScaleType(ImageView.ScaleType scaleType);
/** * Controls how the image should be resized or moved to match the size of the ImageView. Any * scaling or panning will happen within the confines of this {@link * android.widget.ImageView.ScaleType}. * * @param scaleType - The desired scaling mode. */
Controls how the image should be resized or moved to match the size of the ImageView. Any scaling or panning will happen within the confines of this <code>android.widget.ImageView.ScaleType</code>
setScaleType
{ "repo_name": "maitian22/PhotoView", "path": "library/src/main/java/uk/co/senab/photoview/IPhotoView.java", "license": "apache-2.0", "size": 12041 }
[ "android.widget.ImageView" ]
import android.widget.ImageView;
import android.widget.*;
[ "android.widget" ]
android.widget;
1,961,177
public static GridSslContextFactory sslContextFactory() { GridSslBasicContextFactory factory = new GridSslBasicContextFactory(); factory.setKeyStoreFilePath( U.resolveIgnitePath(GridTestProperties.getProperty("ssl.keystore.path")).getAbsolutePath()); factory.setKeyStorePassword(...
static GridSslContextFactory function() { GridSslBasicContextFactory factory = new GridSslBasicContextFactory(); factory.setKeyStoreFilePath( U.resolveIgnitePath(GridTestProperties.getProperty(STR)).getAbsolutePath()); factory.setKeyStorePassword(keyStorePassword().toCharArray()); factory.setTrustManagers(GridSslBasicC...
/** * Creates test-purposed SSL context factory from test key store with disabled trust manager. * * @return SSL context factory used in test. */
Creates test-purposed SSL context factory from test key store with disabled trust manager
sslContextFactory
{ "repo_name": "amirakhmedov/ignite", "path": "modules/core/src/test/java/org/apache/ignite/testframework/GridTestUtils.java", "license": "apache-2.0", "size": 65476 }
[ "org.apache.ignite.internal.client.ssl.GridSslBasicContextFactory", "org.apache.ignite.internal.client.ssl.GridSslContextFactory", "org.apache.ignite.internal.util.typedef.internal.U", "org.apache.ignite.testframework.config.GridTestProperties" ]
import org.apache.ignite.internal.client.ssl.GridSslBasicContextFactory; import org.apache.ignite.internal.client.ssl.GridSslContextFactory; import org.apache.ignite.internal.util.typedef.internal.U; import org.apache.ignite.testframework.config.GridTestProperties;
import org.apache.ignite.internal.client.ssl.*; import org.apache.ignite.internal.util.typedef.internal.*; import org.apache.ignite.testframework.config.*;
[ "org.apache.ignite" ]
org.apache.ignite;
1,168,334
public List<ItemMini> getItemsByFieldAndTitle(int fieldId, String text, List<Integer> notItemIds, Integer limit) { WebResource resource = getResourceFactory().getApiResource( "/item/field/" + fieldId + "/find"); if (limit != null) { resource = resource.queryParam("limit", limit.toString()); ...
List<ItemMini> function(int fieldId, String text, List<Integer> notItemIds, Integer limit) { WebResource resource = getResourceFactory().getApiResource( STR + fieldId + "/find"); if (limit != null) { resource = resource.queryParam("limit", limit.toString()); } if (notItemIds != null && notItemIds.size() > 0) { resource...
/** * Used to find possible items for a given application field. It searches * the relevant items for the title given. * * @param fieldId * The id of app reference field to search for * @param text * The text to search for in the items title * @param notItemIds * If s...
Used to find possible items for a given application field. It searches the relevant items for the title given
getItemsByFieldAndTitle
{ "repo_name": "podio/podio-java", "path": "src/main/java/com/podio/item/ItemAPI.java", "license": "mit", "size": 10735 }
[ "com.podio.common.ToStringUtil", "com.sun.jersey.api.client.GenericType", "com.sun.jersey.api.client.WebResource", "java.util.List" ]
import com.podio.common.ToStringUtil; import com.sun.jersey.api.client.GenericType; import com.sun.jersey.api.client.WebResource; import java.util.List;
import com.podio.common.*; import com.sun.jersey.api.client.*; import java.util.*;
[ "com.podio.common", "com.sun.jersey", "java.util" ]
com.podio.common; com.sun.jersey; java.util;
1,887,140
@Pure @Inline(value = "($1) * 60000") public static long minutes(long mins) { return mins * MILLIS_IN_MINUTE; }
@Inline(value = STR) static long function(long mins) { return mins * MILLIS_IN_MINUTE; }
/** Convert minutes to milliseconds. * * @param mins - number of minutes to convert. * @return the number of milliseconds in <code>mins</code> */
Convert minutes to milliseconds
minutes
{ "repo_name": "jgfoster/sarl", "path": "main/coreplugins/io.sarl.lang.core/src/io/sarl/lang/scoping/batch/SARLTimeExtensions.java", "license": "apache-2.0", "size": 15335 }
[ "org.eclipse.xtext.xbase.lib.Inline" ]
import org.eclipse.xtext.xbase.lib.Inline;
import org.eclipse.xtext.xbase.lib.*;
[ "org.eclipse.xtext" ]
org.eclipse.xtext;
1,739,240
Response<SummarizeResults> summarizeForResourceWithResponse( String resourceId, Integer top, OffsetDateTime from, OffsetDateTime to, String filter, Context context);
Response<SummarizeResults> summarizeForResourceWithResponse( String resourceId, Integer top, OffsetDateTime from, OffsetDateTime to, String filter, Context context);
/** * Summarizes policy states for the resource. * * @param resourceId Resource ID. * @param top Maximum number of records to return. * @param from ISO 8601 formatted timestamp specifying the start time of the interval to query. When not specified, * the service uses ($to - 1-day). ...
Summarizes policy states for the resource
summarizeForResourceWithResponse
{ "repo_name": "Azure/azure-sdk-for-java", "path": "sdk/policyinsights/azure-resourcemanager-policyinsights/src/main/java/com/azure/resourcemanager/policyinsights/models/PolicyStates.java", "license": "mit", "size": 43705 }
[ "com.azure.core.http.rest.Response", "com.azure.core.util.Context", "java.time.OffsetDateTime" ]
import com.azure.core.http.rest.Response; import com.azure.core.util.Context; import java.time.OffsetDateTime;
import com.azure.core.http.rest.*; import com.azure.core.util.*; import java.time.*;
[ "com.azure.core", "java.time" ]
com.azure.core; java.time;
2,096,575
public boolean onItemUse(ItemStack par1ItemStack, EntityPlayer par2EntityPlayer, World par3World, int par4, int par5, int par6, int par7, float par8, float par9, float par10) { if (this.field_150948_b) { return super.onItemUse(par1ItemStack, par2En...
boolean function(ItemStack par1ItemStack, EntityPlayer par2EntityPlayer, World par3World, int par4, int par5, int par6, int par7, float par8, float par9, float par10) { if (this.field_150948_b) { return super.onItemUse(par1ItemStack, par2EntityPlayer, par3World, par4, par5, par6, par7, par8, par9, par10); } else if (pa...
/** * Callback for item usage. If the item does something special on right clicking, he will have one of those. Return * True if something happen and false if it don't. This is for ITEMS, not BLOCKS */
Callback for item usage. If the item does something special on right clicking, he will have one of those. Return True if something happen and false if it don't. This is for ITEMS, not BLOCKS
onItemUse
{ "repo_name": "KeeperofMee/Color-Blocks", "path": "colorblocks/items/CbYellowishGreenSlabItem.java", "license": "gpl-3.0", "size": 8517 }
[ "net.minecraft.block.Block", "net.minecraft.entity.player.EntityPlayer", "net.minecraft.item.ItemStack", "net.minecraft.world.World" ]
import net.minecraft.block.Block; import net.minecraft.entity.player.EntityPlayer; import net.minecraft.item.ItemStack; import net.minecraft.world.World;
import net.minecraft.block.*; import net.minecraft.entity.player.*; import net.minecraft.item.*; import net.minecraft.world.*;
[ "net.minecraft.block", "net.minecraft.entity", "net.minecraft.item", "net.minecraft.world" ]
net.minecraft.block; net.minecraft.entity; net.minecraft.item; net.minecraft.world;
1,440,692
public void run() { try { Server server = new Server(TiltWebApp.wsPort); Connector[] connectors = server.getConnectors(); connectors[0].setHost(TiltWebApp.host); server.setHandler(new JettyServer()); server.start(); server.j...
void function() { try { Server server = new Server(TiltWebApp.wsPort); Connector[] connectors = server.getConnectors(); connectors[0].setHost(TiltWebApp.host); server.setHandler(new JettyServer()); server.start(); server.join(); } catch ( Exception e ) { e.printStackTrace( System.out ); } }
/** * Run the server */
Run the server
run
{ "repo_name": "AustESE-Infrastructure/TILT2", "path": "src/tilt/JettyServerThread.java", "license": "gpl-2.0", "size": 1412 }
[ "org.eclipse.jetty.server.Connector", "org.eclipse.jetty.server.Server" ]
import org.eclipse.jetty.server.Connector; import org.eclipse.jetty.server.Server;
import org.eclipse.jetty.server.*;
[ "org.eclipse.jetty" ]
org.eclipse.jetty;
2,886,080
private ValueReference createValueReference (final AttributeExpression expression) { return new ValueReference (new QName ( featureType.getName ().getNamespace (), expression.getAttributeName () )); }
ValueReference function (final AttributeExpression expression) { return new ValueReference (new QName ( featureType.getName ().getNamespace (), expression.getAttributeName () )); }
/** * Creates a value reference based on the given AttributeExpression. * * @param expression * @return A ValueReference for the requested attributes. */
Creates a value reference based on the given AttributeExpression
createValueReference
{ "repo_name": "CDS-INSPIRE/InSpider", "path": "etl-proces/src/main/java/nl/ipo/cds/etl/filtering/FilterFactory.java", "license": "gpl-3.0", "size": 10980 }
[ "javax.xml.namespace.QName", "nl.ipo.cds.domain.AttributeExpression", "org.deegree.filter.expression.ValueReference" ]
import javax.xml.namespace.QName; import nl.ipo.cds.domain.AttributeExpression; import org.deegree.filter.expression.ValueReference;
import javax.xml.namespace.*; import nl.ipo.cds.domain.*; import org.deegree.filter.expression.*;
[ "javax.xml", "nl.ipo.cds", "org.deegree.filter" ]
javax.xml; nl.ipo.cds; org.deegree.filter;
84,307
private void clearBit(int index){ if(index < 0 || index >= vectorSize) { throw new ArrayIndexOutOfBoundsException(index); } List<Key> kl = keyVector[index]; List<Key> fpl = fpVector[index]; // update key list int listSize = kl.size(); for(int i = 0; i < listSize && !kl.isEmpty(); i...
void function(int index){ if(index < 0 index >= vectorSize) { throw new ArrayIndexOutOfBoundsException(index); } List<Key> kl = keyVector[index]; List<Key> fpl = fpVector[index]; int listSize = kl.size(); for(int i = 0; i < listSize && !kl.isEmpty(); i++) { removeKey(kl.get(0), keyVector); } kl.clear(); keyVector[index...
/** * Clears a specified bit in the bit vector and keeps up-to-date the KeyList vectors. * @param index The position of the bit to clear. */
Clears a specified bit in the bit vector and keeps up-to-date the KeyList vectors
clearBit
{ "repo_name": "ALEXGUOQ/hbase", "path": "src/java/org/onelab/filter/RetouchedBloomFilter.java", "license": "apache-2.0", "size": 13056 }
[ "java.util.List" ]
import java.util.List;
import java.util.*;
[ "java.util" ]
java.util;
1,567,226
@Test public void testGetValue02() { StaticFieldELResolver resolver = new StaticFieldELResolver(); ELContext context = new StandardELContext( ELManager.getExpressionFactory()); Object result = resolver.getValue(context, new ELClass( TesterClass.class), PR...
void function() { StaticFieldELResolver resolver = new StaticFieldELResolver(); ELContext context = new StandardELContext( ELManager.getExpressionFactory()); Object result = resolver.getValue(context, new ELClass( TesterClass.class), PROPERTY01_NAME); Assert.assertEquals(PROPERTY01_NAME, result); Assert.assertTrue(cont...
/** * Tests that a valid property is resolved. */
Tests that a valid property is resolved
testGetValue02
{ "repo_name": "apache/tomcat", "path": "test/jakarta/el/TestStaticFieldELResolver.java", "license": "apache-2.0", "size": 15466 }
[ "org.junit.Assert" ]
import org.junit.Assert;
import org.junit.*;
[ "org.junit" ]
org.junit;
2,279,098
@Override public boolean syncDisabled(WebDriver driver) { boolean found = false; double loopTimeout = 0; loopTimeout = TestEnvironment.getDefaultTestTimeout() * 10; TestReporter.interfaceLog("<i>Syncing to element [<b>@FindBy: " + getElementLocatorInfo() + "</b> ] to be <b>DISABLED</b> with...
boolean function(WebDriver driver) { boolean found = false; double loopTimeout = 0; loopTimeout = TestEnvironment.getDefaultTestTimeout() * 10; TestReporter.interfaceLog(STR + getElementLocatorInfo() + STR + TestEnvironment.getDefaultTestTimeout() + STR); for (double seconds = 0; seconds < loopTimeout; seconds += 1) { ...
/** * * Used in conjunction with WebObjectEnabled to determine if the desired * element is disabled on the screen Will loop for the time out listed in * org.orasi.chameleon.CONSTANT.TIMEOUT If object is not disabled within the * time, throw an error * * @author Justin */
Used in conjunction with WebObjectEnabled to determine if the desired element is disabled on the screen Will loop for the time out listed in org.orasi.chameleon.CONSTANT.TIMEOUT If object is not disabled within the time, throw an error
syncDisabled
{ "repo_name": "waitsavery/Selenium-Toyota-POC", "path": "src/main/java/com/orasi/core/interfaces/impl/ElementImpl.java", "license": "apache-2.0", "size": 37980 }
[ "com.orasi.utils.TestEnvironment", "com.orasi.utils.TestReporter", "org.openqa.selenium.WebDriver" ]
import com.orasi.utils.TestEnvironment; import com.orasi.utils.TestReporter; import org.openqa.selenium.WebDriver;
import com.orasi.utils.*; import org.openqa.selenium.*;
[ "com.orasi.utils", "org.openqa.selenium" ]
com.orasi.utils; org.openqa.selenium;
423,925
public RequestMatcher string(Matcher<? super String> matcher) { return (XpathRequestMatcher) request -> this.xpathHelper.assertString(request.getBodyAsBytes(), DEFAULT_ENCODING, matcher); }
RequestMatcher function(Matcher<? super String> matcher) { return (XpathRequestMatcher) request -> this.xpathHelper.assertString(request.getBodyAsBytes(), DEFAULT_ENCODING, matcher); }
/** * Apply the XPath and assert the String content found with the given matcher. */
Apply the XPath and assert the String content found with the given matcher
string
{ "repo_name": "spring-projects/spring-framework", "path": "spring-test/src/main/java/org/springframework/test/web/client/match/XpathRequestMatchers.java", "license": "apache-2.0", "size": 5521 }
[ "org.hamcrest.Matcher", "org.springframework.test.web.client.RequestMatcher" ]
import org.hamcrest.Matcher; import org.springframework.test.web.client.RequestMatcher;
import org.hamcrest.*; import org.springframework.test.web.client.*;
[ "org.hamcrest", "org.springframework.test" ]
org.hamcrest; org.springframework.test;
872,956
//------------------------- AUTOGENERATED START ------------------------- ///CLOVER:OFF public static SpotRateSelector.Meta meta() { return SpotRateSelector.Meta.INSTANCE; } static { JodaBeanUtils.registerMetaBean(SpotRateSelector.Meta.INSTANCE); }
static SpotRateSelector.Meta function() { return SpotRateSelector.Meta.INSTANCE; } static { JodaBeanUtils.registerMetaBean(SpotRateSelector.Meta.INSTANCE); }
/** * The meta-bean for {@code SpotRateSelector}. * @return the meta-bean, not null */
The meta-bean for SpotRateSelector
meta
{ "repo_name": "DevStreet/FinanceAnalytics", "path": "projects/OG-Integration/src/main/java/com/opengamma/integration/marketdata/manipulator/dsl/SpotRateSelector.java", "license": "apache-2.0", "size": 14525 }
[ "org.joda.beans.JodaBeanUtils" ]
import org.joda.beans.JodaBeanUtils;
import org.joda.beans.*;
[ "org.joda.beans" ]
org.joda.beans;
78,213
public void setNewContours(ArrayList<Vertex[]> contours){ this.contours = contours; this.setMatricesDirty(true); createContourAndStencilQuadBuffers(); }
void function(ArrayList<Vertex[]> contours){ this.contours = contours; this.setMatricesDirty(true); createContourAndStencilQuadBuffers(); }
/** * Sets new outlines for this stencil polygon. * This is a separate method, because when you want * to ouline polygons with holes, you have to have separate, * not connected outline arrays. * * @param contours the contours */
Sets new outlines for this stencil polygon. This is a separate method, because when you want to ouline polygons with holes, you have to have separate, not connected outline arrays
setNewContours
{ "repo_name": "rogiermars/mt4j-core", "path": "src/org/mt4j/components/visibleComponents/shapes/MTStencilPolygon.java", "license": "gpl-2.0", "size": 27519 }
[ "java.util.ArrayList", "org.mt4j.util.math.Vertex" ]
import java.util.ArrayList; import org.mt4j.util.math.Vertex;
import java.util.*; import org.mt4j.util.math.*;
[ "java.util", "org.mt4j.util" ]
java.util; org.mt4j.util;
2,527,288
public void markBegin( final long snapshotTypeId, final long logPosition, final long leadershipTermId, final int snapshotIndex, final TimeUnit timeUnit, final int appVersion) { markSnapshot( snapshotTypeId, logPosition, leadershipTermId, snapsh...
void function( final long snapshotTypeId, final long logPosition, final long leadershipTermId, final int snapshotIndex, final TimeUnit timeUnit, final int appVersion) { markSnapshot( snapshotTypeId, logPosition, leadershipTermId, snapshotIndex, SnapshotMark.BEGIN, timeUnit, appVersion); }
/** * Mark the beginning of the encoded snapshot. * * @param snapshotTypeId type to identify snapshot within a cluster. * @param logPosition at which the snapshot was taken. * @param leadershipTermId at which the snapshot was taken. * @param snapshotIndex so the snapshot can be s...
Mark the beginning of the encoded snapshot
markBegin
{ "repo_name": "real-logic/Aeron", "path": "aeron-cluster/src/main/java/io/aeron/cluster/service/SnapshotTaker.java", "license": "apache-2.0", "size": 6816 }
[ "io.aeron.cluster.codecs.SnapshotMark", "java.util.concurrent.TimeUnit" ]
import io.aeron.cluster.codecs.SnapshotMark; import java.util.concurrent.TimeUnit;
import io.aeron.cluster.codecs.*; import java.util.concurrent.*;
[ "io.aeron.cluster", "java.util" ]
io.aeron.cluster; java.util;
1,305,286
@Test public void testPermanentJobReferences() throws IOException, InterruptedException { JobID jobId = new JobID(); Configuration config = new Configuration(); config.setString(BlobServerOptions.STORAGE_DIRECTORY, temporaryFolder.newFolder().getAbsolutePath()); config.setLong(BlobServerOptions.CLEANUP...
void function() throws IOException, InterruptedException { JobID jobId = new JobID(); Configuration config = new Configuration(); config.setString(BlobServerOptions.STORAGE_DIRECTORY, temporaryFolder.newFolder().getAbsolutePath()); config.setLong(BlobServerOptions.CLEANUP_INTERVAL, 3_600_000L); InetSocketAddress server...
/** * Tests that {@link PermanentBlobCache} sets the expected reference counts and cleanup timeouts * when registering, releasing, and re-registering jobs. */
Tests that <code>PermanentBlobCache</code> sets the expected reference counts and cleanup timeouts when registering, releasing, and re-registering jobs
testPermanentJobReferences
{ "repo_name": "zimmermatt/flink", "path": "flink-runtime/src/test/java/org/apache/flink/runtime/blob/BlobCacheCleanupTest.java", "license": "apache-2.0", "size": 15456 }
[ "java.io.IOException", "java.net.InetSocketAddress", "org.apache.flink.api.common.JobID", "org.apache.flink.configuration.BlobServerOptions", "org.apache.flink.configuration.Configuration", "org.apache.flink.runtime.blob.BlobServerGetTest", "org.hamcrest.Matchers", "org.junit.Assert" ]
import java.io.IOException; import java.net.InetSocketAddress; import org.apache.flink.api.common.JobID; import org.apache.flink.configuration.BlobServerOptions; import org.apache.flink.configuration.Configuration; import org.apache.flink.runtime.blob.BlobServerGetTest; import org.hamcrest.Matchers; import org.junit.As...
import java.io.*; import java.net.*; import org.apache.flink.api.common.*; import org.apache.flink.configuration.*; import org.apache.flink.runtime.blob.*; import org.hamcrest.*; import org.junit.*;
[ "java.io", "java.net", "org.apache.flink", "org.hamcrest", "org.junit" ]
java.io; java.net; org.apache.flink; org.hamcrest; org.junit;
2,259,626
private Data buildDataTemplate() { Data data = new Data(name); if (persistence != null) { data.getMetaInfo().setFreshnessPeriod(persistence.persistFor); } return data; } /** * {@inheritDoc}
Data function() { Data data = new Data(name); if (persistence != null) { data.getMetaInfo().setFreshnessPeriod(persistence.persistFor); } return data; } /** * {@inheritDoc}
/** * Build a {@link Data} template from the {@link Message}; this is used as the template for all segmented packets * * @return a data template */
Build a <code>Data</code> template from the <code>Message</code>; this is used as the template for all segmented packets
buildDataTemplate
{ "repo_name": "icecp/icecp", "path": "icecp-node/src/main/java/com/intel/icecp/node/channels/ndn/NdnChronoSyncChannel.java", "license": "apache-2.0", "size": 12452 }
[ "net.named_data.jndn.Data" ]
import net.named_data.jndn.Data;
import net.named_data.jndn.*;
[ "net.named_data.jndn" ]
net.named_data.jndn;
2,325,446
@Issue("JENKINS-16719") @Test public void testCompoundFieldDependentComboBox() throws Exception { Descriptor d1 = new CompoundFieldComboBoxBuilder.DescriptorImpl(); Publisher.all().add(d1); Descriptor d2 = new CompoundField.DescriptorImpl(); Publisher.all().add(d2); F...
@Issue(STR) void function() throws Exception { Descriptor d1 = new CompoundFieldComboBoxBuilder.DescriptorImpl(); Publisher.all().add(d1); Descriptor d2 = new CompoundField.DescriptorImpl(); Publisher.all().add(d2); FreeStyleProject p = j.createFreeStyleProject(); p.getPublishersList().add(new CompoundFieldComboBoxBuil...
/** * Confirms that relative paths work when prefilling a combobox text field */
Confirms that relative paths work when prefilling a combobox text field
testCompoundFieldDependentComboBox
{ "repo_name": "v1v/jenkins", "path": "test/src/test/java/lib/form/ComboBoxTest.java", "license": "mit", "size": 6401 }
[ "hudson.model.Descriptor", "hudson.model.FreeStyleProject", "hudson.model.Job", "hudson.tasks.Publisher", "org.junit.Assert", "org.jvnet.hudson.test.Issue", "org.jvnet.hudson.test.TestExtension" ]
import hudson.model.Descriptor; import hudson.model.FreeStyleProject; import hudson.model.Job; import hudson.tasks.Publisher; import org.junit.Assert; import org.jvnet.hudson.test.Issue; import org.jvnet.hudson.test.TestExtension;
import hudson.model.*; import hudson.tasks.*; import org.junit.*; import org.jvnet.hudson.test.*;
[ "hudson.model", "hudson.tasks", "org.junit", "org.jvnet.hudson" ]
hudson.model; hudson.tasks; org.junit; org.jvnet.hudson;
2,488,484
public float[] getQuadPoints() { COSArray quadPoints = (COSArray) getCOSObject().getDictionaryObject(COSName.QUADPOINTS); if (quadPoints != null) { return quadPoints.toFloatArray(); } else { return null; // Should never happen as this is a ...
float[] function() { COSArray quadPoints = (COSArray) getCOSObject().getDictionaryObject(COSName.QUADPOINTS); if (quadPoints != null) { return quadPoints.toFloatArray(); } else { return null; } }
/** * This will retrieve the set of quadpoints which encompass the areas of this annotation. * * @return An array of floats representing the quad points. */
This will retrieve the set of quadpoints which encompass the areas of this annotation
getQuadPoints
{ "repo_name": "joansmith/pdfbox", "path": "pdfbox/src/main/java/org/apache/pdfbox/pdmodel/interactive/annotation/PDAnnotationTextMarkup.java", "license": "apache-2.0", "size": 4029 }
[ "org.apache.pdfbox.cos.COSArray", "org.apache.pdfbox.cos.COSName" ]
import org.apache.pdfbox.cos.COSArray; import org.apache.pdfbox.cos.COSName;
import org.apache.pdfbox.cos.*;
[ "org.apache.pdfbox" ]
org.apache.pdfbox;
513,486
@Check public void checkMFlatComponentInstance_DuplicatedAttributeAssignment(MFlatComponentInstance inst) { Set<MParameter> attributes = new HashSet<MParameter>(); int i = 0; for (MParameterValueAssignment va : inst.getAttributeValueAssignments()) { if (va.getParameter() == null || va.getParamet...
void function(MFlatComponentInstance inst) { Set<MParameter> attributes = new HashSet<MParameter>(); int i = 0; for (MParameterValueAssignment va : inst.getAttributeValueAssignments()) { if (va.getParameter() == null va.getParameter().eIsProxy() == true) { i++; continue; } if (attributes.add(va.getParameter()) == false...
/** * Checks that there are no duplicated assignments on the same attribute * of a component instance. * Implements Restriction TBC. * @param inst The connection to check. */
Checks that there are no duplicated assignments on the same attribute of a component instance. Implements Restriction TBC
checkMFlatComponentInstance_DuplicatedAttributeAssignment
{ "repo_name": "parraman/micobs", "path": "mclev/es.uah.aut.srg.micobs.mclev.editor.flatmcad/src/es/uah/aut/srg/micobs/mclev/lang/validation/FLATMCADJavaValidator.java", "license": "epl-1.0", "size": 11175 }
[ "es.uah.aut.srg.micobs.common.MParameter", "es.uah.aut.srg.micobs.common.MParameterValueAssignment", "es.uah.aut.srg.micobs.mclev.mclevflatmcad.MFlatComponentInstance", "es.uah.aut.srg.micobs.mclev.util.impl.MCLEVStringHelper", "java.util.HashSet", "java.util.Set" ]
import es.uah.aut.srg.micobs.common.MParameter; import es.uah.aut.srg.micobs.common.MParameterValueAssignment; import es.uah.aut.srg.micobs.mclev.mclevflatmcad.MFlatComponentInstance; import es.uah.aut.srg.micobs.mclev.util.impl.MCLEVStringHelper; import java.util.HashSet; import java.util.Set;
import es.uah.aut.srg.micobs.common.*; import es.uah.aut.srg.micobs.mclev.mclevflatmcad.*; import es.uah.aut.srg.micobs.mclev.util.impl.*; import java.util.*;
[ "es.uah.aut", "java.util" ]
es.uah.aut; java.util;
833,270
@Override public void clearCache() { if (_HIBERNATE_CACHE_USE_SECOND_LEVEL_CACHE) { CacheRegistryUtil.clear(LmsPrefsImpl.class.getName()); } EntityCacheUtil.clearCache(LmsPrefsImpl.class.getName()); FinderCacheUtil.clearCache(FINDER_CLASS_NAME_ENTITY); FinderCacheUtil.clearCache(FINDER_CLASS_NAME_LIS...
void function() { if (_HIBERNATE_CACHE_USE_SECOND_LEVEL_CACHE) { CacheRegistryUtil.clear(LmsPrefsImpl.class.getName()); } EntityCacheUtil.clearCache(LmsPrefsImpl.class.getName()); FinderCacheUtil.clearCache(FINDER_CLASS_NAME_ENTITY); FinderCacheUtil.clearCache(FINDER_CLASS_NAME_LIST_WITH_PAGINATION); FinderCacheUtil.cl...
/** * Clears the cache for all lms prefses. * * <p> * The {@link com.liferay.portal.kernel.dao.orm.EntityCache} and {@link com.liferay.portal.kernel.dao.orm.FinderCache} are both cleared by this method. * </p> */
Clears the cache for all lms prefses. The <code>com.liferay.portal.kernel.dao.orm.EntityCache</code> and <code>com.liferay.portal.kernel.dao.orm.FinderCache</code> are both cleared by this method.
clearCache
{ "repo_name": "TelefonicaED/liferaylms-portlet", "path": "docroot/WEB-INF/src/com/liferay/lms/service/persistence/LmsPrefsPersistenceImpl.java", "license": "agpl-3.0", "size": 23281 }
[ "com.liferay.lms.model.impl.LmsPrefsImpl", "com.liferay.portal.kernel.cache.CacheRegistryUtil", "com.liferay.portal.kernel.dao.orm.EntityCacheUtil", "com.liferay.portal.kernel.dao.orm.FinderCacheUtil" ]
import com.liferay.lms.model.impl.LmsPrefsImpl; import com.liferay.portal.kernel.cache.CacheRegistryUtil; import com.liferay.portal.kernel.dao.orm.EntityCacheUtil; import com.liferay.portal.kernel.dao.orm.FinderCacheUtil;
import com.liferay.lms.model.impl.*; import com.liferay.portal.kernel.cache.*; import com.liferay.portal.kernel.dao.orm.*;
[ "com.liferay.lms", "com.liferay.portal" ]
com.liferay.lms; com.liferay.portal;
2,287,125
public FactPattern getLHSParentFactPatternForBinding(final String var) { if ( this.lhs == null ) { return null; } for ( int i = 0; i < this.lhs.length; i++ ) { IPattern pat = this.lhs[i]; if ( pat instanceof FromCompositeFactPattern ) { pat...
FactPattern function(final String var) { if ( this.lhs == null ) { return null; } for ( int i = 0; i < this.lhs.length; i++ ) { IPattern pat = this.lhs[i]; if ( pat instanceof FromCompositeFactPattern ) { pat = ((FromCompositeFactPattern) pat).getFactPattern(); } if ( pat instanceof FactPattern ) { final FactPattern p ...
/** * This will return the FactPattern that a variable is bound to. If the * variable is bound to a FieldConstraint the parent FactPattern will be * returned. * * @param var * The variable binding * @return null or the FactPattern found. */
This will return the FactPattern that a variable is bound to. If the variable is bound to a FieldConstraint the parent FactPattern will be returned
getLHSParentFactPatternForBinding
{ "repo_name": "psiroky/guvnor", "path": "droolsjbpm-ide-common/src/main/java/org/drools/ide/common/client/modeldriven/brl/RuleModel.java", "license": "apache-2.0", "size": 25672 }
[ "java.util.List" ]
import java.util.List;
import java.util.*;
[ "java.util" ]
java.util;
2,352,953
public GeoServerConnection getConnection() { return connection; }
GeoServerConnection function() { return connection; }
/** * Gets the connection. * * @return the connection */
Gets the connection
getConnection
{ "repo_name": "robward-scisys/sldeditor", "path": "modules/application/src/main/java/com/sldeditor/datasource/extension/filesystem/node/geoserver/GeoServerLayerHeadingNode.java", "license": "gpl-3.0", "size": 3281 }
[ "com.sldeditor.common.data.GeoServerConnection" ]
import com.sldeditor.common.data.GeoServerConnection;
import com.sldeditor.common.data.*;
[ "com.sldeditor.common" ]
com.sldeditor.common;
1,691,551
@Override public double java2DToValue(double java2DValue, Rectangle2D area, RectangleEdge edge) { Range range = getRange(); double axisMin = range.getLowerBound(); double axisMax = range.getUpperBound(); double min = 0.0; double max = 0.0; if (Rectan...
double function(double java2DValue, Rectangle2D area, RectangleEdge edge) { Range range = getRange(); double axisMin = range.getLowerBound(); double axisMax = range.getUpperBound(); double min = 0.0; double max = 0.0; if (RectangleEdge.isTopOrBottom(edge)) { min = area.getX(); max = area.getMaxX(); } else if (Rectangle...
/** * Converts a coordinate in Java2D space to the corresponding data value, * assuming that the axis runs along one edge of the specified dataArea. * * @param java2DValue the coordinate in Java2D space. * @param area the area in which the data is plotted. * @param edge the location. ...
Converts a coordinate in Java2D space to the corresponding data value, assuming that the axis runs along one edge of the specified dataArea
java2DToValue
{ "repo_name": "hongliangpan/manydesigns.cn", "path": "trunk/portofino-chart/jfreechat.src/org/jfree/chart/axis/NumberAxis.java", "license": "lgpl-3.0", "size": 55177 }
[ "java.awt.geom.Rectangle2D", "org.jfree.data.Range", "org.jfree.ui.RectangleEdge" ]
import java.awt.geom.Rectangle2D; import org.jfree.data.Range; import org.jfree.ui.RectangleEdge;
import java.awt.geom.*; import org.jfree.data.*; import org.jfree.ui.*;
[ "java.awt", "org.jfree.data", "org.jfree.ui" ]
java.awt; org.jfree.data; org.jfree.ui;
2,876,460
private EAST stringToTree(Algebraic expr) { return stringToTree(expr.toString()); }
EAST function(Algebraic expr) { return stringToTree(expr.toString()); }
/** * Convert a Maple string expression that has been formatted by our * pretty printer (see Maple.stg) into a Fortran-M syntax tree. * * @param expr * @return */
Convert a Maple string expression that has been formatted by our pretty printer (see Maple.stg) into a Fortran-M syntax tree
stringToTree
{ "repo_name": "dacmot/RevEngTools", "path": "recurrence/Maple.java", "license": "bsd-3-clause", "size": 11640 }
[ "com.maplesoft.openmaple.Algebraic" ]
import com.maplesoft.openmaple.Algebraic;
import com.maplesoft.openmaple.*;
[ "com.maplesoft.openmaple" ]
com.maplesoft.openmaple;
2,664,903
public Lock getMutex() { return this.m_mutex; }
Lock function() { return this.m_mutex; }
/** * Get the Mutex * * @return {@link Lock} mutex */
Get the Mutex
getMutex
{ "repo_name": "Fiware/i2nd.KIARA", "path": "src/main/java/org/fiware/kiara/ps/rtps/messages/elements/parameters/ParameterPropertyList.java", "license": "lgpl-3.0", "size": 6263 }
[ "java.util.concurrent.locks.Lock" ]
import java.util.concurrent.locks.Lock;
import java.util.concurrent.locks.*;
[ "java.util" ]
java.util;
1,657,786
public void autoRun() { double currentTime = autonomousTimer.get(); double speedLeft = 0; double speedRight = 0; double distance; // in feet distance = sonic.getRangeInches() * 12; //Sets distance to feet from inches if (autoState == 1) { ...
void function() { double currentTime = autonomousTimer.get(); double speedLeft = 0; double speedRight = 0; double distance; distance = sonic.getRangeInches() * 12; if (autoState == 1) { if (distance > 17.75 && distance < 18.25) { autoState = 2; autoTimeValue = autonomousTimer.get(); } else { double error = 18.0 * 12 - ...
/** * Steps to perform in autonomous - Drive for set amount of time - Expand * the shooter - Align distance to about 3 feet */
Steps to perform in autonomous - Drive for set amount of time - Expand the shooter - Align distance to about 3 feet
autoRun
{ "repo_name": "BreakerBots/Felix-2014", "path": "src/edu/wpi/first/wpilibj/templates/Console.java", "license": "gpl-2.0", "size": 10479 }
[ "edu.wpi.first.wpilibj.DriverStationLCD" ]
import edu.wpi.first.wpilibj.DriverStationLCD;
import edu.wpi.first.wpilibj.*;
[ "edu.wpi.first" ]
edu.wpi.first;
663,491
protected void seedFirstTiles(Stack<Tile> tileStack) { Tile tempTile; for (int i = 0; i < houseSize; ++i) { tempTile = getColumn(i).getMember(randGen.nextInt(houseSize)); tempTile.seedInitialValue(i + 1); tileStack.add(tempTile); } }
void function(Stack<Tile> tileStack) { Tile tempTile; for (int i = 0; i < houseSize; ++i) { tempTile = getColumn(i).getMember(randGen.nextInt(houseSize)); tempTile.seedInitialValue(i + 1); tileStack.add(tempTile); } }
/** * This function will pick a random Tile from each column and seed it with an initial value. This function should * only be used during setup on an empty Board. * // TODO: Does not currently check if Board is truly empty. * * @param tileStack The Stack of Tiles to be used during the DFS port...
This function will pick a random Tile from each column and seed it with an initial value. This function should only be used during setup on an empty Board
seedFirstTiles
{ "repo_name": "valesken/ClassicSudoku", "path": "ClassicSudoku/app/src/main/java/me/valesken/jeff/sudoku_model/Board.java", "license": "mit", "size": 30080 }
[ "java.util.Stack" ]
import java.util.Stack;
import java.util.*;
[ "java.util" ]
java.util;
2,230,179
public DatanodeInfo getCurrentDatanode() { return ((DFSInputStream)in).getCurrentDatanode(); }
DatanodeInfo function() { return ((DFSInputStream)in).getCurrentDatanode(); }
/** * Returns the datanode from which the stream is currently reading. */
Returns the datanode from which the stream is currently reading
getCurrentDatanode
{ "repo_name": "cumulusyebl/cumulus", "path": "src/java/org/apache/hadoop/hdfs/DFSClient.java", "license": "apache-2.0", "size": 57376 }
[ "org.apache.hadoop.hdfs.protocol.DatanodeInfo" ]
import org.apache.hadoop.hdfs.protocol.DatanodeInfo;
import org.apache.hadoop.hdfs.protocol.*;
[ "org.apache.hadoop" ]
org.apache.hadoop;
2,349,804
protected static void displayErrorPopup(String message) { try { JOptionPane.showMessageDialog(frame, message, FlickrSorterConstants.APP_TITLE + " " + PropertiesHelper.getVersion(), JOptionPane.ERROR_MESSAGE); } catch (Exception e) { // Ignore log.error(e); } }
static void function(String message) { try { JOptionPane.showMessageDialog(frame, message, FlickrSorterConstants.APP_TITLE + " " + PropertiesHelper.getVersion(), JOptionPane.ERROR_MESSAGE); } catch (Exception e) { log.error(e); } }
/** * Display message pop-up * @param message * @throws AppException */
Display message pop-up
displayErrorPopup
{ "repo_name": "ahuh/flickrsorter", "path": "flickrsorter/src/main/java/org/ahuh/flickr/sorter/gui/GUIApplication.java", "license": "mit", "size": 5177 }
[ "javax.swing.JOptionPane", "org.ahuh.flickr.sorter.constants.FlickrSorterConstants", "org.ahuh.flickr.sorter.helper.PropertiesHelper" ]
import javax.swing.JOptionPane; import org.ahuh.flickr.sorter.constants.FlickrSorterConstants; import org.ahuh.flickr.sorter.helper.PropertiesHelper;
import javax.swing.*; import org.ahuh.flickr.sorter.constants.*; import org.ahuh.flickr.sorter.helper.*;
[ "javax.swing", "org.ahuh.flickr" ]
javax.swing; org.ahuh.flickr;
2,279,733
@ServiceMethod(returns = ReturnType.COLLECTION) public PagedFlux<DiskEncryptionSetInner> listByResourceGroupAsync(String resourceGroupName) { return new PagedFlux<>( () -> listByResourceGroupSinglePageAsync(resourceGroupName), nextLink -> listByResourceGroupNextSinglePageAsync(ne...
@ServiceMethod(returns = ReturnType.COLLECTION) PagedFlux<DiskEncryptionSetInner> function(String resourceGroupName) { return new PagedFlux<>( () -> listByResourceGroupSinglePageAsync(resourceGroupName), nextLink -> listByResourceGroupNextSinglePageAsync(nextLink)); }
/** * Lists all the disk encryption sets under a resource group. * * @param resourceGroupName The name of the resource group. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ApiErrorException thrown if the request is rejected by server. * @throws Runt...
Lists all the disk encryption sets under a resource group
listByResourceGroupAsync
{ "repo_name": "selvasingh/azure-sdk-for-java", "path": "sdk/resourcemanager/azure-resourcemanager-compute/src/main/java/com/azure/resourcemanager/compute/implementation/DiskEncryptionSetsClientImpl.java", "license": "mit", "size": 81126 }
[ "com.azure.core.annotation.ReturnType", "com.azure.core.annotation.ServiceMethod", "com.azure.core.http.rest.PagedFlux", "com.azure.resourcemanager.compute.fluent.models.DiskEncryptionSetInner" ]
import com.azure.core.annotation.ReturnType; import com.azure.core.annotation.ServiceMethod; import com.azure.core.http.rest.PagedFlux; import com.azure.resourcemanager.compute.fluent.models.DiskEncryptionSetInner;
import com.azure.core.annotation.*; import com.azure.core.http.rest.*; import com.azure.resourcemanager.compute.fluent.models.*;
[ "com.azure.core", "com.azure.resourcemanager" ]
com.azure.core; com.azure.resourcemanager;
2,747,635
@Override public void write(final byte buffer[]) throws IOException { write(buffer, 0, buffer.length); }
void function(final byte buffer[]) throws IOException { write(buffer, 0, buffer.length); }
/** * Writes a byte array to the stream. * <p> * @param buffer The byte array to write. * @throws IOException If an error occurs while writing to the underlying * stream. */
Writes a byte array to the stream.
write
{ "repo_name": "apache/commons-net", "path": "src/main/java/org/apache/commons/net/telnet/TelnetOutputStream.java", "license": "apache-2.0", "size": 4966 }
[ "java.io.IOException" ]
import java.io.IOException;
import java.io.*;
[ "java.io" ]
java.io;
990,709
void stickerChanged(MPDStatus mpdStatus);
void stickerChanged(MPDStatus mpdStatus);
/** * Called when any sticker of any track has been changed on server. * * @param mpdStatus {@code MPDStatus} after event. */
Called when any sticker of any track has been changed on server
stickerChanged
{ "repo_name": "0359xiaodong/dmix", "path": "JMPDComm/src/main/java/org/a0z/mpd/event/StatusChangeListener.java", "license": "apache-2.0", "size": 3809 }
[ "org.a0z.mpd.MPDStatus" ]
import org.a0z.mpd.MPDStatus;
import org.a0z.mpd.*;
[ "org.a0z.mpd" ]
org.a0z.mpd;
2,672,162
public void sendQuestInterface(List<String> text) { int size = text.size(), lines = InterfaceConstants.QUEST_TEXT.length; Preconditions.checkArgument(size <= lines, "List contains too much text to display on this interface."); for (int pos = 0; pos < lines; pos++) { send(new SetWidgetTextMessage(InterfaceC...
void function(List<String> text) { int size = text.size(), lines = InterfaceConstants.QUEST_TEXT.length; Preconditions.checkArgument(size <= lines, STR); for (int pos = 0; pos < lines; pos++) { send(new SetWidgetTextMessage(InterfaceConstants.QUEST_TEXT[pos], pos < size ? text.get(pos) : "")); } interfaceSet.openWindow...
/** * Sends the quest interface * * @param text The text to display on the interface. */
Sends the quest interface
sendQuestInterface
{ "repo_name": "LegendSky/apollo", "path": "game/src/main/org/apollo/game/model/entity/Player.java", "license": "isc", "size": 24692 }
[ "com.google.common.base.Preconditions", "java.util.List", "org.apollo.game.message.impl.SetWidgetTextMessage", "org.apollo.game.model.inter.InterfaceConstants" ]
import com.google.common.base.Preconditions; import java.util.List; import org.apollo.game.message.impl.SetWidgetTextMessage; import org.apollo.game.model.inter.InterfaceConstants;
import com.google.common.base.*; import java.util.*; import org.apollo.game.message.impl.*; import org.apollo.game.model.inter.*;
[ "com.google.common", "java.util", "org.apollo.game" ]
com.google.common; java.util; org.apollo.game;
2,618,615
T visitFRANode(FRANode node, ExternalId externalId);
T visitFRANode(FRANode node, ExternalId externalId);
/** * Visits a {@link FRANode}. * * @param node * A FRA node * @param externalId * External ID * @return The return value */
Visits a <code>FRANode</code>
visitFRANode
{ "repo_name": "McLeodMoores/starling", "path": "projects/financial/src/main/java/com/opengamma/financial/analytics/ircurve/strips/CurveNodeWithExternalIdVisitor.java", "license": "apache-2.0", "size": 3035 }
[ "com.opengamma.id.ExternalId" ]
import com.opengamma.id.ExternalId;
import com.opengamma.id.*;
[ "com.opengamma.id" ]
com.opengamma.id;
864,249
public static Rectangle union(final Collection<Rectangle> rectangles) { final Iterator<Rectangle> iter = rectangles.iterator(); if (iter.hasNext()) { final Rectangle rectangle = iter.next(); final Rectangle retVal = new Rectangle(rectangle); while (iter.hasNext()) { rectangle.union(iter.next()); ...
static Rectangle function(final Collection<Rectangle> rectangles) { final Iterator<Rectangle> iter = rectangles.iterator(); if (iter.hasNext()) { final Rectangle rectangle = iter.next(); final Rectangle retVal = new Rectangle(rectangle); while (iter.hasNext()) { rectangle.union(iter.next()); } return retVal; } else { t...
/** * Creates a new rectangle, spanning around the given rectangles. * * @param rectangles * The rectangles to include. * @return The minimum rectangle, that includes all input rectangles. */
Creates a new rectangle, spanning around the given rectangles
union
{ "repo_name": "ExplorViz/ExplorViz", "path": "src-external/de/cau/cs/kieler/klay/layered/p5edges/splines/Rectangle.java", "license": "apache-2.0", "size": 9483 }
[ "java.util.Collection", "java.util.Iterator" ]
import java.util.Collection; import java.util.Iterator;
import java.util.*;
[ "java.util" ]
java.util;
505,423
public static void recordPackageStats() { if (Build.VERSION.SDK_INT < Build.VERSION_CODES.O) return; PackageMetricsData data = getPackageStatsForAndroidO(); if (data != null) { RecordHistogram.recordCustomCountHistogram("Android.PackageStats.DataSize", (int) ...
static void function() { if (Build.VERSION.SDK_INT < Build.VERSION_CODES.O) return; PackageMetricsData data = getPackageStatsForAndroidO(); if (data != null) { RecordHistogram.recordCustomCountHistogram(STR, (int) ConversionUtils.bytesToMegabytes(data.dataSize), 1, 10000, 50); RecordHistogram.recordCustomCountHistogram...
/** * Records UMA about the size of data, cache, and code size on disk for Android. * Should be called on background thread since some of the API calls can be slow. */
Records UMA about the size of data, cache, and code size on disk for Android. Should be called on background thread since some of the API calls can be slow
recordPackageStats
{ "repo_name": "chromium/chromium", "path": "chrome/android/java/src/org/chromium/chrome/browser/metrics/PackageMetrics.java", "license": "bsd-3-clause", "size": 4121 }
[ "android.os.Build", "org.chromium.base.metrics.RecordHistogram", "org.chromium.components.browser_ui.util.ConversionUtils" ]
import android.os.Build; import org.chromium.base.metrics.RecordHistogram; import org.chromium.components.browser_ui.util.ConversionUtils;
import android.os.*; import org.chromium.base.metrics.*; import org.chromium.components.browser_ui.util.*;
[ "android.os", "org.chromium.base", "org.chromium.components" ]
android.os; org.chromium.base; org.chromium.components;
1,961,979
public void setDialogBounds(Rectangle dialogBounds) { this.dialogBounds = dialogBounds; }
void function(Rectangle dialogBounds) { this.dialogBounds = dialogBounds; }
/** * Sets the dialog bounds to be used for the next {@link #showDialog(java.awt.Component, String)} call. * * @param dialogBounds the dialog bounds */
Sets the dialog bounds to be used for the next <code>#showDialog(java.awt.Component, String)</code> call
setDialogBounds
{ "repo_name": "valgur/snap-engine", "path": "snap-core/src/main/java/org/esa/snap/util/io/SnapFileChooser.java", "license": "gpl-3.0", "size": 11305 }
[ "java.awt.Rectangle" ]
import java.awt.Rectangle;
import java.awt.*;
[ "java.awt" ]
java.awt;
2,187,488
MatcherAssert.assertThat( IOUtils.toString( new RsXembly( new XeAppend( "root", new XeSLA() ) ).body() ), XhtmlMatchers.hasXPaths( "/root[@sla]" ...
MatcherAssert.assertThat( IOUtils.toString( new RsXembly( new XeAppend( "root", new XeSLA() ) ).body() ), XhtmlMatchers.hasXPaths( STR ) ); }
/** * XeSLA can build XML response. * @throws IOException If some problem inside */
XeSLA can build XML response
buildsXmlResponse
{ "repo_name": "essobedo/takes", "path": "src/test/java/org/takes/rs/xe/XeSLATest.java", "license": "mit", "size": 2024 }
[ "com.jcabi.matchers.XhtmlMatchers", "org.apache.commons.io.IOUtils", "org.hamcrest.MatcherAssert" ]
import com.jcabi.matchers.XhtmlMatchers; import org.apache.commons.io.IOUtils; import org.hamcrest.MatcherAssert;
import com.jcabi.matchers.*; import org.apache.commons.io.*; import org.hamcrest.*;
[ "com.jcabi.matchers", "org.apache.commons", "org.hamcrest" ]
com.jcabi.matchers; org.apache.commons; org.hamcrest;
1,197,592
private void contributeToActionBars() { final IActionBars bars = getViewSite().getActionBars(); IMenuManager mmMenu = bars.getMenuManager(); IToolBarManager mmBar = bars.getToolBarManager(); // add to Local Menu, mirroring the context menu fillContextMenu(mmMenu); mmMenu.add(aShowDummy); // add to L...
void function() { final IActionBars bars = getViewSite().getActionBars(); IMenuManager mmMenu = bars.getMenuManager(); IToolBarManager mmBar = bars.getToolBarManager(); fillContextMenu(mmMenu); mmMenu.add(aShowDummy); mmBar.add(aOpenFile); mmBar.add(aOpenUrl); mmBar.add(aShowMarkersAll); mmBar.add(aHideMarkersAll); mmB...
/** * Adds action to action bars. */
Adds action to action bars
contributeToActionBars
{ "repo_name": "winks/cinder", "path": "src/org/art_core/dev/cinder/views/JFInputView.java", "license": "bsd-3-clause", "size": 14652 }
[ "org.eclipse.jface.action.IMenuManager", "org.eclipse.jface.action.IToolBarManager", "org.eclipse.ui.IActionBars" ]
import org.eclipse.jface.action.IMenuManager; import org.eclipse.jface.action.IToolBarManager; import org.eclipse.ui.IActionBars;
import org.eclipse.jface.action.*; import org.eclipse.ui.*;
[ "org.eclipse.jface", "org.eclipse.ui" ]
org.eclipse.jface; org.eclipse.ui;
1,040,641
@Test public void testOutputPartitionPath() throws Exception { // test specifying output time Date date = DateFormat.getDateTimeInstance(DateFormat.SHORT, DateFormat.SHORT).parse("1/1/15 8:42 pm"); Map<String, String> args = Maps.newHashMap(); TimePartitionedFileSetArguments.setOutputPartitionTime(a...
void function() throws Exception { Date date = DateFormat.getDateTimeInstance(DateFormat.SHORT, DateFormat.SHORT).parse(STR); Map<String, String> args = Maps.newHashMap(); TimePartitionedFileSetArguments.setOutputPartitionTime(args, date.getTime()); TimeZone timeZone = Calendar.getInstance().getTimeZone(); TimePartitio...
/** * Tests that the output file path is set correctly, based on the output partition time. */
Tests that the output file path is set correctly, based on the output partition time
testOutputPartitionPath
{ "repo_name": "mpouttuclarke/cdap", "path": "cdap-data-fabric/src/test/java/co/cask/cdap/data2/dataset2/lib/partitioned/TimePartitionedFileSetTest.java", "license": "apache-2.0", "size": 29223 }
[ "co.cask.cdap.api.dataset.DataSetException", "co.cask.cdap.api.dataset.lib.PartitionKey", "co.cask.cdap.api.dataset.lib.TimePartitionedFileSet", "co.cask.cdap.api.dataset.lib.TimePartitionedFileSetArguments", "co.cask.cdap.common.io.Locations", "com.google.common.collect.Maps", "java.text.DateFormat", ...
import co.cask.cdap.api.dataset.DataSetException; import co.cask.cdap.api.dataset.lib.PartitionKey; import co.cask.cdap.api.dataset.lib.TimePartitionedFileSet; import co.cask.cdap.api.dataset.lib.TimePartitionedFileSetArguments; import co.cask.cdap.common.io.Locations; import com.google.common.collect.Maps; import java...
import co.cask.cdap.api.dataset.*; import co.cask.cdap.api.dataset.lib.*; import co.cask.cdap.common.io.*; import com.google.common.collect.*; import java.text.*; import java.util.*; import org.apache.hadoop.mapreduce.lib.output.*; import org.junit.*;
[ "co.cask.cdap", "com.google.common", "java.text", "java.util", "org.apache.hadoop", "org.junit" ]
co.cask.cdap; com.google.common; java.text; java.util; org.apache.hadoop; org.junit;
584,346
@Test public void whenTwoArraysWithTheSameElementsThenCorrectArray() { Merge merge = new Merge(); int[] array = {1, 2, 3}; int[] expectedArray = {1, 1, 2, 2, 3, 3}; int[] actualArray = merge.merge(array, array); assertThat(actualArray, is(expectedArray)); }
void function() { Merge merge = new Merge(); int[] array = {1, 2, 3}; int[] expectedArray = {1, 1, 2, 2, 3, 3}; int[] actualArray = merge.merge(array, array); assertThat(actualArray, is(expectedArray)); }
/** * This method tests two same arrays. */
This method tests two same arrays
whenTwoArraysWithTheSameElementsThenCorrectArray
{ "repo_name": "Basil135/vkucyh", "path": "chapter_001/src/test/java/ru/job4j/test/MergeTest.java", "license": "apache-2.0", "size": 1929 }
[ "org.hamcrest.core.Is", "org.junit.Assert" ]
import org.hamcrest.core.Is; import org.junit.Assert;
import org.hamcrest.core.*; import org.junit.*;
[ "org.hamcrest.core", "org.junit" ]
org.hamcrest.core; org.junit;
1,763,340
void subscriptionErrorDelegate(Object sender, SubscriptionErrorEventArgs args); } private List<ISubscriptionErrorDelegate> onSubscriptionError = new ArrayList<ISubscriptionErrorDelegate>();
void subscriptionErrorDelegate(Object sender, SubscriptionErrorEventArgs args); } private List<ISubscriptionErrorDelegate> onSubscriptionError = new ArrayList<ISubscriptionErrorDelegate>();
/** * Represents a delegate that is invoked when an error occurs within a * streaming subscription connection. * * @param sender The StreamingSubscriptionConnection instance within which * the error occurred. * @param args The event data. */
Represents a delegate that is invoked when an error occurs within a streaming subscription connection
subscriptionErrorDelegate
{ "repo_name": "evpaassen/ews-java-api", "path": "src/main/java/microsoft/exchange/webservices/data/StreamingSubscriptionConnection.java", "license": "mit", "size": 17779 }
[ "java.util.ArrayList", "java.util.List" ]
import java.util.ArrayList; import java.util.List;
import java.util.*;
[ "java.util" ]
java.util;
721,159
@Test public void testCheckFileFailMaxSize() { try { reset(this.mockConfig); expect(this.mockConfig.getProperty("Batch_Test_Max_File_Size", "false")) .andReturn("true"); expect(this.mockConfig.getProperty("Batch_Max_File_Size")...
void function() { try { reset(this.mockConfig); expect(this.mockConfig.getProperty(STR, "false")) .andReturn("true"); expect(this.mockConfig.getProperty(STR)) .andReturn("1"); expect(this.mockConfig.getProperty(STR, "false")) .andReturn("true"); expect(this.mockConfig.getProperty(STR)) .andReturn(STR); expect(this.mock...
/** * Test method for {@link au.edu.uts.eng.remotelabs.rigclient.rig.control.ConfiguredBatchRunner#checkFile()}. */
Test method for <code>au.edu.uts.eng.remotelabs.rigclient.rig.control.ConfiguredBatchRunner#checkFile()</code>
testCheckFileFailMaxSize
{ "repo_name": "sahara-labs/rig-client", "path": "src/au/edu/uts/eng/remotelabs/rigclient/rig/control/tests/ConfiguredBatchRunnerTester.java", "license": "bsd-3-clause", "size": 26930 }
[ "au.edu.uts.eng.remotelabs.rigclient.rig.control.AbstractBatchRunner", "au.edu.uts.eng.remotelabs.rigclient.rig.control.ConfiguredBatchRunner", "java.lang.reflect.Field", "java.lang.reflect.Method", "org.easymock.EasyMock" ]
import au.edu.uts.eng.remotelabs.rigclient.rig.control.AbstractBatchRunner; import au.edu.uts.eng.remotelabs.rigclient.rig.control.ConfiguredBatchRunner; import java.lang.reflect.Field; import java.lang.reflect.Method; import org.easymock.EasyMock;
import au.edu.uts.eng.remotelabs.rigclient.rig.control.*; import java.lang.reflect.*; import org.easymock.*;
[ "au.edu.uts", "java.lang", "org.easymock" ]
au.edu.uts; java.lang; org.easymock;
2,532,838
public static LocalCall<Map<String, Change<Xor<String, List<Info>>>>> install( boolean refresh, List<String> pkgs, List<String> attributes) { LinkedHashMap<String, Object> kwargs = new LinkedHashMap<>(); kwargs.put("refresh", refresh); kwargs.put("pkgs", pkgs); kwargs.put...
static LocalCall<Map<String, Change<Xor<String, List<Info>>>>> function( boolean refresh, List<String> pkgs, List<String> attributes) { LinkedHashMap<String, Object> kwargs = new LinkedHashMap<>(); kwargs.put(STR, refresh); kwargs.put("pkgs", pkgs); kwargs.put("attr", attributes); return new LocalCall<>(STR, Optional.e...
/** * Call 'pkg.install' API. * * @param refresh refresh repos before installation * @param pkgs list of packages * @param attributes list of attributes that should be included in the result * @return the call. For each package, a change of old and new value. * Those can contain an em...
Call 'pkg.install' API
install
{ "repo_name": "SUSE/salt-netapi-client", "path": "src/main/java/com/suse/salt/netapi/calls/modules/Pkg.java", "license": "mit", "size": 16711 }
[ "com.google.gson.reflect.TypeToken", "com.suse.salt.netapi.calls.LocalCall", "com.suse.salt.netapi.results.Change", "com.suse.salt.netapi.utils.Xor", "java.util.LinkedHashMap", "java.util.List", "java.util.Map", "java.util.Optional" ]
import com.google.gson.reflect.TypeToken; import com.suse.salt.netapi.calls.LocalCall; import com.suse.salt.netapi.results.Change; import com.suse.salt.netapi.utils.Xor; import java.util.LinkedHashMap; import java.util.List; import java.util.Map; import java.util.Optional;
import com.google.gson.reflect.*; import com.suse.salt.netapi.calls.*; import com.suse.salt.netapi.results.*; import com.suse.salt.netapi.utils.*; import java.util.*;
[ "com.google.gson", "com.suse.salt", "java.util" ]
com.google.gson; com.suse.salt; java.util;
17,728