query stringlengths 8 1.54M | document stringlengths 9 312k | negatives listlengths 19 20 | metadata dict |
|---|---|---|---|
Methode liefert Boardvalue zurueck | public abstract int getBoardValue(); | [
"void setBoard(int x, int y, int val);",
"public int getPieceValue(){return this.pieceType.getPieceValue();}",
"private Board getBoard() {\n return gameStatus.getBoard();\n }",
"public abstract T getBoard();",
"static int evaluateBoard(FieldPosition[][] board){\r\n int value = 0;\r\n\r\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Compares specified modes for strict equality, handling null values. | public static boolean isSameMode(LarvaBehaviorMode left,
LarvaBehaviorMode right) {
return ((left != null) && left.equals(right)) ||
((left == null) && (right == null));
} | [
"public final void testNullObjectEquals() {\n assertFalse(testTransaction1.equals(null)); // needed for test\n // pmd doesn't like either way\n }",
"private boolean equalValues(Object obj1, Object obj2) {\n \t\treturn (obj1 == null && obj2 == null) || (obj1 != null\t&& obj1.equals(obj2));\n \t}",... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
/ (non Javadoc) Title: enableScanningOnOff Description: | @Override
protected int _enableScanningOnOff(boolean onOff) throws NotOpenSerialException,
SerialPortErrorException,
SendTimeoutException,
RecvTimeoutException,
ResponseCodeException,
ProtocolParsingException {
return 0;
} | [
"@Override\r\n\tprotected int _oneDScanningOnOff(boolean onOff) throws NotOpenSerialException, \r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t SerialPortErrorException, \r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t SendTimeoutException, \r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t RecvTimeoutException, \r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t ResponseCod... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Determines whether a string represents a valid "domain" starting from an index. Domain syntax is specified in WMA 2.0 spec as 1(atom | "[" (text w/o ",[,],\r but with linear space | "\"alpha) "]") where atom is represented by at least one char or more which is not a space or a special or control character. | private static int isDomain(String s, int i, int n) {
return isSequenceOfAtomAndText(s, i, n, '[', ']', true);
} | [
"private boolean isValidDomain(String domain) {\r\n\t\tif (domain.length() >= 3) {\r\n\t\t\tString[] tokens = domain.split(\"\\\\.\");\r\n\t\t\tif (Character.isLetter(tokens[0].charAt(0)) && tokens.length >= 2\r\n\t\t\t\t\t&& tokens[0].length() >= 0 && tokens[1].length() >= 0)\r\n\t\t\t\treturn true;\r\n\t\t}\r\n\t... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
$ANTLR end "rule__ConditionalStatement__Group__5" $ANTLR start "rule__ConditionalStatement__Group__5__Impl" ../br.com.levysiqueira.dsl.textualusecase.ui/srcgen/br/com/levysiqueira/dsl/textualusecase/ui/contentassist/antlr/internal/InternalTextualUseCase.g:2449:1: rule__ConditionalStatement__Group__5__Impl : ( ( ( rule_... | public final void rule__ConditionalStatement__Group__5__Impl() throws RecognitionException {
int stackSize = keepStackSize();
try {
// ../br.com.levysiqueira.dsl.textualusecase.ui/src-gen/br/com/levysiqueira/dsl/textualusecase/ui/contentassist/antlr/internal/InternalTextualUs... | [
"public final void rule__ConditionalStatement__Group__5() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../br.com.levysiqueira.dsl.textualusecase.ui/src-gen/br/com/levysiqueira/dsl/textualusecase/ui/contentassist/antlr/internal/InternalTex... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Dispatches a truck from HOME and takes care of all TruckSend and TruckArrival events. | void sendTruck(Truck truck) {
sendTruck(dispatchTime, Simulator.HOME, truck);
} | [
"@Override\n public void accept(Visitor visitor) {\n visitor.visitTruck(this);\n }",
"private void moveVehicle() {\n if (towedByConnection == null || !towedByConnection.hitchConnection.mounted) {\n //First, update the vehicle ground device boxes.\n world.beginProfiling(\"... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Create DOM from InputStream | private Document getDOMFromInputStream(InputStream inputStream,
ArrayList<String> errorList) {
System.out.println("Create DOM from InputStream.....");
Document document = null;
DocumentBuilderFactory dbf = DocumentBuilderFactory.newInstance();
dbf.setNamespaceAware(true);
dbf.setIgnoringElementContentWhite... | [
"public static Document createDOMDocumentFromXmlStream(InputStream inStream)\n throws ParserConfigurationException, IOException, SAXException {\n\n DocumentBuilder documentBuilder = DocumentBuilderFactory.newInstance().newDocumentBuilder();\n Document xmlDocument = documentBuilder.parse(inS... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Calculates the logarithm of Odds ratio. | static double calLogOdds(int countAw, int countAm, int countBw, int countBm) {
return round(Math.log((correctContinuous(countAm) * correctContinuous(countBw))
/ (correctContinuous(countAw) * correctContinuous(countBm))));
} | [
"static double calVarLogOdds(int countAw, int countAm, int countBw, int countBm) {\n return round(1/correctContinuous(countAw) + 1/correctContinuous(countAm)\n + 1/correctContinuous(countBw) + 1/correctContinuous(countBm));\n }",
"private double log(int x, int base){\r\n\t return (Mat... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Helper function to check valid fd | private boolean isFDValid(int fd) {
if(fd < 0 || fd >= this.fileTable.length) {
return false;
}
if(fileTable[fd] == null && pipeFdTable[fd] == null) {
return false;
}
return true;
} | [
"private static int check_fd(int fd) {\n // look for the file descriptor in the open file list\n if (fd < 0 ||\n fd >= process.openFiles.length ||\n process.openFiles[fd] == null) {\n // return (EBADF) if file descriptor is invalid\n process.errno = EBADF;\n return -1;\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Returns number of "Userfield" element | public int sizeOfUserFieldArray()
{
synchronized (monitor())
{
check_orphaned();
return get_store().count_elements(USERFIELD$0);
}
} | [
"public int getUserCount()\n\t{\n\t\tint ret = -1;\n\t\ttry {\n\t\t\tret = Integer.parseInt(userCount.getTextContent());\n\t\t}\n\t\tcatch (Exception e) {\n\t\t\tlogger.warn(\"Could not parse user-count field\");\n\t\t}\n\t\treturn ret;\n\t}",
"public void _getUserFieldCount() {\n fieldCount = oObj.getUser... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Adds a list of new Include objects at the end of the list. | public boolean addInclude(Collection coInclude)
{
if (coInclude == null)
return false;
java.util.Iterator it = coInclude.iterator();
while (it.hasNext())
{
Object obj = it.next();
if (obj != null && obj instanceof AbstractBpssModel)
((AbstractBpssModel)obj).setParent(t... | [
"Includes getIncludeObjects();",
"public ArrayList<Include> includes() {\n return null;\n }",
"private void includeListAdd()\n {\n assert selectedJobId != 0;\n\n EntryTypes[] entryType = new EntryTypes[]{EntryTypes.FILE};\n String[] pattern = new String[1];\n if (includeEdit(entryTy... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Method to go to Ingredient screen | public void ingredient() {
Intent intent = new Intent(this, IngredientInput.class);
startActivity(intent);
} | [
"@Override\n public void onClick(View view) {\n int currentIngredientId = currentIngredient.getId();\n\n Intent intent = new Intent(mContext, IngredientDetailActivity.class);\n intent.putExtra(\"currentIngredientId\", currentIngredientId);\n mCo... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Initializes the MasterController, attributing a GunDirect to aGunDirect variable, a GunButton to aGunButton variable and a Moving to aMoving variable. | public MasterController(){
aViewController = new ViewController(this);
aMoving = new MatMoving();
} | [
"public DinaBOTMaster() {\n \t\todometer = new ArcOdometer(left_motor, right_motor);\n \t\tmovement = new BasicMovement(odometer, left_motor, right_motor);\n \t\tslave_connection = new BTMaster();\n \t}",
"public Controller()\n\t{\n\t\tthis.actuators = new ArrayList<>();\n\t\tthis.sensors = new ArrayList<>();\n\t... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Remove a list of users from include group of grouping at path. | @PostMapping(value = "/{groupingPath}/{usersToDelete}/removeMembersFromIncludeGroup")
public ResponseEntity<String> removeMembersFromIncludeGroup(Principal principal,
@PathVariable String groupingPath,
@PathVariable String usersToDelete) {
logger.info("Entered REST deleteMembersFromI... | [
"void removeFromGroups ( UUID userId, Set<UUID> groupIds ) throws FileshareException;",
"public Group removeUsersFromGroup(String group , Collection<String> users) throws IdentityProviderException;",
"void removeUsersFromTeam(long teamId, List<Long> userIds);",
"public void removeRafUserGroupMembershipList(Li... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Retrieves an attribute from the given response | @Nullable
A attributeOf(ClientHttpResponse response) throws IOException; | [
"Object getAttribute(String name);",
"Attribute getAttribute();",
"String getAttribute(String attribute);",
"public String getAttribute(String name);",
"public Attribute fetchAttribute(String key, String value);",
"public static String validateAttributeFromResponse() {\r\n\t\tString value = readPropertyVa... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Return true to display that the perk's modifiers got disabled by pack's configurations | public boolean modifiersDisabled(PlayerEntity player, LogicalSide dist) {
ASRegistryEvents.PerkDisable event = new ASRegistryEvents.PerkDisable(this, player, dist);
MinecraftForge.EVENT_BUS.post(event);
return event.isPerkDisabled();
} | [
"boolean hasAppliedModifier();",
"@gw.internal.gosu.parser.ExtendedProperty\n public java.lang.Boolean isIsModifier();",
"public boolean isModifier() {\n return mask != 0;\n }",
"boolean isModifier();",
"boolean isDisabled();",
"final public boolean isDisabled()\n {\n return ComponentUtils.... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Get all portfolios. Get all portfolios in a scope. | public Object listPortfolios(String scope) {
return listPortfoliosWithServiceResponseAsync(scope).toBlocking().single().body();
} | [
"public Observable<ServiceResponse<Object>> listPortfoliosWithServiceResponseAsync(String scope) {\n if (scope == null) {\n throw new IllegalArgumentException(\"Parameter scope is required and cannot be null.\");\n }\n final DateTime effectiveAt = null;\n final DateTime asAt =... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Is a given remote "on or after" time valid? In other words, is it possible that the remote "on or after" time is greater than the remote "now" time? | public static boolean isRemoteOnOrAfterTimeValid(long onOrAfter, long now) {
return onOrAfter + CLOCK_SKEW_TIME > now;
} | [
"boolean hasValidUntilTime();",
"public static boolean isRemoteBeforeTimeValid(long before, long now) {\n return before - CLOCK_SKEW_TIME <= now;\n }",
"boolean hasOnlineTime();",
"public boolean after(MDate md) { return time>md.time;}",
"boolean hasReceiveTime();",
"private boolean givenGreaterThanSy... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Returns the urls for this configuration. | public List<String> getUrls()
{
return getRequest().getUrls();
} | [
"public List<String> urls() {\n return this.innerProperties() == null ? null : this.innerProperties().urls();\n }",
"public List<String> getUrls() {\n\t\treturn urls;\n\t}",
"public String[] getUrls() {\n\t\treturn null;\n\t}",
"List<URL> getRequireConfigurationsURLs();",
"public Collection<String... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Get method for struct member 'spec_fac'. | public float getSpec_fac() throws IOException
{
if ((__io__pointersize == 8)) {
return __io__block.readFloat(__io__address + 408);
} else {
return __io__block.readFloat(__io__address + 356);
}
} | [
"String getFactor();",
"public String getSpecName();",
"public String getSpec() {\n return spec;\n }",
"String getSpecType();",
"public BigDecimal getFACILITY_REF()\r\n {\r\n\treturn FACILITY_REF;\r\n }",
"public BigDecimal getFACILITY_NUMBER()\r\n {\r\n\treturn FACILITY_NUMBER;\r\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
get all thread feedbacks of a customer | public List<Feedback> getAllReplysByThreadId(Integer threadId); | [
"List<CustomerFeedbackReviewData> getCustomerFeedbackReviewsForCustomer(String customerId);",
"TopicData[] getThreads(int categoryID);",
"List<Feedback> getAllFeedback();",
"Collection<Feedback> getAllFeedbacks();",
"public ArrayList<FeedbackDetail> gettingAllAvailableFeedbacks() throws Exception;",
"publ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
End of Test 8 This tests the first normal scenario (Customer comes in and order a list of items) when out of ALL items wanted | public void testNineNormalCustomerOutOfItemsScenario1()
{
// Set up
cashier.setPerson(person);
customer1.cashier = cashier;
employee1.cashier = cashier;
cashier.setEmployees(employee1, 10, true);
cashier.setEmployees(employee2, 10, false);
cashier.setMarketState(true);
cashier.setSalary(10);
cashier.... | [
"public void testSevenNormalCustomerOutOfItemsScenario1()\n\t{\n\t\t// Set up\n\t\tcashier.setPerson(person);\n\t\tcustomer1.cashier = cashier;\n\t\temployee1.cashier = cashier;\n\t\tcashier.setEmployees(employee1, 10, true);\n\t\tcashier.setEmployees(employee2, 10, false);\n\t\tcashier.setMarketState(true);\n\t\tc... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
to get a list of web elements by their element address | public static List<WebElement> getList(By elementAddress) {
List<WebElement> elementList = sDriver.findElements(elementAddress);
return elementList;
} | [
"public List<PageElement> getElements();",
"public abstract WebElement getElement(By locator);",
"public List<WebElement> locateElements(String type, String value);",
"public List<String> getListFromZipCodeElementList(List<WebElement> element);",
"public List<T> getPageElementsList();",
"public List<WebEl... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Initializes data mapping members. | private void initializeDataMappings() {
this.deviceIdStruct = new DeviceIdStruct();
this.eventList = new EventList();
this.header = new Header();
this.parameterList = new ParameterList();
this.methodList = new MethodList();
this.fault = new Fault();
} | [
"private MapData() {\n initFields();\n }",
"private void initializeData()\n\t{\n\t\tthis.terms = new HashMap<>();\n\t\tthis.roles = new ArrayList<>();\n\t\tthis.features = new ArrayList<>();\n\t}",
"public DataBundle() {\n mMap = new HashMap<String, Object>();\n }",
"protected void initDataT... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Creates a message receiver to the entity. | public static IMessageReceiver createMessageReceiverFromEntityPath(MessagingFactory messagingFactory, String entityPath, ReceiveMode receiveMode) throws InterruptedException, ServiceBusException {
return Utils.completeFuture(createMessageReceiverFromEntityPathAsync(messagingFactory, entityPath, receiveMode));
... | [
"protected abstract Receiver createReceiver();",
"MessageReceiver createReceiver(String topic) throws MessagingException;",
"public void createJob(String receiver, String message) {\n }",
"public static IMessageReceiver createMessageReceiverFromEntityPath(String namespaceName, String entityPath, ClientSett... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Create a new third player option event. | public ThirdPlayerOptionEvent(int otherId) {
super(3, otherId);
} | [
"private Event thirdIndex(Player player, ByteMessage msg) {\n int interfaceId = msg.getShort(ByteOrder.LITTLE);\n int itemId = msg.getShort(ValueType.ADD);\n int index = msg.getShort(ValueType.ADD);\n\n checkState(interfaceId > 0, \"interfaceId <= 0\");\n checkState(index >= 0, \"... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Setup the call buttons behaviour on click. | private void setupCallButton(Button button, Class mClass) {
try {
final Intent mIntent = new Intent(Intent.ACTION_DIAL);
mIntent.setData(Uri.parse("tel:"+mClass.getContact()));
button.setOnClickListener(new View.OnClickListener() {
@Override
p... | [
"protected void setupButtons() {\r\n\t\tPayPal pp = PayPal.getInstance();\r\n\t\tpaypalCheckout.setOnClickListener(this);\r\n\t}",
"private void setupButtons() {\n\t\tsetupCreateCourse();\n\t\tsetupRemoveCourse();\n\t\tsetupCreateOffering();\n\t\tsetupRemoveOffering();\n\t\tsetupAddPreReq();\n\t\tsetupRemovePreRe... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Returns the result of interpreting the object as an instance of 'Query Desc'. This implementation returns null; returning a nonnull result will terminate the switch. | public T caseQueryDesc(QueryDesc object) {
return null;
} | [
"public String getQueryDesc() {\n return queryDesc;\n }",
"public com.flexnet.operations.webservices.SimpleQueryType getDescription() {\n return description;\n }",
"public T caseQuery(Query object)\n {\n return null;\n }",
"public T caseOsObjectQuery(OsObjectQuery object) {\n ret... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Positions the children at the "correct" positions | private void positionItems() {
int top = mListTop + mListTopOffset;
for (int index = 0; index < getChildCount(); index++) {
final View child = getChildAt(index);
final int width = child.getMeasuredWidth();
final int height = child.getMeasuredHeight();
fi... | [
"@Override\n\tpublic void doLayout() {\n\t\tfloat ycord = 0;\n\t\tfor(int i = 0; i < getNumChildren(); i++){\n\t\t\tfloat relX = getX() + getW()/2 - getChildAt(i).getW()/2;\n\t\t\tgetChildAt(i).setX(relX);\n\t\t\tgetChildAt(i).setY(getY()+ycord);\n\t\t\tycord += getChildAt(i).getH();\n\t\t\tgetChildAt(i).doLayout()... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
appends LL with head head2 to LL wth head head1 | public LLN append(LLN head1, LLN head2) {
LLN curr = head1;
while (curr.next != null) {
curr = curr.next;
}
curr.next = head2;
return head1;
} | [
"public void merge(ListNode head1, ListNode head2) {\n ListNode dummy = new ListNode(0);\n \n ListNode cur = dummy;\n \n while (head1 != null && head2 != null) {\n // 注意这里容易出错。head1要先指向它的下一个,再处理head2,否则cur.next=head2这里会改掉\n // head1的指向.\n cur.next ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
A musical group, such as a band, an orchestra, or a choir. Can also be a solo musician. | @NotNull public static MusicGroup.Builder musicGroup() { return new MusicGroup.Builder(new HashMap<String,Object>()); } | [
"Metadata.AlbumGroup getSingleGroup(int index);",
"MPI.MediaGroup getMediaGroup() { return mediaGroup; }",
"public boolean isGroup();",
"java.lang.String getGroup();",
"public abstract String getDefaultGroup();",
"Metadata.AlbumGroup getAlbumGroup(int index);",
"public String getMusicString();",
"publ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Returns a list of symbols of a specified exchange (compact format).INPUT: Token (Login Token), Exchange (eg: NASDAQ)OUTPUT: List of symbols | @WebMethod(operationName = "SymbolList2")
@WebResult(name = "RESPONSE", targetNamespace = "http://ws.eoddata.com/Data", partName = "Body")
public RESPONSE symbolList2(
@WebParam(partName = "Token", name = "Token", targetNamespace = "http://ws.eoddata.com/Data")
java.lang.String token,
@W... | [
"@WebMethod(operationName = \"SymbolList\")\n @WebResult(name = \"RESPONSE\", targetNamespace = \"http://ws.eoddata.com/Data\", partName = \"Body\")\n public RESPONSE symbolList(\n @WebParam(partName = \"Token\", name = \"Token\", targetNamespace = \"http://ws.eoddata.com/Data\")\n java.lang.Str... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Clear the undo stack and boardposition counts. Does not modify the current position or win status. | void clearUndo() {
while (!listOfBoards.isEmpty()) {
listOfMoves.pop();
listOfBoards.pop();
}
} | [
"void clearUndo() {\n positionstack.clear();\n }",
"void clearUndo() {\r\n stack.clear();\r\n }",
"private void clearRedoStack() {\n\t\tredoStack.clear();\n\t}",
"public void reset() {\r\n\t\tundoStorage.clear();\r\n\t\tredoStorage.clear();\r\n\r\n\t\t/*\r\n\t\t * Set the recentGrid to the... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Update the given invitation's document for the receiving user in this service's provider database. | void updateInvitationForReceivingUser(Invitation invitation); | [
"void updateInvitationForSendingUser(Invitation invitation);",
"public void updateInvitation(GroupInvitation invitation) throws IllegalArgumentException, EntityNotFoundException,\n SecurityGroupException;",
"private void updateUserDoc(){\n FirebaseFirestore db = FirebaseFirestore.getIn... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Retrieves the selected account. | public DonorReceiver getSelectedAccount() {
return selectedAccount;
} | [
"public String getSelectedAccountId() {\r\n if ( !validAccountsConfigured() )\r\n return AwsToolkitCore.getDefault().getCurrentAccountId();\r\n return (String) this.accountSelection.getData(this.accountSelection.getText());\r\n }",
"public String getM_accountSelected() {\r\n\treturn m_... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Verify that sending a request message on a bad output stream can handle a null callback. | @Test
public void testSendRequestErrorNullCallback() throws IOException
{
// Setup
m_SUT.setClientId(CLIENT_ID);
m_SUT.addRemoteChannel(DEST_ID, m_OutStream, null);
TerraHarvestPayload payload = createPayload();
// Mock
doThrow(IOException.class).when(m_OutStream... | [
"@Test\n public void testSendResponseErrorNullCallback() throws IOException\n {\n // Setup\n m_SUT.setClientId(CLIENT_ID);\n m_SUT.addRemoteChannel(DEST_ID, m_OutStream, null);\n TerraHarvestPayload payload = createPayload();\n\n // Mock\n doThrow(IOException.class).w... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Move and bounce the circle and request a redraw. The timer calls this method periodically. | public void animate() {
// Bounce if we've hit an edge.
if ((x - r + dx < 0) || (x + r + dx > bounds().width)) dx = -dx;
if ((y - r + dy < 0) || (y + r + dy > bounds().height)) dy = -dy;
// Move the circle.
x += dx; y += dy;
// Ask the browser to call our paint() method to draw the circle
/... | [
"private void simulateContinuousMotion() {\n synchronized (_circles) {\n if (!_circles.isEmpty()) {\n for (Circle circle : _circles) {\n circle.move(flingSpeedFactor, this.getWidth(), this.getHeight());\n }\n // must transfer to UI th... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Return a list of seen ice tiles | public List<Coordinate> containIceTiles() {
ArrayList<Coordinate> res = new ArrayList<>();
for (Map.Entry<Coordinate, MapTile> entry : seenTiles.entrySet()) {
Coordinate coor = entry.getKey();
MapTile tile = entry.getValue();
if (tile instanceof HealthTrap) {
res.add(coor);
}
}
return res;
} | [
"public static ArrayList<Tiles> all35Tiles() {\n ArrayList<Tiles> distinctTiles = new ArrayList<>();\n // Tile 0\n distinctTiles.add(new Tiles(\"S2\", \"S1\",\n \"E2\", \"E1\",\n \"N2\", \"N1\",\n \"W2\", \"W1\", 0));\n // Tile 1\n dist... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Joins a list of strings with a separator. | protected String joinListOfStrings(List<String> listOfStrings, String separator) {
int numStrings = listOfStrings.size();
StringBuffer commaSeparated = new StringBuffer();
commaSeparated.append(listOfStrings.get(0));
for(int i=1; i<numStrings; i++) {
commaSeparated.append(separator + listOfString... | [
"public static String concatenate(List<String> strings, String sep) {\n String str = \"\";\n for(String s : strings) {\n if (str.equals(\"\")) {\n str = s;\n } else {\n str += sep + s;\n }\n }\n return str;\n }",
"static String join(CharSequence separator, String[] string... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Method to check if waterController exists. | public boolean waterControllerExists() {
if (waterController != null) {
return true;
} else {
return false;
}
} | [
"public boolean temperatureControllerExists() {\n\t\tif (temperatuerController != null) {\n\t\t\treturn true;\n\t\t} else {\n\t\t\treturn false;\n\t\t}\n\n\t}",
"public boolean fertilizerControllerExists() {\n\t\tif (fertilizerController != null) {\n\t\t\treturn true;\n\t\t} else {\n\t\t\treturn false;\n\t\t}\n\n... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
predicate used for numeric columns when the condition is ">" | public static Predicate<Integer> isGreaterN(ArrayList<Double> l1, double colVal) {
return (t) -> l1.get(t) > colVal;
} | [
"boolean gtExpr(InternalRow row, int ordinal);",
"Condition greaterThan(QueryParameter parameter, Object x);",
"public Condition gt(final SQLFunction<?> v) {\n \t\treturn new Binary2(this, \">\", v);\n \t}",
"public QualitativeValue getGreater() throws ClassCastException;",
"private void handleGreaterThan( ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Checking if video exists using GetMethod. | private boolean isVideoExists(GetMethod aGetMethod) {
/* This already called while this class is instantiated
if (mHttpClient == null) {
mHttpClient = prepareHttpClient();
}*/
try {
int r = mHttpClient.executeMethod(aGetMethod);
System.out.println("--> " + r);
if (HttpURLConnection... | [
"public boolean hasVideo();",
"public boolean isVideoExists(String aUrl) {\n\t\tGetMethod get = new GetMethod(aUrl);\n\t\ttry {\n\t\t\treturn isVideoExists(get);\n\t\t} finally {\n\t\t\tget.releaseConnection();\n\t\t}\t\n\t}",
"public boolean hasVideo() {\n\treturn video != null;\n }",
"boolean isVideoSupp... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Returns a humanreadable String that contains basic information about this device. Lists the device name, id, size, position, current display mode, and number of supported display modes. | @Override
public final String toString() {
return "\nDevice ID: [" + getId() + "]\n"
+ "Device Name: [" + getName() + "]\n"
+ "Device Size: [" + getSize() + "]\n"
+ "Device Position: [" + getPosition() + "]\n"
+ "Device Resolution: [" + g... | [
"@Override\n \tpublic String toString() {\n \t\treturn deviceName + \" - \" + deviceId;\n \t}",
"public String detailedInfo() {\n int capacity = 500;\n StringBuffer result = new StringBuffer(capacity);\n result.append(\"ID: \" + uuid.toString());\n result.append(\", state: \" ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
helper method to check for duplicates and enable duplicate warning string | private void checkForDuplicates()
{
boolean keyAlreadyDefined = duplicateCheck(selection);
if(keyAlreadyDefined)
{
duplicateWarning = true;
}
else
{
duplicateWarning = false;
keyCodeIndex ++;
ChoiceHandler.setCh... | [
"public boolean getDuplicateSuppression() {\n return duplicate_suppression;\n }",
"public void verifyDuplicateWarn(final String duplicatePaymentWindow) {\n Log.altVerify(true,\n lblWarnDuplicatePayment(duplicatePaymentWindow).isVisible(),\n \"Provide Warn duplicate payment verification\");\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
onBSUnlock Called if back screen is unlocked and application received the controls back. | protected void onBSUnlock() {
} | [
"public boolean isBackScreenLocked() {\n return isBSLock;\n }",
"@Override\n public void onUnlock(Myo myo, long timestamp) {\n //mLockStateView.setText(R.string.unlocked);\n }",
"public void unlockScreen() {\n solo.unlockScreen();\n waitForIdle();\n }",
"@Ov... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
$ANTLR end "ruleTagExpr" $ANTLR start "entryRuleSelectionExpr" InternalSafetyParser.g:8716:1: entryRuleSelectionExpr returns [EObject current=null] : iv_ruleSelectionExpr= ruleSelectionExpr EOF ; | public final EObject entryRuleSelectionExpr() throws RecognitionException {
EObject current = null;
EObject iv_ruleSelectionExpr = null;
try {
// InternalSafetyParser.g:8716:54: (iv_ruleSelectionExpr= ruleSelectionExpr EOF )
// InternalSafetyParser.g:8717:2: iv_ruleSel... | [
"public final EObject entryRuleSelectionExpr() throws RecognitionException {\n EObject current = null;\n\n EObject iv_ruleSelectionExpr = null;\n\n\n try {\n // InternalAgreeParser.g:7126:2: (iv_ruleSelectionExpr= ruleSelectionExpr EOF )\n // InternalAgreeParser.g:7127:2: ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Adds a value to property TrackNumber from an instance of java.lang.String | public static void addTrackNumber(Model model, org.ontoware.rdf2go.model.node.Resource instanceResource, java.lang.String value) {
Base.add(model, instanceResource, TRACKNUMBER, value);
} | [
"public void addTrackNumber(java.lang.String value) {\r\n\t\tBase.add(this.model, this.getResource(), TRACKNUMBER, value);\r\n\t}",
"public void setTrackNumber(java.lang.String value) {\r\n\t\tBase.set(this.model, this.getResource(), TRACKNUMBER, value);\r\n\t}",
"public void setTrackNumber (String number){\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
creek For example, given s = "AAAAACCCCCAAAAACCCCCCAAAAAGGGTTT", return: ["AAAAACCCCC", "CCCCCAAAAA"]. The key to solve this problem is that each of the 4 nucleotides can be stored in 2 bits. So the 10letterlong sequence can be converted to 20bitslong integer. | public static List<String> findRepeatedDnaSequencesC(String s) {
List<String> result = new ArrayList<String>();
int len = s.length();
if (len < 10) {
return result;
}
Map<Character, Integer> map = new HashMap<Character, Integer>();
map.put('A', 0);
map... | [
"public List<String> letterCombinations(String digits) {\n List<String> bags = new ArrayList<>();\n\n Map<Character, String> keys = new HashMap<>();\n keys.put('2', \"abc\");\n keys.put('3', \"def\");\n keys.put('4', \"ghi\");\n keys.put('5', \"jkl\");\n keys.put('6', \"mno\");\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
/ /////////////////////Methods/////////////////////////// set the Charge on 100 % | public void getChargedUp(){
setChargePercent(100);
} | [
"public void setPrintingCharge(double printingCharge);",
"public void setChargePercent(float chargePercent){\n try {\n this.chargePercent = chargePercent;\n }\n catch(Exception e){\n System.out.print(\"Setting charge percent has failed!\");\n }\n }",
"public ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
BEGIN AUTOGENERATED CODE, SOURCE=ROBOTBUILDER ID=VARIABLE_DECLARATIONS END AUTOGENERATED CODE, SOURCE=ROBOTBUILDER ID=VARIABLE_DECLARATIONS BEGIN AUTOGENERATED CODE, SOURCE=ROBOTBUILDER ID=CONSTRUCTOR | public DefaultTeleopCommand() {
// END AUTOGENERATED CODE, SOURCE=ROBOTBUILDER ID=CONSTRUCTOR
// BEGIN AUTOGENERATED CODE, SOURCE=ROBOTBUILDER ID=VARIABLE_SETTING
// END AUTOGENERATED CODE, SOURCE=ROBOTBUILDER ID=VARIABLE_SETTING
// BEGIN AUTOGENERATED CODE, SOURCE=ROBOTBUILDER ID=REQUIRES
requires(R... | [
"public AutonomousCommand() {\n \t\n\n // END AUTOGENERATED CODE, SOURCE=ROBOTBUILDER ID=CONSTRUCTOR\n // BEGIN AUTOGENERATED CODE, SOURCE=ROBOTBUILDER ID=VARIABLE_SETTING\n\n // END AUTOGENERATED CODE, SOURCE=ROBOTBUILDER ID=VARIABLE_SETTING\n // BEGIN AUTOGENERATED CODE, SOURCE=ROBOTBUI... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
$ANTLR end "entryRuleSendSignal" $ANTLR start "ruleSendSignal" InternalDroneScript.g:288:1: ruleSendSignal : ( ( rule__SendSignal__Group__0 ) ) ; | public final void ruleSendSignal() throws RecognitionException {
int stackSize = keepStackSize();
try {
// InternalDroneScript.g:292:2: ( ( ( rule__SendSignal__Group__0 ) ) )
// InternalDroneScript.g:293:2: ( ( rule__SendSignal__Group__0 ) )
{
... | [
"public final void rule__SendSignal__Group__0() throws RecognitionException {\r\n\r\n \t\tint stackSize = keepStackSize();\r\n \t\r\n try {\r\n // InternalDroneScript.g:4608:1: ( rule__SendSignal__Group__0__Impl rule__SendSignal__Group__1 )\r\n // InternalDroneScript.g:460... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Multiplies matrix m1 by matrix m2, does an SVD normalization of the result, and places the result into this matrix this = SVDnorm(m1m2). | public final void mulNormalize(Matrix3f m1, Matrix3f m2) {
mul(m1, m2);
svd(this);
} | [
"public final void mulNormalize(Matrix3f m1) {\n\tmul(m1);\n\tsvd(this);\n }",
"public final void normalize() {\n\tsvd(this);\n }",
"public final void normalize(Matrix3f m1) {\n\tset(m1);\n\tsvd(this);\n }",
"public double calcTwoNorm();",
"double normL2();",
"private void Normalize(double factor... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
method call sequence is step > match > result so this method must create step result and set arguments. | @Override
public void match(Match match) {
latestStepResult = new StepResult();
latestStepResult.setArguments(convertArguments(match.getArguments()));
resolveStepResultList().add(latestStepResult);
} | [
"public StepResult(Result result) {\n this.result = result;\n this.shouldContinue = true;\n }",
"public String nextStep();",
"boolean nextStep();",
"java.lang.String getNextStep();",
"void Step(context.Context ctx, pb.Message msg);",
"void handleStep(T context) throws Exception;",
"int ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Interface for parsing resource references (references to links, images, attachments, etc) for various wiki syntaxes. | @Role
public interface ResourceReferenceParser
{
/**
* Parses a resource reference represented (reference to a link, image, attachment, etc) as a String into a
* {@link org.xwiki.rendering.listener.reference.ResourceReference} object.
*
* @param rawReference the string representation of the re... | [
"private Reference parseReference() {\r\n\t\tReference r;\r\n\t\tif(verbose)\r\n\t\t\tSystem.out.println(\"parseReference\");\r\n\t\t// BaseRef\r\n\t\tr = parseBaseRef();\r\n\t\tif(inRefTailStarterSet(currentToken.type)) {\r\n\t\t\treturn parseRefTail(r);\r\n\t\t} else {\r\n\t\t\treturn r;\r\n\t\t}\r\n\t}",
"publ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
returns a new object future inserting the given future at the given key | public JsObjVal set(final String key,
final Val<? extends JsValue> future
) {
final Map<String, Val<? extends JsValue>> a = bindings.put(requireNonNull(key),
requireNonNull(future)
... | [
"<T> CompletableFuture<T> submit(Integer key, Callable<T> request);",
"<T> DurableExecutorServiceFuture<T> submitToKeyOwner(Callable<T> task, Object key);",
"DurableExecutorServiceFuture<?> submitToKeyOwner(Runnable task, Object key);",
"@Override\n\tpublic synchronized <T> Future<T> runTask(final Object key,... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
This method will call the CC&B service to update RAYB Premise Characteristics Value JTrac ID4537 Open Project Id1441 | public static String updateRaybPremiseCharacteristics(String premiseId,
String rainWaterhEligibilty, String approvedBy,
String rainWaterhDocProof, String rainWaterhEffDt, String authCookie) {
AppLog.begin();
StringBuffer xml = new StringBuffer(512);
String xaiHTTPCallResponse;
String status = "INVALID";
... | [
"public void approveNoCostNoPaymentCR(String crsId) throws Exception\n {throw new Exception(\"Not Implemented.\");\n }",
"private void updrec() {\n\t\tsavedata();\n\t\tcontractDetail.retrieve(stateVariable.getXwordn(), stateVariable.getXwabcd());\n\t\tnmfkpinds.setPgmInd36(! lastIO.isFound());\n\t\tnmfkpi... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Returns the result of interpreting the object as an instance of 'Activity Record'. This implementation returns null; returning a nonnull result will terminate the switch. | public T caseActivityRecord(ActivityRecord object) {
return null;
} | [
"public T caseActivity(Activity object) {\n\t\treturn null;\n\t}",
"public Object caseSpem_Activity(org.topcased.spem.Activity object) {\n\t\treturn null;\n\t}",
"public T caseActivityType(ActivityType object) {\r\n\t\treturn null;\r\n\t}",
"private ActivityRecord setActivityRecord() {\r\n ActivityReco... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
saves the history properties of the SqlViewer in the user's home directory | protected void saveHistory() {
BufferedOutputStream str;
try {
str = new BufferedOutputStream(
new FileOutputStream(getHistoryFilename()));
m_History.store(str, "SQL-Viewer-History");
}
catch (Exception e) {
e.printStackTrace();
}
} | [
"public void saveHistory() {\n history.save();\n }",
"public void storeFileHistory() {\n\t\ttheFileHistory.store(theConfiguration);\n\t}",
"private void saveProperties() {\n try {\n FileOutputStream fs = new FileOutputStream(System.getProperty(\"user.home\") + stk.Constans.BRANCH + C... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
This class provides methods for the DataModel access of the Corresponding Safety Constraints | public interface ICorrespondingSafetyConstraintDataModel extends IDataModel,ICommonTables {
/**
* Gets all corresponding safety constraints
*
* @author Fabian Toth
*
* @return the list of all corresponding safety constraints
*/
List<ICorrespondingUnsafeControlAction> getAllUnsafeControlActions... | [
"List<ITableModel> getAllSafetyConstraints();",
"ITableModel getSafetyConstraint(UUID safetyConstraintId);",
"public List<Constraint> getConstraints();",
"Constraints getConstraints();",
"com.google.cloud.clouddms.v1.ConstraintEntity getConstraints(int index);",
"public abstract Restriction getConstraint(... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Schema in Avro JSON format. .google.cloud.datacatalog.v1.PhysicalSchema.AvroSchema avro = 1; | @java.lang.Override
public boolean hasAvro() {
return schemaCase_ == 1;
} | [
"@java.lang.Override\n public com.google.cloud.datacatalog.v1.PhysicalSchema.AvroSchemaOrBuilder getAvroOrBuilder() {\n if (schemaCase_ == 1) {\n return (com.google.cloud.datacatalog.v1.PhysicalSchema.AvroSchema) schema_;\n }\n return com.google.cloud.datacatalog.v1.PhysicalSchema.AvroSchema.getDefau... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Creates a new instance of class DElementPagosPago. | public DElementPagosPago() {
super("pago10:Pago");
moAttFechaPago = new DAttributeDatetime("FechaPago", true);
moAttFormaDePagoP = new DAttributeString("FormaDePagoP", true, 2, 2); // c_FormaPago catalog codes of 2 fixed digits
moAttMonedaP = new DAttributeString("MonedaP", true, 3, 3... | [
"public DElementPagos() {\n super(\"pago10:Pagos\");\n\n moAttVersion = new DAttributeString(\"Version\", true, 3, 3); // fixed text value \"1.0\"\n moAttVersion.setString(\"\" + DCfdConsts.COMP_RP_10);\n\n mvAttributes.add(moAttVersion);\n\n maEltPagos = new ArrayList<>();\n }... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
XWiki's Listener model doesn't support authors. Don't do anything. | @Override
public void author()
{
} | [
"@Override\n public void author_()\n {\n }",
"public void addAuthorAction()\n\t{\n\t\tViewNavigator.loadScene(\"Add Author\", ViewNavigator.ADD_AUTHOR_SCENE);\n\t}",
"protected abstract void changeAuthorForDomain(IMessage message, IUser user);",
"Reference getAuthor();",
"private void viewAuthors()... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
This function moves the jump to this block. The jump field of the previous owner is cleared afterwards. If the given jump is null, nothing bad happens. | public void moveJump(Jump jump) {
if (this.jump != null)
throw new AssertError("overriding with moveJump()");
this.jump = jump;
if (jump != null) {
jump.prev.jump = null;
jump.prev = this;
}
} | [
"public void jump() {\n\t\tjumpBehaviour.jump();\n\t}",
"public void copyJump(Jump jump) {\n\t\tif (this.jump != null)\n\t\t\tthrow new AssertError(\"overriding with moveJump()\");\n\t\tif (jump != null) {\n\t\t\tthis.jump = new Jump(jump);\n\t\t\tthis.jump.prev = this;\n\t\t}\n\t}",
"public void jump()\r\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Returns the company ID of this person. | @Override
public long getCompanyId() {
return _person.getCompanyId();
} | [
"public long getCompanyId() {\n\t\treturn _room.getCompanyId();\n\t}",
"public long getCompanyId() {\n\t\treturn _team.getCompanyId();\n\t}",
"public int getCompanyIdentifier() {\n return mCompanyIdentidier;\n }",
"@Override\n\tpublic long getCompanyId() {\n\t\treturn _userInfo.getCompanyId();\n\t}"... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Sets the nombre variable of this configuracion perfilador. | public void setNombreVariable(java.lang.String nombreVariable) {
_configuracionPerfilador.setNombreVariable(nombreVariable);
} | [
"public void setName(String name) {\n setUserProperty(\"ant.project.name\", name);\n this.name = name;\n }",
"public void setName(String name) {\n NAME = name;\n }",
"public void setName(String nome)\n {\n this.nome = nome;\n }",
"public void setNombre(java.lang.String nomb... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
The representative of the an object cell must be a string or a number. We let the admin annotation argument "cellMethod" determine which method should return a legal represenation. If this is itself an object, we repeat the procedure. | private void calculateObjectCell(Method method) throws NoSuchMethodException {
methods.add(method);
Class<?> rtype = method.getReturnType();
while(Object.class.isAssignableFrom(rtype)) {
if(rtype.isAnnotationPresent(Protean.class)) {
Protean adm = rtype.getAnnotation(Protean.class);
// we m... | [
"public interface Cell {\n\n /**\n * Numeric Cell type (0)\n * @see #setCellType(int)\n * @see #getCellType()\n */\n public final static int CELL_TYPE_NUMERIC = 0;\n\n /**\n * String Cell type (1)\n * @see #setCellType(int)\n * @see #getCellType()\n */\n public final stat... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
getURL JDBC API What's the url for this database? Return the url or null if it can't be generated | public String getURL()
throws SQLException
{
// Can't generate a URL
return null;
} | [
"public String getJdbcURL();",
"public String getUrl() {\n return jdbcUrl;\n }",
"public String getJdbcUrl()\n {\n return getStringValue(DataSourceDobj.FLD_JDBC_URL);\n }",
"protected String getJDBCUrl(Map params) throws IOException {\n // jdbc url\n String host = (Strin... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Registers "query time" metric. Measures the time between a Jetty thread starting to handle a query, and the response being fully written to the response output stream. Does not include time spent waiting in a queue before the query runs. | QueryMetrics<QueryType> reportQueryTime(long timeNs); | [
"QueryMetrics<QueryType> reportCpuTime(long timeNs);",
"QueryMetrics<QueryType> reportNodeTime(long timeNs);",
"QueryMetrics<QueryType> reportSegmentAndCacheTime(long timeNs);",
"public void addSQLQuery() {\n synchronized(queriesPerSecond) {\n queriesPerSecond.incrementAndGet();\n }\n... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
This method used to fetch the name, mapname and the parentname of the MapSymbols present in the MAPSYMBOL table whose name contains the given name | public ArrayList getMapSymbolsForName(String searchName) throws EMHException {
ResultSet rs = null;
Statement st = null;
//String spanIfType = null;
ArrayList resultAl = new ArrayList();
String query = "SELECT NAME, MAPNAME, PARENTNAME FROM MapSymbol WHERE NAME LIKE '%" + searchName + "%'";
try {
st = re... | [
"public NavigableMap<String, List<String>> namedSymbols();",
"java.lang.String getMapName();",
"public abstract Map getParentStrutName();",
"public Sym\nsearch(String pName,int symkind)\n{ // Fukuda\n if (fDbgLevel > 3) //##67\n ioRoot.dbgSym.print( 8, \"search \", pName + \"... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
find the determinate of the 2x2 matrix formed by vector 10 and vector 7 where the vectors are columns | public double det_10_7() {
return x_10 * y_7 - y_10 * x_7;
} | [
"public double det_7_10() {\n return x_7 * y_10 - y_7 * x_10;\n }",
"public double det_10_9() {\n return x_10 * y_9 - y_10 * x_9;\n }",
"public double determinant() {\n //triangular matrix method\n \n boolean lastRowHasZero;\n double det = 1;\n Row[] row = new Row[M];\... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
$ANTLR end "rule__XTypeLiteral__Group__0__Impl" $ANTLR start "rule__XTypeLiteral__Group__1" ../com.avaloq.tools.dslsdk.check.ui/srcgen/com/avaloq/tools/dslsdk/check/ui/contentassist/antlr/internal/InternalCheck.g:15592:1: rule__XTypeLiteral__Group__1 : rule__XTypeLiteral__Group__1__Impl rule__XTypeLiteral__Group__2 ; | public final void rule__XTypeLiteral__Group__1() throws RecognitionException {
int stackSize = keepStackSize();
try {
// ../com.avaloq.tools.dslsdk.check.ui/src-gen/com/avaloq/tools/dslsdk/check/ui/contentassist/antlr/internal/InternalCheck.g:15596:1: ( rule__XTypeLitera... | [
"public final void rule__XTypeLiteral__Group__1() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.xtext.guicemodules.ui/src-gen/org/xtext/guicemodules/ui/contentassist/antlr/internal/InternalGuiceModules.g:14162:1: ( rule__XTypeLitera... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Check if the given expression contains == operator. | private static boolean checkEqualsToOperations(String expression, Lexemes lexemes, SymbolTable table) {
if (expression.contains("==")) {
String[] arr = expression.split("==");
int finalIndex = arr.length - 1;
for (int i = 0; i <= finalIndex; i++) {
String s = arr[i];
// check if the current word i... | [
"private static Value evaluateEqexp(Tree tree, Environment env) throws EvalException\r\n {\r\n final boolean result; // a blank final\r\n\r\n final String op = tree.getElement();\r\n\r\n final Value valueL = evaluateExp( tree.getSubTree(0), env );\r\n final Value valueR = evaluateExp( tree.ge... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Setup the node as if the invocation count is > node execution count, i.e. the node is completely done firing | public void SetNodeExecuted()
{
_nodeInvocationCount = GetCurrNode().GetExecutionCount();
} | [
"public boolean HasNodeBeenInvoked() { return _nodeInvocationCount > 0; }",
"public void setNumberOfNodes () {\n this.numOfStates++;\n }",
"public static void resetNodeCount() {\n\t\tnodeCount = 0;\n\t}",
"public void resetResendCount() {\n resendCount = 0;\n if (nodeInitStageAdvancer.... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Adds user json object with important info to main obj json | private void getUserJSON() throws JSONException {
DBHelper db = new DBHelper(BlueMixApplication.getAppContext());
//Most important
body.put("id_token", UserAccount.getIdToken());
body.put("access_token", UserAccount.getAccessToken());
//Add Selected and relevant info to body if... | [
"@Override\n public void updateUserJson() {\n synchronized (lockUpdateUserJson) {\n try (PrintWriter printer = new PrintWriter(\"Database/Users.json\")) {\n ArrayList<User> userAsArray = new ArrayList<>();\n for (Map.Entry<String, User> entry : mapOfRegisteredUse... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Initializes this unit position with the given coordinates and world. | public UnitPosition(World world, double[] doubleCoordinates){
super(world, doubleCoordinates);
} | [
"public UnitPosition(World world, int[] cubeCoordinates) {\n\t\tsuper(world, cubeCoordinates);\n\t}",
"public RobotWorld()\n { \n // Create a new world with 600x400 cells with a cell size of 1x1 pixels.\n super(800, 600, 1); \n prepare();\n }",
"public MyWorld()\n { \n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
$ANTLR end "entryRuleStructType" $ANTLR start "ruleStructType" InternalGo.g:588:1: ruleStructType : ( ( rule__StructType__Group__0 ) ) ; | public final void ruleStructType() throws RecognitionException {
int stackSize = keepStackSize();
try {
// InternalGo.g:592:2: ( ( ( rule__StructType__Group__0 ) ) )
// InternalGo.g:593:2: ( ( rule__StructType__Group__0 ) )
{
// Intern... | [
"public final void entryRuleStructType() throws RecognitionException {\r\n try {\r\n // InternalGo.g:580:1: ( ruleStructType EOF )\r\n // InternalGo.g:581:1: ruleStructType EOF\r\n {\r\n if ( state.backtracking==0 ) {\r\n before(grammarAccess.getStruc... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Dialog fuer Auswahl der Bilderzeugung | private void dialog() {
GenericDialog gd = new GenericDialog("Bildart");
gd.addChoice("Bildtyp", choices, choices[0]);
gd.showDialog(); // generiere Eingabefenster
choice = gd.getNextChoice(); // Auswahl uebernehmen
if (gd.wasCanceled())
System.exit(0);
} | [
"public void crearDialogCargar() {\n\t\tdialogoCargar= new DialogoCargar(this);\n\t\tdialogoCargar.setVisible(true);\n\t\tactualizarListaPartidas();\n\t}",
"public void createAndShowDialog() {\n\t\tcreateDialog();\n\t\tgetSwingRenderer().showDialog(createdDialog, true);\n\t}",
"public abstract Dialog createDial... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Undo operation with proper backOperation | @Override
public void undo() {
alter.backOperation();
} | [
"public void undo();",
"void performUndo() throws Exception;",
"public void undo()\r\n\t{\r\n\t\tStack<Command> temp = new Stack<Command>();\r\n\t\twhile(!aCommands.empty())\r\n\t\t{\r\n\t\t\tCommand c = aCommands.pop();\r\n\t\t\tc.undo();\r\n\t\t\ttemp.push(c);\r\n\t\t}\r\n\t\taCommands = temp;\r\n\t}",
"pub... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Creates a permission for a single user for a given API design. | public void createPermission(String designId, String userId, String permission) throws StorageException; | [
"public PortalPermission createPermission(PortalPermission permission);",
"UserPermissionsType createUserPermissionsType();",
"PermissionType createPermissionType();",
"public String createApiDesign(String userId, ApiDesign design, String initialApiDocument) throws StorageException;",
"public AppPermission ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Returns a range of all the todos where todoInteger = &63;. Useful when paginating results. Returns a maximum of end start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtilALL_POS will return the full ... | public java.util.List<Todo> findByTodoInteger(
int todoInteger, int start, int end); | [
"public java.util.List<Todo> findByTodoInteger(\n\t\tint todoInteger, int start, int end,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<Todo>\n\t\t\torderByComparator);",
"public java.util.List<Todo> findByTodoInteger(\n\t\tint todoInteger, int start, int end,\n\t\tcom.liferay.portal.kernel.util.OrderByCo... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
required string AttachmentStatus = 13 [(.validation.regex) = ""]; | java.lang.String getAttachmentStatus(); | [
"public Builder setAttachmentStatus(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00002000;\n attachmentStatus_ = value;\n onChanged();\n return this;\n }",
"public Builder setAtt... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Creates the collection page for AppVulnerabilityMobileApp | public AppVulnerabilityMobileAppCollectionPage(@Nonnull final java.util.List<AppVulnerabilityMobileApp> pageContents, @Nullable final AppVulnerabilityMobileAppCollectionRequestBuilder nextRequestBuilder) {
super(pageContents, nextRequestBuilder);
} | [
"public AppVulnerabilityMobileAppCollectionPage(@Nonnull final AppVulnerabilityMobileAppCollectionResponse response, @Nonnull final AppVulnerabilityMobileAppCollectionRequestBuilder builder) {\n super(response, builder);\n }",
"@NotNull public static CollectionPage.Builder collectionPage() { return new ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
mimaterial es donde guardo el valor obtenido de la tabla //position es la posicion seleccionada en la tabla | public void EditList(Balanza mimaterial, int position) {
this.list.set(position, mimaterial); //envia a la tabla los datos que tiene mi material en la posicion position
this.reloadTable();//llama a la metodo reloadtable que borra la tabla completa y la carga de nuevo
} | [
"public int getPositionRow(){return this.positionRow;}",
"public int getPositionColumn(){return this.positionColumn;}",
"public TelaMaterialReparo() {\n initComponents();\n readJTable();\n }",
"public void setPositionColumn(int value){this.positionColumn = value;}",
"int insertarMaterial(VO... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Gather the entity keys for this and all subordinate elements. Used when assembling the deletion list when deleting a submission. When using this value, you should reverse the keyList and delete the entries in the reverse order in which they were added. | public void recursivelyAddEntityKeysForDeletion(List<EntityKey> keyList, CallingContext cc) throws ODKOverQuotaException, ODKDatastoreException; | [
"java.util.List<com.icare.eai.schema.om.evSORequest.EvSORequestDocument.EvSORequest.Key> getKeyList();",
"public java.util.List<KEY> childKeyList()\n\t{\n\t\tjava.util.List<KEY> childKeyList = new java.util.ArrayList<KEY>();\n\n\t\treturn ChildKeyList (\n\t\t\tthis,\n\t\t\tchildKeyList\n\t\t) ? childKeyList : nul... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Stores all the tasks from the tasks array into the storage file. | public void store(TaskList tasks) throws DukeException {
try {
fileWriter = new FileWriter(loadStorageFile(), false);
String data = "";
for (int i = 0; i < tasks.getNumTasks(); i++) {
data = data.concat(tasks.getTask(i).formatToStore() + "\n");
}
... | [
"private void saveTasks() {\n try {\n Writer writer = new Writer(new File(TASKS_FILE));\n for (Task t1: todoList.getListOfTasks()) {\n writer.write(t1);\n }\n writer.close();\n System.out.println(\"Tasks saved to file \" + TASKS_FILE);\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Returns the category of template with the given name. | public int getTemplateCategory(String templateName) {
return 0;
} | [
"Category getCategory(String name);",
"public Category getCategoryByName(String name);",
"Category getCategoryByName(String name);",
"Category getByName(String name);",
"Category getCategoryByName(String categoryName);",
"public Category getCategory(String catName);",
"public String getName() {\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Returns true if the Exemplar is empty (i.e. doesn't yield any Instance) | private boolean isEmpty(){
return (numInstances() == 0);
} | [
"public boolean isEmpty() {\n\t\treturn employees.isEmpty();\n\t}",
"public boolean isClassEmpty()\r\n {\r\n return(number_of_entries == 0);\r\n }",
"boolean isItEmpty(){\n\t\t\tif (this.items.isEmpty() && (this.receptacle.isEmpty() || findSpecialtyContainers())){//if there's nothing in there.\n\t\... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Create a new SslHandler. | protected SslHandler newHandler(ByteBufAllocator alloc, boolean startTls, Executor executor) {
return new SslHandler(newEngine(alloc), startTls, executor);
} | [
"protected SslHandler newHandler(ByteBufAllocator alloc, boolean startTls) {\n return new SslHandler(newEngine(alloc), startTls);\n }",
"public final SslHandler newHandler(ByteBufAllocator alloc) {\n return newHandler(alloc, startTls);\n }",
"private SslHandler createSslHandler(final Connect... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Unsets the "band2H" element | public void unsetBand2H()
{
synchronized (monitor())
{
check_orphaned();
get_store().remove_element(BAND2H$6, 0);
}
} | [
"public void unsetBand2V()\n {\n synchronized (monitor())\n {\n check_orphaned();\n get_store().remove_element(BAND2V$10, 0);\n }\n }",
"public void unsetBand1H()\n {\n synchronized (monitor())\n {\n check_orphaned();\n get_st... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Init nested map with params data | @Before
public void setUpParams() {
params = new LinkedHashMap<>();
//Nested map authenticate level 1
Map<String, Object> authenticate = new LinkedHashMap<>();
authenticate.put("user", "admin");
authenticate.put("password", "xxxxx");
//Nested map transaction level 1... | [
"private MapData() {\n initFields();\n }",
"public MapBuilder() {\r\n map = new Map();\r\n json = new Gson();\r\n }",
"ParamMap createParamMap();",
"private void initInnerParams() {\n\t\tinnerParams.put(\"现在\", new Date());\n\t}",
"public void buildMap(){\n map =mapFactory.cr... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
This method was generated by MyBatis Generator. This method corresponds to the database table t_cpy_annual_report | public TCpyAnnualReportExample() {
oredCriteria = new ArrayList<Criteria>();
} | [
"public String TotalAccrualReportAction() throws PersistenceException {\n // Remove the comment from the get method below if you want to display Table 4 in the totalAccrualReport.xhtml code.\n // The following method is used to show how the dataModel and columnNames are created from the raw database r... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Sends a raw line to the IRC server. | public void sendRaw(String line)
{
if (!isConnected())
{
throw new NotConnectedException("You can't send something if you're not connected! Try a call to" +
" IRCSocketManager.connect first!");
}
if (isVerbose())
{
System.out.println("US: " + line);
}
_writer.println(line);
} | [
"public void sendRawLine(String line);",
"public IRCEventPacket(String rawline) {\r\n\t\tthis.rawline = rawline;\r\n\t\tparserawline();\r\n\t}",
"private synchronized void sendLine(String line) throws IOException {\n\n if (socket == null) throw new IOException(\"FTP is not connected.\");\n \n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Sets the "service" element | public void setService(javax.xml.namespace.QName service)
{
synchronized (monitor())
{
check_orphaned();
org.apache.xmlbeans.SimpleValue target = null;
target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(SERVICE$2,... | [
"void setService(java.lang.String service);",
"public void setService(Service service)\n {\n this.service = service;\n }",
"private void setService(Service service) {\n this.service = service;\n }",
"public void xsetService(org.apache.xmlbeans.XmlQName service)\r\n {\r\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
update the latest solidified block. | public void updateLatestSolidifiedBlock() {
List<Long> numbers = witnessController
.getActiveWitnesses()
.stream()
.map(address -> witnessController.getWitnessByAddress(address).getLatestBlockNum())
.sorted()
.collect(Collectors.toList());
long size =... | [
"void updateBlock(Block block) ;",
"public String updateProductionBlock(ProductionBlock pb);",
"public void refresh() {\n type = etc.getServer().getBlockIdAt(x, y, z);\n data = etc.getServer().getBlockData(x, y, z);\n status = 0;\n }",
"public void update() {\n etc.getServer().s... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
$ANTLR end "entryRuleQObject" $ANTLR start "ruleQObject" ../org.iworkz.qon.ui/srcgen/org/iworkz/qon/ui/contentassist/antlr/internal/InternalQonDsl.g:97:1: ruleQObject : ( ( rule__QObject__Group__0 ) ) ; | public final void ruleQObject() throws RecognitionException {
int stackSize = keepStackSize();
try {
// ../org.iworkz.qon.ui/src-gen/org/iworkz/qon/ui/contentassist/antlr/internal/InternalQonDsl.g:101:2: ( ( ( rule__QObject__Group__0 ) ) )
// ../org.iworkz.qon.ui/... | [
"public final void entryRuleQObject() throws RecognitionException {\n try {\n // ../org.iworkz.qon.ui/src-gen/org/iworkz/qon/ui/contentassist/antlr/internal/InternalQonDsl.g:89:1: ( ruleQObject EOF )\n // ../org.iworkz.qon.ui/src-gen/org/iworkz/qon/ui/contentassist/antlr/internal/Intern... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Test Case ID: TC651_AlreadyAddedMessageForNewEQReport Test Description: verify "Already Added" message is displayed if user tries to add the same survey again on New EQ report survey selector section Script: Login as Customer Supervisor user On Home Page, click Reports > EQ > 'New EQ Report' button Search the Survey an... | @Test
@UseDataProvider(value = EQReportDataProvider.EQ_REPORT_PAGE_ACTION_DATA_PROVIDER_TC651, location = EQReportDataProvider.class)
public void TC651_AlreadyAddedMessageForNewEQReport(
String testCaseID, Integer userDataRowID, Integer reportDataRowID1, Integer reportDataRowID2) throws Exception {
Log.info("\nR... | [
"@Test(groups = { \"survey-creation\", \"all-tests\", \"key-tests\" })\r\n public void successfullyUpdateAndVerifySurveyMappings() throws Exception {\r\n\r\n String number = driver.getTimestamp();\r\n String surveyName = number + \"UpdateAndVerifySurveyMappings\";\r\n String statusOption1Upd... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Returns the DataRepresentationTemplate of grid gridId of the GRIB file according to the Template Number | private DataRepresentationTemplate5x getDataRepresentationTemplate(int gridId) {
DataRepresentationTemplate5x dataRepresentation = null;
if ( this.section5.get(gridId).getDataRepresentationTemplateNumber() == 0 ) {
dataRepresentation = this.section5.get(gridId).getDataRepresentationTemplate(... | [
"private GridDefinitionTemplate3x getGridDefinitionTemplate() {\n GridDefinitionTemplate3x gridDefinition = null;\n // if ( section3.getGridDefinitionTemplateNumber() == 0 ) {\n // gridDefinition = section3.getGridDefinitionTemplate();\n // } else {\n // ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Get a list of items that match an argument. | protected static List<String> getMatches(String arg, List<String> toMatch) {
ArrayList<String> result = new ArrayList<String>(toMatch.size());
arg = arg.toLowerCase();
for (String s : toMatch) {
if (s.toLowerCase().startsWith(arg)) {
result.add(s);
}
}
return result;
} | [
"public List<T> findUsingCondition(Condition condition);",
"public List search(String text){\r\n\t\tif(this.inverntory.empty())\r\n\t\t\tthrow new RuntimeException(\"Inventory is empty.\");\r\n\t\tList matchings = new List();\r\n\t\t// as long as inventory is not empty\r\n\t\t\r\n\t\twhile(!this.inverntory.empty(... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
An Amazon Resource Name (ARN) that uniquely identifies a backup plan; for example, arn:aws:backup:useast1:123456789012:plan:8F81F5533A744A3FB93DB3360DC80C50. | public String getBackupPlanArn() {
return this.backupPlanArn;
} | [
"public String getBackupPlanId() {\n return this.backupPlanId;\n }",
"String getArn();",
"public Plan getPlan(String planName);",
"public String planName() {\n return this.planName;\n }",
"public String getPlanName()\n\t{\n\t\treturn planName;\n\t}",
"public java.lang.String getPlan() ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
As the leader broker, write bundle data aggregated from all brokers to ZooKeeper. | @Override
public void writeBundleDataOnZooKeeper() {
updateBundleData();
// Write the bundle data to ZooKeeper.
for (Map.Entry<String, BundleData> entry : cetusLoadData.getLoadData().getBundleData().entrySet()) {
final String bundle = entry.getKey();
final BundleData data = entry.g... | [
"@Override\n public void writeBrokerDataOnZooKeeper() {\n try {\n updateLocalBrokerData();\n //if (needBrokerDataUpdate()) {\n localData.setLastUpdate(System.currentTimeMillis());\n List<String> bundlesToRemove = new ArrayList<String>();\n for (String b : pulsar.getCetusBr... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |