query stringlengths 8 1.54M | document stringlengths 9 312k | negatives listlengths 19 20 | metadata dict |
|---|---|---|---|
convert a list of index expression to string | private static String indexExpressionsToString(List<IndexExpression> indexExpressions) throws IOException
{
assert indexExpressions != null;
// oh, you thought cfdefToString was awful?
IndexClause indexClause = new IndexClause();
indexClause.setExpressions(indexExpressions);
... | [
"public String indexString(String[] exp) {\n\t\tString[] indexCheckerArray = new String[exp.length];\r\n\t\t//make each elements in the new string array the same as the original expression\r\n\t\tfor(int k = 0; k < exp.length; k++) {\r\n\t\t\tindexCheckerArray[k] = exp[k];\r\n\t\t}\r\n\t\t//make every other element... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
$ANTLR end "rule__Feature__Group__0__Impl" $ANTLR start "rule__Feature__Group__1" ../com.mguidi.soa.ui/srcgen/com/mguidi/soa/ui/contentassist/antlr/internal/InternalSOA.g:2231:1: rule__Feature__Group__1 : rule__Feature__Group__1__Impl rule__Feature__Group__2 ; | public final void rule__Feature__Group__1() throws RecognitionException {
int stackSize = keepStackSize();
try {
// ../com.mguidi.soa.ui/src-gen/com/mguidi/soa/ui/contentassist/antlr/internal/InternalSOA.g:2235:1: ( rule__Feature__Group__1__Impl rule__Feature__Group__2 )
... | [
"public final void rule__Feature__Group__0() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../com.mguidi.soa.ui/src-gen/com/mguidi/soa/ui/contentassist/antlr/internal/InternalSOA.g:2206:1: ( rule__Feature__Group__0__Impl rule__Feature__Gro... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Tests the toString() method of a deadline object. | @Test
public void testStringConversion() throws DukeException {
assertEquals("D|-|test|20/10/2019 2100", new Deadline("test","20/10/2019 2100").toString());
} | [
"@Test\n public void testValidDeadline() {\n Deadline deadlineTestObject1 = new Deadline(\"Complete CS2103T IP /by 2021-09-17\");\n assertDoesNotThrow(() -> {\n Deadline deadlineTestObject2 = new Deadline(\"Complete CS2100 assignment /by 2021-09-15\");\n });\n String expect... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
One or more block device mapping entries. | public java.util.List<BlockDeviceMapping> getBlockDeviceMappings() {
if (blockDeviceMappings == null) {
blockDeviceMappings = new com.amazonaws.internal.ListWithAutoConstructFlag<BlockDeviceMapping>();
blockDeviceMappings.setAutoConstruct(true);
}
return blockDeviceMa... | [
"public ImageAttribute withBlockDeviceMappings(java.util.Collection<BlockDeviceMapping> blockDeviceMappings) {\n if (blockDeviceMappings == null) {\n this.blockDeviceMappings = null;\n } else {\n com.amazonaws.internal.ListWithAutoConstructFlag<BlockDeviceMapping> blockDeviceMapp... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Start function, Handle User operations | public void start() {
while(true) {
switch(startMenu()) {
case 1:
// login
System.out.println("Please enter your username: \n");
String username = scan.nextLine();
UserDef uname = userService.login(username);
if(uname == null) {
System.out.println("Please enter a valid usern... | [
"public void start() {\n\t\trmiUtils.startRMI(IRMI_Defs.CLASS_SERVER_PORT_CLIENT);\n\n\t\ttry {\n\t\t\tview.setRemoteHost(rmiUtils.getLocalAddress()); //TODO Is this stored somewhere?\n\t\t\tuser = new User(\"default\", rmiUtils.getLocalAddress(), this);\n\t\t\tview.append(\"Create User \" + user.getName() + \"\\n\... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Sets value as the attribute value for DistrictLibrDetail. | public void setDistrictLibrDetail(Number value) {
setAttributeInternal(DISTRICTLIBRDETAIL, value);
} | [
"public void setVillageLibrDetail(Number value) {\r\n setAttributeInternal(VILLAGELIBRDETAIL, value);\r\n }",
"public void setTblLibrDetail4(TblLibrDetailImpl value) {\r\n setAttributeInternal(TBLLIBRDETAIL4, value);\r\n }",
"public void setCityLibrDetail(Number value) {\r\n setAttrib... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Checks if is already tracking. | private boolean isAlreadyTracking(){
return PendingIntent.getBroadcast(context, 0, getReceiveIntent(TrackingDeviceReceiver.class, Config.INTENT_RECEIVE_LOCATION), PendingIntent.FLAG_NO_CREATE) != null;
} | [
"public boolean isTracking(Task task) {\n return isTracking && task._id == this.task._id;\n }",
"public void tracking_Report()\n {\n\t boolean trackingpresent =trackingreport.size()>0;\n\t if(trackingpresent)\n\t {\n\t\t //System.out.println(\"Tracking report is PRESENT\");\n\t }\n\t else\n\t {\n\t\t ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Get amperage of the battery. | public float getAmperage() {
return amperage;
} | [
"public synchronized double getAmp() {\n return amp;\n }",
"int getDeviceBattery();",
"int getBattery();",
"public Battery getBattery();",
"public Short getBattery() {\n return battery;\n }",
"public double getBatteryVoltage() {\n\t\treturn this.pdp.getVoltage();\n\t}",
"publ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Sets the financialBeginningBalanceLineAmount attribute value. | public void setFinancialBeginningBalanceLineAmount(KualiInteger financialBeginningBalanceLineAmount) {
this.financialBeginningBalanceLineAmount = financialBeginningBalanceLineAmount;
} | [
"public KualiInteger getFinancialBeginningBalanceLineAmount() {\n return financialBeginningBalanceLineAmount;\n }",
"public void setInitialCashBalance(double amount) {\n simulator.setCashBalance(amount);\n }",
"public void setInitialBalance(double value) {\n this.initialBalance = valu... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
This method is fetching the description of an ingredient. | public String getDescription(int position) {
Ingredient ingredient = items.get(position);
return ingredient.getDescription();
} | [
"public String getRecipeDescription() {\r\n\t\t\r\n\t\treturn recipeDescription;\r\n\t}",
"@Override\n public String toString() {\n\n return this.ingredient.toString();\n }",
"public CraftingIngredient getIngredient();",
"java.lang.String getDesc();",
"@Override\n\tpublic String getDescription(... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Solution using sorting and comparing adjacent characters if same or different Time complexity O(NlogN) Space complexity O(1) | boolean isUniqueUsingSorting(String str) {
char[] array = str.toCharArray();
// Sorting the char array take NlogN time
Arrays.sort(array);
for (int i = 0; i < array.length - 1; i++) {
// If adjacent characters are equal, return false
if (array[i] == array[i + 1]) {
return false;
}
}
return true... | [
"public static void main(String[] args) {\n\n\t\tString a = \"aabbbc\", b =\"cbad\";\n\t\t// a=abc\t\t\t\tb=cab\n\t\t\n\t\t\n\t\tString a1 =\"\" , b1 = \"\"; // to store all the non duplicated values from a\n\t\t\n\t\tfor(int i=0; i<a.length();i++) {\n\t\t\tif(!a1.contains(a.substring(i,i+1)))\n\t\t\t\ta1 += a.subs... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
return menu item object that holds the sorted array by topic | private static MenuItem byTopic() {
mnuItm=new MenuItem("_By Topic");
mnuItm.setAccelerator(new KeyCodeCombination(KeyCode.T, KeyCombination.CONTROL_DOWN)); //setting accelerator key
mnuItm.setOnAction((ActionEvent e)->{
Collections.sort(FileUtils.getQAArrayList(), new ByTop()); //sorting arraylist by cate... | [
"public IDSorter[] topWords(int topic) {\n\tIDSorter[] sortedWords = new IDSorter[numWords];\n\tfor (int type = 0; type < numWords; type++) {\n\t sortedWords[type] = new IDSorter(type, nphi[type][topic]);\n\t}\n\tArrays.sort(sortedWords);\n\treturn sortedWords;\n }",
"java.lang.String getTopics(int index);"... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Creates an image where the blue value has been increased by amount.The range of each color component should be between 0 and 255 in the new image. The alpha value should not be changed. | public Picture addBlue(int amount) {
Picture bluePicture = new Picture(this);
int picHeight = this.getHeight();
int picWidth = this.getWidth();
for (int h = 0; h < picHeight; h++) {
for (int w = 0; w < picWidth; w++) {
bluePicture.addBluePixel(w, h, amount);
}
}
return bluePicture;
} | [
"public static void changeBlue (BufferedImage bi){\n // Get image size to use in for loops\n int xSize = bi.getWidth();\n int ySize = bi.getHeight();\n //increases blue value\n if (adding == true){\n // Using array size as limit\n for (int x = 0; x < xSize; x... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
$ANTLR end "rule__Dashboard__Group__11__Impl" $ANTLR start "rule__Dashboard__Group_9__0" InternalMyDsl.g:1841:1: rule__Dashboard__Group_9__0 : rule__Dashboard__Group_9__0__Impl rule__Dashboard__Group_9__1 ; | public final void rule__Dashboard__Group_9__0() throws RecognitionException {
int stackSize = keepStackSize();
try {
// InternalMyDsl.g:1845:1: ( rule__Dashboard__Group_9__0__Impl rule__Dashboard__Group_9__1 )
// InternalMyDsl.g:1846:2: rule__Dashboard__Group_9__0__I... | [
"public final void rule__Dashboard__Group_9__1() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \t\n try {\n // InternalMyDsl.g:1872:1: ( rule__Dashboard__Group_9__1__Impl )\n // InternalMyDsl.g:1873:2: rule__Dashboard__Group_9__1__Impl\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Sets the value of the BOPCededPremiumHistory field. | public void setBOPCededPremiumHistory(entity.BOPCededPremiumHistory value) {
__getInternalInterface().setFieldValue(BOPCEDEDPREMIUMHISTORY_PROP.get(), value);
} | [
"public void setBOPCededPremiumHistory(entity.BOPCededPremiumHistory value) {\n __getInternalInterface().setFieldValue(BOPCEDEDPREMIUMHISTORY_PROP.get(), value);\n }",
"public void setCedingHistory(entity.WCCededPremiumHistory[] value);",
"@gw.internal.gosu.parser.ExtendedProperty\n public entity.BOP... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
This function is used in the onReceive() func in MyBroadcastReceiver. If isPlaying is true, this function will pause the music. If isPlaying is false, this function will resume the music. | public void playPause(boolean isPlaying) {
//Pause
pause(isPlaying);
//Resume
resume(isPlaying);
} | [
"private void startPlay() {\n isPlaying = true;\n isPaused = false;\n playMusic();\n }",
"private void switchPlayPause(){\n Intent mSwitchPlayStatus = new Intent(BROADCAST_switchPlayStatus);\n if (mIsPlaying==1) {\n mSwitchPlayStatus.putExtra(\"switchPlayStatus... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Interface for defining socalled aggregables which are objects which can be efficiently aggregated using operations cross and plus. | public interface Aggregable {
/**
* Computes cross-operation for this Aggregable and Aggregable b
* @param b aggregable with which the cross-operation should be computed
* @return result of the cross-operation of this and Aggregable b
*/
public Aggregable cross(Aggregable b);
/... | [
"public Aggregable plus(Aggregable b);",
"Aggregate createAggregate();",
"protected abstract void _aggregator();",
"public abstract A newAggregate();",
"private interface MyGenericAggFunction<A, V, R> {\n\n A init();\n\n A add( A accumulator, V val );\n\n A merge( A accumulator1, A accu... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
when logout button clicked, the system send a query to logout and switch to login scene | @FXML
void logout_btn_clicked(MouseEvent event) {
String quary = "UPDATE users SET connection_status = 0 WHERE userID = " + MainClientGUI.getUserID();
Message message = new Message(MessageType.LOGOUT, "MarketingAgentSalesMainController_logout_clicked", quary);
MainClientGUI.client.handleMessageFromClientUI(m... | [
"@FXML\r\n private void handleButtonLogOut() {\r\n sessionContent.remove(\"activeId\");\r\n user = null;\r\n MobileApplication.getInstance().switchView(LOGIN_VIEW);\r\n }",
"private void logout() {\n loggedIn = false;\n user = null;\n VendingMachineSimulation.customerMenu.run(m... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Given a concept, locale, and a string that represents a concept name tag, returns the first concept name for that concept that matches the language and is tagged with the specified tag | public static ConceptName getConceptName(Concept concept, String language, String conceptNameTag) {
if (concept == null) {
log.error("No concept provided to findConceptName");
return null;
}
ConceptNameTag tag = Context.getConceptService().getConceptNameTagByName(conceptNameTag);
if (tag == ... | [
"Concept getConceptName();",
"public static String getLabel(URI concept, Rdf2GoCore repo, String languageTag) {\n\n\t\t// try to find language specific label\n\t\tString label = getLanguageSpecificLabel(concept, repo, languageTag);\n\n\t\t// otherwise use standard label\n\t\tif (label == null) {\n\n\t\t\tString l... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
not null...empty. Sets the list of Products the user wants to compare against. This list contains Product RepositoryItems. NOTE: This list will most likely contain duplicates. If the Product has x number of SKUs, the Product will be added to the ProductCompareList x times so that the length of the ProductCompareList an... | public void setProductCompareList(List pProductCompareList) {
mProductCompareList = pProductCompareList;
} | [
"public List getProductCompareList() {\n return mProductCompareList;\n }",
"public void setSkuCompareList(List pSkuCompareList) {\n mSkuCompareList = pSkuCompareList;\n }",
"public void setSwapProducts(List<SwapProduct> swapProductsIn){\n this.swapProducts = swapProductsIn;\n }",
"@Step\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
A network connection have been closed or lost. The NPair returned won't be able to send any more data. | void handleConnectionClosed(NPair npair); | [
"@Override\n public void connectionLost(Throwable throwable) {\n }",
"public void connectionLost(Throwable reason);",
"public interface NPairHandler {\n\t/**\n\t * An incoming connection have been received from the NServent. The other\n\t * tried to reach me first with his NServent connect... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Sends new files which appeared in the local folder to server by multiple execution of sendFile | @Override
public void sendAdded(List<String> addedFiles) {
if(addedFiles == null) return;
for (String fileName : addedFiles) {
String filePath = Paths.get(path, fileName).toString();
File file = new File(filePath);
Thread thread = new Thread(new Runnable() {
... | [
"@Override\r\n public void run()\r\n {\r\n File server_Dir_Files = new File(client_Info.getDir());\r\n File[] server_Files = server_Dir_Files.listFiles();\r\n boolean check;\r\n ArrayList<String> user_Files = new ArrayList<>();\r\n try\r\n {\r\n DataInputSt... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Returns the result of interpreting the object as an instance of 'Field Subset Type'. This implementation returns null; returning a nonnull result will terminate the switch. | public T caseFieldSubsetType(FieldSubsetType object) {
return null;
} | [
"public T caseDomainSubsetType(DomainSubsetType object) {\n\t\treturn null;\n\t}",
"public T caseAxisSubsetType(AxisSubsetType object) {\n\t\treturn null;\n\t}",
"public T caseSubtypes(Subtypes object)\n {\n return null;\n }",
"public SubType getSubType();",
"java.lang.String getSubType();",
"public ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
It loads the current list of locations | protected void loadLocationList() {
SharedPreferences savedLocationList = getSharedPreferences(getResources().getString(R.string.SAVED_LOCATION_LIST), MODE_PRIVATE);
MyLocationListActivity.jsonMyLocationsList = savedLocationList.getString(getResources().getString(R.string.SAVED_LOCATION_LIST), null);
... | [
"private void loadLocations()\n {\n locationsPopUpMenu.getMenu().clear();\n\n ArrayList<String> locations = new ArrayList<>(locationDBManager.findSavedLocations());\n for (int i=0; i < locations.size(); i++)\n {\n locationsPopUpMenu.getMenu().add(locations.get(i));\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
getNewNick() returns the new nick of the user | public final String getNewNick()
{
return newNick;
} | [
"public final String getOldNick()\n\t{\n\t\treturn oldNick;\n\t}",
"java.lang.String getNick();",
"public void changeNick(String newnick);",
"public String getNick() {\n\t\treturn nick;\n\t}",
"public final String getNickName() {\n return nickName;\n }",
"java.lang.String getNickName();",
"String ge... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
stat: upvotes by category | @Query(value = "select sum(upvotes),c.name from Article as a join Category as c on a.categoryid=c.categoryid group by a.categoryid",nativeQuery = true)
List<Object[]> upvotesByCat(); | [
"public void upvote() {\n numberOfUpvotes += 1;\n }",
"public int getUpVotes() {\n return upVotes;\n }",
"public void test_CI1_Upvote()\n\t{\n\t\tassertEquals(\"No upvotes\", testComment.getUpvoteCount(), 0);\n\t\t\n\t\ttestComment.upvote();\n\t\t\n\t\tassertEquals(\"One upvote\", testComment.getU... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Determines if the guestname has been modified. | public boolean isGuestnameModified() {
return guestname_is_modified;
} | [
"public boolean isNameModified() {\n return name_is_modified; \n }",
"public boolean isModifiedName() {\n return modified.get(4);\n }",
"public boolean getNameChanged() {\n Boolean v = ((Boolean) data.get(NAMECHANGED));\n return (v == null) ? false : v.booleanValue();\n... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Run the String getXMLTagName() method test. | @Test
public void testGetXMLTagName_1()
throws Exception {
AbstractGoods fixture = new AbstractGoods(new GoodsType("", new Specification()), 1);
String result = fixture.getXMLTagName();
// add additional test code here
assertEquals("abstractGoods", result);
} | [
"@Test\n\tpublic void testGetXMLElementTagName_1()\n\t\tthrows Exception {\n\n\t\tString result = AbstractGoods.getXMLElementTagName();\n\n\t\t// add additional test code here\n\t\tassertEquals(\"abstractGoods\", result);\n\t}",
"@Test\n\tpublic void testGetXMLElementTagName_1()\n\t\tthrows Exception {\n\n\t\tStr... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
OnResume, called right before UI is displayed. Connect to the bluetooth device. | @Override
protected void onResume() {
super.onResume();
writeLine("Connecting...");
uart.registerCallback(this);
uart.connectFirstAvailable();
} | [
"private void setupBluetooth(){\r\n\t\tBluetoothAdapter adapter = BluetoothAdapter.getDefaultAdapter();\r\n\t\tif(adapter != null && adapter.isEnabled()){\r\n\t\t\t\r\n\t\t\tLog.d(TAG, \"bluetooth enabled, starting discovery\");\r\n\t\t\tif(adapter.isDiscovering()){\r\n\t\t\t\tadapter.cancelDiscovery();\r\n\t\t\t}\... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
get the currency id. | public String getCurrencyId()
{
return currencyId;
} | [
"java.lang.String getCurrencyID();",
"Long getCurrencyId();",
"public String getCurrencyID() {\n return currencyID;\n }",
"public String getCurrencyID() {\n return currencyID;\n }",
"public java.lang.Object getCurrencyID() {\n return currencyID;\n }",
"@Override\n\tpublic long getCur... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Sets whether the panel is sizable. If true, an user can drag the border to change the panel width. Default: false. | public void setSizable(boolean sizable); | [
"public boolean isSizable();",
"void setDockedLayoutResizable(boolean b);",
"void setResizable(boolean resizable);",
"void setResizable(boolean resize);",
"public void setResizable ( Boolean resizable ) {\r\n\t\tgetStateHelper().put(PropertyKeys.resizable, resizable);\r\n\t\thandleAttribute(\"resizable\",... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Returns the meal tickets before and after the current meal ticket in the ordered set where personID = &63;. | @Override
public MealTicket[] findByPersonId_PrevAndNext(String custom_key,
long personID, OrderByComparator<MealTicket> orderByComparator)
throws NoSuchMealTicketException {
MealTicket mealTicket = findByPrimaryKey(custom_key);
Session session = null;
try {
session = openSession();
MealTicket[] arr... | [
"@Override\n\tpublic List<MealTicket> findByPersonId(long personID) {\n\t\treturn findByPersonId(personID, QueryUtil.ALL_POS, QueryUtil.ALL_POS,\n\t\t\tnull);\n\t}",
"@Override\n public Set PatientsOlderThenEnlistedAfter() {\n Set<Patient> patients = new HashSet<>();\n patientRepository.findAll()... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
allowWatchBookmarks requests watch events with type "BOOKMARK". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a ... | public ListFeatureGate allowWatchBookmarks(Boolean allowWatchBookmarks) {
put("allowWatchBookmarks", allowWatchBookmarks);
return this;
} | [
"public ListAPIServer allowWatchBookmarks(Boolean allowWatchBookmarks) {\n put(\"allowWatchBookmarks\", allowWatchBookmarks);\n return this;\n }",
"public ListOAuth allowWatchBookmarks(Boolean allowWatchBookmarks) {\n put(\"allowWatchBookmarks\", allowWatchBookmarks);\n return this;\n }"... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Constructors constructs a Time object starting at 12 AM | public Time() {
hr = 0;
min = 0;
} | [
"public SimTime(){\n\t\tSimHours = 12;\n\t\tSimMins = 0;\n\t\ttimeOfDay = \"PM\";\n\t}",
"Time createTime();",
"public Time( int hour, int minute ) {\n this( hour * MINS_PER_HR + minute );\n }",
"public Time2(int hour, int minute) {\n this(hour, minute, 0); // invoke constructor with three ar... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
name, kor, eng, math total, avg | public static void main(String[]args){
Scanner s = new Scanner(System.in);
int kor=0,eng=0,math=0,total=0,avg=0;
String grade = "";
System.out.print("name :");
String name = s.next();
System.out.print("kor :");
kor = s.nextInt();
System.out.print("eng :");
eng = s.nextInt();
System.out.print("mat... | [
"float getAqiAvg();",
"double getAvgTreatment();",
"public double calAvg(Student [] sdata)\n\t\n\t{\nfor(int i=0; i<sdata.length;i++)\n\t\t\t\n\t\t{\n\t\t\t\n\t\t\tavg= ((sdata[i].getMarks1()) + (sdata[i].getMarks2()))/2;\n\t\t\tif (avg>=90)\n\t\t\t{\n\t\t\t\t\t\n\t\t\t\tSystem.out.println(\"Average of \"+sdata... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
If both ack number and ack flag are correct, then packet should be valid | public boolean isPacketAcknowledged() {
try {
final PacketHeader packetHeader = new PacketHeader();
// First part is ack number
// Second part is ack flag
return packetHeader.getSequenceNumber() == this.dataPacket.getNextSequenceNumber() && p... | [
"public boolean isAckAck() {\r\n return (this.header[0]==-2);\r\n }",
"private boolean allPacketsAckedSendAndAcked() {\n\t\treturn algorithm.areAllPacketsAcked() && !buffer.hasRemaining();\r\n\t}",
"public boolean isAck() {\r\n return (this.header[0]==-1);\r\n }",
"public boolean isACK(int e... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Gets the GroupUser by the ID specified | GroupUser getGroupUserById(String id); | [
"private User getUser(int id) {\n\n for (User user : this.users\n ) {\n if (user.getUserNumber() == id) return user;\n }\n return null;\n }",
"List<User> getUsersByGroup(int id);",
"public Optional<GroupMember> findOne(String id) {\n log.debug(\"Request to get Gr... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Set the value related to the column: judgementOtherEvidence. | public void setJudgementOtherEvidence(final String judgementOtherEvidence) {
this.judgementOtherEvidence = judgementOtherEvidence;
} | [
"@Basic( optional = true )\r\n\t@Column( name = \"judgement_other_evidence\", length = 255 )\r\n\tpublic String getJudgementOtherEvidence() {\r\n\t\treturn this.judgementOtherEvidence;\r\n\t\t\r\n\t}",
"public void setOther(gov.nih.nlm.ncbi.www.SeqIdDocument.SeqId.Other other)\r\n {\r\n synchro... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
$ANTLR end "rule__AttDef__Group__5" $ANTLR start "rule__AttDef__Group__5__Impl" InternalDsl.g:12569:1: rule__AttDef__Group__5__Impl : ( ( rule__AttDef__Group_5__0 )? ) ; | public final void rule__AttDef__Group__5__Impl() throws RecognitionException {
int stackSize = keepStackSize();
try {
// InternalDsl.g:12573:1: ( ( ( rule__AttDef__Group_5__0 )? ) )
// InternalDsl.g:12574:1: ( ( rule__AttDef__Group_5__0 )? )
{
... | [
"public final void rule__AttDef__Group_5__3() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \t\n try {\n // InternalDsl.g:12804:1: ( rule__AttDef__Group_5__3__Impl )\n // InternalDsl.g:12805:2: rule__AttDef__Group_5__3__Impl\n {\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Write a method with three parameters that will deduce whether such a triangle is possible. (Tip: For a triangle, the sum of any two sides must be greater than the third.) Call it in the main method. | public static void triangle(int a, int b, int c) {
if (a + b > c && a + c > b && b + c > a) {
System.out.println("A triangle with such sides is possible");
} else {
System.out.println("A triangle with such sides is not possible");
}
} | [
"boolean canFormTriangle(double a, double b, double c) {\n return (a + b > c) && (a + c > b) && (b + c > a);\n }",
"public static void main (String[] args)\n {\n assert(!if_sides_form_valid_triangle(0, 4, 5));\n assert(!if_sides_form_valid_triangle(-1, 4, 5));\n assert(!i... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
test multiple loads at same time only kick off one load, and callbacks are invoked | public void testMultiLoad() throws Exception {
MockFileOp fop = new MockFileOp();
final AtomicBoolean localStarted = new AtomicBoolean(false);
AtomicBoolean localCallback1Run = new AtomicBoolean(false);
AtomicBoolean localCallback2Run = new AtomicBoolean(false);
AtomicBoolean rem... | [
"public void testLoadOrder() throws Exception {\n }",
"public void testLoadOrder() throws Exception {\n WebXMLString wxs = new WebXMLString();\n wxs.addServlet( \"servlet1\", \"one\", Servlet1.class );\n wxs.setLoadOnStartup( \"servlet1\", 2 );\n wxs.addServlet( \"servlet2\", \"... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Return the indexed arg. If invalid index, return the given default value. | private Object getArg(Object[] args, int index, Object defaultValue) {
if (index < 0) return defaultValue;
return (args != null && args.length >= index+1) ? args[index] : defaultValue;
} | [
"E get(int index, E defaultVal);",
"public PyObject arg(int index, PyObject def) {\n if (index >= 0 && index <= arguments.length - 1) {\n return arguments[index];\n }\n \n return def;\n }",
"float getWithDefault(int idx, float defaultVal);",
"int getArgIndex();",
"int... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
cluster1 lives at regular HBase home, so we don't need to change how phoenix handles lookups conf1.set(HConstants.ZOOKEEPER_ZNODE_PARENT, "/1"); smaller log roll size to trigger more events | private static void setupConfigsAndStartCluster() throws Exception {
setUpConfigForMiniCluster(conf1);
conf1.setFloat("hbase.regionserver.logroll.multiplier", 0.0003f);
conf1.setInt("replication.source.size.capacity", 10240);
conf1.setLong("replication.source.sleepforretries", 100);
... | [
"protected String getMasterZNodeParentPath(){return conf.getString(Constants.ZOOKEEPER_ESCHEDULER_MASTERS);}",
"public MiniZooKeeperCluster() {\n this(HBaseConfiguration.create());\n }",
"public HRegionServer(HServerAddress address, HBaseConfiguration conf)\n throws IOException { \n this.abortRequest... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Enter traveling info to search a suitable hotel | protected void enterTravelingInfo(TravellingInfo travel) {
enterSearchKeyWord(travel.getDestination());
selectDate("in", travel.getCheckInDate());
selectDate("out", travel.getCheckOutDate());
selectTravelerType(travel.getTravelOption());
selectNumber(TravelFields.ROOM, travel.getNumberOfRoom());
selec... | [
"public void searchHotels(String location, String noOfRoomAndTravellers){\r\n\t\thotelLink.click();\r\n\t\tWaitHelper wait = new WaitHelper(driver);\r\n\t\twait.waitElementTobeClickable(driver, localityTextBox, 20).click();\r\n\t\tlocalityTextBox.clear();\r\n\t\tlocalityTextBox.sendKeys(location);\r\n\t\t\r\n\t\tWe... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Constructs a Shingle with a document Id and a hashcode | public Shingle(int docId, int hashCode) {
super();
this.docId = docId;
this.hashCode = hashCode;
} | [
"public wsihash create(long wsihashId);",
"public ShingleRepository() {\n\t\tshingles = new ArrayList<>();\n\t\tshingleIds = new HashMap<>();\n\t}",
"public Sone(String id) {\n \t\tthis.id = UUID.fromString(id);\n \t}",
"private static Shard createShardFromString(String str) {\n int first = str.indexOf(\"@... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
this function will move up one level the right child System.out.println("Move Right Child Up"); System.out.println("operator seen: "+operatorSeen); | public static void moveRightChildUp() {
if (insideExprCount == 1){
factorRecognized = 0;
}
if(moveOK == "no" && factorRecognized != 1) {
//System.out.println("Back.");
//System.out.println("HERE..");
NUM_OF_TIMES_NOT_HIT++;
if(NUM_OF_TIMES_NOT_HIT == 2) {
moveOK = "yes";
NUM_OF_TIMES_NO... | [
"public void moveUp() {\r\n\t\tif (this.active.getParent() != null) {\r\n\t\t\tthis.active = this.active.getParent();\r\n\t\t\tif (this.active.right_child != null) {\r\n\t\t\t\tthis.moveUp();\r\n\t\t\t}\r\n\t\t}\r\n\t}",
"public abstract boolean moveToRightNode();",
"private int rightChild(int pos) \n { \n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Create and then add a row to the grade table. Adds the backing data for this new entry in the ArrayList gradeTableDataArray | public void addRowToGradeTable(){
//Get the data from the three user input EditText lines
EditText inputAssign = findViewById(R.id.inputAssign);
String inputAssignValue = inputAssign.getText().toString();
EditText inputGrade = findViewById(R.id.inputGrade);
String inputGradeValu... | [
"private void addRow() {\n\n rowData.add(user.getCurrentWorkStep());\n table.setItems(rowData);\n MySqlDatabase.getInstance().addWorkStep(user.getCurrentWorkStep());\n\n }",
"public void addRow()\n {\n internalAddRow(_data.size(), new Object[getColumnCount()]);\n }",
"protec... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Gets the speed of the space station. Speed is calculated as fraction of fuel units and max fuel possible | public float getSpeed() {
if ( MAXFUEL == 0 ) {
throw new IllegalArgumentException("Zero division at SpaceStation.getSpeed(): MAXFUEL cannot be zero");
//return 0f;
} else
return fuelUnits / MAXFUEL;
} | [
"public Double getDrivingSpeed() {\n Segment seg = this.getFirst();\n if (seg.isOccupied()) {\n //System.out.println(\"getTailingSpeed: \" + seg.getTailingSpeed());\n return seg.getTailingSpeed();\n }\n //System.out.println(\"getSpeed: \" + seg.getSpeed());\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Copies the colors, ID's and selection status of this polygon to the given polygon | public void copyAttributes(Polygon otherPolygon) {
this.selected = otherPolygon.selected;
this.edgeColor = otherPolygon.edgeColor;
this.faceColor = otherPolygon.faceColor;
this.shapeID = otherPolygon.shapeID;
this.polygonID = otherPolygon.polygonID;
this.isVisible = other... | [
"void appendPolygon(Polygon polygon);",
"void setupPolygonDrag() {\n\t\tselectedLine = -1;\n\t\tbeginOffsetP.set(P);\n\t\tfor (int i = 0; i < amount; i++)\n\t\t\tpoint[i].beginPosition.set(point[i].position);\n\t}",
"private void updateGuiPolygon() {\n \t\tif ( this.poly != null ) {\n \t\t\tthis.poly.remove();\... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Returns the class primary key of the trash entry for this employee interview schedule. | @Override
public long getTrashEntryClassPK() {
return _employeeInterviewSchedule.getTrashEntryClassPK();
} | [
"@Override\n\tpublic long getTrashEntryClassPK();",
"@Override\n\tpublic long getTrashEntryClassPK() {\n\t\treturn _ext_information.getTrashEntryClassPK();\n\t}",
"@Override\n public long getTrashEntryClassPK();",
"@Override\n\tpublic long getEntryClassPK() {\n\t\treturn model.getEntryClassPK();\n\t}",
"... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Gets the value of the 'FLIGHT_ID' field. | public java.lang.Long getFLIGHTID() {
return FLIGHT_ID;
} | [
"public java.lang.Long getFLIGHTID() {\n return FLIGHT_ID;\n }",
"public long getFlightId() {\n\t\treturn flightId;\n\t}",
"public String getFlightId() {\n return flightId;\n }",
"public void setFLIGHTID(java.lang.Long value) {\n this.FLIGHT_ID = value;\n }",
"public int get_flight() {... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Override javafx TextArea method applying TextArea.paste() and pasteActionHandler after | @Override
public void paste() {
super.paste();
pasteActionHandler.handle();
} | [
"@Override\r\n public void paste(){\r\n \r\n //Paste the string stored in tempString\r\n this.insertText(this.getCaretPosition(), tempString);\r\n \r\n }",
"@Override\n public void paste() {\n //if the cursor position is not at the start of a new line add the new lin... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Sets the file from which to read the resource names. | public void setResourcefile (File file)
{
_resourcefile = file;
} | [
"Imports setFile(String file);",
"Imports setFilename(String filename);",
"void setPathToResources(String pathToResources);",
"@Required\n\tpublic void setResource(final String filename) {\n\t\ttry {\n\t\t\tthis.validDocStr = ResourceUtil.getTextResource(\n\t\t\t\t\tthis.applicationContext, filename);\n\t\t} ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
To update chart's height. | public void upHeight(int heightChart) {
if (optionsMap == null)
optionsMap = new HashMap<String, String>();
if (optionsMap.containsKey(height) == false)
optionsMap.put(height, String.valueOf(heightChart));
else
optionsMap.replace(height, String.valueOf(heightChart));
if (fixedDatas != null... | [
"public void updateHeight() {\n Rectangle repaintBounds = getBounds();\n parent.getScene().paintImmediately(repaintBounds);\n\n // set new height compute while repainting.\n setBounds(new Rectangle(bounds));\n\n parent.getScene().repaint(repaintBounds);\n setChanged();\n notifyObservers();\n }... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Gets a new KeyDownHandler for the date filter. | private KeyDownHandler getDateKeyDownHandler() {
KeyDownHandler handler = new KeyDownHandler(){
public void onKeyDown(KeyDownEvent event) {
if(event.getNativeKeyCode() == KeyCodes.KEY_ENTER ){
String dateInput = dateBox.getText();
//year was entered
if( dateInput.matches("\\d{4}") ) {
//i... | [
"private KeyDownHandler getDurationKeyDownHandler() {\n\t\tKeyDownHandler handler = new KeyDownHandler() {\n\t\t\tpublic void onKeyDown(KeyDownEvent event) {\n\t\t\t\tif(event.getNativeKeyCode() == KeyCodes.KEY_ENTER ){\n\t\t\t\t\tString durationInput = durationBox.getText();\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t//year was... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Builds the layout for the number picker. | private FrameLayout buildPickerLayout(NumberPicker numberPicker) {
final FrameLayout frameLayout = new FrameLayout(context);
frameLayout.addView(numberPicker, new FrameLayout.LayoutParams(
FrameLayout.LayoutParams.WRAP_CONTENT,
FrameLayout.LayoutParams.WRAP_CONTENT,
... | [
"private void buildNumberPicker(FrameLayout frameLayout, final NumberPicker numberPicker,\n final Dinner dinner, final int position) {\n new AlertDialog.Builder(context)\n .setView(frameLayout)\n .setTitle(context.getString(R.string.howManyJoin)... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Increases the internal counter to consider this link removed | public void tagAsRemoved() {
levelOfRemoval ++;
} | [
"private void linkRemoved(Link link) {\n\n\t}",
"void removeLink(int i);",
"public void removelink(LinkIndic linkToRemove) { \n linkedTerrs.remove(linkToRemove.linkedTerr());\n linkIndicList.remove(linkToRemove);\n \n if(!isLargeEnough() && newLinks != this) {\n linkIndicL... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Generates the JavaScript used to instantiate this GMap as an JavaScript class on the client side. | private String getJSinit() {
final StringBuffer js = new StringBuffer("new WicketMap('" + _map.getMarkupId() + "');\n");
// js.append(getJSclearAllListeners());
js.append(_overlayListener.getJSinit());
js.append(getJSsetCenter(getCenter()));
js.append(getJSsetZoom(getZoo... | [
"public String renderJs() {\n\n Map map = getModelObject();\n\n StringBuilder builder = new StringBuilder();\n builder.append(renderBeforeConstructorJs() + \"\\n\\n\");\n builder.append(renderAfterConstructorJs());\n builder.append(map.getJsId() + \" = new \" + map.getJsType() + \... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
This method was generated by MyBatis Generator. This method sets the value of the database column query_definition.owner_code | public void setOwner_code(String owner_code) {
this.owner_code = owner_code == null ? null : owner_code.trim();
} | [
"public void setOwnerCode(String code) {\n ((ObjectNode) jsonContent).with(OWNER_KEY).put(OWNER_CODE_KEY, code);\n }",
"public String getOwner_code() {\n return owner_code;\n }",
"void setOwnerId(final Integer ownerId);",
"public void setOwner_id(Integer owner_id) {\n this.owner_id ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Returns the bill a staff member is currently processing | public Bill getBill() {
return currentlyProcessing;
} | [
"public String getStatusBill() {\n return statusBill;\n }",
"public java.lang.String getBillFee() {\n return billFee;\n }",
"public int getBill() {\n return bill;\n }",
"public Long getBillNo() {\n return billNo;\n }",
"public String getBillSouce() {\n return b... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
required int32 scale = 1; | int getScale(); | [
"public void setScale(int value) {\n this.scale = value;\n }",
"int getWrongScale();",
"public void setScale(Integer scale) {\n this.scale = scale;\n }",
"int getMaxScale();",
"public void setScale(int value) {\r\n this.scale... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Lists DeliveryPipelines in a given project and location. | public com.google.common.util.concurrent.ListenableFuture<
com.google.cloud.deploy.v1.ListDeliveryPipelinesResponse>
listDeliveryPipelines(com.google.cloud.deploy.v1.ListDeliveryPipelinesRequest request) {
return io.grpc.stub.ClientCalls.futureUnaryCall(
getChannel().newCall(getListD... | [
"public com.google.cloud.deploy.v1.ListDeliveryPipelinesResponse listDeliveryPipelines(\n com.google.cloud.deploy.v1.ListDeliveryPipelinesRequest request) {\n return io.grpc.stub.ClientCalls.blockingUnaryCall(\n getChannel(), getListDeliveryPipelinesMethod(), getCallOptions(), request);\n }"... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Get the value of the indexth node in the linked list. If the index is invalid, return 1. | public int get(int index) {
if ((index >= this.length)||(index < 0))
return -1;
int i = 0;
ListNode cur = this.head;
while (i < this.length){
if (i == index){
break;
} else {
cur = cur.next;
++i;
... | [
"public int get(int index) {\n ListNode node = getNode(index);\n return node == null ? -1 : node.val;\n }",
"public int get(int index) {\n Node cur = head;\n int j = -1;\n while(cur.next != null) {\n \tcur = cur.next;\n \tj++;\n \tif (j == ind... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
$ANTLR end "rule__OperationCall__Group_3__0" $ANTLR start "rule__OperationCall__Group_3__0__Impl" InternalOCLlite.g:6239:1: rule__OperationCall__Group_3__0__Impl : ( ( rule__OperationCall__ArgumentsAssignment_3_0 ) ) ; | public final void rule__OperationCall__Group_3__0__Impl() throws RecognitionException {
int stackSize = keepStackSize();
try {
// InternalOCLlite.g:6243:1: ( ( ( rule__OperationCall__ArgumentsAssignment_3_0 ) ) )
// InternalOCLlite.g:6244:1: ( ( rule__OperationCall__... | [
"public final void rule__OperationCall__Group_3_1__1__Impl() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \t\n try {\n // InternalOCLlite.g:6323:1: ( ( ( rule__OperationCall__ArgumentsAssignment_3_1_1 ) ) )\n // InternalOCLlite.g:6324:1: ( ( rul... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Gets the value of the accessibilityComputationAreaFromNetwork property. | public boolean isAccessibilityComputationAreaFromNetwork() {
return accessibilityComputationAreaFromNetwork;
} | [
"public void setAccessibilityComputationAreaFromNetwork(boolean value) {\n this.accessibilityComputationAreaFromNetwork = value;\n }",
"public boolean isAccessibilityComputationAreaFromBoundingBox() {\n return accessibilityComputationAreaFromBoundingBox;\n }",
"public TrafficArea getArea() {... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Negative test case for getSequenceGenerators method with Negative case. | @Test(groups = {"wso2.ei"}, description = "workday {getSequenceGenerators} integration test with negative case.")
public void testGetSequenceGeneratorsWithNegativeCase() throws Exception {
String eiFaultCodeElement = "";
try {
SOAPEnvelope eiSoapResponse = sendSOAPRequest(proxyUrl, "eiGe... | [
"@Test(groups = {\"wso2.ei\"}, description = \"workday {incrementSequenceGenerator} integration test with negative case.\")\n public void testIncrementSequenceGeneratorWithNegativeCase() throws Exception {\n String eiFaultCodeElement = \"\";\n try {\n SOAPEnvelope eiSoapResponse = sendSO... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Contexts: GreedySnake returns GreedySnake Constraint: ( name=ID ( snakes+=InitialSnakeSpecificatin | foods+=InitialFoodSpecificatin | obstacles+=InitialObstacleSpecificatin | speed+=InitialSpeedSpecification | fire+=InitialFireSpecification | time+=TimeLimited | Map+=GlobalMap | SnakeMove+=SnakeMoveSpecification | abou... | protected void sequence_GreedySnake(ISerializationContext context, GreedySnake semanticObject) {
genericSequencer.createSequence(context, semanticObject);
} | [
"Snake(){\n snakeLength = 0; //start with snake of length 0\n snakeHead = new Token();\n snakeDirections = new ArrayList<>();\n bend = new ArrayList<>();\n counter = new ArrayList<>();\n }",
"private void createSnake() {\r\n int halfWidth = gridWidth / 2;\r\n in... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Access method for legacySandType. | public String getLegacySandType() {
return legacySandType;
} | [
"public void setLegacySandType(String aLegacySandType) {\n legacySandType = aLegacySandType;\n }",
"public Type getStrandType()\n {\n return type;\n }",
"public byte getSType() {\r\n return _sType;\r\n }",
"protected String getStrainType()\n{\n\treturn \"Met E\";\n}",
"@Over... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
$ANTLR end "rule__XMemberFeatureCall__FeatureAssignment_1_0_0_0_2" $ANTLR start "rule__XMemberFeatureCall__ValueAssignment_1_0_1" ../org.xtext.example.rmodp.ui/srcgen/org/xtext/example/rmodp/ui/contentassist/antlr/internal/InternalRmOdp.g:30721:1: rule__XMemberFeatureCall__ValueAssignment_1_0_1 : ( ruleXAssignment ) ; | public final void rule__XMemberFeatureCall__ValueAssignment_1_0_1() throws RecognitionException {
int stackSize = keepStackSize();
try {
// ../org.xtext.example.rmodp.ui/src-gen/org/xtext/example/rmodp/ui/contentassist/antlr/internal/InternalRmOdp.g:30725:1: ( ( ruleXAss... | [
"public final void rule__XMemberFeatureCall__Group_1_0__1__Impl() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.xtext.example.helloxcore.ui/src-gen/org/xtext/example/helloxcore/ui/contentassist/antlr/internal/InternalHelloXcore.g:62... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Calculate max radius from background circle middle to content box | private void updateBackgroundRadius() {
mBackgroundShape.setRadius(0);
// Get content location without padding
int left = mContentBox.getLeft();
int right = mContentBox.getRight();
int top = mContentBox.getTop();
int bottom = mContentBox.getBottom();
int maxRadius = 0;
// Around target and content
... | [
"private int getMaxRippleRadius(float x, float y) {\n float x1 = x < mBackgroundBounds.centerX() ? mBackgroundBounds.right : mBackgroundBounds.left;\n float y1 = y < mBackgroundBounds.centerY() ? mBackgroundBounds.bottom : mBackgroundBounds.top;\n\n return (int) Math.round(Math.sqrt(Math.pow(x1... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
A typed decorator with the given decorator as its default. | public TypedDecorator(FigureDecorator defaultDecorator) {
_defaultDecorator = defaultDecorator;
_typedDecorators = new Hashtable();
} | [
"Form addDefaultDecoratorForElementClass(Class<? extends Element> clazz, Decorator decorator);",
"T decorate(T decorated);",
"Decorator decorator(String name);",
"public ThriftServiceRegistrationBean setDecorator(\n @NotNull Function<Service<HttpRequest, HttpResponse>,\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Feature: readingTestId getter for readingTestId gets | public String getReadingTestId() {
if (TestDocument_Type.featOkTst && ((TestDocument_Type)jcasType).casFeat_readingTestId == null)
jcasType.jcas.throwFeatMissing("readingTestId", "edu.cmu.lti.qalab.types.TestDocument");
return jcasType.ll_cas.ll_getStringValue(addr, ((TestDocument_Type)jcasType).casFeatCo... | [
"public Integer getTestId() {\n return testId;\n }",
"public Long getTestId() {\n return testId;\n }",
"@Test\r\n public void testReadById() {\r\n \r\n // already being tested above\r\n }",
"@Test\n public void getID() {\n\n }",
"public String getTestSetId() {\n... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Get an edge from the graph on which the given function takes the given value | <O> E getEdge(Function<E, O> map, O value); | [
"E getEdge(int id);",
"public Edge<V> getEdge(V source, V target);",
"Edge getEdge(Node q);",
"@NonNull\n Optional<GraphEdge<N>> getEdgeTo(@NonNull N node);",
"Edge get(Direction direction);",
"EDEdge<W> getEdge(int source, int dest);",
"public E edgeForName(String s);",
"public Edge getEdgeAt(int ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
optional string diskType = 11; | public Builder setDiskType(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000400;
diskType_ = value;
onChanged();
return this;
} | [
"java.lang.String getDiskType();",
"java.lang.String getBootDiskType();",
"public void setDiskType(String DiskType) {\n this.DiskType = DiskType;\n }",
"java.lang.String getDiskTypeId();",
"public String getDiskType() {\n return this.DiskType;\n }",
"@OneOf( { \"B\", \"KB\", \"MB\", \"... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Gets the "AutoForwardToEmailAddress" element | public java.lang.String getAutoForwardToEmailAddress()
{
synchronized (monitor())
{
check_orphaned();
org.apache.xmlbeans.SimpleValue target = null;
target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(AUTOFORWARDTOEMAILADDRESS$10, 0);
... | [
"public org.apache.xmlbeans.XmlString xgetAutoForwardToEmailAddress()\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.apache.xmlbeans.XmlString target = null;\n target = (org.apache.xmlbeans.XmlString)get_store().find_element_user(AUTOFORWARDTOEMAILADDR... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Assert that the language as the given tag | public LanguageAssert hasTag(String tag) {
assertThat(actual.getLanguageTag()).as(descriptionText() + " tag").isEqualTo(tag);
return this;
} | [
"LanguageTag tag();",
"@Test\n public void containsLanguageTagsCaseInsensitiveTurkish() {\n final Locale defaultLocale = Locale.getDefault();\n try {\n Locale.setDefault(Locale.ROOT);\n final Literal lowerROOT = factory.createLiteral(\"moi\", \"fi\");\n final Lite... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
getWindowNo Return the JFrame pointer of WindowNo or null | public static JFrame getWindow (int WindowNo)
{
JFrame retValue = null;
try
{
retValue = getFrame ((Container)s_windows.get(WindowNo));
}
catch (Exception e)
{
System.err.println("Env.getWindow - " + e);
}
return retValue;
} | [
"private WinDef.HWND getHWND() {\n String[] windowNames = {\n \"Solitaire & Casual Games\",\n \"Solitaire Collection\"\n };\n for (String windowName : windowNames) {\n WinDef.HWND hwnd = User32.INSTANCE.FindWindow(\"ApplicationFrameWindow\", windowName);... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
/ Method to decode polyline points | private ArrayList<LatLng> decodePoly(String encoded) {
ArrayList<LatLng> poly = new ArrayList<LatLng>();
int index = 0, len = encoded.length();
int lat = 0, lng = 0;
while (index < len) {
int b, shift = 0, result = 0;
do {
b = encoded.charAt(inde... | [
"public List<LatLng> decodePolyline(String polyline) {\n List<LatLng> line = new ArrayList<>();\n int index = 0;\n int len = polyline.length();\n int lat = 0, lng = 0;\n\n while (index < len) {\n int b, shift = 0, result = 0;\n do {\n b = polyl... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Unregister an single document listener from the document. | void removeSingleDocumentListener(SingleDocumentListener l); | [
"public void unregisterListener() {\n\t\tthis.listener = null;\n\t}",
"public void removeDocumentChangeListener(I_DocumentChangeListener listener) {\r\n\t\teventListenerList.remove(I_DocumentChangeListener.class, listener);\r\n\t}",
"public void removeDocumentChangeListener(final DocumentChangeListener listener... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Sets (as xml) the "productVersion" element | void xsetProductVersion(amdocs.iam.pd.general.common.Long productVersion); | [
"void setProductVersion(java.lang.String productVersion);",
"public void xsetProductVersion(org.apache.xmlbeans.XmlString productVersion) {\n synchronized (monitor()) {\n check_orphaned();\n\n org.apache.xmlbeans.XmlString target = null;\n target = (org.apache.xmlbeans.XmlS... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Returns an array of all Fields of one DataElement. | public Field[] getFields() {
if (dSet.isEmpty())
throw new RuntimeException("No Elements available.");
java.util.Iterator it = dSet.iterator();
DataElement element = (DataElement) it.next();
if (element.isEmpty())
throw new RuntimeException("No... | [
"public DataField[] getDataFields()\n {\n if(formDataFields==null)\n {\n Vector tmp = new Vector();\n addDataFields(tmp);\n formDataFields = new DataField[tmp.size()];\n tmp.copyInto(formDataFields);\n }\n \n return formDataFields;\n }",
"public MetaField[] getMetaFields() {\n... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
An array of bundles that this product participates in. Each bundle is described by free form information but also by a list of product IDs of the other products that are included in the bundle. It is assumed that the current product is included in the bundle also | public List<BankingProductBundle> getBundles() {
return bundles;
} | [
"Bundle[] getBundles();",
"public BundleList custody_bundles() {\r\n \t\treturn custody_bundles_;\r\n \t}",
"private static void listBundle() {\r\n\t\tSystem.out.println(\"listBundle\");\r\n\r\n\t\tif (bundles.isEmpty()){\r\n\t\t\tSystem.out.println(\"There are no bundles\");\r\n\t\t\treturn;\r\n\t\t}\r\n\t\t\r... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
utility function gets the currently selected space. | private Integer getSelectedSpace() {
return (Integer) list.getSelectionModel().getSelectedIndex();
} | [
"public String getCurrentSpace() {\n return spaces.getValue();\n }",
"public Space getSpace() {\r\n\t\treturn this.space;\r\n\t}",
"public Space askWhichSpace() {\n\t\tdo{\n\t\t\thandlers.get(currentPlayer).send(\"Enter which space you want to go into [coinSpace / servantSpace / mixedSpace / privilege... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Creates a DateClient object, listening on the specified port number | public DateClient(String serverName, int portNumber) {
try {
socket = new Socket(serverName, portNumber);
stdIn = new BufferedReader (new InputStreamReader(System.in));
socketIn = new BufferedReader (new InputStreamReader (socket.getInputStream()));
socketOut = ne... | [
"public TimeTCPClient()\r\n {\r\n this.setDefaultPort(TimeTCPClient.DEFAULT_PORT);\r\n }",
"public Client(String address, int port) {\n this.address = address;\n this.port = port;\n }",
"public Client() {\n this.address = DEFAULT_ADDRESS;\n this.port = DEFAULT_PORT;\n... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Get the GyroPid Steering | public double getGyroPidSteering() {
return gyroPid.get();
} | [
"public abstract Gyro getPitchGyro();",
"public abstract Gyro getRollGyro();",
"public double[] getGyro();",
"public AHRS getGyro() {\n return gyro;\n }",
"@Override\n public double pidGet() {\n return gyro.getAngle();\n }",
"public double getGyroAngle() {\n double[] ypr = new double[3];\n... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
END double getTemperature(int frame, int res_cent) This returns the speed of the objects in centimeters | public double getSpeed(int frame, int res_cent) {
//get velocity in X direction and square it
int tempVelX = this.getVelocityX();
int tempVelX2 = tempVelX*tempVelX;
//get velocity in Y direction and square it
int tempVelY = this.getVelocityY();
int tempVelY2 = tempVelY*tempVelY;
//add the s... | [
"int getTemperature();",
"public double getTemperature() {return temperature;}",
"public float getTemperature() {\r\n return temperature;\r\n }",
"public double getTemperature(){\r\n\t\treturn temperature;\r\n\t}",
"public Integer getTempo() {\n return this.tempoSpeed;\n }",
"@Override... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
This method is called when btDelete is pressed It makes all changes in order to delete an employee | @FXML
private void deleteEmployee(ActionEvent event) {
eraseFieldsContent();
Employee e = listaStaff.getSelectionModel().getSelectedItem();
service.deleteEmployee(e);
listaStaff.getItems().remove(e);
btDelete.setDisable(true);
btEditar.setDisable(true);
updateList();
} | [
"private void deleteEmployee() {\n // Only perform the delete if this is an existing pet.\n if (mCurrentPetUri != null) {\n // Call the ContentResolver to delete the pet at the given content URI.\n // Pass in null for the selection and selection args because the mCurrentPetUri\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Library permission > open | public void checkAccessLibrary() {
name.onEditorAction(EditorInfo.IME_ACTION_DONE);
if (ContextCompat.checkSelfPermission(this, Manifest.permission.READ_EXTERNAL_STORAGE) != PackageManager.PERMISSION_GRANTED) {
ActivityCompat.requestPermissions(this, new String[] {Manifest.permission.READ_E... | [
"private void openAndroidPermissionsMenu() {\n if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.M) {\n Intent intent = new Intent(Settings.ACTION_MANAGE_WRITE_SETTINGS);\n intent.setData(Uri.parse(\"package:\" + this.getPackageName()));\n this.startActivity(intent);\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Look up the color value corresponding to colorName | public static Color getColorValue(String colorName) {
if (colorToValue.containsKey(colorName)) {
return colorToValue.get(colorName);
} else
return null;
} | [
"public Color fetchByName(String name);",
"public Color findByName(String name) throws NoSuchColorException;",
"public Color getColorByName (String colorName) {\n\t\tfor (int i = 0; i < this.size(); i++) {\n\t\t\t//add if-statement for if name equals null\n\t\t\tif (!(this.get(i).getName() == null)) {\n\t\t\t\t... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
use getArgumentsData() instead getArguments() | public Bundle getArgumentsData() {
return this.mData;
} | [
"Object[] getArguments();",
"public DataItem[] getArguments()\n {\n return command.args;\n }",
"public String getArguments() {\n return this.arguments;\n }",
"void onArgumentsChanged();",
"public CreateArguments getArguments() {\n return fArguments;\n }",
"String retrieveI... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Makes sure every figure has more than 1 object in each figure | public boolean allSizeGreaterThan1(RavensProblem problem, RavensFigure tempFig) {
if(tempFig.getObjects().size() < 1) {
return false;
}
for(Entry<String,RavensFigure> currFig: problem.getFigures().entrySet()) {
if(currFig.getValue().getObjects().size() > 1) {
continue;
} else {
return fal... | [
"public boolean sameShape(Group group1) {\r\n\t\tRavensFigure fig1 = group1.fig1;\r\n\t\tRavensFigure fig2 = group1.fig2;\r\n\t\tRavensFigure fig3 = group1.fig3;\r\n\t\tif(fig1.getObjects().size() == 0 || fig2.getObjects().size() == 0 || fig3.getObjects().size() == 0) {\r\n\t\t\treturn false;\r\n\t\t}\r\n\t\tRavens... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Convenience method to lookup a namespace schema given a namespace. | protected SchemaInfo lookupSchema(String namespace) {
if ("".equals(namespace)) {
namespace = null;
}
return this.context.getSchemas().get(namespace);
} | [
"protected SchemaInfo lookupSchema(String namespace) {\n if (\"\".equals(namespace)) {\n namespace = null;\n }\n\n return this.jaxbContext.getSchemas().get(namespace);\n }",
"public Namespace getNamespace(String name, Namespace namespace);",
"public Optional<Namespace> find() {\n Assert.ha... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Adds a voice change listener to the list of listeners of the application. This listener is notified when the voice which is used for texttospeech output changes. | public static void addVoiceChangedListener(VoiceChangedListener listener) {
voiceListeners.add(listener);
} | [
"public static void voiceChanged() {\r\n\t\tfireVoiceChangedEvent(new VoiceChangedEvent(Application.getApplication( ),\r\n\t\t\t\tPropertiesManager.getTTSVoice( )));\r\n\t}",
"private void listenVoiceCall() {\n final String username = MyAccount.getInstance().getName();\n final String topic = String.... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Given a list of individual, unexcluded blaze targets (no wildcard target patterns), create ShardedTargetList according to inputs. This is a util function mainly designed for batchTargets. We would switch the method to private when Java 11 language features are available. | @Nullable
default ShardedTargetList getShardedTargetList(
Set<Label> targets, SyncStrategy syncStrategy, int suggestedShardSize) {
ImmutableList<ImmutableList<Label>> targetBatches =
calculateTargetBatches(targets, syncStrategy, suggestedShardSize);
return targetBatches == null
? null
... | [
"static ShardedTargetList batchTargets(\n Set<Label> targets, SyncStrategy syncStrategy, int suggestedShardSize) {\n return Arrays.stream(EP_NAME.getExtensions())\n .map(s -> s.getShardedTargetList(targets, syncStrategy, suggestedShardSize))\n .filter(Objects::nonNull)\n .findFirst()\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Returns the result of interpreting the object as an instance of 'Basic Event'. This implementation returns null; returning a nonnull result will terminate the switch. | public T caseBasicEvent(BasicEvent object) {
return null;
} | [
"public T caseBasicEvents(BasicEvents object) {\r\n\t\treturn null;\r\n\t}",
"BasicEvent createBasicEvent();",
"public T caseEvent(Event object)\n {\n return null;\n }",
"public T caseEvent(Event object) {\n\t\treturn null;\n\t}",
"public T caseEvent_Based(Event_Based object) {\n\t\treturn null;\n\t}",... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Validates the configuration of the analysis context. | public ValidationResult validateConfiguration(@Nonnull AnalysisContext analysisContext) {
ValidationResult validation = ValidationResult.success();
validation = validate(analysisContext, validation, availableFilters);
validation = validate(analysisContext, validation, availableReporters);
... | [
"protected void validateConfiguration() {}",
"protected void checkConfiguration() {\n \tsuper.checkConfiguration();\n \t\n if (this.customizations == null) {\n this.customizations = new ArrayList<String>();\n }\n if (this.options == null) {\n this.options = new Has... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
The maximum number of days for processing the listing. | public void setMaxProcessingDays(String maxProcessingDays) {
this.maxProcessingDays = maxProcessingDays;
} | [
"public String getMaxProcessingDays() {\r\n\t\treturn maxProcessingDays;\r\n\t}",
"public int getMaxDays() {\n return maxDays;\n }",
"private int findMaxDays() {\n if (absorbDays > consumptDays) return absorbDays;\n else return consumptDays;\n }",
"@ZAttr(id=661)\n public int getCalen... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Get Stop Name Given A Stop ID | public String getStopName(int stopId){
String stopName;
Cursor getData = getReadableDatabase().rawQuery("select distinct stop_name from stops where _id = " + stopId, null);
// Make sure to begin at the first element of the returned data
getData.moveToFirst();
stopName = getD... | [
"public String getBusStopName(int busStopId) {\n\t\tLog.d(\"DEBUG\",\"getBusStopName:\"+busStopId);\n\t\tString routeName=null;\n\t\tCursor cursor = db.query(BUS_STOPS_TABLE, new String[] {\"name\"}, \"id=\"+busStopId, null, null, null, null);\n\t\t\n\t\tif(cursor.moveToFirst())\n\t\t\trouteName=cursor.getString(0)... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Initializes the cipher in the specified mode with the specified key. This method is the equivalent of: cipher.init(mode, Key.getEncoded()); | public void init(int mode, Key key) {
init(mode, key.getEncoded());
} | [
"public abstract void init(Key theKey, byte theMode) throws CryptoException;",
"public abstract void init(Key theKey, byte theMode, byte[] bArray, short bOff,\r\n short bLen) throws CryptoException;",
"private static Cipher getCipher(int mode, String key) {\n\t\tCipher mCipher;\r\n\t\... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Creates compact version of user entity from provided result set data. | private User getCompactUserData(final ResultSet resultSet)
throws SQLException {
User user = new User();
int counter = 1;
user.setId(resultSet.getLong(counter++));
user.setLogin(resultSet.getString(counter++));
user.setEmail(resultSet.getString(counter++));
u... | [
"private User getFullUserData(final ResultSet resultSet)\n throws SQLException {\n User user = new User();\n int counter = 1;\n\n user.setId(resultSet.getLong(counter++));\n user.setLogin(resultSet.getString(counter++));\n user.setEmail(resultSet.getString(counter++));\... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |