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
Checks if the player has a weapon
public boolean hasWeapon() { if (weaponHeld == null) return false; else return true; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private boolean alreadyHasWeapon(Actor actor) {\n\t\tboolean hasWeapon = false;\n\t\t\n\t\tList<Item> inventory = actor.getInventory();\n\t\t\n\t\tfor (int x = 0; x < inventory.size(); x++) {\n\t\t\tif (inventory.get(x) instanceof Weapon) {\n\t\t\t\thasWeapon = true;\n\t\t\t}\n\t\t}\n\t\t\n\t\treturn hasWeapon;\n...
[ "0.72682655", "0.7137169", "0.6848062", "0.6636578", "0.6636027", "0.66260076", "0.6619323", "0.6596163", "0.6583059", "0.6499317", "0.6466736", "0.64350224", "0.64350224", "0.64350224", "0.64350224", "0.64350224", "0.6293502", "0.6275562", "0.62722534", "0.62632", "0.6256292...
0.8245246
0
Checks if the support is following the player
public boolean isAlone() { if (getMateFollow() != null) if (!getMateFollow().isKO())// Checks if the support is dead return false; else return true; else return true; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public boolean checkPlays(Player player){\n return true;\n }", "boolean hasTargetPlayerId();", "public boolean needPlayer() {\n\t\treturn false;\n\t}", "protected abstract boolean isPlayerActivatable(PlayerSimple player);", "boolean hasTargetPlayerName();", "public boolean hasPlayerInfo()\n ...
[ "0.69762397", "0.68618226", "0.6801791", "0.6799107", "0.679488", "0.6730794", "0.67274034", "0.6620327", "0.6609996", "0.65568566", "0.6502375", "0.6495977", "0.64906627", "0.6489231", "0.6485457", "0.6472556", "0.6443348", "0.6394374", "0.6387915", "0.6370191", "0.63474375"...
0.60766995
42
Adds a key in the bunch of keys
public void earnKey(Key key) { bunchOfKeys.add(key); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void add(String key);", "public void addKey() {\n setBonusKeys(getBonusKeys() + 1);\n }", "public void addKey(String key){\n itemMap.put(key, new ArrayList<>());\n }", "private void add(String key) {\n dict = add(dict, key, 0);\n }", "@Override public void setKey(IndexKey key) {\n ...
[ "0.79649377", "0.72836834", "0.7268719", "0.72593373", "0.7166726", "0.7103851", "0.6923518", "0.6913765", "0.6827055", "0.68109316", "0.6760279", "0.67260844", "0.67190146", "0.6685837", "0.65932965", "0.65791756", "0.65032595", "0.6491523", "0.6455123", "0.64254594", "0.642...
0.71506685
5
Allows the player to unlock a chest
public void unlock(Chest coffre) throws InterruptedException { int actCode; for (Key aKey : bunchOfKeys) { // For each key from the bunch of key if (coffre.unlock(aKey)) { // If a key can unlock the chest bunchOfKeys.remove(aKey); // Get removed from the bunch of keys coffre.setCat(0); // Unlocks the chest actCode = Utilitaire.yesNoQuestions( "Coffre déverrouillé. Voulez-vous l'ouvrir ?\n1 pour l'ouvrir\n2 pour le laisser"); if (actCode == 1) { // If the player wants to open it this.open(coffre); } else { Utilitaire.lettreParLettre("Vous laissez le coffre fermé"); } return; } } Utilitaire.lettreParLettre("Vous n'avez pas de clé compatible."); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void respawnChest(){\n //remove the physical chest\n this.location.getBlock().setType(Material.AIR);\n\n //increment the level of the chest. If its higher than its max level, shut down.\n if(++this.level >= getMaxLevel()){\n deleteInstance();\n return;\n ...
[ "0.6947316", "0.67551446", "0.66758764", "0.65410334", "0.6325768", "0.6313706", "0.63019943", "0.62579685", "0.6107101", "0.6068111", "0.6006705", "0.60060483", "0.5979954", "0.59660697", "0.58417416", "0.58412147", "0.58310294", "0.58115774", "0.57450825", "0.5723697", "0.5...
0.7024413
0
Allows the player to open the chest
public void open(Chest coffre) throws InterruptedException { if (coffre.isLocked()) // If the chest is locked this.unlock(coffre); else { if (coffre.getContenu() == null) // If the chest is empty Utilitaire.lettreParLettre("Coffre vide"); else coffre.getContenu().trouverObjCoffre(coffre, this); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tpublic void openChest() {\n\n\t}", "public void setOpenChest(boolean openChest) {\n this.openChest = openChest;\n }", "private void openChest(Command command)\n {\n String chest = command.getSecondWord();\n if(chest == null){\n System.out.println(\"Open what?\...
[ "0.81353223", "0.76497144", "0.7380729", "0.72019285", "0.7089096", "0.69452536", "0.6892594", "0.6840557", "0.68111795", "0.6694866", "0.66208553", "0.6578601", "0.6567523", "0.6559607", "0.6513774", "0.63977057", "0.6368642", "0.6368642", "0.6267577", "0.62655866", "0.61956...
0.6260533
20
Allows the player to drink the potion
public void drink(Potion potion) throws InterruptedException { potion.utiliser(this); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected void drink() {\n\t\tSystem.out.println(\"Ape drinking\");\n\t}", "@Override\n\tpublic void drink() {\n\t\tSystem.out.println(\"you are drinking pepsiiiiiiii\");\n\t}", "public String drink(String itemName) {\r\n\t\t\tif(this.getPlayer().getItem(itemName) == null) {\r\n\t\t\t\treturn \"You do not have...
[ "0.72218746", "0.69515896", "0.66326743", "0.6600384", "0.6526793", "0.65226936", "0.64983046", "0.64983046", "0.64001614", "0.6378374", "0.6374651", "0.6320817", "0.6301998", "0.6288276", "0.615288", "0.61460865", "0.6143488", "0.6114225", "0.6088153", "0.6044986", "0.603617...
0.7545827
0
Created by apple on 25/12/16.
public interface TopicRepository extends CrudRepository<Topic,Integer> { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void perish() {\n \n }", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "private stendhal() {\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n\tpublic void sacrifier() {\n\t\t\n\t}", "public final void mo51373a() {\n }", "@Override\n publ...
[ "0.5810382", "0.57569474", "0.5631875", "0.56147957", "0.5601164", "0.5595013", "0.5545675", "0.5535878", "0.55291384", "0.55265224", "0.55265224", "0.55235744", "0.5487619", "0.5483099", "0.5476497", "0.5461137", "0.5433249", "0.54111624", "0.54052675", "0.54040354", "0.5403...
0.0
-1
query money code information Version 2.0
private void queryResult(HttpServletRequest request, HttpServletResponse response) { try { response.setContentType("text/html;charset=UTF-8"); String dealNo = request.getParameter("dealNo"); String bankNo = request.getParameter("bankNo"); String result = ""; GZHQueryService gzhQueryService = new GZHQueryService(); System.out.println("银行号:" + bankNo); logger.info("银行号:" + bankNo); if ("0".equals(bankNo)) { if (dealNo != null && dealNo.trim().length() > 0) { dealNo = dealNo.replaceAll(" ", ""); List<MoneyDataInfo> moneyDataList = null; if (dealNo.indexOf("*") > -1) { dealNo = dealNo.replace("*", "_"); moneyDataList = gzhQueryService .getMoneyDataListByLike(dealNo); } else { moneyDataList = gzhQueryService .getMoneyDataList(dealNo); } if (moneyDataList != null && moneyDataList.size() > 0) { Gson gson = new Gson(); String jsonMonList = gson.toJson(moneyDataList); response.getWriter().write(jsonMonList); return; } } } else { BankInfo bank = gzhQueryService.getBankInfo(bankNo).get(0); CxfUtil cxfUtil = new CxfUtil(); if (bank != null) { IgzhQuery service = cxfUtil .getCxfClient( IgzhQuery.class, cxfUtil.getUrl(bank.getIpAddr(), cxfUtil.getPort())); cxfUtil.recieveTimeOutWrapper(service); try { result = service.gzhQueryList(dealNo); } catch (Exception ex) { logger.info("连接服务器失败!"); response.setContentType("text/html;charset=UTF-8"); response.getWriter().write("notfound"); return; } if (!"".equals(result)) { response.getWriter().write(result); return; } } } response.setContentType("text/html;charset=UTF-8"); response.getWriter().write("notfound"); } catch (Exception e) { e.printStackTrace(); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String getJP_BankDataCustomerCode2();", "BasicInfoAnodeBurningLossRate selectByPrimaryKey(Integer code);", "com.google.protobuf.StringValue getCurrencyCode();", "public String getJP_BankDataCustomerCode1();", "public BigDecimal getCODE() {\r\n return CODE;\r\n }", "public BigDecimal getC...
[ "0.59465253", "0.58620346", "0.5831938", "0.57583874", "0.5588969", "0.5588969", "0.5554036", "0.55177516", "0.5499593", "0.5488562", "0.54040927", "0.5397204", "0.5397204", "0.5397204", "0.5360649", "0.53529197", "0.5344581", "0.5328302", "0.5320288", "0.53145105", "0.530312...
0.0
-1
query money code information Version 3.0
private void searchResult(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { try { request.setCharacterEncoding("UTF-8"); response.setContentType("text/html;charset=UTF-8"); String page = request.getParameter("page"); // 当前页数 String rows = request.getParameter("rows"); // 每页显示行数 String dealNo = request.getParameter("dealNo"); String msg = null; if (dealNo != null && dealNo.trim().length() > 0 && page != null && page.trim().length() > 0 && rows != null && rows.trim().length() > 0) { GZHQueryService gzhQueryService = new GZHQueryService(); List<MoneyDataInfo> moneyDataList = gzhQueryService .getMoneyDataListPage(page, rows, dealNo); int total = gzhQueryService.getResultCount(dealNo); Pagination pagination = new Pagination(); // pagination.setRows(moneyDataList); pagination.setTotal(total); Gson gson = new Gson(); msg = gson.toJson(pagination); } else { msg = "notfount"; } response.getWriter().write(msg); } catch (Exception e) { e.printStackTrace(); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "com.google.protobuf.StringValue getCurrencyCode();", "public String getJP_BankDataCustomerCode2();", "public String getJP_BankDataCustomerCode1();", "BasicInfoAnodeBurningLossRate selectByPrimaryKey(Integer code);", "public BigDecimal getCODE() {\r\n return CODE;\r\n }", "public BigDecimal getC...
[ "0.58738315", "0.57662576", "0.5722695", "0.5696238", "0.5668101", "0.5668101", "0.56639326", "0.5611036", "0.5589878", "0.5577653", "0.54685485", "0.5458414", "0.5451002", "0.5451002", "0.5451002", "0.5425577", "0.5425577", "0.5357208", "0.5322638", "0.5322431", "0.53199655"...
0.0
-1
TODO Autogenerated method stub
@Override public int compare(MediaMaster em1, MediaMaster em2) { if(em2.getOcassion() != null && em1.getOcassion() != null){ if("Asc".equalsIgnoreCase(type)){ return em2.getOcassion().compareTo(em1.getOcassion()); } else{ return em1.getOcassion().compareTo(em2.getOcassion()); } } 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
TODO Autogenerated method stub
@Override public int compare(MediaMaster em1, MediaMaster em2) { if(em2.getArtist() != null && em1.getArtist() != null){ if("Asc".equalsIgnoreCase(type)){ return em2.getArtist().compareTo(em1.getArtist()); }else{ return em1.getArtist().compareTo(em2.getArtist()); } } 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
TODO Autogenerated method stub
@Override public int compare(MediaMaster em1, MediaMaster em2) { if(em2.getAlbum() != null && em1.getAlbum() != null){ if("Asc".equalsIgnoreCase(type)){ return em2.getAlbum().compareTo(em1.getAlbum()); }else{ return em1.getAlbum().compareTo(em2.getAlbum()); } } 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
TODO Autogenerated method stub
@Override public int compare(MediaMaster em1, MediaMaster em2) { if(em2.getLanguageMaster().getLanguageName() != null && em1.getLanguageMaster().getLanguageName() != null){ if("Asc".equalsIgnoreCase(type)){ return em2.getLanguageMaster().getLanguageName().compareTo(em1.getLanguageMaster().getLanguageName()); }else{ return em1.getLanguageMaster().getLanguageName().compareTo(em2.getLanguageMaster().getLanguageName()); } } 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
Replace the current path with this new one. We should validate but currently aren't.
public void setPath(ArrayList<String> newPath) { list = newPath; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void updatePath() {\n\t\tString oldPath = this.path;\n\t\tif (materializePath()) {\n\t\t\tPageAlias.create(this, oldPath);\n\t\t\tupdateChildPaths();\n\t\t}\n\t}", "public void replacePath(Queue<GamePoint> newPath) {\n\t\tmyPath = newPath;\n\t}", "public void changePath(String newPath){\n this.pa...
[ "0.70881784", "0.70253044", "0.6896779", "0.6586419", "0.6455584", "0.64355296", "0.6333329", "0.62510556", "0.6230755", "0.6145496", "0.6132739", "0.6075541", "0.6031425", "0.6021056", "0.5959947", "0.5908583", "0.5850586", "0.5850569", "0.5818394", "0.57816195", "0.5734633"...
0.59664273
14
Read the PATH from the environment and make an array from it.
public ArrayList<String> getPath() { return list; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public IEnvVarBuildPath[] getEnvVarBuildPaths();", "private Path[] getPathArray(List<String> commandLineArgs) {\n int numOfFiles = commandLineArgs.size();\n Path[] filePathArray = new Path[numOfFiles];\n Path currentDir = Paths.get(Jsh.getCurrentDirectory());\n for (int i = 0; i < num...
[ "0.65653", "0.62830114", "0.57101595", "0.57040995", "0.5407563", "0.5367425", "0.532687", "0.53247553", "0.5308634", "0.5152461", "0.51514024", "0.5139783", "0.51054305", "0.50641567", "0.50492734", "0.4986371", "0.4983707", "0.4963243", "0.49299887", "0.49075872", "0.489711...
0.0
-1
Return the path with the correct path separator character. This would be named toString() if it weren't a method.
public String getPathAsString() { if (list.isEmpty()) { return ""; } StringBuilder buf = new StringBuilder(); for (String dir : list) { buf.append(dir); buf.append(pathSeparator()); } return buf.substring(0, buf.length() - 1); // remove the trailing pathSeparator... }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static String getPathSeparator() {\n return File.separator;\n }", "@Override\r\n\tpublic String toString() {\r\n\t\tStringBuilder sb = new StringBuilder();\r\n\t\tfor (String str : this) {\r\n\t\t\tif (sb.length() > 0) {\r\n\t\t\t\tsb.append(PATH_SEPARATOR);\r\n\t\t\t}\r\n\t\t\tsb.append(str);\r\n\t\t...
[ "0.7762877", "0.75031537", "0.7375036", "0.7070827", "0.69398177", "0.6872615", "0.6863105", "0.68618464", "0.67992383", "0.67739457", "0.66778225", "0.6672224", "0.6671003", "0.65929115", "0.64925885", "0.64246094", "0.64140207", "0.6410526", "0.63307106", "0.6319358", "0.63...
0.681655
8
Add a directory to the path.
public void add(int pos, String dir) throws IndexOutOfBoundsException { list.add(pos, dir); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public final void addDirectory(String dir) {\n addDirectory(Paths.get(dir));\n }", "public final void addDirectory(Path dir) {\n\t\t// enable trace for registration\n this.trace = true;\n register(dir);\n }", "public void addDirectory(FileDiffDirectory directory) {\n \t\tthis.directo...
[ "0.77418214", "0.6961671", "0.691535", "0.679453", "0.67772955", "0.6505509", "0.648961", "0.64658815", "0.64646614", "0.63954496", "0.6356144", "0.6333552", "0.6298378", "0.6261612", "0.6246608", "0.62377256", "0.62277925", "0.6212211", "0.61986125", "0.60985434", "0.6076221...
0.0
-1
Remove a directory (by index) from the path.
public void remove(int pos) throws IndexOutOfBoundsException { list.remove(pos); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void removePath(int i);", "void removeIndexDir(String indexDirPath) throws IOException {\n File indexDir = new File(indexDirPath);\n if (indexDir.exists())\n FileUtils.deleteDirectory(indexDir);\n }", "@Override\r\n\tpublic void remDir(String path) {\n\t\t\r\n\t}", "public void re...
[ "0.72639596", "0.6816676", "0.64332086", "0.63991934", "0.6366254", "0.6314574", "0.6185256", "0.61540824", "0.6064493", "0.59875584", "0.59562975", "0.59402716", "0.58304673", "0.5766427", "0.5743224", "0.57372504", "0.57298356", "0.5714225", "0.56894785", "0.5687461", "0.56...
0.0
-1
This utility method makes it easier (on Windows) to replace PATH with one with the same case. IZ 103016 updated PATH but it wasn't foud because Path wasn't replaced. This will let us add a path using the exact same name.
public String getPathName() { if (pathName == null) { if (isWindows()) { for (String key : getEnv().keySet()) { if (key.toLowerCase(Locale.getDefault()).equals("path")) { // NOI18N pathName = key.substring(0, 4); return pathName; } } } pathName = "PATH"; // NOI18N } return pathName; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private String fixPath(String Path) {\n\n // Nothing to do if we're running the plugin on a Windows machine.\n if (Global.IsWindowsOS()) {\n return Path;\n }\n\n // Replace all of the Windows separator characters with linux separator characters.\n String NewPath = Path...
[ "0.6355615", "0.5982401", "0.58950746", "0.5805442", "0.56090695", "0.5539272", "0.5419117", "0.5415061", "0.53711563", "0.5357278", "0.5344438", "0.52663773", "0.52578646", "0.5244965", "0.5113843", "0.50904953", "0.5080028", "0.5077226", "0.5067984", "0.5031843", "0.4973133...
0.5000433
20
TODO: till API review
public File[] listFiles(File file) { if (executionEnvironment.isLocal()) { return file.listFiles(); } else { final ExitStatus res = ProcessUtils.execute(executionEnvironment, "ls", "-A1"); //NOI18N if (res.isOK()) { String files = res.getOutputString(); if (files != null) { BufferedReader bufferedReader = new BufferedReader(new StringReader(files)); String line; ArrayList<File> lines = new ArrayList<File>(); try { while ((line = bufferedReader.readLine()) != null) { lines.add(new File(line)); } bufferedReader.close(); } catch (IOException ex) { //hardly can happen during reading string Exceptions.printStackTrace(ex); return null; } return lines.toArray(new File[lines.size()]); } } } return null; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "private stendhal() {\n\t}", "@Override\n\tprotected void interr() {\n\t}", "private voi...
[ "0.587312", "0.58093256", "0.57545847", "0.5720419", "0.5708894", "0.55644107", "0.55290437", "0.5477044", "0.5471583", "0.54623073", "0.5446169", "0.5446169", "0.5446169", "0.5446169", "0.5446169", "0.5446169", "0.539978", "0.53948444", "0.53789693", "0.5375312", "0.5375312"...
0.0
-1
TODO: till API review
public boolean fileIsDirectory(File file) { if (executionEnvironment.isLocal()) { return file.isDirectory(); } else { return ProcessUtils.execute(executionEnvironment, "test", "-d", "\"" + file.getPath() + "\"").isOK(); //NOI18N } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "private stendhal() {\n\t}", "@Override\n\tprotected void interr() {\n\t}", "private voi...
[ "0.587312", "0.58093256", "0.57545847", "0.5720419", "0.5708894", "0.55644107", "0.55290437", "0.5477044", "0.5471583", "0.54623073", "0.5446169", "0.5446169", "0.5446169", "0.5446169", "0.5446169", "0.5446169", "0.539978", "0.53948444", "0.53789693", "0.5375312", "0.5375312"...
0.0
-1
TODO: till API review
public boolean fileIsFile(File file) { if (executionEnvironment.isLocal()) { return file.isFile(); } else { return ProcessUtils.execute(executionEnvironment, "test", "-f", "\"" + file.getPath() + "\"").isOK(); //NOI18N } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "private stendhal() {\n\t}", "@Override\n\tprotected void interr() {\n\t}", "private voi...
[ "0.58736634", "0.58102626", "0.5755501", "0.57215405", "0.57093745", "0.55650425", "0.5530766", "0.54775786", "0.5471976", "0.5462632", "0.54459184", "0.54459184", "0.54459184", "0.54459184", "0.54459184", "0.54459184", "0.5399762", "0.53953767", "0.53794444", "0.5376514", "0...
0.0
-1
TODO: till API review
public boolean fileCanRead(File file) { if (executionEnvironment.isLocal()) { return file.canRead(); } else { return ProcessUtils.execute(executionEnvironment, "test", "-r" ,"\"" + file.getPath() + "\"").isOK(); //NOI18N } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "private stendhal() {\n\t}", "@Override\n\tprotected void interr() {\n\t}", "private voi...
[ "0.5873188", "0.5810371", "0.5755405", "0.57213813", "0.57082295", "0.55651456", "0.5529824", "0.54772556", "0.54720557", "0.5462657", "0.5445368", "0.5445368", "0.5445368", "0.5445368", "0.5445368", "0.5445368", "0.53999627", "0.53954244", "0.5378815", "0.53759277", "0.53759...
0.0
-1
/ List findByMuseuId(Long id); List findIsGratuito(Boolean gratuito); List findMuseuCategoriaId(Long id);
@Query(nativeQuery = true, value = "select * from vamus.eventos where " + "ini_evento>=:inicio and fim_evento<=:fim") List<EventoEntity> findByDate(@Param("inicio") LocalDateTime ini, @Param("fim") LocalDateTime fim);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public List<Categoria> listarCategorias(){\n //este metodo devuelve una lista.\n return categoriaRepo.findAll(); \n\n }", "public List<CategoriaUsuario> findall(){\n return categoriaUsuarioRepository.findAll();\n }", "public List<Empleado> buscarEmpleadosPorCat(int categoriaId){...
[ "0.7130509", "0.7034228", "0.6689114", "0.6674677", "0.655312", "0.64814866", "0.63445956", "0.6303943", "0.62633586", "0.6242512", "0.6222403", "0.61917967", "0.6163943", "0.61488503", "0.611253", "0.6107273", "0.60817415", "0.6077545", "0.60598207", "0.6056157", "0.6042404"...
0.0
-1
/ renamed from: com.ss.sys.ces.c.d
public interface C45946d { @C6457h /* renamed from: a */ C12466b<TypedInput> mo111267a(@C6450ac String str, @C6461l List<C12461b> list); @C6468s /* renamed from: a */ C12466b<TypedInput> mo111268a(@C6450ac String str, @C6461l List<C12461b> list, @C6451b TypedByteArray typedByteArray); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private static void cajas() {\n\t\t\n\t}", "void mo21072c();", "public final void mo91715d() {\n }", "void mo17021c();", "public void mo1403c() {\n }", "void mo72114c();", "public String d_()\r\n/* 445: */ {\r\n/* 446:459 */ return \"container.inventory\";\r\n/* 447: */ }", "void ...
[ "0.6061437", "0.59734315", "0.5885348", "0.58402306", "0.5835735", "0.58153266", "0.5813496", "0.5812315", "0.5786871", "0.5778243", "0.57703733", "0.5736136", "0.57296", "0.5728074", "0.5721605", "0.5698858", "0.5669607", "0.56685877", "0.56646615", "0.56520575", "0.5630075"...
0.0
-1
Date cdate = Calendar.getInstance().getTime();
public static java.sql.Timestamp getCurrentDate(Connection con) { Timestamp cdate = new Timestamp(Calendar.getInstance().getTimeInMillis()); Statement stmt = null; ResultSet rs = null; String selectSql = "select sysdate from dual"; // Mysql // selectSql = "select now()"; try { stmt = con.createStatement(); rs = stmt.executeQuery(selectSql); if (rs.next()) { cdate = rs.getTimestamp(1); } } catch (Exception e) { logger.error("getCurrentDate(Connection)", e); } finally { closeResultSet(rs); closeStatement(stmt); } return cdate; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Calendar getDate(){\n return date;\n }", "public Calendar getDate() {\n\treturn date;\n }", "final public synchronized Date getDate() {\n return new Date(crtime) ;\n }", "private Date getTime(long millis){\n\tCalendar calender = Calendar.getInstance();\r\n\tcalender.setTimeInMil...
[ "0.7043004", "0.6832808", "0.68229663", "0.68011594", "0.67952573", "0.66984034", "0.6697656", "0.66526747", "0.66389495", "0.6624159", "0.66205364", "0.660948", "0.65972644", "0.6594218", "0.65847534", "0.65847534", "0.6544521", "0.65078694", "0.6495845", "0.6484421", "0.647...
0.6411856
27
/ init arrays of HashMap for rows, columns and sub grid values
public static boolean isValidSudoku(char[][] grid) { HashMap<Integer, Integer>[] rows = new HashMap[9]; HashMap<Integer, Integer>[] columns = new HashMap[9]; HashMap<Integer, Integer>[] subgrids = new HashMap[9]; for (int i = 0; i < 9; ++i) { rows[i] = new HashMap<Integer, Integer>(); columns[i] = new HashMap<Integer, Integer>(); subgrids[i] = new HashMap<Integer, Integer>(); } /* validate board */ for (int r = 0; r < 9; ++r) { for (int c = 0; c < 9; ++c) { char num = grid[r][c]; if (num != '.') { int n = (int)num; int subgrid_idx = (r/3) * 3 + c / 3; /* keep the current cell value */ rows[r].put(n, rows[r].getOrDefault(n, 0) + 1); columns[c].put(n, columns[c].getOrDefault(n, 0) + 1); subgrid[subgrid_idx].put(n, subgrid[subgrid_idx].getOrDefault(n, 0) + 1); /* check if this value has previously been seen */ if (rows[r].get(n) > 1 || columns[c].get(n) > 1 || subgrid[subgrid_idx].get(n) > 1) { return false; } } } } return true; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void constructArray(){\n\t\tfor (int col = 0; col < cols; col++){\n\t\t\tfor (int row = 0; row < rows; row++){\n\t\t\t\tmap[col][row] = new Pixel();\n\t\t\t}\n\t\t}\n\t}", "public MapGrid(){\n\t\tthis.cell = 25;\n\t\tthis.map = new Node[this.width][this.height];\n\t}", "public Map(){\n this.matri...
[ "0.69747037", "0.680088", "0.6586695", "0.6524576", "0.6488747", "0.639378", "0.63685435", "0.631849", "0.6285731", "0.62143046", "0.62121975", "0.6166573", "0.6160933", "0.6156298", "0.6153045", "0.610442", "0.6101474", "0.6097168", "0.6078502", "0.6069395", "0.6053367", "...
0.0
-1
Call Address Order Validator mS
@RequestMapping("/create") @Produces({ MediaType.TEXT_PLAIN }) public String createOrder() { String response = ""; try { System.out.println("in EO calling Validate REST API : "+System.currentTimeMillis()); StopWatch watch = new StopWatch(); HttpUriRequest request = new HttpGet("http://localhost:" + "" + "9091" + "/eo/validate"); HttpResponse httpResponse; watch.start(); httpResponse = HttpClientBuilder.create().build().execute(request); watch.stop(); response = EntityUtils.toString(httpResponse.getEntity()); System.out.println(">>>>>>>Response:" + response + " Response time(hh:mm:SS:mS): " + watch.toString()); } catch (Exception e) { // TODO Auto-generated catch block e.printStackTrace(); } if (response.contains("Order Validated")) return "Order Created!!"; else throw new InternalServerErrorException(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "abstract void addressValidity();", "public Address runAddressRules(Address addr) throws RuleException, BusinessException;", "private boolean validateAddress() {\n if (address==null) {\n tvAddress.setText(String.format(\"%s*\", getString(R.string.address_activity)));\n showToast(get...
[ "0.64283556", "0.62806094", "0.6109991", "0.6029118", "0.5977333", "0.5834023", "0.5766793", "0.57129294", "0.567638", "0.5660852", "0.56217575", "0.56079406", "0.5563633", "0.5548787", "0.5526125", "0.5526125", "0.5510715", "0.5510715", "0.54856277", "0.54781365", "0.5465864...
0.0
-1
Return the reversal of an integer, i.e., reverse(456) returns 654
public static int reverse(int number) { int reverseNumber = 0; while (number > 0) { reverseNumber = (reverseNumber * 10) + (number%10); number = number / 10; } return reverseNumber; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static int reverseInt(int n) {\n\t\tif(n <10) {\n\t\t\treturn n;\n\t\t}\n\t\t//to reverse get the last digit first\n\t\t//then remove the last digit\n\t\t//Then next time *10 and add it to the previous one\n\t\tint result=0;\n\t\twhile(n>0) {\n\t\t\tint last = n%10;\n\t\t\tn = n/10;\n\t\t\tresult = result*1...
[ "0.73877203", "0.7331619", "0.7308061", "0.7305081", "0.7289235", "0.7254021", "0.7213623", "0.7207948", "0.7190601", "0.7162755", "0.714755", "0.71378005", "0.7083131", "0.70559615", "0.7049129", "0.6996224", "0.6862755", "0.6861656", "0.68437594", "0.6842286", "0.6841702", ...
0.7302885
4
Returns true if number is prime
public static boolean isPrime(int number) { boolean isPrime = true; for (int testNum = 2; testNum <= number / 2.0; testNum++) { if (number % testNum == 0) isPrime = false; } return isPrime; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public boolean isPrime()\r\n\t{\r\n\t\tif (currentNumber == 2 || currentNumber == 0)\r\n\t {\r\n\t \tprocessLastDigit();\r\n\t\t\treturn true;\r\n\t }\r\n\t\telse if (currentNumber % 2 == 0)\r\n\t {\r\n\t \treturn false;\r\n\t }\r\n \r\n\t for (int factor = 3; factor <= Math.sqrt(currentNumber...
[ "0.79546845", "0.7942867", "0.792878", "0.7900207", "0.78928024", "0.78419536", "0.78286767", "0.7819495", "0.78012615", "0.77904564", "0.7775091", "0.7763156", "0.773855", "0.76845217", "0.76831555", "0.76651084", "0.76651067", "0.7647838", "0.76460373", "0.75676197", "0.750...
0.7493284
21
Return true if number is NOT a palindrome
public static boolean notPalindrome(int number) { int reverseNumber = reverse(number); if (reverseNumber == number) return false; else return true; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static boolean isPalindrome(int number) {\n \n return number == reverse(number) ? true : false; \n \n }", "private static boolean isPalindrome(int num) {\n\t\t// Reversing a number\n\t\tint reverse = 0;\n\t\tfor (int i = num; i > 0; i /= 10)\n\t\t\treverse = reverse * 10 + i % 10;\n\...
[ "0.83982104", "0.83546376", "0.83000886", "0.81755805", "0.81433094", "0.809623", "0.8085949", "0.7949181", "0.79266065", "0.7709891", "0.7551236", "0.7432253", "0.7415182", "0.7361685", "0.7361399", "0.72906864", "0.72872734", "0.7279158", "0.72573483", "0.71983606", "0.7154...
0.83168423
2
TODO Autogenerated method stub ask what the user would input IF its a number printout Number IF its a string printout string
public static void main(String[] args) { String s = JOptionPane.showInputDialog("What to input?"); //int i = Integer.parseInt(s); try{ int i = Integer.parseInt(s); }catch(Exception e){ System.out.println("hi");} System.out.println("It still goes here"); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void ex04(){\n int number;\n number = 1;\n\n double number2;\n number2 = 1.5;\n\n String number3;\n number3 = \"3\";\n\n boolean bool = (number == 1);\n\n myWindow.clearOut();\n myWindow.writeOutLine(number);\n myWindow.writeOutLine(new ...
[ "0.6243626", "0.6163965", "0.6063431", "0.6062476", "0.6042887", "0.58805513", "0.5861749", "0.58047944", "0.5802482", "0.57970864", "0.579075", "0.5788052", "0.57304543", "0.57243514", "0.5723793", "0.57099235", "0.570566", "0.5696816", "0.5682576", "0.5676606", "0.567248", ...
0.0
-1
Creates new form GUI
public GUI() { initComponents(); this.jComboBox1.setEnabled(false); this.jButton2.setEnabled(false); this.jButton3.setEnabled(false); this.jTextArea1.setEnabled(false); getContentPane().setBackground(java.awt.Color.getHSBColor((float) 0.62, (float) 0.55, (float) 0.55)); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public TrainModelGUI CreateNewGUI() {\n //Create a GUI object\n \ttrainModelGUI = new TrainModelGUI(this);\n \tsetValuesForDisplay();\n \treturn trainModelGUI;\n }", "FORM createFORM();", "public GUIForm() { \n initComponents();\n }", "private static void createGUI(){\r\n\t\tfr...
[ "0.7468141", "0.7415754", "0.73422307", "0.73103327", "0.72638565", "0.7253002", "0.7119916", "0.71010506", "0.70668864", "0.70665216", "0.70567286", "0.7049184", "0.70178044", "0.70109123", "0.70031816", "0.69962454", "0.6987644", "0.6984079", "0.6966722", "0.6959968", "0.69...
0.0
-1
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() { jLabel1 = new javax.swing.JLabel(); jScrollPane1 = new javax.swing.JScrollPane(); jTextArea1 = new javax.swing.JTextArea(); jComboBox1 = new javax.swing.JComboBox(); jLabel2 = new javax.swing.JLabel(); jButton1 = new javax.swing.JButton(); jButton2 = new javax.swing.JButton(); jButton3 = new javax.swing.JButton(); jLabel4 = new javax.swing.JLabel(); jLabel3 = new javax.swing.JLabel(); setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE); setBackground(new java.awt.Color(25, 71, 212)); setCursor(new java.awt.Cursor(java.awt.Cursor.DEFAULT_CURSOR)); setForeground(java.awt.Color.blue); setResizable(false); jLabel1.setForeground(new java.awt.Color(255, 255, 255)); jLabel1.setText("Posts"); jTextArea1.setColumns(20); jTextArea1.setRows(5); jScrollPane1.setViewportView(jTextArea1); jComboBox1.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "Seleccione un Autor" })); jComboBox1.addItemListener(new java.awt.event.ItemListener() { public void itemStateChanged(java.awt.event.ItemEvent evt) { jComboBox1ItemStateChanged(evt); } }); jLabel2.setForeground(new java.awt.Color(255, 255, 255)); jLabel2.setText("Filtrar por Autor"); jButton1.setText("Conectar"); jButton1.setPreferredSize(new java.awt.Dimension(119, 23)); jButton1.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { jButton1ActionPerformed(evt); } }); jButton2.setText("Calcular Me Gusta"); jButton2.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { jButton2ActionPerformed(evt); } }); jButton3.setText("Perfil"); jButton3.setPreferredSize(new java.awt.Dimension(119, 23)); jButton3.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { jButton3ActionPerformed(evt); } }); jLabel4.setIcon(new javax.swing.ImageIcon("A:\\Alvaro\\Facepaper\\Desconectado.jpg")); // NOI18N jLabel3.setForeground(new java.awt.Color(255, 255, 255)); javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane()); getContentPane().setLayout(layout); layout.setHorizontalGroup( layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(layout.createSequentialGroup() .addContainerGap() .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(layout.createSequentialGroup() .addComponent(jLabel1) .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)) .addGroup(layout.createSequentialGroup() .addComponent(jScrollPane1, javax.swing.GroupLayout.PREFERRED_SIZE, 401, javax.swing.GroupLayout.PREFERRED_SIZE) .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(layout.createSequentialGroup() .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(layout.createSequentialGroup() .addGap(76, 76, 76) .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false) .addComponent(jButton2, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addComponent(jButton3, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addComponent(jButton1, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))) .addGroup(layout.createSequentialGroup() .addGap(97, 97, 97) .addComponent(jLabel2))) .addContainerGap()) .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup() .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 34, Short.MAX_VALUE) .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup() .addComponent(jLabel4) .addGap(22, 22, 22)) .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup() .addComponent(jComboBox1, javax.swing.GroupLayout.PREFERRED_SIZE, 148, javax.swing.GroupLayout.PREFERRED_SIZE) .addGap(56, 56, 56)) .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup() .addComponent(jLabel3) .addGap(91, 91, 91)))))))) ); layout.setVerticalGroup( layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(layout.createSequentialGroup() .addContainerGap() .addComponent(jLabel1) .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(layout.createSequentialGroup() .addGap(27, 27, 27) .addComponent(jLabel2) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED) .addComponent(jComboBox1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addComponent(jLabel3) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addComponent(jButton2) .addGap(18, 18, 18) .addComponent(jButton3, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addGap(18, 18, 18) .addComponent(jButton1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addComponent(jLabel4)) .addGroup(layout.createSequentialGroup() .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addComponent(jScrollPane1, javax.swing.GroupLayout.PREFERRED_SIZE, 388, javax.swing.GroupLayout.PREFERRED_SIZE))) .addContainerGap()) ); 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.73195875", "0.7291065", "0.7291065", "0.7291065", "0.7286258", "0.7248489", "0.7213822", "0.7208757", "0.7195916", "0.7190243", "0.7184025", "0.71591616", "0.7148041", "0.70930153", "0.7080625", "0.7056986", "0.6987694", "0.69770867", "0.6955136", "0.69538426", "0.69452894...
0.0
-1
GENLAST:event_jButton1ActionPerformed Boton Cant Likes
private void jButton2ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButton2ActionPerformed try { JOptionPane.showMessageDialog(this,String.valueOf(myFacePaper.calcularMeGustaUltimaSemana())); } catch (FacePaperException ex) { Logger.getLogger(GUI.class.getName()).log(Level.SEVERE, null, ex); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void bt3ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_bt3ActionPerformed\n ConfigurationBuilder cb = new ConfigurationBuilder();\n cb.setDebugEnabled(true)\n .setOAuthAppId(\"1602463666748241\")\n .setOAuthAppSecret(\"cefb5f40109c7ce4ebf0fe79...
[ "0.63008964", "0.6277094", "0.6241545", "0.6036277", "0.5987362", "0.59608203", "0.58811086", "0.58659893", "0.58498967", "0.58442676", "0.5822103", "0.57596785", "0.57268107", "0.5683408", "0.5677752", "0.5650393", "0.5637332", "0.56035215", "0.559966", "0.55901486", "0.5576...
0.52485883
92
Fetch a range of records in the database
@Override protected Object[][] fetchAll(int limit, int offset) { ArrayList<Category> items = new Categories().findAll(limit, offset); Iterator<Category> it = items.iterator(); Object[][] results = new Object[items.size()][]; int i = 0; while (it.hasNext()) { Category category = it.next(); results[i] = new Object[] { category.getId(), category.getName(), category.getGameId(), category.getCreatedAt(), category.getUpdatedAt() }; i++; } return results; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private List<T> findRange(RequestData requestData) {\n javax.persistence.criteria.CriteriaQuery cq = getEntityManager().getCriteriaBuilder().createQuery();\n cq.select(cq.from(getEntityClass()));\n javax.persistence.Query q = getEntityManager().createQuery(cq);\n q.setMaxResults(request...
[ "0.7146685", "0.6937574", "0.69282156", "0.67671037", "0.6589198", "0.6529857", "0.6346008", "0.6314049", "0.6252572", "0.62496597", "0.6226437", "0.62173843", "0.61869764", "0.6150644", "0.61339736", "0.61149067", "0.6084311", "0.60737884", "0.607066", "0.6067025", "0.606433...
0.0
-1
Fetch one record from the database
@Override protected Model fetchOne(int id) { return null; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected DomainObject findOne( StatementSource stmt ) {\n\t\tDomainObject obj = null;\n\t\tSQLiteDatabase db;\n\t\tCursor c = null;\n\t\ttry {\n\t\t\tUtils.Log( \"opening the database for read.\" );\n\t\t\tdb = Repository.getInstance( mContext ).getReadableDatabase();\n\t\t\tUtils.Log( stmt.sql() );\n\t\t\tc = db...
[ "0.683589", "0.6802904", "0.6648982", "0.66242117", "0.65803474", "0.6554861", "0.65440804", "0.65286845", "0.6496953", "0.64913964", "0.6483275", "0.64606535", "0.6458201", "0.64468515", "0.64441293", "0.64228004", "0.64097404", "0.6406609", "0.64049524", "0.639506", "0.6362...
0.6921633
0
Fetch the number of records in the database
@Override protected int fetchRecordsNumber() { return new Categories().count(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "Long recordCount();", "int getRecordCount();", "public int resultCount(){\n\n int c = 0;\n\n try{\n if(res.last()){\n c = res.getRow();\n res.beforeFirst();\n }\n } catch (SQLException e) {\n e.printStackTrace();\n }\n ...
[ "0.81820583", "0.8048969", "0.7938406", "0.78452605", "0.7803436", "0.77664095", "0.77642626", "0.7735309", "0.76926816", "0.7680722", "0.7497914", "0.7484068", "0.7479574", "0.7471115", "0.74658626", "0.7462836", "0.7446925", "0.74263316", "0.7425869", "0.7389036", "0.738578...
0.72688484
41
Add a record in the database
@Override protected void addRecord(AddWindow window) { Category category = new Category(); category.setName(this.nameInput.getText()); String selectedGame = (String) this.gamesList.getSelectedItem(); Pattern pattern = Pattern.compile("\\[(\\d+)\\] (.)+"); Matcher matcher = pattern.matcher(selectedGame); matcher.find(); int gameId = new Integer(matcher.group(1)); category.setGameId(gameId); new Categories().create(category); window.getSection().refreshTab(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void addRecord();", "int insert(Model record);", "public void insert() {\n\t\tSession session = DBManager.getSession();\n\t\tsession.beginTransaction();\n\t\tsession.save(this);\n\t\tsession.getTransaction().commit();\n\t}", "public void addRecord(Record record, String clientName, String assessmentYea...
[ "0.7993809", "0.70156324", "0.6958534", "0.68885595", "0.6834727", "0.67969924", "0.67881", "0.67875683", "0.67667985", "0.6756347", "0.6745685", "0.67405134", "0.6727033", "0.6714413", "0.6714413", "0.6712071", "0.6703143", "0.6702655", "0.67005956", "0.66969174", "0.6689316...
0.0
-1
Update a record in the database
@Override protected void updateRecord(String[] data) { Category category = new Category(); category.setId(new Integer(data[0])); category.setName(data[1]); category.setGameId(new Integer(data[2])); new Categories().update(category); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "int updateByPrimaryKey(Yqbd record);", "int updateByPrimaryKey(Model record);", "int updateByPrimaryKey(QuestionOne record);", "int updateByPrimaryKey(Forumpost record);", "int updateByPrimaryKey(RecordLike record);", "int updateByPrimaryKey(AccessModelEntity record);", "int updateByPrimaryKey(Body rec...
[ "0.78071487", "0.7791177", "0.7772424", "0.7735324", "0.7733899", "0.7725044", "0.7712691", "0.77070236", "0.77057266", "0.7688299", "0.7687097", "0.76699626", "0.76665163", "0.76665163", "0.76665163", "0.76665163", "0.76665163", "0.7658422", "0.7642529", "0.763963", "0.76394...
0.0
-1
Destroy a record in the database
@Override protected void destroyRecord(int id) { Category category = new Category(); category.setId(id); new Categories().destroy(category); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void deleteRecord() throws LRException\n\t{\n\t\tDataHRecordData myData=(DataHRecordData)getData();\n\t\tgetBackground();\n\t\ttry\n\t\t{\n\t\t\tmyData.record.delete(background.getClient());\n\t\t}\n\t\tcatch (LDBException e) { setStatus(e); }\n\t}", "public void deleteRecord() {\n\n new Background...
[ "0.7051562", "0.7041786", "0.7025247", "0.7009363", "0.6956618", "0.6943772", "0.69320065", "0.68987095", "0.68205744", "0.6793509", "0.6759202", "0.6745065", "0.67320806", "0.6709126", "0.6673098", "0.6605719", "0.65872055", "0.65805995", "0.65598905", "0.6541937", "0.652798...
0.0
-1
Render the form for adding a record
@Override protected JPanel renderForm(AddWindow window) { this.panel = new JPanel(new FlowLayout(FlowLayout.LEADING)); this.nameLabel = new JLabel("Nom de la catégorie"); this.nameInput = new TabbedTextField(null, "name", 19); this.components.add(this.nameInput); this.gameLabel = new JLabel("Jeu parent"); this.gamesList = new TabbedComboBox("game", this.getGamesList()); this.components.add(this.gamesList); TabbedButton cancel = new TabbedButton("Annuler", "cancel"); cancel.addActionListener(window); TabbedButton submit = new TabbedButton("Enregistrer", "submit"); submit.addActionListener(window); this.panel.add(this.nameLabel); this.panel.add(this.nameInput); this.panel.add(this.gameLabel); this.panel.add(this.gamesList); this.panel.add(cancel); this.panel.add(submit); this.panel.validate(); return panel; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@GetMapping(\"/list/showFormForAdd\")\n\tpublic String showFormForAdd(Model theModel) {\n\t\tPerson thePerson = new Person();\n\t\ttheModel.addAttribute(\"person\", thePerson);\n\n\t\treturn \"person-form\";\n\t}", "@GetMapping(\"/showFormForAdd\")\r\n\tpublic String showFormForAdd(Model theModel){\n\t\tCustomer...
[ "0.6534427", "0.62921727", "0.62299967", "0.6184813", "0.6122611", "0.6050766", "0.59963", "0.59892637", "0.59783566", "0.59635615", "0.59019184", "0.58972704", "0.5873989", "0.58570874", "0.58209395", "0.5799124", "0.571905", "0.5713297", "0.56891984", "0.5673181", "0.567081...
0.55390304
40
Return the list of games formatted for a ComboBox
private String[] getGamesList() { Games games = new Games(); int maxRecords = games.count(); ArrayList<Game> records = games.findAll(maxRecords, 0); Iterator<Game> it = records.iterator(); String[] output = new String[maxRecords]; int i = 0; while (it.hasNext()) { Game game = it.next(); output[i] = "[" + game.getId() + "] " + game.getName(); i++; } return output; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String GetGamesList()\n\t{\n\t\tString gameslist = \"\";\n\t\tfor (int i = 0; i < gametype.length; i++)\n\t\t{\n\t\t\tgameslist += \"Game Number \" + i + \"\\t\" + gametype[i].GetName() + \"\\n\";\n\t\t\tif (gametype[i].Game_Status())\n\t\t\t{\n\t\t\t\tgameslist += \"There is currently a game in progress\\n...
[ "0.6374291", "0.60347986", "0.5968953", "0.5959195", "0.588709", "0.5865255", "0.58179533", "0.5754531", "0.5752681", "0.55807334", "0.557999", "0.5578978", "0.5568752", "0.5558693", "0.5524939", "0.5514145", "0.5508281", "0.5507687", "0.55029774", "0.5502093", "0.5494671", ...
0.61406785
1
Return the height the window containing the form to add a record should have
@Override protected int getAddWindowHeigh() { return 170; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tpublic int getHeight() {\n\t\treturn windowHeight;\n\t}", "public int getPanelHeight() {\n return height;\n }", "Integer getCurrentHeight();", "public int getCurrentHeight();", "public abstract int layoutHeight();", "public abstract int getDisplayHeight();", "int getBoundsHeight(...
[ "0.7113172", "0.69786286", "0.670619", "0.66775286", "0.6650234", "0.66359854", "0.6604655", "0.66009694", "0.6572614", "0.65473163", "0.65015715", "0.64961976", "0.64952517", "0.64952517", "0.6485491", "0.6462425", "0.64520514", "0.64520514", "0.64520514", "0.64520514", "0.6...
0.6269945
79
Return the width the window containing the form to add a record should have
@Override protected int getAddWindowWidth() { return 230; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tpublic int getWidth() {\n\t\treturn windowWidth;\n\t}", "Integer getCurrentWidth();", "public int getCurrentWidth();", "@Override\n\tpublic float getPrefWidth() {\n\t\treturn windowSize * 1.2f;\n\t}", "public abstract int getDisplayWidth();", "public int getDisplayingFieldWidth() {\n ...
[ "0.7143657", "0.7015295", "0.69368076", "0.68692964", "0.67823166", "0.67102927", "0.6669978", "0.663224", "0.6622693", "0.6622693", "0.6614746", "0.6614746", "0.6614746", "0.6578994", "0.6567962", "0.65657544", "0.6548928", "0.6548928", "0.6546966", "0.6546966", "0.6546966",...
0.71923506
0
TODO Autogenerated method stub
@Override public void forEachRemaining(Consumer<? super T> arg0) { }
{ "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
Find by method. Search Node by value.
@Override public Optional<Node<E>> findBy(E value) { Optional<Node<E>> rsl = Optional.empty(); Queue<Node<E>> data = new LinkedList<>(); data.offer(this.root); while (!data.isEmpty()) { Node<E> el = data.poll(); if (el.eqValue(value)) { rsl = Optional.of(el); break; } for (Node<E> child : el.leaves()) { data.offer(child); } } return rsl; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public BinaryNode<T> find(T v);", "@Override\n public Optional<Node<T>> findBy(T value) {\n Optional<Node<T>> rsl = Optional.empty();\n Queue<Node<T>> data = new LinkedList<>();\n data.offer(this.root);\n while (!data.isEmpty()) {\n Node<T> el = data.poll();\n ...
[ "0.74478245", "0.7023531", "0.6935178", "0.6901463", "0.6697463", "0.6696912", "0.6683572", "0.65476686", "0.65084374", "0.6501347", "0.6414052", "0.6412045", "0.63862854", "0.63700557", "0.6354991", "0.634306", "0.63383454", "0.6337065", "0.6250899", "0.62340325", "0.6208418...
0.68826705
4
isBinary method. checking tree and if tree is binary return true;
public boolean isBinary() { /* Queue<Node<E>> treeData = new LinkedList<>(); treeData.offer(this.root); int counter; boolean isBinary = true; while (!treeData.isEmpty() && isBinary) { counter = 0; Node<E> el = treeData.poll(); for (Node<E> child : el.leaves()) { treeData.offer(child); if (++counter > 2) { isBinary = false; } } } return isBinary;*/ int counter = 0; boolean isBinary = true; Iterator it = iterator(); while (it.hasNext() && isBinary) { counter = 0; Node<E> currentNode = (Node<E>) it.next(); for (Node<E> child : currentNode.leaves()) { counter++; if (counter > 2) { isBinary = false; } } } return isBinary; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public boolean isBinary() {\n boolean result = true;\n Queue<Node<T>> data = new LinkedList<>();\n data.offer(this.root);\n while (!data.isEmpty()) {\n Node<T> element = data.poll();\n if (!(element.leaves().size() <= 2)) {\n result = false;\n ...
[ "0.82380277", "0.80796427", "0.75790536", "0.7517496", "0.73244524", "0.7113193", "0.70618856", "0.69925016", "0.6918185", "0.6752828", "0.6738626", "0.66929865", "0.6669682", "0.6632619", "0.6604083", "0.65427494", "0.6528068", "0.64974684", "0.64500546", "0.6447762", "0.644...
0.8064476
2
name resolution happens in post processing
@Override public void exitReference(ReferenceContext ctx) { Expression exp = null; if (ctx.selector() != null) { //process local variables/constants or states String processName = ctx.objectDecl(0).IDENTIFIER().getText(); switch (ctx.selector().start.getType()) { case DVEParser.VARSEL: ProcessVariableReference pvr = dveFactory.createProcessVariableReference(); pvr.setPrefix(builder.processReference(processName)); String variableName = ctx.objectDecl(1).IDENTIFIER().getText(); pvr.setRefName(variableName); if (ctx.objectDecl(1).arraySelector() != null) { exp = builder.indexedExpression(pvr, exprStack.pop()); return; } exp = pvr; break; case DVEParser.STATESEL: ProcessStateReference psr = dveFactory.createProcessStateReference(); psr.setPrefix(builder.processReference(processName)); String stateName = ctx.objectDecl(1).IDENTIFIER().getText(); psr.setRefName(stateName); exp = psr; break; default: } exprStack.push(exp); return; } //name resolution happens in post processing //global variable/constant reference String varName = ctx.objectDecl(0).IDENTIFIER().getText(); VariableReference vref = dveFactory.createVariableReference(); vref.setRefName(varName); exp = vref; if (ctx.objectDecl(0).arraySelector() != null) { //Indexed array exp = builder.indexedExpression(vref, exprStack.pop()); } exprStack.push(exp); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private String resolveName()\n {\n\n String forwardName = null;\n\n // trigger\n final EventFacade trigger = this.getTrigger();\n\n if (trigger != null)\n {\n\n forwardName = trigger.getName();\n\n }\n\n // name\n if (forwardName == null)\n ...
[ "0.6381646", "0.6342197", "0.6290094", "0.6257525", "0.61914194", "0.617161", "0.6107827", "0.6052165", "0.6038102", "0.59943485", "0.59930634", "0.59665054", "0.59665054", "0.59459746", "0.5937257", "0.5937257", "0.5914553", "0.5870157", "0.5870157", "0.5870157", "0.5870157"...
0.0
-1
Creates an empty tile directory with potential dimensions of the specifications.
TileDirectoryExtended(GvrsFileSpecification spec) { this.nRowsOfTiles = spec.nRowsOfTiles; this.nColsOfTiles = spec.nColsOfTiles; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void createTiles() {\n\t\tint tile_width = bitmap.getWidth() / gridSize;\n\t\tint tile_height = bitmap.getHeight() / gridSize;\n\n\t\tfor (short row = 0; row < gridSize; row++) {\n\t\t\tfor (short column = 0; column < gridSize; column++) {\n\t\t\t\tBitmap bm = Bitmap.createBitmap(bitmap, column * tile_widt...
[ "0.6388446", "0.61680704", "0.56760377", "0.56045455", "0.5547573", "0.5510753", "0.54793775", "0.5430711", "0.53720903", "0.531808", "0.52842706", "0.52811736", "0.525799", "0.5257249", "0.5210486", "0.5208264", "0.51968646", "0.51761276", "0.51760185", "0.5171991", "0.51333...
0.57454413
2
Store the specified offset at the position given by the tile row and column. If necessary, the grid of file positions is resized to accommodate the specified tile index. File positions must be positive values and a multiple of eight.
@Override public void setFilePosition(int tileIndex, long offset) { int row = tileIndex / nColsOfTiles; int col = tileIndex - row * nColsOfTiles; if (row < 0 || row >= nRowsOfTiles) { throw new IllegalArgumentException( "Tile index is out of bounds " + tileIndex); } // to simplify re-allocation (if any), we process the // columns first. if (nCols == 0) { // first call, nRows is also zero nCols = 1; nRows = 1; col0 = col; col1 = col; row0 = row; row1 = row; offsets = new long[1][1]; offsets[0][0] = offset; return; } if (col < col0) { int nAdded = col0 - col; int n = nCols + nAdded; for (int i = 0; i < nRows; i++) { long[] x = new long[n]; System.arraycopy(offsets[i], 0, x, nAdded, nCols); offsets[i] = x; } nCols = n; col0 = col; } else if (col > col1) { int nAdded = col - col1; int n = nCols + nAdded; for (int i = 0; i < nRows; i++) { long[] x = new long[n]; System.arraycopy(offsets[i], 0, x, 0, nCols); offsets[i] = x; } nCols = n; col1 = col; } if (row < row0) { int nAdded = row0 - row; int n = nRows + nAdded; long[][] x = new long[n][]; System.arraycopy(offsets, 0, x, nAdded, nRows); offsets = x; for (int i = 0; i < nAdded; i++) { offsets[i] = new long[nCols]; } nRows = n; row0 = row; } else if (row > row1) { int nAdded = row - row1; int n = nRows + nAdded; long[][] x = new long[n][]; System.arraycopy(offsets, 0, x, 0, nRows); offsets = x; for (int i = 0; i < nAdded; i++) { offsets[nRows + i] = new long[nCols]; } nRows = n; row1 = row; } offsets[row - row0][col - col0] = offset; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void writeTilePositions(BufferedRandomAccessFile braf) throws IOException {\n braf.leWriteInt(row0);\n braf.leWriteInt(col0);\n braf.leWriteInt(nRows);\n braf.leWriteInt(nCols);\n if (nCols > 0) {\n for (int i = 0; i < nRows; i++) {\n for (int j = 0; j < nCols; j++) {...
[ "0.59032303", "0.5820678", "0.56788456", "0.5668199", "0.56633943", "0.5417757", "0.5318425", "0.52835995", "0.5161859", "0.5130465", "0.51281166", "0.5116582", "0.501493", "0.501396", "0.49353606", "0.48919773", "0.4884023", "0.486013", "0.48355895", "0.48285568", "0.4815527...
0.76348215
0
Gets the file position for the specified tile.
@Override public long getFilePosition(int tileIndex) { int row = tileIndex / nColsOfTiles; int col = tileIndex - row * nColsOfTiles; if (nCols == 0 || row < row0 || col < col0 || row > row1 || col > col1) { return 0; } // for files larger than 16 GB, the offset value may be negative. // so a mask is applied to convert it to a positive value. return offsets[row - row0][col - col0]; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public long getFileOffset();", "long getFileOffset();", "Tile getPosition();", "public final BlockPos getPos() {\n\t\treturn baseTile.getPos();\n\t}", "public int getFile() {\n validify();\n return Client.INSTANCE.pieceGetFile(ptr);\n }", "java.lang.String getFileLoc();", "public Locat...
[ "0.6438086", "0.63171935", "0.63089895", "0.5856847", "0.5828358", "0.57688093", "0.5717636", "0.5707723", "0.57068485", "0.5624918", "0.5607011", "0.5591287", "0.556386", "0.5527473", "0.55070335", "0.54880154", "0.54582053", "0.54574686", "0.54420036", "0.5376563", "0.53665...
0.7446115
0
Indicates whether a file position is set for the specified tile index.
@Override public boolean isFilePositionSet(int tileIndex) { int row = tileIndex / nColsOfTiles; int col = tileIndex - row * nColsOfTiles; if (nCols == 0 || row < row0 || col < col0 || row > row1 || col > col1) { return false; } return offsets[row - row0][col - col0] != 0; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public boolean isSetPositionX() {\r\n return EncodingUtils.testBit(__isset_bitfield, __POSITIONX_ISSET_ID);\r\n }", "private boolean isPositionIndex(final long index) {\r\n\t\treturn index >= 0 && index <= size;\r\n\t}", "@Override\n public long getFilePosition(int tileIndex) {\n int row = tileInde...
[ "0.62300026", "0.60182536", "0.5929053", "0.58418804", "0.5793817", "0.5772996", "0.5772067", "0.57589805", "0.5749048", "0.5690926", "0.5687827", "0.5686296", "0.5686296", "0.5686296", "0.5686296", "0.5555206", "0.5552229", "0.5547248", "0.5530097", "0.5527068", "0.5524361",...
0.83327717
0
Reads the tile position data from the specified file.
@Override public void readTilePositions(BufferedRandomAccessFile braf) throws IOException { row0 = braf.leReadInt(); col0 = braf.leReadInt(); nRows = braf.leReadInt(); nCols = braf.leReadInt(); this.row1 = row0 + nRows - 1; this.col1 = col0 + nCols - 1; if (nCols == 0) { offsets = null; // no position records follow in file. } else { offsets = new long[nRows][]; for (int i = 0; i < nRows; i++) { offsets[i] = new long[nCols]; } for (int i = 0; i < nRows; i++) { for (int j = 0; j < nCols; j++) { offsets[i][j] = braf.leReadLong(); } } } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void loadPositionFile(final String filePath) {\n Long inode;\n Long pos;\n String path;\n FileReader fr = null;\n JsonReader jr = null;\n try {\n fr = new FileReader(filePath);\n jr = new JsonReader(fr);\n jr.beginArray();\n ...
[ "0.6289328", "0.5681547", "0.5638972", "0.556411", "0.5543965", "0.55133176", "0.5494813", "0.54701644", "0.5422205", "0.5406379", "0.54007316", "0.539414", "0.53837144", "0.53611904", "0.5352809", "0.53332835", "0.53282344", "0.5325737", "0.53164196", "0.5285034", "0.5276571...
0.7064738
0
Writes the tile position data from the specified file.
@Override public void writeTilePositions(BufferedRandomAccessFile braf) throws IOException { braf.leWriteInt(row0); braf.leWriteInt(col0); braf.leWriteInt(nRows); braf.leWriteInt(nCols); if (nCols > 0) { for (int i = 0; i < nRows; i++) { for (int j = 0; j < nCols; j++) { braf.leWriteLong(offsets[i][j]); } } } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static void put(File file) throws IOException {\n while (LogicManager.isUpdating()) {} // wait until current update has finished\n\n LogicManager.setPaused(true);\n\n // open output stream\n ObjectOutputStream out = new ObjectOutputStream(new BufferedOutputStream(new FileOutputSt...
[ "0.6409149", "0.59287614", "0.58413845", "0.57787335", "0.5697483", "0.54634994", "0.5449775", "0.5447031", "0.54342747", "0.5373285", "0.5312893", "0.5293424", "0.5291539", "0.5277245", "0.5249638", "0.5242151", "0.5207084", "0.51195925", "0.5094525", "0.5086333", "0.5078469...
0.6738556
0
Gets the amount of storage space required to store the tile directory, in bytes.
@Override public int getStorageSize() { int nCells = nRows * nCols; return 16 + 8 * nCells; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "long getTotalFreeSpaceInBytes();", "long getTotalFreeSpaceInBytes();", "Long diskSizeBytes();", "public static long getTotalInternalStorageSize() {\n StatFs stat = new StatFs(getInternalStoragePath());\n return stat.getBlockSize() * stat.getBlockCount();\n }", "long storageSize();", "pub...
[ "0.75479376", "0.75479376", "0.75306773", "0.7450812", "0.7420594", "0.73126286", "0.7220023", "0.7142989", "0.7134447", "0.70496285", "0.70435905", "0.7043344", "0.7043344", "0.69653684", "0.69653684", "0.69172364", "0.6913736", "0.689749", "0.68815815", "0.68799067", "0.686...
0.0
-1
Convert the given object to string with each line indented by 4 spaces (except the first line).
private String toIndentedString(java.lang.Object o) { if (o == null) { return "null"; } return o.toString().replace("\n", "\n "); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private String toIndentedString(Object object) {\n if (object == null) {\n return EndpointCentralConstants.NULL_STRING;\n }\n return object.toString().replace(EndpointCentralConstants.LINE_BREAK,\n EndpointCentralConstants.LINE_BREAK + EndpointCentralConstants.TAB_SPA...
[ "0.78847593", "0.75493765", "0.74971926", "0.746168", "0.746168", "0.746168", "0.746168", "0.746168", "0.746168", "0.746168", "0.746168", "0.746168", "0.746168", "0.746168", "0.746168", "0.746168", "0.746168", "0.746168", "0.746168", "0.746168", "0.746168", "0.746168", "0...
0.0
-1
=== Container implementation ===
@Override public <T> BindingInvocation<T> addImplType(Class<T> type) { verifyActive(); Objects.requireNonNull(type, "type cannot be null"); return addImplType(TypeToken.forClass(type)); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Container newContainer();", "T createContainer();", "Container createContainer();", "public Container getContainer();", "public interface Container<T> {\n\n\t/**\n\t * Registra un objeto en el contenedor. Un objeto puede estar varias veces en el contenedor\n\t */\n\tpublic void register(T o);\n\t\n\...
[ "0.7078728", "0.704625", "0.70048666", "0.6985184", "0.6854401", "0.6808292", "0.68029326", "0.6745653", "0.66874224", "0.6497958", "0.64817387", "0.63101447", "0.63055676", "0.62964976", "0.62730306", "0.6252133", "0.6243634", "0.62400657", "0.6206787", "0.61846447", "0.6163...
0.0
-1
Ensures that the container is still active for loading.
private void verifyActive() { if (!active) { throw new IllegalStateException("Container is no longer active for loading"); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void waitUntilLoadingDoesNotExistAndVerifyContainerDisplayed(){\n\t\tverifyContainerDisplayedResultsPage();\r\n\t}", "@Override\n\t\tpublic boolean isComponentAlive() {\n\t\t\treturn false;\n\t\t}", "private boolean tryInactivate() {\n if (active) {\n if (!pool.tryDecrementActiveCount(...
[ "0.62770337", "0.59678143", "0.5879633", "0.5879633", "0.58248556", "0.5819647", "0.5763482", "0.56379473", "0.5532185", "0.5532185", "0.552474", "0.5468036", "0.5442366", "0.5437065", "0.5437065", "0.54358715", "0.5433533", "0.5425886", "0.5363997", "0.53547096", "0.53508765...
0.7923946
0
Constructor for updateable basic policy.
public UpdateableBasicPolicy(ExecutablePolicyType executablePolicyType, FunctionEstimator functionEstimator) throws DynamicParamException, AgentException { super(executablePolicyType, functionEstimator); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public BasicUpdate()\n {\n }", "public EditPolicy() {\r\n super();\r\n }", "public Policy reference() throws DynamicParamException, AgentException, MatrixException, IOException, ClassNotFoundException {\n return new UpdateableBasicPolicy(executablePolicy.getExecutablePolicyType(), getFunctio...
[ "0.67420965", "0.6602956", "0.6376571", "0.6281026", "0.62022203", "0.60133094", "0.6012113", "0.59978086", "0.5989545", "0.5960846", "0.5878134", "0.5869028", "0.5784825", "0.5719822", "0.5717885", "0.5678923", "0.56508565", "0.5561706", "0.5515287", "0.55120426", "0.5506670...
0.6394178
2
Constructor for updateable basic policy.
public UpdateableBasicPolicy(ExecutablePolicyType executablePolicyType, FunctionEstimator functionEstimator, String params) throws DynamicParamException, AgentException { super(executablePolicyType, functionEstimator, params); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public BasicUpdate()\n {\n }", "public EditPolicy() {\r\n super();\r\n }", "public UpdateableBasicPolicy(ExecutablePolicyType executablePolicyType, FunctionEstimator functionEstimator) throws DynamicParamException, AgentException {\n super(executablePolicyType, functionEstimator);\n }", ...
[ "0.67420965", "0.6602956", "0.6394178", "0.6376571", "0.6281026", "0.62022203", "0.6012113", "0.59978086", "0.5989545", "0.5960846", "0.5878134", "0.5869028", "0.5784825", "0.5719822", "0.5717885", "0.5678923", "0.56508565", "0.5561706", "0.5515287", "0.55120426", "0.55066705...
0.60133094
6
Returns reference to policy.
public Policy reference() throws DynamicParamException, AgentException, MatrixException, IOException, ClassNotFoundException { return new UpdateableBasicPolicy(executablePolicy.getExecutablePolicyType(), getFunctionEstimator().reference(), params); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "Policy _get_policy(int policy_type);", "protected java.security.Policy getPolicy(){\n\tif (stateIs(INSERVICE_STATE)) {\n\t return this.policy;\n\t} \n\tif (logger.isLoggable(Level.FINEST)) {\n\t logger.finest(\"JACC Policy Provider: getPolicy (\"+CONTEXT_ID+\") is NOT in service\");\n\t}\n\treturn null;\n ...
[ "0.77555555", "0.73819494", "0.7173543", "0.6801999", "0.67737824", "0.6552571", "0.6535278", "0.64424944", "0.6358285", "0.6356772", "0.6311674", "0.6311674", "0.62826276", "0.6267149", "0.62408936", "0.62064695", "0.618935", "0.61492926", "0.6108849", "0.6089472", "0.608180...
0.68672043
3
Returns reference to policy.
public Policy reference(boolean sharedPolicyFunctionEstimator, boolean sharedMemory) throws DynamicParamException, AgentException, MatrixException, IOException, ClassNotFoundException { return new UpdateableBasicPolicy(executablePolicy.getExecutablePolicyType(), sharedPolicyFunctionEstimator ? getFunctionEstimator() : getFunctionEstimator().reference(sharedMemory), params); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "Policy _get_policy(int policy_type);", "protected java.security.Policy getPolicy(){\n\tif (stateIs(INSERVICE_STATE)) {\n\t return this.policy;\n\t} \n\tif (logger.isLoggable(Level.FINEST)) {\n\t logger.finest(\"JACC Policy Provider: getPolicy (\"+CONTEXT_ID+\") is NOT in service\");\n\t}\n\treturn null;\n ...
[ "0.7755509", "0.738264", "0.7173996", "0.686824", "0.68021023", "0.67733884", "0.655246", "0.6534709", "0.6441473", "0.6357697", "0.63556737", "0.63114625", "0.63114625", "0.6282074", "0.62680274", "0.6241367", "0.6206326", "0.619061", "0.61487246", "0.6109699", "0.60874665",...
0.53563267
64
Returns policy gradient value for update.
protected double getPolicyValue(StateTransition stateTransition) throws MatrixException, NeuralNetworkException { return Math.log(getValues(getFunctionEstimator(), stateTransition, false).getValue(stateTransition.action, 0, 0)) * stateTransition.advantage; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public float getGradPoint() { return gradientPoint; }", "void computeGradient(GradientCalc calc);", "@Override\r\n public void getValueGradient(double[] gradient) {\n double[] llhGrad = new double[N];\r\n for (int n = 0; n < N; n++) {\r\n llhGrad[n] = ZTy[n];\r\n for (int...
[ "0.67521757", "0.5964488", "0.59050727", "0.5765709", "0.5736242", "0.5730348", "0.5669938", "0.5607133", "0.55925804", "0.5548172", "0.55481595", "0.55481595", "0.55481595", "0.5547308", "0.55343974", "0.55006355", "0.5462935", "0.5451706", "0.5450265", "0.54339755", "0.5418...
0.5793526
3
Constructor con el que iniciaremos los dos contadores del programa.
public void iniciar(){ System.out.println("El primer contador comenzara en el número 0"); contador=0; System.out.println("El segundo contador comenzara en el número 100"); contador2=100;}
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Principal() {\n initComponents();\n empresaControlador = new EmpresaControlador();\n clienteControlador = new ClienteControlador();\n vehiculoControlador = new VehiculoControlador();\n servicioControlador = new ServicioControlador();\n archivoObjeto = new ArchivoObj...
[ "0.718467", "0.71060413", "0.67906576", "0.6723795", "0.66738355", "0.66602916", "0.66256875", "0.6616234", "0.6599321", "0.6541494", "0.6533476", "0.65260977", "0.64473444", "0.6394968", "0.6361284", "0.63401157", "0.6329779", "0.6320019", "0.63138044", "0.63099104", "0.6302...
0.0
-1
Este constructor nos devolvera el primer contador
public int getcontador(){ return contador;}
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public ContasCorrentes(){\n this(0,\"\",0.0,0.0,0);\n }", "Constructor() {\r\n\t\t \r\n\t }", "public Constructor(){\n\t\t\n\t}", "public Carrinho() {\n\t\tsuper();\n\t}", "public Coche() {\n super();\n }", "public Pitonyak_09_02() {\r\n }", "public Pasien() {\r\n }", "public Chau...
[ "0.76600707", "0.76393926", "0.74975294", "0.73283446", "0.71086645", "0.69920516", "0.6982845", "0.69449407", "0.6937073", "0.6886344", "0.6863048", "0.686168", "0.6838994", "0.68344456", "0.68291706", "0.682781", "0.6809869", "0.6794501", "0.67684567", "0.67589694", "0.6753...
0.0
-1
Este constructor nos devolvera el segundo contador
public int getcontador2(){ return contador2;}
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "Constructor() {\r\n\t\t \r\n\t }", "public Constructor(){\n\t\t\n\t}", "public ContasCorrentes(){\n this(0,\"\",0.0,0.0,0);\n }", "public Carrinho() {\n\t\tsuper();\n\t}", "public Pasien() {\r\n }", "private ControleurAcceuil(){ }", "public Alojamiento() {\r\n\t}", "public AntrianPasien(...
[ "0.7649778", "0.7415173", "0.73125124", "0.7302088", "0.72074103", "0.7181552", "0.713383", "0.7118998", "0.7091429", "0.7076947", "0.7026861", "0.70095843", "0.7003266", "0.6995456", "0.69895005", "0.69799227", "0.6962302", "0.6956386", "0.6953926", "0.6946327", "0.69462293"...
0.0
-1
Constructor para copiar contadores
public int copy(int contador){ this.contador=contador; return contador;}
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Contenido copiar() {\n\t\tthrow new NotImplementedException();\r\n\t}", "public static void copyConstructor(){\n\t}", "public ContasCorrentes(){\n this(0,\"\",0.0,0.0,0);\n }", "public ContaBancaria() {\n }", "public Contato() {\n }", "Prototype makeCopy();", "private void copiaTab...
[ "0.6773424", "0.6366498", "0.6249887", "0.6243347", "0.6147899", "0.61413056", "0.6064548", "0.6044113", "0.6029938", "0.59938705", "0.59932774", "0.5990589", "0.59625596", "0.5903827", "0.5862585", "0.5836203", "0.5784069", "0.57544523", "0.57384974", "0.5727425", "0.5687718...
0.55969524
31
Utilizaremos este constructor para disminuir la cantidad del contador
public int disminuir(int contador){ System.out.println("Escoge la cantidad a disminuir"); num=teclado.nextInt(); for(int i=0 ; i<num ; i++){ contador=contador-1;} return contador;}
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Counter() {\n //this.max = max;\n }", "public Clan(int nombreMembres)\n {\n // initialisation des variables d'instance\n this.nombreMembres = nombreMembres;\n this.residence = null;\n }", "public Counter()\n {\n this(0);\n }", "public Counter() {\r\n ...
[ "0.67135847", "0.6433341", "0.6428814", "0.63526046", "0.63492775", "0.62934846", "0.6289903", "0.61411345", "0.60818577", "0.60777825", "0.5984502", "0.5974788", "0.59589607", "0.5947242", "0.5943932", "0.5932269", "0.59310454", "0.59115034", "0.59074867", "0.589584", "0.587...
0.59020084
19
Utilizaremos este constructor para incrementar la cantidad del contador
public int incrementar(int contador){ System.out.println("Escoge la cantidad a incrementar"); num=teclado.nextInt(); for(int i=0 ; i<num ; i++){ contador=contador+1;} return contador;}
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Counter (int modulus) {\n count = 0;\n this.modulus = modulus;\n }", "public Conta(int agencia, int numero){\n total ++;\n System.out.println(\"Total de contas: \" + total);\n this.agencia = agencia;\n this.numero = numero;\n System.out.println(\"Criando conta age...
[ "0.71109337", "0.687892", "0.6864865", "0.68502325", "0.6787256", "0.66984344", "0.66981524", "0.66087574", "0.6606598", "0.6600078", "0.65535235", "0.6546412", "0.6542622", "0.65273476", "0.6498907", "0.64564675", "0.64441764", "0.64425564", "0.64387816", "0.64360565", "0.64...
0.67567635
5
TODO Autogenerated method stub
public static void main(String[] args) { Scanner scanner = new Scanner(System.in); int result = 0; int number = scanner.nextInt(); if(number <= 99) { System.out.print(number); } else { if(number == 1000){ number = 999; } result = 99 + getResult(number); System.out.println(result); } }
{ "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
post: asocia el Tablero a 'nuevoJuego' y lo inicializa a partir de su estado.
public Tablero(Reversi nuevoJuego) { juego = nuevoJuego; escenario = new Stage(); panel = new BorderPane(); grilla = new GridPane(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void nuevoJuego() { \n\n objJuegoTresEnRaya = new JuegoTresEnRaya();\n objJuegoTresEnRaya.addObserver(this);\n objJuegoTresEnRaya.setQuienComienza(JuegoTresEnRaya.JUGADOR);\n objJuegoTresEnRaya.setQuienJuega(JuegoTresEnRaya.JUGADOR);\n \n }", "public void inici...
[ "0.63130325", "0.6095899", "0.6081288", "0.6077602", "0.60300964", "0.5942437", "0.5914366", "0.5828046", "0.582292", "0.57900953", "0.57867134", "0.5768127", "0.5713717", "0.57117295", "0.5709713", "0.5693118", "0.56724125", "0.56471807", "0.5640104", "0.56344944", "0.562972...
0.61822426
1
post: muestra el Tablero en pantalla.
public void mostrar() { dibujarFondo(); dibujarMarcador(); Scene escena = new Scene(panel, panel.getPrefWidth(), panel.getPrefHeight()); escenario.setScene(escena); escenario.setResizable(false); escenario.setTitle(Aplicacion.TITULO); dibujar(); escenario.show(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void createTable() {\n try {\n tableLayout = findViewById(R.id.tabla);\n tb = new TableDinamic(tableLayout, getApplicationContext(), \"cargarDetalle\", clc, cap_1, cap_2, cap_ct, txtidReg, txtId, txtBloque, txtVariedad);\n tableLayout.removeAllViews();\n tb...
[ "0.7045044", "0.70283985", "0.6984081", "0.69262475", "0.6900341", "0.684419", "0.6729139", "0.6723454", "0.6605313", "0.6575593", "0.6572239", "0.6560897", "0.6538688", "0.6527104", "0.65259415", "0.6503053", "0.64829725", "0.6478239", "0.64716333", "0.6469468", "0.646196", ...
0.0
-1
post: agrega el fondo del Tablero.
private void dibujarFondo() { grilla.setBackground(new Background(new BackgroundFill(Color.LIGHTGREEN, null, null))); grilla.setBorder(crearBorde()); grilla.setPadding(new Insets(10)); grilla.setCenterShape(true); panel.setCenter(grilla); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void cargarTabla() {\n\t\tObject[] fila = new Object[7];\r\n\t\tfila[1] = txtCedula.getText();\r\n\t\tfila[2] = txtFuncionario.getText();\r\n\t\tfila[3] = util.getDateToString(dcDesde.getDate());\r\n\t\tif (cbTipo.getSelectedIndex() == 1 || cbTipo.getSelectedIndex() == 2) {\r\n\t\t\tfila[4] = util.getDateT...
[ "0.62460935", "0.6095245", "0.6046177", "0.59671164", "0.59667367", "0.59368265", "0.5931693", "0.5917908", "0.58891684", "0.58863294", "0.5854858", "0.580041", "0.5770694", "0.57637864", "0.57433933", "0.5739858", "0.57190377", "0.56985164", "0.5694628", "0.56920993", "0.564...
0.0
-1
post: agrega el marcador al Tablero.
private void dibujarMarcador() { Text tituloMarcador = new Text("Marcador"); tituloMarcador.setFont(new Font(16)); Text tituloJuega = new Text("Juega"); tituloJuega.setFont(new Font(16)); cantidadFichasNegras = new Label(); cantidadFichasBlancas = new Label(); jugadorActual = new Label(); GridPane marcador = new GridPane(); marcador.setAlignment(Pos.TOP_CENTER); marcador.setHgap(20); marcador.setVgap(20); marcador.setPadding(new Insets(20)); marcador.add(tituloMarcador, 0, 0, 2, 1); marcador.add(new Label("Negras :"), 0, 1); marcador.add(cantidadFichasNegras, 1, 1); marcador.add(new Label("Blancas :"), 0, 2); marcador.add(cantidadFichasBlancas, 1, 2); marcador.add(tituloJuega, 0, 3, 2, 1); marcador.add(jugadorActual, 0, 4, 2, 1); panel.setPadding(new Insets(5)); panel.setRight(marcador); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tvoid postarComentario() {\n\n\t}", "private void cargarTabla() {\n\t\tObject[] fila = new Object[7];\r\n\t\tfila[1] = txtCedula.getText();\r\n\t\tfila[2] = txtFuncionario.getText();\r\n\t\tfila[3] = util.getDateToString(dcDesde.getDate());\r\n\t\tif (cbTipo.getSelectedIndex() == 1 || cbTipo.getSelec...
[ "0.65218467", "0.63209534", "0.6274995", "0.62596494", "0.6235897", "0.6059027", "0.60280204", "0.5995688", "0.5976936", "0.5970759", "0.5954624", "0.5941916", "0.58845234", "0.5877508", "0.58716387", "0.5857084", "0.5851058", "0.5847533", "0.58420837", "0.58274835", "0.58099...
0.0
-1
post: actualiza el Tablero a partir del estado del juego asociado.
public void dibujar() { grilla.getChildren().clear(); for (int fila = 1; fila <= juego.contarFilas(); fila++) { for (int columna = 1; columna <= juego.contarColumnas(); columna++) { dibujarFicha(fila, columna); dibujarBoton(fila, columna); } } dibujarEstado(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void Actualizar_Tabla() {\n String[] columNames = {\"iditem\", \"codigo\", \"descripcion\", \"p_vent\", \"p_comp\", \"cant\", \"fecha\"};\n dtPersona = db.Select_Item();\n // se colocan los datos en la tabla\n DefaultTableModel datos = new DefaultTableModel(dtPersona, columNames...
[ "0.64948535", "0.63378096", "0.6305407", "0.6145862", "0.6124837", "0.61169416", "0.6098009", "0.60031366", "0.5958584", "0.5942288", "0.5921733", "0.58825165", "0.58781534", "0.5876507", "0.5836185", "0.5835774", "0.5809874", "0.5784514", "0.57671875", "0.5765555", "0.575851...
0.0
-1
post: actualiza el estado del juego del en Tablero.
private void dibujarEstado() { cantidadFichasNegras.setText(String.valueOf(juego.contarFichasNegras())); cantidadFichasBlancas.setText(String.valueOf(juego.contarFichasBlancas())); jugadorActual.setText(juego.obtenerJugadorActual()); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void Actualizar_Tabla() {\n String[] columNames = {\"iditem\", \"codigo\", \"descripcion\", \"p_vent\", \"p_comp\", \"cant\", \"fecha\"};\n dtPersona = db.Select_Item();\n // se colocan los datos en la tabla\n DefaultTableModel datos = new DefaultTableModel(dtPersona, columNames...
[ "0.6334134", "0.6260433", "0.6176764", "0.6105067", "0.6090738", "0.60624623", "0.60224175", "0.5957576", "0.59539413", "0.5927916", "0.5900268", "0.5895037", "0.5876011", "0.5872016", "0.58582443", "0.58559996", "0.58291423", "0.5794378", "0.57798237", "0.577779", "0.5742603...
0.58595836
14
post: dibuja el boton en el casillero indicado por fila y columna, si es que se puede colocar una ficha.
private void dibujarBoton(int fila, int columna) { if (juego.puedeColocarFicha(fila, columna)) { Button botonColocarFicha = new Button(); botonColocarFicha.setMinSize(DIMENSION_BOTON, DIMENSION_BOTON); botonColocarFicha.setMaxSize(DIMENSION_BOTON, DIMENSION_BOTON); botonColocarFicha.setOnAction(new ColocarFicha(this, juego, fila, columna)); dibujar(botonColocarFicha, fila, columna); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void insercionMasiva() {\r\n\t\tif (!precondInsert())\r\n\t\t\treturn;\r\n\t\tUploadItem fileItem = seleccionUtilFormController.crearUploadItem(\r\n\t\t\t\tfName, uFile.length, cType, uFile);\r\n\t\ttry {\r\n\t\t\tlLineasArch = FileUtils.readLines(fileItem.getFile(), \"ISO-8859-1\");\r\n\t\t} catch (IOExcep...
[ "0.60133374", "0.5809797", "0.56123114", "0.5591156", "0.5584925", "0.5478245", "0.5466043", "0.53795594", "0.5308593", "0.5298152", "0.5241273", "0.5227019", "0.52243185", "0.52031094", "0.51985633", "0.5187994", "0.5183294", "0.51760685", "0.5171909", "0.51608485", "0.51353...
0.5888708
1
post: determina la pintura a utilizar para 'casillero'.
private Paint crearPintura(Casillero casillero) { Paint pintura; switch (casillero) { case BLANCAS: pintura = Color.WHITE; break; case NEGRAS: pintura = Color.BLACK; break; default: pintura = Color.TRANSPARENT; } return pintura; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void postularse() {\n\t\t\n\t\ttry {\t\t\t\n\n\t\t\tPostulante postulante= new Postulante();\n\t\t\tpostulante.setLegajo(Integer.valueOf(this.txtLegajo.getText()));\n\t\t\tpostulante.setFamiliaresACargo(Integer.valueOf(this.txtFamiliaresACargo.getText()));\n\t\t\tpostulante.setNombre(txtNombre.getText());\n...
[ "0.5724803", "0.54645264", "0.5416834", "0.53673786", "0.5327426", "0.5240729", "0.52044237", "0.5200745", "0.51705706", "0.51647264", "0.5131408", "0.5128667", "0.504204", "0.5038453", "0.50236726", "0.5023388", "0.50190246", "0.5016251", "0.50148207", "0.5002207", "0.498355...
0.48524395
33
For mobs, only used if it doesn't match player/misc/train/block
@PropertyParser("([a-z]+)collision") public CollisionOptions parseCollisionMobsType(PropertyParseContext<CollisionOptions> context) { return parseUpdateForMobs(context, context.nameGroup(1), parseModeOrReset(context)); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public MancalaModel() \n\t{\n\t\tplayerApits[] = new Pit[6];//going to switch to contain specific pits\n\t\tplayerBpits[] = new Pit[6];//\"\"\n\t\tcurrent = playerA;\n\t}", "@Test\n\tpublic void testDummyMole() {\n\t\tassertEquals(5, player.getHP());\n\t\tsabotageMole.update(sabotageMole.getMOLE_APPEARANCE_TIME(...
[ "0.59414554", "0.5769521", "0.5534914", "0.5467785", "0.53820646", "0.5350389", "0.5344276", "0.5334778", "0.5325279", "0.53251636", "0.5290863", "0.5251655", "0.52432543", "0.52383703", "0.5225598", "0.52194065", "0.5212171", "0.5206474", "0.5194766", "0.51947474", "0.519407...
0.0
-1
Get rid of legacy trainCollision property (legacy)
@Override public void writeToConfig(ConfigurationNode config, Optional<CollisionOptions> value) { config.remove("trainCollision"); if (value.isPresent()) { ConfigurationNode collisionConfig = config.getNode("collision"); CollisionOptions data = value.get(); for (CollisionMobCategory category : CollisionMobCategory.values()) { CollisionMode mode = data.mobMode(category); if (mode != null) { collisionConfig.set(category.getMobType(), mode); } else { collisionConfig.remove(category.getMobType()); } } collisionConfig.set("players", data.playerMode()); collisionConfig.set("misc", data.miscMode()); collisionConfig.set("train", data.trainMode()); collisionConfig.set("block", data.blockMode()); } else { config.remove("collision"); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "String getUseCollisionAvoidance();", "public void noCollision(){\r\n this.collidingEntity2=null;\r\n this.collidingEntity=null;\r\n collidedTop=false;\r\n collide=false;\r\n }", "String getCollisionAvoidanceFactor();", "public boolean isCollisionDisabled() { return mover.isColl...
[ "0.6334687", "0.6100494", "0.60414165", "0.60086966", "0.5815447", "0.57368374", "0.57014674", "0.5575141", "0.5549353", "0.5454275", "0.54496706", "0.5445961", "0.54444516", "0.5412941", "0.54113567", "0.53776336", "0.5369639", "0.5347445", "0.53385454", "0.5313485", "0.5299...
0.0
-1
TODO Autogenerated method stub
@Override public void actionPerformed(ActionEvent arg0) { Hashs_from_Files(); }
{ "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 protected void onPreExecute() { super.onPreExecute(); }
{ "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 protected void onPostExecute(Void result) { super.onPostExecute(result); setContentView(R.layout.activity_traffic_list); ListView listView_showTrafficState = (ListView)findViewById(R.id.listView_showTrafficState); TrafficStateAdapter adapter = new TrafficStateAdapter(mContext,trafficInfos); listView_showTrafficState.setAdapter(adapter); listView_showTrafficState.setOnItemClickListener(new OnItemClickListener() { @Override public void onItemClick(AdapterView<?> parent, View view, int position, long id) { // TODO Auto-generated method stub Intent intent = new Intent(mContext,AppTrafficDayActivity.class); intent.putExtra("packageName", trafficInfos.get(position).getBundleID()); mContext.startActivity(intent); } }); DBUtils.getInstance(mContext).insertTrafficInfo(trafficInfos); }
{ "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 void onItemClick(AdapterView<?> parent, View view, int position, long id) { Intent intent = new Intent(mContext,AppTrafficDayActivity.class); intent.putExtra("packageName", trafficInfos.get(position).getBundleID()); mContext.startActivity(intent); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExr...
[ "0.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
Inflate the menu; this adds items to the action bar if it is present.
@Override public boolean onCreateOptionsMenu(Menu menu) { getMenuInflater().inflate(R.menu.traffic_list, 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.7249201", "0.7204109", "0.7197405", "0.71792436", "0.7109801", "0.7041446", "0.7040234", "0.70145714", "0.7011273", "0.6983118", "0.6946729", "0.6940447", "0.6936383", "0.6920103", "0.6920103", "0.6893587", "0.6885479", "0.6877562", "0.6877041", "0.6864375", "0.6864375", ...
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(); 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.7905352", "0.780644", "0.77672553", "0.77281684", "0.76325333", "0.7622562", "0.7585143", "0.7531343", "0.7488614", "0.7458614", "0.7458614", "0.74394166", "0.74237", "0.7404307", "0.7392444", "0.7387612", "0.73802567", "0.737125", "0.73636335", "0.7356816", "0.73466146", ...
0.0
-1
TODO Autogenerated method stub
@Override protected void onDestroy() { super.onDestroy(); Log.e(TAG, "onDestroy"); }
{ "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 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() { jPanel2 = new javax.swing.JPanel(); jPanel1 = new javax.swing.JPanel(); jLabel1 = new javax.swing.JLabel(); dataHora = new javax.swing.JLabel(); jPanel3 = new javax.swing.JPanel(); jLabel3 = new javax.swing.JLabel(); numNota = new javax.swing.JTextField(); jLabelIBarra = new javax.swing.JLabel(); jButtonConfirmar = new javax.swing.JButton(); jLabelGraM = new javax.swing.JLabel(); jLabelControladoria = new javax.swing.JLabel(); jLabel2 = new javax.swing.JLabel(); setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE); setTitle("FernandesDeveloper VsGS2 Git"); setExtendedState(6); addWindowListener(new java.awt.event.WindowAdapter() { public void windowOpened(java.awt.event.WindowEvent evt) { formWindowOpened(evt); } }); jPanel2.setBackground(new java.awt.Color(255, 255, 255)); jPanel2.setForeground(new java.awt.Color(0, 0, 51)); jLabel1.setIcon(new javax.swing.ImageIcon(getClass().getResource("/img/moura-145Alfa.png"))); // NOI18N dataHora.setFont(new java.awt.Font("Dialog", 1, 20)); // NOI18N dataHora.setForeground(new java.awt.Color(0, 0, 51)); dataHora.setText("22/10/2020 14:00:00"); javax.swing.GroupLayout jPanel1Layout = new javax.swing.GroupLayout(jPanel1); jPanel1.setLayout(jPanel1Layout); jPanel1Layout.setHorizontalGroup( jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel1Layout.createSequentialGroup() .addGap(37, 37, 37) .addComponent(dataHora) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 970, Short.MAX_VALUE) .addComponent(jLabel1, javax.swing.GroupLayout.PREFERRED_SIZE, 165, javax.swing.GroupLayout.PREFERRED_SIZE) .addGap(55, 55, 55)) ); jPanel1Layout.setVerticalGroup( jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel1Layout.createSequentialGroup() .addContainerGap() .addComponent(jLabel1, javax.swing.GroupLayout.DEFAULT_SIZE, 68, Short.MAX_VALUE) .addContainerGap()) .addGroup(jPanel1Layout.createSequentialGroup() .addGap(26, 26, 26) .addComponent(dataHora) .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)) ); jPanel3.setBackground(new java.awt.Color(0, 0, 51)); jPanel3.setLayout(new org.netbeans.lib.awtextra.AbsoluteLayout()); jLabel3.setFont(new java.awt.Font("Dialog", 1, 36)); // NOI18N jLabel3.setForeground(new java.awt.Color(255, 255, 102)); jLabel3.setHorizontalAlignment(javax.swing.SwingConstants.CENTER); jLabel3.setText("SAÍDA DE NOTA FISCAL"); jPanel3.add(jLabel3, new org.netbeans.lib.awtextra.AbsoluteConstraints(0, 34, 890, 54)); numNota.setBackground(new java.awt.Color(255, 255, 153)); numNota.setFont(new java.awt.Font("Dialog", 1, 24)); // NOI18N numNota.setForeground(new java.awt.Color(0, 0, 102)); numNota.setBorder(new javax.swing.border.MatteBorder(null)); numNota.addKeyListener(new java.awt.event.KeyAdapter() { public void keyPressed(java.awt.event.KeyEvent evt) { numNotaKeyPressed(evt); } }); jPanel3.add(numNota, new org.netbeans.lib.awtextra.AbsoluteConstraints(136, 128, 660, 44)); jLabelIBarra.setIcon(new javax.swing.ImageIcon(getClass().getResource("/img/codBarra75.png"))); // NOI18N jPanel3.add(jLabelIBarra, new org.netbeans.lib.awtextra.AbsoluteConstraints(49, 114, -1, -1)); jButtonConfirmar.setBackground(new java.awt.Color(0, 51, 204)); jButtonConfirmar.setFont(new java.awt.Font("Dialog", 1, 14)); // NOI18N jButtonConfirmar.setForeground(new java.awt.Color(255, 255, 102)); jButtonConfirmar.setText("CONFIRMAR"); jButtonConfirmar.setCursor(new java.awt.Cursor(java.awt.Cursor.HAND_CURSOR)); jButtonConfirmar.setFocusCycleRoot(true); jButtonConfirmar.addMouseListener(new java.awt.event.MouseAdapter() { public void mouseEntered(java.awt.event.MouseEvent evt) { jButtonConfirmarMouseEntered(evt); } public void mouseExited(java.awt.event.MouseEvent evt) { jButtonConfirmarMouseExited(evt); } }); jButtonConfirmar.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { jButtonConfirmarActionPerformed(evt); } }); jPanel3.add(jButtonConfirmar, new org.netbeans.lib.awtextra.AbsoluteConstraints(310, 240, 270, 50)); jLabelGraM.setIcon(new javax.swing.ImageIcon(getClass().getResource("/img/MMMazul.png"))); // NOI18N jPanel3.add(jLabelGraM, new org.netbeans.lib.awtextra.AbsoluteConstraints(107, 0, -1, -1)); jLabelControladoria.setFont(new java.awt.Font("Dialog", 1, 18)); // NOI18N jLabelControladoria.setForeground(new java.awt.Color(0, 0, 51)); jLabelControladoria.setText("Controladoria 1248"); jLabel2.setIcon(new javax.swing.ImageIcon(getClass().getResource("/img/telefoneMoura30.png"))); // NOI18N javax.swing.GroupLayout jPanel2Layout = new javax.swing.GroupLayout(jPanel2); jPanel2.setLayout(jPanel2Layout); jPanel2Layout.setHorizontalGroup( jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(jPanel2Layout.createSequentialGroup() .addGap(240, 240, 240) .addComponent(jPanel3, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)) .addGroup(jPanel2Layout.createSequentialGroup() .addGap(40, 40, 40) .addComponent(jLabel2) .addGap(20, 20, 20) .addComponent(jLabelControladoria)) .addComponent(jPanel1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) ); jPanel2Layout.setVerticalGroup( jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(jPanel2Layout.createSequentialGroup() .addGap(30, 30, 30) .addComponent(jPanel3, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addGap(94, 94, 94) .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addComponent(jLabel2) .addComponent(jLabelControladoria)) .addGap(20, 20, 20) .addComponent(jPanel1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)) ); javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane()); getContentPane().setLayout(layout); layout.setHorizontalGroup( layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addComponent(jPanel2, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) ); layout.setVerticalGroup( layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addComponent(jPanel2, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) ); 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.73212945", "0.72917914", "0.72917914", "0.72917914", "0.7287366", "0.7249836", "0.721417", "0.72097963", "0.7196912", "0.71916485", "0.71853215", "0.71597755", "0.71489745", "0.70949036", "0.708269", "0.70589983", "0.698844", "0.69783324", "0.69561446", "0.6955426", "0.694...
0.0
-1
End of variables declaration//GENEND:variables
public JLabel getDataHora() { return dataHora; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void lavar() {\n\t\t// TODO Auto-generated method stub\n\t\t\n\t}", "public void mo38117a() {\n }", "@Override\r\n\tpublic void initVariables() {\n\t\t\r\n\t}", "private void kk12() {\n\n\t}", "private void assignment() {\n\n\t\t\t}", "public void gored() {\n\t\t\n\t}", "public void mo217...
[ "0.6360145", "0.6282893", "0.6186978", "0.6094459", "0.60944235", "0.60737914", "0.60544986", "0.60539776", "0.6004647", "0.5989471", "0.59729135", "0.5970356", "0.5968699", "0.5967672", "0.5963926", "0.5943424", "0.59112847", "0.5898038", "0.5893516", "0.588492", "0.5881512"...
0.0
-1
retirar os estados que alcancam testemunhas de falha
public Set<Pair<State, State>> getRefinementPairs() { Set<Pair<State, State>> result = new HashSet<Pair<State, State>>(); Iterator<SpoilerVertice> it = spoilerVertices.iterator(); SpoilerVertice vertice; Pair<State, State> pair; while(it.hasNext()) { vertice = it.next(); pair = new Pair<State, State>(vertice.getSpecificationState(), vertice.getModelState()); result.add(pair); } return result; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "long invalidations();", "boolean hasIsSuccess();", "boolean isFailure();", "private void checkExecutionStatus() {\r\n\t\tif (detenido) {\r\n\t\t\tthrow new RejectedExecutionException(\"el procesador está detenido. no puede aceptar más tareas\");\r\n\t\t}\r\n\t}", "public boolean hasFailed(){\n\t\treturn fa...
[ "0.61047226", "0.5856833", "0.5842129", "0.5831233", "0.56855047", "0.5681996", "0.566993", "0.5628823", "0.5601929", "0.55927205", "0.5561152", "0.5546616", "0.5516402", "0.550559", "0.5494776", "0.5485333", "0.54728574", "0.54643255", "0.54639524", "0.54552853", "0.5418664"...
0.0
-1
String lastTime = getLastUpdateMessageTime();
public void queryServer() { final String lastTime = "2020-11-17 00:00:00"; final OkHttpClient client = HttpHelper.getOkHttpClient(); final RequestBody requestBody = new FormBody.Builder() .add(Config.STR_TIME, lastTime) .build(); final Request request = new okhttp3.Request.Builder() .post(requestBody) .url(Config.URL_TALK_QUERY) .build(); client.newCall(request).enqueue(new Callback() { @Override public void onFailure(@NonNull Call call, @NonNull IOException e) { uniApiResult.postValue(new UniApiResult.Fail(Config.ERROR_NET, Arrays.toString(e.getStackTrace()))); Log.e("Contacts", Config.ERROR_NET); } @Override public void onResponse(@NonNull Call call, @NonNull Response response) throws IOException { if( !response.isSuccessful() ) { uniApiResult.postValue(new UniApiResult.Fail(Config.ERROR_NET, String.valueOf(response.code()))); return; } assert response.body() != null; String resJson = response.body().string(); try { JSONObject jsonO = new JSONObject(resJson); uniApiResult.postValue(new UniApiResult<>(jsonO.getString(Config.STR_STATUS), "")); JSONArray jsonA = (JSONArray) jsonO.get(Config.STR_STATUS_DATA); // List<TMessage> newTMessages = new ArrayList<>(); for (int i = 0; i < jsonA.length(); ++i) { TMessage message = TMessage.jsonToTMessage((JSONObject) jsonA.get(i)); if (!tMessageDao.isMessageExist(message.getAccount1(), message.getAccount2(),message.getSendTime())) { tMessageDao.InsertMessage(message); // newTMessages.add(message); } } // TMessageList.postValue(newTMessages); ThreadPoolHelper.getInstance().execute(TalkViewModel.this::queryLocalMessageList); //new Thread(TalkViewModel.this::queryLocalMessageList).start(); } catch (JSONException e) { e.printStackTrace(); uniApiResult.postValue(new UniApiResult.Fail(Config.ERROR_UNKNOWN, Arrays.toString(e.getStackTrace()))); } } }); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "long getLastUpdatedTime();", "public String getLastUpdate() {\n return lastUpdate;\n }", "public String getLastUpdateString() {\r\n return getLastUpdateString(lastUpdatedTime);\r\n }", "public String getLastUpdatedString() {\n return lastUpdated.toString();\n }", "public Strin...
[ "0.80585015", "0.78583926", "0.7758627", "0.7577642", "0.75517875", "0.7539034", "0.7534529", "0.75077087", "0.7461915", "0.743474", "0.74279976", "0.73945767", "0.7345131", "0.7326772", "0.73117065", "0.7304222", "0.7304222", "0.73000777", "0.7286815", "0.7277373", "0.724197...
0.0
-1
Construct a new Image object.
protected Image(int instance, String context) { super(instance, context); addObjectTable(fieldTable, null); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "Image createImage();", "public Image() {\n }", "public Image() {\n \n }", "@Nonnull\n private BufferedImage createImage() {\n return new BufferedImage(getWidth(), getHeight(), getImageType().getType());\n }", "public Image createImage() {\n if (source == null) {\n source = new Mem...
[ "0.7587165", "0.740447", "0.7375481", "0.72569644", "0.71553254", "0.69646263", "0.6922173", "0.682257", "0.68185025", "0.6764019", "0.6759654", "0.6759654", "0.6737108", "0.6725917", "0.66782415", "0.6648844", "0.6574174", "0.65548706", "0.6545067", "0.6539776", "0.64960593"...
0.5572856
90
Created by slavik on 18.07.15.
public interface AdvertVerificationTokenRepository extends PagingAndSortingRepository<AdvertVerificationToken, String> { AdvertVerificationToken findByToken(String token); AdvertVerificationToken findByAdvert(Advert advert); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void perish() {\n \n }", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "private stendhal() {\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\n...
[ "0.5876575", "0.576782", "0.57099164", "0.56570506", "0.55944705", "0.55944705", "0.55551094", "0.55464077", "0.5543025", "0.5542777", "0.55400753", "0.5529688", "0.55190486", "0.55170923", "0.5507307", "0.55065334", "0.55057603", "0.55053574", "0.5486264", "0.5467943", "0.54...
0.0
-1
Rule on the state of Cache Container Health cachecontainer
protected Alert clusterContainerHealthAlertRule(String threshold, String monitoredData) { if (threshold != null && monitoredData != null) { if (!monitoredData.equals(threshold)) { System.out.println("***** RULE [clusterContainerHealthAlertRule] fired threshold [" + threshold + "] monitoredData[" + monitoredData + "]*****"); String monitorKey = MonitorKey.clusterHealth.name(); String healthAlertMsg = "CacheContainer Cluster Health [" + monitoredData + "] != Threshold [" + threshold + "]"; return new Alert(monitorKey, healthAlertMsg, AlertLevel.ERROR, MonitorType.CACHE_CONTAINER, monitorTimestamp, MonitorKey.clusterHealth.name()); } } return null; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "List<CacheHealth> getCacheHealth();", "public int getStatus() {\n return alive ? CacheConstants.STATUS_ALIVE : CacheConstants.STATUS_DISPOSED;\n }", "@Override\n protected void executeRuntimeStep(OperationContext context, ModelNode operation) throws OperationFailedException {\n final PathAd...
[ "0.63480234", "0.61754733", "0.59227353", "0.5857367", "0.5653107", "0.5574856", "0.55685574", "0.5526884", "0.5505597", "0.5368706", "0.5364666", "0.5319968", "0.5302799", "0.5297979", "0.527496", "0.52712935", "0.5191721", "0.51419556", "0.5139758", "0.5117291", "0.51076174...
0.0
-1
Rule on the number of JDG Nodes recorded in a cluster for a given cachecontainer
protected Alert minCacheContainerClusterSizeAlertRule(Integer threshold, Integer monitoredData) { if (threshold != null && monitoredData != null) { if (monitoredData < threshold) { System.out.println("***** RULE [minCacheContainerClusterSizeAlertRule] fired threshold [" + threshold + "] monitoredData[" + monitoredData + "]*****"); String monitorKey = MonitorKey.numberOfNodes.name(); String healthAlertMsg = "CacheContainer Cluster Size [" + monitoredData + "] < Threshold [" + threshold + "]"; return new Alert(monitorKey, healthAlertMsg, AlertLevel.ERROR, MonitorType.CACHE_CONTAINER, monitorTimestamp, MonitorKey.clustersize.name()); } } return null; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "int getNodesCount();", "int getNodesCount();", "public int totalNumNodes () { throw new RuntimeException(); }", "int getNodeCount();", "int getNodeCount();", "int totalNumberOfNodes();", "public int getNumberOfNodesEvaluated();", "private int numNodes()\r\n\t{\r\n\t return nodeMap.size();\r\n\t}"...
[ "0.65502065", "0.65502065", "0.6457487", "0.64065", "0.64065", "0.63569885", "0.63533247", "0.6213624", "0.61765033", "0.61343247", "0.5966408", "0.594183", "0.58572316", "0.58204836", "0.5798381", "0.5768781", "0.5755713", "0.57547057", "0.5754135", "0.5734859", "0.5734031",...
0.0
-1
Rule on free Hot Rod Threads in the Hot Rod Server. Checking if free threads are less than threshold
protected Alert minFreeHotRodThreadsAlertRule(Integer threshold, Integer monitoredData) { if (threshold != null && monitoredData != null) { if (monitoredData < threshold) { System.out.println("***** RULE [minFreeHotRodThreadsAlertRule] fired threshold [" + threshold + "] monitoredData[" + monitoredData + "]*****"); String monitorKey = MonitorKey.freehotrodtreads.name(); String healthAlertMsg = "Hot Rod Available Threads [" + monitoredData + "] < Threshold [" + threshold + "]"; return new Alert(monitorKey, healthAlertMsg, AlertLevel.WARNING, MonitorType.HOTROD_TRANSPORT, monitorTimestamp, MonitorKey.freehotrodtreads.name()); } } return null; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private static boolean hasCapacityForMultiEvaluation() {\n // return true;\n int threshold = 3;\n int available = Runtime.getRuntime().availableProcessors() * ServerRunner.getProcessorMultiplier();\n return available >= threshold;\n }", "private boolean hasCapacity() {\n ...
[ "0.68403155", "0.64443207", "0.6315974", "0.59885764", "0.59849286", "0.5885975", "0.58837205", "0.58572763", "0.5841127", "0.5810482", "0.5789277", "0.57874167", "0.5713466", "0.57045794", "0.56851965", "0.56665796", "0.5656237", "0.56561416", "0.5625363", "0.560533", "0.559...
0.6234386
3
Rule on percentage of free memory in the Node
protected Alert minPercentNodeFreeMemAlertRule(Long threshold, Long monitoredData) { if (threshold != null && monitoredData != null) { if (monitoredData < threshold) { System.out.println("***** RULE [minPercentNodeFreeMemAlertRule] fired threshold [" + threshold + "] monitoredData[" + monitoredData + "]*****"); String monitorKey = MonitorKey.freeMemoryPercent.name(); String healthAlertMsg = "Node Free Memory Percentage [" + monitoredData + "] < Threshold [" + threshold + "]"; return new Alert(monitorKey, healthAlertMsg, AlertLevel.CRITICAL, MonitorType.JDG_NODE, monitorTimestamp, MonitorKey.freeMemoryPercent.name()); } } return null; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "int getTotalFree();", "BigDecimal getCacheSpaceAvailable();", "int memSize() {\n // treat Code as free\n return BASE_NODE_SIZE + 3 * 4;\n }", "long memoryUnused();", "long memoryUsed();", "long getTotalFreeSpaceInBytes();", "long getTotalFreeSpaceInBytes();", "private long getMemoryF...
[ "0.7002054", "0.70010006", "0.69372976", "0.68204165", "0.676672", "0.6701614", "0.6701614", "0.65334505", "0.6435275", "0.64039034", "0.6385433", "0.6373895", "0.6348913", "0.63417065", "0.63280267", "0.6321497", "0.63188237", "0.62739444", "0.6237327", "0.6219093", "0.62107...
0.56142694
96
Rule on averageReadTime, in Milliseconds, to Cache
protected Alert readCacheLatencyMillisAlertRule(Long threshold, Long monitoredData, String cacheName) { if (threshold != null && monitoredData != null) { if (monitoredData > threshold) { System.out.println("***** RULE [readCacheLatencyMillisAlertRule] fired threshold [" + threshold + "] monitoredData[" + monitoredData + "]*****"); String monitorKey = cacheName; String healthAlertMsg = "Read Cache Latency [" + monitoredData + "] > Threshold [" + threshold + "]"; return new Alert(monitorKey, healthAlertMsg, AlertLevel.CRITICAL, MonitorType.CACHE, monitorTimestamp, MonitorKey.averageReadTime.name()); } } return null; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private double getReadTime(int wordCount) {\n return wordCount / 130.0;\n }", "public long lastReadThroughput()\r\n/* 189: */ {\r\n/* 190:370 */ return this.lastReadThroughput;\r\n/* 191: */ }", "long getCacheHits();", "public Long get_cachehitsrate() throws Exception {\n\t\treturn th...
[ "0.61849326", "0.58851165", "0.5834167", "0.58021533", "0.5747387", "0.56616306", "0.5627726", "0.55825865", "0.5539465", "0.5537129", "0.55047596", "0.5491487", "0.54661494", "0.54413176", "0.5441312", "0.54401344", "0.5430579", "0.5415751", "0.5382517", "0.5361508", "0.5357...
0.5135658
40
Rule on averageReadTime, in Milliseconds, from Cache
protected Alert writeCacheLatencyMillisAlertRule(Long threshold, Long monitoredData, String cacheName) { if (threshold != null && monitoredData != null) { if (monitoredData > threshold) { System.out.println("***** RULE [writeCacheLatencyMillisAlertRule] fired threshold [" + threshold + "] monitoredData[" + monitoredData + "]*****"); String monitorKey = cacheName; String healthAlertMsg = "Write Cache Latency [" + monitoredData + "] > Threshold [" + threshold + "]"; return new Alert(monitorKey, healthAlertMsg, AlertLevel.CRITICAL, MonitorType.CACHE, monitorTimestamp, MonitorKey.averageWriteTime.name()); } } return null; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private double getReadTime(int wordCount) {\n return wordCount / 130.0;\n }", "public long lastReadThroughput()\r\n/* 189: */ {\r\n/* 190:370 */ return this.lastReadThroughput;\r\n/* 191: */ }", "@DISPID(71)\r\n\t// = 0x47. The runtime will prefer the VTID if present\r\n\t@VTID(69)\r\n\...
[ "0.66043234", "0.6124313", "0.6064866", "0.5998803", "0.58368254", "0.58192474", "0.5672093", "0.5640087", "0.56344634", "0.5623345", "0.56156987", "0.5606226", "0.55663383", "0.55357313", "0.5506346", "0.54964656", "0.54801166", "0.54725796", "0.54593366", "0.5453144", "0.54...
0.0
-1