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 |
|---|---|---|---|---|---|---|
get project commit count by pgid | public int getProjectCommitCount(int pgId) {
int commitNumber = 0;
String sql = "SELECT commitNumber from Project_Commit_Record a where (a.commitNumber = "
+ "(SELECT max(commitNumber) FROM Project_Commit_Record WHERE auId = ?));";
try (Connection conn = database.getConnection();
PreparedStatement preStmt = conn.prepareStatement(sql)) {
preStmt.setInt(1, pgId);
try (ResultSet rs = preStmt.executeQuery()) {
while (rs.next()) {
commitNumber = rs.getInt("commitNumber");
}
}
} catch (SQLException e) {
e.printStackTrace();
}
return commitNumber;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public int getCommitStatusbyPgid(int pgid) {\n int status = 0;\n String sql = \"SELECT status FROM Project_Commit_Record WHERE pgId=?\";\n try (Connection conn = database.getConnection();\n PreparedStatement preStmt = conn.prepareStatement(sql)) {\n preStmt.setInt(1, pgid);\n try (ResultS... | [
"0.72097373",
"0.6727879",
"0.6326183",
"0.6220769",
"0.6044316",
"0.5843508",
"0.5618758",
"0.55959225",
"0.55685633",
"0.55685633",
"0.55486363",
"0.54852796",
"0.54681027",
"0.54681027",
"0.5462715",
"0.5461013",
"0.544514",
"0.54185617",
"0.54146796",
"0.5412097",
"0.5405... | 0.76562715 | 0 |
delete built record of specific pgid | public void deleteProjectRecord(int pgId) {
String sql = "DELETE FROM Project_Commit_Record WHERE pgid=?";
try (Connection conn = database.getConnection();
PreparedStatement preStmt = conn.prepareStatement(sql)) {
preStmt.setInt(1, pgId);
preStmt.executeUpdate();
} catch (SQLException e) {
e.printStackTrace();
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"int deleteByPrimaryKey(GrpTagKey key);",
"int deleteByPrimaryKey(GpPubgPlayer record);",
"@Override\r\n\tpublic boolean deleteImageRecordBuildingInfo(Long id) {\n\t\treturn delete(get(id));\r\n\t}",
"public boolean deleteBuild(int buildId);",
"int deleteByPrimaryKey(SeGroupKey key);",
"public void desist... | [
"0.6578889",
"0.6395484",
"0.62015796",
"0.6175528",
"0.61494404",
"0.61289066",
"0.59852505",
"0.59786904",
"0.59372044",
"0.58927107",
"0.58728665",
"0.58308375",
"0.5771483",
"0.5771263",
"0.57625294",
"0.57625294",
"0.57625294",
"0.5761882",
"0.57582283",
"0.5728269",
"0.... | 0.692973 | 0 |
get Project_Commit_Status id by pgId | public int getCommitStatusbyPgid(int pgid) {
int status = 0;
String sql = "SELECT status FROM Project_Commit_Record WHERE pgId=?";
try (Connection conn = database.getConnection();
PreparedStatement preStmt = conn.prepareStatement(sql)) {
preStmt.setInt(1, pgid);
try (ResultSet rs = preStmt.executeQuery()) {
while (rs.next()) {
status = rs.getInt("status");
}
}
} catch (SQLException e) {
e.printStackTrace();
}
return status;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public String getProjectCommitRecordStatus(int pgId, int commitNumber) {\n String status = \"\";\n String query = \"SELECT status FROM Project_Commit_Record where pgId = ? and limit ?,1\";\n\n try (Connection conn = database.getConnection();\n PreparedStatement preStmt = conn.prepareStatement(query... | [
"0.76888734",
"0.7161853",
"0.6979626",
"0.6968089",
"0.65584874",
"0.6271812",
"0.6247926",
"0.61093336",
"0.60236543",
"0.5992512",
"0.59121335",
"0.5894257",
"0.5834116",
"0.5814489",
"0.5801639",
"0.5739246",
"0.5726008",
"0.57129127",
"0.5697746",
"0.5697746",
"0.569724"... | 0.78143907 | 0 |
Omitted for the purpose of this sample. | @Override
public void verify(@NotNull LedgerTransaction tx) throws IllegalArgumentException {
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n public void perish() {\n \n }",
"public final void mo51373a() {\n }",
"@Override\n\tpublic void sacrifier() {\n\t\t\n\t}",
"@Override\n protected void initialize() {\n }",
"@Override\n protected void initialize() {\n }",
"@Override\n protected void initialize() {\n }... | [
"0.63463485",
"0.6227791",
"0.6173956",
"0.6150231",
"0.6150231",
"0.6150231",
"0.6150231",
"0.6150231",
"0.6150231",
"0.61386526",
"0.6105178",
"0.60873306",
"0.6056974",
"0.6025473",
"0.60204667",
"0.601142",
"0.6009426",
"0.6008717",
"0.60044295",
"0.60044295",
"0.5997351"... | 0.0 | -1 |
int containing the data /////////////////////////////////////////////////////////////////////////////////////// /////////////////////////////////////////////////////////////////////////////////////// Sets the bitMap info from other given bitmap (it computes an logical OR with the two bit maps) | public void incorporateBitMapInfo(final BitMap otherFlags) {
_bitMap |= otherFlags.getBitMap(); // logical OR
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private void createBitMap() {\n bitMap = bitMap.copy(bitMap.getConfig(), true);\n Canvas canvas = new Canvas(bitMap);\n Paint paint = new Paint();\n paint.setAntiAlias(true);\n paint.setColor(Color.BLACK);\n paint.setStyle(Paint.Style.STROKE);\n paint.setStrokeWidth... | [
"0.6296792",
"0.6092813",
"0.56555396",
"0.55930173",
"0.55332136",
"0.551857",
"0.5504898",
"0.5478155",
"0.5416372",
"0.53910035",
"0.53768295",
"0.53613216",
"0.5324324",
"0.5277395",
"0.5264292",
"0.5244035",
"0.5243279",
"0.5242721",
"0.5230205",
"0.51891065",
"0.5167166... | 0.69925326 | 0 |
/////////////////////////////////////////////////////////////////////////////////////// INDIVIDUAL BIT SET/CLEAR METHODS /////////////////////////////////////////////////////////////////////////////////////// Gets a bit value | protected boolean bitAt(final int bitIndex) {
return _getBit(_bitMap,
(Numbers.INTEGER_WIDTH*8-1)-bitIndex-1);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public int getBit() {\r\n return _bit;\r\n }",
"int getBitAsInt(int index);",
"boolean getBit(int index);",
"public static byte getMybit(byte val, int pos){\n return (byte) ((val >> pos) & 1);\n }",
"public static int getBit(boolean value) {\n return value ? Constants.BIT_TRUE : Con... | [
"0.7499118",
"0.72164667",
"0.69751036",
"0.65721726",
"0.6542374",
"0.65034246",
"0.6445254",
"0.64418143",
"0.6440744",
"0.64184487",
"0.6394832",
"0.6336797",
"0.63205934",
"0.6320578",
"0.63032156",
"0.62622017",
"0.62340456",
"0.62268716",
"0.62060857",
"0.6202973",
"0.6... | 0.5440121 | 87 |
Sets a bit value | protected void setBitAt(final int bitIndex) {
_bitMap = _setBit(_bitMap,
(Numbers.INTEGER_WIDTH*8-1)-bitIndex-1);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"void setBit(int index, int value);",
"void setBit(int index, boolean value);",
"public void setBit(int pos, int bit) {\r\n\t\tflagBits[pos] = bit;\r\n\t}",
"public static byte set(byte value, int bit){\n return (byte)(value|(1<<bit));\n }",
"public void set()\n\t{\n\t\tbitHolder.setValue(1);\n\t}... | [
"0.85435253",
"0.8146871",
"0.7749686",
"0.77174455",
"0.76097465",
"0.736009",
"0.73015225",
"0.7235396",
"0.72089046",
"0.7159874",
"0.70825195",
"0.7062525",
"0.7019005",
"0.701636",
"0.6979116",
"0.69367516",
"0.689943",
"0.6881553",
"0.68800133",
"0.68534976",
"0.6840121... | 0.6903008 | 16 |
Resets a bit value | protected void clearBitAt(final int bitIndex) {
_bitMap = _clearBit(_bitMap,
(Numbers.INTEGER_WIDTH*8-1)-bitIndex-1);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void set()\n\t{\n\t\tbitHolder.setValue(1);\n\t}",
"public void resetZero() {\n\t\tset((byte) (get() & ~(1 << 7)));\n\t}",
"public void reset(){\r\n \tdefaultFlag = false;\r\n }",
"void setBit(int index, int value);",
"public void toggle()\n\t{\n\t\tbitHolder.setValue(Math.abs(bitHolder.getVal... | [
"0.7196003",
"0.7092189",
"0.6903397",
"0.6783588",
"0.6768458",
"0.66250587",
"0.6598657",
"0.6569415",
"0.653997",
"0.64374",
"0.64333826",
"0.64333117",
"0.6405229",
"0.6372277",
"0.63512933",
"0.63132346",
"0.63037777",
"0.62768614",
"0.62309617",
"0.62298095",
"0.6227540... | 0.61029404 | 27 |
/////////////////////////////////////////////////////////////////////////////////////// GLOBAL SET/CLEAR /////////////////////////////////////////////////////////////////////////////////////// Sets all bit values | protected void setAll() {
for (int i=0; i <= (Numbers.INTEGER_WIDTH*8-2); i++) {
this.setBitAt(i);
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private void checkResetAllRegsAndFlags() {\r\n\t\t//for(int i = 1026; i <= 1028; i++ ) {\r\n\t\tSystem.out.println(\"Checking x val\"+sim40.memory[Simulator.XREG_ADDRESS]);\r\n\t\t\r\n\t\tcheckResetRegisterFlag(Simulator.ACCUMULATOR_ADDRESS);\r\n\t\t\tcheckResetRegisterFlag(Simulator.XREG_ADDRESS);\r\n\t\t\tcheckR... | [
"0.6410575",
"0.6334325",
"0.633225",
"0.5951903",
"0.5892656",
"0.58790797",
"0.5841329",
"0.5836113",
"0.579789",
"0.57798886",
"0.5755142",
"0.57436824",
"0.57350075",
"0.57126135",
"0.5707548",
"0.5696938",
"0.56846696",
"0.5664543",
"0.5627552",
"0.5614348",
"0.56103075"... | 0.7255037 | 0 |
Resets all bit values | protected void clearAll() {
for (int i=0; i <= (Numbers.INTEGER_WIDTH*8-2); i++) {
this.clearBitAt(i);
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"protected void setAll() {\n for (int i=0; i <= (Numbers.INTEGER_WIDTH*8-2); i++) {\n \tthis.setBitAt(i);\n } \t\n }",
"public void clearBits()\r\n {\r\n clear();\r\n }",
"private void resetMask() {\n maskArray = new int [][]{\n {0,0,0,0},\... | [
"0.75395966",
"0.7177629",
"0.71522295",
"0.6952756",
"0.69500446",
"0.69292533",
"0.6885775",
"0.6878558",
"0.68730664",
"0.6835968",
"0.68159145",
"0.6747461",
"0.67203325",
"0.67157423",
"0.67050683",
"0.6634048",
"0.6578415",
"0.6545353",
"0.649935",
"0.6469026",
"0.64137... | 0.7475022 | 1 |
/////////////////////////////////////////////////////////////////////////////////////// BIT MASKING /////////////////////////////////////////////////////////////////////////////////////// Gets a mask to get an int's bit value | private static int _getMask(final int bitIndex) {
return (1 << bitIndex);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private static int mask(int bit) {\n return MSB >>> bit;\n }",
"public BitSet getMask() {\r\n return mask;\r\n }",
"public static int getBitMask(int x) {\n return (0x01 << x);\n }",
"public static int getBitMask(int[] x) {\n int rc = 0;\n for(int xVal : x) {\n ... | [
"0.70546216",
"0.6961861",
"0.69495034",
"0.6805715",
"0.6784887",
"0.67085844",
"0.66559756",
"0.65930176",
"0.65156776",
"0.6451214",
"0.64150894",
"0.6190942",
"0.61833864",
"0.6160964",
"0.6018434",
"0.6015732",
"0.598213",
"0.595931",
"0.58734393",
"0.584403",
"0.5835323... | 0.6491946 | 9 |
Sets an int's bit and returns the new int | public static int _setBit(final int originalInt,final int bitIndex) {
return originalInt | _getMask(bitIndex);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public static int setBit(final int intValue, final Bits bit) {\n return setFlag(intValue, bit, true);\n }",
"void setBit(int index, int value);",
"public void set(int value)\n\t{\n\t\tbitHolder.setValue(value);\n\t}",
"static int setBit(int num, int pos) {\n\t\t\treturn num | (1<<pos);\n\t\t}",
"public... | [
"0.7556647",
"0.75020397",
"0.70133364",
"0.70085955",
"0.688728",
"0.68754154",
"0.68648213",
"0.6787716",
"0.6769204",
"0.6703809",
"0.6671215",
"0.65581864",
"0.6522445",
"0.64760745",
"0.64220357",
"0.6382782",
"0.6274559",
"0.62397027",
"0.62317",
"0.6227509",
"0.6215315... | 0.7221551 | 2 |
Resets an int's bit and returns the new int | public static int _clearBit(final int originalInt,final int bitIndex) {
return originalInt & ~_getMask(bitIndex);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void resetZero() {\n\t\tset((byte) (get() & ~(1 << 7)));\n\t}",
"public static int _setBit(final int originalInt,final int bitIndex) {\n return originalInt | _getMask(bitIndex);\n }",
"public static int clearBit(int num, int i) {\n int mask = ~(1 << i);\n return num & mask;\n }",
"pub... | [
"0.65232813",
"0.64333403",
"0.61567646",
"0.61094004",
"0.6106405",
"0.6029041",
"0.59902966",
"0.594358",
"0.5937",
"0.59243244",
"0.59106344",
"0.5891002",
"0.5853839",
"0.5850886",
"0.58491296",
"0.5809278",
"0.5788916",
"0.57883465",
"0.5786367",
"0.57710886",
"0.5751155... | 0.6391264 | 2 |
Returns an int's bit value | public static boolean _getBit(final int integer,final int bitIndex) {
return ((integer & _getMask(bitIndex)) != 0);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"int getBitAsInt(int index);",
"public static int getBit(boolean value) {\n return value ? Constants.BIT_TRUE : Constants.BIT_FALSE;\n }",
"public int getBit() {\r\n return _bit;\r\n }",
"boolean getBit(int index);",
"public int bitAt(int i) {\n // PUT YOUR CODE HERE\n }",
"pri... | [
"0.80813444",
"0.7328916",
"0.7324428",
"0.7241061",
"0.71657276",
"0.699315",
"0.6892306",
"0.6796142",
"0.67024684",
"0.6664218",
"0.66375494",
"0.6588582",
"0.6567528",
"0.65455246",
"0.6523341",
"0.65045834",
"0.64842844",
"0.6422738",
"0.6316979",
"0.6267726",
"0.6257089... | 0.6130962 | 25 |
Created by E003690 on 3/15/2018. | public interface InventoryPageOR {
String inventoryPage = "xpath= //div[@class='NavMenuTitle']//span[text()='Inventory']";
String aD_type = "xpath= //select[contains(@id,'AdType_DropDownList1')]";
String mediaGroupField = "xpath= //select[contains(@id,'MediumGroup_DropDownList1')]";
String Mediabox = "xpath= //select[contains(@id,'Media_ListBox1')]";
String selection = "xpath= //select[contains(@id, 'Section_ListBox1')]";
String inventory_placement = "xpath= //select[contains(@id, 'Inventory_ListBox1')]";
String period = "xpath= //select[contains(@id,'BkingPeriod_ddlPeriod')]";
String pages = "xpath= //input[contains(@id,'blInventoryView_1')]";
String matrix = "xpath= //input[@id='ctl00_cphMain_srch03_rblInventoryView_0']";
String list = "css= #ctl00_cphMain_srch02_rblInventoryView_2";
String Adsize = "xpath= //select[contains(@id,'AdSize_DropDownList1')]";
String get_inventory = "xpath= //input[contains(@id,'btnGetInventory')]";
String mediatype = "xpath= //select[@id='ctl00_cphMain_srch01_lbMedia_ListBox1']//option[@value='GAZE']";
String newSearch = "css= input[value='New Search']";
String screenlock = "css= .inv_wait";
String selectplusiconforbydate = "xpath= //td[@class='%s']/../..//input[@class='InvResultCol Select linkButton new']";
String housingGarden = "css= tr [title = 'www.houseandgarden.com']";
String startAndEnddate = "xpath= //tr[@title = 'www.houseandgarden.com']/..//tr[@title='www.houseandgarden.com - Run of Site']/td[%d]";
String startAndEnddateofbridge = "xpath= //tr[@title = 'www.bridesmagazine.com']/..//tr[@title='www.bridesmagazine.com - Run of Site']/td[%d]";
String verifyIteminCart = "css= #tabs-li-cart a#acart";
String addtoCart = "xpath= //li//a[contains(text(), 'Add to cart')]";
String torange = "css= #ctl00_cphMain_srch02_ucBkingPeriod_dteRangeTo_iwdcDate_input";
String customer = "css= #ctl00_cphMain_ucCart_btnCustomer";
String companyName = "css= #ctl00_cphMain_ucCustomer_ctlModalBuyerCompany_btnModal";
String contactName = "css= #ctl00_cphMain_ucCustomer_ctlModalBuyerContact_btnModal";
String companyNameField = "css= #Search_FieldSelect0_txtValue1";
String searchButton = "css= #Search_GoButton";
String selectCompany = "css= .ig_5aac757b_rcb1112.SelectionSearch.btnOpenSite";
String selectContact = "css= .ig_5aac757b_rcb1112.SelectionSearch.btnOpenContact";
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public final void mo51373a() {\n }",
"@Override\n public void perish() {\n \n }",
"private stendhal() {\n\t}",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"@Override\n\tprotected void getExras() {\n\n\t}",
"@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}",
"@Override\n\tpubli... | [
"0.5865982",
"0.5828907",
"0.5669976",
"0.5563989",
"0.55215126",
"0.5511393",
"0.5498422",
"0.54899657",
"0.54899657",
"0.5472931",
"0.54459053",
"0.5442565",
"0.54342717",
"0.54167277",
"0.5398931",
"0.53987837",
"0.5395283",
"0.5391924",
"0.5380419",
"0.5351675",
"0.535022... | 0.0 | -1 |
write your code here | public static void main(String[] args) {
Individuos individuo1 = new Individuos("Mike Courts",1511111111,33786890,"Doblas 528");
Empresa empresa1 = new Empresa("Tiarg", 1522222222, 3333333, 20, "Belgrano");
Diario MonroeStreetJournal = new Diario();
MonroeStreetJournal.agregarReceptor(individuo1);
MonroeStreetJournal.agregarReceptor(empresa1);
MonroeStreetJournal.notificarReceptores();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void logic(){\r\n\r\n\t}",
"public static void generateCode()\n {\n \n }",
"@Override\n\tprotected void logic() {\n\n\t}",
"private static void cajas() {\n\t\t\n\t}",
"void pramitiTechTutorials() {\n\t\n}",
"@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}",
"@Override\r\n\tpub... | [
"0.61019534",
"0.6054925",
"0.58806974",
"0.58270746",
"0.5796887",
"0.56999695",
"0.5690986",
"0.56556827",
"0.5648637",
"0.5640487",
"0.56354505",
"0.56032085",
"0.56016207",
"0.56006724",
"0.5589654",
"0.5583692",
"0.55785793",
"0.55733466",
"0.5560209",
"0.55325305",
"0.5... | 0.0 | -1 |
add item to Card with Card.addtoCard method. | @Override
public void onClick(View v)
{
Card.addtoCard(new CardItem(content.get(position).getName(),
content.get(position).getDescription(),
content.get(position).getPrice(),(long) 1,"None",
content.get(position).getPrice()));
Toast.makeText(RecycleViewAdapter.this.mContext,"Added to Cart",Toast.LENGTH_LONG).show();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void add() {\n\t\tcart.add(item.createCopy());\n\t}",
"public void add(Card card) {\n this.cards.add(card);\n }",
"public void addCard(Card c){\n cards.add(c);\n }",
"public void addCard(Card c)\n {\n cards.add(c);\n }",
"public void addCard(Card card) {\r\n\t\tcards.add(c... | [
"0.770966",
"0.76953167",
"0.76347184",
"0.7455386",
"0.74519825",
"0.736542",
"0.73645097",
"0.73603123",
"0.7352093",
"0.73485047",
"0.7298502",
"0.725168",
"0.72446144",
"0.7222056",
"0.71865594",
"0.715961",
"0.7146977",
"0.71120346",
"0.7095201",
"0.70466775",
"0.7039633... | 0.7311048 | 10 |
/ NOTE: Unfortunately, in MyBatis it's not possible to execute batch and nonbatch operations in single SqlSession. To support this scenario, we have to create completely new SqlSessionFactoryBean and completely new SqlSession. Surprisingly, this does not necessarily mean that the batch and nonbatch operations will be executed in different transactions (as we would expect) we tested this configuration using scenario 8. and it turned out that the bot nonbatch and batch operations were run using same connection and in same transaction. I guess this has something to do with how connection is obtained by MyBatis from dataSource... | @Bean
@Qualifier("batch-operations")
@SuppressWarnings("SpringJavaAutowiringInspection")
public SqlSession myBatisBatchOperationsSession(DataSource dataSource) throws Exception {
SqlSessionFactoryBean sqlSessionFactoryBean = new SqlSessionFactoryBean();
sqlSessionFactoryBean.setDataSource(dataSource);
sqlSessionFactoryBean.setConfigLocation(new ClassPathResource("mybatis/mybatis-config.xml"));
return new SqlSessionTemplate(sqlSessionFactoryBean.getObject(), ExecutorType.BATCH);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void testBatchUpdate() {\n template.getJdbcOperations().batchUpdate(new String[]{websource.method2()});\n\n //Test SimpleJdbcOperations execute\n template.getJdbcOperations().execute(websource.method2());\n }",
"@Test\n public void testBatchMerge() throws Exception {\n fi... | [
"0.61462516",
"0.5897025",
"0.58865416",
"0.5821807",
"0.58028346",
"0.5702769",
"0.56041515",
"0.5542329",
"0.5486748",
"0.54666483",
"0.53959924",
"0.535451",
"0.5353445",
"0.5352723",
"0.5339169",
"0.531659",
"0.5308282",
"0.52662265",
"0.52597094",
"0.52530783",
"0.524754... | 0.778603 | 0 |
/ JADX INFO: super call moved to the top of the method (can break code semantics) | KeyguardMediaController$attach$1(KeyguardMediaController keyguardMediaController) {
super(1);
this.this$0 = keyguardMediaController;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void method_6349() {\r\n super.method_6349();\r\n }",
"public void method_1449() {\r\n super.method_1449();\r\n }",
"public void method_1449() {\r\n super.method_1449();\r\n }",
"public void method_1449() {\r\n super.method_1449();\r\n }",
"protected void method_3848() {\... | [
"0.7415376",
"0.7120564",
"0.7120564",
"0.7120564",
"0.71153504",
"0.70223135",
"0.7006699",
"0.6959695",
"0.69354844",
"0.68295795",
"0.6789057",
"0.6759874",
"0.6727165",
"0.6727165",
"0.6680012",
"0.6670413",
"0.6636899",
"0.66286534",
"0.6619911",
"0.6605483",
"0.6603786"... | 0.0 | -1 |
/ Return type fixed from 'java.lang.Object' to match base method / JADX DEBUG: Method arguments types fixed to match base method, original types: [java.lang.Object] | @Override // kotlin.jvm.functions.Function1
public /* bridge */ /* synthetic */ Unit invoke(Boolean bool) {
invoke(bool.booleanValue());
return Unit.INSTANCE;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public abstract String mo83558a(Object obj);",
"public abstract void mo1184a(Object obj);",
"public Type[] getArgumentTypes() {\n/* 236 */ return Type.getArgumentTypes(this.desc);\n/* */ }",
"public static void method(Object obj){\n\t System.out.println(\"method with param type - Object\");\n\t... | [
"0.61152714",
"0.59286815",
"0.591603",
"0.5910676",
"0.5897522",
"0.5867401",
"0.5866546",
"0.58606243",
"0.5844676",
"0.58324814",
"0.5832049",
"0.58095205",
"0.5776685",
"0.57678354",
"0.573801",
"0.57158506",
"0.5713926",
"0.5692902",
"0.56865025",
"0.5650688",
"0.5647458... | 0.0 | -1 |
Validando posibles respuestas del webservice | @Override
public void onResponse(Call<Apod> call, Response<Apod> response) {
if(response != null && (response.code() != 500 || response.code() != 500 || response.body() != null)) {
//Asignamos la información del Apod recibido a los controles y variables de clase
if (response.body().getMediaType().equals("image")) { //Si es imagen
//Url de la foto
urlImageApod = response.body().getUrl();
Picasso.with(getActivity()).load(response.body().getUrl()).into(imageApod);
isVideo = false;
} else { //Si es video
urlVideo = response.body().getUrl();
imageApod.setImageResource(R.drawable.play);
isVideo = true;
}
tvDate.setText(response.body().getDate());
tvTitle.setText(response.body().getTitle());
tvExplanation.setText(response.body().getExplanation());
//No siempre viene con copyright
String copyright = TextUtils.isEmpty(response.body().getCopyright()) ? "" :
response.body().getCopyright();
tvCopyright.setText(copyright);
//Construimos el objeto apod por si el usuario decide agregarlo a favoritos
modelApod = new Apod();
modelApod.setCopyright(copyright);
modelApod.setDate(response.body().getDate());
modelApod.setExplanation(response.body().getExplanation());
modelApod.setHdurl(response.body().getHdurl());
modelApod.setMediaType(response.body().getMediaType());
modelApod.setServiceVersion(response.body().getServiceVersion());
modelApod.setTitle(response.body().getTitle());
modelApod.setUrl(response.body().getUrl());
}
else{
Toast.makeText(getActivity(),getString(R.string.fragApod_msgNoInformation), Toast.LENGTH_LONG).show();
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"ValidationResponse validate();",
"protected abstract boolean isResponseValid(SatelMessage response);",
"@Test\n\tpublic void performRequestValidation() throws Exception {\n\n\t\tString responseBody = TestUtils.getValidResponse();\n\n\t\ttry {\n\t\t\t@SuppressWarnings(\"unused\")\n\t\t\tResponseEntity<ResponseW... | [
"0.6596733",
"0.64637274",
"0.6384748",
"0.6306151",
"0.6257743",
"0.6215266",
"0.62139595",
"0.6163666",
"0.61501634",
"0.5978409",
"0.5963314",
"0.5952333",
"0.58793736",
"0.58580333",
"0.5855422",
"0.58508986",
"0.5843005",
"0.5826288",
"0.5769802",
"0.5769375",
"0.5753739... | 0.0 | -1 |
endregion region Clicks de los controles | @OnClick(R.id.fragApod_btnSelectDate)
public void onClickBtnSelectDate(){
DatePickerDialog datePickerDialog = new DatePickerDialog(getActivity(),
android.R.style.Theme_DeviceDefault_Light_Panel,
new DatePickerDialog.OnDateSetListener() {
@Override
public void onDateSet(DatePicker view, int year, int monthOfYear, int dayOfMonth) {
//Le damos el formato requerido a la fecha seleccionada
date = new StringBuilder();
date.append(year).append("-");
if((monthOfYear+1) < 10) date.append("0");
date.append(monthOfYear+1).append("-");
if(dayOfMonth < 10) date.append("0");
date.append(dayOfMonth);
//LLamamos al método que establece su callback
apodServiceEnqueue(apodService);
}
}, iYear, iMonth, iDay);
datePickerDialog.show();
//datePickerDialog.setTitle(getString(R.string.fragApod_msgSelectDate));
//Sólo puede seleccionar hasta la fecha actual
datePickerDialog.getDatePicker().setMaxDate(calendar.getTimeInMillis());
//Le restamos 16 años a la fecha actual para ponerla como fecha mínima de selección
Calendar calendarTemp = Calendar.getInstance();
calendarTemp.add(calendar.YEAR,-16);
datePickerDialog.getDatePicker().setMinDate(calendarTemp.getTimeInMillis());
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n\t\t\tpublic void mouseClicked(MouseEvent e) {\n\t\t\t\tSystem.out.println(\"vai ficar clikando ai a toa? PATETA\");\n\t\t\t\t\n\t\t\t}",
"@Override\n\tprotected void OnClick() {\n\t\t\n\t}",
"@Override\n public void mouseClicked(MouseEvent e) {\n if (e.getClickCount()==1) {\n t... | [
"0.7015495",
"0.6822412",
"0.67862374",
"0.67744887",
"0.67744887",
"0.67744887",
"0.67744887",
"0.67744887",
"0.67744887",
"0.67744887",
"0.67744887",
"0.67744887",
"0.67744887",
"0.67744887",
"0.67336744",
"0.67336744",
"0.67325383",
"0.6712366",
"0.6700895",
"0.66892767",
... | 0.0 | -1 |
Le damos el formato requerido a la fecha seleccionada | @Override
public void onDateSet(DatePicker view, int year, int monthOfYear, int dayOfMonth) {
date = new StringBuilder();
date.append(year).append("-");
if((monthOfYear+1) < 10) date.append("0");
date.append(monthOfYear+1).append("-");
if(dayOfMonth < 10) date.append("0");
date.append(dayOfMonth);
//LLamamos al método que establece su callback
apodServiceEnqueue(apodService);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public String getFechatxt(Date d){\n \n try {\n String formato = selectorfecha.getDateFormatString();\n //Formato\n \n SimpleDateFormat sdf = new SimpleDateFormat(formato);\n String txtfechap = sdf.format(d);\n return txtfechap;\n } c... | [
"0.75304955",
"0.7104252",
"0.7076836",
"0.6800321",
"0.66098243",
"0.6496405",
"0.64584225",
"0.64417094",
"0.6395934",
"0.6340041",
"0.63043976",
"0.6299441",
"0.6264587",
"0.6215601",
"0.6209168",
"0.61648333",
"0.6104914",
"0.6067874",
"0.6060734",
"0.6037035",
"0.603666"... | 0.0 | -1 |
/El click en la imagen sirve para agregar el objeto Apod a favoritos | @OnLongClick(R.id.fragApod_image)
public boolean onLongClickImage(){
//Si es un video no lo puede poner en favoritos
if(isVideo){ return true; }
//Si no existe la foto en la lista de favoritos, se puede agregar
if(apodDataSource.getApod(modelApod.getTitle(),modelApod.getDate()) == null) {
new AlertDialog.Builder(getActivity())
.setTitle(getString(R.string.fragments_msgAddToFavorites))
.setMessage(String.format(getString(R.string.fragments_msgQuestionAdd), modelApod.getTitle()))
.setPositiveButton(android.R.string.ok, new DialogInterface.OnClickListener() {
@Override
public void onClick(DialogInterface dialog, int which) {
//Guardamos el objeto Apod en la base de datos
long result = apodDataSource.saveApod(modelApod);
if(result != -1) {
Toast.makeText(getActivity(), getString(R.string.fragments_msgSuccessfullyAdded),
Toast.LENGTH_SHORT).show();
}
}
}).setNegativeButton(android.R.string.no, new DialogInterface.OnClickListener() {
@Override
public void onClick(DialogInterface dialog, int which) {
}
}).setCancelable(false).create().show();
}
else{
Toast.makeText(getActivity(), getString(R.string.fragments_msgAlreadyExist),Toast.LENGTH_SHORT).show();
}
return true;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n public void onClick(View view) {\n helper = new DbHelper(context);\n //estrella click listener\n if (holder.estrella.getColorFilter() != null) {\n holder.estrella.clearColorFilter();\n ... | [
"0.57131046",
"0.55398613",
"0.5538047",
"0.55287886",
"0.5510591",
"0.55103",
"0.54515666",
"0.54336333",
"0.54327124",
"0.54306424",
"0.540607",
"0.53782123",
"0.53513783",
"0.5343504",
"0.5329559",
"0.5318278",
"0.5308448",
"0.5283166",
"0.528163",
"0.52439696",
"0.5241092... | 0.51406664 | 25 |
Guardamos el objeto Apod en la base de datos | @Override
public void onClick(DialogInterface dialog, int which) {
long result = apodDataSource.saveApod(modelApod);
if(result != -1) {
Toast.makeText(getActivity(), getString(R.string.fragments_msgSuccessfullyAdded),
Toast.LENGTH_SHORT).show();
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private void guardarEstadoObjetosUsados() {\n }",
"public OnibusDAO() {}",
"public SolicitudREST() {\n gson = new Gson();\n sdao= new SolicitudDAO();\n }",
"public interface ApiService {\n\n// @FormUrlEncoded\n// @POST(\"tambah_data.php\")\n// Call<ResponseBody> tambahData(@Field... | [
"0.58850485",
"0.5870742",
"0.58694583",
"0.57919097",
"0.5721462",
"0.5712907",
"0.5689811",
"0.56285745",
"0.5623539",
"0.5622863",
"0.55593663",
"0.5538484",
"0.55115885",
"0.55044156",
"0.5487428",
"0.54857284",
"0.5472048",
"0.5467789",
"0.5462875",
"0.5455567",
"0.54499... | 0.0 | -1 |
===================================================== Getters & Setters ===================================================== ============================================= Methods from/for SuperClass/Interface ============================================= | @Override
public void onLoadScene(OnLoadSceneCallBack pOnLoadSceneCallBack) {
//this.setOnAreaTouchListener(this);
super.onLoadScene(pOnLoadSceneCallBack);
VertexBufferObjectManager vertexBufferObjectManager = ResourceManager.getInstance().getBaseGameActivity().getVertexBufferObjectManager();
TexturePackTextureRegionLibrary menuTexturePackTextureRegionLibrary = ResourceManager.getInstance().getMenuSpriteSheetTexturePackTextureRegionLibrary();
// Panel
this.mPanel = new Rectangle((Constants.CAMERA_WIDTH - Constants.MENU_RESULT_WIDTH) * 0.5f, 0,
Constants.MENU_RESULT_WIDTH, Constants.CAMERA_HEIGHT, vertexBufferObjectManager);
this.mPanel.setColor(Color.BLACK);
// Level Cleared Text
this.mLevelClearedText = new Text(this.mPanel.getWidth() * 0.5f, Constants.MENU_RESULT_MARGIN_TOP,
ResourceManager.getInstance().getAngrybirdFont48(), "LEVEL CLEARED!",
new TextOptions(HorizontalAlign.CENTER),
vertexBufferObjectManager);
this.mLevelClearedText.setX((this.mPanel.getWidth() - this.mLevelClearedText.getWidth()) * 0.5f);
// ScoreText
this.mScoreText = new Text(this.mPanel.getWidth() * 0.5f, this.mPanel.getHeight() * 0.6f,
ResourceManager.getInstance().getAngrybirdFont48(), "0",
9,
vertexBufferObjectManager);
this.mScoreText.setX((this.mPanel.getWidth() - this.mScoreText.getWidth()) * 0.5f);
// Stars
ITiledTextureRegion centerStarTextureRegion = menuTexturePackTextureRegionLibrary.get(MenuConstants.CENTER_STAR_ID, 2, 1);
this.mCenterStarMenu = new TiledSprite((this.mPanel.getWidth() - centerStarTextureRegion.getWidth()) * 0.5f,
this.mLevelClearedText.getY() + this.mLevelClearedText.getHeight() + Constants.MENU_RESULT_LINE_HEIGHT,
centerStarTextureRegion, vertexBufferObjectManager);
this.mCenterStarMenu.setCurrentTileIndex(1);
ITiledTextureRegion leftStarTextureRegion = menuTexturePackTextureRegionLibrary.get(MenuConstants.LEFT_STAR_ID, 2, 1);
this.mLeftStarMenu = new TiledSprite(this.mCenterStarMenu.getX() - Constants.MENU_RESULT_ELEMENT_MARGIN - leftStarTextureRegion.getWidth(),
this.mCenterStarMenu.getY(),
leftStarTextureRegion, vertexBufferObjectManager);
this.mLeftStarMenu.setCurrentTileIndex(1);
ITiledTextureRegion rightStarTextureRegion = menuTexturePackTextureRegionLibrary.get(MenuConstants.RIGHT_STAR_ID, 2, 1);
this.mRighStarMenu = new TiledSprite(this.mCenterStarMenu.getX() + this.mCenterStarMenu.getWidth() + Constants.MENU_RESULT_ELEMENT_MARGIN,
this.mCenterStarMenu.getY(),
rightStarTextureRegion, vertexBufferObjectManager);
// Buttons
TextureRegion replayButtonTextureRegion = ResourceManager.getInstance().getButtonSpriteSheetTexturePackTextureRegionLibrary().get(ButtonConstants.BUTTON_REPLAY_ID);
Sprite replayButtonSprite = new Sprite((this.mPanel.getWidth() - replayButtonTextureRegion.getWidth()) * 0.5f,
Constants.CAMERA_HEIGHT - Constants.MENU_RESULT_MARGIN_BOTTOM - replayButtonTextureRegion.getHeight(),
replayButtonTextureRegion, vertexBufferObjectManager);
this.mRePlayButton = new BaseButton<Sprite>(replayButtonSprite.getX(), replayButtonSprite.getY(), 1.0f, replayButtonSprite) {
@Override
public void onButtonClick() {
hideScene();
GameLevelManager.getInstance().replayCurrentGameLevel();
}
};
TextureRegion menuButtonTextureRegion = ResourceManager.getInstance().getButtonSpriteSheetTexturePackTextureRegionLibrary().get(ButtonConstants.BUTTON_MENU_ID);
Sprite menuButtonSprite = new Sprite(this.mRePlayButton.getEntity().getX() - Constants.MENU_RESULT_ELEMENT_MARGIN - menuButtonTextureRegion.getWidth(),
this.mRePlayButton.getEntity().getY(),
menuButtonTextureRegion, vertexBufferObjectManager);
this.mMenuButton = new BaseButton<Sprite>(menuButtonSprite.getX(), menuButtonSprite.getY(), 1.0f, menuButtonSprite) {
@Override
public void onButtonClick() {
hideScene();
SceneManager.getInstance().showLevelSelectorScene();
}
};
TextureRegion nextLevelButtonTextureRegion = ResourceManager.getInstance().getButtonSpriteSheetTexturePackTextureRegionLibrary().get(ButtonConstants.BUTTON_NEXT_LEVEL_ID);
Sprite nextLevelButtonSprite = new Sprite(this.mRePlayButton.getEntity().getX() + this.mRePlayButton.getEntity().getWidth() + Constants.MENU_RESULT_ELEMENT_MARGIN,
this.mRePlayButton.getEntity().getY(),
nextLevelButtonTextureRegion, vertexBufferObjectManager);
this.mNextLevelButton = new BaseButton<Sprite>(nextLevelButtonSprite.getX(), nextLevelButtonSprite.getY(), 1.0f, nextLevelButtonSprite) {
@Override
public void onButtonClick() {
hideScene();
GameLevelManager.getInstance().showNextGameLevel();
}
};
HUD hud = ResourceManager.getInstance().getHUD();
hud.setOnAreaTouchListener(this);
hud.registerTouchArea(this.mMenuButton.getEntity());
hud.registerTouchArea(this.mRePlayButton.getEntity());
hud.registerTouchArea(this.mNextLevelButton.getEntity());
pOnLoadSceneCallBack.onLoadSceneFinish();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n\tprotected void getData() {\n\t\t\n\t}",
"@Override\n public void get() {}",
"@Override\r\n public String toString() {\n return super.toString();\r\n }",
"@Override\n public String toString () {\n return super.toString();\n }",
"@Override\n public String toString() {\n ... | [
"0.6455538",
"0.64109135",
"0.6297085",
"0.629325",
"0.62892604",
"0.6279314",
"0.62661266",
"0.62598616",
"0.6231143",
"0.6226371",
"0.6226371",
"0.6218203",
"0.62032634",
"0.62032634",
"0.62032634",
"0.62032634",
"0.61791146",
"0.6176102",
"0.6176102",
"0.6148694",
"0.61427... | 0.0 | -1 |
TODO Autogenerated method stub | @Override
public void onTimePassed(TimerHandler pUpdateHandler) {
Debug.e("Time pass");
tempScore += ScoreConstants.UNIT_SCORE;
mScoreText.setText(tempScore + "");
mScoreText.setX((mPanel.getWidth() - mScoreText.getWidth()) * 0.5f);
if(tempScore >= GameScoreManager.getInstance().getTotalScore()){
mScoreText.setText(GameScoreManager.getInstance().getTotalScore() + "");
SfxManager.getInstance().stopSlotMachineSound();
SfxManager.getInstance().playLevelClearedSound();
ResourceManager.getInstance().getBaseGameActivity().getEngine().unregisterUpdateHandler(pUpdateHandler);
}
} | {
"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: Warning this method won't work in the case the id fields are not set | @Override
public boolean equals(Object object) {
if (!(object instanceof HrsRoles)) {
return false;
}
HrsRoles other = (HrsRoles) object;
if ((this.hrsRolesPK == null && other.hrsRolesPK != null) || (this.hrsRolesPK != null && !this.hrsRolesPK.equals(other.hrsRolesPK))) {
return false;
}
return true;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private void setId(Integer id) { this.id = id; }",
"private Integer getId() { return this.id; }",
"public void setId(int id){ this.id = id; }",
"public void setId(Long id) {this.id = id;}",
"public void setId(Long id) {this.id = id;}",
"public void setID(String idIn) {this.id = idIn;}",
"public void se... | [
"0.6896072",
"0.6839122",
"0.6705258",
"0.66412854",
"0.66412854",
"0.65923095",
"0.65785074",
"0.65785074",
"0.65752834",
"0.65752834",
"0.65752834",
"0.65752834",
"0.65752834",
"0.65752834",
"0.6561566",
"0.6561566",
"0.6545169",
"0.6525343",
"0.65168375",
"0.64885366",
"0.... | 0.0 | -1 |
Initialize the contents of the frame. | private void initialize() {
frmProductManagement = new JFrame();
frmProductManagement.setTitle("product management");
frmProductManagement.setBounds(100, 100, 767, 648);
frmProductManagement.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
frmProductManagement.getContentPane().setLayout(null);
JLabel lb_detail = new JLabel(" detail class");
lb_detail.setVisible(false);
lb_detail.setFont(new Font("宋体", Font.PLAIN, 16));
lb_detail.setBounds(10, 357, 211, 35);
frmProductManagement.getContentPane().add(lb_detail);
JLabel lb_ID = new JLabel(" productID");
lb_ID.setVisible(false);
lb_ID.setFont(new Font("宋体", Font.PLAIN, 16));
lb_ID.setBounds(10, 128, 136, 46);
frmProductManagement.getContentPane().add(lb_ID);
JLabel lb_name = new JLabel(" product's name");
lb_name.setVisible(false);
lb_name.setFont(new Font("宋体", Font.PLAIN, 16));
lb_name.setBounds(10, 192, 211, 54);
frmProductManagement.getContentPane().add(lb_name);
JLabel lb_price = new JLabel(" product's price");
lb_price.setVisible(false);
lb_price.setFont(new Font("宋体", Font.PLAIN, 16));
lb_price.setBounds(10, 256, 211, 46);
frmProductManagement.getContentPane().add(lb_price);
JLabel lb_major = new JLabel(" major classs");
lb_major.setVisible(false);
lb_major.setFont(new Font("宋体", Font.PLAIN, 16));
lb_major.setBounds(10, 312, 194, 35);
frmProductManagement.getContentPane().add(lb_major);
JLabel lb_info = new JLabel(" product's describe");
lb_info.setVisible(false);
lb_info.setFont(new Font("宋体", Font.PLAIN, 16));
lb_info.setBounds(10, 409, 202, 35);
frmProductManagement.getContentPane().add(lb_info);
ID = new JTextField();
ID.setVisible(false);
ID.setBounds(228, 128, 315, 37);
frmProductManagement.getContentPane().add(ID);
ID.setColumns(10);
name = new JTextField();
name.setVisible(false);
name.setBounds(231, 192, 312, 39);
frmProductManagement.getContentPane().add(name);
name.setColumns(10);
price = new JTextField();
price.setVisible(false);
price.setBounds(229, 256, 314, 35);
frmProductManagement.getContentPane().add(price);
price.setColumns(10);
major = new JTextField();
major.setVisible(false);
major.setBounds(229, 306, 314, 35);
frmProductManagement.getContentPane().add(major);
major.setColumns(10);
detail = new JTextField();
detail.setVisible(false);
detail.setBounds(231, 357, 312, 29);
frmProductManagement.getContentPane().add(detail);
detail.setColumns(10);
describe = new JTextField();
describe.setVisible(false);
describe.setBounds(228, 409, 315, 29);
frmProductManagement.getContentPane().add(describe);
describe.setColumns(10);
JLabel cao = new JLabel("");
cao.setFont(new Font("宋体", Font.PLAIN, 16));
cao.setBounds(10, 0, 516, 54);
frmProductManagement.getContentPane().add(cao);
JLabel result = new JLabel("");
result.setBounds(10, 524, 529, 46);
result.setFont(new Font("宋体", Font.PLAIN, 20));
frmProductManagement.getContentPane().add(result);
JButton btnNewButton = new JButton("back");
btnNewButton.addActionListener(new ActionListener() {
public void actionPerformed(ActionEvent e) {
frmProductManagement.dispose();
Bus a = new Bus(id);
a.frmMerchant.setVisible(true);
}
});
btnNewButton.setFont(new Font("宋体", Font.PLAIN, 20));
btnNewButton.setBounds(627, 567, 116, 34);
frmProductManagement.getContentPane().add(btnNewButton);
JButton btninsert = new JButton("insert");
btninsert.addActionListener(new ActionListener() {
public void actionPerformed(ActionEvent e) {
result.setText(null);
if(btninsert.getText().equals("insert"))
{
btninsert.setText("verify");
lb_ID.setVisible(true);
lb_detail.setVisible(true);
lb_info.setVisible(true);
lb_major.setVisible(true);
lb_name.setVisible(true);
lb_price.setVisible(true);
name.setVisible(true);
ID.setVisible(true);
price.setVisible(true);
major.setVisible(true);
detail.setVisible(true);
describe.setVisible(true);
}
else{
String str[] = new String[7];
str[0] = ID.getText();
str[1] = name.getText();
str[2] = price.getText();
str[3] = major.getText();
str[4] = detail.getText();
str[5] = describe.getText();
str[6] = ""+id;
if(test2.insert(str)==1)
{
result.setText("Insert successfully!");
}
else
result.setText("Insert failed!");
btninsert.setText("insert");
name.setText(null);
ID.setText(null);
price.setText(null);
major.setText(null);
detail.setText(null);
describe.setText(null);
lb_ID.setVisible(false);
lb_detail.setVisible(false);
lb_info.setVisible(false);
lb_major.setVisible(false);
lb_name.setVisible(false);
lb_price.setVisible(false);
name.setVisible(false);
ID.setVisible(false);
price.setVisible(false);
major.setVisible(false);
detail.setVisible(false);
describe.setVisible(false);
}
}
});
btninsert.setBounds(10, 55, 155, 46);
frmProductManagement.getContentPane().add(btninsert);
JButton btndelete = new JButton("delete");
btndelete.addActionListener(new ActionListener() {
public void actionPerformed(ActionEvent e) {
result.setText(null);
if(btndelete.getText().equals("delete"))
{
btndelete.setText("verify");
lb_ID.setVisible(true);
ID.setVisible(true);
}
else{
String IID = ID.getText();
if(test2.delete(IID)==1)
{
result.setText("Delete completely!");
}
else
result.setText("Delete failed!");
ID.setText(null);
btndelete.setText("delete");
lb_ID.setVisible(false);
ID.setVisible(false);
}
}
});
btndelete.setBounds(213, 55, 155, 46);
frmProductManagement.getContentPane().add(btndelete);
JButton btnupdate = new JButton("update");
btnupdate.addActionListener(new ActionListener() {
public void actionPerformed(ActionEvent e) {
result.setText(null);
if(btnupdate.getText().equals("update"))
{
cao.setText("please input the product ID to update");
cao.setVisible(true);
btnupdate.setText("verify");
lb_ID.setVisible(true);
lb_detail.setVisible(true);
lb_info.setVisible(true);
lb_major.setVisible(true);
lb_name.setVisible(true);
lb_price.setVisible(true);
name.setVisible(true);
ID.setVisible(true);
price.setVisible(true);
major.setVisible(true);
detail.setVisible(true);
describe.setVisible(true);
}
else{
cao.setVisible(false);
String str[] = new String[7];
str[0] = ID.getText();
str[1] = name.getText();
str[2] = price.getText();
str[3] = major.getText();
str[4] = detail.getText();
str[5] = describe.getText();
str[6] = ""+id;
if(test2.update(str)==1)
{
result.setText("Update successfully!");
}
else
result.setText("Update failed!");
btnupdate.setText("update");
name.setText(null);
ID.setText(null);
price.setText(null);
major.setText(null);
detail.setText(null);
describe.setText(null);
lb_ID.setVisible(false);
lb_detail.setVisible(false);
lb_info.setVisible(false);
lb_major.setVisible(false);
lb_name.setVisible(false);
lb_price.setVisible(false);
name.setVisible(false);
ID.setVisible(false);
price.setVisible(false);
major.setVisible(false);
detail.setVisible(false);
describe.setVisible(false);
}
}
});
btnupdate.setBounds(419, 55, 136, 46);
frmProductManagement.getContentPane().add(btnupdate);
JButton btnsearch = new JButton("search");
btnsearch.addActionListener(new ActionListener() {
public void actionPerformed(ActionEvent e) {
result.setText(null);
if(btnsearch.getText().equals("search"))
{
cao.setText("please input the condition to search");
cao.setVisible(true);
btnsearch.setText("verify");
lb_ID.setVisible(true);
lb_detail.setVisible(true);
lb_info.setVisible(true);
lb_major.setVisible(true);
lb_name.setVisible(true);
lb_price.setVisible(true);
name.setVisible(true);
ID.setVisible(true);
price.setVisible(true);
major.setVisible(true);
detail.setVisible(true);
describe.setVisible(true);
}
else{
cao.setVisible(false);
String str[] = new String[7];
str[0] = ID.getText();
str[1] = name.getText();
str[2] = price.getText();
str[3] = major.getText();
str[4] = detail.getText();
str[5] = describe.getText();
str[6] = ""+id;
if(test2.search(str)==1)
{
result.setText("Search successfully!");
}
else
result.setText("Search failed!");
btnsearch.setText("search");
name.setText(null);
ID.setText(null);
price.setText(null);
major.setText(null);
detail.setText(null);
describe.setText(null);
lb_ID.setVisible(false);
lb_detail.setVisible(false);
lb_info.setVisible(false);
lb_major.setVisible(false);
lb_name.setVisible(false);
lb_price.setVisible(false);
name.setVisible(false);
ID.setVisible(false);
price.setVisible(false);
major.setVisible(false);
detail.setVisible(false);
describe.setVisible(false);
}
}
});
btnsearch.setBounds(602, 55, 141, 46);
frmProductManagement.getContentPane().add(btnsearch);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public BreukFrame() {\n super();\n initialize();\n }",
"public MainFrame() {\n\t\tsuper();\n\t\tinitialize();\n\t}",
"private void initialize() {\n\t\tthis.setSize(211, 449);\n\t\tthis.setContentPane(getJContentPane());\n\t\tthis.setTitle(\"JFrame\");\n\t}",
"public SiscobanFrame() {\r\n\t\tsuper();\r... | [
"0.77704835",
"0.75652915",
"0.7442664",
"0.7369101",
"0.7366378",
"0.7358479",
"0.73146075",
"0.73096764",
"0.72987294",
"0.72978777",
"0.7278321",
"0.72729623",
"0.7269468",
"0.7269468",
"0.7215727",
"0.7180792",
"0.71682984",
"0.7140954",
"0.7140953",
"0.7126852",
"0.71079... | 0.0 | -1 |
TODO: Warning this method won't work in the case the id fields are not set | @Override
public boolean equals(Object object) {
if (!(object instanceof ReservacionesPK)) {
return false;
}
ReservacionesPK other = (ReservacionesPK) object;
if (this.idreservaciones != other.idreservaciones) {
return false;
}
if (this.clienteIdcliente != other.clienteIdcliente) {
return false;
}
if (this.sucursalIdubicacion != other.sucursalIdubicacion) {
return false;
}
return true;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private void setId(Integer id) { this.id = id; }",
"private Integer getId() { return this.id; }",
"public void setId(int id){ this.id = id; }",
"public void setId(Long id) {this.id = id;}",
"public void setId(Long id) {this.id = id;}",
"public void setID(String idIn) {this.id = idIn;}",
"public void se... | [
"0.6896886",
"0.6838461",
"0.67056817",
"0.66419715",
"0.66419715",
"0.6592331",
"0.6579151",
"0.6579151",
"0.6574321",
"0.6574321",
"0.6574321",
"0.6574321",
"0.6574321",
"0.6574321",
"0.65624106",
"0.65624106",
"0.65441847",
"0.65243006",
"0.65154546",
"0.6487427",
"0.64778... | 0.0 | -1 |
This manager looks after any resources, like Data Registries, that may require a secure login. This is an early draft, as secured access to resources is not yet to be implemented. | interface ResourceManager {
/**
* List all available resources.
* @return A list of Resource objects
*/
public List<Resource> getAvailableResources();
/**
* Attempt to use the user credentials to log in to
* any and all other resources known to this User Manager.
*
* TODO Consider moving to OAuth.
* @param user the user object
* @param password The users password, in clear text.
*/
public void propagateCredentials( User user, String password );
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n\tpublic void credite() {\n\t\t\n\t}",
"public AuthorizationManager() throws Exception {\n\t\tNCIASecurityManager mgr = (NCIASecurityManager)SpringApplicationContext.getBean(\"nciaSecurityManager\");\n securityRights = mgr.getSecurityMapForPublicRole();\n }",
"private void init() {\r\n\t\t... | [
"0.5958166",
"0.58148235",
"0.57369834",
"0.5736327",
"0.56203544",
"0.5540724",
"0.55359936",
"0.5512758",
"0.5509251",
"0.5497501",
"0.5496935",
"0.5474954",
"0.5441859",
"0.5433179",
"0.54248476",
"0.5402724",
"0.5383303",
"0.53828096",
"0.53818107",
"0.5366",
"0.5331683",... | 0.6667521 | 0 |
List all available resources. | public List<Resource> getAvailableResources(); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public List<Resources> getAllResources()\r\n\t{\r\n\t\tList<Resources> l = resourceRepository.findByResource();\r\n\t\treturn l;\r\n\t}",
"List<Resource> resources();",
"public List<Resource> listResources() throws IOException,\n\t\t\tClassNotFoundException {\n\t\treturn list(Resource.class);\n\t}",
"public ... | [
"0.7805408",
"0.7540664",
"0.75000143",
"0.73345613",
"0.70577294",
"0.69619435",
"0.6856702",
"0.6722206",
"0.671159",
"0.6704831",
"0.65829694",
"0.6527199",
"0.65221524",
"0.6484376",
"0.6477185",
"0.64359665",
"0.64317167",
"0.6423948",
"0.6409174",
"0.6394542",
"0.637515... | 0.7866772 | 0 |
Attempt to use the user credentials to log in to any and all other resources known to this User Manager. TODO Consider moving to OAuth. | public void propagateCredentials( User user, String password ); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private void attemptLogin() {\n if (mAuthTask != null) {\n return;\n }\n\n mUsrView.setError(null);\n mPasswordView.setError(null);\n\n String usr = mUsrView.getText().toString();\n String password = mPasswordView.getText().toString();\n\n Tuple<String, S... | [
"0.66794556",
"0.6631715",
"0.64740205",
"0.64688414",
"0.64412355",
"0.64260215",
"0.6418398",
"0.64121866",
"0.63817286",
"0.63775736",
"0.6372575",
"0.63723",
"0.635001",
"0.63327235",
"0.63057286",
"0.62892246",
"0.626494",
"0.62503886",
"0.6247802",
"0.6245721",
"0.62102... | 0.0 | -1 |
aca meti en invoker command | public GameGenerator() {
this.actionsCommand = new ArrayList<ICommand>();
this.invokerCommands = new ArrayList<InvokerCommand>();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\r\n public void execute(Command command) {\n\r\n }",
"public abstract boolean commandExecution(CommandSender sender, String label, String[] args);",
"public abstract void exec(CommandSender sender, String[] args);",
"public abstract void execute(CommandSender sender, String[] args);",
"publ... | [
"0.6738369",
"0.67193043",
"0.66938955",
"0.66685754",
"0.66255426",
"0.6544853",
"0.6507422",
"0.65072244",
"0.6450697",
"0.6415218",
"0.6406158",
"0.63512295",
"0.6319248",
"0.63153267",
"0.6305638",
"0.62202644",
"0.62152606",
"0.6207395",
"0.61991996",
"0.6172897",
"0.616... | 0.0 | -1 |
Combines the two given Bitmaps and adds it to the given ImageView. | public static void updateImageView(Context context, ImageView imageView, Bitmap newBitmap, Bitmap frame) {
Bitmap originalBitmap = ((BitmapDrawable) imageView.getDrawable()).getBitmap();
ThumbnailUtils thumbnailUtils = new ThumbnailUtils();
Bitmap thumbnail = thumbnailUtils.extractThumbnail(newBitmap, originalBitmap.getWidth(), originalBitmap.getWidth());
Bitmap combinedBitmap = Bitmap.createBitmap(frame.getWidth(), frame.getHeight(), frame.getConfig());
Canvas canvas = new Canvas(combinedBitmap);
canvas.drawBitmap(thumbnail, 0, 0, null);
canvas.drawBitmap(frame, new Matrix(), null);
imageView.setImageDrawable(new BitmapDrawable(context.getResources(), combinedBitmap));
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n public Image merge(Image a, Image b) {\n if (a.getCached() == null) {\n drawImage(a, 0, 0);\n }\n if (b.getCached() == null) {\n drawImage(b, 0, 0);\n }\n Object nativeImage = graphicsEnvironmentImpl.mergeImages(canvas, a, b, a.getCached(), b.... | [
"0.57663894",
"0.5555079",
"0.54804915",
"0.5473969",
"0.5454364",
"0.53964764",
"0.5383173",
"0.53171575",
"0.53147125",
"0.5269942",
"0.51992863",
"0.5168924",
"0.51531154",
"0.51093876",
"0.51066977",
"0.508866",
"0.5085101",
"0.50507176",
"0.50403756",
"0.50025815",
"0.49... | 0.5897011 | 0 |
Returns a Bitmap from a given InputStream with a size under the given max dimensions | public static Bitmap decodeBitmapFromInputStream(InputStream inputStream,
int maxDims) throws java.io.IOException {
ByteArrayOutputStream baos = new ByteArrayOutputStream();
byte[] buffer = new byte[1024];
int len;
while ((len = inputStream.read(buffer)) > -1 ) {
baos.write(buffer, 0, len);
}
baos.flush();
InputStream sizeCheckStream = new ByteArrayInputStream(baos.toByteArray());
InputStream bitmapStream = new ByteArrayInputStream(baos.toByteArray());
ImageDimensions currentDimensions = getImageDimensionsFromInputStream(sizeCheckStream);
BitmapFactory.Options options = new BitmapFactory.Options();
options.inSampleSize = calculateInSampleSize(currentDimensions, maxDims);
return BitmapFactory.decodeStream(bitmapStream, new Rect(0, 0, 512, 386), options);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public static Bitmap decodeSampledBitmapFromStream(InputStream is, URL url, int reqWidth, int reqHeight) {\n final BitmapFactory.Options options = new BitmapFactory.Options();\n options.inJustDecodeBounds = true;\n BitmapFactory.decodeStream(is, null, options);\n try {\n is =... | [
"0.66017073",
"0.62013865",
"0.61841553",
"0.6141074",
"0.6044134",
"0.59712946",
"0.5963855",
"0.5931697",
"0.5766877",
"0.57292956",
"0.5702208",
"0.5702201",
"0.5691133",
"0.56812084",
"0.5671113",
"0.56660396",
"0.5660004",
"0.56333137",
"0.5609419",
"0.5604748",
"0.56012... | 0.79716706 | 0 |
Raw height and width of image | private static int calculateInSampleSize(
ImageDimensions imageDims, int maxDims) {
final int height = imageDims.getImageHeight();
final int width = imageDims.getImageWidth();
int inSampleSize = 1;
if (height > maxDims || width > maxDims) {
final int halfHeight = height / 2;
final int halfWidth = width / 2;
// Calculate the largest inSampleSize value that is a power of 2 and keeps both
// height and width larger than the requested height and width.
while ((halfHeight / inSampleSize) >= maxDims
|| (halfWidth / inSampleSize) >= maxDims) {
inSampleSize *= 2;
}
}
return inSampleSize;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public int getImageHeight() {\n\treturn height;\n }",
"public int getImageWidth() {\n\treturn width;\n }",
"private void getImgSize(){\n imgSizeX = 1080; //mAttacher.getDisplayRect().right - mAttacher.getDisplayRect().left;\n imgSizeY = 888.783f; //mAttacher.getDisplayRect().botto... | [
"0.7013478",
"0.699988",
"0.67583126",
"0.6750033",
"0.6720698",
"0.669873",
"0.6689511",
"0.66860753",
"0.66664755",
"0.65853953",
"0.6539114",
"0.6529669",
"0.6516078",
"0.65081245",
"0.64257",
"0.63865346",
"0.63722134",
"0.63092506",
"0.6291426",
"0.6288455",
"0.6252946",... | 0.0 | -1 |
This is the start method that initializes the mainForm once the program is launched | @Override
public void start(Stage primaryStage) throws Exception {
try {
Parent root = FXMLLoader.load(getClass().getResource("/view/mainForm.fxml"));
Scene sceneOne = new Scene(root);
primaryStage.setScene(sceneOne);
primaryStage.show();
} catch(Exception e) {
e.printStackTrace();
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public main() {\n initComponents();\n \n }",
"public void start(){\n JmeFormatter formatter = new JmeFormatter();\n\n Handler consoleHandler = new ConsoleHandler();\n consoleHandler.setFormatter(formatter);\n\n Logger.getLogger(\"\").removeHandler(Logger.getLogger(\"\... | [
"0.76160085",
"0.7576194",
"0.74176466",
"0.7409388",
"0.73735154",
"0.73735154",
"0.73735154",
"0.73735154",
"0.73735154",
"0.7337441",
"0.73283625",
"0.7325698",
"0.7323465",
"0.72698325",
"0.72698325",
"0.72662073",
"0.7262162",
"0.7261625",
"0.7190833",
"0.7180277",
"0.71... | 0.0 | -1 |
This is the main method it is the first method that gets called and it launches the java program | public static void main(String[] args) {
launch(args);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public static void main()\n\t{\n\t}",
"public static void main(String[] args) // every Java program starts with a main method or function\r\n\t{\n\t}",
"public static void main(){\n\t}",
"public static void main() {\n }",
"public static void main() {\n \n }",
"public static void main(String[... | [
"0.7854218",
"0.77269185",
"0.7725603",
"0.76823974",
"0.7675008",
"0.7622501",
"0.76041096",
"0.75954765",
"0.75954765",
"0.7590678",
"0.7578286",
"0.7480861",
"0.7474409",
"0.74523634",
"0.7444163",
"0.7444163",
"0.7444163",
"0.7444163",
"0.7444163",
"0.7440381",
"0.7438568... | 0.73110497 | 73 |
Will contain some common methods later on. Yet, we need to see how we can work out with the future Chess lib we'll be using. | void init(@NotNull final AIEngine engine); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public static void makeBoardChess() {\r\n \r\n white = new AllPiece(\"White\");\r\n black = new AllPiece(\"Black\");\r\n \r\n }",
"private ChessPieceGUIFactory() {\r\n\r\n\t}",
"public Chess() {\n\t\t// TODO Auto-generated constructor stub\n\t\tchessBoard = new int[BOARD_LENG... | [
"0.6337476",
"0.6251204",
"0.59128475",
"0.58589095",
"0.58145463",
"0.5682131",
"0.5640929",
"0.5628828",
"0.56014085",
"0.55899936",
"0.5522541",
"0.5503855",
"0.54873985",
"0.54227215",
"0.5418127",
"0.5414584",
"0.54115075",
"0.5406669",
"0.5403611",
"0.5366004",
"0.53584... | 0.0 | -1 |
optional int32 roleID = 1; | boolean hasRoleID(); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public Integer getRoleid() {\r\n return roleid;\r\n }",
"public Integer getRoleId() {\r\n return roleId;\r\n }",
"public Long getRoleid() {\n return roleid;\n }",
"public String getRoleid() {\n return roleid;\n }",
"public String getRoleid() {\n return roleid;... | [
"0.76416016",
"0.736617",
"0.7307109",
"0.728708",
"0.728708",
"0.728708",
"0.7281736",
"0.7281736",
"0.7281736",
"0.7281736",
"0.7281736",
"0.7281736",
"0.7281736",
"0.7281736",
"0.71495926",
"0.705764",
"0.7033932",
"0.6986356",
"0.6986356",
"0.6986356",
"0.6986356",
"0.6... | 0.68040895 | 33 |
optional int64 resMineInstanceID = 2; | boolean hasResMineInstanceID(); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"long getInstanceID();",
"String getInstanceID();",
"int getSimObjID();",
"long getSteamID();",
"private static int nextInstanceID()\n {\n return baseID.incrementAndGet();\n }",
"public int getBigId () { return bigId; }",
"public String getMaternalID();",
"public int getId(){\r\n ... | [
"0.6827946",
"0.6302356",
"0.6298841",
"0.6266616",
"0.62236965",
"0.6209255",
"0.6205206",
"0.61384207",
"0.61292976",
"0.61134833",
"0.6064987",
"0.6020998",
"0.60177255",
"0.600982",
"0.59816873",
"0.59816873",
"0.59816873",
"0.59816873",
"0.59681743",
"0.5941262",
"0.5890... | 0.6550686 | 1 |
optional int32 collectResult = 3; | boolean hasCollectResult(); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public Object getResult()\n/* */ {\n/* 129 */ Object resultToCheck = this.result;\n/* 130 */ return resultToCheck != RESULT_NONE ? resultToCheck : null;\n/* */ }",
"public int getResult(){\n return localResult;\n }",
"public void setR... | [
"0.615018",
"0.61069536",
"0.6013393",
"0.59457976",
"0.59439725",
"0.5917013",
"0.5888739",
"0.5840988",
"0.5840988",
"0.57054293",
"0.5599468",
"0.5596129",
"0.55840105",
"0.5573398",
"0.55594265",
"0.5551563",
"0.5541999",
"0.5507587",
"0.54871947",
"0.54051185",
"0.536652... | 0.58194274 | 9 |
optional int64 collectEndTime = 4; | boolean hasCollectEndTime(); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public String getEndTime() {\n/* 34 */ return this.endTime;\n/* */ }",
"long getEndTime() {\n return endTime;\n }",
"int getEndTime();",
"int getEndTime();",
"int getEndTime();",
"public String getEndTime(){return endTime;}",
"long getNextCollectTimestampMs();",
"public void setEndTime(l... | [
"0.70567966",
"0.699042",
"0.6867519",
"0.6867519",
"0.6867519",
"0.6706056",
"0.6627444",
"0.64718986",
"0.641896",
"0.6414316",
"0.64112127",
"0.64104396",
"0.6386148",
"0.6386148",
"0.63777566",
"0.63777566",
"0.63672906",
"0.6343471",
"0.6340178",
"0.6340178",
"0.6320931"... | 0.6465444 | 8 |
optional int32 produceResType = 5; | boolean hasProduceResType(); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public int getResType() {\n\t\treturn ResType;\n\t}",
"static int type_of_rc(String passed){\n\t\treturn 1;\n\t}",
"int getRType();",
"int getTypeValue();",
"int getTypeValue();",
"int getTypeValue();",
"int getTypeValue();",
"int getTypeValue();",
"int getTypeValue();",
"int getTypeValue();",
... | [
"0.5665445",
"0.56143403",
"0.560541",
"0.5551056",
"0.5551056",
"0.5551056",
"0.5551056",
"0.5551056",
"0.5551056",
"0.5551056",
"0.5551056",
"0.5551056",
"0.5551056",
"0.5551056",
"0.5551056",
"0.5551056",
"0.55360866",
"0.54635155",
"0.54607505",
"0.5432407",
"0.54002905",... | 0.6131268 | 0 |
optional int32 rewardResource = 6; | boolean hasRewardResource(); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public abstract int getReward(int initialState, int initialAction);",
"int getRewardTrackValue();",
"pb4server.SetMainHeroRewardAskReq getSetMainHeroRewardAskReq();",
"double getTotalReward();",
"public double getReward() {\n return reward;\n }",
"int getResourceCost();",
"public Integer getR... | [
"0.64675236",
"0.6427205",
"0.6249657",
"0.6098709",
"0.6079922",
"0.5999088",
"0.59857166",
"0.5935117",
"0.5920017",
"0.59146607",
"0.59004724",
"0.5830233",
"0.57055",
"0.56962836",
"0.56728965",
"0.5667183",
"0.56601",
"0.56507224",
"0.56268996",
"0.56086314",
"0.5604182"... | 0.5983456 | 7 |
optional int32 attackerRoleId = 7; | boolean hasAttackerRoleId(); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"int getParticipantRoleValue();",
"public Integer getRoleId() {\r\n return roleId;\r\n }",
"public Integer getRoleId() {\n return roleId;\n }",
"public Integer getRoleId() {\n return roleId;\n }",
"public Integer getRoleId() {\n return roleId;\n }",
"public Integer ... | [
"0.635753",
"0.6286158",
"0.6188316",
"0.6188316",
"0.6188316",
"0.6188316",
"0.6188316",
"0.6188316",
"0.6188316",
"0.6188316",
"0.6091484",
"0.58866745",
"0.58481216",
"0.58102983",
"0.5804875",
"0.5804875",
"0.5804875",
"0.5804875",
"0.5784793",
"0.5784793",
"0.5784793",
... | 0.63141316 | 1 |
optional string attackerRoleName = 8; | boolean hasAttackerRoleName(); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"String getRole();",
"String getRole();",
"String roleName();",
"String getRoleName();",
"public String getRole() { return this.role; }",
"public void setRole(java.lang.String value) {\n this.role = value;\n }",
"String computeRole();",
"public void setRole(String role)\n {\n _role=role;\n }"... | [
"0.6792678",
"0.6792678",
"0.670554",
"0.66451126",
"0.6644283",
"0.6578349",
"0.65465164",
"0.6545953",
"0.6490853",
"0.6322487",
"0.6279317",
"0.6236138",
"0.62296486",
"0.62067443",
"0.61681837",
"0.61220646",
"0.6107013",
"0.6102035",
"0.6099705",
"0.6072085",
"0.60705185... | 0.63471144 | 9 |
required int32 errorCode = 1; | boolean hasErrorCode(); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"int getErrorCode();",
"void mo13372a(int i, ErrorCode errorCode);",
"int getErrcode();",
"public int getErrorCode()\n\t{\n\t\treturn errorCode;\n\t}",
"int getReturnCode();",
"int getReturnCode();",
"public int getErrorCode() {\n return errorCode;\n }",
"void mo13373a(int i, ErrorCode error... | [
"0.7650913",
"0.7342336",
"0.73018306",
"0.67563355",
"0.6748334",
"0.6748334",
"0.67417514",
"0.6700567",
"0.66668314",
"0.6649608",
"0.66064936",
"0.6590426",
"0.6581824",
"0.65792537",
"0.65594167",
"0.6539465",
"0.65308255",
"0.65195656",
"0.6509639",
"0.646688",
"0.64343... | 0.0 | -1 |
repeated .Mine_Collect_Info_Mes collectList = 2; | java.util.List<com.pkuvr.game_server.proto.serverproto.Mine_Collect_Log_Response.Mine_Collect_Info_Mes>
getCollectListList(); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public RepeatedMessage() {\n\t\tsuper(\"repeated_message\", com.instalogger.entities.generated.Public.PUBLIC);\n\t}",
"void mo7380a(C1320b bVar, List<String> list) throws RemoteException;",
"private Mine_Collect_Info_Mes(Builder builder) {\n super(builder);\n }",
"public void getShowRecord(... | [
"0.5518371",
"0.5199486",
"0.5178781",
"0.5172567",
"0.49695578",
"0.4962602",
"0.49480686",
"0.4947428",
"0.49283332",
"0.49085587",
"0.4894083",
"0.48901078",
"0.48876482",
"0.48536766",
"0.48508197",
"0.4830116",
"0.48238963",
"0.48205605",
"0.48163226",
"0.4808672",
"0.48... | 0.5530379 | 0 |
Use Mine_Collect_Info_Mes.newBuilder() to construct. | private Mine_Collect_Info_Mes(Builder builder) {
super(builder);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public MessageInfo() { }",
"private MessageInformationQuest(com.google.protobuf.GeneratedMessage.Builder<?> builder) {\n super(builder);\n this.unknownFields = builder.getUnknownFields();\n }",
"java.util.List<com.pkuvr.game_server.proto.serverproto.Mine_Collect_Log_Response.Mine_Collect_Info_Mes>... | [
"0.64804065",
"0.6397342",
"0.6191634",
"0.6161569",
"0.6118856",
"0.610311",
"0.60804254",
"0.5933738",
"0.58772916",
"0.57488185",
"0.5738251",
"0.5678206",
"0.5628106",
"0.5611405",
"0.55866474",
"0.5562434",
"0.55443174",
"0.5543509",
"0.55313087",
"0.55137444",
"0.548596... | 0.7391095 | 0 |
Use Mine_Collect_Log_Res.newBuilder() to construct. | private Mine_Collect_Log_Res(Builder builder) {
super(builder);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public LogAnalysis(StatRes res) {\n\t\tthis.res=res;\n\t}",
"private LogRecord(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }",
"private LogsRequest(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }",
"private HeartBeatRes(c... | [
"0.5978843",
"0.5704097",
"0.565967",
"0.54600734",
"0.54284835",
"0.5392625",
"0.5357365",
"0.53421396",
"0.52599156",
"0.5249152",
"0.5214134",
"0.5212937",
"0.5202464",
"0.51880866",
"0.51701987",
"0.5111407",
"0.5027037",
"0.4991999",
"0.49453583",
"0.49214226",
"0.492038... | 0.7084188 | 0 |
method initialize This method counts the occurances of target in line. | public static int countChar ( char target, String line )
{
int sum = 0;
// Look for the first target character in line.
int index = line.indexOf ( target );
// Loop, counting all occurances.
while ( index >= 0 )
{
sum++;
// Check if reached the last character in line.
if ( index == line.length () - 1 ) return sum;
// Search for an additional target character in line.
index = line.indexOf ( target, index+1 );
} // while
return sum; // return the count
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public WordCount()\n {\n //initializes common variables.\n lineNums = new CircularList();\n count = 1;\n }",
"public WordCount(String _word, int lnNum)\n {\n //initializes common variables \n count = 1;\n lineNums = new CircularList();\n //initializes spe... | [
"0.67854804",
"0.635744",
"0.6314858",
"0.58994454",
"0.58994454",
"0.58639187",
"0.5686332",
"0.56854135",
"0.56471604",
"0.55979836",
"0.55878997",
"0.556685",
"0.5555",
"0.552315",
"0.549488",
"0.5493145",
"0.5493145",
"0.5482912",
"0.5450438",
"0.5441748",
"0.5431353",
... | 0.5057057 | 55 |
method getFloat This method returns the current text line. | public String getLine ()
{
return line;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public float readFloat() {\n return Float.parseFloat(readNextLine());\n }",
"@SuppressWarnings(\"unchecked\")\n public PropertyValue<Float> getLineOffset() {\n return (PropertyValue<Float>) new PropertyValue(nativeGetLineOffset());\n }",
"@Override\r\n public float floatValue() {\r\n ... | [
"0.6712779",
"0.666056",
"0.6489901",
"0.64026785",
"0.6369141",
"0.6263007",
"0.61832374",
"0.61606383",
"0.61415184",
"0.61219084",
"0.6089028",
"0.60774857",
"0.60642165",
"0.6064187",
"0.6064006",
"0.60579056",
"0.60448045",
"0.6002923",
"0.5988007",
"0.598449",
"0.598182... | 0.58752686 | 39 |
method getLine This method sets the current text line. | public void setLine ( String value )
{
line = value;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public String getLine() {\n return this.line;\n }",
"public String getLine() {\r\n\t\treturn currentString;\r\n\t}",
"@Override\n public Line getLine() {\n return line;\n }",
"public void setLine(int line);",
"public void setLine (int Line);",
"public void setLine(String line) {\n ... | [
"0.7153937",
"0.70787287",
"0.7076119",
"0.7046106",
"0.7027738",
"0.7007224",
"0.6907822",
"0.6878737",
"0.68764025",
"0.6855218",
"0.6798613",
"0.67433035",
"0.67395127",
"0.67293113",
"0.6720066",
"0.6711472",
"0.6704908",
"0.6690528",
"0.6687974",
"0.6675111",
"0.6619531"... | 0.7102061 | 1 |
method setLine This method checks if a character is a letter. | public static boolean isLetter ( char letter )
{
if ( ( letter >= 'a' ) && ( letter <= 'z' ) ) return true;
if ( ( letter >= 'A' ) && ( letter <= 'Z' ) ) return true;
return false;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void setLetter(char letter){\r\n\t\tthis.letter = letter;\r\n\t}",
"@Override\n public void setCharacter(String character) {\n this.character = character;\n }",
"private boolean letter() {\r\n return CATS(Lu, Ll, Lt, Lm, Lo);\r\n }",
"private boolean isValid() {\n return Char... | [
"0.7043332",
"0.6869462",
"0.6702517",
"0.66808486",
"0.6574193",
"0.645682",
"0.62694615",
"0.62103087",
"0.6204158",
"0.6200961",
"0.61829305",
"0.6135142",
"0.6117166",
"0.6056458",
"0.60492504",
"0.60488015",
"0.6034267",
"0.60259974",
"0.60167193",
"0.6008211",
"0.600760... | 0.5909542 | 32 |
method isLetter This method gets a substring from the current line. | public static String substring ( String line, int start, int end )
{
// Check start coordinate.
if ( start >= line.length () )
return "";
// Check end coordinate.
if ( end > line.length () )
{
if ( start < line.length () ) return line.substring ( start );
return "";
} // if
// Check if end at end of line.
if ( end == line.length () )
return line.substring ( start );
else
return line.substring ( start, end );
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private boolean letter() {\r\n return CATS(Lu, Ll, Lt, Lm, Lo);\r\n }",
"char getContactLetter();",
"public boolean isLetterOrDigitAhead()\n {\n\n int pos = currentPosition;\n\n while (pos < maxPosition)\n {\n if (Character.isLetterOrDigit(str.charAt(pos)))\n return ... | [
"0.6716087",
"0.6220415",
"0.61095047",
"0.6106336",
"0.5944799",
"0.592046",
"0.589228",
"0.5871515",
"0.58584523",
"0.58506423",
"0.58446175",
"0.5827353",
"0.5825225",
"0.58153695",
"0.58050174",
"0.57994556",
"0.57455343",
"0.5735539",
"0.572398",
"0.5722873",
"0.57190865... | 0.0 | -1 |
This method just search and Filter the permesso name which searched you can also restrict some with another column | private void filterPerName(EntityManager em) {
System.out.println("Please enter the name: ");
Scanner sc = new Scanner(System.in);
//Debug : String name = "Sel";
String name = sc.nextLine();
TypedQuery<Permesso> query = em.createQuery("select p from com.hamid.entity.Permesso p where p.nome like '%"+ name
+ "%'" , Permesso.class);
List<Permesso> perList = query.getResultList();
for (Permesso p : perList) {
System.out.println(p.getNome());
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void filtro() {\n int columnaABuscar = 0;\n \n \n if (comboFiltro.getSelectedItem() == \"nombre\") {\n columnaABuscar = 0;\n }\n if (comboFiltro.getSelectedItem().toString() == \"Apellido\") {\n columnaABuscar = 1;\n }\n \n trsFiltro.s... | [
"0.71163124",
"0.67258114",
"0.65284044",
"0.64602774",
"0.64059085",
"0.6370547",
"0.6324732",
"0.6241378",
"0.61697626",
"0.6142766",
"0.6128375",
"0.61154616",
"0.61145216",
"0.6093145",
"0.6057",
"0.60507935",
"0.6005709",
"0.5901458",
"0.589779",
"0.5887543",
"0.5869924"... | 0.7587745 | 0 |
Will Return back [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 30] An array of permesso_id | private List<Integer> findAllId(EntityManager em) {
TypedQuery<Permesso> permessoQuery = em.createQuery("SELECT c FROM com.hamid.entity.Permesso c", Permesso.class);
List<Permesso> permessoRes = permessoQuery.getResultList();
List<Integer> p_id = new ArrayList<Integer>();
for (Permesso p : permessoRes) {
int p_id1 = p.getPermesso_id();
p_id.add(p_id1);
}
return p_id;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"static int [] GerarAleatorio()\n {\n Random gerar = new Random();\n int [] Aleatorio = new int [pergu]; // Cria um Vetor com o tamanho de quantidade de perguntas\n \n \n int pos1, pos2, auxilio; \n \n for (int i = 0; i < Aleatorio.length; i++) \n {\n ... | [
"0.62440515",
"0.59930605",
"0.5889964",
"0.5879079",
"0.57745045",
"0.5751574",
"0.5744041",
"0.57167983",
"0.5698298",
"0.56870383",
"0.56870383",
"0.56601715",
"0.565344",
"0.55980706",
"0.55933356",
"0.55741066",
"0.55536103",
"0.5504376",
"0.5498177",
"0.5480591",
"0.547... | 0.689262 | 0 |
Called just before this Command runs the first time | protected void initialize() {
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n public void preRun() {\n super.preRun();\n }",
"protected void preRun() {\r\n\t\tthis.preparePairs();\r\n\t}",
"@Override\n public void beforeFirstLogic() {\n }",
"public void prePerform() {\n // nothing to do by default\n }",
"protected void onFirstUse() {}",
"@O... | [
"0.71116775",
"0.6540082",
"0.643276",
"0.64309984",
"0.6406235",
"0.63530433",
"0.6307191",
"0.62521607",
"0.6246859",
"0.6240541",
"0.61669374",
"0.6162758",
"0.612669",
"0.612669",
"0.612669",
"0.612669",
"0.612669",
"0.6106636",
"0.60843927",
"0.60843927",
"0.6078098",
... | 0.0 | -1 |
Called repeatedly when this Command is scheduled to run | protected void execute() {
double rightTrigger = Robot.m_oi.controllerDriverAxisValue(RobotMap.Controller1_Right_Trigger);
double leftTrigger = Robot.m_oi.controllerDriverAxisValue(RobotMap.Controller1_Left_Trigger);
double leftJoystickXAxis = Robot.m_oi.controllerDriverAxisValue(RobotMap.Controller1_Left_X_Axis);
//Deadzone For Joystick
if (Math.abs(leftJoystickXAxis) < RobotMap.JoystickDeadzone) {
leftJoystickXAxis = 0;
} else {
if (leftJoystickXAxis < 0) {
// SmartDashboard.putNumber("NEG JS BEFORE", leftJoystickXAxis);
leftJoystickXAxis = (((leftJoystickXAxis - (-0.99)) * (0 - (-0.99))) / ((-1)*(RobotMap.JoystickDeadzone) - (-0.99))) + (-0.99);
// SmartDashboard.putNumber("NEG JS AFTER", leftJoystickXAxis);
} else if (leftJoystickXAxis > 0) {
// SmartDashboard.putNumber("POS JS BEFORE", leftJoystickXAxis);
leftJoystickXAxis = (((leftJoystickXAxis - (RobotMap.JoystickDeadzone)) * (0.99 - 0)) / (0.99 - RobotMap.JoystickDeadzone)) + 0;
// SmartDashboard.putNumber("POS JS AFTER", leftJoystickXAxis);
}
}
//Deadzone For Right Trigger
if (Math.abs(rightTrigger) < RobotMap.TriggerDeadzone) {
rightTrigger = 0;
} else {
// SmartDashboard.putNumber("RT BEFORE", rightTrigger);
rightTrigger = (((rightTrigger - (RobotMap.TriggerDeadzone)) * (1.00 - 0)) / (1.00 - RobotMap.TriggerDeadzone)) + 0;
// SmartDashboard.putNumber("RT AFTER", rightTrigger);
}
//Deadzone For Left Trigger
if (Math.abs(leftTrigger) < RobotMap.TriggerDeadzone) {
leftTrigger = 0;
} else {
// SmartDashboard.putNumber("LT BEFORE", leftTrigger);
leftTrigger = (((leftTrigger - (RobotMap.TriggerDeadzone)) * (1.00 - 0)) / (1.00 - RobotMap.TriggerDeadzone)) + 0;
// SmartDashboard.putNumber("LT AFTER", leftTrigger);
}
//Creating motor variables
double leftMotors = ((rightTrigger) - leftTrigger + leftJoystickXAxis)*RobotMap.Drive_Scaling_Teleop;
double rightMotors = (rightTrigger - leftTrigger - leftJoystickXAxis)*RobotMap.Drive_Scaling_Teleop*RobotMap.Curve_Reduction_Factor*(-1);
if (leftMotors > RobotMap.MAX_ROBOT_SPEED) {
leftMotors = RobotMap.MAX_ROBOT_SPEED;
}
if (rightMotors > RobotMap.MAX_ROBOT_SPEED) {
rightMotors = RobotMap.MAX_ROBOT_SPEED;
}
if (leftMotors < RobotMap.MIN_ROBOT_SPEED) {
leftMotors = RobotMap.MIN_ROBOT_SPEED;
}
if (rightMotors < RobotMap.MIN_ROBOT_SPEED) {
rightMotors = RobotMap.MIN_ROBOT_SPEED;
}
Robot.driveTrain.setLeft(leftMotors);
Robot.driveTrain.setRight(rightMotors);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n\t\tvoid runCommand() {\n\t\t\ttrigger.execute();\n\t\t}",
"@Override\n public void run() {\n schedule();\n }",
"@Override\n public void autonomousPeriodic() {\n \n Scheduler.getInstance().run();\n \n }",
"public void run() {\n\t\texecuteCommand( client, false );\n\t}",
"... | [
"0.6689458",
"0.6631115",
"0.6566414",
"0.65512514",
"0.6530515",
"0.6488629",
"0.64019585",
"0.6380878",
"0.637645",
"0.6363615",
"0.63557744",
"0.6330997",
"0.6295938",
"0.6275704",
"0.6268897",
"0.62656784",
"0.62656784",
"0.62656784",
"0.62656784",
"0.62656784",
"0.626567... | 0.0 | -1 |
Make this return true when this Command no longer needs to run execute() | protected boolean isFinished() {
return false;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n public boolean execute() {\n return false;\n }",
"@Override\n public boolean execute() {\n return false;\n }",
"public boolean execute(){\n return false;\n }",
"@Override\n\tpublic boolean Unexecute() \n\t{\n\t\treturn false;\n\t}",
"p... | [
"0.77345294",
"0.77345294",
"0.7678753",
"0.76457655",
"0.75966",
"0.7554271",
"0.6877811",
"0.6748956",
"0.6728847",
"0.66855806",
"0.65891784",
"0.65624696",
"0.64980483",
"0.63857424",
"0.63736373",
"0.6356819",
"0.6356819",
"0.63498974",
"0.63401324",
"0.63290936",
"0.632... | 0.6184869 | 87 |
Called once after isFinished returns true | protected void end() {
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n protected boolean isFinished() {\n return true;\n }",
"@Override\n protected boolean isFinished() {\n return true;\n }",
"@Override\n public boolean isFinished() {\n return true;\n }",
"@Override\r\n\tprotected boolean isFinished() {\n\t\treturn true;\r\n\t}",
"@Override\... | [
"0.85854495",
"0.85395205",
"0.83341306",
"0.83313096",
"0.83313096",
"0.83068",
"0.8305024",
"0.8298836",
"0.8277644",
"0.8277644",
"0.8277644",
"0.8277644",
"0.8277644",
"0.8277644",
"0.8277644",
"0.8277644",
"0.8277644",
"0.8277644",
"0.8277644",
"0.8277644",
"0.8277644",
... | 0.0 | -1 |
Called when another command which requires one or more of the same subsystems is scheduled to run | protected void interrupted() {
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public AutonomousCommand(LiftSubsystem m_lift, ArmSubsystem m_arm, Shooter m_shooter, DriveSubsystem m_drive,\n HopperSubsystem m_hopper, Intake m_intake) {\n // Add your commands in the super() call, e.g.\n // super(new FooCommand(), new BarCommand());\n // alongwith- birlikte çalıştırmak için // wi... | [
"0.57638615",
"0.5596325",
"0.552643",
"0.54340327",
"0.5383419",
"0.5363712",
"0.53502446",
"0.53427285",
"0.53291255",
"0.5327942",
"0.5298728",
"0.5262931",
"0.5255555",
"0.52312833",
"0.5223626",
"0.5202386",
"0.51912916",
"0.5179374",
"0.51630044",
"0.51523274",
"0.51434... | 0.0 | -1 |
update LTS and send reply message to "toID" | private void sendReply(Integer toID) {
restTemplate.postForObject(
config.getConfigNodeInfos().get(toID).getNodeURL() + "/message/reply",
new ReplyMessage(updateAndGetLTS(null), nodeID),
String.class);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n public void onUpdateReceived(Update update) {\n if (update.hasMessage() && update.getMessage().hasText()) {\n SendMessage reply = new SendMessage(); // Create a SendMessage object with mandatory fields\n String chatId = update.getMessage().getChatId().toString();\n ... | [
"0.57382125",
"0.54823333",
"0.54608524",
"0.54582924",
"0.54582924",
"0.5431395",
"0.5416444",
"0.5411466",
"0.54037195",
"0.5331705",
"0.529404",
"0.52743447",
"0.5270464",
"0.5266001",
"0.52337193",
"0.52185774",
"0.52035916",
"0.51570195",
"0.51487803",
"0.51434946",
"0.5... | 0.66793174 | 0 |
should be called within locked body | private void checkAndUpdate() {
if (csProposeEnter.get()) {
if (numRepliesReceived.get() == (config.getNumNodes() - 1)
&& requestQueue.peek().getFromID().equals(nodeID)) {
csProposeEnter.set(false);
csAllowEnter.set(true);
}
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void lock() {\r\n super.lock();\r\n }",
"public void lock() {\n\n }",
"public void lock() {\n super.lock();\n }",
"public void lock() {\n super.lock();\n }",
"public void lock() {\n super.lock();\n }",
"@Override\n\tpublic boolean isLocked() { return true... | [
"0.6578453",
"0.65574425",
"0.65014976",
"0.65014976",
"0.65014976",
"0.64843434",
"0.63566077",
"0.63134676",
"0.6311891",
"0.63051593",
"0.6278869",
"0.6278869",
"0.6232545",
"0.61902213",
"0.61843306",
"0.61799544",
"0.6173139",
"0.61559665",
"0.6145567",
"0.6121618",
"0.6... | 0.0 | -1 |
Build call for activateModel | public okhttp3.Call activateModelCall(String workspaceId, String modelId, final ApiCallback _callback) throws ApiException {
Object localVarPostBody = null;
// create path and map variables
String localVarPath = "/workspaces/{workspaceId}/models/{modelId}/activate"
.replaceAll("\\{" + "workspaceId" + "\\}", localVarApiClient.escapeString(workspaceId.toString()))
.replaceAll("\\{" + "modelId" + "\\}", localVarApiClient.escapeString(modelId.toString()));
List<Pair> localVarQueryParams = new ArrayList<Pair>();
List<Pair> localVarCollectionQueryParams = new ArrayList<Pair>();
Map<String, String> localVarHeaderParams = new HashMap<String, String>();
Map<String, String> localVarCookieParams = new HashMap<String, String>();
Map<String, Object> localVarFormParams = new HashMap<String, Object>();
final String[] localVarAccepts = {
"application/json"
};
final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts);
if (localVarAccept != null) {
localVarHeaderParams.put("Accept", localVarAccept);
}
final String[] localVarContentTypes = {
};
final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes);
localVarHeaderParams.put("Content-Type", localVarContentType);
String[] localVarAuthNames = new String[] { "apiAuth" };
return localVarApiClient.buildCall(localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void buildModel() {\n }",
"Build_Model() {\n\n }",
"public void buildModel(){\r\n\t\t\r\n\t\tsuper.buildModel();\r\n\t\t\r\n\t}",
"@Override\n public void activate() {\n \n }",
"public void activate() {\t\t\n\t\t// Put activation code here (computing output based on th... | [
"0.5996103",
"0.58692336",
"0.5765301",
"0.5636599",
"0.5476863",
"0.54175377",
"0.54175377",
"0.5393435",
"0.53514355",
"0.535075",
"0.5348361",
"0.53344077",
"0.5315052",
"0.5299139",
"0.52826303",
"0.525206",
"0.5240276",
"0.51641",
"0.51641",
"0.5145975",
"0.514379",
"0... | 0.0 | -1 |
verify the required parameter 'workspaceId' is set | @SuppressWarnings("rawtypes")
private okhttp3.Call activateModelValidateBeforeCall(String workspaceId, String modelId, final ApiCallback _callback) throws ApiException {
if (workspaceId == null) {
throw new ApiException("Missing the required parameter 'workspaceId' when calling activateModel(Async)");
}
// verify the required parameter 'modelId' is set
if (modelId == null) {
throw new ApiException("Missing the required parameter 'modelId' when calling activateModel(Async)");
}
okhttp3.Call localVarCall = activateModelCall(workspaceId, modelId, _callback);
return localVarCall;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Test\n public void workspaceTest() throws ApiException {\n String workspaceId = null;\n Workspace response = api.workspace(workspaceId);\n\n // TODO: test validations\n }",
"public void setWorkspaceId(String workspaceId) {\n this.workspaceId = workspaceId;\n }",
"@Test\r\n... | [
"0.657872",
"0.6380109",
"0.62008697",
"0.5976683",
"0.59373516",
"0.5839217",
"0.5566827",
"0.5448127",
"0.52786946",
"0.5269995",
"0.5196387",
"0.51607555",
"0.51189697",
"0.508889",
"0.5064193",
"0.50608283",
"0.50554603",
"0.50330585",
"0.49991024",
"0.49743348",
"0.49724... | 0.0 | -1 |
Activate model Activate model | public ModelApiResponse activateModel(String workspaceId, String modelId) throws ApiException {
ApiResponse<ModelApiResponse> localVarResp = activateModelWithHttpInfo(workspaceId, modelId);
return localVarResp.getData();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void activate(){\r\n\r\n\t}",
"public void activate() {\n\t\t// TODO Auto-generated method stub\n\t}",
"public void activate()\n {\n }",
"public void activate(){\r\n\t\tactive=true;\r\n\t}",
"public void activate() \r\n\t\t{\r\n\t\tif (!isActive()) \r\n\t\t\t{\r\n\t\t\tsuper.activate();\r\n\t\... | [
"0.71409076",
"0.7083861",
"0.70129174",
"0.6981465",
"0.69495994",
"0.69217527",
"0.6918568",
"0.68872064",
"0.68854445",
"0.68730575",
"0.6814608",
"0.6762886",
"0.6762886",
"0.6754985",
"0.6682718",
"0.66654223",
"0.66654223",
"0.6578808",
"0.6564425",
"0.6564425",
"0.6556... | 0.0 | -1 |
Activate model Activate model | public ApiResponse<ModelApiResponse> activateModelWithHttpInfo(String workspaceId, String modelId) throws ApiException {
okhttp3.Call localVarCall = activateModelValidateBeforeCall(workspaceId, modelId, null);
Type localVarReturnType = new TypeToken<ModelApiResponse>(){}.getType();
return localVarApiClient.execute(localVarCall, localVarReturnType);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void activate(){\r\n\r\n\t}",
"public void activate() {\n\t\t// TODO Auto-generated method stub\n\t}",
"public void activate()\n {\n }",
"public void activate(){\r\n\t\tactive=true;\r\n\t}",
"public void activate() \r\n\t\t{\r\n\t\tif (!isActive()) \r\n\t\t\t{\r\n\t\t\tsuper.activate();\r\n\t\... | [
"0.71409076",
"0.7083861",
"0.70129174",
"0.6981465",
"0.69495994",
"0.69217527",
"0.6918568",
"0.68872064",
"0.68854445",
"0.68730575",
"0.6814608",
"0.6762886",
"0.6762886",
"0.6754985",
"0.6682718",
"0.66654223",
"0.66654223",
"0.6578808",
"0.6564425",
"0.6564425",
"0.6556... | 0.0 | -1 |
Activate model (asynchronously) Activate model | public okhttp3.Call activateModelAsync(String workspaceId, String modelId, final ApiCallback<ModelApiResponse> _callback) throws ApiException {
okhttp3.Call localVarCall = activateModelValidateBeforeCall(workspaceId, modelId, _callback);
Type localVarReturnType = new TypeToken<ModelApiResponse>(){}.getType();
localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback);
return localVarCall;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public final void activate(){\n waitingToExecute = true;\n }",
"public void Activate() {\n state.Activate();\n }",
"public void activate() {\n if (!isResumed) {\n isToBeActivated = true;\n return;\n }\n\n if (isLocked) {\n return;\n ... | [
"0.68559086",
"0.6711729",
"0.6465783",
"0.6420745",
"0.6402435",
"0.6361613",
"0.63577783",
"0.6314706",
"0.6295195",
"0.6295195",
"0.62794703",
"0.62586814",
"0.62360024",
"0.6213273",
"0.6181432",
"0.6181432",
"0.6178614",
"0.61658156",
"0.6160523",
"0.61538726",
"0.614856... | 0.0 | -1 |
Build call for addTrainingData | public okhttp3.Call addTrainingDataCall(String workspaceId, String modelId, TrainingData trainingData, final ApiCallback _callback) throws ApiException {
Object localVarPostBody = trainingData;
// create path and map variables
String localVarPath = "/workspaces/{workspaceId}/models/{modelId}/data"
.replaceAll("\\{" + "workspaceId" + "\\}", localVarApiClient.escapeString(workspaceId.toString()))
.replaceAll("\\{" + "modelId" + "\\}", localVarApiClient.escapeString(modelId.toString()));
List<Pair> localVarQueryParams = new ArrayList<Pair>();
List<Pair> localVarCollectionQueryParams = new ArrayList<Pair>();
Map<String, String> localVarHeaderParams = new HashMap<String, String>();
Map<String, String> localVarCookieParams = new HashMap<String, String>();
Map<String, Object> localVarFormParams = new HashMap<String, Object>();
final String[] localVarAccepts = {
"application/json"
};
final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts);
if (localVarAccept != null) {
localVarHeaderParams.put("Accept", localVarAccept);
}
final String[] localVarContentTypes = {
"application/json", "multipart/form-data"
};
final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes);
localVarHeaderParams.put("Content-Type", localVarContentType);
String[] localVarAuthNames = new String[] { "apiAuth" };
return localVarApiClient.buildCall(localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void build() throws ClusException, IOException {\n m_List = getRun().getDataSet(ClusRun.TRAINSET).getData(); // m_Data;\n }",
"public void addTrainingData(String value,String label);",
"public abstract void build(ClassifierData<U> inputData);",
"@Test\r\n public void testDataBuilder_Init(... | [
"0.67529875",
"0.62905747",
"0.6157435",
"0.6074209",
"0.60212684",
"0.58581805",
"0.5841464",
"0.58342916",
"0.5682751",
"0.56624204",
"0.5620533",
"0.5558253",
"0.55292106",
"0.5508266",
"0.5351403",
"0.5334326",
"0.5315059",
"0.52487934",
"0.5244484",
"0.52422935",
"0.5181... | 0.0 | -1 |
verify the required parameter 'workspaceId' is set | @SuppressWarnings("rawtypes")
private okhttp3.Call addTrainingDataValidateBeforeCall(String workspaceId, String modelId, TrainingData trainingData, final ApiCallback _callback) throws ApiException {
if (workspaceId == null) {
throw new ApiException("Missing the required parameter 'workspaceId' when calling addTrainingData(Async)");
}
// verify the required parameter 'modelId' is set
if (modelId == null) {
throw new ApiException("Missing the required parameter 'modelId' when calling addTrainingData(Async)");
}
// verify the required parameter 'trainingData' is set
if (trainingData == null) {
throw new ApiException("Missing the required parameter 'trainingData' when calling addTrainingData(Async)");
}
okhttp3.Call localVarCall = addTrainingDataCall(workspaceId, modelId, trainingData, _callback);
return localVarCall;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Test\n public void workspaceTest() throws ApiException {\n String workspaceId = null;\n Workspace response = api.workspace(workspaceId);\n\n // TODO: test validations\n }",
"public void setWorkspaceId(String workspaceId) {\n this.workspaceId = workspaceId;\n }",
"@Test\r\n... | [
"0.6578984",
"0.6380645",
"0.62011063",
"0.5977198",
"0.59380245",
"0.5839845",
"0.5567125",
"0.544816",
"0.52776176",
"0.52677304",
"0.51942354",
"0.516205",
"0.5121242",
"0.5090792",
"0.50634235",
"0.50583386",
"0.50574636",
"0.5034166",
"0.4995936",
"0.4972392",
"0.4972326... | 0.0 | -1 |
Add a training data object for a model Create a new model in the workspace identified in the workspaceId path paramter. | public ModelApiResponse addTrainingData(String workspaceId, String modelId, TrainingData trainingData) throws ApiException {
ApiResponse<ModelApiResponse> localVarResp = addTrainingDataWithHttpInfo(workspaceId, modelId, trainingData);
return localVarResp.getData();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public okhttp3.Call addTrainingDataAsync(String workspaceId, String modelId, TrainingData trainingData, final ApiCallback<ModelApiResponse> _callback) throws ApiException {\n\n okhttp3.Call localVarCall = addTrainingDataValidateBeforeCall(workspaceId, modelId, trainingData, _callback);\n Type localVa... | [
"0.6347888",
"0.6123204",
"0.596997",
"0.5890689",
"0.57607377",
"0.5657058",
"0.56450146",
"0.56437814",
"0.5611535",
"0.5608157",
"0.55933607",
"0.55851114",
"0.554919",
"0.55183715",
"0.5464826",
"0.53728247",
"0.53179675",
"0.53127646",
"0.53039134",
"0.52872264",
"0.5221... | 0.6382921 | 0 |
Add a training data object for a model Create a new model in the workspace identified in the workspaceId path paramter. | public ApiResponse<ModelApiResponse> addTrainingDataWithHttpInfo(String workspaceId, String modelId, TrainingData trainingData) throws ApiException {
okhttp3.Call localVarCall = addTrainingDataValidateBeforeCall(workspaceId, modelId, trainingData, null);
Type localVarReturnType = new TypeToken<ModelApiResponse>(){}.getType();
return localVarApiClient.execute(localVarCall, localVarReturnType);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public ModelApiResponse addTrainingData(String workspaceId, String modelId, TrainingData trainingData) throws ApiException {\n ApiResponse<ModelApiResponse> localVarResp = addTrainingDataWithHttpInfo(workspaceId, modelId, trainingData);\n return localVarResp.getData();\n }",
"public okhttp3.Call... | [
"0.6382921",
"0.6347888",
"0.6123204",
"0.596997",
"0.5890689",
"0.57607377",
"0.5657058",
"0.56450146",
"0.56437814",
"0.5611535",
"0.55933607",
"0.55851114",
"0.554919",
"0.55183715",
"0.5464826",
"0.53728247",
"0.53179675",
"0.53127646",
"0.53039134",
"0.52872264",
"0.5221... | 0.5608157 | 10 |
Add a training data object for a model (asynchronously) Create a new model in the workspace identified in the workspaceId path paramter. | public okhttp3.Call addTrainingDataAsync(String workspaceId, String modelId, TrainingData trainingData, final ApiCallback<ModelApiResponse> _callback) throws ApiException {
okhttp3.Call localVarCall = addTrainingDataValidateBeforeCall(workspaceId, modelId, trainingData, _callback);
Type localVarReturnType = new TypeToken<ModelApiResponse>(){}.getType();
localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback);
return localVarCall;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public okhttp3.Call addTrainingDataCall(String workspaceId, String modelId, TrainingData trainingData, final ApiCallback _callback) throws ApiException {\n Object localVarPostBody = trainingData;\n\n // create path and map variables\n String localVarPath = \"/workspaces/{workspaceId}/models/{m... | [
"0.5886645",
"0.5773784",
"0.57472664",
"0.5679258",
"0.560424",
"0.55676234",
"0.55201447",
"0.55049175",
"0.5360046",
"0.53436273",
"0.532814",
"0.52802664",
"0.5245269",
"0.5225813",
"0.52180433",
"0.52164215",
"0.51958984",
"0.5186439",
"0.5176003",
"0.5171653",
"0.514283... | 0.65540636 | 0 |
Build call for createModel | public okhttp3.Call createModelCall(String workspaceId, Model model, final ApiCallback _callback) throws ApiException {
Object localVarPostBody = model;
// create path and map variables
String localVarPath = "/workspaces/{workspaceId}/models"
.replaceAll("\\{" + "workspaceId" + "\\}", localVarApiClient.escapeString(workspaceId.toString()));
List<Pair> localVarQueryParams = new ArrayList<Pair>();
List<Pair> localVarCollectionQueryParams = new ArrayList<Pair>();
Map<String, String> localVarHeaderParams = new HashMap<String, String>();
Map<String, String> localVarCookieParams = new HashMap<String, String>();
Map<String, Object> localVarFormParams = new HashMap<String, Object>();
final String[] localVarAccepts = {
"application/json"
};
final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts);
if (localVarAccept != null) {
localVarHeaderParams.put("Accept", localVarAccept);
}
final String[] localVarContentTypes = {
"application/json"
};
final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes);
localVarHeaderParams.put("Content-Type", localVarContentType);
String[] localVarAuthNames = new String[] { "apiAuth" };
return localVarApiClient.buildCall(localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"Build_Model() {\n\n }",
"public void buildModel() {\n }",
"public void buildModel(){\r\n\t\t\r\n\t\tsuper.buildModel();\r\n\t\t\r\n\t}",
"Model createModel();",
"Model createModel();",
"Model createModel();",
"Model createModel();",
"Model createModel();",
"Model createModel();",
"Model cre... | [
"0.7225402",
"0.7108561",
"0.6381432",
"0.63314676",
"0.63314676",
"0.63314676",
"0.63314676",
"0.63314676",
"0.63314676",
"0.63314676",
"0.6179146",
"0.58920944",
"0.57371986",
"0.5660615",
"0.56603396",
"0.55587757",
"0.55421525",
"0.55336225",
"0.55090666",
"0.5456042",
"0... | 0.0 | -1 |
verify the required parameter 'workspaceId' is set | @SuppressWarnings("rawtypes")
private okhttp3.Call createModelValidateBeforeCall(String workspaceId, Model model, final ApiCallback _callback) throws ApiException {
if (workspaceId == null) {
throw new ApiException("Missing the required parameter 'workspaceId' when calling createModel(Async)");
}
// verify the required parameter 'model' is set
if (model == null) {
throw new ApiException("Missing the required parameter 'model' when calling createModel(Async)");
}
okhttp3.Call localVarCall = createModelCall(workspaceId, model, _callback);
return localVarCall;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Test\n public void workspaceTest() throws ApiException {\n String workspaceId = null;\n Workspace response = api.workspace(workspaceId);\n\n // TODO: test validations\n }",
"public void setWorkspaceId(String workspaceId) {\n this.workspaceId = workspaceId;\n }",
"@Test\r\n... | [
"0.65769523",
"0.63816416",
"0.6199737",
"0.59761405",
"0.59368694",
"0.5839368",
"0.5567419",
"0.54488504",
"0.527746",
"0.52685773",
"0.5195171",
"0.5161648",
"0.51206905",
"0.5089432",
"0.50643146",
"0.5059629",
"0.5057854",
"0.50335026",
"0.4998055",
"0.49727345",
"0.4972... | 0.0 | -1 |
Create a new model in the workspace Create a new model in the workspace identified in the workspaceId path paramter. | public ModelApiResponse createModel(String workspaceId, Model model) throws ApiException {
ApiResponse<ModelApiResponse> localVarResp = createModelWithHttpInfo(workspaceId, model);
return localVarResp.getData();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"void create(Model model) throws Exception;",
"Model createModel();",
"Model createModel();",
"Model createModel();",
"Model createModel();",
"Model createModel();",
"Model createModel();",
"Model createModel();",
"public <T> T createModel(T referenceModel) throws CreateModelException {\n ret... | [
"0.6144958",
"0.60603565",
"0.60603565",
"0.60603565",
"0.60603565",
"0.60603565",
"0.60603565",
"0.60603565",
"0.57156277",
"0.5669984",
"0.56559426",
"0.5617657",
"0.56148636",
"0.5553444",
"0.5531478",
"0.54093367",
"0.5394779",
"0.5387829",
"0.53766656",
"0.5374657",
"0.5... | 0.5194778 | 26 |
Create a new model in the workspace Create a new model in the workspace identified in the workspaceId path paramter. | public ApiResponse<ModelApiResponse> createModelWithHttpInfo(String workspaceId, Model model) throws ApiException {
okhttp3.Call localVarCall = createModelValidateBeforeCall(workspaceId, model, null);
Type localVarReturnType = new TypeToken<ModelApiResponse>(){}.getType();
return localVarApiClient.execute(localVarCall, localVarReturnType);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"void create(Model model) throws Exception;",
"Model createModel();",
"Model createModel();",
"Model createModel();",
"Model createModel();",
"Model createModel();",
"Model createModel();",
"Model createModel();",
"public <T> T createModel(T referenceModel) throws CreateModelException {\n ret... | [
"0.6147311",
"0.60625845",
"0.60625845",
"0.60625845",
"0.60625845",
"0.60625845",
"0.60625845",
"0.60625845",
"0.57166845",
"0.5670537",
"0.5656197",
"0.5618679",
"0.56167257",
"0.55516386",
"0.5531513",
"0.5410468",
"0.539747",
"0.5388131",
"0.53776264",
"0.5374237",
"0.534... | 0.4966068 | 37 |
Create a new model in the workspace (asynchronously) Create a new model in the workspace identified in the workspaceId path paramter. | public okhttp3.Call createModelAsync(String workspaceId, Model model, final ApiCallback<ModelApiResponse> _callback) throws ApiException {
okhttp3.Call localVarCall = createModelValidateBeforeCall(workspaceId, model, _callback);
Type localVarReturnType = new TypeToken<ModelApiResponse>(){}.getType();
localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback);
return localVarCall;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"void create(Model model) throws Exception;",
"Model createModel();",
"Model createModel();",
"Model createModel();",
"Model createModel();",
"Model createModel();",
"Model createModel();",
"Model createModel();",
"public static void createAllModels() throws IOException, InterruptedException {\n ... | [
"0.5906418",
"0.5436468",
"0.5436468",
"0.5436468",
"0.5436468",
"0.5436468",
"0.5436468",
"0.5436468",
"0.5349992",
"0.53473353",
"0.51766485",
"0.5153723",
"0.5145227",
"0.50935906",
"0.5080746",
"0.5076547",
"0.50020766",
"0.4975827",
"0.49755165",
"0.49747667",
"0.4951268... | 0.61511004 | 0 |
Build call for deactivateModel | public okhttp3.Call deactivateModelCall(String workspaceId, String modelId, final ApiCallback _callback) throws ApiException {
Object localVarPostBody = null;
// create path and map variables
String localVarPath = "/workspaces/{workspaceId}/models/{modelId}/deactivate"
.replaceAll("\\{" + "workspaceId" + "\\}", localVarApiClient.escapeString(workspaceId.toString()))
.replaceAll("\\{" + "modelId" + "\\}", localVarApiClient.escapeString(modelId.toString()));
List<Pair> localVarQueryParams = new ArrayList<Pair>();
List<Pair> localVarCollectionQueryParams = new ArrayList<Pair>();
Map<String, String> localVarHeaderParams = new HashMap<String, String>();
Map<String, String> localVarCookieParams = new HashMap<String, String>();
Map<String, Object> localVarFormParams = new HashMap<String, Object>();
final String[] localVarAccepts = {
"application/json"
};
final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts);
if (localVarAccept != null) {
localVarHeaderParams.put("Accept", localVarAccept);
}
final String[] localVarContentTypes = {
};
final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes);
localVarHeaderParams.put("Content-Type", localVarContentType);
String[] localVarAuthNames = new String[] { "apiAuth" };
return localVarApiClient.buildCall(localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n public void deactivate() {\n \n }",
"public void deactivate();",
"@Override\n\tpublic void deactivate() {\n\t}",
"@Override\r\n\tpublic void deactivate() {\n\t\t\r\n\t}",
"@Override\n\tpublic void deactivate() {\n\t\t\n\t}",
"public abstract void deactivate();",
"vo... | [
"0.60144407",
"0.5971747",
"0.5937248",
"0.5925733",
"0.5906834",
"0.58091843",
"0.575352",
"0.57095206",
"0.5622869",
"0.55960155",
"0.5557026",
"0.5546168",
"0.5545725",
"0.54827964",
"0.543579",
"0.54344696",
"0.5376565",
"0.5372555",
"0.5333872",
"0.5331779",
"0.5289077",... | 0.47192863 | 38 |
verify the required parameter 'workspaceId' is set | @SuppressWarnings("rawtypes")
private okhttp3.Call deactivateModelValidateBeforeCall(String workspaceId, String modelId, final ApiCallback _callback) throws ApiException {
if (workspaceId == null) {
throw new ApiException("Missing the required parameter 'workspaceId' when calling deactivateModel(Async)");
}
// verify the required parameter 'modelId' is set
if (modelId == null) {
throw new ApiException("Missing the required parameter 'modelId' when calling deactivateModel(Async)");
}
okhttp3.Call localVarCall = deactivateModelCall(workspaceId, modelId, _callback);
return localVarCall;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Test\n public void workspaceTest() throws ApiException {\n String workspaceId = null;\n Workspace response = api.workspace(workspaceId);\n\n // TODO: test validations\n }",
"public void setWorkspaceId(String workspaceId) {\n this.workspaceId = workspaceId;\n }",
"@Test\r\n... | [
"0.65769523",
"0.63816416",
"0.6199737",
"0.59761405",
"0.59368694",
"0.5839368",
"0.5567419",
"0.54488504",
"0.527746",
"0.52685773",
"0.5195171",
"0.5161648",
"0.51206905",
"0.5089432",
"0.50643146",
"0.5059629",
"0.5057854",
"0.50335026",
"0.4998055",
"0.49727345",
"0.4972... | 0.0 | -1 |
Deactivate model Deactivate model | public ModelApiResponse deactivateModel(String workspaceId, String modelId) throws ApiException {
ApiResponse<ModelApiResponse> localVarResp = deactivateModelWithHttpInfo(workspaceId, modelId);
return localVarResp.getData();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void deactivate();",
"public void deactivate() {\n\t\t// TODO Auto-generated method stub\n\t}",
"public void deactivate() \r\n\t\t{\r\n\t\tif (isActive()) \r\n\t\t\t{\r\n\t\t\tsuper.deactivate();\r\n\t\t\t((IModelElement) getModel()).removePropertyChangeListener(this);\r\n\t\t\t}\r\n\t\t}",
"@Override... | [
"0.74889237",
"0.7408495",
"0.72584087",
"0.72538906",
"0.7226877",
"0.7221228",
"0.71988004",
"0.7194278",
"0.71805435",
"0.71737957",
"0.716515",
"0.7086632",
"0.7035344",
"0.69768625",
"0.6911112",
"0.6808573",
"0.67987394",
"0.679558",
"0.67720324",
"0.67229706",
"0.65804... | 0.0 | -1 |
Deactivate model Deactivate model | public ApiResponse<ModelApiResponse> deactivateModelWithHttpInfo(String workspaceId, String modelId) throws ApiException {
okhttp3.Call localVarCall = deactivateModelValidateBeforeCall(workspaceId, modelId, null);
Type localVarReturnType = new TypeToken<ModelApiResponse>(){}.getType();
return localVarApiClient.execute(localVarCall, localVarReturnType);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void deactivate();",
"public void deactivate() {\n\t\t// TODO Auto-generated method stub\n\t}",
"public void deactivate() \r\n\t\t{\r\n\t\tif (isActive()) \r\n\t\t\t{\r\n\t\t\tsuper.deactivate();\r\n\t\t\t((IModelElement) getModel()).removePropertyChangeListener(this);\r\n\t\t\t}\r\n\t\t}",
"@Override... | [
"0.7488916",
"0.7407935",
"0.72574884",
"0.72535473",
"0.722651",
"0.7220847",
"0.7198022",
"0.719435",
"0.7180422",
"0.71739924",
"0.7164818",
"0.7086631",
"0.7035713",
"0.69773114",
"0.6910932",
"0.68084025",
"0.67986304",
"0.67951137",
"0.6771981",
"0.6722381",
"0.6579062"... | 0.0 | -1 |
Deactivate model (asynchronously) Deactivate model | public okhttp3.Call deactivateModelAsync(String workspaceId, String modelId, final ApiCallback<ModelApiResponse> _callback) throws ApiException {
okhttp3.Call localVarCall = deactivateModelValidateBeforeCall(workspaceId, modelId, _callback);
Type localVarReturnType = new TypeToken<ModelApiResponse>(){}.getType();
localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback);
return localVarCall;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void deactivate();",
"public abstract void deactivate();",
"@Override\r\n\tpublic void deactivate() {\n\t\t\r\n\t}",
"public void deactivate() {\n\t\tentity.deactivateInstance(this);\n\t}",
"void deactivate() throws ResourceActivatorException, InterruptedException, ExecutionException;",
"@Override... | [
"0.6939408",
"0.6743516",
"0.67244494",
"0.6708876",
"0.6671752",
"0.66618925",
"0.6651852",
"0.6649528",
"0.6649002",
"0.6605662",
"0.65883607",
"0.6506653",
"0.6490883",
"0.6457854",
"0.641367",
"0.63863945",
"0.63096625",
"0.62523717",
"0.6251186",
"0.6244423",
"0.62057346... | 0.532665 | 58 |
Build call for deleteModel | public okhttp3.Call deleteModelCall(String workspaceId, String modelId, final ApiCallback _callback) throws ApiException {
Object localVarPostBody = null;
// create path and map variables
String localVarPath = "/workspaces/{workspaceId}/models/{modelId}/delete"
.replaceAll("\\{" + "workspaceId" + "\\}", localVarApiClient.escapeString(workspaceId.toString()))
.replaceAll("\\{" + "modelId" + "\\}", localVarApiClient.escapeString(modelId.toString()));
List<Pair> localVarQueryParams = new ArrayList<Pair>();
List<Pair> localVarCollectionQueryParams = new ArrayList<Pair>();
Map<String, String> localVarHeaderParams = new HashMap<String, String>();
Map<String, String> localVarCookieParams = new HashMap<String, String>();
Map<String, Object> localVarFormParams = new HashMap<String, Object>();
final String[] localVarAccepts = {
"application/json"
};
final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts);
if (localVarAccept != null) {
localVarHeaderParams.put("Accept", localVarAccept);
}
final String[] localVarContentTypes = {
};
final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes);
localVarHeaderParams.put("Content-Type", localVarContentType);
String[] localVarAuthNames = new String[] { "apiAuth" };
return localVarApiClient.buildCall(localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public boolean delete(ModelObject obj);",
"private void actionDelete(final ImageDataModel modelData) {\r\n // Remove the item from Current List of GalleryHelperBaseOnId.class\r\n if (SharedPref.getListType(MediaVaultController.getSharedPreferencesInstance()).equals(Constant.LIST_VIEW)) {\r\n ... | [
"0.6078416",
"0.5823103",
"0.57274634",
"0.57252884",
"0.56986654",
"0.56957877",
"0.56411123",
"0.559201",
"0.559201",
"0.5591322",
"0.5548411",
"0.5508512",
"0.5503476",
"0.54778093",
"0.5477039",
"0.54687035",
"0.5465178",
"0.54518217",
"0.54096514",
"0.53865576",
"0.53456... | 0.0 | -1 |
verify the required parameter 'workspaceId' is set | @SuppressWarnings("rawtypes")
private okhttp3.Call deleteModelValidateBeforeCall(String workspaceId, String modelId, final ApiCallback _callback) throws ApiException {
if (workspaceId == null) {
throw new ApiException("Missing the required parameter 'workspaceId' when calling deleteModel(Async)");
}
// verify the required parameter 'modelId' is set
if (modelId == null) {
throw new ApiException("Missing the required parameter 'modelId' when calling deleteModel(Async)");
}
okhttp3.Call localVarCall = deleteModelCall(workspaceId, modelId, _callback);
return localVarCall;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Test\n public void workspaceTest() throws ApiException {\n String workspaceId = null;\n Workspace response = api.workspace(workspaceId);\n\n // TODO: test validations\n }",
"public void setWorkspaceId(String workspaceId) {\n this.workspaceId = workspaceId;\n }",
"@Test\r\n... | [
"0.657872",
"0.6380109",
"0.62008697",
"0.5976683",
"0.59373516",
"0.5839217",
"0.5566827",
"0.5448127",
"0.52786946",
"0.5269995",
"0.5196387",
"0.51607555",
"0.51189697",
"0.508889",
"0.5064193",
"0.50608283",
"0.50554603",
"0.50330585",
"0.49991024",
"0.49743348",
"0.49724... | 0.0 | -1 |
Delete model Delete model | public ModelApiResponse deleteModel(String workspaceId, String modelId) throws ApiException {
ApiResponse<ModelApiResponse> localVarResp = deleteModelWithHttpInfo(workspaceId, modelId);
return localVarResp.getData();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public boolean delete(ModelObject obj);",
"public void delete( final T model )\n\t{\n\t\tthis.dao.delete( model );\n\t}",
"public void delete(E model) {\n\t\tgetHibernateTemplate().delete(model);\r\n\t}",
"int deleteByPrimaryKey(String EQP_MODEL_ID);",
"@Override\n\tpublic boolean delete(Patient model) {\n... | [
"0.7669354",
"0.7668741",
"0.7554458",
"0.7175647",
"0.7097968",
"0.70418036",
"0.7018637",
"0.69724977",
"0.67465526",
"0.67054784",
"0.67054784",
"0.66786176",
"0.66703176",
"0.66638196",
"0.6617057",
"0.6617057",
"0.66166025",
"0.6615622",
"0.657795",
"0.6576659",
"0.65674... | 0.0 | -1 |
Delete model Delete model | public ApiResponse<ModelApiResponse> deleteModelWithHttpInfo(String workspaceId, String modelId) throws ApiException {
okhttp3.Call localVarCall = deleteModelValidateBeforeCall(workspaceId, modelId, null);
Type localVarReturnType = new TypeToken<ModelApiResponse>(){}.getType();
return localVarApiClient.execute(localVarCall, localVarReturnType);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public boolean delete(ModelObject obj);",
"public void delete( final T model )\n\t{\n\t\tthis.dao.delete( model );\n\t}",
"public void delete(E model) {\n\t\tgetHibernateTemplate().delete(model);\r\n\t}",
"int deleteByPrimaryKey(String EQP_MODEL_ID);",
"@Override\n\tpublic boolean delete(Patient model) {\n... | [
"0.7669354",
"0.7668741",
"0.7554458",
"0.7175647",
"0.7097968",
"0.70418036",
"0.7018637",
"0.69724977",
"0.67465526",
"0.67054784",
"0.67054784",
"0.66786176",
"0.66703176",
"0.66638196",
"0.6617057",
"0.6617057",
"0.66166025",
"0.6615622",
"0.657795",
"0.6576659",
"0.65674... | 0.0 | -1 |
Delete model (asynchronously) Delete model | public okhttp3.Call deleteModelAsync(String workspaceId, String modelId, final ApiCallback<ModelApiResponse> _callback) throws ApiException {
okhttp3.Call localVarCall = deleteModelValidateBeforeCall(workspaceId, modelId, _callback);
Type localVarReturnType = new TypeToken<ModelApiResponse>(){}.getType();
localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback);
return localVarCall;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public boolean delete(Base model) throws IOException {\n\t\treturn Core.delete(model, getHttpMethodExecutor());\n\t}",
"@Override\n public CompletableFuture<Void> delete() {\n return delete(false);\n }",
"public boolean delete(ModelObject obj);",
"@Override\n public CompletableFuture<Void> de... | [
"0.68417275",
"0.67508537",
"0.6725454",
"0.66866034",
"0.6651639",
"0.66179526",
"0.6337427",
"0.6305941",
"0.62452",
"0.6224726",
"0.6220069",
"0.61179924",
"0.5981034",
"0.59488946",
"0.59406775",
"0.5920109",
"0.5908005",
"0.5886284",
"0.58691806",
"0.5863133",
"0.5858483... | 0.0 | -1 |
Build call for predict | public okhttp3.Call predictCall(String workspaceId, String modelId, PredictionRequest predictionRequest, final ApiCallback _callback) throws ApiException {
Object localVarPostBody = predictionRequest;
// create path and map variables
String localVarPath = "/workspaces/{workspaceId}/models/{modelId}/predict"
.replaceAll("\\{" + "workspaceId" + "\\}", localVarApiClient.escapeString(workspaceId.toString()))
.replaceAll("\\{" + "modelId" + "\\}", localVarApiClient.escapeString(modelId.toString()));
List<Pair> localVarQueryParams = new ArrayList<Pair>();
List<Pair> localVarCollectionQueryParams = new ArrayList<Pair>();
Map<String, String> localVarHeaderParams = new HashMap<String, String>();
Map<String, String> localVarCookieParams = new HashMap<String, String>();
Map<String, Object> localVarFormParams = new HashMap<String, Object>();
final String[] localVarAccepts = {
"application/json"
};
final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts);
if (localVarAccept != null) {
localVarHeaderParams.put("Accept", localVarAccept);
}
final String[] localVarContentTypes = {
"application/json"
};
final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes);
localVarHeaderParams.put("Content-Type", localVarContentType);
String[] localVarAuthNames = new String[] { "apiAuth" };
return localVarApiClient.buildCall(localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public PredictorListener buildPredictor();",
"public abstract int predict(double[] testingData);",
"@Override\n public String predict (final ArrayList<String> values) {\n final ArrayList<Double> annExX = FloatConverter.valuesToDouble(values, attrs);\n // Get predict of ANN.\n final Arra... | [
"0.64997804",
"0.6367399",
"0.61365455",
"0.61222374",
"0.6117252",
"0.6105843",
"0.58246183",
"0.57972693",
"0.5754453",
"0.57177985",
"0.56969553",
"0.5662439",
"0.56135833",
"0.5578794",
"0.55396044",
"0.5536828",
"0.5523951",
"0.5506289",
"0.5477638",
"0.5474992",
"0.5464... | 0.0 | -1 |
verify the required parameter 'workspaceId' is set | @SuppressWarnings("rawtypes")
private okhttp3.Call predictValidateBeforeCall(String workspaceId, String modelId, PredictionRequest predictionRequest, final ApiCallback _callback) throws ApiException {
if (workspaceId == null) {
throw new ApiException("Missing the required parameter 'workspaceId' when calling predict(Async)");
}
// verify the required parameter 'modelId' is set
if (modelId == null) {
throw new ApiException("Missing the required parameter 'modelId' when calling predict(Async)");
}
// verify the required parameter 'predictionRequest' is set
if (predictionRequest == null) {
throw new ApiException("Missing the required parameter 'predictionRequest' when calling predict(Async)");
}
okhttp3.Call localVarCall = predictCall(workspaceId, modelId, predictionRequest, _callback);
return localVarCall;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Test\n public void workspaceTest() throws ApiException {\n String workspaceId = null;\n Workspace response = api.workspace(workspaceId);\n\n // TODO: test validations\n }",
"public void setWorkspaceId(String workspaceId) {\n this.workspaceId = workspaceId;\n }",
"@Test\r\n... | [
"0.6578984",
"0.6380645",
"0.62011063",
"0.5977198",
"0.59380245",
"0.5839845",
"0.5567125",
"0.544816",
"0.52776176",
"0.52677304",
"0.51942354",
"0.516205",
"0.5121242",
"0.5090792",
"0.50634235",
"0.50583386",
"0.50574636",
"0.5034166",
"0.4995936",
"0.4972392",
"0.4972326... | 0.0 | -1 |
Make a prediction using a model Create anew model in the workspace identified in the workspaceId path paramter. | public ModelApiResponse predict(String workspaceId, String modelId, PredictionRequest predictionRequest) throws ApiException {
ApiResponse<ModelApiResponse> localVarResp = predictWithHttpInfo(workspaceId, modelId, predictionRequest);
return localVarResp.getData();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public okhttp3.Call predictAsync(String workspaceId, String modelId, PredictionRequest predictionRequest, final ApiCallback<ModelApiResponse> _callback) throws ApiException {\n\n okhttp3.Call localVarCall = predictValidateBeforeCall(workspaceId, modelId, predictionRequest, _callback);\n Type localVar... | [
"0.6016677",
"0.5855812",
"0.5716223",
"0.5632831",
"0.55548507",
"0.54860926",
"0.5459677",
"0.54485756",
"0.53719664",
"0.53703374",
"0.53341115",
"0.53341115",
"0.53341115",
"0.53341115",
"0.53341115",
"0.53341115",
"0.53341115",
"0.5316075",
"0.5213517",
"0.52106255",
"0.... | 0.5395559 | 8 |
Make a prediction using a model Create anew model in the workspace identified in the workspaceId path paramter. | public ApiResponse<ModelApiResponse> predictWithHttpInfo(String workspaceId, String modelId, PredictionRequest predictionRequest) throws ApiException {
okhttp3.Call localVarCall = predictValidateBeforeCall(workspaceId, modelId, predictionRequest, null);
Type localVarReturnType = new TypeToken<ModelApiResponse>(){}.getType();
return localVarApiClient.execute(localVarCall, localVarReturnType);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public okhttp3.Call predictAsync(String workspaceId, String modelId, PredictionRequest predictionRequest, final ApiCallback<ModelApiResponse> _callback) throws ApiException {\n\n okhttp3.Call localVarCall = predictValidateBeforeCall(workspaceId, modelId, predictionRequest, _callback);\n Type localVar... | [
"0.6016677",
"0.5855812",
"0.5716223",
"0.5632831",
"0.55548507",
"0.54860926",
"0.5459677",
"0.54485756",
"0.5395559",
"0.53719664",
"0.53703374",
"0.53341115",
"0.53341115",
"0.53341115",
"0.53341115",
"0.53341115",
"0.53341115",
"0.53341115",
"0.5316075",
"0.5213517",
"0.5... | 0.49199575 | 39 |
Make a prediction using a model (asynchronously) Create anew model in the workspace identified in the workspaceId path paramter. | public okhttp3.Call predictAsync(String workspaceId, String modelId, PredictionRequest predictionRequest, final ApiCallback<ModelApiResponse> _callback) throws ApiException {
okhttp3.Call localVarCall = predictValidateBeforeCall(workspaceId, modelId, predictionRequest, _callback);
Type localVarReturnType = new TypeToken<ModelApiResponse>(){}.getType();
localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback);
return localVarCall;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private synchronized void downloadModel(String modelName) {\n final FirebaseCustomRemoteModel remoteModel =\n new FirebaseCustomRemoteModel\n .Builder(modelName)\n .build();\n FirebaseModelDownloadConditions conditions =\n new FirebaseModelDownloadConditions.Builder()\n ... | [
"0.6092642",
"0.58520305",
"0.58091486",
"0.56970173",
"0.56578976",
"0.5565544",
"0.5531188",
"0.5526286",
"0.53522944",
"0.5319854",
"0.5318981",
"0.5295158",
"0.5211398",
"0.51754874",
"0.5163502",
"0.51384854",
"0.5116843",
"0.5114281",
"0.50714236",
"0.5018425",
"0.49301... | 0.63348794 | 0 |
Build call for showModelStats | public okhttp3.Call showModelStatsCall(String workspaceId, String modelId, final ApiCallback _callback) throws ApiException {
Object localVarPostBody = null;
// create path and map variables
String localVarPath = "/workspaces/{workspaceId}/models/{modelId}/stats"
.replaceAll("\\{" + "workspaceId" + "\\}", localVarApiClient.escapeString(workspaceId.toString()))
.replaceAll("\\{" + "modelId" + "\\}", localVarApiClient.escapeString(modelId.toString()));
List<Pair> localVarQueryParams = new ArrayList<Pair>();
List<Pair> localVarCollectionQueryParams = new ArrayList<Pair>();
Map<String, String> localVarHeaderParams = new HashMap<String, String>();
Map<String, String> localVarCookieParams = new HashMap<String, String>();
Map<String, Object> localVarFormParams = new HashMap<String, Object>();
final String[] localVarAccepts = {
"application/json"
};
final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts);
if (localVarAccept != null) {
localVarHeaderParams.put("Accept", localVarAccept);
}
final String[] localVarContentTypes = {
};
final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes);
localVarHeaderParams.put("Content-Type", localVarContentType);
String[] localVarAuthNames = new String[] { "apiAuth" };
return localVarApiClient.buildCall(localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void buildModel() {\n }",
"@Override\n public Object build() {\n StatsAggregationBuilder stats = AggregationBuilders.stats(this.getName());\n\n for (ParamComposite param : this.getChildren().stream()\n .filter(child -> ParamComposite.class.isAssignableFro... | [
"0.5781387",
"0.5738897",
"0.56485134",
"0.5448879",
"0.5324184",
"0.5269172",
"0.51469636",
"0.5119213",
"0.51155835",
"0.5071663",
"0.5061615",
"0.5027826",
"0.5000658",
"0.49572116",
"0.49377552",
"0.49078685",
"0.49044484",
"0.48851177",
"0.48749003",
"0.48532867",
"0.484... | 0.46547773 | 42 |
verify the required parameter 'workspaceId' is set | @SuppressWarnings("rawtypes")
private okhttp3.Call showModelStatsValidateBeforeCall(String workspaceId, String modelId, final ApiCallback _callback) throws ApiException {
if (workspaceId == null) {
throw new ApiException("Missing the required parameter 'workspaceId' when calling showModelStats(Async)");
}
// verify the required parameter 'modelId' is set
if (modelId == null) {
throw new ApiException("Missing the required parameter 'modelId' when calling showModelStats(Async)");
}
okhttp3.Call localVarCall = showModelStatsCall(workspaceId, modelId, _callback);
return localVarCall;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Test\n public void workspaceTest() throws ApiException {\n String workspaceId = null;\n Workspace response = api.workspace(workspaceId);\n\n // TODO: test validations\n }",
"public void setWorkspaceId(String workspaceId) {\n this.workspaceId = workspaceId;\n }",
"@Test\r\n... | [
"0.65769523",
"0.63816416",
"0.6199737",
"0.59761405",
"0.59368694",
"0.5839368",
"0.5567419",
"0.54488504",
"0.527746",
"0.52685773",
"0.5195171",
"0.5161648",
"0.51206905",
"0.5089432",
"0.50643146",
"0.5059629",
"0.5057854",
"0.50335026",
"0.4998055",
"0.49727345",
"0.4972... | 0.0 | -1 |
Shows model stats Shows the model score and last training time | public ModelApiResponse showModelStats(String workspaceId, String modelId) throws ApiException {
ApiResponse<ModelApiResponse> localVarResp = showModelStatsWithHttpInfo(workspaceId, modelId);
return localVarResp.getData();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void statistics(){\n System.out.println(this.scoreboard.toString());\n }",
"protected float computeModelScoreOnTraining() {\n/* 508 */ float s = computeModelScoreOnTraining(0, this.samples.size() - 1, 0);\n/* 509 */ s /= this.samples.size();\n/* 510 */ return s;\n/* */ }",
"public ... | [
"0.64425766",
"0.64072675",
"0.606486",
"0.6048775",
"0.5960552",
"0.5960219",
"0.5948131",
"0.5870407",
"0.5734422",
"0.56883514",
"0.56846815",
"0.5666646",
"0.5660924",
"0.56575996",
"0.5627375",
"0.55897975",
"0.5572806",
"0.5556538",
"0.5481791",
"0.54722154",
"0.5427127... | 0.0 | -1 |
Shows model stats Shows the model score and last training time | public ApiResponse<ModelApiResponse> showModelStatsWithHttpInfo(String workspaceId, String modelId) throws ApiException {
okhttp3.Call localVarCall = showModelStatsValidateBeforeCall(workspaceId, modelId, null);
Type localVarReturnType = new TypeToken<ModelApiResponse>(){}.getType();
return localVarApiClient.execute(localVarCall, localVarReturnType);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void statistics(){\n System.out.println(this.scoreboard.toString());\n }",
"protected float computeModelScoreOnTraining() {\n/* 508 */ float s = computeModelScoreOnTraining(0, this.samples.size() - 1, 0);\n/* 509 */ s /= this.samples.size();\n/* 510 */ return s;\n/* */ }",
"public ... | [
"0.64437425",
"0.6407713",
"0.60655755",
"0.60490453",
"0.5961374",
"0.596018",
"0.5949516",
"0.58710873",
"0.5736073",
"0.568764",
"0.5684327",
"0.56659985",
"0.566184",
"0.5657899",
"0.56281525",
"0.5591242",
"0.5572937",
"0.5557796",
"0.54825515",
"0.5472439",
"0.54272467"... | 0.0 | -1 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.