query stringlengths 7 33.1k | document stringlengths 7 335k | metadata dict | negatives listlengths 3 101 | negative_scores listlengths 3 101 | document_score stringlengths 3 10 | document_rank stringclasses 102
values |
|---|---|---|---|---|---|---|
for intl site for Canada, United States and Australia should choose state from dropdown | public CarDetailsPage state(String billingState) {
if (getCountry().equals("CA") || getCountry().equals("AU") || getCountry().equals("US")) {
DropDownSelector stateSelector = new DropDownSelector(getWebDriver(), state);
stateSelector.selectByVisibleText(billingState);
}
e... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private void showStatesProvinces(int countryID){\n this.firstLevelDivisions = FirstLevelDivisionsDAOImpl.getAllStatesProvinces(countryID);\n if (countryID == 1){\n stateProvinceCB.setPromptText(\"Select A State\");\n }else{\n stateProvinceCB.setPromptText(\"Select A Provi... | [
"0.6468116",
"0.6171182",
"0.6116035",
"0.60910344",
"0.60365796",
"0.59928656",
"0.5927841",
"0.59247935",
"0.58817875",
"0.5873099",
"0.5838739",
"0.5838739",
"0.58149767",
"0.5808708",
"0.5793912",
"0.5788083",
"0.5788083",
"0.5783379",
"0.5723015",
"0.5708583",
"0.5692185... | 0.56651556 | 23 |
/ Data about amenities | private Integer getSeatingCapacity() {
WebElement seatingCapacity = amenities.findElement(By.className("seleniumSeatingCapacity"));
return Integer.parseInt(seatingCapacity.getText().replaceAll("[^0-9]", ""));
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public String getAmenity() {\r\n return amenity;\r\n }",
"public abstract Ability[] getAbilities();",
"public Short getAmenitiyId() {\r\n return amenitiyId;\r\n }",
"@Override\n public String menuDescription(Actor actor) {\n return actor + \" visits store\";\n }",
"public v... | [
"0.71593535",
"0.577917",
"0.5709342",
"0.56755286",
"0.5636776",
"0.5558758",
"0.5526953",
"0.55233145",
"0.550141",
"0.5443434",
"0.544164",
"0.5392522",
"0.5357741",
"0.53351015",
"0.53272194",
"0.5318136",
"0.52878284",
"0.52843827",
"0.52649003",
"0.52561235",
"0.5253929... | 0.0 | -1 |
/ Data from payment and billing module | private String getCardNumber() {
try {
String cardNumberWithoutSpaces = cardNumber.getAttribute("value").replaceAll(" ", "");
int cardLength = cardNumberWithoutSpaces.length();
return cardNumberWithoutSpaces.substring(cardLength - 4, cardLength);
}
catch (Exce... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"BillingSource billingSource();",
"String getPaymentInformation();",
"io.opencannabis.schema.commerce.CommercialOrder.OrderPayment getPayment();",
"public String getPaymentData() {\n return paymentData;\n }",
"public void calculatePayment() {}",
"public void getPaymentInfo (View view) {\n Utili... | [
"0.6916542",
"0.6872797",
"0.63277316",
"0.62946314",
"0.62550807",
"0.6231244",
"0.61204916",
"0.6115937",
"0.6032281",
"0.6025447",
"0.6004435",
"0.59741503",
"0.5970737",
"0.5938125",
"0.59374964",
"0.58878684",
"0.58791786",
"0.58784014",
"0.58778226",
"0.5819937",
"0.580... | 0.0 | -1 |
/ Data from price details Module | private String getPickUpLocation() {
return priceDetailsModule.findElement(By.className("seleniumPickupLocation")).getText();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"List<PriceInformation> getPriceForProduct(ProductModel product);",
"List<PriceRow> getPriceInformationsForProduct(ProductModel model);",
"void all_Data_retrieve_Price_Desc() {\n\t\t\tStatement stm=null;\n\t\t\tResultSet rs=null;\n\t\t\ttry{\n\t\t\t\t//Retrieve tuples by executing SQL command\n\t\t\t stm=con... | [
"0.7123219",
"0.70078534",
"0.66812277",
"0.6499835",
"0.64597297",
"0.6438255",
"0.6429051",
"0.6290494",
"0.6285329",
"0.62763757",
"0.62187445",
"0.62187445",
"0.62187445",
"0.62024665",
"0.6192044",
"0.6171559",
"0.6149449",
"0.61438143",
"0.61438143",
"0.6140088",
"0.611... | 0.0 | -1 |
we should lost focus on drivers age field. Only after that "Search again" button will be enabled | public void clickSearchAgainButtonForDriversAge() {
travelerPhoneNumber.click();
driversAge.findElement(By.xpath(
"//input[contains(@class,'seleniumDriverAge')]//..//..//a[contains(@class,'seleniumSearchAgainButton')]"))
.click();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n public void focusGained(FocusEvent arg0) {\n if(jTextField_Create_Savings_Acc_accnum.getText().contains(\"xxx\")){\n jTextField_Create_Savings_Acc_accnum.setText(\"\");\n }\n }",
"@Override\n public void focusGained(Foc... | [
"0.63629943",
"0.6333195",
"0.626601",
"0.62516344",
"0.6244655",
"0.624392",
"0.6241451",
"0.6241451",
"0.62097114",
"0.61889565",
"0.61375004",
"0.6134909",
"0.6128935",
"0.609009",
"0.60446066",
"0.60270166",
"0.5996807",
"0.5989439",
"0.5963805",
"0.59619796",
"0.5952458"... | 0.60702896 | 14 |
Creates new form EdgeColorPanel | public EdgeColorPanel() {
initComponents();
colorButton.addPropertyChangeListener(JColorButton.EVENT_COLOR, new PropertyChangeListener() {
@Override
public void propertyChange(PropertyChangeEvent evt) {
Color newColor = (Color) evt.getNewValue();
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public ColorPanel() {\r\n setLayout(null);\r\n\r\n chooser = new ColorChooserComboBox[8];\r\n chooserLabel = new JLabel[8];\r\n String[][] text = new String[][] {\r\n {\"Hintergrund\", \"Background\"},\r\n {\"... | [
"0.69825494",
"0.6446134",
"0.6325632",
"0.6141323",
"0.60200244",
"0.59865314",
"0.59622854",
"0.5962148",
"0.59425616",
"0.5928809",
"0.5911402",
"0.5885884",
"0.58824694",
"0.5879844",
"0.5856461",
"0.578803",
"0.57714534",
"0.5750776",
"0.5748734",
"0.5739524",
"0.5737893... | 0.7932403 | 0 |
This method is called from within the constructor to initialize the form. WARNING: Do NOT modify this code. The content of this method is always regenerated by the Form Editor. | @SuppressWarnings("unchecked")
// <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
private void initComponents() {
buttonGroup1 = new javax.swing.ButtonGroup();
jXHeader1 = new org.jdesktop.swingx.JXHeader();
originalRadio = new javax.swing.JRadioBu... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public Form() {\n initComponents();\n }",
"public MainForm() {\n initComponents();\n }",
"public MainForm() {\n initComponents();\n }",
"public MainForm() {\n initComponents();\n }",
"public frmRectangulo() {\n initComponents();\n }",
"public form() {\n ... | [
"0.73207104",
"0.7291319",
"0.7291319",
"0.7291319",
"0.7286366",
"0.7249061",
"0.7213687",
"0.7208364",
"0.7196237",
"0.7191069",
"0.7185096",
"0.7159581",
"0.7148432",
"0.70938945",
"0.707995",
"0.7056585",
"0.69874734",
"0.697786",
"0.6955647",
"0.6953296",
"0.69459146",
... | 0.0 | -1 |
use a switch statement or else if | public int jump() {
if (Ylocation > 475) {
Ylocation -= Ydir;
}
return Ylocation;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"switch(curState) {\r\n${stateoutputcases}\r\n default:\r\n break; //no action taken\r\n }",
"String getIfElse();",
"private boolean menuSwitch(int choice) {\r\n\t\t\t\t\r\n\t\tswitch(choice) {\r\n\t\tcase 1:\r\n\t\t\tint choice2 = 0;\r\n\t\t\tboolean valid = false;\r\n\t\t\tStr... | [
"0.5982148",
"0.585048",
"0.58451766",
"0.58385855",
"0.5834703",
"0.58202773",
"0.5714031",
"0.57127786",
"0.5707552",
"0.5695663",
"0.56901234",
"0.56343275",
"0.5600691",
"0.5593492",
"0.5590382",
"0.5571456",
"0.5569099",
"0.5567437",
"0.55371094",
"0.5523927",
"0.5508624... | 0.0 | -1 |
Escreve um nibble de comando/dados no LCD em paralelo | private static void writeNibbleParallel(boolean rs, int data) {
if(rs) HAL.writeBits(NIBBLE_MASK_SIZE,0x10);
else HAL.writeBits(NIBBLE_MASK_SIZE,0);
HAL.writeBits(0x20,0x20);
HAL.writeBits(NIBBLE_MASK,data);
HAL.writeBits(0x20,0);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public static void clearScreen() { // funcao que limpa o ecrã \n System.out.println(\"\\033[H\\033[2J\");\n System.out.flush();\n }",
"public void cbMohexShowRollout()\n {\n \tif (!m_white.wasSuccess()) \n \t return;\n \n \tString str = m_white.getResponse();\n Vector<Pair<String... | [
"0.5949088",
"0.5930786",
"0.5796938",
"0.5684009",
"0.5667429",
"0.56531644",
"0.55553895",
"0.5548366",
"0.5524639",
"0.54822123",
"0.54469585",
"0.54285",
"0.5404168",
"0.5393233",
"0.5378738",
"0.53701323",
"0.5339107",
"0.5337772",
"0.53376615",
"0.533085",
"0.5321793",
... | 0.0 | -1 |
Escreve um nibble de comando/dados no LCD | private static void writeNibble(boolean rs, int data) {
if(!SERIAL_INTERFACE) writeNibbleParallel(rs,data);
else writeNibbleSerial(rs,data);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public static void clearScreen() { // funcao que limpa o ecrã \n System.out.println(\"\\033[H\\033[2J\");\n System.out.flush();\n }",
"private static void clearScreen()\n {\n System.out.print('\\u000C');\n }",
"public void cbMohexShowRollout()\n {\n \tif (!m_white.wasSuccess()) \... | [
"0.61378574",
"0.59204507",
"0.58643645",
"0.5808247",
"0.574624",
"0.5674876",
"0.56684583",
"0.56584316",
"0.5620503",
"0.5580965",
"0.5546673",
"0.5544276",
"0.5445525",
"0.54355466",
"0.5409751",
"0.537173",
"0.5362462",
"0.5356245",
"0.5356067",
"0.5349763",
"0.53457713"... | 0.0 | -1 |
Escreve um byte de comando/dados no LCD | private static void writeByte(boolean rs, int data) {
int highData = ((data >>> NIBBLE_SIZE) & NIBBLE_MASK); //Parte Alta do data
int lowData = (data & NIBBLE_MASK); //Parte Baixa do data
writeNibble(rs,highData);
writeNibble(rs,lowData);
Time.sleep(WRITEB... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public static void clearScreen() { // funcao que limpa o ecrã \n System.out.println(\"\\033[H\\033[2J\");\n System.out.flush();\n }",
"private void writeChar(byte[] bytes) {\n // let terminal do auto wrap around. \n term.writeChar(bytes);\n\n // update cursor \n //in... | [
"0.6292139",
"0.6156765",
"0.6001996",
"0.5986909",
"0.595344",
"0.5932368",
"0.5807751",
"0.5760184",
"0.5753502",
"0.5748527",
"0.5714501",
"0.5690412",
"0.5684359",
"0.56734735",
"0.56015927",
"0.55720484",
"0.55642223",
"0.55551755",
"0.55452263",
"0.54969645",
"0.5469662... | 0.0 | -1 |
Escreve um comando no LCD | private static void writeCMD(int data) {
writeByte(false,data);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public static void clearScreen() { // funcao que limpa o ecrã \n System.out.println(\"\\033[H\\033[2J\");\n System.out.flush();\n }",
"public void cancel() {\n writeData(ESC.CMD_CANCEL);\n }",
"private static void clearScreen() {\n\t\tSystem.out.println(\"\\033[H\\033[2J\"); \n\t\t... | [
"0.69834614",
"0.65350294",
"0.6522406",
"0.63476145",
"0.6341928",
"0.6314979",
"0.6195147",
"0.61938274",
"0.61133087",
"0.61046714",
"0.60541743",
"0.60313404",
"0.6021249",
"0.6017883",
"0.6000905",
"0.59985524",
"0.5980766",
"0.59768033",
"0.59313595",
"0.5922736",
"0.59... | 0.0 | -1 |
Escreve um dado no LCD | private static void writeDATA(int data) {
writeByte(true,data);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public static void dormir(){\n System.out.print(\"\\033[H\\033[2J\");//limpia pantalla\n System.out.flush();\n int restoDeMana; //variables locales a utilizar\n int restoDeVida;\n if(oro>=30){ //condicion de oro para recuperar vida y mana\n restoDeMana=10-puntosDeMa... | [
"0.65487283",
"0.6367155",
"0.6347507",
"0.6320909",
"0.6151836",
"0.6104973",
"0.60927165",
"0.60830367",
"0.606944",
"0.6023847",
"0.5997583",
"0.5915879",
"0.59120667",
"0.59028697",
"0.5901155",
"0.58796966",
"0.5872237",
"0.586294",
"0.5853041",
"0.5852939",
"0.57822937"... | 0.0 | -1 |
Returns the value of the 'Type' attribute. If the meaning of the 'Type' attribute isn't clear, there really should be more of a description here... | String getType(); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public final String getTypeAttribute() {\n return getAttributeValue(\"type\");\n }",
"public String getType()\r\n\t{\r\n\t\treturn type;\r\n\t}",
"public String getType() {\n return m_Type;\n }",
"public String getType()\r\n {\r\n return mType;\r\n }",
"public String getType()\r\... | [
"0.85156935",
"0.8127157",
"0.8117505",
"0.80847335",
"0.8084411",
"0.8064179",
"0.80593765",
"0.8051743",
"0.80503446",
"0.80434406",
"0.80393326",
"0.8038555",
"0.80307925",
"0.80307925",
"0.80307925",
"0.80293757",
"0.80293757",
"0.80293757",
"0.80293757",
"0.80293757",
"0... | 0.0 | -1 |
Returns the value of the 'Id' attribute. If the meaning of the 'Id' attribute isn't clear, there really should be more of a description here... | String getId(); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public String getId()\r\n {\r\n return getAttribute(\"id\");\r\n }",
"public final String getIdAttribute() {\n return getAttributeValue(\"id\");\n }",
"public int getId() {\n\t\treturn Integer.parseInt(Id);\n\t}",
"@XmlAttribute\n\tpublic Long getId() {\n\t\treturn id;\n\t}",
"public... | [
"0.8475117",
"0.80108434",
"0.7816037",
"0.78144264",
"0.7813723",
"0.78004843",
"0.78004843",
"0.78004843",
"0.78004843",
"0.78004843",
"0.78004843",
"0.78004843",
"0.78004843",
"0.78004843",
"0.78004843",
"0.78004843",
"0.78004843",
"0.78004843",
"0.78004843",
"0.78004843",
... | 0.0 | -1 |
Returns the value of the 'Page Full Name' attribute. If the meaning of the 'Page Full Name' attribute isn't clear, there really should be more of a description here... | String getPageFullName(); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"String getPageName();",
"@NonNull\n public String getPageName() {\n return this.pageName;\n }",
"public String display_page_name_after_login() {\n\t\treturn driver.findElement(page_name_opened_after_login).getText();\n\t}",
"public String getFullName() {\n return (String)getAttributeInternal(FULL... | [
"0.70171356",
"0.6751693",
"0.6396924",
"0.63548493",
"0.62612224",
"0.62526196",
"0.6120236",
"0.59843266",
"0.597443",
"0.5951901",
"0.58456856",
"0.5834811",
"0.58154494",
"0.5793643",
"0.57922536",
"0.5743905",
"0.571961",
"0.57119244",
"0.5678334",
"0.56769097",
"0.56491... | 0.75847006 | 0 |
Returns the value of the 'Title' attribute. If the meaning of the 'Title' attribute isn't clear, there really should be more of a description here... | String getTitle(); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public final String getTitleAttribute() {\n return getAttributeValue(\"title\");\n }",
"public java.lang.String getTitle()\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.apache.xmlbeans.SimpleValue target = null;\n target = (org.apache.xml... | [
"0.8583111",
"0.82835346",
"0.8185752",
"0.81069493",
"0.8092908",
"0.80408204",
"0.8018002",
"0.8007169",
"0.80023223",
"0.8001844",
"0.79932183",
"0.7979309",
"0.7973446",
"0.7950294",
"0.7950294",
"0.7950294",
"0.7942838",
"0.7940344",
"0.7939092",
"0.7939092",
"0.7935047"... | 0.0 | -1 |
Returns the value of the 'Wiki' attribute. If the meaning of the 'Wiki' attribute isn't clear, there really should be more of a description here... | String getWiki(); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public String getServiceWiki()\n {\n return serviceWiki;\n }",
"public String getViewServiceWiki()\n {\n return viewServiceWiki;\n }",
"public String getWiki(String link) {\n String wikiText = \"\";\n try {\n wiki = Jsoup.connect(link + \"/+wiki\").get();\n ... | [
"0.6694282",
"0.5738178",
"0.572639",
"0.5638125",
"0.53383076",
"0.5317388",
"0.5279764",
"0.5260359",
"0.5194431",
"0.51465505",
"0.5069773",
"0.50607723",
"0.5060572",
"0.50315845",
"0.5031306",
"0.501207",
"0.50110435",
"0.49820882",
"0.4966933",
"0.49603364",
"0.4932963"... | 0.7616415 | 0 |
Returns the value of the 'Space' attribute. If the meaning of the 'Space' attribute isn't clear, there really should be more of a description here... | String getSpace(); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public double getSpace() {\n\treturn space;\n }",
"public Space getSpace() {\n return space;\n }",
"public Long getSPACE() {\n return SPACE;\n }",
"public double getCharSpace(\n )\n {return charSpace;}",
"public float getSpace() {\r\n return space;\r\n }",
"public... | [
"0.8062783",
"0.7910381",
"0.7832584",
"0.7785201",
"0.7715447",
"0.7645131",
"0.762829",
"0.75653166",
"0.7548056",
"0.7530696",
"0.70845336",
"0.6996614",
"0.696841",
"0.68028235",
"0.6665219",
"0.6664447",
"0.6614327",
"0.65722215",
"0.6552177",
"0.65510374",
"0.655003",
... | 0.7697761 | 5 |
Returns the value of the 'Page Name' attribute. If the meaning of the 'Page Name' attribute isn't clear, there really should be more of a description here... | String getPageName(); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@NonNull\n public String getPageName() {\n return this.pageName;\n }",
"@Override\r\n public String toString()\r\n {\r\n return \"Page \"+name;\r\n }",
"public String getParamNameOfPage()\n\t{\n\t\treturn paramNameOfPage;\n\t}",
"public String get_defineSetupPage_Nametext() {\r\n\t\tretu... | [
"0.80894536",
"0.70801246",
"0.69552225",
"0.6944929",
"0.6882004",
"0.6865332",
"0.6820306",
"0.6635324",
"0.65211046",
"0.65012354",
"0.65002364",
"0.649698",
"0.64756584",
"0.6460144",
"0.64446485",
"0.6326079",
"0.62339395",
"0.6183149",
"0.61789936",
"0.6164534",
"0.6163... | 0.7909187 | 1 |
Returns the value of the 'Modified' attribute. If the meaning of the 'Modified' attribute isn't clear, there really should be more of a description here... | XMLGregorianCalendar getModified(); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public String getModified() {\r\n if (modified)\r\n return \"1\";\r\n else\r\n return \"0\";\r\n }",
"public boolean getModified() {\r\n\t\treturn modified;\r\n\t}",
"public Date getModified() {\r\n\t\treturn modified;\r\n\t}",
"public boolean isModified() {\n\t\treturn... | [
"0.81014454",
"0.7873836",
"0.78696984",
"0.75566655",
"0.75035",
"0.7490811",
"0.74880207",
"0.7474934",
"0.7471823",
"0.74632853",
"0.7454758",
"0.74431133",
"0.7396733",
"0.7395863",
"0.73927885",
"0.738173",
"0.73711985",
"0.7341933",
"0.7332951",
"0.73319095",
"0.7325139... | 0.0 | -1 |
Returns the value of the 'Author' attribute. If the meaning of the 'Author' attribute isn't clear, there really should be more of a description here... | String getAuthor(); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public String getAuthor() {\n return (String)getAttributeInternal(AUTHOR);\n }",
"public String getAuthor() {\r\n\t\treturn oAuthor;\r\n\t}",
"public String getAuthor() {\r\n\t\treturn author;\r\n\t}",
"public java.lang.String getAuthor() {\n return author;\n }",
"public String getAuthor() {\... | [
"0.86805326",
"0.84133905",
"0.8297354",
"0.82573014",
"0.82564443",
"0.82157147",
"0.8177202",
"0.81698674",
"0.81698674",
"0.81698674",
"0.81698674",
"0.81698674",
"0.81698674",
"0.81698674",
"0.81698674",
"0.81698674",
"0.81698674",
"0.81698674",
"0.81698674",
"0.8133611",
... | 0.788402 | 27 |
Returns the value of the 'Author Name' attribute. If the meaning of the 'Author Name' attribute isn't clear, there really should be more of a description here... | String getAuthorName(); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public String getAuthor() {\n return (String)getAttributeInternal(AUTHOR);\n }",
"public String getAuthorName() {\n return this.authorName;\n }",
"public String getAuthorName() {\n return mAuthorName;\n }",
"public String getAuthorName() {\n return authorName;\n }",
... | [
"0.84208107",
"0.8366417",
"0.83231145",
"0.8280114",
"0.8280114",
"0.8002737",
"0.7877652",
"0.7873971",
"0.78544116",
"0.7812009",
"0.7795522",
"0.77326876",
"0.77112687",
"0.7685888",
"0.7685587",
"0.76783746",
"0.7650504",
"0.7650504",
"0.7650504",
"0.7650504",
"0.7650504... | 0.81549215 | 5 |
Returns the value of the 'Version' attribute. If the meaning of the 'Version' attribute isn't clear, there really should be more of a description here... | String getVersion(); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public Number getVersion() {\n return (Number) getAttributeInternal(VERSION);\n }",
"public String getVersion() {\r\n return version;\r\n }",
"public String getVersion () {\r\n return version;\r\n }",
"public String getVersion() {\r\n\t\treturn version;\r\n\t}",
"public String getVers... | [
"0.8613693",
"0.80583733",
"0.8054193",
"0.8045716",
"0.8024955",
"0.80100894",
"0.7990686",
"0.79883",
"0.79883",
"0.79810196",
"0.7978641",
"0.79781586",
"0.79781586",
"0.79751784",
"0.79751784",
"0.79751784",
"0.79751784",
"0.79751784",
"0.79751784",
"0.79751784",
"0.79751... | 0.0 | -1 |
Returns the value of the 'Language' attribute. If the meaning of the 'Language' attribute isn't clear, there really should be more of a description here... | String getLanguage(); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public String getLanguage()\n\t{\n\t\treturn language;\n\t}",
"public String getLanguage()\n {\n return mLanguage;\n }",
"public String getLanguage() {\r\n return language;\r\n }",
"public String getLanguage();",
"public final String getLangAttribute() {\n return getAttributeValue... | [
"0.8244611",
"0.823582",
"0.8222145",
"0.8217513",
"0.82089454",
"0.8180116",
"0.8180116",
"0.81668675",
"0.81668675",
"0.8166633",
"0.8166633",
"0.8126864",
"0.81233746",
"0.81067616",
"0.8104503",
"0.808364",
"0.808364",
"0.8080423",
"0.80777997",
"0.80777997",
"0.8075743",... | 0.81388557 | 13 |
Returns the value of the 'Class Name' attribute. If the meaning of the 'Class Name' attribute isn't clear, there really should be more of a description here... | String getClassName(); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public final String getClassAttribute() {\n return getAttributeValue(\"class\");\n }",
"public String getName_Class() {\n\t\treturn name;\n\t}",
"public String getClassname() {\n\t\treturn classname;\n\t}",
"public String getClassname() {\n return classname;\n }",
"public String getClas... | [
"0.8035458",
"0.79126513",
"0.7881458",
"0.77601564",
"0.7715098",
"0.7568362",
"0.7502481",
"0.7370368",
"0.73673016",
"0.7357425",
"0.7345851",
"0.73370093",
"0.7327434",
"0.7325216",
"0.7325216",
"0.7289296",
"0.72826105",
"0.72826105",
"0.72777605",
"0.72711",
"0.7270501"... | 0.7058385 | 42 |
Returns the value of the 'Object Number' attribute. If the meaning of the 'Object Number' attribute isn't clear, there really should be more of a description here... | int getObjectNumber(); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public Integer getObjNo() {\n\t\t\treturn objNo;\n\t\t}",
"public Number getObjectVersionNumber() {\n return (Number)getAttributeInternal(OBJECTVERSIONNUMBER);\n }",
"public int getObjectID(){\n\t\treturn _lodNodeData.getObjectID();\n\t}",
"public String getNumber() {\n\t\treturn getValue(\"number\... | [
"0.7248306",
"0.69708186",
"0.65055895",
"0.64961976",
"0.6447696",
"0.6379882",
"0.63380295",
"0.6330585",
"0.6282476",
"0.62359387",
"0.62156546",
"0.6205374",
"0.62053037",
"0.620227",
"0.620227",
"0.620227",
"0.620227",
"0.61908925",
"0.6182331",
"0.61739266",
"0.6169985"... | 0.7626095 | 0 |
Returns the value of the 'Filename' attribute. If the meaning of the 'Filename' attribute isn't clear, there really should be more of a description here... | String getFilename(); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public String getFilename() {\n\t\treturn this.filename;\n\t}",
"public String getFilename() {\n\t\treturn this.filename;\n\t}",
"public String getFilename()\r\n\t{\r\n\t\treturn filename;\r\n\t}",
"public String getFilename() {\n\t\treturn filename;\n\t}",
"public String getFilename() {\n\t\treturn filena... | [
"0.8038476",
"0.8038476",
"0.80349296",
"0.79884595",
"0.79884595",
"0.79884595",
"0.79884595",
"0.7981607",
"0.7947579",
"0.7937342",
"0.7937342",
"0.7917656",
"0.79168475",
"0.79168475",
"0.78800035",
"0.78800035",
"0.78447413",
"0.77033985",
"0.7701693",
"0.7666958",
"0.76... | 0.7347177 | 34 |
Returns the value of the 'Score' attribute. If the meaning of the 'Score' attribute isn't clear, there really should be more of a description here... | float getScore(); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@gw.internal.gosu.parser.ExtendedProperty\n public java.lang.Integer getScore();",
"public int getScore() {\n\t\treturn this.ScoreValue;\n\t}",
"public double getScore() {\r\n return mScore;\r\n }",
"public double getScore() {\n\t\t\treturn this.score;\n\t\t}",
"public Double getScore() {\n ... | [
"0.8092432",
"0.80693036",
"0.8022252",
"0.7996509",
"0.79801685",
"0.79801685",
"0.79641277",
"0.79420197",
"0.7928766",
"0.79205656",
"0.79121596",
"0.79121596",
"0.79021525",
"0.7892655",
"0.78913903",
"0.78865415",
"0.7874037",
"0.7874037",
"0.78697675",
"0.78697675",
"0.... | 0.7440189 | 71 |
Returns the value of the 'Object' containment reference. If the meaning of the 'Object' containment reference isn't clear, there really should be more of a description here... | eu.learnpad.transformations.metamodel_corpus.xwiki.Object getObject(); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public Object getValue() {\n\t\treturn object;\n\t}",
"Object getContainedValue();",
"public org.apache.xmlbeans.XmlObject getValue()\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.apache.xmlbeans.XmlObject target = null;\n target = (org.apache.xm... | [
"0.66440463",
"0.6593165",
"0.6109196",
"0.59914905",
"0.59692645",
"0.59299034",
"0.5926104",
"0.5882128",
"0.5870535",
"0.58131695",
"0.57938105",
"0.5778278",
"0.57493585",
"0.5725527",
"0.5725527",
"0.56776625",
"0.56649995",
"0.5579335",
"0.5568419",
"0.55411226",
"0.552... | 0.0 | -1 |
Write Configuration to the given File. | @Deprecated
public static void writeConfigurationFile(
final Configuration conf, final File confFile) throws IOException {
try (final PrintStream printStream = new PrintStream(new FileOutputStream(confFile))) {
printStream.print(toConfigurationString(conf));
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"void writeConfiguration(String fileName) throws IOException;",
"public static void saveConfig(File file, Configuration conf)\n throws IOException {\n Writer writer = new FileWriter(file);\n try {\n conf.writeXml(writer);\n } finally {\n writer.close();\n }\n }",
"protected void writ... | [
"0.7583923",
"0.72270775",
"0.7014228",
"0.65299845",
"0.63882315",
"0.6365923",
"0.62824345",
"0.62030935",
"0.6183193",
"0.6170993",
"0.61434585",
"0.60401815",
"0.59887713",
"0.5961457",
"0.5952138",
"0.5892624",
"0.58836234",
"0.5837066",
"0.57378155",
"0.56895125",
"0.56... | 0.6818587 | 3 |
Replace any \'s in the input string with \\. and any "'s with \". | private static String escape(String in) {
// After regexp escaping \\\\ = 1 slash, \\\\\\\\ = 2 slashes.
// Also, the second args of replaceAll are neither strings nor regexps, and
// are instead a special DSL used by Matcher. Therefore, we need to double
// escape slashes (4 slashes) and quotes (3 sla... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public static String maskQuoteAndBackslash(String s)\t{\n\t\tStringBuffer sb = new StringBuffer(s.length());\n\t\tfor (int i = 0; i < s.length(); i++)\t{\n\t\t\tchar c = s.charAt(i);\n\t\t\tswitch (c)\t{\n\t\t\t\tcase '\"':\n\t\t\t\tcase '\\\\':\n\t\t\t\t\tsb.append('\\\\');\n\t\t\t\t\tbreak;\n\t\t\t}\n\t\t\tsb.ap... | [
"0.64075977",
"0.62136376",
"0.6163957",
"0.5910437",
"0.59016323",
"0.5856531",
"0.5835067",
"0.5812274",
"0.5772034",
"0.574992",
"0.5729859",
"0.5725799",
"0.5696548",
"0.5666659",
"0.5662208",
"0.5605576",
"0.5576575",
"0.55358183",
"0.551415",
"0.55039346",
"0.54984504",... | 0.6301869 | 1 |
Obtain the effective configuration of this ConfigurationBuilderImpl instance. This consists of stringstring pairs that could be written directly to a Properties file, for example. Currently, this method does not return information about default parameter values that were specified by parameter annotations, or about the... | @Deprecated
public static String toConfigurationString(final Configuration c) {
StringBuilder sb = new StringBuilder();
for (String s : toConfigurationStringList(c)) {
sb.append(s);
sb.append('\n');
}
return sb.toString();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private Map<String, Object> getDefaultConfiguration() {\n JavaFormattingOptions options = JavaFormattingOptions.createDefault();\n options.ClassBraceStyle = BraceStyle.EndOfLine;\n options.InterfaceBraceStyle = BraceStyle.EndOfLine;\n options.EnumBraceStyle = BraceStyle.EndOfLine;\n\n ... | [
"0.6416453",
"0.6045548",
"0.6019978",
"0.5934307",
"0.59316665",
"0.5807789",
"0.574023",
"0.57263994",
"0.56971633",
"0.5684483",
"0.5678415",
"0.56446093",
"0.56446093",
"0.56446093",
"0.56446093",
"0.56080604",
"0.55940723",
"0.5588477",
"0.5564369",
"0.5546305",
"0.55438... | 0.0 | -1 |
using long to avoid possible overflows when multiplying | public static double getDistance(int x1, int y1, int x2, int y2)
{
double dx = x2 - x1;
double dy = y2 - y1;
// return Math.hypot(x2 - x1, y2 - y1); // Extremely slow
// return Math.sqrt(Math.pow(x, 2) + Math.pow(y, 2)); // 20 times faster than hypot
return Math.sqrt(dx * dx... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"int mul( int a , int b)\n {\n double c,d;\n \tif (a==0)\n\t c=65536;\n\tif(b==0)\n\t d=65536;\n c=(double)a;\n d=(double)b;\n a= (int)((c*d)%65537);\n return a;\n }",
"BigInteger multiply(long v) {\n if (v == 0 || signum == 0)\n return ZERO... | [
"0.69680727",
"0.67821693",
"0.6773646",
"0.6714864",
"0.6582223",
"0.65786636",
"0.654942",
"0.6548645",
"0.65305334",
"0.65034103",
"0.64093536",
"0.6371632",
"0.63507",
"0.63224375",
"0.6310801",
"0.6231447",
"0.6196127",
"0.61836493",
"0.6138296",
"0.6125863",
"0.61079806... | 0.0 | -1 |
PipedObjectReader Creates a PipedObjectReader so that it is connected to the piped writer src. Data written to src will then be available as input from this stream. | public
PipedObjectReader(PipedObjectWriter src)
throws PipeException
{
connect(src);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public \n PipedObjectReader() \n {}",
"public void connect(PipedObjectWriter src) throws PipeException {\n\tsrc.connect(this);\n }",
"public PipedWriter(java.io.PipedReader snk) throws java.io.IOException { throw new RuntimeException(\"Stub!\"); }",
"public PipedOutputStream() {\n }",
"public synch... | [
"0.6901324",
"0.6563664",
"0.6025376",
"0.5553539",
"0.5477993",
"0.53580695",
"0.5260654",
"0.5246028",
"0.5227917",
"0.5201632",
"0.5184793",
"0.51799065",
"0.5178486",
"0.51657057",
"0.51620793",
"0.505775",
"0.50548023",
"0.50536734",
"0.50362253",
"0.5028143",
"0.5002574... | 0.8463668 | 0 |
PipedObjectReader Creates a PipedObjectReader so that it is not yet connected. It must be connected to a PipedObjectWriter before being used. | public
PipedObjectReader()
{} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public \n PipedObjectReader(PipedObjectWriter src) \n throws PipeException \n {\n connect(src);\n }",
"public PipedWriter(java.io.PipedReader snk) throws java.io.IOException { throw new RuntimeException(\"Stub!\"); }",
"public Object clone() throws CloneNotSupportedException {\n\t\treturn (Reader) sup... | [
"0.7279996",
"0.62743276",
"0.5862939",
"0.574706",
"0.5640842",
"0.5566789",
"0.5415642",
"0.54149586",
"0.5409141",
"0.5398066",
"0.5376511",
"0.533194",
"0.5318142",
"0.53075725",
"0.52788955",
"0.5249099",
"0.5194892",
"0.5190593",
"0.5190593",
"0.51847625",
"0.51776475",... | 0.7539329 | 0 |
connect Causes this piped reader to be connected to the piped writer src. If this object is already connected to some other piped writer, an PipeException is thrown. If src is an unconnected piped writer and snk is an unconnected piped reader, they may be connected by either the call: snk.connect(src) or the call: src.... | public void connect(PipedObjectWriter src) throws PipeException {
src.connect(this);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public synchronized void connect(PipedInputStream snk) throws IOException {\n if (snk == null) {\n throw new NullPointerException();\n } else if (sink != null || snk.connected) {\n throw new IOException(\"conn\");\n }\n sink = snk;\n snk.in = -1;\n sn... | [
"0.71840334",
"0.6580798",
"0.6572617",
"0.55566174",
"0.531899",
"0.53094447",
"0.52707124",
"0.52135026",
"0.51796305",
"0.51588726",
"0.5128459",
"0.51146287",
"0.4939569",
"0.49306047",
"0.48983258",
"0.481998",
"0.48114812",
"0.47776783",
"0.47463605",
"0.47338724",
"0.4... | 0.7949613 | 0 |
receive Receives an Object. This method will block if no input is available. | synchronized void
receive(Object o)
throws PipeException
{
if (!connected) {
throw new PipeException("Pipe not connected");
} else if (closedByWriter || closedByReader) {
throw new PipeException("Pipe closed");
} else if (readSide != null && !readSide.isAlive()) {
throw new Pipe... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private Object receive() {\n Object o = null;\n try {\n System.out.println(\"03. -- About to receive an object...\");\n o = is.readObject();\n System.out.println(\"04. <- Object received...\");\n } catch (Exception e) {\n System.out.println(\"XX. Exc... | [
"0.68352675",
"0.65262663",
"0.6511672",
"0.63551086",
"0.6333038",
"0.60626245",
"0.5979147",
"0.59742296",
"0.5962336",
"0.5951192",
"0.5913131",
"0.58807963",
"0.58653075",
"0.5763008",
"0.5752124",
"0.5748393",
"0.56946355",
"0.56788033",
"0.56782365",
"0.567532",
"0.5659... | 0.5493618 | 26 |
receivedLast Notifies all waiting threads that the last character of data has been received. | synchronized void
receivedLast()
{
closedByWriter = true;
notifyAll();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void onLast() {\r\n\t\t\t\t\tif (wip.decrementAndGet() == 0) {\r\n\t\t\t\t\t\tobserver.finish();\r\n\t\t\t\t\t\tclose();\r\n\t\t\t\t\t}\r\n\t\t\t\t}",
"private static void completedReceive(long handle, long byteCount) {\n Log.w(LogDomain.NETWORK, \"C4Socket.completedReceive() handle -> \" + handle)... | [
"0.5956108",
"0.55467373",
"0.5414572",
"0.5406801",
"0.5378201",
"0.53738576",
"0.53662413",
"0.5351382",
"0.5294927",
"0.52912205",
"0.5248863",
"0.52104306",
"0.51827586",
"0.5165128",
"0.51571715",
"0.5125523",
"0.5123197",
"0.51072663",
"0.5092173",
"0.50625664",
"0.5061... | 0.74530923 | 0 |
read Reads the next Object from this piped stream. If no Object is available because the end of the stream has been reached, the value null is returned. This method blocks until input data is available, the end of the stream is detected, or an exception is thrown. If a thread was providing Objects to the connected pipe... | public synchronized Object
read()
throws PipeException
{
if (!connected) {
throw new PipeException("Pipe not connected");
} else if (closedByReader) {
throw new PipeException("Pipe closed");
} else if (writeSide != null && !writeSide.isAlive()
&& !closedByWriter && (in < 0)) ... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"synchronized void \n receive(Object o) \n throws PipeException \n {\n if (!connected) {\n throw new PipeException(\"Pipe not connected\");\n } else if (closedByWriter || closedByReader) {\n throw new PipeException(\"Pipe closed\");\n } else if (readSide != null && !readSide.isAlive()) {\n ... | [
"0.6348097",
"0.6153328",
"0.58250326",
"0.5793359",
"0.5761111",
"0.57604843",
"0.57188475",
"0.56892616",
"0.56629926",
"0.5537158",
"0.551415",
"0.54155844",
"0.54142797",
"0.53785783",
"0.53717715",
"0.536999",
"0.53208745",
"0.5301004",
"0.5292407",
"0.52479625",
"0.5242... | 0.7600708 | 0 |
ready Tell whether this stream is ready to be read. A piped stream is ready if the circular buffer is not empty. | public synchronized boolean
ready()
throws PipeException
{
if (!connected) {
throw new PipeException("Pipe not connected");
} else if (closedByReader) {
throw new PipeException("Pipe closed");
} else if (writeSide != null && !writeSide.isAlive()
&& !closedByWriter && (in < 0))... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n public void onReady() {\n assertTrue(stream.isReady());\n onReadyCalled = true;\n }",
"@Override public boolean ready() throws IOException {\r\n\t\tif (closed) throw new IOException(\"Reader closed\");\r\n\t\tReader in = getCurrentReader();\r\n\t\tif (in == null) return false;... | [
"0.702088",
"0.68275005",
"0.6752628",
"0.6313238",
"0.6182998",
"0.61268866",
"0.6061598",
"0.6046161",
"0.5996872",
"0.59420305",
"0.5931731",
"0.59130526",
"0.5909681",
"0.5885069",
"0.5857211",
"0.5854864",
"0.5848005",
"0.5832806",
"0.5809722",
"0.5797089",
"0.5797089",
... | 0.6401354 | 3 |
close Closes this piped stream and releases any system resources associated with the stream. | public void
close()
throws PipeException
{
in = -1;
closedByReader = true;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void closeStream() {\n output.close();\n input.close();\n }",
"protected void closeStream ()\n {\n stream.close ();\n }",
"public synchronized void close() throws IOException {\n\t\t\tfinish();\n\t\t\tout.close();\n\t\t}",
"public void close() throws IOException {\n open =... | [
"0.74239975",
"0.7095928",
"0.6706257",
"0.67020774",
"0.67011976",
"0.66061884",
"0.65585494",
"0.65551823",
"0.6529896",
"0.6508922",
"0.65068346",
"0.6502545",
"0.64925176",
"0.6488314",
"0.6474412",
"0.6459238",
"0.64351326",
"0.6425165",
"0.6406953",
"0.6404463",
"0.6355... | 0.69597596 | 2 |
////////////////////////////// to jaxb ////////////////////////////// | @Override
public Collection<Parameter> jaxb_parameters() {
Collection<jaxb.Parameter> pset = new HashSet<>();
boolean write_quecontrol = has_queue_control;
boolean write_min_rate = Float.isFinite(min_rate_vph);
boolean write_max_rate = Float.isFinite(max_rate_vph);
// write... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public abstract String toXML();",
"public abstract String toXML();",
"public abstract String toXML();",
"@Override\n public void toXml(XmlContext xc) {\n\n }",
"Element toXML();",
"private JAXBContext getJaxContext()\n {\n JAXBContext jc = null;\n \n try\n {\n ... | [
"0.6612249",
"0.6612249",
"0.6612249",
"0.64854795",
"0.61901695",
"0.616133",
"0.6043778",
"0.60416496",
"0.6040078",
"0.6016382",
"0.60013616",
"0.5942978",
"0.59373903",
"0.59251",
"0.5906421",
"0.58718413",
"0.5781334",
"0.57546455",
"0.5744523",
"0.5720882",
"0.5711205",... | 0.0 | -1 |
Escape command line value | private static String escape(String value, String chars) {
return escape(value, chars, "\\\\");
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private static String escape(String arg) {\n int max;\n StringBuilder result;\n char c;\n\n max = arg.length();\n result = new StringBuilder(max);\n for (int i = 0; i < max; i++) {\n c = arg.charAt(i);\n switch (c) {\n case '\\'':\n ... | [
"0.7087898",
"0.65433216",
"0.61602056",
"0.6046351",
"0.6021265",
"0.6021265",
"0.5996715",
"0.59395283",
"0.58750147",
"0.5862325",
"0.5763709",
"0.5724979",
"0.57035434",
"0.56490064",
"0.5637869",
"0.56261206",
"0.56038797",
"0.55554885",
"0.5553726",
"0.5543596",
"0.5543... | 0.5807482 | 10 |
Escape command line value | private static String escape(String value, String chars, String escapeSequence) {
String escaped = value;
if (escaped == null) {
return "";
}
for (char ch : chars.toCharArray()) {
escaped = escaped.replaceAll(String.valueOf(ch), escapeSequence + ch);
}
return escaped;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private static String escape(String arg) {\n int max;\n StringBuilder result;\n char c;\n\n max = arg.length();\n result = new StringBuilder(max);\n for (int i = 0; i < max; i++) {\n c = arg.charAt(i);\n switch (c) {\n case '\\'':\n ... | [
"0.7087939",
"0.6542508",
"0.61618894",
"0.6045088",
"0.6021935",
"0.6021935",
"0.59965086",
"0.5939689",
"0.58746636",
"0.5860594",
"0.5807191",
"0.57637036",
"0.57249725",
"0.57023746",
"0.5647926",
"0.5637831",
"0.56258774",
"0.560364",
"0.5554784",
"0.5552794",
"0.5543023... | 0.510171 | 53 |
Format a property collection (apply the escaping) | private static String formatProperties(Set<Property> objectProperties) {
if (objectProperties != null && !objectProperties.isEmpty()) {
StringBuilder sb = new StringBuilder();
for (Property property : objectProperties) {
sb.append(':').append(escape(property.getName(), "=;:")).append("=").append(escape(... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private String customPropertiesToString(Collection<CustomProperty> properties) {\r\n\t\tStringBuilder sb = new StringBuilder();\r\n\t\tsb.append(\"CustomProperties:\\n\\t\");\r\n\t\tfor (CustomProperty prop : properties) {\r\n\t\t\tsb.append(prop.GetName() + \" - \" + prop.GetValue());\r\n\t\t\tsb.append(\"\\n\\t\... | [
"0.57763076",
"0.5654482",
"0.56489384",
"0.54728895",
"0.54262215",
"0.53695834",
"0.5316501",
"0.5308295",
"0.5280658",
"0.51401323",
"0.5029252",
"0.50286907",
"0.50263816",
"0.5011434",
"0.4976731",
"0.49688834",
"0.49629715",
"0.4959219",
"0.49534023",
"0.49367225",
"0.4... | 0.61564636 | 0 |
Set a list of string | private static String formatStrings(Set<String> strings) {
if (strings != null && !strings.isEmpty()) {
StringBuilder sb = new StringBuilder();
for (String str : strings) {
sb.append(':').append(escape(str, "=;:"));
}
return sb.substring(1);
}
else {
return "";
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void setWeitereVerwendungszwecke(String[] list) throws RemoteException;",
"public void set(String[] as);",
"public void setV(List<String> v);",
"public void setT(List<String> e);",
"public void setStringArray(String[] value);",
"public void setValueSet(List<String> valueSet){\n mValueSet = ... | [
"0.79474294",
"0.7435907",
"0.74331975",
"0.72196",
"0.71393675",
"0.70547104",
"0.7021198",
"0.69983953",
"0.6955697",
"0.6810358",
"0.6793628",
"0.67547643",
"0.6625965",
"0.65673286",
"0.6496042",
"0.64905506",
"0.6448945",
"0.64180577",
"0.6405269",
"0.64028144",
"0.64001... | 0.0 | -1 |
TODO: Double value of Defence Order | @Override
public void specialAbility() {
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n\tpublic int getOrder() {\n\t\treturn Ordered.HIGHEST_PRECEDENCE + 10000;\n\t}",
"default int getOrder() {\n\treturn 0;\n }",
"@Override\n\tpublic int getOrder() {\n\t\treturn 1;\n\t}",
"@Override\r\n\tpublic int getOrder() {\n\t\treturn 0;\r\n\t}",
"@Override\n public int getOrder() {\n ... | [
"0.6788302",
"0.6765887",
"0.66669875",
"0.66213524",
"0.6536762",
"0.6464672",
"0.6356337",
"0.60939115",
"0.6048994",
"0.60098547",
"0.5972265",
"0.5949342",
"0.59052354",
"0.5893979",
"0.5880084",
"0.5779672",
"0.56847805",
"0.5640947",
"0.56329966",
"0.5623234",
"0.561691... | 0.0 | -1 |
This interface defines the configuration for a view. | public interface IViewConfiguration {
/** Get the filter defining how to handle conditional directives */
IViewFilter getViewFilter();
/** Get the fixed macros (macro name or name=value).
* This array should not change after creation since this
* configuration is stored in a view.
*/
Collection<ID... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void configure(T aView) { }",
"public ViewConfiguration invoke() {\n return ViewConfiguration.get(this.f64333a);\n }",
"public void configure(T aView) { aView.setPrefSize(110,20); }",
"IViewParserConfiguration getViewParserConfiguration();",
"public interface ConfigurationView {\... | [
"0.76127166",
"0.69641644",
"0.6872238",
"0.6852953",
"0.6662914",
"0.6585559",
"0.6585559",
"0.6544969",
"0.651168",
"0.64903027",
"0.6377682",
"0.63757604",
"0.6196204",
"0.61873156",
"0.6168775",
"0.60781425",
"0.6066677",
"0.60202384",
"0.6003688",
"0.59723425",
"0.592512... | 0.7478576 | 1 |
Get the filter defining how to handle conditional directives | IViewFilter getViewFilter(); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"Filter getFilter();",
"String getFilter();",
"java.lang.String getFilter();",
"public String getFilter();",
"public Filter condition();",
"public abstract INexusFilterDescriptor getFilterDescriptor();",
"String getFilterName();",
"BuildFilter defaultFilter();",
"public String getFilterCondition() {... | [
"0.66379344",
"0.6405389",
"0.6350928",
"0.63093376",
"0.63045865",
"0.5988431",
"0.59528524",
"0.59366554",
"0.5912353",
"0.59058666",
"0.59033024",
"0.58450705",
"0.58182836",
"0.5812199",
"0.57415056",
"0.57226515",
"0.5692915",
"0.5671099",
"0.5666692",
"0.5641316",
"0.56... | 0.59151846 | 8 |
Get the fixed macros (macro name or name=value). This array should not change after creation since this configuration is stored in a view. | Collection<IDefine> getMacros(); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Input\n public Map<String, String> getMacros() {\n return macros;\n }",
"@Nonnull\r\n public Map<String, Macro> getMacros() {\r\n return macros;\r\n }",
"public IAstPreprocessorMacroExpression[] getMacroExpressions();",
"public Map<Integer, String> getMacrosses() {\n\t\treturn Coll... | [
"0.6755504",
"0.6473506",
"0.60697424",
"0.6013111",
"0.5957248",
"0.58453",
"0.57287574",
"0.5527772",
"0.5515465",
"0.5501312",
"0.5478419",
"0.5194347",
"0.5154967",
"0.5112389",
"0.509762",
"0.5032087",
"0.49053133",
"0.48730257",
"0.48576748",
"0.48163208",
"0.47704843",... | 0.653684 | 1 |
Get the configuration for the parser. This may differ based on SDK (i.e. different include paths or different keywords, etc.) | IViewParserConfiguration getViewParserConfiguration(); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public Config getConfig();",
"public Configuration parse() {\n final CommandLineParser parser = new BasicParser();\n final CommandLine cmd;\n\n try {\n cmd = parser.parse(options, args);\n\n if (cmd.hasOption(\"h\"))\n return help();\n\n if (cm... | [
"0.6784293",
"0.67770445",
"0.65788335",
"0.65739304",
"0.65739304",
"0.65739304",
"0.65739304",
"0.65542984",
"0.6528222",
"0.6455318",
"0.64018375",
"0.6326621",
"0.6309149",
"0.62711257",
"0.6271077",
"0.62326396",
"0.6227092",
"0.62194616",
"0.62174577",
"0.61953896",
"0.... | 0.59924567 | 37 |
Arrange create a calculator | @Test
public void add5_checkTotal_shouldBe5() {
Calculator calculator = new Calculator();
// Act - add 5
calculator.add(5);
// Assert - check that the new total is 5
Assert.assertEquals(5, calculator.getTotal());
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private void operation(char operator){\n if(initialised == false){\n calc.setNum1(Double.parseDouble(txtBox.getText()));\n operatorPressed = true;\n } else { \n calc.setNum2(Double.parseDouble(txtBox.getText()));\n Decimal();\n calc.setNum1(cal... | [
"0.6830335",
"0.67326164",
"0.6543594",
"0.65235025",
"0.64890605",
"0.6481682",
"0.64356196",
"0.6402988",
"0.63321996",
"0.6330875",
"0.6317656",
"0.62690836",
"0.62138975",
"0.61763823",
"0.6170697",
"0.6169466",
"0.6168327",
"0.6162802",
"0.61235917",
"0.61188424",
"0.611... | 0.0 | -1 |
Arrange create a calculator | @Test
public void subtract4_checkTotal_shouldBeMinus4() {
Calculator calculator = new Calculator();
// Act - subtract 4
calculator.subtract(4);
// Assert - check that the new total is -4
Assert.assertEquals(-4, calculator.getTotal());
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private void operation(char operator){\n if(initialised == false){\n calc.setNum1(Double.parseDouble(txtBox.getText()));\n operatorPressed = true;\n } else { \n calc.setNum2(Double.parseDouble(txtBox.getText()));\n Decimal();\n calc.setNum1(cal... | [
"0.6830335",
"0.67326164",
"0.6543594",
"0.65235025",
"0.64890605",
"0.6481682",
"0.64356196",
"0.6402988",
"0.63321996",
"0.6330875",
"0.6317656",
"0.62690836",
"0.62138975",
"0.61763823",
"0.6170697",
"0.6169466",
"0.6168327",
"0.6162802",
"0.61235917",
"0.61188424",
"0.611... | 0.0 | -1 |
Arrange create a calculator | @Test
public void multiplyBy9_checkTotal_shouldBe0() {
Calculator calculator = new Calculator();
// Act - multiply by 9
calculator.multiplyBy(9);
// Assert - check that the new total is 0
Assert.assertEquals(0, calculator.getTotal());
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private void operation(char operator){\n if(initialised == false){\n calc.setNum1(Double.parseDouble(txtBox.getText()));\n operatorPressed = true;\n } else { \n calc.setNum2(Double.parseDouble(txtBox.getText()));\n Decimal();\n calc.setNum1(cal... | [
"0.6830335",
"0.67326164",
"0.6543594",
"0.65235025",
"0.64890605",
"0.6481682",
"0.64356196",
"0.6402988",
"0.63321996",
"0.6330875",
"0.6317656",
"0.62690836",
"0.62138975",
"0.61763823",
"0.6170697",
"0.6169466",
"0.6168327",
"0.6162802",
"0.61235917",
"0.61188424",
"0.611... | 0.0 | -1 |
Considers any response a SUCCESS, callers should check Result.getResponse() for errors and craziness. Will POST if nameValuePairs is not null. | private Result performRequest(String endpointUrl, List<NameValuePair> nameValuePairs) {
Status status = Status.FAILED_UNRECOVERABLE;
String response = null;
try {
// the while(retries) loop is a workaround for a bug in some Android HttpURLConnection
// libraries- The unde... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public HttpResponse post(String url,List<NameValuePair> nameValuePairs) {\n\t \n\t HttpClient httpclient = new DefaultHttpClient();\n\t HttpPost httppost = new HttpPost(url);\n\n\t try {\n\t httppost.setEntity(new UrlEncodedFormEntity(nameValuePairs));\n\t HttpResponse response = httpclie... | [
"0.5794035",
"0.578266",
"0.56725335",
"0.5667199",
"0.56188756",
"0.550532",
"0.5374907",
"0.53553265",
"0.53400606",
"0.5315771",
"0.53080076",
"0.53077954",
"0.5281467",
"0.52631515",
"0.524517",
"0.5226786",
"0.52253145",
"0.52147627",
"0.5212059",
"0.5175543",
"0.5168705... | 0.53954554 | 6 |
return count of not null elements matrix | public int fillingOfMatrix(){
int count=0;
for (int i=0;i<m;i++)
count+=matrix[i].size();
return count;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public int countEmptyCells() {\n int result = 0;\n for (int[] row : field)\n for (int cell : row)\n if (cell == EMPTY_MARK)\n result++;\n return result;\n }",
"public int count(){\n\tboolean val = false;\n\tint cont = 0;\n\tfor(int i =0;i<arch.... | [
"0.70215106",
"0.6906652",
"0.6824641",
"0.68167233",
"0.67179483",
"0.66852176",
"0.66439295",
"0.66432106",
"0.6594392",
"0.65509427",
"0.64293796",
"0.6364841",
"0.6322634",
"0.6315412",
"0.62625486",
"0.6243228",
"0.62382543",
"0.6214653",
"0.61772555",
"0.61438286",
"0.6... | 0.68088794 | 4 |
The default getInstance method with the singleton pattern. | public static PMAReportNotificationHelper getInstance() throws IOException, URISyntaxException {
if (instance == null) {
instance = new PMAReportNotificationHelper();
}
return instance;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public static Singleton getInstance( ) {\n return singleton;\n }",
"public static Singleton getInstance( ) {\n return singleton;\n }",
"@Override\n public T getInstance() {\n return instance;\n }",
"T getInstance();",
"public static synchronized Singleton getInstance(){\n ... | [
"0.8436031",
"0.83915484",
"0.83132905",
"0.7895602",
"0.7872024",
"0.7870505",
"0.78555787",
"0.7838071",
"0.7817416",
"0.7808999",
"0.7808112",
"0.77717304",
"0.7750723",
"0.7718428",
"0.7711469",
"0.7710278",
"0.7704431",
"0.7697775",
"0.7695341",
"0.76934564",
"0.7676052"... | 0.0 | -1 |
Sends the PMA Analysis results to the users on the pipeline. | public String getTemplate(AnalysisOutput output) {
String performance = output.getPerformance();
String alert = output.getAlert();
String history = output.getHistory();
Baseline baseline = null;
ReportStatus status;
String measurement = " ";
Job job = null;... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void writeResults() {\n gfmBroker.storeResults(this.responses, fileOutputPath);\n }",
"protected void outputResultData (FinalReport report)\n {\n trc.show (\"outputResultData\", \"output simulation results\");\n\n\tmodelReport = report;\n\tnew HandleReportDialog (this);\n\n }",
"@... | [
"0.59696454",
"0.5959522",
"0.5723565",
"0.56132156",
"0.55725986",
"0.5523903",
"0.5470893",
"0.5449238",
"0.5394669",
"0.5330457",
"0.532231",
"0.5282803",
"0.52797663",
"0.52713597",
"0.52335376",
"0.5232687",
"0.52299064",
"0.5195966",
"0.51860684",
"0.51348954",
"0.51174... | 0.0 | -1 |
/ Creates a new NavigationController. | public NavigationController( BrowserFieldScreen widgetScreen ) {
_browserField = widgetScreen.getWidgetBrowserField();
_navigationNamespace = widgetScreen.getNavigationExtension();
_widgetFieldManager = widgetScreen.getWidgetFieldManager();
_currentNodeHovered = true;
_defau... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public NavigationController getNavigationController();",
"NavigationFlow createNavigationFlow();",
"private CreationViewController getCreationBrowserController(){\n\n FXMLLoader loader = new FXMLLoader(\n getClass().getResource(\"/CreationView.fxml\")\n );\n stage = new Stag... | [
"0.6409031",
"0.62293977",
"0.5963762",
"0.59452343",
"0.5545026",
"0.54132736",
"0.5332979",
"0.5205915",
"0.51824695",
"0.51780903",
"0.5111015",
"0.5048892",
"0.5039516",
"0.4980943",
"0.49802253",
"0.49548137",
"0.49372151",
"0.4927587",
"0.49240765",
"0.49023014",
"0.488... | 0.5304267 | 7 |
/ Handles the navigation movement based on direction | public void handleDirection( int direction ) {
dispatchUiEvent( NAVIGATION_EVENT_DIRECTION, direction );
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void navigation() {\n }",
"public void move() {\n\n if (_currentFloor == Floor.FIRST) {\n _directionOfTravel = DirectionOfTravel.UP;\n }\n if (_currentFloor == Floor.SEVENTH) {\n _directionOfTravel = DirectionOfTravel.DOWN;\n }\n\n\n if (_directi... | [
"0.69075465",
"0.681183",
"0.6720013",
"0.667742",
"0.6633152",
"0.65994906",
"0.65888935",
"0.6523586",
"0.6444024",
"0.64275324",
"0.6412666",
"0.63958585",
"0.63873947",
"0.6375966",
"0.6368309",
"0.6361381",
"0.6356716",
"0.63546556",
"0.63533795",
"0.6352803",
"0.6351822... | 0.69504684 | 0 |
Deselects the node with the current navigation focus | public void deselectFocusedNode(){
focusOut();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"void removeFocus();",
"@Override\n public void deselectGolem() {\n }",
"public void deselect();",
"public void deselect() {\n if (selection != null) {\n \t\tworld.destroyJoint(mouseJoint);\n \t selection = null;\n \t mouseJoint = null;\n\t }\n }",
"public void removeSelect... | [
"0.6949331",
"0.6907546",
"0.685351",
"0.67340875",
"0.6576279",
"0.6418975",
"0.62729865",
"0.6268831",
"0.6247636",
"0.61926645",
"0.6127587",
"0.6065741",
"0.60260606",
"0.5983305",
"0.5979889",
"0.59746015",
"0.5970427",
"0.5970427",
"0.5898911",
"0.58862627",
"0.5851575"... | 0.8683794 | 0 |
Determines if the current control is a special case that requires a click event in WebKit. | boolean currentNodeRequiresClickInWebKit(){
if( _currentFocusNode == null ){
return false;
}
if( DeviceInfo.isBlackBerry6() ){
if( _currentFocusNode instanceof HTMLInputElement ){
String type = ( ( HTMLInputElement ) _currentFocusNode ).getType();
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public boolean isClickable() {\n/* 899 */ throw new RuntimeException(\"Stub!\");\n/* */ }",
"@SuppressWarnings(\"EmptyMethod\")\n\t@Override\n public boolean performClick() {\n return super.performClick();\n }",
"@Override\n public boolean performClick() {\n return super.perf... | [
"0.65435696",
"0.65336835",
"0.6518841",
"0.6514139",
"0.64946014",
"0.648382",
"0.645086",
"0.645086",
"0.6207468",
"0.61913615",
"0.6170894",
"0.6006104",
"0.600049",
"0.5992902",
"0.5986318",
"0.5943106",
"0.5899028",
"0.5861517",
"0.5809196",
"0.57550687",
"0.5736141",
... | 0.72785693 | 0 |
This method is called from within the constructor to initialize the form. WARNING: Do NOT modify this code. The content of this method is always regenerated by the Form Editor. | @SuppressWarnings("unchecked")
// <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
private void initComponents() {
FrameStock = new javax.swing.JFrame();
panelPrincipal2 = new javax.swing.JPanel();
jScrollPane1 = new javax.swing.JScrollPane();
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public Form() {\n initComponents();\n }",
"public MainForm() {\n initComponents();\n }",
"public MainForm() {\n initComponents();\n }",
"public MainForm() {\n initComponents();\n }",
"public frmRectangulo() {\n initComponents();\n }",
"public form() {\n ... | [
"0.7321342",
"0.7292121",
"0.7292121",
"0.7292121",
"0.72863305",
"0.7249828",
"0.7213628",
"0.7209084",
"0.7197292",
"0.71912086",
"0.7185135",
"0.7159969",
"0.7148876",
"0.70944786",
"0.70817256",
"0.7057678",
"0.69884527",
"0.69786763",
"0.69555986",
"0.69548863",
"0.69453... | 0.0 | -1 |
insert into `t_base_house_lock` (`fid`, `house_fid`,`rent_way`, `lock_time`, `lock_type`) VALUES('8a9e988b5a925c19015a925c19b00000','8a90997756fae5320156fde855a20243','0','20170303 00:00:00','2'); | public static void main(String[] args) {
try {
readHouseTxt();
} catch (ParseException e) {
e.printStackTrace();
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public int Trans1(Long userid,Long amount,Double price,Double comp_id)throws SQLException {\n\tint i=DbConnect.getStatement().executeUpdate(\"Insert into transaction values(trans_seq.nextval,\"+userid+\",sysdate,\"+amount+\",'sale','self',\"+comp_id+\",\"+price+\")\");\r\n\treturn i;\r\n}",
"public int updShare(... | [
"0.5579949",
"0.5532011",
"0.544825",
"0.5382359",
"0.5344392",
"0.5305126",
"0.5246535",
"0.5226747",
"0.52115226",
"0.5207884",
"0.5183225",
"0.51754147",
"0.51559764",
"0.51535726",
"0.51417613",
"0.509245",
"0.5065378",
"0.50607353",
"0.50605315",
"0.5050294",
"0.50408477... | 0.0 | -1 |
TODO Autogenerated method stub | @Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setRequestedOrientation (ActivityInfo.SCREEN_ORIENTATION_PORTRAIT);
setContentView(R.layout.data4);
sv=(ScrollView)findViewById(R.id.sv4);
sv.setVerticalScrollBarEnabled(false);
sv.setHorizontalScrollB... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"@Override\n public void perish() {\n \n }",
"@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}",
"@Override\n\tpublic void anular() {\n\n\t}",
"@Override\n\tprotected void getExr... | [
"0.66708666",
"0.65675074",
"0.65229905",
"0.6481001",
"0.64770633",
"0.64584893",
"0.6413091",
"0.63764185",
"0.6275735",
"0.62541914",
"0.6236919",
"0.6223816",
"0.62017626",
"0.61944294",
"0.61944294",
"0.61920846",
"0.61867654",
"0.6173323",
"0.61328775",
"0.61276996",
"0... | 0.0 | -1 |
TODO Autogenerated method stub | public void onClick(View v) {
SharedPreferences.Editor editor = getPreferences(0).edit();
String s=extractedsample.getText().toString();
editor.putString("Name", s);
String s1=primerpair.getText().toString();
editor.putString("Name1", s1);
String s2=date1.getText().toString();
e... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"@Override\n public void perish() {\n \n }",
"@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}",
"@Override\n\tpublic void anular() {\n\n\t}",
"@Override\n\tprotected void getExr... | [
"0.6671074",
"0.6567672",
"0.6523024",
"0.6481211",
"0.6477082",
"0.64591026",
"0.64127725",
"0.63762105",
"0.6276059",
"0.6254286",
"0.623686",
"0.6223679",
"0.6201336",
"0.61950207",
"0.61950207",
"0.61922914",
"0.6186996",
"0.6173591",
"0.61327106",
"0.61285484",
"0.608016... | 0.0 | -1 |
TODO Autogenerated method stub | public void onClick(View v) {
Intent intent=new Intent(getApplicationContext(), Home.class);
startActivity(intent);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"@Override\n public void perish() {\n \n }",
"@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}",
"@Override\n\tpublic void anular() {\n\n\t}",
"@Override\n\tprotected void getExr... | [
"0.66708666",
"0.65675074",
"0.65229905",
"0.6481001",
"0.64770633",
"0.64584893",
"0.6413091",
"0.63764185",
"0.6275735",
"0.62541914",
"0.6236919",
"0.6223816",
"0.62017626",
"0.61944294",
"0.61944294",
"0.61920846",
"0.61867654",
"0.6173323",
"0.61328775",
"0.61276996",
"0... | 0.0 | -1 |
TODO Autogenerated method stub | public void onClick(View arg0) {
new AlertDialog.Builder(Data4.this)
.setIcon(android.R.drawable.ic_dialog_alert)
.setTitle("Step4 to Step1...")
.setMessage("Are you sure to continue...?")
.setPositiveButton("Yes", new DialogInterface.OnClickListener()
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"@Override\n public void perish() {\n \n }",
"@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}",
"@Override\n\tpublic void anular() {\n\n\t}",
"@Override\n\tprotected void getExr... | [
"0.6671074",
"0.6567672",
"0.6523024",
"0.6481211",
"0.6477082",
"0.64591026",
"0.64127725",
"0.63762105",
"0.6276059",
"0.6254286",
"0.623686",
"0.6223679",
"0.6201336",
"0.61950207",
"0.61950207",
"0.61922914",
"0.6186996",
"0.6173591",
"0.61327106",
"0.61285484",
"0.608016... | 0.0 | -1 |
TODO Autogenerated method stub | public void onClick(View arg0) {
new AlertDialog.Builder(Data4.this)
.setIcon(android.R.drawable.ic_dialog_alert)
.setTitle("Step4 to Step2...")
.setMessage("Are you sure to continue...?")
.setPositiveButton("Yes", new DialogInterface.OnClickListener()
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"@Override\n public void perish() {\n \n }",
"@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}",
"@Override\n\tpublic void anular() {\n\n\t}",
"@Override\n\tprotected void getExr... | [
"0.66708666",
"0.65675074",
"0.65229905",
"0.6481001",
"0.64770633",
"0.64584893",
"0.6413091",
"0.63764185",
"0.6275735",
"0.62541914",
"0.6236919",
"0.6223816",
"0.62017626",
"0.61944294",
"0.61944294",
"0.61920846",
"0.61867654",
"0.6173323",
"0.61328775",
"0.61276996",
"0... | 0.0 | -1 |
TODO Autogenerated method stub | public void onClick(View v) {
showDialog(DATE_DIALOG_ID);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"@Override\n public void perish() {\n \n }",
"@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}",
"@Override\n\tpublic void anular() {\n\n\t}",
"@Override\n\tprotected void getExr... | [
"0.6671074",
"0.6567672",
"0.6523024",
"0.6481211",
"0.6477082",
"0.64591026",
"0.64127725",
"0.63762105",
"0.6276059",
"0.6254286",
"0.623686",
"0.6223679",
"0.6201336",
"0.61950207",
"0.61950207",
"0.61922914",
"0.6186996",
"0.6173591",
"0.61327106",
"0.61285484",
"0.608016... | 0.0 | -1 |
TODO Autogenerated method stub | public void onClick(View v) {
if (tbtn.isChecked()) {
Toast.makeText(getApplicationContext(), "Turn off Send To Sequencing", Toast.LENGTH_LONG).show();
}
else{
showDialog(DATE_DIALOG1_ID);
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"@Override\n public void perish() {\n \n }",
"@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}",
"@Override\n\tpublic void anular() {\n\n\t}",
"@Override\n\tprotected void getExr... | [
"0.66708666",
"0.65675074",
"0.65229905",
"0.6481001",
"0.64770633",
"0.64584893",
"0.6413091",
"0.63764185",
"0.6275735",
"0.62541914",
"0.6236919",
"0.6223816",
"0.62017626",
"0.61944294",
"0.61944294",
"0.61920846",
"0.61867654",
"0.6173323",
"0.61328775",
"0.61276996",
"0... | 0.0 | -1 |
TODO Autogenerated method stub | public void onClick(View v) {
((EditText) findViewById(R.id.d4et1)).setText("");
((EditText) findViewById(R.id.d4et2)).setText("");
((Button) findViewById(R.id.d4date1)).setText("DD/MM/YY");
((Button) findViewById(R.id.d4date2)).setText("DD/MM/YY");
((EditText) findViewById(R.id.d4et4)).setText(... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"@Override\n public void perish() {\n \n }",
"@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}",
"@Override\n\tpublic void anular() {\n\n\t}",
"@Override\n\tprotected void getExr... | [
"0.6671074",
"0.6567672",
"0.6523024",
"0.6481211",
"0.6477082",
"0.64591026",
"0.64127725",
"0.63762105",
"0.6276059",
"0.6254286",
"0.623686",
"0.6223679",
"0.6201336",
"0.61950207",
"0.61950207",
"0.61922914",
"0.6186996",
"0.6173591",
"0.61327106",
"0.61285484",
"0.608016... | 0.0 | -1 |
TODO Autogenerated method stub | public void onClick(View v) {
Intent intent=new Intent(getApplicationContext(), Find1.class);
startActivity(intent);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"@Override\n public void perish() {\n \n }",
"@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}",
"@Override\n\tpublic void anular() {\n\n\t}",
"@Override\n\tprotected void getExr... | [
"0.66708666",
"0.65675074",
"0.65229905",
"0.6481001",
"0.64770633",
"0.64584893",
"0.6413091",
"0.63764185",
"0.6275735",
"0.62541914",
"0.6236919",
"0.6223816",
"0.62017626",
"0.61944294",
"0.61944294",
"0.61920846",
"0.61867654",
"0.6173323",
"0.61328775",
"0.61276996",
"0... | 0.0 | -1 |
TODO Autogenerated method stub | public void onClick(View v) {
extractedsample1=extractedsample.getText().toString().trim();
primerpair1=primerpair.getText().toString().trim();
successfull1=successfull.getText().toString().trim();
dateofinput=date1.getText().toString().trim();
dateofsendtosequence=date2.getText().toString().tri... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"@Override\n public void perish() {\n \n }",
"@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}",
"@Override\n\tpublic void anular() {\n\n\t}",
"@Override\n\tprotected void getExr... | [
"0.6671074",
"0.6567672",
"0.6523024",
"0.6481211",
"0.6477082",
"0.64591026",
"0.64127725",
"0.63762105",
"0.6276059",
"0.6254286",
"0.623686",
"0.6223679",
"0.6201336",
"0.61950207",
"0.61950207",
"0.61922914",
"0.6186996",
"0.6173591",
"0.61327106",
"0.61285484",
"0.608016... | 0.0 | -1 |
Updates the date in the TextView | private void updateDisplay() {
date1.setText(
new StringBuilder()
// Month is 0 based so add 1
.append(pDay).append("/")
.append(pMonth + 1).append("/")
.append(pYear).append(" "));
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"protected void updateDate() {\r\n\t\tDate date = new Date();\r\n\t\tdate.setTime(mTime);\r\n\t\tDateFormat dateFormat = android.text.format.DateFormat.getDateFormat(getApplicationContext());\r\n\t\tString text = dateFormat.format(date);\r\n\t\tmDatePickerText.setText(text);\r\n\t}",
"@Override\n public void u... | [
"0.809404",
"0.80042094",
"0.79640335",
"0.7826634",
"0.7800884",
"0.75576174",
"0.75562185",
"0.75422144",
"0.7517487",
"0.7460078",
"0.7345806",
"0.7297261",
"0.72308487",
"0.72168916",
"0.71665204",
"0.71380293",
"0.71091056",
"0.7059568",
"0.70243704",
"0.7016814",
"0.700... | 0.7471816 | 9 |
Create a new dialog for date picker | @Override
protected Dialog onCreateDialog(int id) {
switch (id) {
case DATE_DIALOG_ID:
return new DatePickerDialog(this,
pDateSetListener,
pYear, pMonth, pDay);
case DATE_DIALOG1_ID:
return new DatePickerDialog(this, ... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private void chooseDateDialog() {\n Calendar c = Calendar.getInstance();\n int year = c.get(Calendar.YEAR);\n int month = c.get(Calendar.MONTH);\n int day = c.get(Calendar.DATE);\n\n DatePickerDialog datePickerDialog =\n new DatePickerDialog(Objects.requireNonNull(... | [
"0.81744474",
"0.7977751",
"0.7865266",
"0.7865266",
"0.7848225",
"0.7848225",
"0.7848225",
"0.7848225",
"0.7848225",
"0.7848225",
"0.778271",
"0.77732724",
"0.7771422",
"0.77081335",
"0.7706588",
"0.7699097",
"0.7699097",
"0.76975125",
"0.769043",
"0.76871246",
"0.76871246",... | 0.7721765 | 13 |
TODO Autogenerated method stub | @Override
protected void onPreExecute() {
super.onPreExecute();
dialog = new Dialog(Data4.this);
dialog.setTitle("Please wait");
TextView tv = new TextView(Data4.this.getApplicationContext());
tv.setText("Uploading Data to SpreadSheet...");
dialog.setContentView(tv);
dialog.show();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"@Override\n public void perish() {\n \n }",
"@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}",
"@Override\n\tpublic void anular() {\n\n\t}",
"@Override\n\tprotected void getExr... | [
"0.66708666",
"0.65675074",
"0.65229905",
"0.6481001",
"0.64770633",
"0.64584893",
"0.6413091",
"0.63764185",
"0.6275735",
"0.62541914",
"0.6236919",
"0.6223816",
"0.62017626",
"0.61944294",
"0.61944294",
"0.61920846",
"0.61867654",
"0.6173323",
"0.61328775",
"0.61276996",
"0... | 0.0 | -1 |
TODO Autogenerated method stub | @Override
protected void onPostExecute(Object result) {
super.onPostExecute(result);
if(dialog.isShowing())
dialog.cancel();
Toast.makeText(getApplicationContext(), "Inserted Succesfully", Toast.LENGTH_LONG).show();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"@Override\n public void perish() {\n \n }",
"@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}",
"@Override\n\tpublic void anular() {\n\n\t}",
"@Override\n\tprotected void getExr... | [
"0.6671074",
"0.6567672",
"0.6523024",
"0.6481211",
"0.6477082",
"0.64591026",
"0.64127725",
"0.63762105",
"0.6276059",
"0.6254286",
"0.623686",
"0.6223679",
"0.6201336",
"0.61950207",
"0.61950207",
"0.61922914",
"0.6186996",
"0.6173591",
"0.61327106",
"0.61285484",
"0.608016... | 0.0 | -1 |
set the default tag if tag is empty | public <T> void addToRequestQueue(Request<T> req, String tag) {
req.setTag(TextUtils.isEmpty(tag) ? TAG : tag);
getRequestQueue().add(req);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public Tag addDefaultTag(){\n StringProperty tagName = new SimpleStringProperty();\n tagName.setValue(\"New Tag\");\n Tag newTag = new Tag(tagName);\n\n\n /* verify if id is integer or string, we handle just strings here\n newTag.setIdProperty(0);\n */\n\n addTag(n... | [
"0.6946582",
"0.64612424",
"0.63822174",
"0.63341886",
"0.62307453",
"0.6083876",
"0.60585845",
"0.6008044",
"0.600528",
"0.59883195",
"0.5962369",
"0.5947859",
"0.5919469",
"0.5916547",
"0.59123075",
"0.5904394",
"0.5899309",
"0.5887233",
"0.5884601",
"0.58642983",
"0.586429... | 0.0 | -1 |
/ renamed from: com.f.a.b.g.a | public interface C1590a {
/* renamed from: a */
Bitmap m7900a(Bitmap bitmap);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private static String p(Class n) {\n return n.getName().replace('.','/');\n }",
"private String getSimpleName(String name) {\n\t\tint i = name.lastIndexOf(\".\");\n\t\treturn name.substring(i + 1);\n\t}",
"private String getClassName( Class c ) {\n\treturn c.getName().substring(c.getName().lastIndexO... | [
"0.6066846",
"0.60356563",
"0.57662714",
"0.5714945",
"0.5666393",
"0.5599166",
"0.55969834",
"0.5594995",
"0.5591373",
"0.5582415",
"0.55811054",
"0.5556158",
"0.5525683",
"0.5518924",
"0.55181634",
"0.5495179",
"0.5465048",
"0.5457799",
"0.54519403",
"0.54467255",
"0.544597... | 0.0 | -1 |
/ renamed from: a | Bitmap m7900a(Bitmap bitmap); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public interface C4521a {\n /* renamed from: a */\n void mo12348a();\n }",
"public interface C1423a {\n /* renamed from: a */\n void mo6888a(int i);\n }",
"interface bxc {\n /* renamed from: a */\n void mo2508a(bxb bxb);\n}",
"interface C33292a {\n /* renamed fr... | [
"0.6249595",
"0.6242955",
"0.61393225",
"0.6117684",
"0.61140615",
"0.60893875",
"0.6046927",
"0.60248226",
"0.60201806",
"0.59753186",
"0.5947817",
"0.5912414",
"0.5883872",
"0.5878469",
"0.587005",
"0.58678955",
"0.58651674",
"0.5857262",
"0.58311176",
"0.58279663",
"0.5827... | 0.0 | -1 |
Contractor: Setting up the SouthQuerry class | public S(Activity activity){
this.activity = activity;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Test\n public void qQuote() throws FlywayException {\n flyway.setLocations(\"migration/dbsupport/oracle/sql/qquote\");\n flyway.migrate();\n }",
"public void setup() {\r\n // These setters could be used to override the default.\r\n // this.setDatabasePolicy(new null());\r\n ... | [
"0.5617003",
"0.5585038",
"0.5508134",
"0.52337694",
"0.5185358",
"0.5177287",
"0.5142758",
"0.5112984",
"0.5101499",
"0.5096863",
"0.50940007",
"0.5060456",
"0.50525767",
"0.50491214",
"0.5022177",
"0.5021403",
"0.50088453",
"0.49909687",
"0.49878964",
"0.49703717",
"0.49409... | 0.0 | -1 |
Gets the view by its id | @SuppressWarnings("unchecked")
public S<T> get(String id){
id =id.trim();
if(id.contains("*")){
if(l==null)
l = (LinkedList<Sview>) getTableId();
String sufix = getSufix(id);
LinkedList<View> lv = new LinkedList<View>();
for (Sview v : l) {
if(v.name.startsWith(sufix)){
View vi = act... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@SuppressWarnings(\"unchecked\")\n\tpublic View getView(String id) {\n\t\tid =id.trim();\n\t\tt = (T) activity.findViewById(getId(id));\n\t\treturn (View)t;\n\t}",
"public View findViewById(int viewId){\r\n return AppContext.getCurrent().getActivity().getCurrentView().findViewById(viewId);\r\n }",
"... | [
"0.7443374",
"0.7374849",
"0.7371735",
"0.7337268",
"0.7313094",
"0.7179506",
"0.71004397",
"0.6858592",
"0.68280554",
"0.6629331",
"0.6602421",
"0.65604895",
"0.6519839",
"0.64106053",
"0.632012",
"0.62920195",
"0.62731016",
"0.62053996",
"0.6180635",
"0.6177199",
"0.6156359... | 0.6430716 | 13 |
Gets the view by its id | @SuppressWarnings("unchecked")
public S<T> get(int id){
t = (T) activity.findViewById(id);
return this;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@SuppressWarnings(\"unchecked\")\n\tpublic View getView(String id) {\n\t\tid =id.trim();\n\t\tt = (T) activity.findViewById(getId(id));\n\t\treturn (View)t;\n\t}",
"public View findViewById(int viewId){\r\n return AppContext.getCurrent().getActivity().getCurrentView().findViewById(viewId);\r\n }",
"... | [
"0.7444258",
"0.73773634",
"0.7372519",
"0.7338182",
"0.73143107",
"0.7182115",
"0.7101247",
"0.685975",
"0.68292373",
"0.66299796",
"0.6603832",
"0.6561935",
"0.65207434",
"0.64302176",
"0.6412156",
"0.62903154",
"0.6273449",
"0.6205696",
"0.6180132",
"0.6179054",
"0.6158477... | 0.6319618 | 15 |
Gets the view by its id from a View | @SuppressWarnings("unchecked")
public S<T> get(View view,String id) {
id =id.trim();
t = (T) view.findViewById(getId(id));
return this;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public View findViewById(int viewId){\r\n return AppContext.getCurrent().getActivity().getCurrentView().findViewById(viewId);\r\n }",
"int getViewId();",
"@SuppressWarnings(\"unchecked\")\n\tpublic View getView(String id) {\n\t\tid =id.trim();\n\t\tt = (T) activity.findViewById(getId(id));\n\t\tretu... | [
"0.7660079",
"0.7630154",
"0.7143009",
"0.7074588",
"0.701801",
"0.6945128",
"0.6930926",
"0.68748754",
"0.68504065",
"0.6801967",
"0.6787305",
"0.6784755",
"0.67817515",
"0.66240805",
"0.6536862",
"0.6507279",
"0.64491665",
"0.64335185",
"0.64208364",
"0.63506466",
"0.617673... | 0.6572702 | 14 |
Gets the view by its id from a View | @SuppressWarnings("unchecked")
public S<T> get(View view,int id) {
t = (T) view.findViewById(id);
return this;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public View findViewById(int viewId){\r\n return AppContext.getCurrent().getActivity().getCurrentView().findViewById(viewId);\r\n }",
"int getViewId();",
"@SuppressWarnings(\"unchecked\")\n\tpublic View getView(String id) {\n\t\tid =id.trim();\n\t\tt = (T) activity.findViewById(getId(id));\n\t\tretu... | [
"0.76600415",
"0.7630232",
"0.71429956",
"0.7072706",
"0.7018678",
"0.69458956",
"0.69323504",
"0.68500197",
"0.6802647",
"0.67876494",
"0.6784272",
"0.6782604",
"0.6623598",
"0.6570241",
"0.6537211",
"0.65084416",
"0.6450907",
"0.6432097",
"0.64208865",
"0.6349979",
"0.61760... | 0.687322 | 7 |
Gets the view by its id from a View | @SuppressWarnings("unchecked")
public View getView(String id) {
id =id.trim();
t = (T) activity.findViewById(getId(id));
return (View)t;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public View findViewById(int viewId){\r\n return AppContext.getCurrent().getActivity().getCurrentView().findViewById(viewId);\r\n }",
"int getViewId();",
"@SuppressWarnings(\"unchecked\")\n public static <T extends View> T get(View view, int id) {\n SparseArray<View> viewHolder = (S... | [
"0.7660079",
"0.7630154",
"0.7074588",
"0.701801",
"0.6945128",
"0.6930926",
"0.68748754",
"0.68504065",
"0.6801967",
"0.6787305",
"0.6784755",
"0.67817515",
"0.66240805",
"0.6572702",
"0.6536862",
"0.6507279",
"0.64491665",
"0.64335185",
"0.64208364",
"0.63506466",
"0.617673... | 0.7143009 | 2 |
Gets the id as an int by its id from a View | @SuppressWarnings("unchecked")
public View getView(int id) {
t = (T) activity.findViewById(id);
return (View)t;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"int getViewId();",
"public static int getViewId() {\n\t\tviewId += 0x00000001;\n\t\treturn viewId;\n\t}",
"public Integer getViewID()\n {\n String x = center.east() + \"_\" + center.north() + \"_\" + scale + \"_\" +\n getWidth() + \"_\" + getHeight();\n java.util.zip.CRC32 id = new ... | [
"0.75576764",
"0.71834",
"0.71393114",
"0.69559383",
"0.68626225",
"0.6828067",
"0.6457738",
"0.61786246",
"0.6095876",
"0.60887355",
"0.60593724",
"0.6056152",
"0.6056152",
"0.6043428",
"0.6043428",
"0.6043428",
"0.6025143",
"0.59388185",
"0.59292555",
"0.5922814",
"0.591869... | 0.0 | -1 |
Gets the id as an int by its id from a View | public int getId(String id){
Resources res = activity.getResources();
int theid = res.getIdentifier(id, "id", activity.getPackageName());
return theid;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"int getViewId();",
"public static int getViewId() {\n\t\tviewId += 0x00000001;\n\t\treturn viewId;\n\t}",
"public Integer getViewID()\n {\n String x = center.east() + \"_\" + center.north() + \"_\" + scale + \"_\" +\n getWidth() + \"_\" + getHeight();\n java.util.zip.CRC32 id = new ... | [
"0.7556852",
"0.7182261",
"0.7138209",
"0.69554156",
"0.6861212",
"0.68267673",
"0.6457525",
"0.6178203",
"0.6095527",
"0.6088319",
"0.6058029",
"0.6053112",
"0.6053112",
"0.6040705",
"0.6040705",
"0.6040705",
"0.6024519",
"0.5936352",
"0.5926367",
"0.59213686",
"0.59163994",... | 0.0 | -1 |
Sets the image to an ImageView or ImageButton from the drawable | public S<T> image(String name){
name = name.trim();
Boolean b = false;
int theid = activity.getResources().getIdentifier(
name, "drawable", activity.getApplicationContext().getPackageName());
try {
if(t instanceof ImageView)
{
java.net.URL url = new URL(name);
}
} catch (Mal... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n public void getDrawable(Drawable drawable) {\n imageView.setImageDrawable(drawable);\n }",
"@Override\n public void setImageDrawable(@Nullable Drawable drawable) {\n mOriginalDrawable = drawable... | [
"0.7571371",
"0.7187499",
"0.6937225",
"0.6925417",
"0.6840738",
"0.67087686",
"0.6551025",
"0.6494727",
"0.6439395",
"0.64126945",
"0.64126945",
"0.6397681",
"0.63928646",
"0.63522595",
"0.6345158",
"0.6309957",
"0.6293252",
"0.6256589",
"0.6228738",
"0.6202371",
"0.61603075... | 0.5494515 | 76 |
Sets the background color of a view | public S<T> bg(int color){
if(t instanceof TextView){
((TextView)t).setBackgroundColor(color);return this;
}
if(t instanceof Button){
((Button)t).setBackgroundColor(color);return this;
}
if(t instanceof EditText){
((EditText)t).setBackgroundColor(color);return this;
}
if(t instanceof Check... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n public void setBackgroundColor(int backgroundColor) {\n }",
"public void setBg(){\n this.setBackground(color);\n }",
"@BindingAdapter(value = {\"backgroundRes\", \"backgroundColor\"}, requireAll = false)\n public static void setBackground(View view, @DrawableRes int backgroundRes, @C... | [
"0.752632",
"0.75157446",
"0.73907644",
"0.7286981",
"0.7265586",
"0.72531056",
"0.71802986",
"0.7163394",
"0.7050235",
"0.69777167",
"0.68081826",
"0.679008",
"0.67672634",
"0.6703161",
"0.65509194",
"0.6538184",
"0.65304404",
"0.65224165",
"0.65147585",
"0.65068614",
"0.649... | 0.69515586 | 10 |
Sets the background color of a view | public S<T> bg(String color){
try{
int c = Color.parseColor(color);
bg(c);
}catch(IllegalArgumentException ex){
ex.printStackTrace();
}
return this;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n public void setBackgroundColor(int backgroundColor) {\n }",
"public void setBg(){\n this.setBackground(color);\n }",
"@BindingAdapter(value = {\"backgroundRes\", \"backgroundColor\"}, requireAll = false)\n public static void setBackground(View view, @DrawableRes int backgroundRes, @C... | [
"0.75251436",
"0.75143385",
"0.7389324",
"0.7286118",
"0.7264601",
"0.72521627",
"0.7179019",
"0.71619827",
"0.7048979",
"0.6977231",
"0.6950196",
"0.68076164",
"0.67897916",
"0.6765587",
"0.670262",
"0.65494645",
"0.65369207",
"0.6529458",
"0.6520856",
"0.6512362",
"0.650418... | 0.0 | -1 |
Sets the font of the text | public S<T> font(String fileName){
Typeface font = Typeface.createFromAsset(activity.getAssets(), fileName);
if(t instanceof TextView){
((TextView)t).setTypeface(font);
}
if(t instanceof Button){
((Button)t).setTypeface(font);
}
if(t instanceof EditText){
((EditText)t).setTypeface(font);
}... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void setTextFont(Font font);",
"public void setTextFont(Font font)\n {\n setFont(font);\n }",
"private void setFont() {\n\t}",
"public void setFont(Font value) {\r\n this.font = value;\r\n }",
"private void setFont() {\n try {\n setFont(Font.loadFont(new FileInputS... | [
"0.8643808",
"0.86431515",
"0.8478008",
"0.8330346",
"0.82784927",
"0.82261187",
"0.81693804",
"0.81321204",
"0.8085237",
"0.8078026",
"0.80384004",
"0.7945584",
"0.7893422",
"0.7892654",
"0.7837111",
"0.7827461",
"0.7821644",
"0.78093415",
"0.77744675",
"0.7754431",
"0.77242... | 0.0 | -1 |
Sets the text color | public S<T> color(int color){
if(t instanceof TextView){
((TextView)t).setTextColor(color);
}
if(t instanceof Button){
((Button)t).setTextColor(color);
}
if(t instanceof EditText){
((EditText)t).setTextColor(color);
}
if(t instanceof RadioButton)
{
((RadioButton)t).setTextColor(color);
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void setTextColor(String textColor);",
"public void setTextColor( Color txtColor ) {\r\n textColor = txtColor;\r\n }",
"public void setTextColor(RMColor aColor) { }",
"public void setTextColor(Color textColor) {\r\n this.textColor = textColor;\r\n }",
"public void setTextColor(in... | [
"0.8710212",
"0.8435324",
"0.82065505",
"0.8148011",
"0.811387",
"0.8094158",
"0.7910287",
"0.7803735",
"0.7570974",
"0.7558221",
"0.7368415",
"0.73388386",
"0.71964025",
"0.71922857",
"0.7156025",
"0.71489173",
"0.71464145",
"0.7025757",
"0.7014115",
"0.6937744",
"0.69232345... | 0.0 | -1 |
Sets the text color | public S<T> color(String color){
try{
int c = Color.parseColor(color);
color(c);
}catch(IllegalArgumentException ex){
ex.printStackTrace();
}
return this;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void setTextColor(String textColor);",
"public void setTextColor( Color txtColor ) {\r\n textColor = txtColor;\r\n }",
"public void setTextColor(RMColor aColor) { }",
"public void setTextColor(Color textColor) {\r\n this.textColor = textColor;\r\n }",
"public void setTextColor(in... | [
"0.87110335",
"0.8436278",
"0.820767",
"0.8148795",
"0.81145936",
"0.80930483",
"0.7910329",
"0.78040653",
"0.7571555",
"0.7558996",
"0.73693985",
"0.73391896",
"0.71974796",
"0.71928316",
"0.715665",
"0.7149283",
"0.71455866",
"0.70263773",
"0.70148796",
"0.69380885",
"0.692... | 0.0 | -1 |
Sets the items of a simple list item | public S<T> list(String[] data){
if(t instanceof ListView){
((ListView) t).setAdapter(new ArrayAdapter<String>(activity,
android.R.layout.simple_list_item_1, android.R.id.text1, data));
}
return this;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void setListItems(List<String> lit) { mItems = lit; }",
"public abstract void setList(List<T> items);",
"public void setList(List<ListItem> list) {\n this.items = list;\n\n Log.d(\"ITEMs\",items+\"\");\n }",
"public void setItems(List<T> value) {\n getElement().setItems(SerDes.... | [
"0.7381074",
"0.71549267",
"0.69285935",
"0.67123234",
"0.6677264",
"0.6626705",
"0.66192406",
"0.6566508",
"0.6486182",
"0.6439152",
"0.6414164",
"0.633953",
"0.63346267",
"0.63336396",
"0.6323549",
"0.6320997",
"0.63123554",
"0.6294425",
"0.62833005",
"0.62249184",
"0.62098... | 0.0 | -1 |
Sets the items of a simple list item | public S<T> list(List<String> data){
list(data.toArray(new String[data.size()]));
return this;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void setListItems(List<String> lit) { mItems = lit; }",
"public abstract void setList(List<T> items);",
"public void setList(List<ListItem> list) {\n this.items = list;\n\n Log.d(\"ITEMs\",items+\"\");\n }",
"public void setItems(List<T> value) {\n getElement().setItems(SerDes.... | [
"0.7382455",
"0.71554834",
"0.69306636",
"0.6714284",
"0.66768205",
"0.6625145",
"0.6618065",
"0.65642387",
"0.64871657",
"0.64388824",
"0.6413593",
"0.6339974",
"0.6334531",
"0.63327146",
"0.6322471",
"0.6318852",
"0.6311788",
"0.6296318",
"0.6281478",
"0.6223638",
"0.620848... | 0.0 | -1 |
Sets the items of a costume list view The ids in the view have to have the same names as the attributes of the list of objects | public S<T> list(String idView,List<Object> objects){
idView =idView.intern();
T aux = t;
int resID = activity.getResources().getIdentifier(idView, "layout", activity.getPackageName());
ListView list = (ListView) t;
SAdapter a = new SAdapter(resID,objects);
list.setAdapter(a);
t = aux;
return this... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void setFoods(List<Food> list){\n foodList = list;\n notifyDataSetChanged();\n }",
"public void setList(List<ListItem> list) {\n this.items = list;\n\n Log.d(\"ITEMs\",items+\"\");\n }",
"private void setOnListView() {\n\t\tlist.setItems(obs);\n\t\tlist.setCellFactory(n... | [
"0.6652731",
"0.64927244",
"0.64141357",
"0.636425",
"0.6252245",
"0.6228278",
"0.6216478",
"0.61468863",
"0.6127887",
"0.610888",
"0.60919386",
"0.6070253",
"0.60613066",
"0.6009756",
"0.60070294",
"0.59878397",
"0.5982926",
"0.5949762",
"0.594876",
"0.5922397",
"0.5917354",... | 0.64508104 | 2 |
Go to an other activity (have to be in the same package) | public S<T> to(String name){
name = name.trim();
Intent i = new Intent();
String pkg = activity.getApplicationContext().getPackageName();
i.setComponent(new ComponentName(pkg,pkg+"."+name));
activity.startActivity(i);
return this;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private void gotoOtherActivity() {\n finish();\n }",
"public void GoToScenario2 (View view) {\n Intent GoToScenario2Intent = new Intent(getApplicationContext(), Scenario2_01.class);\n startActivity(GoToScenario2Intent);\n }",
"@Override\n public void jumpActivity() {\n star... | [
"0.8249007",
"0.73800105",
"0.73419976",
"0.7321908",
"0.73170257",
"0.7287168",
"0.72725385",
"0.72463536",
"0.7147704",
"0.7130585",
"0.7128415",
"0.7122615",
"0.71222425",
"0.71097565",
"0.7098673",
"0.70901436",
"0.70886797",
"0.7085799",
"0.7069496",
"0.7059177",
"0.7049... | 0.0 | -1 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.