query stringlengths 8 1.54M | document stringlengths 9 312k | negatives listlengths 19 20 | metadata dict |
|---|---|---|---|
Creates a new range restriction listener. | private RangeRestrictionListener() {
} | [
"protected ChangeListener createListener() {\n return new RangeSliderChangeListener();\n }",
"ValueRangeConstraint createValueRangeConstraint();",
"public PortRange(int lowerBound, int upperBound) {\n this.lowerBound = lowerBound;\n this.upperBound = upperBound;\n }",
"private Range... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Create an aliased mplus_test_data.getmedirecord table reference | public Getmedirecord(Name alias) {
this(alias, GETMEDIRECORD);
} | [
"public Getmedirecord(String alias) {\n this(DSL.name(alias), GETMEDIRECORD);\n }",
"private static TableRef createAliasedTableRef( final TableMeta table,\n final String alias ) {\n return new TableRef() {\n public String getColumnNa... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Setter for BuildingRepository, used for testing purposes only. | public void setBuildingRepository(final BuildingRepository buildingRepo) {
this.buildingRepository = buildingRepo;
} | [
"public void setRepository(String repository) {\n this.repository = repository;\n }",
"public void setRepository(IRepository repository) {\r\n this.repository = repository;\r\n }",
"public void setRepository(Repository pRepository) {\n mRepository = pRepository;\n }",
"public void setR... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Encodes this state machine as a string | public String encode() {
return State.encodeStateSet(states) + "/" + alphabet.encode() + "/" + transitions.encode() + "/"
+ initialState.encode() + "/" + State.encodeStateSet(acceptingStates);
} | [
"public String toString() {\n\t\t//initializes a StringBuilder to build the string representation of the machine\n\t\tStringBuilder machineRepresentation = new StringBuilder();\n\t\t\n\t\t//for all states in the set of states in our machine\n\t\tfor (Node state : states.values()) {\n\t\t\t//we get the transitions f... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
/ renamed from: com.google.android.gms.plus.internal.d | public interface C1326d extends IInterface {
/* renamed from: com.google.android.gms.plus.internal.d$a */
public static abstract class C1327a extends Binder implements C1326d {
/* renamed from: com.google.android.gms.plus.internal.d$a$a */
private static class C1328a implements C1326d {
... | [
"public interface C1881a {\n void m7943a(zzmk com_google_android_gms_internal_zzmk);\n }",
"public interface GoogleApiClient\n{\n public static final class Builder\n {\n\n private final Context mContext;\n private Account zzFN;\n private Looper zzMc;\n private final Set... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Perform the exchange asynchronously, calling back success or failure on the callback that was passed to the constructor. | @Override
public void run() {
// The error-handling here tries to be as simple as possible: if anything
// goes wrong that causes an exception, we call the .failure() method on the
// callback. All the subroutines here (init/send/receive client/server message routines)
// store intermediate results in... | [
"CompletableFuture<Exchange> asyncSend(String endpointUri, Exchange exchange);",
"CompletableFuture<Exchange> asyncSend(Endpoint endpoint, Exchange exchange);",
"void sendAsync(Message message, ResponseCallback cb);",
"CompletableFuture<Exchange> asyncSend(String endpointUri, Processor processor);",
"@Overr... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Reintrospect Data Source method reintrospects data sources for the passed in data source ids list found in the the passed in datasources.xml file for the target server Id | public void reIntrospectDataSources(String serverId, String dataSourceIds, String pathToDataSourceXML, String pathToServersXML); | [
"public void introspectDataSources(String serverId, String dataSourceIds, String pathToDataSourceXML, String pathToServersXML) throws CompositeException;",
"public void updateDataSources(String serverId, String dataSourceIds, String pathToDataSourceXML, String pathToServersXML);",
"void generateDataSourcesResou... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Adds a new entry and returns the new created id. Serializes the configuration only when specified. | protected UUID add(E entry, boolean persist) {
list.add(entry);
UUID guid = UUID.randomUUID();
dict.put(guid, entry);
if (entry.isEnable()) {
names.put(entry.getName(), guid);
}
if (persist) {
Config.serialize();
}
return guid;
} | [
"protected UUID add(E entry) {\n\t\treturn add(entry, true);\n\t}",
"String addEntry(final String serialization);",
"java.lang.String getEntryId();",
"public ua.org.gostroy.guestbook.model.Entry3 create(long entryId);",
"public DataEntry create(long dataEntryId);",
"boolean addId(String id);",
"public l... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Abstraction of an entity which represents the functionality of ethCepPac. | public interface EthCepPac {
/**
* Identify the leaf of EthCepPac.
*/
public enum LeafIdentifier {
/**
* Represents vlanType.
*/
VLANTYPE(1),
/**
* Represents accessAction.
*/
ACCESSACTION(2),
/**
* Represents isMacA... | [
"public interface PacMan extends Entity {\n\t\n\t/**\n\t * returns health points of pacman\n\t * \n\t * @return hp of pacman\n\t */\n\tint getHP();\n\n\t/**\n\t* returns boolean value to know if pacman can eat a ghost\n\t*\n\t* @return boolean value to know if pacman can eat a ghost\n\t*/\n\tboolean getCanEat();\n... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Determines the payload of this AST: a string in case it's an inner node (which is the name of the parser rule), or a Token in case it is a leaf node. | private Object getPayload(ParseTree tree) {
if (tree.getChildCount() == 0) {
// A leaf node: return the tree's payload, which is a Token.
return tree.getPayload();
}
else {
// The name for parser rule `foo` will be `FooContext`. Strip `Context` and
... | [
"java.lang.String getPayload();",
"public String getPayload() {\n return payload;\n }",
"private Object getTokenValue() {\n\t\treturn lexer.getToken().getTokenValue();\n\t}",
"public String stringValue() {\n return token.substring(1, token.length() - 1);\n }",
"public static String getTypeStringFrom... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Method that will find a href and click if because there are too many of them and selenium won't find it. | public static void clickLinkByHref(String href)
{
try {
List<WebElement> anchors = driver.findElements(By.tagName("a"));
java.util.Iterator<WebElement> i = anchors.iterator();
while(i.hasNext())
{
WebElement anchor = i.next();
if(anchor.getAttribute("href").contains(hr... | [
"public void clickLinkByHref(String href) {\n List<WebElement> anchors = driver.findElements(By.tagName(\"a\"));\n Iterator<WebElement> i = anchors.iterator();\n try {\n while (i.hasNext()) {\n WebElement anchor = i.next();\n if (anchor.getAttribute(\"hr... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Instantiates a new jamon monitor factory. | public JamonMonitorFactory(final SimpleProfileMonitor rootMonitor) {
super(rootMonitor);
} | [
"@Override\n\tprotected ProfileMonitorFactory createProfileMonitorFactory() {\n\t\treturn new JamonMonitorFactory(new SimpleProfileMonitor(\"JAMON-TEST\"));\n\t}",
"Monitor createMonitor();",
"JZLemurMonitor createJZLemurMonitor();",
"private static FaxJobMonitor createFaxJobMonitor(Map<String, String> system... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Creates a TimeBoost Objective with the TimeBoost image. | public TimeBoost ()
{
super ("hats3/Images/GameImages/timebonus.png");
} | [
"@Override\n public void createPowerUp() {\n SpeedBoost speedBoost = new SpeedBoost(game, (float) Utility.randomDoubleFromRange(100, game.getWidth() - 100), (float) Utility.randomDoubleFromRange(100, game.getPlayHeight() - 100), this.whiteBall);\n game.getPowerups().add(speedBoost);\n game.a... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Returns the provided predicates as a Base64 encoded string. | static String base64EncodePredicates(List<KuduPredicate> predicates) throws IOException {
byte[] bytes = KuduPredicate.serialize(predicates);
return Base64.encodeBase64String(bytes);
} | [
"protected String buildAndEncodeConsentAttributes(final Map<String, List<Object>> attributes) {\n try {\n val json = MAPPER.writer(new MinimalPrettyPrinter()).writeValueAsString(Objects.requireNonNull(attributes));\n LOGGER.trace(\"Consentable attributes are [{}]\", json);\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Return an iterator for the nodes. You can use this if you need to iterate through the nodes. | public Iterator<Node> getNodeIter() {
return nodes.iterator();
} | [
"public Iterator<Node> getNodeIterator() {\n\t\treturn nodes.iterator();\n\t}",
"public Iterator<LayoutNode> nodeIterator() {\n\treturn nodeList.iterator();\n }",
"public final Iterator<MNode1D> getNodesIterator()\n\t{\n\t\treturn nodelist.iterator();\n\t}",
"public Iterator<Node> IteratorNode(){\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Returns the batch corresponding to the given range. If the supplied range does not fall within the available range, the results returned correspond to the intersection of the two. If no items are found, the supplied range does not intersect the available range, or the supplied range has length zero, then an empty array... | public NSArray<E> batchWithRange(NSRange requestedRange) {
EOEditingContext ec = editingContext();
if ( ec == null) {
throw new IllegalStateException("ERXFetchSpecificationBatchIterator: Calling nextBatch with a null editing context!");
}
NSArray<E> nextBatch = null;
... | [
"@VisibleForTesting\n List<MutableCodepointRange> intersection(CodepointRange intersecting) {\n List<MutableCodepointRange> intersection = new ArrayList<>();\n\n MutableCodepointRange start = MutableCodepointRange.createPoint(intersecting.start());\n MutableCodepointRange end = MutableCodepointRan... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Places tooltip on n | private void placeTooltip(@NotNull Node n) {
Tooltip.install(n, getTooltip());
} | [
"void showTooltip();",
"private void setTooltip() {\r\n\tproductsTableView.setTooltip(new Tooltip(\"k: Zeilenindex\\n\"\r\n\t\t+ \"D: Nachfragerate\\n\" + \"p: Produktionsrate\\n\"\r\n\t\t+ \"τ: Rüstzeit\\n\" + \"s: Rüstkostensatz\\n\"\r\n\t\t+ \"h: Lagerkostensatz\"));\r\n }",
"public void showAddToolTip(){... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
$ANTLR end "rule__AmbienteDespliegue__RecursosAssignment_4_2" $ANTLR start "rule__AmbienteDespliegue__RecursosAssignment_4_3_1" InternalCeffective.g:8423:1: rule__AmbienteDespliegue__RecursosAssignment_4_3_1 : ( ( ruleEString ) ) ; | public final void rule__AmbienteDespliegue__RecursosAssignment_4_3_1() throws RecognitionException {
int stackSize = keepStackSize();
try {
// InternalCeffective.g:8427:1: ( ( ( ruleEString ) ) )
// InternalCeffective.g:8428:2: ( ( ruleEString ) )
{
... | [
"public final void rule__AmbienteDespliegue__RecursosAssignment_4_2() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \t\n try {\n // InternalCeffective.g:8408:1: ( ( ( ruleEString ) ) )\n // InternalCeffective.g:8409:2: ( ( ruleEString ) )\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Gets a list of service association links for a subnet. | @ServiceMethod(returns = ReturnType.SINGLE)
public Mono<ServiceAssociationLinksListResult> list(
String resourceGroupName, String virtualNetworkName, String subnetName, Context context) {
return this.serviceClient.listAsync(resourceGroupName, virtualNetworkName, subnetName, context);
} | [
"@ServiceMethod(returns = ReturnType.SINGLE)\n public Mono<ServiceAssociationLinksListResult> list(\n String resourceGroupName, String virtualNetworkName, String subnetName) {\n return this.serviceClient.listAsync(resourceGroupName, virtualNetworkName, subnetName);\n }",
"@ServiceMethod(return... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Locate and return the verification point OrderEmails object in the SUT. | protected IFtVerificationPoint OrderEmailsVP()
{
return vp("OrderEmails");
} | [
"String getEmailLocation();",
"public void lookupOrderByEmail(JSONObject returnOrderDetails) {\n Wait.untilElementPresent(Elements.element(\"order_status.view_order_details\"));\n logger.info(\"Entering order number for order lookup \" + returnOrderDetails.get(\"order_number\").toString());\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
This method was generated by MyBatis Generator. This method returns the value of the database column TRSSETLMT_NIDC_DET.TENOR_PERIODICITY_NBR_OLD | public BigDecimal getTENOR_PERIODICITY_NBR_OLD() {
return TENOR_PERIODICITY_NBR_OLD;
} | [
"public void setTENOR_PERIODICITY_NBR_OLD(BigDecimal TENOR_PERIODICITY_NBR_OLD) {\r\n this.TENOR_PERIODICITY_NBR_OLD = TENOR_PERIODICITY_NBR_OLD;\r\n }",
"public BigDecimal getIBOR_PERIODICITY_NUMBER_OLD()\r\n {\r\n\treturn IBOR_PERIODICITY_NUMBER_OLD;\r\n }",
"public String getTENOR_PERIODICITY... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
This method traverses a list to evaluate the terms of a polynomial expression, and returns the result as a double precision floating point number. | static Double evaluate(SinglyLinkedList<Double> polynomial, Double variable) {
Element element = polynomial.getHead();
int order = polynomial.getSize() - 1;
Double solution = 0.0;
while (element != null) {
solution += element.getData() * (Math.pow(variable, order));
... | [
"public static double evaluate(double[] a, double x) {\n if (a == null || a.length == 0) throw new Error(\"polynomial not defined\");\n double result = a[0];\n double p = 1.;\n for (int i = 1; i < a.length; i++) {\n p = p * x;\n //System.out.println(\"\"+a[i]+\"*\"+... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
replaces Item at index with newItem, returning the old Item | public Item replaceItem (int index, Item newItem) {
if ( (index < 0) || (index > (numItems-1) ) )
throw new TFNodeException();
Item returnItem = nodeItems[index];
nodeItems[index] = newItem;
return returnItem;
} | [
"public Item replaceItem(Item newItem, int index) {\r\n\t\tItem old = getItem(index);\r\n\t\t\r\n\t\tstorage[index] = newItem;\r\n\t\t\r\n\t\treturn old;\r\n\t}",
"public void set(int index, Item newItem){\n\t\tif (remove(index) != null)\n\t\t\tadd(newItem);\n\t}",
"private BeanItem addItemAtInternalIndex(int i... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Method to check whether we are allowd to make any configuration changes at this time. If the class has been compiled, then no further changes to the configuration are allowed. | protected void checkIfConfigurationModificationIsAllowed() {
if (isCompiled()) {
throw new InvalidDataAccessApiUsageException("Configuration can't be altered once the class has been compiled or used.");
}
} | [
"protected void checkIfConfigurationModificationIsAllowed() {\r\n\t\tif (this.isCompiled()) {\r\n\t\t\tthrow new InvalidDataAccessApiUsageException(\r\n\t\t\t\t\t\"Configuration can't be altered once the class has been compiled or used\");\r\n\t\t}\r\n\t}",
"protected void checkConfiguration() {\n \tsuper.chec... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
interface to get a callback when the login finished. | public interface LoginCallback {
public void success ();
public void error (NSError error);
} | [
"void login(String username,String password, OnLoginFinishedListener listener);",
"void notifyLoginSucceeded();",
"void loginDone();",
"public interface LoginOperationCallback {\n public void callbackLoginOperation(boolean successfulLogin);\n}",
"public static interface FLoginResultCallBack extends StdCa... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Elimina una cursada de la lista de cursadas. pre: La cursada existe en la lista de cursadas. post: Se elimina una cursada de la lista de cursadas. | public void removeCursada(Cursada cursada) {
assert cursadas.contains(cursada) : "La cursada no existe en la lista de cursadas.";
cursadas.remove(cursada);
assert !cursadas.contains(cursada) : "La cursada no ha sido eliminada de la lista de cursadas.";
verificarInvariante();
} | [
"public void eliminarCurs(int codiCurs) {\r\n// int codiCurs = llegirNum(\"Codi del curs a eliminar: \");\r\n Curs curs = (Curs) this.llistCurs.cercar(codiCurs);\r\n if (curs != null) {\r\n Assignatura assAux = curs.getList().getCap();\r\n while (assAux != null) {\r\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Check generate template list empty | @Test
public void generateTemplateListEmpty() throws Exception {
// Mock
when(templateDao.generateTaglistXml(anyList())).thenReturn("Template [value] tutu lala [otherValue]");
// Run
List<String> templates = templateService.generateTaglistTemplate(new TagList(), new DataList());
// Assert
as... | [
"private void checkAppendDone(boolean listDone){\n if(mTemplateSources.size() == 0){\n return;\n }\n Set<Map.Entry<String,WXCell>> cells = mTemplateSources.entrySet();\n for(Map.Entry<String,WXCell> entry : cells){\n if(!entry.getValue().isAppendTreeDone()){\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Returns this viewer's sorter, or null if it does not have one. If this viewer has a comparator that was set via setComparator(ViewerComparator) then this method will return null if the comparator is not an instance of ViewerSorter. It is recommended to use getComparator() instead. | public ViewerSorter getSorter() {
if (sorter instanceof ViewerSorter)
return (ViewerSorter) sorter;
return null;
} | [
"public ViewerComparator getComparator() {\n return sorter;\n }",
"public void setComparator(ViewerComparator comparator) {\n if (this.sorter != comparator) {\n this.sorter = comparator;\n refresh();\n }\n }",
"public String getComparator() {\n\t\treturn comparat... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Constructor for the GroupCacheAccess object | public GroupCacheAccess( CompositeCache cacheControl )
{
super( cacheControl );
} | [
"public CacheAccess( final CompositeCache<K, V> cacheControl )\n {\n super(cacheControl);\n }",
"public Group() {}",
"protected GroupStatementImpl(GroupStatementImpl<R, F, T> group) {\n super(group);\n this.cacheList = group.cacheList;\n this.cacheSB = group.cacheSB;\n this.parallelFact... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Initializes all the components of the flight selection panel. | private void initializeFlightSelectionPanel()
{
// This is the ActionListener for the JComboBox which holds the list of
// available planes:
planeComboBox.addActionListener(new ActionListener()
{
public void actionPerformed(ActionEvent e)
{
... | [
"public preselectSensorPanel() {\n initComponents();\n }",
"public ScoutAndAttackerInitPanel() {\n initComponents();\n initSpinnerValue();\n }",
"public void init() {\n initPanels();\n initFrame();\n }",
"public TravelAgencyJPanel() throws ParseException {\n a... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Set the dataset replacement policy for existing datasets. | @Override
public HDF5GenericStorageFeatureBuilder datasetReplacementPolicy(
DataSetReplacementPolicy datasetReplacementPolicy)
{
super.datasetReplacementPolicy(datasetReplacementPolicy);
return this;
} | [
"public void setDataset(Dataset dataset){\r\n this.dataset = dataset;\r\n originalDataset = new Dataset(dataset);\r\n }",
"public synchronized void setDataset(final String newValue) {\n checkWritePermission();\n dataset = newValue;\n }",
"public void setPolicy(PO newPolicy);",
... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Set the help box refreshed status | public void setHelpBoxRefreshed(boolean d_helpBoxRefreshed)
{
helpBoxRefreshed = d_helpBoxRefreshed;
} | [
"public boolean isHelpBoxRefreshed()\r\n\t{\r\n\t\treturn helpBoxRefreshed;\r\n\t}",
"public void help() {\n help.showAndWait();\n }",
"public void setHelpText(String help);",
"public void updateHelp() {\n\tif (help != null) {\n\t help.setTitle(helpPrefix + title);\n\t help.setContent(getHelp(... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
/ Return True if this is an ARM device. | public boolean isArm() {
return getFamily() == Family.ARM32BIT;
} | [
"public boolean isDeviceDevice() {\n return type == Type.DEVICE_DEVICE;\n }",
"boolean hasDevicebrand();",
"public boolean isDevice() {\n return (fileType == DEVICE_TYPE);\n }",
"public boolean supportsArmIsa() {\r\n TargetArch arch = getArch();\r\n\r\n return (TargetArch.ARM... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Sets the hlsSettings value for this LiveStreamEvent. | public void setHlsSettings(com.google.api.ads.admanager.axis.v201808.HlsSettings hlsSettings) {
this.hlsSettings = hlsSettings;
} | [
"public com.google.api.ads.admanager.axis.v201808.HlsSettings getHlsSettings() {\n return hlsSettings;\n }",
"public void setSettings(Settings settings)\r\n\t{\r\n\t\tthis.settings = settings;\r\n\t}",
"public void setSettings(UserSettings settings) {\r\n\t\tmySettings = settings;\r\n\t}",
"public v... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
/ Creates AWT PopupMenu for CameraComposite | private void createPopupMenu()
{
final Camera camera = SrvHal.getCamera();
final PopupMenu menu = new PopupMenu();
final MenuItem setColour = new MenuItem("Set colour to selected bin");
setColour.addActionListener(new ActionListener()
{
@Override
public void actionPerformed(ActionEvent e)
... | [
"JPopupMenu createPopupMenu();",
"public void createPopupMenu() {\n\t\tJPopupMenu popup = new JPopupMenu();\r\n\t\tmenuItem = new JMenuItem(\"刷新频道\");\r\n\t\tmenuItem.addActionListener(this);\r\n\t\tpopup.add(menuItem);\r\n\r\n\t\thideMenuItem = new JMenuItem(\"隐藏公共频道\");\r\n\t\thideMenuItem.addActionListener(thi... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
the function draws most of the game, links multiple functions | private void drawGame(){
drawBackGroundImage();
drawWalls();
drawPowerups();
drawBullet();
} | [
"protected abstract void drawGame();",
"public void draw()\r\n {\n \tif (won)\r\n \t{\r\n \t}else\r\n \t{\r\n\t canvas.clear();\r\n\t if (square.x() > 136 && square.x() < 164)\r\n\t {\r\n\t \tif (square.y() > 124 && square.y() < 172)\r\n\t \t{\r\n\t \t\twin... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Redirect print to logger | public static void setupLogger() {
System.setOut(createLoggingProxy(System.out));
System.setErr(createLoggingProxy(System.err));
} | [
"public void doLogging() {\n\t}",
"public static void setToClassicLogging() {\n removeHandlers();\n Handler ch = new StreamHandler(System.err, new JdrasilLogFormatter()) {\n @Override\n public synchronized void publish(final LogRecord record) {\n super.publish(re... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Container's getter for eventinterviewer_interviewer. | public ViewLinkImpl geteventinterviewer_interviewer() {
return (ViewLinkImpl) findViewLink("eventinterviewer_interviewer");
} | [
"public ViewObjectImpl getEventInterviewerDetails1() {\n return (ViewObjectImpl) findViewObject(\"EventInterviewerDetails1\");\n }",
"public String getInterviewerUserId() {\n\t\treturn interviewerUserId;\n\t}",
"public ViewObjectImpl getEventInterviewerDetailsVO1() {\n return (ViewObjectImpl) f... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
/ Goat Constructor Sets the default coin count of each color, the goat's color, the default wait time, and the default decision to pay being no. | public Goat(String color){
this.color = color;
this.blackCoins = 100;
this.whiteCoins = 100;
this.greyCoins = 100;
this.waitTime = 1;
this.willPay = false;
} | [
"public Guppy() {\n this(DEFAULT_GENUS, DEFAULT_SPECIES, 0, true, 0,\n DEFAULT_HEALTH_COEFFICIENT);\n }",
"public Jumper()\n {\n\t\t// set turn time and color\n turnTime = 5;\n safeGuard = 0;\n setColor(Color.BLUE);\n }",
"public CowMeat(){\n\t\tsuper(\"CowMea... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Unregister the callback formerly registered with the Predictive Back system. | private void unregisterBackCallback() {
if (mIsBackCallbackRegistered) {
ViewRootImpl viewRoot = getViewRootImpl();
if (viewRoot != null) {
viewRoot.getOnBackInvokedDispatcher().unregisterOnBackInvokedCallback(
mOnBackInvokedCallback);
... | [
"public void unregisterCallback() {\n if (mLocalManager == null) {\n Log.e(TAG, \"unregisterCallback() Bluetooth is not supported on this device\");\n return;\n }\n mLocalManager.setForegroundActivity(null);\n mLocalManager.getEventManager().unregisterCallback(this)... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
System.out.println ("In get11 pathParam " + beanParam.getPathParam()); | @GET
@Path("/get11/{pathparam1}")
@Produces(MediaType.TEXT_PLAIN)
public String get11(@BeanParam ParamBean beanParam, String entity) {
return ("In get11 - " + beanParam.getPathParam());
} | [
"String getParam();",
"java.lang.String getParam();",
"java.lang.String getParams1();",
"String getValParam();",
"java.lang.String getParam1();",
"java.lang.String getParam2();",
"java.lang.String getParams5();",
"java.lang.String getParams();",
"java.lang.String getParams2();",
"private void getP... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Finds all merged users and puts them into the output map. | public static Map<String, Set<String>> mergeAll(Map<String, Set<String>> inputMap) {
Map<String, Set<String>> outputMap = new LinkedHashMap<>();
/*get "adjacency list"*/
Set<User> users = getUsersAndLinks(inputMap);
Iterator<User> it = users.iterator();
while (it.hasNext()) {
... | [
"private void getAllUsers(HttpServletRequest request, HttpServletResponse response) \n\t{\n\t\tList<UserInterface> users = BeanManager.getAllUsers();\n\t\tUserWrapper userWrapper = new UserWrapper();\n\t\tList< Map<String, Object> > mapList = new ArrayList<>();\n\t\tString data = \"[]\";\n\t\t\n\t\tusers.stream()\n... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Convert tenths of seconds to a lessprecise humanreadable string (xx:xx) | public static String tenthsToStringShort(int time) {
// If we have negative time, just return zero
if ( time < 0 ) {
return "0:00";
}
int sec = (time / 10) % 60;
int min = (time / 10) / 60;
return String.format("%d:%02d", min, sec);
} | [
"public static String tenthsToString(int time) {\r\n\t\t// If we have negative time, just return zero\r\n\t\tif ( time < 0 ) {\r\n\t\t\treturn \"0:00.0\";\r\n\t\t}\r\n\t\t\r\n\t\tint tenths = time % 10;\r\n\t\tint sec = (time / 10) % 60;\r\n\t\tint min = (time / 10) / 60;\r\n\t\treturn String.format(\"%d:%02d.%d\",... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Check if passed class name is a byte code classname. | public static boolean isByteCodeClassName(String className) {
return ((className.startsWith("L") || className.startsWith("[")) && className.endsWith(";")
&& ((className.indexOf('/') != -1 || className.indexOf('.') == -1)));
} | [
"public static boolean isJavaClass(String name) {\n String className = name.replace(\".\", File.separator) + \".class\";\n URL classLoc = ClassLoader.getSystemClassLoader().getResource(className);\n return isJavaClass.test(classLoc,name);\n }",
"boolean shouldProcessClass(String className)... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
testBA1_4 1.4 CannotComplete The PA sends CannotComplete before completing its work on behalf of the activity. | public void testBA1_4()
throws Exception
{
final String conversationId = getConversationId() ;
final InteropWaitState state = new InteropWaitState(BusinessActivityConstants.WSBA_ACTION_NOT_COMPLETED) ;
ProxyConversation.setConversationState(conversationId, state) ;
try
... | [
"public void testBA1_9()\n throws Exception\n {\n final String conversationId = getConversationId() ;\n final BAInteropParticipantCompletedState state = new BAInteropParticipantCompletedState(BusinessActivityConstants.WSBA_ACTION_FAILED) ;\n ProxyConversation.setConversationState(conv... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Return the number of PropertyValue entries in the list. | public int size() {
return propertyValueList.size();
} | [
"public int getPropertyCount()\n {\n return _propertyList.size();\n }",
"public int getMetricPropertyCount()\n {\n return _metricPropertyList.size();\n }",
"public int getPropertyCount() {\n return (properties == null)? 0 : properties.size();\n }",
"int getPropertiesCount()... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
End of Gen_SendKeys(String data, String value) ===========password / 4 > Method to perform send keys operation for Only password | public static void Gen_SendPassword(String data, String value)
{
try
{
TestRunner.App_Log.debug("Password entered.");
TestRunner.driver.findElement(By.xpath(data)).click();
TestRunner.driver.findElement(By.xpath(data)).clear();
TestRunner.driver.findElement(By.xpath(data)).sendKeys(value);
... | [
"public void sendKeys(int... keys) {\n final int count = keys.length;\n final Instrumentation instrumentation = getInstrumentation();\n\n for (int i = 0; i < count; i++) {\n try {\n instrumentation.sendKeyDownUpSync(keys[i]);\n } catch (SecurityException e) ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Retrieves array of integers from decoding board. The conversion is given in the Pegs enum | public int[] getCodeMakerPegs() {
Color[] colors = decodingBoard.getCMakeRowColor();
return changeColorToInt(colors);
} | [
"private int[] getIntPebbleArray() {\r\n removeNulls();\r\n Object[] object = this.pebbles.toArray();\r\n int[] ints = new int[object.length]; //int array to hold value of each pebble\r\n \r\n for (int i = 0; i < object.length; i++) {\r\n Pebble pebble = (Pebble) object... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Creates a human readable string based on the time elapsed between startMillis and endMillis. | public static final String getReadableMillisShort(long startMillis, long endMillis) {
Duration d = Duration.between(Instant.ofEpochMilli(startMillis), Instant.ofEpochMilli(endMillis));
String days = d.toDays() > 9 ? String.valueOf(d.toDays()) : "0" + d.toDays();
String hours = d.toHours() - d.toDays() * 24 > 9... | [
"public static final String getReadableMillis(long startMillis, long endMillis) {\r\n\t\tStringBuilder sb = new StringBuilder();\r\n\t\tdouble elapsedSeconds = TimeUtil.getSecondsBetween(startMillis, endMillis);\r\n\t\tint elapsedSecs = TimeUtil.getSecondsBetween(startMillis, endMillis) % 60;\r\n\t\tint elapsedMinu... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Instantiates a new Http client register repository. | public HttpClientRegisterRepository(final ShenyuRegisterCenterConfig config) {
init(config);
} | [
"public HttpClientRegisterRepository() {\n }",
"public ClientRepositoryFactory() {\n this(new ClientAdapterFactory());\n }",
"Register createRegister();",
"public HalShopClient() {\n httpclient = createDefault();\n }",
"private static HttpClient createClient() {\n return HttpClient... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
END FIELDS Parameter is a variable in a method declaration; Argument is actual value passed to parameter For example, `integer' is a parameter of the constructor declared below, whereas the `3' in `new Java_Experiment_File(3)' is an argument Source: Constructor; Invoked upon instantiation of object from class Absence o... | public Java_Experiment_File(int integer) /* Declaration */ {
// Begin definition
// In this constructor, `this(1)' results in compile-time exception as it makes constructor recursive, which is *not* allowed!
F = integer;
System.out.println("Instance variable `F' is set to " + F + "!");
// NO `return' statements al... | [
"public FileParameter() { }",
"public JParameterRecord() {\n super(JParameter.PARAMETER);\n }",
"public VariableArityParameterDeclaration() {\n super();\n\r\n\r\n }",
"Parameter() {\n }",
"public Snippet visit(FormalParameterRest n, Snippet argu) {\n\t \n\t n.nodeToken.accep... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
$ANTLR end "rule__InterfaceDefinition__Group__1__Impl" $ANTLR start "rule__InterfaceDefinition__Group__2" ../org.ow2.mindEd.idt.editor.textual.ui/srcgen/org/ow2/mindEd/idt/editor/textual/ui/contentassist/antlr/internal/InternalFractalIdt.g:4794:1: rule__InterfaceDefinition__Group__2 : rule__InterfaceDefinition__Group__... | public final void rule__InterfaceDefinition__Group__2() throws RecognitionException {
int stackSize = keepStackSize();
try {
// ../org.ow2.mindEd.idt.editor.textual.ui/src-gen/org/ow2/mindEd/idt/editor/textual/ui/contentassist/antlr/internal/InternalFractalIdt.g:4798:1: ... | [
"public final void rule__InterfaceDefinition__Group__1() throws RecognitionException {\r\n\r\n \t\tint stackSize = keepStackSize();\r\n \r\n try {\r\n // ../org.ow2.mindEd.idt.editor.textual.ui/src-gen/org/ow2/mindEd/idt/editor/textual/ui/contentassist/antlr/internal/InternalFrac... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Generate function list for slip rate along fault | private void generateSlipRateAlongFaultFuncList(A_FaultSegmentedSourceGenerator segmentedSource,
UnsegmentedSource unsegmentedSource) {
this.slipRatesAlongFaultList = new ArrayList<ArbitrarilyDiscretizedFunc>();
slipRatesAlongFaultPlottingFeatures = new ArrayList<PlotCurveCharacterstics>();
slipRatesAlongF... | [
"private void generateSlipRateFuncList(A_FaultSegmentedSourceGenerator segmentedSource, \n\t\t\tUnsegmentedSource unsegmentedSource, FaultSegmentData faultSegmentData) {\n\t\tArbitrarilyDiscretizedFunc origSlipRateFunc = new ArbitrarilyDiscretizedFunc();\n\t\torigSlipRateFunc.setName(\"Orig Slip Rate\");\n\t\tArbit... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
$ANTLR end "rule__Panel__Group__2__Impl" $ANTLR start "rule__Panel__Group__3" InternalMyDsl.g:1976:1: rule__Panel__Group__3 : rule__Panel__Group__3__Impl rule__Panel__Group__4 ; | public final void rule__Panel__Group__3() throws RecognitionException {
int stackSize = keepStackSize();
try {
// InternalMyDsl.g:1980:1: ( rule__Panel__Group__3__Impl rule__Panel__Group__4 )
// InternalMyDsl.g:1981:2: rule__Panel__Group__3__Impl rule__Panel__Group__... | [
"public final void rule__Rules__Group__3() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \t\n try {\n // InternalDsl.g:8592:1: ( rule__Rules__Group__3__Impl rule__Rules__Group__4 )\n // InternalDsl.g:8593:2: rule__Rules__Group__3__Impl rule__Rule... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
/ amplification of org.apache.ibatis.builder.XmlMapperBuilderTestmappedStatementWithOptions | @org.junit.Test
public void mappedStatementWithOptions_literalMutation5_failAssert0_literalMutation12_failAssert1_literalMutation45() throws java.lang.Exception {
// AssertGenerator generate try/catch block with fail statement
try {
// AssertGenerator generate try/catch block with fail s... | [
"@org.junit.Test\n public void mappedStatementWithOptions_literalMutation5_failAssert0() throws java.lang.Exception {\n // AssertGenerator generate try/catch block with fail statement\n try {\n org.apache.ibatis.session.Configuration configuration = new org.apache.ibatis.session.Configur... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
find departure flights by airport code and date | public List<Flight> getDepartureFlights(String airportCode, String date) {
List<Flight> flights = new ArrayList<Flight>();
try {
Flight flight;
DateFormat formatter = new SimpleDateFormat("YYYY-MM-dd");
Date inputDate = formatter.parse(date);
for (int i = 0; i < this.flights.size(); i++) {
flight = ... | [
"public List<Flight> getArriveFlights(String airportCode, String date){\n\t\tList<Flight> flights = new ArrayList<Flight>();\n\t\ttry {\n\t\t\tFlight flight;\n\t\t\tDateFormat formatter = new SimpleDateFormat(\"YYYY-MM-dd\");\n\t\t\tDate inputDate = formatter.parse(date);\n\t\t\tfor (int i = 0; i < this.flights.siz... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Test of getParameters method, of class Eval. | @Test
public void testGetParameters() {
System.out.println("getParameters");
Eval instance = new Eval();
FunctionParameter[] result = instance.getParameters();
assertEquals(this.parameters[0].getValueType(), result[0].getValueType());
assertEquals(this.parameters[0]... | [
"Parameter[] getParameters();",
"public abstract String getParameters();",
"public PA getParameters();",
"public void testGetParam() {\n Map<String, String> map = context.getParam();\n assertTrue(\"The parameters do not contain a set value\", \"value1\"\n .equals(map.get(\"myParam... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Reacts to the cookie classes change calls enable on asociated action | public void propertyChange(PropertyChangeEvent ev) {
// filter only cookie classes changes
if (!Node.PROP_COOKIE.equals(ev.getPropertyName())) {
return;
}
// find asociated action
final CookieAction a = action.get();
if (a == null... | [
"public static void acceptCookies() {\n WebElement acceptButton = Browser.driver.findElement(ACCEPT_COOKIES_BUTTON);\n if(acceptButton.isDisplayed()){\n click(ACCEPT_COOKIES_BUTTON);\n }\n }",
"public void acceptCookies()\n {\n driver.findElement(By.xpath(\"//div[@... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Build cursor from an image name. | private Cursor buildCursor(String imgName) {
return buildCursor(imgName, false);
} | [
"public static Cursor buildCursor(String imgName, Point hotPoint) {\n if (Controller.getController().isMac()) {\n imgName += MAC_CURSOR_SUFFIX;\n } else if (Controller.getController().isWindows()) {\n imgName += WINDOWS_CURSOR_SUFFIX;\n } else {\n imgName += INA... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Removes the portfolio record from the database corresponding to the provided portfolioCode | public static void removePortfolio(String portfolioCode) {
conn = mySQL.connectToSQL();
int portfolioId = Database.getPortfolioId(portfolioCode, conn);
PreparedStatement ps =null;
try {
ps = conn.prepareStatement("delete from Account where portfolioId =?;");
ps.setInt(1, portfolioId);
ps.execute... | [
"public static void removePortfolio(String portfolioCode) {}",
"public static void removeAsset(String assetCode) {\n\t\t\tconn = mySQL.connectToSQL();\n\t\t\tint assetId = Database.getAssetId(assetCode,conn);\n\t\t\tPreparedStatement ps =null;\n\t\t\ttry {\n\t\t\t\tps = conn.prepareStatement(\"delete from Account... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
we load here all images to draw map when user clicks on client or deliverer, window appears with some details contains timer to refresh the map | public MapDisplay(Canvas mapCanvas, ImageView clientImageView, ImageView delivererImageView, ImageView moneyImageView, Text clientCountText, Text delivererCountText, Text moneyCountText){
//canvas = new Canvas(600,600);
this.canvas = mapCanvas;
clientsDataBaseSingleton = ClientsDataBaseSingleton... | [
"private void loadImage()\n {\n defaultImage = new Image(\"file:resources/map2.png\");\n height = (int)defaultImage.getHeight();\n width = (int)defaultImage.getWidth();\n\n displayedMap = new Canvas(width,height);\n double minScale = Math.min(600 / width,600 / height);\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
$ANTLR end "rule__AxiosRequest__Group__6__Impl" $ANTLR start "rule__AxiosRequest__Group__7" InternalMyDsl.g:12729:1: rule__AxiosRequest__Group__7 : rule__AxiosRequest__Group__7__Impl rule__AxiosRequest__Group__8 ; | public final void rule__AxiosRequest__Group__7() throws RecognitionException {
int stackSize = keepStackSize();
try {
// InternalMyDsl.g:12733:1: ( rule__AxiosRequest__Group__7__Impl rule__AxiosRequest__Group__8 )
// InternalMyDsl.g:12734:2: rule__AxiosRequest__Group... | [
"public final void rule__AxiosRequest__Group__7__Impl() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \t\n try {\n // InternalMyDsl.g:12745:1: ( ( ( rule__AxiosRequest__Group_7__0 )? ) )\n // InternalMyDsl.g:12746:1: ( ( rule__AxiosRequest__Group... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
$ANTLR end "ruleAttribute" $ANTLR start "entryRuleReference" ../metabup.mm.texteditor/srcgen/metabup/parser/antlr/internal/InternalMetamodelDSL.g:424:1: entryRuleReference returns [EObject current=null] : iv_ruleReference= ruleReference EOF ; | public final EObject entryRuleReference() throws RecognitionException {
EObject current = null;
EObject iv_ruleReference = null;
try {
// ../metabup.mm.texteditor/src-gen/metabup/parser/antlr/internal/InternalMetamodelDSL.g:425:2: (iv_ruleReference= ruleReference EOF )
... | [
"public final EObject entryRuleAttribute() throws RecognitionException {\n EObject current = null;\n\n EObject iv_ruleAttribute = null;\n\n\n try {\n // ../org.xtext.example.lmrc.entity/src-gen/org/xtext/example/lmrc/entity/parser/antlr/internal/InternalEntityDsl.g:206:2: (iv_ruleAtt... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Removes one of two listeners added before and and fires event by mean of object relation. Has OK status if the removed listener wasn't called. The following method tests are to be completed successfully before : addEventListener() : to have added listeners | public boolean _removeEventListener() {
list.notifiedEvent = null;
System.out.println("remove first listener");
oObj.removeEventListener(list);
System.out.println("fire event");
prod.fireEvent() ;
try {
Thread.sleep(500);
}
catch (Interrupt... | [
"private void testRemoveEventListener002() {\n\t\tDmtSession session = null;\n\t\ttry {\n\t\t\tDefaultTestBundleControl.log(\"#testRemoveEventListener002\");\n\t\t\tsession = tbc.getDmtAdmin().getSession(TestExecPluginActivator.ROOT,\n\t\t\t\t\tDmtSession.LOCK_TYPE_EXCLUSIVE);\n\t\t\t\n\t\t\t@SuppressWarnings(\"unu... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Completely remove the specified ItemStack | public boolean removeItemStack(ItemStack itemStack) {
boolean success = false;
if (this.ITEMS.contains(itemStack)) {
this.ITEMS.remove(itemStack);
success = true;
} else {
boolean containItem = false;
int index = 0;
for (ItemStack ite... | [
"public void removeItemStack(int index) {\r\n\t\titems.set(index, new ItemStack(new Nothing(), 0));\r\n\t}",
"void removeFromInventory(IEquipableItem item);",
"ItemStack removePage(EntityPlayer player, ItemStack itemstack, int index);",
"public void removeShopItem(int slot) throws ShopsystemException;",
"pu... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Paints the cells in all invalid rows, columns and subgrids red You have to call model.isValid() before calling this method to ensure, that the model is updated | public void updateValidationStatus() {
model.isValid();
for (int row = 0; row < model.getSudokuMatrix().length; row++) {
for (int col = 0; col < model.getSudokuMatrix()[0].length; col++) {
cells[row][col].setWrongNumber(model.getInvalidRows().contains(row) || model.getInvali... | [
"void Invalidate() \r\n { \r\n CellsStructureDirty = true;\r\n InvalidateMeasure(); \r\n }",
"protected void validateCell( int row, int column )\n {\n }",
"public void tableInvalidate() {\r\n runForAllRows(new GroupTableRowVisibilityRunner() {\r\n public void run(TableRowCore r... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
$ANTLR end "rule__XClosure__Group__0" $ANTLR start "rule__XClosure__Group__0__Impl" ../org.xtext.mongobeans.ui/srcgen/org/xtext/mongobeans/ui/contentassist/antlr/internal/InternalMongoBeans.g:8414:1: rule__XClosure__Group__0__Impl : ( ( rule__XClosure__Group_0__0 ) ) ; | public final void rule__XClosure__Group__0__Impl() throws RecognitionException {
int stackSize = keepStackSize();
try {
// ../org.xtext.mongobeans.ui/src-gen/org/xtext/mongobeans/ui/contentassist/antlr/internal/InternalMongoBeans.g:8418:1: ( ( ( rule__XClosure__Group_0__0 ) )... | [
"public final void rule__XClosure__Group_0__0() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.xtext.mongobeans.ui/src-gen/org/xtext/mongobeans/ui/contentassist/antlr/internal/InternalMongoBeans.g:8531:1: ( rule__XClosure__Group_0__0... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Returns the identifiers declared in rule complementaryRoles_PATH_1_GOAL_1_COMPONENT_txtParcela1_1 | private String[] getDeclaredIdentifiers_complementaryRoles_PATH_1_GOAL_1_COMPONENT_txtParcela1_1() {
return identifiers_complementaryRoles_PATH_1_GOAL_1_COMPONENT_txtParcela1_1;
} | [
"private String[] getDeclaredIdentifiers_complementaryRoles_PATH_2_GOAL_5_COMPONENT_txtParcela1_14() {\r\n return identifiers_complementaryRoles_PATH_2_GOAL_5_COMPONENT_txtParcela1_14;\r\n }",
"private String[] getDeclaredIdentifiers_constrainInterpretation01_PATH_1_GOAL_1_COMPONENT_txtParcela1_0() {\r... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Initialise and show gallery selection bottom sheet | private void OpenGallery() {
BSImagePicker addGalleryFrag = new BSImagePicker.Builder(getString(R.string.gallery_provider_authority))
.setSpanCount(3)
.setGridSpacing(0)
.setPeekHeight(Utility.dpToPx(500))
.hideCameraTile()
.hideGal... | [
"private void setGalleryDisplay() {\n // ArrayList<model.Photo> photos = model.DirectoryManager.getTree().getDir().getPhotos();\n ArrayList<Photo> photos = User.getGalleryPhotos();\n if (photos != null) {\n for (model.Photo photo : photos) {\n Image imageOrigin = new Image(\"File:\" + photo.get... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Gets the POAutoApprovalLimit value for this Account. | public java.lang.String getPOAutoApprovalLimit() {
return POAutoApprovalLimit;
} | [
"public void setPOAutoApprovalLimit(java.lang.String POAutoApprovalLimit) {\n this.POAutoApprovalLimit = POAutoApprovalLimit;\n }",
"public java.lang.String getCreditAutoApprovalLimit() {\n return creditAutoApprovalLimit;\n }",
"public int getLimit(){\n return ACCOUNT_LIMIT;\n }",
... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
use it to access to the wizard "New definition..." (menu DEvelopement>Connectors>New definition...) | public static void activateConnectorDefinitionShell(SWTBot bot) {
bot.waitUntil(Conditions.widgetIsEnabled(bot.menu("Development")),10000);
bot.menu("Development").menu("Connectors").menu("New definition...")
.click();
bot.waitUntil(Conditions.shellIsActive("New definition..."),1... | [
"private void addNewConnection() {\n\t\t IWizard wizard = new NewJmxConnectionWizard();\n\t\t WizardDialog dialog = new WizardDialog(PlatformUI.getWorkbench().getActiveWorkbenchWindow().getShell(), wizard);\n\t\t dialog.open();\n\t\t\n\t}",
"public void initContactCreation() {\n click(By.linkText(\"add... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Calculates the battle value of this platoon. | public int calculateBattleValue(boolean ignoreC3, boolean ignorePilot,
boolean singleTrooper) {
if (useManualBV) {
return manualBV;
}
// we do this per trooper, then add up
double squadBV = 0;
for (int i = 1; i < locations(); i++) {
if (this.ge... | [
"@Override\n public int calculateBattleValue() {\n return calculateBattleValue(false, false);\n }",
"@Override\n public int calculateBattleValue(boolean ignoreC3, boolean ignorePilot) {\n\n bvText = new StringBuffer(\"<HTML><BODY><CENTER><b>Battle Value Calculations For \");\n\n bvTe... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
A GitletException MSG as its message. | GitletException(String msg) {
super(msg);
} | [
"@Override\n public String getMessage() {\n return \"EXCEPTIONID \" + getId() + \": \" + super.getMessage();\n }",
"java.lang.String getExMessage();",
"public String getMessage() {\n\t\tswitch (exceptionType) {\n\t\tcase 0:\n\t\t\treturn \"File not found\";\n\t\tdefault:\n\t\t\treturn \"Unkown erro... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Returns the value of the 'Is Component Instance Of' attribute. Specifies the property path to test for existence, e.g., whether the property may be set or queried. This is independent of whether the property is actually set. The attribute takes a property path (e.g. "flag", "[parent].flag", ...) Results in a 'true' or ... | String getIsComponentInstanceOf(); | [
"public boolean isProperty();",
"Object getPropertyexists();",
"public static boolean hasInstanceInfo(String aNodePath) {\r\n return aNodePath.indexOf(\"instance()\") != -1; //$NON-NLS-1$\r\n }",
"public boolean hasValueComponent();",
"private boolean isInstanceLocationSet() {\n \t\tActivator acti... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
This test checks that the AW_2010_AttenRel object throws a warning exception when a magnitude value < 5 is passed. In this test, the point source is defined with magnitude 4.0 (too low). The average rake is not needed by the IPE but is used to define the EqkRupture object. Hypocenter coordinates are lat, lon, depth in ... | @Test(expected = org.opensha.commons.exceptions.WarningException.class)
public void magnitudeValueTooSmall() {
double mag = 4.0;
double aveRake = 0.0;
Location hypo = new Location(0.0, 0.0, 5.0);
EqkRupture rup = getPointEqkRupture(mag, hypo, aveRake);
aw_2010_AttenRel.setEqk... | [
"@Test(expected = org.opensha.commons.exceptions.WarningException.class)\n public void magnitudeValueTooLarge() {\n double mag = 9.0;\n double aveRake = 0.0;\n Location hypo = new Location(0.0, 0.0, 5.0);\n EqkRupture rup = getPointEqkRupture(mag, hypo, aveRake);\n aw_2010_Atte... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Returns expression to be evaluated for given output field. This method is meant to be used for properties.xml file where map should be set using BeanUtils constructs. | public String getExpressionMap(String field)
{
return (this.expressionMap != null) ? this.expressionMap.get(field) : null;
} | [
"@JsonProperty(\"output_field\")\n@ApiModelProperty(value = \"An OutputField for this mapping.\")\n public OutputField getOutputField() {\n return outputField;\n }",
"private static final Object outputField(int fieldN, RTRecordValue recordDictionary, RTRecordValue xRecord, RTExecutionContext $ec) throws CALE... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
a method which accepts a patient for treatment during a visit. The call of this method is initiated by a user with rights of doctor of the admitting department or higher | boolean acceptPatientForTreatment(String visitId, AuthUser user)
throws DaoException; | [
"Visit ensureActiveVisit(Patient patient, Location department);",
"public void assignDoctorToPatient()\n {\n int healthNumber = ioInterface.readInt(\"Enter the health number of the patient: \");\n String name = ioInterface.readString(\"Enter the name of the doctor: \");\n\n AssignDoctor cm... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
$ANTLR end "rule__XSwitchExpression__Group_2_1__1__Impl" $ANTLR start "rule__XSwitchExpression__Group_2_1__2" ../org.xtext.example.rmodp.ui/srcgen/org/xtext/example/rmodp/ui/contentassist/antlr/internal/InternalRmOdp.g:22051:1: rule__XSwitchExpression__Group_2_1__2 : rule__XSwitchExpression__Group_2_1__2__Impl ; | public final void rule__XSwitchExpression__Group_2_1__2() throws RecognitionException {
int stackSize = keepStackSize();
try {
// ../org.xtext.example.rmodp.ui/src-gen/org/xtext/example/rmodp/ui/contentassist/antlr/internal/InternalRmOdp.g:22055:1: ( rule__XSwitchExpress... | [
"public final void rule__XSwitchExpression__Group_2_1_0_0__2() throws RecognitionException {\r\n\r\n \t\tint stackSize = keepStackSize();\r\n \r\n try {\r\n // ../org.xtext.example.rmodp.ui/src-gen/org/xtext/example/rmodp/ui/contentassist/antlr/internal/InternalRmOdp.g:22181:1: (... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Constructs a new DAOException exception with the specified cause and a detail message of (cause==null ? null : cause.toString()) (which typically contains the class and detail message of cause). | public DAOException(Throwable cause) {
super(cause);
} | [
"public DAOException(String reason, Throwable cause) {\n super(reason, cause);\n }",
"public RDISException(String msg, Exception cause) {\n\t\tmMessage = msg;\n\t\tmCause = cause;\n\t}",
"public DAOException(String message, String... params)\r\n {\r\n super(message, params);\r\n }",
"public Acot... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Search a node with given value. if this Node has children, 50% to continue the search. Return random child if not found valued child. | public Node searchSubTreeByValue(String value){
ArrayList<Node> childNodes = new ArrayList<Node>();
childNodes = this.getChildren(); // get children
lastFounded = null;
for(Node resNode : childNodes){ // for each child
if(resNode.value.equals(value)){ // if we find the searched value
if(resNode.getChildr... | [
"public TreeNode find(int value) {\r\n \tQueue<TreeNode> queue = new java.util.LinkedList<TreeNode>();\r\n queue.offer(this.root);\r\n while (!queue.isEmpty()) {\r\n TreeNode node = (TreeNode) queue.poll();\r\n \tif (node.getValue()==value) {\r\n \t\treturn node;\r\... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
The crop box for the document or for a given page. Optional; if present, the value of this key must be a CFData containing a CGRect (stored by value, not by reference). APISince: 2.0 | @NotNull
@Generated
@CVariable()
public static native CFStringRef kCGPDFContextCropBox(); | [
"Rectangle2D getCropBox() {\r\n\t\t\tif (cropBox == null) {\r\n\t\t\t\tObject obj = getData().get(KEY_CROP_BOX);\r\n\t\t\t\t//if null, then first check the parents to see if this attribute is defined somewhere above in the heiarchy. If not,\r\n\t\t\t\t//then default to the mediaBox.\r\n\t\t\t\tif (obj == null) {\r\... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
EFFECTS: converts Schedule to JSON object | public JSONObject scheduleToJson() {
JSONObject json = new JSONObject();
json.put("start", start);
json.put("end", end);
json.put("scheduledBlocks", scheduledBlocksToJson());
return json;
} | [
"public void exportSchedule() {\r\n // Get valid file name from user\r\n String fileName = getFileName();\r\n\r\n try {\r\n // Open file\r\n FileWriter fileWriter = new FileWriter(fileName);\r\n\r\n JSONArray jsonArray = new JSONArray();\r\n\r\n // It... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
$ANTLR end "rule__XEqualityExpression__Group_1__1" $ANTLR start "rule__XEqualityExpression__Group_1__1__Impl" ../org.xtext.example.helloxcore.ui/srcgen/org/xtext/example/helloxcore/ui/contentassist/antlr/internal/InternalHelloXcore.g:4367:1: rule__XEqualityExpression__Group_1__1__Impl : ( ( rule__XEqualityExpression__R... | public final void rule__XEqualityExpression__Group_1__1__Impl() throws RecognitionException {
int stackSize = keepStackSize();
try {
// ../org.xtext.example.helloxcore.ui/src-gen/org/xtext/example/helloxcore/ui/contentassist/antlr/internal/InternalHelloXcore.g:4371:1: ( ( ( r... | [
"public final void rule__XEqualityExpression__Group_1_0__0__Impl() throws RecognitionException {\r\n\r\n \t\tint stackSize = keepStackSize();\r\n \r\n try {\r\n // ../org.xtext.example.rmodp.ui/src-gen/org/xtext/example/rmodp/ui/contentassist/antlr/internal/InternalRmOdp.g:18076:... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Applies one step in the folding process. | public boolean applyFolding( int top ) throws VerificationException
{
if( length == 0 ){
return false;
}
StepList steps = selectBestSteps( top );
// For now, just pick the best move.
Step mv = steps.getBestStep();
if( mv != null && mv.getGain()>0... | [
"public void reconcile()\n {\n if (! isFoldingEnabled()) { return; }\n\n try\n {\n IAnnotationModel annotations = getAnnotations();\n if (annotations == null) { return; }\n\n Set tuples = computeFoldPositions();\n\n removeFolds(tuples);\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Delete the empresa by id. | public void delete(Long id) {
log.debug("Request to delete Empresa : {}", id);
empresaRepository.deleteById(id);
} | [
"@Override\n public void delete(Long id) {\n log.debug(\"Request to delete Empresas : {}\", id);\n empresasRepository.deleteById(id);\n }",
"public void delete(Long id) {\n log.debug(\"Request to delete Carrera_etapa : {}\", id);\n carrera_etapaRepository.delete(id);\n }",
"... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Execute the "getUserActivityList" function and store its results in a List | public List<uclm.esi.cardroid.data.oracle.UserActivity> getUserActivityList(
uclm.esi.cardroid.data.oracle.User usr, Current current) {
return resultSetToList(getUserActivity(usr, current),
uclm.esi.cardroid.data.oracle.UserActivity.class);
} | [
"com.google.ads.googleads.v0.common.UserListInfo getUserList();",
"java.util.List<SteamMsgGameNotifications.CGameNotifications_UserStatus> \n getUsersList();",
"com.google.ads.googleads.v6.resources.UserList getUserList();",
"com.google.ads.googleads.v1.resources.UserList getUserList();",
"java.util.... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Updates the ability hotbar to display the current hero's abilities | public void updateAbilityHotbar() {
controller.getUIController().refreshAbilityHotbar();
} | [
"public void abilityOne() {\n ability(map.getCurrentTurnHero().getAbilities().get(0));\n }",
"void onAttackButtonClicked() {\n combatView.showWeaponList(Arrays.asList(GameManager.getPlayer().getEquippedWeapons()));\n }",
"public void updateHealth() {\n\t\tint counter = numberOfShips();\n\t\t... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Find if session data (more than just the header information) exists for a session with the provided Id. | public final boolean sessionDataExists(UUID sessionId) throws IOException {
synchronized (this.lock) {
ensureCacheLoaded();
return this.sessionCache.containsKey(sessionId);
}
} | [
"public final boolean sessionDataExists(UUID sessionId, UUID fileId) throws IOException {\n\t\tsynchronized (this.lock) {\n\t\t\tensureCacheLoaded();\n\n\t\t\tFile fragmentFileInfo = null;\n\n\t\t\tSessionFileInfo<File> sessionFileInfo;\n\t\t\tif (this.sessionCache.containsKey(sessionId)) {\n\t\t\t\tsessionFileInfo... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
This method open new DataActivity. | public void loadDataActivity (View v) {
Intent intent = new Intent(MainActivity.this, DataActivity.class);
startActivity(intent);
} | [
"private void startViewData() {\n startActivity(new Intent(this, ViewDataActivity.class));\n }",
"private void createActivityData() {\n\t\tActivity dtoActivity = new Activity();\r\n\t\tdtoActivity.setActivityCode(1L);\r\n\t\tdtoActivity.setData(\"someString\", \"string value\");\r\n\t\tdtoActivity.setDa... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Click the 'Local Disk (C:)' button in File Explorer | public void clickLocalDiskButton() {
localDiskButton.click();
} | [
"public void clickMinimizeFileExplorerButton() {\n\t\tminimizeFileExplorerButton.click();\n\t}",
"public void openFileExplorer() {\n\t\tfileExplorerTaskbarButton.click();\n\t}",
"public void clickTreeViewButton() {\n\t\tfilePicker.stickyButton(locTreeBtn);\n\t}",
"public void clickOnFile(String file) {\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
fetchData method to retrieve test data for specified method | @DataProvider(name = "json")
public static Object[][] fetchData(Method method) throws Exception {
Object rowID, description;
Object[][] result;
testCaseName = method.getName();
List<JSONObject> testDataList = new ArrayList<>();
JSONArray testData = (JSONArray) extractDataJSON... | [
"@DataProvider(name=\"testData\")\n\tpublic static Object[][] supplyDataForIterations(Method m) throws IOException{\n\t\treturn getDataForDataprovider(ReadPropertyFile.get(\"TestDataLocation\"),ReadPropertyFile.get(\"TestDataSheet\"),m.getName());\n\t}",
"@Test\n public void testDownloadDataset() {\n }",
... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
WHEN: all contributor types are fetched | @Test
public void getAllContributorTypesReturnsAllExistingTypesWithNames() {
List<ContributorType> results = contributorDao.getAllContributorTypes();
// THEN: all expected types are returned
assertEquals(7, results.size());
// AND: all contain a name
results.forEach(result -> assertNotNull(result... | [
"@Test\r\n\tpublic void testGetContributors() {\r\n\t\tcm = Contributormanager.getInstance();\r\n\t\tassertTrue(cm.addContributor(\"Chris\"));\r\n\t\tassertTrue(cm.addContributor(\"Anna\"));\r\n\t\tObservableList<Contributor> con = cm.getContributors();\r\n\t\tfor(Contributor c:con) {\r\n\t\t\tassertTrue(cm.getCont... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Searches for a protein with the given Uniprot ID. | ProteinCurrent searchByID(String uniprotID); | [
"ProteinCurrent searchByName(String proteinName);",
"ProteinCurrent searchByPDB(String pdbID);",
"private static void search(String sequenceIDP) throws IOException {\r\n Handle[] searchSequence = hashTable.search(sequenceIDP);\r\n\r\n // If the given sequenceID is not found in the hash table\r\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Builds the list of new values (1 for the resolved state and 0 otherwise) under request | public List<Float> getNewValues() {
//need to use this, because we cannot retrieve what was the number of states of this question locally...
StatePair statePair = getResolvedQuestions().get(questionId);
if (statePair == null) {
return null;
}
List<Float> ret = new ArrayList<Float>(statePair.get... | [
"java.util.List<java.lang.Integer> getRequestedValuesList();",
"private BinStatusUpdate buildNewStatus() {\n return BinStatusUpdate.newBuilder()\n .setAmount(StuffAmount.newBuilder().setStuffAmount(bin.getStuffAmount()).build())\n .setStuff(Stuff.newBuilder().setStuffName(bin.... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
return this.codigo.compareTo(est.getCodigo()); return est.getCodigo().compareTo(this.codigo); | public int compareTo(Estudiante est){
return this.apellidos.compareTo(est.getApellidos());
} | [
"@Override\n public int compareTo(Carte o) {\n if (this.nrPagini < o.nrPagini)\n return -1;\n if (this.nrPagini > o.nrPagini)\n return 1;\n return 0;\n }",
"@Test\r\n public void testCompareTo() {\r\n Articulo art = new Articulo();\r\n art.setCanti... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Converts a collection of Strings to a comma separated String | public static String convertSetOfStringsToCommaSeparated(Set<String> strings){
if(strings == null || strings.size() == 0)
return "";
StringBuffer sb = new StringBuffer();
for (String string : strings) {
sb.append(string);
sb.append(",");
}
// Remove last comma and return
return sb.toString().sub... | [
"public static String collectionToCommaSeparatedString(Collection<String> elementCollection) {\n return String.join(\",\", elementCollection);\n }",
"private String convertListToCommaDelimitedString(List<String> list) {\n\n\t\tString result = \"\";\n\t\tif (list != null) {\n\t\t\tresult = StringUtils.ar... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
allows human player to decided whether to call trump on first round | private boolean playerTrumpFirstRound(Player p) {
p.printHand();
while (true) {
System.out.println("Call trump? (y/n)");
String answer = scan.next();
if (answer.equals("y")) {
System.out.println();
return true;
} else if (an... | [
"private boolean cpuTrumpFirstRound(Player p){\n if(players.indexOf(p) == 1 || players.indexOf(p) == 3) {\n return p.trumpFirstRound(faceUp.getSuit(), faceUp);\n }\n return p.trumpFirstRound(faceUp.getSuit());\n }",
"public void callTrump(int timesAround){\n Pair<Suit, Boolea... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Returns the actual FileObject for the given DataObject | private FileObject getFileObjectFrom(DataObject dataObject) {
if (dataObject == null) {
return null;
}
if (dataObject instanceof DataShadow){
dataObject = ((DataShadow) dataObject).getOriginal();
}
return dataObject.getPrimaryFile();
} | [
"public Object getObject() {\n\t\treturn datafile;\n\t}",
"public JavaFileObject fileObject() {\n return fileObject;\n }",
"@Transient\n\tpublic File getFileObj() {\n\t\treturn fileObj;\n\t}",
"public java.lang.String getObjectFile() {\n java.lang.Object ref = objectFile_;\n if (ref instanceof java.... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Instantiates a new node list wrapper. | public NodeListWrapper(NodeList list, Class<E> theClass) {
this.theIterator = new NodeListIterator(list);
this.theClassE = theClass;
try {
this.theConstructor = this.theClassE.getConstructor(NodeListWrapper.theElement);
} catch (SecurityException e) {
e.printStackTrace();
} catch (NoSuchMethodExc... | [
"protected ListNodesNodeModel() {\r\n this(0, 1);\r\n }",
"protected LRUList createList() {return new LRUList();}",
"public SLList() {\n\t\tsentinel = new Node(null, null);\n\t\tsize = 0;\n\t}",
"public SLList(){\n sentinel = new Node(0000, null);\n size = 0;\n }",
"public ListNod... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Interface for errors concerning a uniprot entry rather than specific intact proteins | public interface UniprotUpdateError extends ProteinUpdateError {
String getUniprotAc();
} | [
"protected abstract String errorInfo();",
"void notSupported(String errorcode);",
"public interface BaseErrors {\n String getCode();\n\n String getMsg();\n}",
"java.lang.String getErr();",
"WorldUps.UErr getError(int index);",
"public void correctErrors();",
"public interface ErrorInterpreter {\n\... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |