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 |
|---|---|---|---|---|---|---|
Set number to adapter. | private void setNumber(final int pos, final String number) {
if (pos < 0 || pos >= this.objects.size()) {
Preferences.this.objects.add(number);
} else {
Preferences.this.objects.set(pos, number);
}
Preferences.this.adapter.notifyDataSetChanged();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"void setNumber(int num) {\r\n\t\tnumber = num;\r\n\t}",
"public void setNumber(int number)\n {\n this.number = number;\n }",
"public void setNumber(int number) {\r\n\t\tthis.num = number;\r\n\t}",
"public void setNumber(String name, int value) {\n itemNumbers.put(name, value);\n }",
"pub... | [
"0.6909254",
"0.68034095",
"0.6791689",
"0.6770674",
"0.675652",
"0.6753719",
"0.672215",
"0.66374177",
"0.6621348",
"0.6605304",
"0.6605304",
"0.6605304",
"0.65497255",
"0.64965963",
"0.64202344",
"0.6316056",
"0.6302861",
"0.627217",
"0.62647384",
"0.6241831",
"0.6182982",
... | 0.6601253 | 12 |
Add or edit an item. | private void addEdit(final int pos) {
final AlertDialog.Builder b = new AlertDialog.Builder(this);
b.setTitle(R.string.add_number);
b.setCancelable(true);
final EditText et = new EditText(this);
if (pos >= 0) {
et.setText(this.objects.get(pos));
}
b.setView(et);
b.setNegativeButton(android.R.string.cancel, null);
b.setPositiveButton(android.R.string.ok,
new DialogInterface.OnClickListener() {
@Override
public void onClick(final DialogInterface dialog,
final int which) {
final String number = et.getText().toString();
if (number == null || number.length() == 0) {
return;
}
Preferences.this.setNumber(pos, number);
Preferences.this.findViewById(R.id.add_hint)
.setVisibility(View.GONE);
}
});
b.setNeutralButton(R.string.contacts,
new DialogInterface.OnClickListener() {
@Override
public void onClick(final DialogInterface dialog,
final int which) {
final Intent intent = ContactsWrapper.getInstance()
.getPickPhoneIntent();
Preferences.this
.startActivityForResult(intent, pos + 1);
}
});
b.show();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"protected abstract void editItem();",
"void add(Item item);",
"public abstract void addItem(AbstractItemAPI item);",
"public void setEditedItem(Object item) {editedItem = item;}",
"Item update(Item item);",
"@attribute(value = \"\", required = false)\r\n\tpublic void addItem(Item i) {\r\n\t}",
"public ... | [
"0.7420294",
"0.72789234",
"0.69057184",
"0.6886352",
"0.6876168",
"0.6724139",
"0.65786666",
"0.6551235",
"0.6545374",
"0.6541552",
"0.6491439",
"0.648827",
"0.64581114",
"0.64581114",
"0.64224887",
"0.6384609",
"0.6384481",
"0.6379958",
"0.637201",
"0.63693637",
"0.63522774... | 0.0 | -1 |
Export un fichier SRT sous forme de flux. | public byte[] export() {
ByteArrayOutputStream bos = new ByteArrayOutputStream();
try {
for (Ligne ligne : lignes) {
if (ligne.getTraduit() != null) {
bos.write(ligne.getTraduit().getBytes());
} else {
bos.write(ligne.getOriginal().getBytes());
}
bos.write("\r\n".getBytes());
}
} catch (IOException ex) {
ex.printStackTrace();
}
return bos.toByteArray();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void export(String URN) {\n try {\n DocumentBuilderFactory fabrique = DocumentBuilderFactory.newInstance();\n fabrique.setValidating(true);\n DocumentBuilder constructeur = fabrique.newDocumentBuilder();\n Document document = constructeur.newDocument();\n ... | [
"0.61432517",
"0.59426624",
"0.56408376",
"0.5593061",
"0.5550418",
"0.5460113",
"0.54494035",
"0.5405103",
"0.5370357",
"0.5366678",
"0.53499836",
"0.53424656",
"0.53193134",
"0.5318653",
"0.5314959",
"0.53107893",
"0.5308951",
"0.5292381",
"0.5274626",
"0.525102",
"0.523981... | 0.525263 | 19 |
base case: verify that a word, a whitespace token, and a punctuation mark each count as one token | @Test
public void testParse() {
Sentence s = new Sentence();
s.parseSentence(BASE_STRING);
assertEquals(19, s.getSentenceComponents().size());
// verify that a string of whitespace count as one token
s = new Sentence();
s.parseSentence(WHITESPACE_STRING);
assertEquals(1, s.getSentenceComponents().size());
// verify that leading and trailing space is kept
s = new Sentence();
s.parseSentence(ENDSPACE_STRING);
assertEquals(7, s.getSentenceComponents().size());
// verify parsing works as expected
s = new Sentence();
s.parseSentence(PARSE_VALIDATION_STRING);
List<SentenceComponent> tokens = s.getSentenceComponents();
assertEquals(5, tokens.size());
assertEquals("hello", tokens.get(0).getValue());
assertEquals(",", tokens.get(1).getValue());
assertEquals(" ", tokens.get(2).getValue());
assertEquals("world", tokens.get(3).getValue());
assertEquals("!", tokens.get(4).getValue());
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public static void checkPunctuation(List<Token> token) {\r\n\t\tfor (Token tk : token) {\r\n\t\t\t//if (tk.getName().matches(\"[!\\\"#$%&'()*+,-./:;<=>?@\\\\[]^_`\\\\{|\\\\}~]\")) {\r\n\t\t\tif (tk.getName().matches(\"[\\\\W]\")) {\r\n\t\t\t\ttk.getFeatures().setLexicalType(String.valueOf(Lexical.PUNCTUATION));\r\... | [
"0.69662774",
"0.6747211",
"0.6424397",
"0.640992",
"0.6175242",
"0.5913263",
"0.5903798",
"0.5858258",
"0.58542925",
"0.5854047",
"0.5838127",
"0.58379126",
"0.57913333",
"0.5780976",
"0.57765955",
"0.57206637",
"0.5689542",
"0.5651498",
"0.5620796",
"0.56176484",
"0.5600872... | 0.0 | -1 |
Interface to be used while getting the section type of the item | public interface Item {
boolean isSection();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public String getSectionType() {\n\treturn sectionType;\n }",
"SectionType createSectionType();",
"public interface Item {\n\n public boolean isSection();\n\n}",
"public ItemType getType();",
"@Override\n public int getItemType() {\n return ITEM_TYPE;\n }",
"SectionsType createSections... | [
"0.73157513",
"0.6732766",
"0.66432995",
"0.6617953",
"0.64287835",
"0.63825434",
"0.6362256",
"0.6280955",
"0.62804425",
"0.6255422",
"0.6186087",
"0.6186087",
"0.6186087",
"0.6186087",
"0.6186087",
"0.6186087",
"0.6186087",
"0.6186087",
"0.6186087",
"0.6186087",
"0.6186087"... | 0.67849755 | 1 |
private void signSetter(String[] lines, Player p, Block s) | private void signSetter(Block b, Player p, String[] lines)
{
//TODO: virer debug
//p.sendMessage("dbg1");
if(b==null)
return;
BoutiqueSign bs = new BoutiqueSign();
bs.setOwner(p);
bs.setLocation(b.getLocation());
bs.setLines(lines);
//TODO: virer debug
/*
p.sendMessage("dbg1 : line1 = " + bs.getLine1());
p.sendMessage("dbg1 : line2 = " + bs.getLine2());
p.sendMessage("dbg1 : line3 = " + bs.getLine3());
p.sendMessage("dbg1 : line4 = " + bs.getLine4());
p.sendMessage("dbg2 : type = " + bs.getType());
*/
if(bs.isSignServer())
{
if (!PermissionsHandler.canSetGlobalSign(p))
{
p.sendMessage(PermissionsHandler.permissionErr);
return;
}
if(!bs.checkLines(p))
{
return;
}
p.sendMessage(plugin.chatPrefix + Messages.getString("Sign.SERVERSIGNADDED")); //$NON-NLS-1$
}
else if(bs.isSignChest())
{
if (!PermissionsHandler.canSetPersonalSign(p))
{
p.sendMessage(plugin.chatPrefix + PermissionsHandler.permissionErr);
return;
}
if(!bs.checkLines(p))
{
//TODO: virer debug
//p.sendMessage("erreur checkline");
return;
}
p.sendMessage(plugin.chatPrefix + Messages.getString("Sign.CHESTSIGNADDED")); //$NON-NLS-1$
}
else if(bs.isSignWebAuction())
{
if (!PermissionsHandler.canSetWebAuctionSign(p))
{
p.sendMessage(PermissionsHandler.permissionErr);
return;
}
if(!bs.checkLines(p))
{
//TODO: virer debug
//p.sendMessage("erreur checkline");
return;
}
p.sendMessage(plugin.chatPrefix + Messages.getString("Sign.WEBAUCTIONSIGNADDED")); //$NON-NLS-1$
}
else
{
return;
}
bs.setLine4("ok"); //$NON-NLS-1$
bs.Render();
this.put(bs);
plugin.signmanager.saveGlobalSigns();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"void updateSignToPlayer(Player player, Location location, String[] lines);",
"public void setChest(Block sign, Chest chest, Player p)\n\t{\n\t\tBoutiqueSign bs = this.getBoutiqueSign(sign);\n\t\t\n\t\t\n\t\tif(bs == null)\n\t\t{\n\t\t\t// TODO: message \"Impossible de trouver le panneau en question\"\n\t\t\tp.se... | [
"0.75891334",
"0.63917273",
"0.61865866",
"0.6100723",
"0.60475695",
"0.58892536",
"0.58086187",
"0.5749838",
"0.56241107",
"0.56138283",
"0.5519456",
"0.5459967",
"0.5420116",
"0.54068977",
"0.5397919",
"0.5396268",
"0.53902274",
"0.5349478",
"0.5323539",
"0.53016675",
"0.53... | 0.83206785 | 0 |
TODO virer debug p.sendMessage(plugin.chatPrefix + "displaySignInfo"); | public void displaySignInfo(Block b, Player p)
{
BoutiqueSign bs = getBoutiqueSign(b);
String signOwnerString = bs.getOwnerString();
String signTypeStr = bs.getType();
String separator = Messages.getString("Sign.SIGNINFOSEPARATOR"); //$NON-NLS-1$
//debut texte
p.sendMessage(separator);
if (!bs.isEnabled())
{
//TODO: formatter le chat ailleurs ?
p.sendMessage(ChatColor.YELLOW + Messages.getString("Sign.INACTIVESIGN")); //$NON-NLS-1$
p.sendMessage(ChatColor.YELLOW + Messages.getString("Sign.MAKEANOTHERONE")); //$NON-NLS-1$
return;
}
/* Affiche le type de panneau et le propriétaire */
//TODO virer debug
//p.sendMessage("dbg1: Type=" + bs.getType());
if(bs.isSignServer())
{
//Type BoutiqueSignServer
p.sendMessage(Messages.getString("Sign.SIGNISSERVER")); //$NON-NLS-1$
}
else if(bs.isSignChest())
{
//Type BoutiqueSignChest
p.sendMessage(Messages.getString("Sign.SIGNISPLAYER") + ChatColor.RED + signOwnerString + ChatColor.WHITE + "."); //$NON-NLS-1$ //$NON-NLS-2$
String signchest = bs.getChestString();
if(signchest.isEmpty())
{
p.sendMessage(ChatColor.RED + Messages.getString("Sign.SIGNCHESTNOTBIND")); //$NON-NLS-1$
}
}
else if(bs.isSignWebAuction())
{
//Type BoutiqueSignWebAuction
p.sendMessage(Messages.getString("Sign.SIGNISWEB") + ChatColor.RED + signOwnerString + ChatColor.WHITE + "."); //$NON-NLS-1$ //$NON-NLS-2$
}
else
{
//Type inconnu
p.sendMessage(ChatColor.RED + Messages.getString("Sign.SIGNISUNKNOWTYPE") + ChatColor.WHITE + signOwnerString + ChatColor.RED + Messages.getString("Sign.ISTHEOWNER") ); //$NON-NLS-1$ //$NON-NLS-2$
return;
}
Integer qtyFrom = bs.getQtyFrom();
Integer qtyTo = bs.getQtyTo();
BoutiqueItem itemTo = bs.getItemTo();
BoutiqueItem itemFrom = bs.getItemFrom();
Double moneyFrom = bs.getMoneyFrom();
Double moneyTo = bs.getMoneyTo();
/* Test iconomy */
if(!EconomyHandler.currencyEnabled)
{
p.sendMessage(Messages.getString("Sign.NOECONERR")); //$NON-NLS-1$
p.sendMessage(separator);
return;
}
if(!bs.checkLines(p))
{
//TODO virer debug
return;
}
/* Détermine le message en fonction du type de panneau */
//Freebies
if(bs.isFreebiesSign())
{
if(itemTo == null)
{
//TODO: message && currencystring
p.sendMessage
(
Messages.getString("Sign.RIGHTCLICKWILLGETYOU") + //$NON-NLS-1$
ChatColor.RED + moneyTo + Messages.getString("Sign.22") + ChatColor.WHITE //$NON-NLS-1$
);
}
else
{
//TODO: message
p.sendMessage
(
Messages.getString("Sign.RIGHTCLICKWILLGETYOU") + //$NON-NLS-1$
ChatColor.RED + qtyTo + ChatColor.WHITE + " " + //$NON-NLS-1$
ChatColor.RED + itemTo.itemName + ChatColor.WHITE +
Messages.getString("Sign.FORFREE") //$NON-NLS-1$
);
}
}
//Donation (item ou $ => rien)
else if(bs.isDonationSign())
{
if(itemFrom == null)
{
//TODO: message && currencystring
p.sendMessage
(
Messages.getString("Sign.SIGNGETDONATIONS") + //$NON-NLS-1$
ChatColor.RED + moneyFrom + Messages.getString("Sign.27") + ChatColor.WHITE //$NON-NLS-1$
);
}
else
{
//TODO: message
p.sendMessage
(
Messages.getString("Sign.SIGNGETDONATIONS") + //$NON-NLS-1$
ChatColor.RED + qtyFrom + ChatColor.WHITE + " " + //$NON-NLS-1$
ChatColor.RED + itemFrom.itemName + ChatColor.WHITE
);
}
}
else if(bs.isSellSign())
{
p.sendMessage(
Messages.getString("Sign.RIGHTCLICKWILLGETYOU") + //$NON-NLS-1$
ChatColor.RED + qtyTo + ChatColor.WHITE + " " + //$NON-NLS-1$
ChatColor.RED + itemTo.itemName + ChatColor.WHITE +
Messages.getString("Sign.FORMONEY") + //$NON-NLS-1$
ChatColor.RED + moneyFrom + " Eus" + ChatColor.WHITE + //$NON-NLS-1$
"." //$NON-NLS-1$
);
}
else if(bs.isBuySign())
{
p.sendMessage
(
Messages.getString("Sign.SIGNGIVEYOUFORMONEY") + ChatColor.RED + moneyTo + "Eus " + //$NON-NLS-1$ //$NON-NLS-2$
ChatColor.WHITE + Messages.getString("Sign.FOREACHSTACKOF") + //$NON-NLS-1$
ChatColor.RED + qtyFrom + Messages.getString("Sign.QTY1") + itemFrom.itemName + //$NON-NLS-1$
ChatColor.WHITE + Messages.getString("Sign.YOUWILLGIVEHIM") //$NON-NLS-1$
);
}
else if(bs.isTradeSign())
{
p.sendMessage
(
Messages.getString("Sign.SIGNISTRADING") + //$NON-NLS-1$
ChatColor.RED + qtyFrom + Messages.getString("Sign.QTY") + ChatColor.WHITE + " " + //$NON-NLS-1$ //$NON-NLS-2$
ChatColor.RED + itemFrom.itemName + ChatColor.WHITE + Messages.getString("Sign.VERSUS1") + //$NON-NLS-1$
ChatColor.RED + qtyTo + Messages.getString("Sign.QTY") + ChatColor.WHITE + " " + //$NON-NLS-1$ //$NON-NLS-2$
ChatColor.RED + itemTo.itemName + ChatColor.WHITE + "." //$NON-NLS-1$
);
}
else
{
p.sendMessage
(
Messages.getString("Sign.VROUMVROUMERR") //$NON-NLS-1$
);
return;
}
bs.Render();
p.sendMessage(separator);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@SuppressWarnings(\"finally\")\n\t@Override\n\tpublic Response showSignature() {\n\t\tBaseResponse<NotifyTemplate> br = new BaseResponse<NotifyTemplate>();\n\t\ttry\n\t\t{\n\t\tList<NotifyTemplate> signList;\n\t\tjdbcTemplate.setDataSource(dataSourceProvider.getDataSource(FiinfraConstants.BU_DEFAULT));\n\t\tsignLi... | [
"0.64014196",
"0.59764016",
"0.5920605",
"0.5916014",
"0.5915829",
"0.5879527",
"0.5822003",
"0.5818665",
"0.57804656",
"0.573906",
"0.5714277",
"0.57040185",
"0.56969595",
"0.56850183",
"0.5670416",
"0.5647627",
"0.56307",
"0.562508",
"0.5610912",
"0.5603866",
"0.5601995",
... | 0.7373652 | 0 |
Double costAmount = bs.getMoneyTo(); | public boolean getDonation(BoutiqueSign bs, Player p)
{
String signOwner = bs.getOwnerString();
//Teste donation item ou thunes ?
//Don d'item
if(bs.getItemFrom() != null)
{
Integer qty = bs.getQtyFrom();
Integer id = bs.getItemFrom().itemId;
Integer damage = bs.getItemFrom().itemDamage;
if (!PlayerOperator.playerHasEnough( qty, id, damage, p))
{
p.sendMessage(plugin.chatPrefix + PlayerOperator.playerStockErr);
return false;
}
if (bs.isSignServer())
{
//Enleve le propriétaire du panneau pour les logs (car panneau serveur) !
signOwner = ""; //$NON-NLS-1$
}
else if (bs.isSignWebAuction())
{
// Panneau "webauctions"
// Ajoute les objets au stock WebAuctions
if(!plugin.db.wa_AddToStock(p.getName(), id, damage, qty))
{
p.sendMessage(plugin.chatPrefix + Messages.getString("Sign.UNABLETOADDINWEBSTOCKS") + signOwner + Messages.getString("Sign.SMILEYSAD")); //$NON-NLS-1$ //$NON-NLS-2$
return false;
}
}
else if (bs.isSignChest())
{
//p.sendMessage("dbg0: debut signchest");
// Cherche le coffre relié au panneau
Chest chest = bs.getChest();
if(chest==null)
{
//p.sendMessage("dbg1: coffre introuvable");
return false;
}
// Vérifie qu'il reste de la place dans le coffre pour stocker les objets à acheter
if (!ChestOperator.hasEnoughSpace(qty,id,damage, chest))
{
p.sendMessage(plugin.chatPrefix + ChestOperator.notEnoughSpaceErr);
return false;
}
// Credite le coffre de l'acheteur
ChestOperator.addToChestStock(qty, id, damage, chest);
}
// Retire les objets au donneur
PlayerOperator.removeFromPlayer(qty, id, damage, p);
p.sendMessage(plugin.chatPrefix + Messages.getString("Sign.YOUGIVE") + qty + Messages.getString("Sign.QTY1") + bs.getItemFrom().itemName + " " + (bs.isSignServer() ? Messages.getString("Sign.TOSERVER"): Messages.getString("Sign.TO") + signOwner + ".")); //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ //$NON-NLS-4$ //$NON-NLS-5$ //$NON-NLS-6$
try
{
Boutique.getInstance().db.logTransaction(p.getLocation(), p.getName(), signOwner, id , damage, qty , 0.0 ,"toto","titi"); //$NON-NLS-1$ //$NON-NLS-2$
}
catch (Exception e)
{
e.printStackTrace();
}
}
else if(bs.getMoneyFrom() != null)
{
//Don d'argent
//Verif money doneur
if (EconomyHandler.hasEnough(p.getName(), bs.getMoneyFrom())!=1)
{
p.sendMessage(plugin.chatPrefix + EconomyHandler.noFundsErr);
return false;
}
//Crédite le receveur (sauf si serveur)
if(!bs.isSignServer())
{
EconomyHandler.modifyMoney(bs.getOwnerString(), bs.getMoneyFrom());
}
//Débite le doneur
EconomyHandler.modifyMoney(p.getName(), -bs.getMoneyFrom());
p.sendMessage(plugin.chatPrefix + Messages.getString("Sign.YOUGIVE") + EconomyHandler.formatMoney(bs.getMoneyFrom()) + " " + EconomyHandler.formatCurrency(bs.getMoneyFrom()) + " " + (bs.isSignServer() ? Messages.getString("Sign.TOSERVER"): Messages.getString("Sign.TO") + signOwner));
p.sendMessage(plugin.chatPrefix + Messages.getString("Sign.MONEYREMAINING") + EconomyHandler.playerHave(p.getName())); //$NON-NLS-1$
try
{
Boutique.getInstance().db.logTransaction(p.getLocation(), p.getName(), signOwner, 0, 0, 0, bs.getMoneyFrom() ,"toto","titi"); //$NON-NLS-1$ //$NON-NLS-2$
}
catch (Exception e)
{
e.printStackTrace();
}
}
else
{
p.sendMessage(plugin.chatPrefix + Messages.getString("Sign.VROUMVROUMERR"));
return false;
}
return true;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"double getMoney();",
"public Money getCost(){\r\n return this.cost;\r\n }",
"org.adscale.format.opertb.AmountMessage.Amount getCampaignprice();",
"public double getMoney(){\n return money;\n }",
"public BigDecimal getCost() \n{\nBigDecimal bd = (BigDecimal)get_Value(\"Cost\");\nif (bd =... | [
"0.76533526",
"0.7470142",
"0.72322387",
"0.7154191",
"0.7131233",
"0.7111577",
"0.70155936",
"0.69375885",
"0.69375885",
"0.6930951",
"0.6913115",
"0.6901729",
"0.6901729",
"0.6901729",
"0.688691",
"0.688691",
"0.688691",
"0.6869022",
"0.6869022",
"0.68623525",
"0.685185",
... | 0.0 | -1 |
TODO Autogenerated method stub | public void saveGlobalSigns()
{
plugin.fileio.saveGlobalSigns();
} | {
"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 |
/ Enregistre le coffre pour un BoutiqueSignChest | public void setChest(Block sign, Chest chest, Player p)
{
BoutiqueSign bs = this.getBoutiqueSign(sign);
if(bs == null)
{
// TODO: message "Impossible de trouver le panneau en question"
p.sendMessage(plugin.chatPrefix + Messages.getString("Sign.CHOOSESIGNBEFORE")); //$NON-NLS-1$
return;
}
else
{
String newChestLoc = ""; //$NON-NLS-1$
String oldChestLoc = ""; //$NON-NLS-1$
Chest bsc = bs.getChest();
oldChestLoc = bs.getChestString();
newChestLoc = BoutiqueSign.getLocationString(chest.getBlock().getLocation());
//verifie que le panneau n'etait pas deja relié au coffre
if (oldChestLoc == newChestLoc)
{
p.sendMessage(plugin.chatPrefix + Messages.getString("Sign.SIGNALREADYBINDED")); //$NON-NLS-1$
return;
}
int distX = sign.getX() - chest.getBlock().getX();
int distZ = sign.getZ() - chest.getBlock().getZ();
int maxDist = 15;
if (distX > maxDist || distZ > maxDist )
{
p.sendMessage(plugin.chatPrefix + Messages.getString("Sign.CHESTTOOFARAWAY") + maxDist + Messages.getString("Sign.MAXBLOCKS")); //$NON-NLS-1$ //$NON-NLS-2$
return;
}
//DEBUG
//p.sendMessage(plugin.chatPrefix + "Enregistrement coffre");
bs.setChest(chest);
updateSignDb(bs);
p.sendMessage(plugin.chatPrefix + Messages.getString("Sign.CHESTBINDED")); //$NON-NLS-1$
//DEBUG
//p.sendMessage(plugin.chatPrefix + "panneau: " + bs.getChestString());
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@RequiresApi(api = Build.VERSION_CODES.M)\n private void enregistrerCours()\n {\n cours.setTitre(vueModifierCoursChampTitre.getText().toString());\n cours.setHeure(vueModifierCoursChampHeure.getHour() + \":\" + vueModifierCoursChampHeure.getMinute());\n\n //coursDAO = CoursDAO.getInstanc... | [
"0.68283004",
"0.584956",
"0.57410794",
"0.57351005",
"0.57296467",
"0.5677461",
"0.5673804",
"0.5672335",
"0.5640674",
"0.5625619",
"0.56135327",
"0.5596942",
"0.5592996",
"0.55889887",
"0.5579217",
"0.5579217",
"0.5525192",
"0.5518162",
"0.5472113",
"0.5443912",
"0.54309124... | 0.6351957 | 1 |
/ / Le joueur peutil casser le panneau ? / | public boolean canBreakSign(Sign s, Player p)
{
if (!this.isSign(s))
return false;
boolean bool = false;
bool = isSignOwner(s,p);
if (!bool)
bool = p.isOp();
return bool;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void choixduJeu() {\n afficheMessage(\"*- Choisissez le jeu auquel vous voulez jouer : \\n- R pour Recherche +/-\\n- M pour Mastermind\");\n choixJeu = Console.saisieListeDeChoix(\"R|M\");\n afficheMessage(\"*- Choisissez le mode de jeu auquel vous voulez jouer :\\n- C pour Challenger,\... | [
"0.62557304",
"0.6248059",
"0.61248475",
"0.6063529",
"0.59409434",
"0.59377354",
"0.59363776",
"0.59295267",
"0.59282553",
"0.59209865",
"0.59193426",
"0.5874375",
"0.5864265",
"0.58541644",
"0.58461523",
"0.58305883",
"0.5829438",
"0.5826943",
"0.581467",
"0.58001477",
"0.5... | 0.0 | -1 |
/ Renvoi true si le player est le proprio du panneau | public boolean isSignOwner(Sign sign, Player p)
{
return getBoutiqueSign(sign.getBlock()).getOwnerString().compareToIgnoreCase(p.getName()) == 0;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public abstract boolean isPossible(Player p);",
"public abstract boolean isPlayer();",
"private boolean isOver() {\r\n return players.size() == 1;\r\n }",
"public boolean topPlayerWon() {\n return winner == 2;\n }",
"protected abstract boolean isPlayerActivatable(PlayerSimple player);",... | [
"0.715345",
"0.6949788",
"0.6921416",
"0.69115514",
"0.68856925",
"0.6721195",
"0.6676439",
"0.6663357",
"0.66570795",
"0.66305125",
"0.66194326",
"0.6598904",
"0.6592634",
"0.657099",
"0.6549907",
"0.6547802",
"0.651482",
"0.6508484",
"0.6482654",
"0.6439636",
"0.64076346",
... | 0.0 | -1 |
TODO: Check worldguard TODO: Cehck LWC | public boolean isChestOwner(Chest chest, Player p)
{
return WorldGuardHandler.canBuild(p, chest.getBlock());
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private FlyWithWings(){\n\t\t\n\t}",
"private stendhal() {\n\t}",
"private void registToWX() {\n }",
"public void smell() {\n\t\t\n\t}",
"private WAPIHelper() { }",
"protected WumpusMap() {\n\t\t\n\t}",
"@Override\n\tpublic void sacrifier() {\n\t\t\n\t}",
"private void kk12() {\n\n\t}",
"@Overri... | [
"0.60975003",
"0.6072293",
"0.5813581",
"0.5598282",
"0.5550185",
"0.5523548",
"0.55027175",
"0.5482158",
"0.546043",
"0.54536355",
"0.5447837",
"0.536535",
"0.53397244",
"0.52993715",
"0.52672446",
"0.5249854",
"0.52406526",
"0.5237797",
"0.52188087",
"0.52072",
"0.5205238",... | 0.0 | -1 |
Creates new form InvoiceCreate | public InvoiceCreate() {
initComponents();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void createInvoice() {\n\t}",
"public Invoice createInvoice(Order order);",
"@RequestMapping(value = \"/save\", method = RequestMethod.POST)\n public String saveNewInvoice(@Valid @ModelAttribute Invoice invoice) {\n invoice.setCreatedUser(annonsePersonController.getLoggedInUser());\n in... | [
"0.7896295",
"0.72240186",
"0.70689535",
"0.6815683",
"0.67951643",
"0.6575817",
"0.6509331",
"0.6498958",
"0.6401175",
"0.63503635",
"0.62748206",
"0.6088581",
"0.60680413",
"0.60406",
"0.5960113",
"0.5938678",
"0.59192467",
"0.5910737",
"0.5859369",
"0.584195",
"0.57603556"... | 0.7180529 | 2 |
This method is called from within the constructor to initialize the form. WARNING: Do NOT modify this code. The content of this method is always regenerated by the Form Editor. | @SuppressWarnings("unchecked")
// <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
private void initComponents() {
java.awt.GridBagConstraints gridBagConstraints;
invoiceCreationPanel = new javax.swing.JPanel();
jLabel9 = new javax.swing.JLabel();
jTextField9 = new javax.swing.JTextField();
jLabel10 = new javax.swing.JLabel();
jTextField10 = new javax.swing.JTextField();
jLabel11 = new javax.swing.JLabel();
jTextField11 = new javax.swing.JTextField();
jLabel12 = new javax.swing.JLabel();
jTextField12 = new javax.swing.JTextField();
jTextField13 = new javax.swing.JTextField();
jTextField14 = new javax.swing.JTextField();
jLabel13 = new javax.swing.JLabel();
jLabel14 = new javax.swing.JLabel();
jLabel15 = new javax.swing.JLabel();
jLabel16 = new javax.swing.JLabel();
jTextField15 = new javax.swing.JTextField();
jTextField16 = new javax.swing.JTextField();
jScrollPane3 = new javax.swing.JScrollPane();
jTextArea2 = new javax.swing.JTextArea();
jLabel18 = new javax.swing.JLabel();
setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);
getContentPane().setLayout(new javax.swing.BoxLayout(getContentPane(), javax.swing.BoxLayout.LINE_AXIS));
invoiceCreationPanel.setBorder(javax.swing.BorderFactory.createTitledBorder("Invoice"));
invoiceCreationPanel.setLayout(new java.awt.GridBagLayout());
jLabel9.setText("BillNo:");
gridBagConstraints = new java.awt.GridBagConstraints();
gridBagConstraints.gridx = 0;
gridBagConstraints.gridy = 4;
gridBagConstraints.gridheight = 2;
gridBagConstraints.anchor = java.awt.GridBagConstraints.LINE_END;
gridBagConstraints.weightx = 0.1;
invoiceCreationPanel.add(jLabel9, gridBagConstraints);
jTextField9.setText("jTextField1");
gridBagConstraints = new java.awt.GridBagConstraints();
gridBagConstraints.gridx = 1;
gridBagConstraints.gridy = 4;
gridBagConstraints.gridheight = 2;
gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL;
gridBagConstraints.anchor = java.awt.GridBagConstraints.LINE_START;
gridBagConstraints.weightx = 0.1;
invoiceCreationPanel.add(jTextField9, gridBagConstraints);
jLabel10.setText("Our D.C No:");
gridBagConstraints = new java.awt.GridBagConstraints();
gridBagConstraints.gridx = 0;
gridBagConstraints.gridy = 6;
gridBagConstraints.anchor = java.awt.GridBagConstraints.LINE_END;
gridBagConstraints.weightx = 0.1;
invoiceCreationPanel.add(jLabel10, gridBagConstraints);
jTextField10.setText("jTextField1");
gridBagConstraints = new java.awt.GridBagConstraints();
gridBagConstraints.gridx = 1;
gridBagConstraints.gridy = 6;
gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL;
gridBagConstraints.anchor = java.awt.GridBagConstraints.LINE_END;
gridBagConstraints.weightx = 0.1;
invoiceCreationPanel.add(jTextField10, gridBagConstraints);
jLabel11.setText("Date:");
gridBagConstraints = new java.awt.GridBagConstraints();
gridBagConstraints.gridx = 2;
gridBagConstraints.gridy = 3;
gridBagConstraints.gridheight = 3;
gridBagConstraints.anchor = java.awt.GridBagConstraints.LINE_END;
gridBagConstraints.weightx = 0.1;
invoiceCreationPanel.add(jLabel11, gridBagConstraints);
jTextField11.setText("jTextField1");
gridBagConstraints = new java.awt.GridBagConstraints();
gridBagConstraints.gridx = 3;
gridBagConstraints.gridy = 4;
gridBagConstraints.gridheight = 2;
gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL;
gridBagConstraints.anchor = java.awt.GridBagConstraints.LINE_END;
gridBagConstraints.weightx = 0.1;
invoiceCreationPanel.add(jTextField11, gridBagConstraints);
jLabel12.setText("Date:");
gridBagConstraints = new java.awt.GridBagConstraints();
gridBagConstraints.gridx = 2;
gridBagConstraints.gridy = 6;
gridBagConstraints.anchor = java.awt.GridBagConstraints.LINE_END;
gridBagConstraints.weightx = 0.1;
invoiceCreationPanel.add(jLabel12, gridBagConstraints);
jTextField12.setText("jTextField1");
gridBagConstraints = new java.awt.GridBagConstraints();
gridBagConstraints.gridx = 3;
gridBagConstraints.gridy = 6;
gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL;
gridBagConstraints.anchor = java.awt.GridBagConstraints.LINE_END;
gridBagConstraints.weightx = 0.1;
invoiceCreationPanel.add(jTextField12, gridBagConstraints);
jTextField13.setText("jTextField1");
gridBagConstraints = new java.awt.GridBagConstraints();
gridBagConstraints.gridx = 5;
gridBagConstraints.gridy = 4;
gridBagConstraints.gridheight = 2;
gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL;
gridBagConstraints.weightx = 0.1;
invoiceCreationPanel.add(jTextField13, gridBagConstraints);
jTextField14.setText("jTextField1");
gridBagConstraints = new java.awt.GridBagConstraints();
gridBagConstraints.gridx = 5;
gridBagConstraints.gridy = 6;
gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL;
gridBagConstraints.anchor = java.awt.GridBagConstraints.LINE_END;
gridBagConstraints.weightx = 0.1;
invoiceCreationPanel.add(jTextField14, gridBagConstraints);
jLabel13.setText("VAT%");
gridBagConstraints = new java.awt.GridBagConstraints();
gridBagConstraints.gridx = 4;
gridBagConstraints.gridy = 6;
gridBagConstraints.anchor = java.awt.GridBagConstraints.LINE_END;
gridBagConstraints.weightx = 0.1;
invoiceCreationPanel.add(jLabel13, gridBagConstraints);
jLabel14.setText("Your Order No:");
gridBagConstraints = new java.awt.GridBagConstraints();
gridBagConstraints.gridx = 4;
gridBagConstraints.gridy = 4;
gridBagConstraints.gridheight = 2;
gridBagConstraints.anchor = java.awt.GridBagConstraints.LINE_END;
gridBagConstraints.weightx = 0.1;
invoiceCreationPanel.add(jLabel14, gridBagConstraints);
jLabel15.setText("Date:");
gridBagConstraints = new java.awt.GridBagConstraints();
gridBagConstraints.gridx = 6;
gridBagConstraints.gridy = 4;
gridBagConstraints.gridheight = 2;
gridBagConstraints.anchor = java.awt.GridBagConstraints.LINE_END;
gridBagConstraints.weightx = 0.1;
invoiceCreationPanel.add(jLabel15, gridBagConstraints);
jLabel16.setText("Party TIN NO:");
gridBagConstraints = new java.awt.GridBagConstraints();
gridBagConstraints.gridx = 6;
gridBagConstraints.gridy = 6;
gridBagConstraints.anchor = java.awt.GridBagConstraints.LINE_END;
gridBagConstraints.weightx = 0.1;
invoiceCreationPanel.add(jLabel16, gridBagConstraints);
jTextField15.setText("jTextField1");
gridBagConstraints = new java.awt.GridBagConstraints();
gridBagConstraints.gridx = 7;
gridBagConstraints.gridy = 4;
gridBagConstraints.gridheight = 2;
gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL;
gridBagConstraints.weightx = 0.1;
invoiceCreationPanel.add(jTextField15, gridBagConstraints);
jTextField16.setText("jTextField1");
gridBagConstraints = new java.awt.GridBagConstraints();
gridBagConstraints.gridx = 7;
gridBagConstraints.gridy = 6;
gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL;
gridBagConstraints.anchor = java.awt.GridBagConstraints.LINE_END;
gridBagConstraints.weightx = 0.1;
invoiceCreationPanel.add(jTextField16, gridBagConstraints);
jScrollPane3.setBorder(javax.swing.BorderFactory.createTitledBorder("To M/s"));
jTextArea2.setColumns(20);
jTextArea2.setRows(5);
jScrollPane3.setViewportView(jTextArea2);
gridBagConstraints = new java.awt.GridBagConstraints();
gridBagConstraints.gridx = 8;
gridBagConstraints.gridy = 4;
gridBagConstraints.gridheight = 3;
gridBagConstraints.anchor = java.awt.GridBagConstraints.PAGE_END;
invoiceCreationPanel.add(jScrollPane3, gridBagConstraints);
jLabel18.setText("RAMANA ENGINEERING WORKS");
gridBagConstraints = new java.awt.GridBagConstraints();
gridBagConstraints.gridwidth = 9;
gridBagConstraints.anchor = java.awt.GridBagConstraints.PAGE_START;
gridBagConstraints.weighty = 0.3;
invoiceCreationPanel.add(jLabel18, gridBagConstraints);
getContentPane().add(invoiceCreationPanel);
pack();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public Form() {\n initComponents();\n }",
"public MainForm() {\n initComponents();\n }",
"public MainForm() {\n initComponents();\n }",
"public MainForm() {\n initComponents();\n }",
"public frmRectangulo() {\n initComponents();\n }",
"public form() {\n ... | [
"0.73208135",
"0.7291972",
"0.7291972",
"0.7291972",
"0.7287118",
"0.72494483",
"0.7214677",
"0.72086734",
"0.7197058",
"0.71912485",
"0.7185818",
"0.71596724",
"0.71489036",
"0.7094215",
"0.7082007",
"0.70579666",
"0.6988024",
"0.6978225",
"0.6955616",
"0.6955434",
"0.694586... | 0.0 | -1 |
compensates for a shadow underneath the ball | public Ball(Vector2 position) {
this.position = position;
build();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public float getSoftShadowLength();",
"@Override\r\n\tpublic void renderShadow(float[] vpMatrix) {\n\t\t\r\n\t}",
"private void setupShadow()\n {\n int maximumPortNumber = Math.max(module_.getInputs().size(), module_.getOutputs().size());\n shadow_ = new BufferedImage(200 + 1 + 20, maximumPortNumber * 2... | [
"0.6870211",
"0.6219169",
"0.6080755",
"0.6022085",
"0.60175693",
"0.60153097",
"0.59950185",
"0.5802242",
"0.57665074",
"0.56156963",
"0.55620104",
"0.555613",
"0.5538497",
"0.5520035",
"0.5511358",
"0.5474146",
"0.54513764",
"0.5444229",
"0.5440243",
"0.541147",
"0.540906",... | 0.0 | -1 |
todo important optimize.. isnt there a way to make this smarter? we can probably cache some numbers here e.g. (Controller.getCamera().getUnprojectedScreenVector().x 1) + radius) will be the same entire game.. also, is there a better way of updating linear velocity? not with resetting it to the object | @Override
public void render(SpriteBatch spriteBatch) {
// check for collision with the left side of the screen
/*if (body.getPosition().x < (Controller.getCamera().getUnprojectedScreenVector().x * -1) + radius) {
body.setLinearVelocity(body.getLinearVelocity().x * -1, body.getLinearVelocity().y);
}
// check for collision with the right side of the screen
if (body.getPosition().x > Controller.getCamera().getUnprojectedScreenVector().x - radius) {
body.setLinearVelocity(body.getLinearVelocity().x * -1, body.getLinearVelocity().y);
}*/
// check for collision with the top side of the screen
if (body.getPosition().y > Controller.getGameViewport().getWorldHeight() - radius) {
body.setLinearVelocity(body.getLinearVelocity().x, Math.abs(body.getLinearVelocity().y) * -1);
}
// synchronize sprite with the body
position.set(body.getPosition().x - radius - margin, body.getPosition().y - radius - margin);
sprite.setPosition(position.x, position.y);
sprite.draw(spriteBatch);
// todo the ball should be destroyed when it is below the screen (and invalidated once it is below the plank)
// there should be some kind of container of balls (there can be more balls in the game) and once
// all balls are invalidated, they should be destroyed and game should be failed
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void updateVelocity(){\r\n if (getPosition().x <= 0 || getPosition().x >= GameBoard.MAX_X) {\r\n setVelocity(getVelocity().add(getVelocity().mul(reverse)));\r\n }\r\n }",
"protected void calcVelocity()\n\t{}",
"private void updateVelocity() {\n\t \t//Update x velocity\n\t ... | [
"0.73962855",
"0.73897123",
"0.7145946",
"0.71187127",
"0.7109862",
"0.70733213",
"0.7071355",
"0.70034975",
"0.69661105",
"0.68775386",
"0.6865201",
"0.684901",
"0.6847168",
"0.6793805",
"0.6774074",
"0.67518175",
"0.6745853",
"0.67436177",
"0.668098",
"0.668098",
"0.6673850... | 0.0 | -1 |
TODO Autogenerated method stub | @Override
public void actionPerformed(ActionEvent e) {
if(e.getSource()==btnDeposit) {//change pin
// System.out.println(Integer.valueOf(passwordField_1.getText()));
// System.out.println(Integer.valueOf(passwordField_2.getText()));
// System.out.println(Integer.valueOf(passwordField_1.getText())-Integer.valueOf(passwordField_2.getText())==0 );
if((passwordField_2.getText()!="" && Integer.valueOf(passwordField_1.getText())-Integer.valueOf(passwordField_2.getText())!=0 ) || Integer.valueOf(passwordField.getText())!=c.getPin())
JOptionPane.showMessageDialog(null, "Kindly recheck your Pin!");
else{
dispose();
c.setPin(Integer.valueOf(passwordField_1.getText()));
if(BankContoller.pinChange(c))JOptionPane.showMessageDialog(null, "Your Password has been changed Successfully, "+c.getName());
new Bank_ThankYou();
}
}
if(e.getSource()==btnLogin) {//cancel
dispose();
}
} | {
"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 |
This method was generated by MyBatis Generator. This method returns the value of the database column ball_pack_product.id | public Integer getId() {
return id;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n\tpublic long getId() {\n\t\treturn _buySellProducts.getId();\n\t}",
"public long getShopBasketId();",
"public long getItemShopBasketId();",
"@Override\n\tpublic long getPrimaryKey() {\n\t\treturn _buySellProducts.getPrimaryKey();\n\t}",
"public short getIdProduct() {\r\n\t\treturn idProduct;\r\... | [
"0.6585784",
"0.65012026",
"0.6482965",
"0.64771736",
"0.63803566",
"0.63718235",
"0.63572496",
"0.6356124",
"0.62682766",
"0.62682766",
"0.62681913",
"0.62404794",
"0.62404794",
"0.61988896",
"0.61913764",
"0.61913764",
"0.61913764",
"0.61913764",
"0.61913764",
"0.61913764",
... | 0.0 | -1 |
This method was generated by MyBatis Generator. This method sets the value of the database column ball_pack_product.id | public void setId(Integer id) {
this.id = id;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void setM_Product_ID (int M_Product_ID);",
"public void setM_Product_ID (int M_Product_ID);",
"public void setProductId(String productId) ;",
"@Override\n\tpublic void setId(long id) {\n\t\t_buySellProducts.setId(id);\n\t}",
"public void setBallPackId(Integer ballPackId) {\n this.ballPackId =... | [
"0.65337604",
"0.65337604",
"0.62915456",
"0.6279618",
"0.61924356",
"0.61816955",
"0.61816955",
"0.6130745",
"0.60975236",
"0.60975236",
"0.60975236",
"0.60975236",
"0.60975236",
"0.60975236",
"0.60529727",
"0.60529727",
"0.60275036",
"0.60188186",
"0.59333336",
"0.5920808",
... | 0.0 | -1 |
This method was generated by MyBatis Generator. This method returns the value of the database column ball_pack_product.value_id | public Integer getValueId() {
return valueId;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public Integer getValueId() {\n return this.valueId;\n }",
"String getValueId();",
"public java.lang.String getValue_id() {\n return value_id;\n }",
"public int getM_Product_ID() \n{\nInteger ii = (Integer)get_Value(\"M_Product_ID\");\nif (ii == null) return 0;\nreturn ii.intValue();\n}",... | [
"0.681804",
"0.65866524",
"0.6543882",
"0.62012047",
"0.57416975",
"0.5710557",
"0.5710557",
"0.5647798",
"0.5647798",
"0.5647798",
"0.5647798",
"0.5647798",
"0.5647798",
"0.56259894",
"0.55966747",
"0.558912",
"0.5573978",
"0.55622894",
"0.55325335",
"0.55026716",
"0.5501097... | 0.68897057 | 0 |
This method was generated by MyBatis Generator. This method sets the value of the database column ball_pack_product.value_id | public void setValueId(Integer valueId) {
this.valueId = valueId;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void setM_Product_ID (int M_Product_ID)\n{\nset_Value (\"M_Product_ID\", new Integer(M_Product_ID));\n}",
"public void setValue_id(java.lang.String value_id) {\n this.value_id = value_id;\n }",
"public void setIdProducto(int value) {\n this.idProducto = value;\n }",
"private void s... | [
"0.65941215",
"0.6262428",
"0.62418085",
"0.6165951",
"0.6089552",
"0.6045381",
"0.60205096",
"0.59943205",
"0.5800032",
"0.5660369",
"0.5625845",
"0.56153077",
"0.56153077",
"0.55988",
"0.5572981",
"0.55694175",
"0.5525227",
"0.5521975",
"0.5521975",
"0.5521975",
"0.55205667... | 0.67432857 | 1 |
This method was generated by MyBatis Generator. This method returns the value of the database column ball_pack_product.add_time | public LocalDateTime getAddTime() {
return addTime;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public Integer getAddTime() {\n return addTime;\n }",
"public Date getAddtime() {\r\n return addtime;\r\n }",
"public Date getAddtime() {\n return addtime;\n }",
"public Date getAddTime() {\n return addTime;\n }",
"@ApiModelProperty(value = \"添加时间\")\n\tpublic Date g... | [
"0.68518245",
"0.6794099",
"0.6792615",
"0.6774775",
"0.64155865",
"0.63445926",
"0.6209533",
"0.583646",
"0.5641106",
"0.56257874",
"0.5564474",
"0.555941",
"0.555941",
"0.555941",
"0.5555202",
"0.55471295",
"0.5485914",
"0.546538",
"0.54454297",
"0.5411457",
"0.5411221",
... | 0.6402679 | 6 |
This method was generated by MyBatis Generator. This method sets the value of the database column ball_pack_product.add_time | public void setAddTime(LocalDateTime addTime) {
this.addTime = addTime;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void setAddtime(Date addtime) {\r\n this.addtime = addtime;\r\n }",
"public void setAddtime(Date addtime) {\n this.addtime = addtime;\n }",
"public void setAddTime(Integer addTime) {\n this.addTime = addTime;\n }",
"@Override\n\tpublic void setAddTime(Date addTime) {\n\t\... | [
"0.6587438",
"0.6551035",
"0.65059817",
"0.6494577",
"0.61541957",
"0.6071914",
"0.5987789",
"0.5930295",
"0.5863836",
"0.57153016",
"0.56132674",
"0.553324",
"0.5516001",
"0.5516001",
"0.5516001",
"0.5477592",
"0.5426105",
"0.5425919",
"0.54074603",
"0.54050696",
"0.5400036"... | 0.63462394 | 5 |
This method was generated by MyBatis Generator. This method returns the value of the database column ball_pack_product.update_time | public LocalDateTime getUpdateTime() {
return updateTime;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public Date getUpdate_time() {\n return update_time;\n }",
"public Date getUpdate_time() {\n return update_time;\n }",
"public java.sql.Timestamp getUpdateTime () {\r\n\t\treturn updateTime;\r\n\t}",
"public Long getUpdateDatetime() {\n return updateDatetime;\n }",
"public Dat... | [
"0.7179101",
"0.7179101",
"0.71175265",
"0.7108892",
"0.7083201",
"0.7083201",
"0.7070784",
"0.7070358",
"0.7070358",
"0.6905855",
"0.6869178",
"0.68463534",
"0.6831169",
"0.67882454",
"0.67754966",
"0.6774997",
"0.6759544",
"0.6759544",
"0.6750064",
"0.67257315",
"0.6714091"... | 0.0 | -1 |
This method was generated by MyBatis Generator. This method sets the value of the database column ball_pack_product.update_time | public void setUpdateTime(LocalDateTime updateTime) {
this.updateTime = updateTime;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void setUpdate_time(Date update_time) {\n this.update_time = update_time;\n }",
"public void setUpdate_time(Date update_time) {\n this.update_time = update_time;\n }",
"public void setUpdatetime(Date updatetime) {\r\n this.updatetime = updatetime;\r\n }",
"public void set... | [
"0.715536",
"0.715536",
"0.68975705",
"0.6861853",
"0.6861853",
"0.68457216",
"0.669763",
"0.65700877",
"0.6565579",
"0.65493083",
"0.65493083",
"0.65493083",
"0.65493083",
"0.653625",
"0.65163255",
"0.6505701",
"0.6478953",
"0.6476627",
"0.6476627",
"0.6476627",
"0.6476627",... | 0.63417715 | 74 |
This method was generated by MyBatis Generator. This method corresponds to the database table ball_pack_product | public void andLogicalDeleted(boolean deleted) {
setDeleted(deleted ? Deleted.IS_DELETED.value() : Deleted.NOT_DELETED.value());
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void ListAllProduct() {\r\n\t\t\tSystem.out.println(\" *************from inside ListAllProduct()********************** \");\r\n\t\t\tTransaction tx = null;\r\n\t\t\ttry {\r\n\r\n\t\t\t\tsessionObj = HibernateUtil.buildSessionFactory().openSession();\r\n\t\t\t\ttx = sessionObj.beginTransaction();\r\n\t\t\t... | [
"0.57962185",
"0.5788106",
"0.5778795",
"0.57243097",
"0.5666483",
"0.5607855",
"0.56045663",
"0.5604259",
"0.55992246",
"0.55459267",
"0.5544637",
"0.55294514",
"0.55085397",
"0.5507834",
"0.5505174",
"0.54930735",
"0.54896396",
"0.54775786",
"0.546712",
"0.54560053",
"0.542... | 0.0 | -1 |
This method was generated by MyBatis Generator. This method returns the value of the database column ball_pack_product.deleted | public Boolean getDeleted() {
return deleted;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public Long deleted() {\n return this.deleted;\n }",
"public Integer getDeleted() {\n return deleted;\n }",
"public java.lang.Boolean getDeleted();",
"public Byte getDeleted() {\n return deleted;\n }",
"public Boolean getDeleted() {\n return deleted;\n }",
"public Boolea... | [
"0.687574",
"0.6670799",
"0.65947694",
"0.6512848",
"0.6418728",
"0.63681346",
"0.6343329",
"0.62871045",
"0.628667",
"0.62376934",
"0.62376934",
"0.6231806",
"0.622487",
"0.6213952",
"0.61643183",
"0.6094504",
"0.6072251",
"0.6072251",
"0.60488576",
"0.604029",
"0.6028485",
... | 0.64033926 | 8 |
This method was generated by MyBatis Generator. This method sets the value of the database column ball_pack_product.deleted | public void setDeleted(Boolean deleted) {
this.deleted = deleted;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void markProductAsDeleted(int productCode) throws SQLException {\n\t\tPreparedStatement productSt = null;\n\t\tString productSql = \"UPDATE PRODOTTO SET ELIMINATO = ?, DATAELIMINAZIONE = ? WHERE CODICE = ?;\";\n\t\t\n\t\ttry{\n\t\t\tproductSt = connection.prepareStatement(productSql);\n\t\t\tproductSt.setBo... | [
"0.6310927",
"0.62721777",
"0.6202093",
"0.6146866",
"0.6146296",
"0.6042941",
"0.6023053",
"0.5986129",
"0.5932007",
"0.59308326",
"0.58801013",
"0.584455",
"0.5765533",
"0.5760887",
"0.57559156",
"0.5728147",
"0.5726504",
"0.5713189",
"0.56849897",
"0.56757563",
"0.566828",... | 0.60056335 | 10 |
This method was generated by MyBatis Generator. This method returns the value of the database column ball_pack_product.reason | public String getReason() {
return reason;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public String getReason() {\n return this.reason;\n }",
"public String getReason() {\n\t\treturn this.reason;\n\t}",
"public String getReason() {\n\t\treturn(m_reason);\n\t}",
"public Reason getReason() {\n return this.reason;\n }",
"public String getReason() {\n\t\treturn getProperty(\... | [
"0.6199377",
"0.61729175",
"0.6134382",
"0.61223793",
"0.61193264",
"0.6093419",
"0.6053237",
"0.6038279",
"0.6022119",
"0.5991336",
"0.5980234",
"0.597102",
"0.5965378",
"0.59640133",
"0.59313935",
"0.5861243",
"0.585101",
"0.5833578",
"0.57479763",
"0.5737758",
"0.57302463"... | 0.6040058 | 8 |
This method was generated by MyBatis Generator. This method sets the value of the database column ball_pack_product.reason | public void setReason(String reason) {
this.reason = reason;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void setReason(String value) {\n this.reason = value;\n }",
"public void setReason(String reason) {\n this.reason = reason;\n }",
"public void setReason(String aReason) {\n\t\tthis.reason = aReason;\n\t}",
"public void setReason(String reason);",
"public void setReason(String re... | [
"0.59356785",
"0.5923655",
"0.58945197",
"0.58941674",
"0.5836557",
"0.57434034",
"0.56295615",
"0.5543636",
"0.54628974",
"0.53772634",
"0.5219776",
"0.5161841",
"0.51485926",
"0.5095142",
"0.5054989",
"0.5047198",
"0.50305957",
"0.5024458",
"0.5005981",
"0.50047076",
"0.499... | 0.5834129 | 6 |
This method was generated by MyBatis Generator. This method returns the value of the database column ball_pack_product.ball_pack_id | public Integer getBallPackId() {
return ballPackId;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public long getShopBasketId();",
"public void setBallPackId(Integer ballPackId) {\n this.ballPackId = ballPackId;\n }",
"public long getItemShopBasketId();",
"long getPackageid();",
"long getPackageid();",
"@Override\n\tpublic long getPrimaryKey() {\n\t\treturn _buySellProducts.getPrimaryKey();... | [
"0.6183268",
"0.6108579",
"0.6029676",
"0.5963369",
"0.5963369",
"0.5709685",
"0.5691994",
"0.56834984",
"0.5618676",
"0.5610982",
"0.559149",
"0.5547447",
"0.5466268",
"0.54616576",
"0.54556906",
"0.54490054",
"0.5432335",
"0.5432335",
"0.5414132",
"0.5414132",
"0.5406338",
... | 0.7069185 | 0 |
This method was generated by MyBatis Generator. This method sets the value of the database column ball_pack_product.ball_pack_id | public void setBallPackId(Integer ballPackId) {
this.ballPackId = ballPackId;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public Integer getBallPackId() {\n return ballPackId;\n }",
"public void setShopBasketId(long shopBasketId);",
"public void setM_Product_ID (int M_Product_ID);",
"public void setM_Product_ID (int M_Product_ID);",
"public void setM_Production_ID (int M_Production_ID);",
"private void setBId(int ... | [
"0.6579621",
"0.5672116",
"0.55692697",
"0.55692697",
"0.5543104",
"0.5501743",
"0.5364879",
"0.5360417",
"0.5344333",
"0.53298205",
"0.53215057",
"0.531145",
"0.53108853",
"0.52791995",
"0.52611285",
"0.52596503",
"0.51724666",
"0.51552355",
"0.5122476",
"0.50886863",
"0.507... | 0.692742 | 0 |
This method was generated by MyBatis Generator. This method corresponds to the database table ball_pack_product | @Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append(getClass().getSimpleName());
sb.append(" [");
sb.append("Hash = ").append(hashCode());
sb.append(", IS_DELETED=").append(IS_DELETED);
sb.append(", NOT_DELETED=").append(NOT_DELETED);
sb.append(", id=").append(id);
sb.append(", valueId=").append(valueId);
sb.append(", addTime=").append(addTime);
sb.append(", updateTime=").append(updateTime);
sb.append(", deleted=").append(deleted);
sb.append(", reason=").append(reason);
sb.append(", ballPackId=").append(ballPackId);
sb.append("]");
return sb.toString();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void ListAllProduct() {\r\n\t\t\tSystem.out.println(\" *************from inside ListAllProduct()********************** \");\r\n\t\t\tTransaction tx = null;\r\n\t\t\ttry {\r\n\r\n\t\t\t\tsessionObj = HibernateUtil.buildSessionFactory().openSession();\r\n\t\t\t\ttx = sessionObj.beginTransaction();\r\n\t\t\t... | [
"0.57962185",
"0.5788106",
"0.5778795",
"0.57243097",
"0.5666483",
"0.5607855",
"0.56045663",
"0.5604259",
"0.55992246",
"0.55459267",
"0.5544637",
"0.55294514",
"0.55085397",
"0.5507834",
"0.5505174",
"0.54930735",
"0.54896396",
"0.54775786",
"0.546712",
"0.54560053",
"0.542... | 0.0 | -1 |
This method was generated by MyBatis Generator. This method corresponds to the database table ball_pack_product | @Override
public boolean equals(Object that) {
if (this == that) {
return true;
}
if (that == null) {
return false;
}
if (getClass() != that.getClass()) {
return false;
}
BallPackProduct other = (BallPackProduct) that;
return (this.getId() == null ? other.getId() == null : this.getId().equals(other.getId()))
&& (this.getValueId() == null ? other.getValueId() == null : this.getValueId().equals(other.getValueId()))
&& (this.getAddTime() == null ? other.getAddTime() == null : this.getAddTime().equals(other.getAddTime()))
&& (this.getUpdateTime() == null ? other.getUpdateTime() == null : this.getUpdateTime().equals(other.getUpdateTime()))
&& (this.getDeleted() == null ? other.getDeleted() == null : this.getDeleted().equals(other.getDeleted()))
&& (this.getReason() == null ? other.getReason() == null : this.getReason().equals(other.getReason()))
&& (this.getBallPackId() == null ? other.getBallPackId() == null : this.getBallPackId().equals(other.getBallPackId()));
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void ListAllProduct() {\r\n\t\t\tSystem.out.println(\" *************from inside ListAllProduct()********************** \");\r\n\t\t\tTransaction tx = null;\r\n\t\t\ttry {\r\n\r\n\t\t\t\tsessionObj = HibernateUtil.buildSessionFactory().openSession();\r\n\t\t\t\ttx = sessionObj.beginTransaction();\r\n\t\t\t... | [
"0.57962185",
"0.5788106",
"0.5778795",
"0.57243097",
"0.5666483",
"0.5607855",
"0.56045663",
"0.5604259",
"0.55992246",
"0.55459267",
"0.5544637",
"0.55294514",
"0.55085397",
"0.5507834",
"0.5505174",
"0.54930735",
"0.54896396",
"0.54775786",
"0.546712",
"0.54560053",
"0.542... | 0.0 | -1 |
This method was generated by MyBatis Generator. This method corresponds to the database table ball_pack_product | @Override
public int hashCode() {
final int prime = 31;
int result = 1;
result = prime * result + ((getId() == null) ? 0 : getId().hashCode());
result = prime * result + ((getValueId() == null) ? 0 : getValueId().hashCode());
result = prime * result + ((getAddTime() == null) ? 0 : getAddTime().hashCode());
result = prime * result + ((getUpdateTime() == null) ? 0 : getUpdateTime().hashCode());
result = prime * result + ((getDeleted() == null) ? 0 : getDeleted().hashCode());
result = prime * result + ((getReason() == null) ? 0 : getReason().hashCode());
result = prime * result + ((getBallPackId() == null) ? 0 : getBallPackId().hashCode());
return result;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void ListAllProduct() {\r\n\t\t\tSystem.out.println(\" *************from inside ListAllProduct()********************** \");\r\n\t\t\tTransaction tx = null;\r\n\t\t\ttry {\r\n\r\n\t\t\t\tsessionObj = HibernateUtil.buildSessionFactory().openSession();\r\n\t\t\t\ttx = sessionObj.beginTransaction();\r\n\t\t\t... | [
"0.5797155",
"0.57874024",
"0.5777821",
"0.5724395",
"0.56678903",
"0.560831",
"0.5605571",
"0.5604123",
"0.5598447",
"0.5547181",
"0.5544748",
"0.5530436",
"0.55098486",
"0.5508721",
"0.550488",
"0.5492648",
"0.5489038",
"0.54772735",
"0.5467213",
"0.5456925",
"0.54222345",
... | 0.0 | -1 |
This method was generated by MyBatis Generator. This method corresponds to the database table ball_pack_product | Deleted(Boolean value, String name) {
this.value = value;
this.name = name;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void ListAllProduct() {\r\n\t\t\tSystem.out.println(\" *************from inside ListAllProduct()********************** \");\r\n\t\t\tTransaction tx = null;\r\n\t\t\ttry {\r\n\r\n\t\t\t\tsessionObj = HibernateUtil.buildSessionFactory().openSession();\r\n\t\t\t\ttx = sessionObj.beginTransaction();\r\n\t\t\t... | [
"0.57962185",
"0.5788106",
"0.5778795",
"0.57243097",
"0.5666483",
"0.5607855",
"0.56045663",
"0.5604259",
"0.55992246",
"0.55459267",
"0.5544637",
"0.55294514",
"0.55085397",
"0.5507834",
"0.5505174",
"0.54930735",
"0.54896396",
"0.54775786",
"0.546712",
"0.54560053",
"0.542... | 0.0 | -1 |
This method was generated by MyBatis Generator. This method corresponds to the database table ball_pack_product | public Boolean getValue() {
return this.value;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void ListAllProduct() {\r\n\t\t\tSystem.out.println(\" *************from inside ListAllProduct()********************** \");\r\n\t\t\tTransaction tx = null;\r\n\t\t\ttry {\r\n\r\n\t\t\t\tsessionObj = HibernateUtil.buildSessionFactory().openSession();\r\n\t\t\t\ttx = sessionObj.beginTransaction();\r\n\t\t\t... | [
"0.57962185",
"0.5788106",
"0.5778795",
"0.57243097",
"0.5666483",
"0.5607855",
"0.56045663",
"0.5604259",
"0.55992246",
"0.55459267",
"0.5544637",
"0.55294514",
"0.55085397",
"0.5507834",
"0.5505174",
"0.54930735",
"0.54896396",
"0.54775786",
"0.546712",
"0.54560053",
"0.542... | 0.0 | -1 |
This method was generated by MyBatis Generator. This method corresponds to the database table ball_pack_product | public Boolean value() {
return this.value;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void ListAllProduct() {\r\n\t\t\tSystem.out.println(\" *************from inside ListAllProduct()********************** \");\r\n\t\t\tTransaction tx = null;\r\n\t\t\ttry {\r\n\r\n\t\t\t\tsessionObj = HibernateUtil.buildSessionFactory().openSession();\r\n\t\t\t\ttx = sessionObj.beginTransaction();\r\n\t\t\t... | [
"0.57962185",
"0.5788106",
"0.5778795",
"0.57243097",
"0.5666483",
"0.5607855",
"0.56045663",
"0.5604259",
"0.55992246",
"0.55459267",
"0.5544637",
"0.55294514",
"0.55085397",
"0.5507834",
"0.5505174",
"0.54930735",
"0.54896396",
"0.54775786",
"0.546712",
"0.54560053",
"0.542... | 0.0 | -1 |
This method was generated by MyBatis Generator. This method corresponds to the database table ball_pack_product | public String getName() {
return this.name;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void ListAllProduct() {\r\n\t\t\tSystem.out.println(\" *************from inside ListAllProduct()********************** \");\r\n\t\t\tTransaction tx = null;\r\n\t\t\ttry {\r\n\r\n\t\t\t\tsessionObj = HibernateUtil.buildSessionFactory().openSession();\r\n\t\t\t\ttx = sessionObj.beginTransaction();\r\n\t\t\t... | [
"0.5797155",
"0.57874024",
"0.5777821",
"0.5724395",
"0.56678903",
"0.560831",
"0.5605571",
"0.5604123",
"0.5598447",
"0.5547181",
"0.5544748",
"0.5530436",
"0.55098486",
"0.5508721",
"0.550488",
"0.5492648",
"0.5489038",
"0.54772735",
"0.5467213",
"0.5456925",
"0.54222345",
... | 0.0 | -1 |
This method was generated by MyBatis Generator. This method corresponds to the database table ball_pack_product | public String value() {
return this.column;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void ListAllProduct() {\r\n\t\t\tSystem.out.println(\" *************from inside ListAllProduct()********************** \");\r\n\t\t\tTransaction tx = null;\r\n\t\t\ttry {\r\n\r\n\t\t\t\tsessionObj = HibernateUtil.buildSessionFactory().openSession();\r\n\t\t\t\ttx = sessionObj.beginTransaction();\r\n\t\t\t... | [
"0.57962185",
"0.5788106",
"0.5778795",
"0.57243097",
"0.5666483",
"0.5607855",
"0.56045663",
"0.5604259",
"0.55992246",
"0.55459267",
"0.5544637",
"0.55294514",
"0.55085397",
"0.5507834",
"0.5505174",
"0.54930735",
"0.54896396",
"0.54775786",
"0.546712",
"0.54560053",
"0.542... | 0.0 | -1 |
This method was generated by MyBatis Generator. This method corresponds to the database table ball_pack_product | public String getValue() {
return this.column;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void ListAllProduct() {\r\n\t\t\tSystem.out.println(\" *************from inside ListAllProduct()********************** \");\r\n\t\t\tTransaction tx = null;\r\n\t\t\ttry {\r\n\r\n\t\t\t\tsessionObj = HibernateUtil.buildSessionFactory().openSession();\r\n\t\t\t\ttx = sessionObj.beginTransaction();\r\n\t\t\t... | [
"0.57962185",
"0.5788106",
"0.5778795",
"0.57243097",
"0.5666483",
"0.5607855",
"0.56045663",
"0.5604259",
"0.55992246",
"0.55459267",
"0.5544637",
"0.55294514",
"0.55085397",
"0.5507834",
"0.5505174",
"0.54930735",
"0.54896396",
"0.54775786",
"0.546712",
"0.54560053",
"0.542... | 0.0 | -1 |
This method was generated by MyBatis Generator. This method corresponds to the database table ball_pack_product | public String getJavaProperty() {
return this.javaProperty;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void ListAllProduct() {\r\n\t\t\tSystem.out.println(\" *************from inside ListAllProduct()********************** \");\r\n\t\t\tTransaction tx = null;\r\n\t\t\ttry {\r\n\r\n\t\t\t\tsessionObj = HibernateUtil.buildSessionFactory().openSession();\r\n\t\t\t\ttx = sessionObj.beginTransaction();\r\n\t\t\t... | [
"0.57962185",
"0.5788106",
"0.5778795",
"0.57243097",
"0.5666483",
"0.5607855",
"0.56045663",
"0.5604259",
"0.55992246",
"0.55459267",
"0.5544637",
"0.55294514",
"0.55085397",
"0.5507834",
"0.5505174",
"0.54930735",
"0.54896396",
"0.54775786",
"0.546712",
"0.54560053",
"0.542... | 0.0 | -1 |
This method was generated by MyBatis Generator. This method corresponds to the database table ball_pack_product | public String getJdbcType() {
return this.jdbcType;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void ListAllProduct() {\r\n\t\t\tSystem.out.println(\" *************from inside ListAllProduct()********************** \");\r\n\t\t\tTransaction tx = null;\r\n\t\t\ttry {\r\n\r\n\t\t\t\tsessionObj = HibernateUtil.buildSessionFactory().openSession();\r\n\t\t\t\ttx = sessionObj.beginTransaction();\r\n\t\t\t... | [
"0.5797155",
"0.57874024",
"0.5777821",
"0.5724395",
"0.56678903",
"0.560831",
"0.5605571",
"0.5604123",
"0.5598447",
"0.5547181",
"0.5544748",
"0.5530436",
"0.55098486",
"0.5508721",
"0.550488",
"0.5492648",
"0.5489038",
"0.54772735",
"0.5467213",
"0.5456925",
"0.54222345",
... | 0.0 | -1 |
This method was generated by MyBatis Generator. This method corresponds to the database table ball_pack_product | Column(String column, String javaProperty, String jdbcType, boolean isColumnNameDelimited) {
this.column = column;
this.javaProperty = javaProperty;
this.jdbcType = jdbcType;
this.isColumnNameDelimited = isColumnNameDelimited;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void ListAllProduct() {\r\n\t\t\tSystem.out.println(\" *************from inside ListAllProduct()********************** \");\r\n\t\t\tTransaction tx = null;\r\n\t\t\ttry {\r\n\r\n\t\t\t\tsessionObj = HibernateUtil.buildSessionFactory().openSession();\r\n\t\t\t\ttx = sessionObj.beginTransaction();\r\n\t\t\t... | [
"0.57962185",
"0.5788106",
"0.5778795",
"0.57243097",
"0.5666483",
"0.5607855",
"0.56045663",
"0.5604259",
"0.55992246",
"0.55459267",
"0.5544637",
"0.55294514",
"0.55085397",
"0.5507834",
"0.5505174",
"0.54930735",
"0.54896396",
"0.54775786",
"0.546712",
"0.54560053",
"0.542... | 0.0 | -1 |
This method was generated by MyBatis Generator. This method corresponds to the database table ball_pack_product | public String desc() {
return this.getEscapedColumnName() + " DESC";
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void ListAllProduct() {\r\n\t\t\tSystem.out.println(\" *************from inside ListAllProduct()********************** \");\r\n\t\t\tTransaction tx = null;\r\n\t\t\ttry {\r\n\r\n\t\t\t\tsessionObj = HibernateUtil.buildSessionFactory().openSession();\r\n\t\t\t\ttx = sessionObj.beginTransaction();\r\n\t\t\t... | [
"0.57962185",
"0.5788106",
"0.5778795",
"0.57243097",
"0.5666483",
"0.5607855",
"0.56045663",
"0.5604259",
"0.55992246",
"0.55459267",
"0.5544637",
"0.55294514",
"0.55085397",
"0.5507834",
"0.5505174",
"0.54930735",
"0.54896396",
"0.54775786",
"0.546712",
"0.54560053",
"0.542... | 0.0 | -1 |
This method was generated by MyBatis Generator. This method corresponds to the database table ball_pack_product | public String asc() {
return this.getEscapedColumnName() + " ASC";
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void ListAllProduct() {\r\n\t\t\tSystem.out.println(\" *************from inside ListAllProduct()********************** \");\r\n\t\t\tTransaction tx = null;\r\n\t\t\ttry {\r\n\r\n\t\t\t\tsessionObj = HibernateUtil.buildSessionFactory().openSession();\r\n\t\t\t\ttx = sessionObj.beginTransaction();\r\n\t\t\t... | [
"0.57962185",
"0.5788106",
"0.5778795",
"0.57243097",
"0.5666483",
"0.5607855",
"0.56045663",
"0.5604259",
"0.55992246",
"0.55459267",
"0.5544637",
"0.55294514",
"0.55085397",
"0.5507834",
"0.5505174",
"0.54930735",
"0.54896396",
"0.54775786",
"0.546712",
"0.54560053",
"0.542... | 0.0 | -1 |
This method was generated by MyBatis Generator. This method corresponds to the database table ball_pack_product | public static Column[] excludes(Column ... excludes) {
ArrayList<Column> columns = new ArrayList<>(Arrays.asList(Column.values()));
if (excludes != null && excludes.length > 0) {
columns.removeAll(new ArrayList<>(Arrays.asList(excludes)));
}
return columns.toArray(new Column[]{});
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void ListAllProduct() {\r\n\t\t\tSystem.out.println(\" *************from inside ListAllProduct()********************** \");\r\n\t\t\tTransaction tx = null;\r\n\t\t\ttry {\r\n\r\n\t\t\t\tsessionObj = HibernateUtil.buildSessionFactory().openSession();\r\n\t\t\t\ttx = sessionObj.beginTransaction();\r\n\t\t\t... | [
"0.5797155",
"0.57874024",
"0.5777821",
"0.5724395",
"0.56678903",
"0.560831",
"0.5605571",
"0.5604123",
"0.5598447",
"0.5547181",
"0.5544748",
"0.5530436",
"0.55098486",
"0.5508721",
"0.550488",
"0.5492648",
"0.5489038",
"0.54772735",
"0.5467213",
"0.5456925",
"0.54222345",
... | 0.0 | -1 |
This method was generated by MyBatis Generator. This method corresponds to the database table ball_pack_product | public String getEscapedColumnName() {
if (this.isColumnNameDelimited) {
return new StringBuilder().append(BEGINNING_DELIMITER).append(this.column).append(ENDING_DELIMITER).toString();
} else {
return this.column;
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void ListAllProduct() {\r\n\t\t\tSystem.out.println(\" *************from inside ListAllProduct()********************** \");\r\n\t\t\tTransaction tx = null;\r\n\t\t\ttry {\r\n\r\n\t\t\t\tsessionObj = HibernateUtil.buildSessionFactory().openSession();\r\n\t\t\t\ttx = sessionObj.beginTransaction();\r\n\t\t\t... | [
"0.57962185",
"0.5788106",
"0.5778795",
"0.57243097",
"0.5666483",
"0.5607855",
"0.56045663",
"0.5604259",
"0.55992246",
"0.55459267",
"0.5544637",
"0.55294514",
"0.55085397",
"0.5507834",
"0.5505174",
"0.54930735",
"0.54896396",
"0.54775786",
"0.546712",
"0.54560053",
"0.542... | 0.0 | -1 |
This method was generated by MyBatis Generator. This method corresponds to the database table ball_pack_product | public String getAliasedEscapedColumnName() {
return this.getEscapedColumnName();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void ListAllProduct() {\r\n\t\t\tSystem.out.println(\" *************from inside ListAllProduct()********************** \");\r\n\t\t\tTransaction tx = null;\r\n\t\t\ttry {\r\n\r\n\t\t\t\tsessionObj = HibernateUtil.buildSessionFactory().openSession();\r\n\t\t\t\ttx = sessionObj.beginTransaction();\r\n\t\t\t... | [
"0.57962185",
"0.5788106",
"0.5778795",
"0.57243097",
"0.5666483",
"0.5607855",
"0.56045663",
"0.5604259",
"0.55992246",
"0.55459267",
"0.5544637",
"0.55294514",
"0.55085397",
"0.5507834",
"0.5505174",
"0.54930735",
"0.54896396",
"0.54775786",
"0.546712",
"0.54560053",
"0.542... | 0.0 | -1 |
/ renamed from: a | public static CardGiftInfo m84652a(C15317ao c15317ao) {
LinkedList linkedList;
AppMethodBeat.m2504i(87788);
CardGiftInfo cardGiftInfo = new CardGiftInfo();
cardGiftInfo.toUserName = c15317ao.vBE;
cardGiftInfo.cKE = c15317ao.vBF;
cardGiftInfo.kcl = c15317ao.vBG;
cardGiftInfo.kcm = c15317ao.content;
cardGiftInfo.kcn = c15317ao.vBH;
cardGiftInfo.kco = c15317ao.vBI;
cardGiftInfo.kcp = c15317ao.vBJ;
cardGiftInfo.kcq = c15317ao.vBK;
cardGiftInfo.kcs = c15317ao.vBM;
cardGiftInfo.kcr = c15317ao.vBL;
cardGiftInfo.kct = c15317ao.vBN;
cardGiftInfo.kcu = c15317ao.vBO;
cardGiftInfo.kcv = c15317ao.kcU;
cardGiftInfo.kcw = c15317ao.kcV;
cardGiftInfo.kcx = c15317ao.vBP;
cardGiftInfo.color = c15317ao.color;
cardGiftInfo.kcy = c15317ao.vBQ;
cardGiftInfo.kcz = c15317ao.vBR;
cardGiftInfo.kcA = c15317ao.vBS;
cardGiftInfo.kcB = c15317ao.vBT;
cardGiftInfo.kcC = c15317ao.vBU;
cardGiftInfo.kcD = c15317ao.vBV;
cardGiftInfo.kcE = c15317ao.vBW;
cardGiftInfo.kcF = c15317ao.vBX;
cardGiftInfo.kcG = c15317ao.vBY;
cardGiftInfo.kcH = c15317ao.vBZ;
cardGiftInfo.kcI = c15317ao.vCa;
cardGiftInfo.kcJ = c15317ao.vCb;
cardGiftInfo.kcK = c15317ao.vCc;
cardGiftInfo.kcL = c15317ao.vCd;
cardGiftInfo.kcM = c15317ao.kbU;
cardGiftInfo.kcN = c15317ao.vCe;
Iterator it = c15317ao.kcO.iterator();
while (it.hasNext()) {
C7250ap c7250ap = (C7250ap) it.next();
linkedList = cardGiftInfo.kcO;
AcceptedCardItem acceptedCardItem = new AcceptedCardItem();
acceptedCardItem.kcV = c7250ap.kcV;
acceptedCardItem.kcU = c7250ap.kcU;
linkedList.add(acceptedCardItem);
}
it = c15317ao.kcP.iterator();
while (it.hasNext()) {
C35902aq c35902aq = (C35902aq) it.next();
linkedList = cardGiftInfo.kcP;
AccepterItem accepterItem = new AccepterItem();
accepterItem.kcV = c35902aq.kcV;
accepterItem.kcU = c35902aq.kcU;
accepterItem.kcX = c35902aq.kcX;
accepterItem.kcW = c35902aq.kcW;
linkedList.add(accepterItem);
}
cardGiftInfo.kcQ = c15317ao.kcQ;
cardGiftInfo.kcR = c15317ao.kcR;
cardGiftInfo.kcS = c15317ao.kcS;
cardGiftInfo.kcT = c15317ao.kcT;
AppMethodBeat.m2505o(87788);
return cardGiftInfo;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public interface C4521a {\n /* renamed from: a */\n void mo12348a();\n }",
"public interface C1423a {\n /* renamed from: a */\n void mo6888a(int i);\n }",
"interface bxc {\n /* renamed from: a */\n void mo2508a(bxb bxb);\n}",
"interface C33292a {\n /* renamed fr... | [
"0.62497115",
"0.6242887",
"0.61394435",
"0.61176854",
"0.6114027",
"0.60893",
"0.6046901",
"0.6024682",
"0.60201293",
"0.5975212",
"0.59482527",
"0.59121317",
"0.5883635",
"0.587841",
"0.58703005",
"0.5868436",
"0.5864884",
"0.5857492",
"0.58306104",
"0.5827752",
"0.58272064... | 0.0 | -1 |
/ renamed from: a | public static CardGiftInfo m84651a(agk agk) {
AppMethodBeat.m2504i(87789);
CardGiftInfo cardGiftInfo = new CardGiftInfo();
cardGiftInfo.toUserName = agk.vBE;
cardGiftInfo.cKE = agk.vBF;
cardGiftInfo.kcl = agk.vBG;
cardGiftInfo.kcm = agk.content;
cardGiftInfo.kcn = agk.vBH;
cardGiftInfo.kco = agk.vBI;
cardGiftInfo.kcp = agk.vBJ;
cardGiftInfo.kcq = agk.vBK;
cardGiftInfo.kcs = agk.vBM;
cardGiftInfo.kcr = agk.vBL;
cardGiftInfo.kct = agk.vBN;
cardGiftInfo.kcu = agk.vBO;
cardGiftInfo.kcv = agk.kcU;
cardGiftInfo.kcw = agk.kcV;
cardGiftInfo.kcx = agk.vBP;
cardGiftInfo.color = agk.color;
cardGiftInfo.kcy = agk.vBQ;
cardGiftInfo.kcz = agk.vBR;
cardGiftInfo.kcA = agk.vBS;
cardGiftInfo.kcB = agk.vBT;
cardGiftInfo.kcC = agk.vBU;
cardGiftInfo.kcD = agk.vBV;
cardGiftInfo.kcE = agk.vBW;
cardGiftInfo.kcF = agk.vBX;
cardGiftInfo.kcG = agk.vBY;
cardGiftInfo.kcH = agk.vBZ;
cardGiftInfo.kcI = agk.vCa;
cardGiftInfo.kcJ = agk.vCb;
cardGiftInfo.kcK = agk.vCc;
cardGiftInfo.kcL = agk.vCd;
cardGiftInfo.kcM = agk.kbU;
cardGiftInfo.kcN = agk.vCe;
AppMethodBeat.m2505o(87789);
return cardGiftInfo;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public interface C4521a {\n /* renamed from: a */\n void mo12348a();\n }",
"public interface C1423a {\n /* renamed from: a */\n void mo6888a(int i);\n }",
"interface bxc {\n /* renamed from: a */\n void mo2508a(bxb bxb);\n}",
"interface C33292a {\n /* renamed fr... | [
"0.62497115",
"0.6242887",
"0.61394435",
"0.61176854",
"0.6114027",
"0.60893",
"0.6046901",
"0.6024682",
"0.60201293",
"0.5975212",
"0.59482527",
"0.59121317",
"0.5883635",
"0.587841",
"0.58703005",
"0.5868436",
"0.5864884",
"0.5857492",
"0.58306104",
"0.5827752",
"0.58272064... | 0.0 | -1 |
Paints the forward move of this pawn to yellow | public void getFMove(Chessboard c) {
Chesspiece forward = c.FindChessPiece(this.getXCoordinate()-1, this.getYCoordinate());
Chesspiece more_forward = c.FindChessPiece(this.getXCoordinate()-2, this.getYCoordinate());
if (forward != null && forward.getIcon() == null) {
forward.setBackground(Color.YELLOW);
forward.setBorder(BorderFactory.createMatteBorder(1, 1, 1, 1, Color.BLACK));
}
if (this.getMoves() == 0 && more_forward != null && more_forward.getIcon() == null) {
more_forward.setBackground(Color.YELLOW);
more_forward.setBorder(BorderFactory.createMatteBorder(1, 1, 0, 1, Color.BLACK));
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void lightMove() {\n movePawn.setStyle(\"-fx-background-color: YELLOW;\"\n + \"-fx-background-radius: 30;\"\n + \"-fx-border-radius: 30;\"\n + \"-fx-border-color: 363507;\");\n buildPawn.setStyle(\"-fx-background-color: null\");\n stopPawn.se... | [
"0.64992166",
"0.6302171",
"0.62940615",
"0.6256341",
"0.6205193",
"0.61981225",
"0.61543566",
"0.61447704",
"0.61325896",
"0.6110157",
"0.6103826",
"0.6103424",
"0.6080414",
"0.6041097",
"0.6039081",
"0.6023923",
"0.60238904",
"0.6019381",
"0.6016361",
"0.5988382",
"0.596921... | 0.0 | -1 |
Paints the RD move of this pawn to yellow | public void getRDMove(Chessboard c) {
Chesspiece right_diagonal = c.FindChessPiece(this.getXCoordinate()-1, this.getYCoordinate()+1);
if (right_diagonal != null && right_diagonal.getPieceColor() == Color.BLACK && right_diagonal.getIcon() != null) {
right_diagonal.setBackground(Color.YELLOW);
right_diagonal.setBorder(BorderFactory.createMatteBorder(1, 1, 1, 1, Color.BLACK));
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void lightMove() {\n movePawn.setStyle(\"-fx-background-color: YELLOW;\"\n + \"-fx-background-radius: 30;\"\n + \"-fx-border-radius: 30;\"\n + \"-fx-border-color: 363507;\");\n buildPawn.setStyle(\"-fx-background-color: null\");\n stopPawn.se... | [
"0.6664058",
"0.64404696",
"0.63004905",
"0.62784386",
"0.6251377",
"0.62243503",
"0.6132376",
"0.60658973",
"0.60288143",
"0.60244584",
"0.60106313",
"0.60063636",
"0.6000231",
"0.59975684",
"0.59931004",
"0.5959636",
"0.59575397",
"0.59469485",
"0.59440553",
"0.59440017",
"... | 0.5897593 | 23 |
Paints the LD move of this pawn to yellow | public void getLDMove(Chessboard c) {
Chesspiece left_diagonal = c.FindChessPiece(this.getXCoordinate()-1, this.getYCoordinate()-1);
if (left_diagonal != null && left_diagonal.getPieceColor() == Color.BLACK && left_diagonal.getIcon() != null) {
left_diagonal.setBackground(Color.YELLOW);
left_diagonal.setBorder(BorderFactory.createMatteBorder(1, 1, 1, 1, Color.BLACK));
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void lightMove() {\n movePawn.setStyle(\"-fx-background-color: YELLOW;\"\n + \"-fx-background-radius: 30;\"\n + \"-fx-border-radius: 30;\"\n + \"-fx-border-color: 363507;\");\n buildPawn.setStyle(\"-fx-background-color: null\");\n stopPawn.se... | [
"0.6883351",
"0.6707893",
"0.6402258",
"0.6303712",
"0.62829524",
"0.62459767",
"0.6241529",
"0.6213773",
"0.61123776",
"0.6104432",
"0.60862654",
"0.60700583",
"0.60449773",
"0.6019771",
"0.60140157",
"0.60107636",
"0.60101134",
"0.5991901",
"0.59906006",
"0.5984774",
"0.595... | 0.0 | -1 |
Paints all possible moves by this pawn to Yellow | public void allMoves(Chessboard c) {
if (this.getIcon() != null) {
this.getLDMove(c);
this.getRDMove(c);
this.getFMove(c);
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"protected void drawPossibleMoves(){\n if (selectedPiece == null) return;\n Pair<Integer,Integer> coord = getJButtonCoord(selectedPiece);\n int startRow = coord.getKey();\n int startCol = coord.getValue();\n for(int row = 0;row < ROWS;row ++){\n for(int col = 0; col < C... | [
"0.70303166",
"0.7028545",
"0.6703359",
"0.6691801",
"0.65696704",
"0.6535745",
"0.64922076",
"0.6404909",
"0.6399753",
"0.6397025",
"0.6317526",
"0.6298021",
"0.6271586",
"0.62711525",
"0.6262987",
"0.62628174",
"0.62132424",
"0.6212678",
"0.62060624",
"0.6197947",
"0.618496... | 0.0 | -1 |
TODO Autogenerated method stub | public static void main(String[] args) {
} | {
"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 |
Spring Data repository for the Car entity. | @SuppressWarnings("unused")
@Repository
public interface CarRepository extends JpaRepository<Car, Long> {
Optional<Car> findByCode(String code);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public interface CarsRepository extends JpaRepository<Car, Long> {\n\n}",
"@Repository\npublic interface CarDao extends JpaRepository<Car, Integer> {\n}",
"public interface CarRepository extends CrudRepository<CarDO, Long> {\n\n List<CarDO> findByDeletedFalse();\n\n List<CarDO> findByEngineType(EngineTyp... | [
"0.78001463",
"0.75979894",
"0.7388391",
"0.7239541",
"0.70004135",
"0.6863886",
"0.6747176",
"0.6662103",
"0.6633116",
"0.6624152",
"0.65904355",
"0.6571773",
"0.65450126",
"0.6491918",
"0.6484557",
"0.64750123",
"0.64541876",
"0.6441687",
"0.6390089",
"0.63898826",
"0.63827... | 0.7434606 | 2 |
access token fail call login api | @Override
public void onApiFailure(Throwable mThrowable) {
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n public void authenticate() throws IOException, BadAccessIdOrKeyException {\n try{\n HttpPost post = new HttpPost(Constants.FRGXAPI_TOKEN);\n List<NameValuePair> params = new ArrayList<>();\n params.add(new BasicNameValuePair(\"grant_type\", \"apiAccessKey\"));... | [
"0.70751226",
"0.6806021",
"0.65635896",
"0.6536943",
"0.6429866",
"0.6391102",
"0.63433254",
"0.6339727",
"0.6339727",
"0.6273136",
"0.6248333",
"0.6240425",
"0.62334037",
"0.62212116",
"0.62032944",
"0.6177323",
"0.61743754",
"0.61743367",
"0.6152731",
"0.61525935",
"0.6141... | 0.0 | -1 |
/ This method returns the path from the source to the selected target and NULL if no path exists | public ArrayList<Vertex> getPath(Vertex target) {
ArrayList<Vertex> path = new ArrayList<Vertex>();
Vertex step = target;
// check if a path exists
if (predecessors.get(step) == null) {
return null;
}
path.add(step);
while (predecessors.get(step) != null) {
step = predecessors.get(step);
path.add(step);
}
// Put it into the correct order
Collections.reverse(path);
Vertex current=null;
Vertex next=null;
int length = path.size();
for(int i=0;i<length-1;i++){
current = path.get(i);
next = path.get(i+1);
if(!rapid && (nodeColor_map.get(current.getName()).equalsIgnoreCase("dB")||
nodeColor_map.get(next.getName()).equalsIgnoreCase("dB")))
rapid = true;
route_length+= edge_length_map.get(new Pair(current,next));
}
return path;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"Path getTargetPath()\n {\n return targetPath;\n }",
"java.lang.String getSrcPath();",
"public Optional<URI> getCurrentSourcePath() {\r\n return context.getAssociatedPath();\r\n }",
"public java.lang.String getTargetPath() {\n java.lang.Object ref = targetPath_;\n if (ref instance... | [
"0.682904",
"0.65510434",
"0.65464175",
"0.6367105",
"0.6315979",
"0.6254239",
"0.6161452",
"0.61286914",
"0.61017805",
"0.6086827",
"0.60732436",
"0.6044311",
"0.6040599",
"0.60221046",
"0.60100055",
"0.59938574",
"0.5961226",
"0.5932972",
"0.5932972",
"0.5926779",
"0.590421... | 0.0 | -1 |
this will launch the browser | @Test
public void verifyValidLogin()
{
WebDriver driver=BrowserFacotry.StartBrowser("chromedriver", "http://newtours.demoaut.com/");
//created page object using page factory
VerifyLoginNew login_page = PageFactory.initElements(driver, VerifyLoginNew.class);
//call the method
login_page.Username("mercury");
login_page.Password("mercury");
login_page.Login();
FlightFinder f1= PageFactory.initElements(driver,FlightFinder.class);
// FlightFinder f1 = new FlightFinder();
//f1.strType();
f1.strType2();
//Passenger Data
Select sel=new Select(f1.passengerDropDown());
sel.selectByIndex(0);
//Departing Data
Select DP= new Select(f1.DeaprtingFrom());
DP.selectByIndex(3);
//Month
Select Mon= new Select(f1.Month_dep());
Mon.selectByIndex(9);
//from Day
Select onday= new Select(f1.From_day());
onday.selectByIndex(5);
//Arriving
Select Arriving = new Select(f1.Arriving_In());
Arriving.selectByVisibleText("New York");
//Returning
Select Return= new Select(f1.Return());
Return.selectByIndex(4);
//to day
Select Day_to = new Select(f1.Return_day());
Day_to.selectByVisibleText("22");
//service Class
//f1.Service_class();
//f1.Service_class1();
f1.Service_class2();
//Airlines
Select airlines=new Select(f1.airlines());
airlines.selectByIndex(2);
f1.Continue();
// Select Flight Depart
SelectFlight f2= PageFactory.initElements(driver, SelectFlight.class);
f2.Flight2();
//Select Flight Return
f2.Re_Flight3();
// continue
f2.Continue2();
//Book A Flight
//Passenger
BookFlight f3= PageFactory.initElements(driver,BookFlight.class);
f3.Passenger_name("Ravupalli");
f3.Passenger_Last("Sowjanya");
Select Meals= new Select(f3.Meals());
Meals.selectByIndex(1);
//Credit card
Select Cards = new Select(f3.Cards());
Cards.selectByIndex(1);
f3.CreditCard_number("1234293849345");
Select Exp_month= new Select(f3.Exp_month());
Exp_month.selectByIndex(2);
Select Exp_year= new Select(f3.Exp_year());
Exp_year.selectByIndex(2);
f3.CC_FirstName("Ravupalli");
f3.CC_MidName("Devi");
f3.CC_LastName("Sowjanya");
f3.BillAddress("House number-1234");
f3.BillAddress2("The gravyyard street");
f3.City("New york");
f3.State("CU");
f3.Postal_code("098756467");
Select Country=new Select(f3.Contry());
Country.selectByIndex(1);
f3.SameAddress();
f3.secure_purchase();
//Flight Logout
FlightConfirmation f4= PageFactory.initElements(driver, FlightConfirmation.class);
f4.Logout();
//Close browser
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void openBrowser() {\n ResourceBundle config = ResourceBundle.getBundle(\"config\");\n\n config.getString(\"browser\").equalsIgnoreCase(\"Chrome\");\n System.setProperty(\"webdriver.chrome.driver\", \"src/Drivers/chromedriver_76.0.exe\");\n driver = new ChromeDriver();\n\... | [
"0.77318573",
"0.7633686",
"0.7600119",
"0.75941575",
"0.75709784",
"0.7346783",
"0.7307146",
"0.72900325",
"0.7198892",
"0.712073",
"0.70591265",
"0.7055519",
"0.70412326",
"0.7038884",
"0.70149297",
"0.6951155",
"0.6947733",
"0.6921138",
"0.69146395",
"0.69110435",
"0.68747... | 0.0 | -1 |
Reverses the input String | public static String reverse(String s){
if(s.length()==0)
return s;
else{
return reverse(s.substring(1))+s.substring(0,1);
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"String reverseMyInput(String input);",
"public String reverse(String input) {\n \n // if there is no string, send it back\n if (input == null) {\n return input;\n }\n // string to return\n String output = \"\";\n // go from the back of input and put its last character at the front of ... | [
"0.76908636",
"0.7643855",
"0.7636764",
"0.74469787",
"0.71890944",
"0.71884596",
"0.7186471",
"0.71261406",
"0.7067174",
"0.7060068",
"0.7053605",
"0.7053224",
"0.7034909",
"0.7015408",
"0.7004276",
"0.7004276",
"0.7000615",
"0.6992733",
"0.69909394",
"0.69782525",
"0.696482... | 0.7014649 | 14 |
Checks to see if String is a palindrome | public static boolean palindrome(String s){
s=helpPalindrome(s);
if(s.length()>1){
if(s.charAt(0)==s.charAt(s.length()-1)){
palindrome(s.substring(1,s.length()-1));
} else
return false;
}
if(s.length()<2||s.length()>-1)
return true;
return false;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public static boolean IsPalindrome(String string){\r\n \r\n string = string.replace(\" \", \"\");\r\n \r\n String reverseString = new StringBuilder(string).reverse().toString();\r\n\r\n return reverseString.equalsIgnoreCase(string);\r\n }",
"public static boolean checkPalind... | [
"0.8606293",
"0.8422432",
"0.84219307",
"0.83822143",
"0.8278122",
"0.8275937",
"0.8263729",
"0.82570827",
"0.8216733",
"0.82152283",
"0.82134694",
"0.8208431",
"0.81987303",
"0.8171435",
"0.81645584",
"0.81284165",
"0.8118782",
"0.8113772",
"0.8079571",
"0.8069138",
"0.80625... | 0.8235657 | 8 |
Returns string to lowercase and removes punctuation | private static String helpPalindrome(String s){
s=s.toLowerCase().trim();
if(s.indexOf(",")>=0){
s=s.substring(0, s.indexOf(","))+s.substring(s.indexOf(",")+1);
s=helpPalindrome(s);
}else if(s.indexOf(".")>=0){
s=s.substring(0, s.indexOf("."))+s.substring(s.indexOf(".")+1);
s=helpPalindrome(s);
}else if(s.indexOf(":")>=0){
s=s.substring(0, s.indexOf(":"))+s.substring(s.indexOf(":")+1);
s=helpPalindrome(s);
}else if(s.indexOf(" ")>=0){
s=s.substring(0, s.indexOf(" "))+s.substring(s.indexOf(" ")+1);
s=helpPalindrome(s);
}else if(s.indexOf("'")>=0){
s=s.substring(0, s.indexOf("'"))+s.substring(s.indexOf("'")+1);
s=helpPalindrome(s);
}else if(s.indexOf("?")>=0){
s=s.substring(0, s.indexOf("?"))+s.substring(s.indexOf("?")+1);
s=helpPalindrome(s);
}else if(s.indexOf("!")>=0){
s=s.substring(0, s.indexOf("!"))+s.substring(s.indexOf("!")+1);
s=helpPalindrome(s);
}
return s;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"static String cleanString(String s) {\n return s.replaceAll(\"[^a-zA-Z ]\", \"\").toLowerCase();\n }",
"static String cleanString(String s) {\n return s.replaceAll(\"[^a-zA-Z ]\", \"\").toLowerCase();\n }",
"static String cleanString(String s) {\n return s.replaceAll(\"[^a-zA-Z ]\", ... | [
"0.7174277",
"0.7174277",
"0.7174277",
"0.7094655",
"0.68863094",
"0.65994376",
"0.65838486",
"0.65171146",
"0.6506311",
"0.64854246",
"0.64853054",
"0.6438024",
"0.6366601",
"0.6359809",
"0.626344",
"0.62479216",
"0.62230164",
"0.6209718",
"0.6202216",
"0.61859494",
"0.61282... | 0.0 | -1 |
Converts a String to shorthand "AND" to "&" "FOR" to "4" "TO" to "2" "YOU" to "U" | public static String shorthand(String s){
if(s.toUpperCase().indexOf("YOU")>=0){
s=s.substring(0, s.toUpperCase().indexOf("YOU"))+" U "+s.substring(s.toUpperCase().indexOf("YOU")+3);
s=shorthand(s);
}else if(s.toUpperCase().indexOf("FOR")>=0){
s=s.substring(0, s.toUpperCase().indexOf("FOR"))+" 4 "+s.substring(s.toUpperCase().indexOf("FOR")+3);
s=shorthand(s);
}else if(s.toUpperCase().indexOf("AND")>=0){
s=s.substring(0, s.toUpperCase().indexOf("AND"))+" & "+s.substring(s.toUpperCase().indexOf("AND")+3);
s=shorthand(s);
}else if(s.toUpperCase().indexOf("TO")>=0){
s=s.substring(0, s.toUpperCase().indexOf("TO"))+" 2 "+s.substring(s.toUpperCase().indexOf("TO")+3);
s=shorthand(s);
}
return removeVowels(s);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Test\n\tpublic void explicitANDTest() {\n\t\tString query = \"hello goodbye\";\n\t\tString query2 = \"hello goodbye hello\";\n\t\tString query3 = \"( hello ( goodbye | hello bye ) )\";\n\t\t\n\t\tString queryResults = \"hello & goodbye\";\n\t\tString query2Results = \"hello & goodbye & hello\";\n\t\tString query3... | [
"0.6555858",
"0.6242293",
"0.6171492",
"0.6063437",
"0.586845",
"0.5771392",
"0.5707908",
"0.56847537",
"0.55574256",
"0.55307645",
"0.5456293",
"0.5267634",
"0.52599776",
"0.5210477",
"0.5208419",
"0.51790506",
"0.5178494",
"0.5166018",
"0.51322365",
"0.51292086",
"0.5113619... | 0.60629576 | 4 |
Removes the vowels from a String | private static String removeVowels(String s){
if(s.toLowerCase().indexOf("a")>=0){
s=s.substring(0, s.toLowerCase().indexOf("a"))+s.substring(s.toLowerCase().indexOf("a")+1);
s=removeVowels(s);
}else if(s.toLowerCase().indexOf("e")>=0){
s=s.substring(0, s.toLowerCase().indexOf("e"))+s.substring(s.toLowerCase().indexOf("e")+1);
s=removeVowels(s);
}else if(s.toLowerCase().indexOf("i")>=0){
s=s.substring(0, s.toLowerCase().indexOf("i"))+s.substring(s.toLowerCase().indexOf("i")+1);
s=removeVowels(s);
}else if(s.toLowerCase().indexOf("o")>=0){
s=s.substring(0, s.toLowerCase().indexOf("o"))+s.substring(s.toLowerCase().indexOf("o")+1);
s=removeVowels(s);
}else if(s.toLowerCase().indexOf("u")>=0){
s=s.substring(0, s.toLowerCase().indexOf("u"))+s.substring(s.toLowerCase().indexOf("u")+1);
s=removeVowels(s);
}
return s;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public static String removeVowels(String s) {\n\n return s.replaceAll(\"[aeiouAEIOU]\", \"\");\n\n }",
"public String removeVowels(String s) {\n if (s == null) {\n return null;\n }\n String vowels = \"aeiou\";\n StringBuilder sb = new StringBuilder();\n for... | [
"0.8379044",
"0.80741936",
"0.7956655",
"0.77395517",
"0.7446967",
"0.7221017",
"0.6866431",
"0.6782844",
"0.6585739",
"0.6405735",
"0.6266561",
"0.6236518",
"0.6213967",
"0.6196024",
"0.61497015",
"0.6077296",
"0.60734046",
"0.60471976",
"0.603691",
"0.5993229",
"0.5978476",... | 0.8294034 | 1 |
constructs a new empty synchronized tree set. | public SyncedTreeSet() {
_treeSet = new TreeSet<T>();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public MyTreeSet()\r\n {\r\n root = null;\r\n }",
"static Set createEmpty() {\n return new EmptySet();\n }",
"public MyMultiset() {\n\t\tthis.set = new HashSet<Node>();\n\t}",
"private EmptySet() {}",
"public MyHashSet() {\n nodes = new Node[Max_Size];\n }",
"public EfficientTerminalSe... | [
"0.7334543",
"0.6905726",
"0.6827768",
"0.65998894",
"0.6466445",
"0.63996845",
"0.6395462",
"0.63578725",
"0.63373184",
"0.6334629",
"0.626134",
"0.6194802",
"0.615699",
"0.61518866",
"0.61276984",
"0.61176157",
"0.6113891",
"0.6104145",
"0.61015934",
"0.6098345",
"0.6080008... | 0.7358807 | 0 |
Return a list of current items in the set. | public ArrayList<T> getList() {
synchronized(this) {
return new ArrayList<T>(_treeSet);
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public List<Item> getCurrentItems() {\n return currentItems;\n }",
"@Override\n public Set<T> getItems() {\n return items;\n }",
"public List<K> getItems() {\n\t\t\treturn items;\n\t\t}",
"public List<T> items() {\n return items;\n }",
"private List<E> snapshot() {\n\t\tList<E> list = Li... | [
"0.6816221",
"0.68013376",
"0.66568696",
"0.6621716",
"0.6494706",
"0.6378081",
"0.63516456",
"0.6198061",
"0.6191941",
"0.6169906",
"0.616848",
"0.6127469",
"0.611973",
"0.6087719",
"0.606282",
"0.6041366",
"0.60399616",
"0.6027901",
"0.6025513",
"0.60192484",
"0.60155445",
... | 0.561124 | 100 |
Check if there's an instance of the given item already in the set | public boolean contains(T item) {
synchronized(this) {
return _treeSet.contains(item);
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n public boolean contains(T item) {\n Node n = first;\n //walk through the linked list untill you reach the end\n while(n != null) {\n //see if the item exists in the set, if it does return true\n if(n.value.equals(item))\n return true;\n ... | [
"0.75073063",
"0.7317679",
"0.7275751",
"0.7197103",
"0.7139584",
"0.7118434",
"0.7109148",
"0.68743384",
"0.6812472",
"0.678464",
"0.6779287",
"0.67393214",
"0.6735959",
"0.6724983",
"0.6705068",
"0.6690978",
"0.6690676",
"0.66696924",
"0.66355497",
"0.66232806",
"0.6585109"... | 0.69822085 | 7 |
adds the given item to the list, if absent | public void putIfAbsent(T item) {
synchronized(this) {
_treeSet.add(item);
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public boolean add(T item) {\n\t\treturn list.add(item);\n\t}",
"void add(Item item);",
"public void add(Item item) {\n for (int i = 0; i < items.length; i++) {\n if (items[i] == null) {\n items[i] = item;\n break;\n }\n }\n }",
"public voi... | [
"0.723747",
"0.72357273",
"0.70906496",
"0.70498514",
"0.701706",
"0.69817007",
"0.6971403",
"0.6889983",
"0.6804219",
"0.6804219",
"0.6804219",
"0.6800894",
"0.67983663",
"0.6796757",
"0.6767099",
"0.67485654",
"0.6735278",
"0.67273194",
"0.67219085",
"0.6671369",
"0.6671244... | 0.62415373 | 64 |
Removes item from the set | public void remove(String item) {
synchronized(this) {
_treeSet.remove(item);
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\r\n\tpublic boolean remove(Object o) {\n\t\treturn set.remove(o);\r\n\t}",
"@Override\n public boolean remove(T item) {\n //find the node with the value\n Node n = getRefTo(item);\n //make sure it actually is in the set\n if(n == null)\n return false;\n ... | [
"0.75054455",
"0.7082186",
"0.70106554",
"0.68604726",
"0.68079174",
"0.6792824",
"0.67401415",
"0.6736841",
"0.6733232",
"0.6716593",
"0.67165613",
"0.67165613",
"0.67165613",
"0.67165613",
"0.67165613",
"0.6714842",
"0.6688673",
"0.6685249",
"0.66633856",
"0.66389763",
"0.6... | 0.7250801 | 1 |
TODO Autogenerated method stub | public static void main(String[] args) {
SubClass obj = new SubClass();
obj.display();
} | {
"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 |
Add button for Assurance | public void setAssurance(View view) {
//include Assurance url here
assuranceURL = findViewById(R.id.assuranceUrl);
String url = assuranceURL.getText().toString();
Assurance.startSession(url);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void makeAcquireButton() {\r\n JButton acquire = new JButton(\"Acquire a new champion with Blue Essence\");\r\n new Button(acquire, main);\r\n// acquire.setAlignmentX(Component.LEFT_ALIGNMENT);\r\n// acquire.setPreferredSize(new Dimension(2500, 100));\r\n// acquire.setFont... | [
"0.6914137",
"0.67005384",
"0.65787315",
"0.65446293",
"0.65343815",
"0.65290785",
"0.6461869",
"0.6393111",
"0.6393111",
"0.6372382",
"0.63692844",
"0.63301927",
"0.63253367",
"0.6182456",
"0.61656755",
"0.6160912",
"0.6132663",
"0.60974526",
"0.6088479",
"0.6074254",
"0.607... | 0.0 | -1 |
Constructors Create a detached SpecialOffer | public SpecialOffer() {
super(org.jooq.examples.sqlserver.adventureworks.sales.tables.SpecialOffer.SpecialOffer);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public Offer() {\n }",
"public Offer() {\n }",
"public OrderOffered() {\r\n }",
"public OfferBean() {\n\n }",
"public Partage() {\n }",
"Offer getOffer();",
"public @NotNull Bidder newBidder();",
"public LesserDemandDetail() {\n //For serialization.\n }",
"public Offer makeOf... | [
"0.690949",
"0.690949",
"0.5719668",
"0.5599704",
"0.5505847",
"0.5474923",
"0.5451186",
"0.54372406",
"0.54142237",
"0.5358425",
"0.53576946",
"0.5328825",
"0.52983737",
"0.5280226",
"0.52746105",
"0.5274302",
"0.526329",
"0.5253213",
"0.5247926",
"0.5240414",
"0.5183246",
... | 0.6993641 | 0 |
Given an array such that every next element differs from the previous by +/ 1. (i.e. a[i+1] = a[i] +/1 ) Find the local max OR min in O(1) time. The interviewer mentioned one more condition that the min or max should be nonedge elements of the array. Example: 1 2 3 4 5 4 3 2 1 > Local max is 5 5 4 3 2 1 2 3 4 5 > Local min is 1 1 2 3 4 5 > No local max or min exists 5 4 3 2 1 > No local max or min exists | private static void findLocalMaxOrMin() {
// Find the integer with no duplicates
// Priority Queues / Double ended priority queues are efficient O(1) with remove the min / max
Integer[] a = new Integer[]{0,1,2,3,4,5,6,7,8,7,6};
// int[] a2 = new int[]{5,4,3,2,1,2,3,4};
MinPQ<Integer> minPQ = new MinPQ<Integer>(a);
System.out.print(minPQ.min());
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public int serachMaxOrMinPoint(int [] A){\r\n\t\r\n\tint mid, first=0,last=A.length-1;\r\n\t\r\n\twhile( first <= last){\r\n\t\tif(first == last){\r\n\t\t\treturn A[first];\r\n\t\t}\r\n\t\telse if(first == last-1){\r\n\t\t\treturn Math.max(A[first], A[last]);\r\n\t\t\t\r\n\t\t}\r\n\t\telse{\r\n\t\t\tmid= first + (... | [
"0.7186482",
"0.7112237",
"0.68484336",
"0.67237645",
"0.66650313",
"0.64264834",
"0.63945454",
"0.6377091",
"0.63741934",
"0.6367418",
"0.6356753",
"0.63455755",
"0.6341456",
"0.629266",
"0.6276331",
"0.6265875",
"0.623666",
"0.6232323",
"0.6204513",
"0.62014705",
"0.6158751... | 0.65996146 | 5 |
This method was generated by MyBatis Generator. This method returns the value of the database column t_sys_role.ROLE_ID | public Integer getRoleId() {
return roleId;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public DBSequence getRoleId() {\n return (DBSequence)getAttributeInternal(ROLEID);\n }",
"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 Long g... | [
"0.7381317",
"0.71698076",
"0.7151655",
"0.7138239",
"0.7087284",
"0.70804995",
"0.70601827",
"0.7056786",
"0.7056786",
"0.7056786",
"0.7056786",
"0.7046369",
"0.70424557",
"0.70424557",
"0.70424557",
"0.70123386",
"0.70123386",
"0.70123386",
"0.69764704",
"0.69633734",
"0.68... | 0.71220535 | 11 |
This method was generated by MyBatis Generator. This method sets the value of the database column t_sys_role.ROLE_ID | public void setRoleId(Integer roleId) {
this.roleId = roleId;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void setRoleId(DBSequence value) {\n setAttributeInternal(ROLEID, value);\n }",
"public Integer getRoleId() {\r\n return roleId;\r\n }",
"public void setRole() throws SQLException\r\n\t{\r\n\t\tString SQL_USER = \"UPDATE user SET role = 'Student' WHERE id=?;\";\t\t\r\n\t\ttry\r\n\t\t... | [
"0.7143289",
"0.64473665",
"0.6446819",
"0.64380366",
"0.6425378",
"0.6387396",
"0.6387396",
"0.6387396",
"0.6387396",
"0.6387396",
"0.6387396",
"0.6387396",
"0.6387396",
"0.6383851",
"0.63802797",
"0.63736385",
"0.6362358",
"0.6362358",
"0.6362358",
"0.6362358",
"0.6349118",... | 0.62828743 | 38 |
This method was generated by MyBatis Generator. This method returns the value of the database column t_sys_role.PLAT_ID | public Integer getPlatId() {
return platId;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public String getp_org_id() {\n return (String)getNamedWhereClauseParam(\"p_org_id\");\n }",
"public Integer getPlatformId() {\r\n return platformId;\r\n }",
"public YangString getPlmnIdValue() throws JNCException {\n return (YangString)getValue(\"plmn-id\");\n }",
"SysRole sele... | [
"0.5753069",
"0.5437293",
"0.54073566",
"0.5370071",
"0.5347063",
"0.53431064",
"0.5335102",
"0.53109497",
"0.52658993",
"0.525448",
"0.520345",
"0.51893157",
"0.5179825",
"0.516772",
"0.51596963",
"0.5152309",
"0.51468605",
"0.51466",
"0.51405996",
"0.51380736",
"0.5136922",... | 0.5700123 | 1 |
This method was generated by MyBatis Generator. This method sets the value of the database column t_sys_role.PLAT_ID | public void setPlatId(Integer platId) {
this.platId = platId;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void setSysPK(Integer SysPK) {\n\t\tthis.sysPK.set(SysPK);\n\t}",
"public void setp_org_id(String value) {\n setNamedWhereClauseParam(\"p_org_id\", value);\n }",
"public void setRole() throws SQLException\r\n\t{\r\n\t\tString SQL_USER = \"UPDATE user SET role = 'Student' WHERE id=?;\";\t\t\r\n... | [
"0.5364907",
"0.49619827",
"0.49479982",
"0.48955247",
"0.4849193",
"0.48390114",
"0.4836656",
"0.48262966",
"0.48000485",
"0.47969076",
"0.476575",
"0.47649136",
"0.4760998",
"0.47601208",
"0.47513825",
"0.47423562",
"0.47377884",
"0.4736399",
"0.4735433",
"0.47278747",
"0.4... | 0.47421217 | 16 |
This method was generated by MyBatis Generator. This method returns the value of the database column t_sys_role.ROLE_NAME | public String getRoleName() {
return roleName;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"String getRoleName();",
"public String getRole_name() {\n return role_name;\n }",
"public String getRoleName() {\r\n return roleName;\r\n }",
"public String getRoleName() {\r\n return roleName;\r\n }",
"public String getRoleName() {\n return this.roleName;\n ... | [
"0.72192764",
"0.7085413",
"0.7023157",
"0.7023157",
"0.6978406",
"0.6978406",
"0.6936103",
"0.6930613",
"0.69200706",
"0.6801413",
"0.6792453",
"0.6771913",
"0.6665461",
"0.65924776",
"0.65504473",
"0.6532844",
"0.64373547",
"0.6418677",
"0.64141536",
"0.64141536",
"0.638447... | 0.6978026 | 11 |
This method was generated by MyBatis Generator. This method sets the value of the database column t_sys_role.ROLE_NAME | public void setRoleName(String roleName) {
this.roleName = roleName == null ? null : roleName.trim();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void setRoleName(String paramRole) {\n\tstrRoleName = paramRole;\n }",
"public void setRoleName(String value) {\n setAttributeInternal(ROLENAME, value);\n }",
"public void setRoleName(java.lang.String _roleName)\n {\n roleName = _roleName;\n }",
"@Override\n public void setRole(S... | [
"0.7075855",
"0.6618446",
"0.65166533",
"0.6478542",
"0.64024514",
"0.63646513",
"0.63237286",
"0.6271113",
"0.6199135",
"0.6199135",
"0.61750275",
"0.617325",
"0.617325",
"0.61388505",
"0.6109223",
"0.6109223",
"0.6109223",
"0.6109223",
"0.6109223",
"0.6109223",
"0.60930485"... | 0.6109505 | 18 |
This method was generated by MyBatis Generator. This method returns the value of the database column t_sys_role.ROLE_PID | public Integer getRolePid() {
return rolePid;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public Integer getRoleid() {\r\n return roleid;\r\n }",
"public DBSequence getRoleId() {\n return (DBSequence)getAttributeInternal(ROLEID);\n }",
"public Long getRoleid() {\n return roleid;\n }",
"public Integer getRoleId() {\r\n return roleId;\r\n }",
"public Long g... | [
"0.6676989",
"0.666791",
"0.66040003",
"0.6502794",
"0.64767885",
"0.64554983",
"0.64548016",
"0.64548016",
"0.64548016",
"0.64548016",
"0.64548016",
"0.64548016",
"0.64548016",
"0.64548016",
"0.64305395",
"0.64305395",
"0.64305395",
"0.64288485",
"0.64288485",
"0.64288485",
... | 0.7300338 | 0 |
This method was generated by MyBatis Generator. This method sets the value of the database column t_sys_role.ROLE_PID | public void setRolePid(Integer rolePid) {
this.rolePid = rolePid;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void setRoleId(DBSequence value) {\n setAttributeInternal(ROLEID, value);\n }",
"public Integer getRolePid() {\n return rolePid;\n }",
"public Integer getRoleid() {\r\n return roleid;\r\n }",
"public Long getRoleid() {\n return roleid;\n }",
"public void setRo... | [
"0.6383322",
"0.6357655",
"0.58979994",
"0.58612275",
"0.5803716",
"0.5803455",
"0.5795738",
"0.57948655",
"0.5725117",
"0.5725117",
"0.5725117",
"0.5725117",
"0.5718792",
"0.5718792",
"0.5718792",
"0.5718792",
"0.5718792",
"0.5718792",
"0.5718792",
"0.5718792",
"0.57139796",... | 0.70101786 | 0 |
This method was generated by MyBatis Generator. This method returns the value of the database column t_sys_role.CREATER | public Integer getCreater() {
return creater;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private Role getCustomerRole() {\n\t\tRole role = roleRepo.findByName(\"CUSTOMER\");\n\t\treturn role;\n\t}",
"public String getRol() \n {\n \t return rol;\n }",
"public Integer getRole() {\n\t\treturn role;\n\t}",
"@Transient\n public String getCurrentRole() {\n \tString currentRole = \"\";... | [
"0.599307",
"0.596743",
"0.59319013",
"0.59149796",
"0.59090054",
"0.5862053",
"0.58382034",
"0.583541",
"0.58310825",
"0.58310825",
"0.5805491",
"0.58034545",
"0.57655096",
"0.5763286",
"0.5751509",
"0.574603",
"0.5744334",
"0.5732264",
"0.5730475",
"0.5723159",
"0.5714386",... | 0.0 | -1 |
This method was generated by MyBatis Generator. This method sets the value of the database column t_sys_role.CREATER | public void setCreater(Integer creater) {
this.creater = creater;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void setRole() throws SQLException\r\n\t{\r\n\t\tString SQL_USER = \"UPDATE user SET role = 'Student' WHERE id=?;\";\t\t\r\n\t\ttry\r\n\t\t{\r\n\t\t\t//Prepare the statement\r\n\t\t\tPreparedStatement statement = this.getConn().prepareStatement(SQL_USER);\r\n\r\n\t\t\t//Bind the variables\r\n\t\t\tstatement... | [
"0.56477433",
"0.5615241",
"0.55544955",
"0.55113244",
"0.54727656",
"0.54624426",
"0.5459205",
"0.5449298",
"0.543087",
"0.53272694",
"0.5317581",
"0.527379",
"0.5259821",
"0.5245029",
"0.52247435",
"0.5215496",
"0.52012956",
"0.5192343",
"0.5188368",
"0.5174618",
"0.5174455... | 0.0 | -1 |
This method was generated by MyBatis Generator. This method returns the value of the database column t_sys_role.CREATE_TIME | public Timestamp getCreateTime() {
return createTime;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public Long getCreateTime() {\n\t\treturn createTime;\n\t}",
"public Long getCreateTime() {\n return createTime;\n }",
"public java.sql.Timestamp getCreateTime () {\r\n\t\treturn createTime;\r\n\t}",
"public Long getCreatetime() {\n return createtime;\n }",
"public long getCreateTime() ... | [
"0.7149876",
"0.7120729",
"0.70870537",
"0.7059983",
"0.70333254",
"0.6991706",
"0.6977354",
"0.6945468",
"0.693896",
"0.69252163",
"0.6902853",
"0.68757224",
"0.68757224",
"0.68757224",
"0.68757224",
"0.6859601",
"0.6858192",
"0.68405956",
"0.68387365",
"0.68387365",
"0.6838... | 0.68268776 | 23 |
This method was generated by MyBatis Generator. This method sets the value of the database column t_sys_role.CREATE_TIME | public void setCreateTime(Timestamp createTime) {
this.createTime = createTime;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void setCreateTime (java.sql.Timestamp createTime) {\r\n\t\tthis.createTime = createTime;\r\n\t}",
"private void setCreateTime(long createTime) {\n this.createTime = createTime;\n }",
"private void setCreateTime(java.util.Date value) {\n __getInternalInterface().setFieldValue(CREATETIME_PRO... | [
"0.6769487",
"0.67149806",
"0.65248054",
"0.65184677",
"0.6487098",
"0.6462815",
"0.6441337",
"0.6441337",
"0.643075",
"0.640389",
"0.63837945",
"0.6378756",
"0.6378756",
"0.6378756",
"0.6378756",
"0.6378756",
"0.6378756",
"0.6373783",
"0.6365461",
"0.63650596",
"0.6360757",
... | 0.63275045 | 28 |
This method was generated by MyBatis Generator. This method returns the value of the database column t_sys_role.UPDATER | public Integer getUpdater() {
return updater;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public String getUpdator() {\r\n return updator;\r\n }",
"public String getUpdator() {\n return updator;\n }",
"public String getUpdateUser () {\r\n\t\treturn updateUser;\r\n\t}",
"public String getUpdateUser() {\r\n\t\treturn updateUser;\r\n\t}",
"public String getUpdateUser() {\r\n\t\... | [
"0.65739715",
"0.6557077",
"0.6233158",
"0.6196265",
"0.6196265",
"0.61799586",
"0.6125228",
"0.6125228",
"0.61218905",
"0.61218905",
"0.60797125",
"0.6067366",
"0.6067366",
"0.6067366",
"0.6067366",
"0.6067366",
"0.6067366",
"0.60575885",
"0.60575885",
"0.60575885",
"0.60575... | 0.0 | -1 |
This method was generated by MyBatis Generator. This method sets the value of the database column t_sys_role.UPDATER | public void setUpdater(Integer updater) {
this.updater = updater;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void setUpdator(String updator) {\n this.updator = updator;\n }",
"public void setUpdator(String updator) {\r\n this.updator = updator == null ? null : updator.trim();\r\n }",
"@Override\n\tpublic void updateRoleUtilisateur(RoleUtilisateur r) {\n\t\troleUtilisateurDAO.udpateRoleUtili... | [
"0.6275057",
"0.5899884",
"0.5844805",
"0.5834415",
"0.5622571",
"0.56027037",
"0.5535963",
"0.55177003",
"0.54792833",
"0.5475531",
"0.5444558",
"0.5444558",
"0.5444558",
"0.5422731",
"0.5398561",
"0.53883076",
"0.53883076",
"0.5247005",
"0.5219853",
"0.521547",
"0.52018756"... | 0.0 | -1 |
This method was generated by MyBatis Generator. This method returns the value of the database column t_sys_role.UPDATE_TIME | public Timestamp getUpdateTime() {
return updateTime;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public java.sql.Timestamp getUpdateTime () {\r\n\t\treturn updateTime;\r\n\t}",
"public String getUpdatetime() {\n\t\treturn updatetime;\n\t}",
"public String getUpdatetime() {\n\t\treturn updatetime;\n\t}",
"public Date getUpdate_time() {\n return update_time;\n }",
"public Date getUpdate_time()... | [
"0.6985458",
"0.6947638",
"0.6947638",
"0.69012684",
"0.69012684",
"0.6843616",
"0.674141",
"0.6737202",
"0.6737202",
"0.67317086",
"0.66414034",
"0.6620773",
"0.6620773",
"0.6620773",
"0.6567524",
"0.6567524",
"0.65524584",
"0.65251803",
"0.6521317",
"0.65121496",
"0.6486029... | 0.6423322 | 33 |
This method was generated by MyBatis Generator. This method sets the value of the database column t_sys_role.UPDATE_TIME | public void setUpdateTime(Timestamp updateTime) {
this.updateTime = updateTime;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void setUpdate_time(Date update_time) {\n this.update_time = update_time;\n }",
"public void setUpdate_time(Date update_time) {\n this.update_time = update_time;\n }",
"public void setUpdateTime (java.sql.Timestamp updateTime) {\r\n\t\tthis.updateTime = updateTime;\r\n\t}",
"void s... | [
"0.6754228",
"0.6754228",
"0.6652315",
"0.6539041",
"0.64388514",
"0.63925403",
"0.63925403",
"0.627658",
"0.6205883",
"0.6205883",
"0.6205883",
"0.6179789",
"0.61775494",
"0.6151208",
"0.6151208",
"0.6146265",
"0.61204946",
"0.6113754",
"0.6113754",
"0.6113754",
"0.6113754",... | 0.6074483 | 24 |
This method was generated by MyBatis Generator. This method returns the value of the database column t_sys_role.ADMIN_USER | public String getAdminUser() {
return adminUser;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public String getAdminRole() {\r\n\t\treturn adminRole;\r\n\t}",
"public Long getAdminRoleId() {\n\t\treturn this.adminRoleId;\n\t}",
"public String getAdminUserName() {\n return adminUserName;\n }",
"public Byte getUserRole() {\r\n return userRole;\r\n }",
"private ApplicationUser ge... | [
"0.6685724",
"0.658823",
"0.65352625",
"0.6304824",
"0.62857383",
"0.6207274",
"0.61368483",
"0.60879886",
"0.6067572",
"0.6036986",
"0.5998139",
"0.5993258",
"0.5960802",
"0.5916567",
"0.58302593",
"0.5785279",
"0.577832",
"0.5775571",
"0.57576233",
"0.5729611",
"0.5729611",... | 0.6799451 | 0 |
This method was generated by MyBatis Generator. This method sets the value of the database column t_sys_role.ADMIN_USER | public void setAdminUser(String adminUser) {
this.adminUser = adminUser == null ? null : adminUser.trim();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"void setAdminStatus(User user, boolean adminStatus);",
"public void setUserAdmin(boolean isUserAdmin) {\r\n this.userAdmin = isUserAdmin;\r\n }",
"public void setAdminRole(org.semanticwb.model.Role value)\r\n {\r\n if(value!=null)\r\n {\r\n getSemanticObject().setObjectPro... | [
"0.6385285",
"0.6179194",
"0.6150615",
"0.614014",
"0.61034536",
"0.5933567",
"0.5916483",
"0.58570266",
"0.5836196",
"0.5751878",
"0.57406014",
"0.57364976",
"0.56728727",
"0.5664593",
"0.56584746",
"0.5640096",
"0.56159806",
"0.5562513",
"0.5545829",
"0.5503098",
"0.5493493... | 0.6324459 | 1 |
TODO Autogenerated method stub | @Override
public boolean InsertStreamingLike(StreamingLikeVO vo) {
return false;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"@Override\n public void perish() {\n \n }",
"@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}",
"@Override\n\tpublic void anular() {\n\n\t}",
"@Override\n\tprotected void getExr... | [
"0.6671074",
"0.6567672",
"0.6523024",
"0.6481211",
"0.6477082",
"0.64591026",
"0.64127725",
"0.63762105",
"0.6276059",
"0.6254286",
"0.623686",
"0.6223679",
"0.6201336",
"0.61950207",
"0.61950207",
"0.61922914",
"0.6186996",
"0.6173591",
"0.61327106",
"0.61285484",
"0.608016... | 0.0 | -1 |
TODO Autogenerated method stub | @Override
public boolean DeleteStreamingLike(StreamingLikeVO vo) {
return false;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"@Override\n public void perish() {\n \n }",
"@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}",
"@Override\n\tpublic void anular() {\n\n\t}",
"@Override\n\tprotected void getExr... | [
"0.6671074",
"0.6567672",
"0.6523024",
"0.6481211",
"0.6477082",
"0.64591026",
"0.64127725",
"0.63762105",
"0.6276059",
"0.6254286",
"0.623686",
"0.6223679",
"0.6201336",
"0.61950207",
"0.61950207",
"0.61922914",
"0.6186996",
"0.6173591",
"0.61327106",
"0.61285484",
"0.608016... | 0.0 | -1 |
TODO Autogenerated method stub | @Override
public boolean CheckStreamingLike(String mail) {
return false;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"@Override\n public void perish() {\n \n }",
"@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}",
"@Override\n\tpublic void anular() {\n\n\t}",
"@Override\n\tprotected void getExr... | [
"0.6671074",
"0.6567672",
"0.6523024",
"0.6481211",
"0.6477082",
"0.64591026",
"0.64127725",
"0.63762105",
"0.6276059",
"0.6254286",
"0.623686",
"0.6223679",
"0.6201336",
"0.61950207",
"0.61950207",
"0.61922914",
"0.6186996",
"0.6173591",
"0.61327106",
"0.61285484",
"0.608016... | 0.0 | -1 |
TODO Autogenerated method stub | @Override
public int CountStreamingLike(String idx) {
return 0;
} | {
"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 |
// //// this way is possible to have 2 path to same endopoint | @GetMapping({"/", "/list"}) // when is active true -> printing only with done=true, using stream in service
public String list (Model model, @RequestParam (required = false) boolean isActive, @RequestParam(required = false) String searchInput) {
if (isActive == true) {
model.addAttribute("todos", todoService.onlyActive());
}
else if(searchInput==null) {
model.addAttribute("assignees", assigneeService.allAssignee());
model.addAttribute("todos", todoService.allTodos());
}
else if (searchInput!=null) {
model.addAttribute("todos",todoService.searchBy_TITLE_DATE_DESCRIPTION(searchInput));
}
return "todoList";
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private Path createPath(AStarNode start, AStarNode end) {\n Path path = new Path();\n AStarNode ptr = end;\n while (!ptr.equals(start)) {\n path.addFirst(ptr);\n ptr = ptr.getPrevious();\n }\n path.addFirst(start);\n\n return path;\n }",
"@Overri... | [
"0.6538824",
"0.6409859",
"0.6331982",
"0.6184033",
"0.61769384",
"0.6134308",
"0.6110176",
"0.6108165",
"0.6043562",
"0.59998614",
"0.5992017",
"0.59343636",
"0.5933722",
"0.5920987",
"0.5903256",
"0.59031475",
"0.5901441",
"0.5847032",
"0.5833657",
"0.5832778",
"0.57866985"... | 0.0 | -1 |
Inflate the menu; this adds items to the action bar if it is present. | @Override
public boolean onCreateOptionsMenu(Menu menu) {
getMenuInflater().inflate(R.menu.menu_calendar_main, menu);
return true;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n \tMenuInflater inflater = getMenuInflater();\n \tinflater.inflate(R.menu.main_activity_actions, menu);\n \treturn super.onCreateOptionsMenu(menu);\n }",
"@Override\n public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {... | [
"0.7246102",
"0.7201358",
"0.7194834",
"0.7176498",
"0.71066517",
"0.7039537",
"0.7037961",
"0.70112145",
"0.70094734",
"0.69807225",
"0.6944953",
"0.69389373",
"0.6933199",
"0.6916928",
"0.6916928",
"0.6891486",
"0.68831646",
"0.68754137",
"0.68745375",
"0.68621665",
"0.6862... | 0.0 | -1 |
Handle action bar item clicks here. The action bar will automatically handle clicks on the Home/Up button, so long as you specify a parent activity in AndroidManifest.xml. | @Override
public boolean onOptionsItemSelected(MenuItem item) {
int id = item.getItemId();
//noinspection SimplifiableIfStatement
if (id == R.id.action_settings) {
return true;
}
return super.onOptionsItemSelected(item);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n public boolean onOptionsItemSelected(MenuItem item) { Handle action bar item clicks here. The action bar will\n // automatically handle clicks on the Home/Up button, so long\n // as you specify a parent activity in AndroidManifest.xml.\n\n //\n // HANDLE BACK BUTTON\n ... | [
"0.7904066",
"0.7804976",
"0.7766218",
"0.7726716",
"0.7631313",
"0.76221544",
"0.7584775",
"0.7530617",
"0.74878734",
"0.7457033",
"0.7457033",
"0.74380976",
"0.7421477",
"0.7402898",
"0.7391322",
"0.7386477",
"0.73788774",
"0.7370012",
"0.7362617",
"0.73555875",
"0.73451835... | 0.0 | -1 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.