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
supradefinirea metodei => nu modificam nimic in headerul metodei
@Override public double getBalanta() { return this.balanta; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected void updateHeader() {\n\t}", "protected void addDynamicHeaders() {\n }", "@Override\r\n\tpublic void loadHeader() {\n\r\n\t}", "void setHeaderInfo(float rFree, float rWork, float resolution, String title, String depositionDate, \n\t\t\tString releaseDate, String[] experimnetalMethods);", "publ...
[ "0.63726825", "0.6317379", "0.6008002", "0.5991521", "0.59597665", "0.59587497", "0.5913643", "0.5908195", "0.58921766", "0.58854365", "0.5874085", "0.5864315", "0.5831058", "0.5790889", "0.57766145", "0.57690364", "0.5719639", "0.5709672", "0.5699293", "0.5675956", "0.564443...
0.0
-1
Weapons interface to allow for specific types to be implemented
public interface Attacks { // gives a character object ability (behavior) to attack with a weapon // and deal damage to opponent's health String attack(); int attackDamage(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public interface WeaponBehavior {\n\n int useWeapon(int strong);\n\n int getDamageValue(int strong);\n}", "public interface Weapon {\n\n /**\n * method which is used when one war participant attacks other\n *\n * @param target target war participant\n * @param attacker attacker war parti...
[ "0.7711289", "0.730172", "0.7295247", "0.7111931", "0.70127803", "0.6890374", "0.67122984", "0.6672473", "0.6616601", "0.6500406", "0.64750046", "0.6467194", "0.64251333", "0.64054984", "0.6374012", "0.63171285", "0.6310045", "0.6307079", "0.6302819", "0.6266454", "0.62251204...
0.64228755
13
gives a character object ability (behavior) to attack with a weapon and deal damage to opponent's health
String attack();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void weaponAbility() {\n \tlogger.info(\"weapon abilities aren't implemented yet. Using slash ability\");\n \t//ability(map.getCurrentTurnHero().getWeaponAbility());\n \tability(new Slash());\n }", "public interface Attacks {\n // gives a character object ability (behavior) to attack with a...
[ "0.74338514", "0.72998875", "0.7278341", "0.71316814", "0.6772401", "0.6699582", "0.6644259", "0.6639236", "0.6504216", "0.64458996", "0.6438748", "0.6437784", "0.6431134", "0.642639", "0.63990206", "0.6382596", "0.637299", "0.6371201", "0.63463783", "0.6314667", "0.6306062",...
0.0
-1
maintain an unchanging reference to node ahead of the return node.
public static ListNode mergeTwoLists2(ListNode l1, ListNode l2) { ListNode prehead = new ListNode(-1); ListNode prev = prehead; while (l1 != null && l2 != null) { if (l1.val <= l2.val) { prev.next = l1; l1 = l1.next; } else { prev.next = l2; l2 = l2.next; } prev = prev.next; } // exactly one of l1 and l2 can be non-null at this point, so connect // the non-null list to the end of the merged list. prev.next = l1 == null ? l2 : l1; return prehead.next; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void clearPreviouslyVisitedAfterReturnish(Visitable returnish) {\n\t\tSet<IdentifiableElement> retain = new HashSet<>();\n\t\tSet<IdentifiableElement> visitedNamed = dequeOfVisitedNamed.peek();\n\t\treturnish.accept(new Visitor() {\n\n\t\t\tint level = 0;\n\n\t\t\tVisitable entranceLevel1;\n\n\t\t\t@Overri...
[ "0.57456046", "0.56760585", "0.56237185", "0.55525917", "0.5513323", "0.55086327", "0.54967034", "0.5469527", "0.54593074", "0.54454803", "0.5428832", "0.5416175", "0.5413634", "0.5413573", "0.53785866", "0.53636867", "0.53598577", "0.53464144", "0.5343342", "0.53381383", "0....
0.0
-1
setter method for the errorLoader.
public final void setErrorLoader(final ErrorLoader errorLoader) { this.errorLoader = errorLoader; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void setError();", "public void setError(File error) {\r\n this.error = error;\r\n incompatibleWithSpawn = true;\r\n }", "void setError(@Nullable Exception error) {\n this.error = error;\n }", "@Override\n\t\tpublic void loadError() {\n\t\t}", "public void setError(int value) {\n...
[ "0.69772583", "0.6860024", "0.65743273", "0.6497501", "0.6489895", "0.6394355", "0.6383793", "0.6347639", "0.6226193", "0.62044513", "0.618115", "0.6166199", "0.6155451", "0.6151677", "0.61374265", "0.6108175", "0.6105996", "0.6082256", "0.6068731", "0.6067107", "0.6041681", ...
0.82008743
0
searches the products based on query parameters for the given criteria.
@Override public final Search searchProducts( final Map<String, List<String>> searchCriteria, final String correlationId) throws BaseException, ServiceException, AdapterException { final long startTime = LOGGER.logMethodEntry(correlationId); LOGGER.info("Request uri map is " + searchCriteria, correlationId); Search searchList = null; if (searchCriteria.containsKey(RequestAttributeConstant.ATTR)) { final String inputParameter = StringUtils .collectionToCommaDelimitedString(searchCriteria .get(RequestAttributeConstant.ATTR)); final String[] pipeSeparated = inputParameter.split("\\|"); for (final String pipeSeparatedString : pipeSeparated) { if (pipeSeparatedString .contains(RequestAttributeConstant.PRICE)) { this.buildPriceRange(searchCriteria, pipeSeparatedString, correlationId); } } } // Added this condition to remove dim attribute if its value is false if (searchCriteria.containsKey(RequestAttributeConstant.DIM)) { final List<String> dimvalue = searchCriteria .get(RequestAttributeConstant.DIM); if (dimvalue.get(0).equalsIgnoreCase(CommonConstants.FALSE_VALUE)) { searchCriteria.remove(RequestAttributeConstant.DIM); } } final Map<String, String> requestMapURI = this.requestParser .processRequestAttribute(searchCriteria, correlationId); List<Map<String, String>> resultMap = null; final EndecaAdapter endecaAdapter = (EndecaAdapter) this.adapterManager .getAdapter(); requestMapURI.put(EndecaConstants.REFINEMENTS_REQUIRED, CommonConstants.TRUE_VALUE); //OPTIONS Parameter to be added in future final Map<String, List<String>> optionNodes = null; resultMap = endecaAdapter.service(requestMapURI, optionNodes, correlationId); this.generateSearchReport(requestMapURI, resultMap); LOGGER.debug("ResultMap " + resultMap, correlationId); if ((resultMap != null) && (!resultMap.isEmpty())) { searchList = this.searchMapper.convertToSearchPojo(resultMap, correlationId); LOGGER.info("The search list : " + searchList.getSearchReport().getTotalProducts(), correlationId); } LOGGER.logMethodExit(startTime, correlationId); return searchList; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tpublic List<ttu.rakarh1.backend.model.data.Product> searchProducts(\n\t\t\tfinal ProductSearchCriteria ProductSearchCriteria, final HttpServletRequest request)\n\t{\n\t\tList<ttu.rakarh1.backend.model.data.Product> ProductList = null;\n\t\ttry\n\t\t{\n\t\t\tProduct Product;\n\t\t\tProductList = new Ar...
[ "0.7555883", "0.74527353", "0.7226163", "0.6903928", "0.67326266", "0.67190266", "0.66514593", "0.6649681", "0.65812784", "0.6558073", "0.6522826", "0.6372444", "0.63489836", "0.6296901", "0.61764026", "0.61549765", "0.6154209", "0.61345917", "0.60914004", "0.6083414", "0.604...
0.6745379
4
The method to populate the search report map with values obtained from the request and the response.
private void generateSearchReport(final Map<String, String> request, final List<Map<String, String>> resultMap) { Map<String, String> reportMap = null; for (final Map<String, String> map : resultMap) { if (map.containsKey(CommonConstants.TOTAL_PRODUCTS)) { reportMap = this.getReportMap(request); final StringBuilder attributes = new StringBuilder(); if (request.containsKey(RequestAttributeConstant.COLOR)) { attributes.append(CommonConstants.COLOR); attributes.append(CommonConstants.FIELD_PAIR_SEPARATOR); attributes.append(request .get(RequestAttributeConstant.COLOR)); attributes.append(CommonConstants.PIPE_SEPERATOR); } if (request.containsKey(RequestAttributeConstant.SIZE)) { attributes.append(CommonConstants.SIZE); attributes.append(CommonConstants.FIELD_PAIR_SEPARATOR); attributes.append(request .get(RequestAttributeConstant.SIZE)); attributes.append(CommonConstants.PIPE_SEPERATOR); } if (request.containsKey(RequestAttributeConstant.BRAND)) { attributes.append(CommonConstants.BRAND); attributes.append(CommonConstants.FIELD_PAIR_SEPARATOR); attributes.append(request .get(RequestAttributeConstant.BRAND)); attributes.append(CommonConstants.PIPE_SEPERATOR); } this.requestAttributePrice(request, attributes); if (attributes.length() != 0) { reportMap.put(DomainConstants.ATTRIBUTES, attributes .toString().substring(0, attributes.length() - 1)); } String sortFields = ""; if (request.containsKey(RequestAttributeConstant.SORT)) { sortFields = request.get(RequestAttributeConstant.SORT); } if (!"".equals(sortFields)) { reportMap.put(DomainConstants.SORT_FIELDS, sortFields .replace(CommonConstants.EMPTY_VALUE, CommonConstants.COMMA_SEPERATOR)); } map.putAll(reportMap); break; } } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private Map<String, String> getReportMap(final Map<String, String> request) {\r\n\t\tMap<String, String> reportMap;\r\n\t\treportMap = new LinkedHashMap<String, String>();\r\n\t\treportMap.put(CommonConstants.KEYWORD,\r\n\t\t\t\trequest.get(RequestAttributeConstant.QUERY_SEARCH));\r\n\t\treportMap.put(DomainConsta...
[ "0.72141033", "0.63202983", "0.6081917", "0.5971574", "0.5816054", "0.5768015", "0.56898564", "0.55173165", "0.54518926", "0.5450324", "0.5427067", "0.540273", "0.53985906", "0.5346256", "0.532935", "0.53226817", "0.5273369", "0.5243411", "0.52239466", "0.52187246", "0.520271...
0.712644
1
Method extracted to avoid checkstyle issue.
private Map<String, String> getReportMap(final Map<String, String> request) { Map<String, String> reportMap; reportMap = new LinkedHashMap<String, String>(); reportMap.put(CommonConstants.KEYWORD, request.get(RequestAttributeConstant.QUERY_SEARCH)); reportMap.put(DomainConstants.REFINEMENT_ID, request.get(RequestAttributeConstant.REFINEMENT_ID)); reportMap.put(DomainConstants.LIMIT, request.get(RequestAttributeConstant.LIMIT)); reportMap.put(DomainConstants.OFFSET, request.get(RequestAttributeConstant.OFFSET)); return reportMap; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private PrngFixes() {\n }", "private stendhal() {\n\t}", "private void someUtilityMethod() {\n }", "private void someUtilityMethod() {\n }", "public void smell() {\n\t\t\n\t}", "@Override\n\tpublic void check() {\n\t\t\n\t}", "@Override\n\tpublic void check() {\n\t\t\n\t}", "prot...
[ "0.6027728", "0.5966059", "0.5901656", "0.5901656", "0.58614933", "0.57672286", "0.57672286", "0.5723927", "0.5716693", "0.5679723", "0.5679723", "0.56663", "0.56655717", "0.5653903", "0.5648504", "0.5620337", "0.5620337", "0.56190974", "0.5606104", "0.5600259", "0.5600108", ...
0.0
-1
The method will build the query for price range.
private void buildPriceRange( final Map<String, List<String>> searchCriteria, final String pipeSeparatedString, final String correlationId) throws BaseException { final String[] commaSeparated = pipeSeparatedString .split(CommonConstants.FIELD_PAIR_SEPARATOR); final String[] priceData = commaSeparated[1] .split(CommonConstants.COMMA_SEPERATOR); final Map<String, String> errorPropertiesMap = this.errorLoader .getErrorPropertiesMap(); if (priceData.length == 2) { try { Double.parseDouble(priceData[0]); Double.parseDouble(priceData[1]); } catch (final NumberFormatException e) { LOGGER.error(e, correlationId); throw new BaseException( String.valueOf(ErrorConstants.ERROR_CODE_11422), errorPropertiesMap.get(String .valueOf(ErrorConstants.ERROR_CODE_11422)), RequestAttributeConstant.PRICE, priceData[0] + CommonConstants.COMMA_SEPERATOR + priceData[1], ErrorConstants.HTTP_STATUS_CODE_INVALID_URL_PARAMETERS, correlationId); } final String priceRange = commaSeparated[0] + CommonConstants.FIELD_PAIR_SEPARATOR + EndecaConstants.FILTER_PRICE + EndecaConstants.BETWEEN + CommonConstants.EMPTY_VALUE + priceData[0] + CommonConstants.EMPTY_VALUE + priceData[1]; final List<String> attrList = new ArrayList<String>(); final String data = searchCriteria .get(RequestAttributeConstant.ATTR) .get(0) .replace(commaSeparated[0] + ":" + commaSeparated[1], priceRange); attrList.add(data); searchCriteria.remove(RequestAttributeConstant.ATTR); searchCriteria.put(RequestAttributeConstant.ATTR, attrList); // Filtering based on price should be range based and if not // it will be a validation error } else { throw new BaseException( String.valueOf(ErrorConstants.ERROR_CODE_11422), errorPropertiesMap.get(String .valueOf(ErrorConstants.ERROR_CODE_11422)), RequestAttributeConstant.ATTR, pipeSeparatedString, ErrorConstants.HTTP_STATUS_CODE_INVALID_URL_PARAMETERS, correlationId); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public GiftCardProductQuery priceRange(PriceRangeQueryDefinition queryDef) {\n startField(\"price_range\");\n\n _queryBuilder.append('{');\n queryDef.define(new PriceRangeQuery(_queryBuilder));\n _queryBuilder.append('}');\n\n return this;\n }", "@Override\r\n\tpublic List<P...
[ "0.7243145", "0.65517706", "0.6298254", "0.62950504", "0.6262226", "0.6242966", "0.62069273", "0.6179056", "0.6078456", "0.60107", "0.59545714", "0.5953458", "0.58958435", "0.58956456", "0.5863754", "0.58158636", "0.5792359", "0.56939656", "0.56789744", "0.56362456", "0.56161...
0.6238894
6
Method to form the query for price.
private void requestAttributePrice(final Map<String, String> request, final StringBuilder attributes) { if (request.containsKey(RequestAttributeConstant.PRICE)) { if (request.get(RequestAttributeConstant.PRICE).contains( EndecaConstants.FILTER_PRICE)) { final String requestPriceValue = request.get( RequestAttributeConstant.PRICE).replace( EndecaConstants.FILTER_PRICE + EndecaConstants.BETWEEN + CommonConstants.EMPTY_VALUE, CommonConstants.EMPTY_STRING); attributes.append(CommonConstants.PRICE); attributes.append(CommonConstants.FIELD_PAIR_SEPARATOR); attributes.append(requestPriceValue.replace( CommonConstants.EMPTY_VALUE, CommonConstants.COMMA_SEPERATOR)); attributes.append(CommonConstants.PIPE_SEPERATOR); } else { attributes.append(CommonConstants.PRICE); attributes.append(CommonConstants.FIELD_PAIR_SEPARATOR); attributes.append(request.get(RequestAttributeConstant.PRICE)); attributes.append(CommonConstants.PIPE_SEPERATOR); } } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic List<Price> queryPriceBei(Date start,Date end) {\n\t\tList<Price> list = homePageDao.queryPriceBei(start,end);\r\n\t\treturn list;\r\n\t}", "public List<FieldQuery> getQuery() {\n List<FieldQuery> query = new ArrayList<>();\n query.add(new FieldQuery(\"openPrice\", 1 , 47.25, ...
[ "0.66240895", "0.64042616", "0.63608676", "0.6298625", "0.6298625", "0.6298625", "0.6290363", "0.6258198", "0.622663", "0.61951953", "0.6164281", "0.6111283", "0.60870105", "0.6063066", "0.60585964", "0.6008232", "0.5984664", "0.5974758", "0.5956874", "0.59450096", "0.5896662...
0.0
-1
TODO Autogenerated method stub
public static void main(String[] args) { HelloAiming app = new HelloAiming(); app.setConfigShowMode(ConfigShowMode.AlwaysShow); app.start(); }
{ "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
Getter of running time converted to string.
public String getRunningTimeStr() { if (this.runningTime == null) return null; else return CommonRunService.getTimeStr(this.runningTime); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected String elapsedTimeAsString(long runTime) {\n return NumberFormat.getInstance().format((double) runTime / 1000);\n }", "public static String getTimeString() {\n\t\treturn getTimeString(time);\n\t}", "public String elapsedTime() {\n return totalWatch.toString();\n }", "public String get...
[ "0.7197917", "0.6982172", "0.6776558", "0.6728207", "0.6725784", "0.6702648", "0.66802394", "0.6643894", "0.66145813", "0.6570381", "0.6534496", "0.6437182", "0.64305073", "0.6383188", "0.63721836", "0.63710874", "0.63610196", "0.63332003", "0.6323897", "0.6294948", "0.627950...
0.7968854
0
Getter of running time in days for interface implementation.
@Override public Long getRunningTimeInDays() { return null; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@DISPID(52)\r\n\t// = 0x34. The runtime will prefer the VTID if present\r\n\t@VTID(50)\r\n\tint actualCPUTime_Days();", "@DISPID(57)\r\n\t// = 0x39. The runtime will prefer the VTID if present\r\n\t@VTID(55)\r\n\tint actualRunTime_Days();", "@Override\n\tpublic RunTime runTime()\n\t{\n\t\tCalendar now = Calend...
[ "0.72842544", "0.7076185", "0.66881263", "0.64991176", "0.64646053", "0.6458402", "0.64530694", "0.64272666", "0.64220077", "0.6387728", "0.63762367", "0.63624364", "0.6333253", "0.63246465", "0.63167423", "0.6290983", "0.62699485", "0.6265632", "0.6218229", "0.6200349", "0.6...
0.7097484
1
Getter of running time in days for interface implementation.
@Override public Long getRunningTimeInHours() { return null; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@DISPID(52)\r\n\t// = 0x34. The runtime will prefer the VTID if present\r\n\t@VTID(50)\r\n\tint actualCPUTime_Days();", "@Override\n public Long getRunningTimeInDays() {\n return null;\n }", "@DISPID(57)\r\n\t// = 0x39. The runtime will prefer the VTID if present\r\n\t@VTID(55)\r\n\tint actualRunT...
[ "0.72842544", "0.7097484", "0.7076185", "0.66881263", "0.64991176", "0.64646053", "0.6458402", "0.64530694", "0.64272666", "0.6387728", "0.63762367", "0.63624364", "0.6333253", "0.63246465", "0.63167423", "0.6290983", "0.62699485", "0.6265632", "0.6218229", "0.6200349", "0.61...
0.64220077
9
CHECK IF THERE ARE ENOUGH NODES
@Override public void run() { Send enoughPeers = new Send(Send.ENOUGH_NODES, replicationDegree); Send ret = enoughPeers.writeAndRead(enoughPeers, p, Peer.PROTOCOL, p.centralizedChordManagerAddress, p.centralizedChordManagerPort); // CHECK IF THERE ARE ENOUGH NODES if (ret.enough) { MessageDigest md3 = null; try { md3 = MessageDigest.getInstance("SHA1"); } catch (NoSuchAlgorithmException e2) { e2.printStackTrace(); } md3.reset(); md3.update(path.getBytes()); byte[] hashBytes3 = md3.digest(); BigInteger hashNum3 = new BigInteger(1, hashBytes3); int key3 = Math.abs(hashNum3.intValue()) % Peer.numDHT; System.out.println("Generated key " + key3 + " for file: " + path); FileModel file = new FileModel(path, replicationDegree, p.me); file.loadFileContent(); p.initiatorPeerFiles.add(file); if (file.fileData.length != 0) { Peer destination = null; try { destination = ChordManager.find_successor(key3); // if dest is myself then i increase the retries by 1 because I'm sending the // file to myself first if (destination.getSslEnginePort() == p.getSslEnginePort()) { file.retries += 1; } } catch (Exception e1) { e1.printStackTrace(); } SendFileThread thread = new SendFileThread(p.initiatorPeerFiles.get(p.initiatorPeerFiles.indexOf(file)), p, destination); thread.start(); try { thread.join(); } catch (InterruptedException e) { e.printStackTrace(); } if (!file.replicationDegreeAchieved()) System.out.println("File " + path + " was backed up with lower repDegree: " + file.perceivedReplicationDegree + " of: " + file.perceivedReplicationDegree); else { System.out.println("File " + path + " was backed up with repDegree wanted"); } } else { System.err.println("File " + path + " was not backed up"); } } else { System.err.println("File " + path + " was not backed up replication degree of : " + replicationDegree + " could not be achived due to less number of peers available"); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public boolean checkNaturals() {\n return getSize() == 2 && handValue() == 21;\n }", "public boolean isWin_DragonKingOfArms(){\r\n // player got LordSelachii card\r\n /*Player playerHoldCard = null;\r\n for (Player player : discWorld.getPlayer_HASH().values()) {\r\n if (...
[ "0.6049024", "0.59925425", "0.58696985", "0.58630526", "0.58604", "0.5803735", "0.580036", "0.5776827", "0.5775343", "0.5775343", "0.57722807", "0.5748685", "0.5745139", "0.57381415", "0.5720648", "0.5719033", "0.5715984", "0.57051384", "0.56802624", "0.5669002", "0.56667805"...
0.0
-1
TODO Autogenerated method stub
private static void splitWord() { int i = 1; for(String doc : DocsTest) { ArrayList<String> wordAll = new ArrayList<String>(); for (String word : doc.split("[,.() ; % : / \t -]")) { word = word.toLowerCase(); if(word.length()>1 && !mathMethod.isNumeric(word)) { wordAll.add(word); if(!wordList.contains(word)) { wordList.add(word); } } } wordAll.removeAll(stopword); Doclist.put(i, wordAll); i++; } wordList.removeAll(stopword); }
{ "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
protected static void writeXML(String path, String ID, String abs,String cls) { DocumentBuilderFactory dbFactory = DocumentBuilderFactory.newInstance(); DocumentBuilder dBuilder; try { dBuilder = dbFactory.newDocumentBuilder(); Document doc = dBuilder.newDocument(); //add elements to Document Element rootElement =doc.createElement("Data"); //append root element to document doc.appendChild(rootElement); rootElement.appendChild(getReviewsPositive(doc, ID, abs,cls)); //for output to file, console TransformerFactory transformerFactory = TransformerFactory.newInstance(); Transformer transformer = transformerFactory.newTransformer(); //for pretty print transformer.setOutputProperty(OutputKeys.INDENT, "yes"); DOMSource source = new DOMSource(doc); //write to console or file StreamResult console = new StreamResult(System.out); StreamResult file = new StreamResult(new File(path+""+ID+".xml")); //write data transformer.transform(source, console); transformer.transform(source, file); //System.out.println("DONE"); } catch (Exception e) { e.printStackTrace(); } }
{ "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
kann nicht instanziiert werden.
public static String getLocaleKeySeparator() { return localeKeySeparator; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public boolean isInstantiable() {\n return false;\n }", "private Rekenhulp()\n\t{\n\t}", "public Kullanici() {}", "public AntrianPasien() {\r\n\r\n }", "private Instantiation(){}", "private Example() {\n\t\tthrow new Error(\"no instantiation is permitted\");\n\t}",...
[ "0.6760217", "0.65015465", "0.6494354", "0.6480655", "0.641698", "0.6401234", "0.63951916", "0.63806534", "0.63478816", "0.6263603", "0.62595576", "0.6240168", "0.62359196", "0.6200413", "0.6200208", "0.61947757", "0.6193716", "0.61657405", "0.61627823", "0.61571217", "0.6152...
0.0
-1
/ This looks for config files, so it generates FileConfigs rather than Configs.
public static HashMap<String,FileConfig> listInstalledConfigs(String propertyFolderPath, Predicate<String> p, Function<String,String> filenameToFilecode ) { Logger.trace("init..."); File f = new File( propertyFolderPath ); if (!f.exists()) { //TODO Exception return null; } File[] foundFiles = f.listFiles((dir, name) -> { // Logger.trace("dir="+dir+", name="+name); return p.test(name); }); HashMap<String,FileConfig> foundConfigs=new HashMap<>();//new FileConfig[foundFiles.length];//found for (int i = 0; i < foundFiles.length; i++) { String s=filenameToFilecode.apply( foundFiles[i].getName() ); foundConfigs.put(s, new FileConfig(s, foundFiles[i] ) ); } return foundConfigs; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void ReadConfig()\n {\n try\n {\n Yaml yaml = new Yaml();\n\n BufferedReader reader = new BufferedReader(new FileReader(confFileName));\n\n yamlConfig = yaml.loadAll(reader);\n\n for (Object confEntry : yamlConfig)\n {\...
[ "0.6663854", "0.65637636", "0.64757454", "0.6461459", "0.63813984", "0.6344235", "0.63065726", "0.6290382", "0.62892115", "0.6125474", "0.6118021", "0.6098116", "0.60280085", "0.6000206", "0.59734446", "0.5968852", "0.59631866", "0.59561217", "0.59441894", "0.5931565", "0.587...
0.0
-1
Creates an Config object with the given name and relative path and stores it in the internal confMap for later use with get. If there is no configuration file at that path, it optionally creates a new file with default values, if createFile is true.
public static Config create(String name,String relativePath, boolean createFile) { // createFile = create properties file with default values, if not exist if(null==name || "".equals(name)) { //TODO exception, logging return null; } Logger.trace("Creating new Config Object..."); FileConfig c; c=new FileConfig(name, relativePath, () -> DefaultMainConfig.create() ); if(!c.hasFile) { c.resetToDefault(); } return confMap.put(name, c); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "abstract public Config createConfig(String path);", "public Config createConfig(String filename);", "abstract public Config createConfigWithFactory(String path, String factoryPath);", "public static YamlConfiguration createConfig(String name) {\r\n if (!name.endsWith(\".yml\")) {\r\n ...
[ "0.72364193", "0.6966222", "0.6474941", "0.6398433", "0.5856209", "0.57996106", "0.56889725", "0.5621518", "0.55570865", "0.5524084", "0.53664076", "0.5363719", "0.533898", "0.5337013", "0.5270835", "0.5206899", "0.5150831", "0.51473784", "0.5120211", "0.50775623", "0.5073665...
0.8441745
0
Function show options when Admin login
public static int adminFirstPage(){ Scanner inputone = new Scanner(System.in); System.out.println("Admin Menu Options"); System.out.println("=================="); System.out.println("0 - Quit"); System.out.println("1 - Add Shares"); System.out.println("2 - Update Share price"); System.out.println("3 - Update Share quantity"); System.out.println("4 - Update Transaction Charge "); System.out.println("5 - Update STT"); System.out.println("Enter Option : "); int adminchoice = inputone.nextInt(); return adminchoice; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private static void viewOptions() {\n\t\tlog.info(\"Enter 0 to Exit.\");\n\t\tlog.info(\"Enter 1 to Login.\");\n\t}", "public static void ShowAdminPreferences() {\n if (Controller.permission.GetUserPermission(\"EditUser\")) {\n ToggleVisibility(UsersPage.adminWindow);\n } else {\n ...
[ "0.72643566", "0.7161039", "0.6764569", "0.6727305", "0.6599578", "0.64913225", "0.63301724", "0.63119763", "0.62833655", "0.6238208", "0.6232771", "0.62149215", "0.61931056", "0.6158881", "0.61530304", "0.6136427", "0.61133116", "0.6103932", "0.6064243", "0.6063536", "0.6040...
0.0
-1
Admin uses this function to add new share
public static void addShare(){ Map<String, ShareMarket> allShareDetails = ShareMarketHashMap.getShareMarket(); ShareMarket addUniqueShare = new ShareMarket(); displayMap(allShareDetails); System.out.println("Enter Share Name : "); String shareName = input.next(); if(allShareDetails.containsKey(shareName)) { System.out.println("This Share is already available, try to add different Share :( .You will be returned to main menu" +'\n'); return; } else if(isNumber(shareName)){ System.out.println("Share should be alphabets only :( .You will be returned to main menu" +'\n'); return; } System.out.println("Enter Share Quantity : "); if(!input.hasNextInt()) { System.out.println("Quantity entered in invalid, it should be a postive number.You will be returned to main menu" +'\n'); return; } int shareQuantity = input.nextInt(); System.out.println("Enter Share Price : "); if(!input.hasNextInt()) { System.out.println("Price entered in invalid, it should be a postive number.You will be returned to main menu" +'\n'); return; } int sharePrice = input.nextInt(); addUniqueShare.setShareName(shareName.trim()); addUniqueShare.setShareQuantity(shareQuantity); addUniqueShare.setSharePrice(sharePrice); ShareMarketHashMap.addShare(addUniqueShare); Map<String, ShareMarket> shareAfterAdding = ShareMarketHashMap.getShareMarket(); System.out.println("Share Name :" + shareAfterAdding.get(shareName).getShareName() + ',' + " Share Price:" + shareAfterAdding.get(shareName).getSharePrice() + ',' + " Share Quantity: " + shareAfterAdding.get(shareName).getShareQuantity()); System.out.println("Successfully added the share" + '\n'); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected void addShare() {\n \t\t((InputMethodManager) this.getContext().getSystemService(\n \t\t\t\tContext.INPUT_METHOD_SERVICE)).hideSoftInputFromWindow(\n \t\t\t\tthis.getWindowToken(), InputMethodManager.HIDE_NOT_ALWAYS);\n \t\tIntent intent = new Intent(Intent.ACTION_SEND);\n \t\tArrayList<String> images = ...
[ "0.7111229", "0.6773155", "0.6656744", "0.6375395", "0.63442314", "0.6276128", "0.6064025", "0.6052322", "0.58998346", "0.58310795", "0.5770592", "0.5760956", "0.5759572", "0.5747897", "0.57231057", "0.56900954", "0.5688493", "0.5633713", "0.5616715", "0.56165856", "0.5613377...
0.5941666
8
Admin Function update quantity of share
public static void updateShareQuantity(){ Map<String, ShareMarket> everyShareDetails = ShareMarketHashMap.getShareMarket(); displayMap(everyShareDetails); ShareMarket editUniqueSharePrice = new ShareMarket(); System.out.println('\n' + "Enter Share Name for updating quantity: "); String shareName = input.next(); if(!everyShareDetails.containsKey(shareName)) { System.out.println("Share doesn't exist :( .You will be returned to main menu" +'\n'); return; } System.out.println("Enter Share Quantiy : "); if(!input.hasNextInt()) { System.out.println("Quantity entered in invalid, it should be a postive integer.You will be returned to main menu" + '\n'); return; } int updateshareQuantity = input.nextInt(); editUniqueSharePrice.setShareName(shareName); editUniqueSharePrice.setShareQuantity(updateshareQuantity); editUniqueSharePrice.setSharePrice(everyShareDetails.get(shareName).getSharePrice()); everyShareDetails.put(editUniqueSharePrice.getShareName(),editUniqueSharePrice); ShareMarketHashMap.editShare(); Map<String, ShareMarket> everyShareDetailsupdate = ShareMarketHashMap.getShareMarket(); System.out.println(" Share Name: " + everyShareDetailsupdate.get(shareName).getShareName() +',' + " Share Price: " + everyShareDetailsupdate.get(shareName).getSharePrice() +',' + " Share Quantity: " + everyShareDetailsupdate.get(shareName).getShareQuantity()); System.out.println("Successfully updated quantiy, Please find above available shares" + '\n'); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void updateStocks(StockTransferTransactionRequest item) {\n\n Integer updatedQuantity = item.getQuantity();\n StockTraderServiceFactoryIF serviceFactory = new StockTraderServiceFactory();\n DematServiceIF dematService = serviceFactory.dematService();\n\n Optional<Integer> oldQua...
[ "0.6507358", "0.64805347", "0.64523304", "0.6398939", "0.6302681", "0.61908543", "0.6095118", "0.5975891", "0.5884148", "0.5856273", "0.58426136", "0.582912", "0.57890856", "0.5785895", "0.5783806", "0.57709324", "0.57620734", "0.5728426", "0.5728426", "0.5718329", "0.5713642...
0.6808643
0
Admin Function update price of share
public static void updateSharePrice(){ Map<String, ShareMarket> allShareDetails = ShareMarketHashMap.getShareMarket(); displayMap(allShareDetails); ShareMarket editUniqueShareQuantity = new ShareMarket(); System.out.println('\n'+"Enter Share Name for updating price : "); String updateShareName = input.next(); if(!allShareDetails.containsKey(updateShareName)) { System.out.println("Share doesn't exist :( .You will be returned to main menu" +'\n'); return; } System.out.println("Enter Share Price : "); if(!input.hasNextInt()) { System.out.println("Price entered in invalid, it should be a postive integer.You will be returned to main menu" + '\n'); return; } int updateSharePrice = input.nextInt(); editUniqueShareQuantity.setShareName(updateShareName); editUniqueShareQuantity.setSharePrice(updateSharePrice); editUniqueShareQuantity.setShareQuantity(allShareDetails.get(updateShareName).getShareQuantity()); allShareDetails.put(editUniqueShareQuantity.getShareName(),editUniqueShareQuantity); ShareMarketHashMap.editShare(); Map<String, ShareMarket> allShareDetailsupdated = ShareMarketHashMap.getShareMarket(); System.out.println("Share Name: " + allShareDetailsupdated.get(updateShareName).getShareName() +',' + " Share Price:" + allShareDetailsupdated.get(updateShareName).getSharePrice() +',' + " Share Quantity:" + allShareDetailsupdated.get(updateShareName).getShareQuantity()); System.out.println("Successfully updated price, please find above available shares" +'\n'); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tpublic void doUpdate(SellOfer model, HttpServletRequest request,\n\t\t\tHttpServletResponse response) {\n\t\t if(StringUtil.isEmpty(model.getPrice())){\n\t\t\t\t model.setPrice(\"0\");\n\t\t\t }\n\t\t\t double dprice =Double.parseDouble(model.getPrice());\n\t\t BigDecimal bg = new BigDecimal(...
[ "0.7352443", "0.70516807", "0.6766047", "0.6693502", "0.6563454", "0.65389776", "0.64753175", "0.6445923", "0.64289075", "0.6417932", "0.6416791", "0.64101624", "0.64026815", "0.63966775", "0.63925344", "0.6383713", "0.6381972", "0.63817155", "0.63398576", "0.6326026", "0.630...
0.6750623
3
Admin Function update transaction charge
public static void updateTransactionCharge(){ Scanner userInput = new Scanner(System.in); System.out.println("Current STT charge is" +ApplicableCharge.getSecuritiesTransferTaxRate()); System.out.println("Current Transaction charge is" +ApplicableCharge.getTransactionChargeRate()); System.out.println("Enter Transaction Charge "); if(!userInput.hasNextDouble()) { System.out.println("Transaction charge entered in invalid, it should be a numeric value. You will be returned to main menu" + '\n'); return; } double transactionCharge = userInput.nextDouble(); ApplicableCharge.setTransactionChargeRate(transactionCharge); System.out.println("Updated Transaction charge is" +ApplicableCharge.getTransactionChargeRate() +'\n'); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "Transfer updateChargeBack(Transfer transfer, Transfer chargeback);", "public void updateTransaction(Transaction trans);", "private void updateTransaction() {\n LogUtils.logEnterFunction(Tag);\n\n String inputtedAmount = etAmount.getText().toString().trim().replaceAll(\",\", \"\");\n if (in...
[ "0.70587134", "0.65070707", "0.6413978", "0.62923473", "0.60947794", "0.60841185", "0.6069734", "0.606764", "0.59843683", "0.5981688", "0.5977695", "0.5971939", "0.5965474", "0.5961953", "0.5933166", "0.59175825", "0.5905572", "0.5904941", "0.58984923", "0.5863344", "0.583335...
0.0
-1
Admin Function update STT charge
public static void updateSTTCharge(){ Scanner userInputStt = new Scanner(System.in); System.out.println("Current STT charge is" +ApplicableCharge.getSecuritiesTransferTaxRate()); System.out.println("Current Transaction charge is" +ApplicableCharge.getTransactionChargeRate()); System.out.println("Enter STT Charge "); if(!userInputStt.hasNextDouble()) { System.out.println("STT charge entered in invalid, it should be a numeric value. You will be returned to main menu" + '\n'); return; } double STT = userInputStt.nextDouble(); ApplicableCharge.setSecuritiesTransferTaxRate(STT); System.out.println("Updated STT charge is" +ApplicableCharge.getSecuritiesTransferTaxRate() +'\n'); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "Transfer updateChargeBack(Transfer transfer, Transfer chargeback);", "@Override\n\tpublic void updateCharge(Charge charge) {\n\t\tchargeMapper.updateCharge(charge);\n\t}", "@Override\r\n\tpublic void pay(long dateTime, float charge) {\n\t\t\r\n\t}", "void chargeTf(double amount);", "void setAsInCharge(User...
[ "0.65468466", "0.6229997", "0.58655053", "0.58441484", "0.58163923", "0.5804808", "0.5784383", "0.5782998", "0.5727676", "0.57232", "0.56861526", "0.5679232", "0.5667081", "0.5650099", "0.5627116", "0.5606301", "0.55864376", "0.5541771", "0.5540995", "0.55399626", "0.55378693...
0.55534744
17
Function to check whether entered string is Integer
public static boolean isNumber(String s) { for (int i = 0; i < s.length(); i++) if (Character.isDigit(s.charAt(i)) == false) return false; return true; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private boolean isInteger(String userInput){\n if (userInput.matches(\"[0-9]+\")) {\n return true;\n }\n return false;\n }", "public static boolean isInteger(String s) {\n\t try { Integer.parseInt(s); }\n\t catch(NumberFormatException e) { return false; }\n\t catch(NullPointerException e) { re...
[ "0.81740564", "0.80344594", "0.7994365", "0.79831487", "0.7930398", "0.7921675", "0.78818434", "0.7881351", "0.78661335", "0.7858728", "0.7803188", "0.77927136", "0.77922577", "0.7791041", "0.7777181", "0.77453995", "0.7744273", "0.7717897", "0.77063745", "0.76930827", "0.769...
0.6396461
90
/ getter and setter
public List<Instruction> predessor() { return predessor; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void get() {\n\t\t\r\n\t}", "protected abstract Set method_1559();", "@Override\n public void get() {}", "String setValue();", "@Override\n String get();", "@Override\n\tprotected void getData() {\n\t\t\n\t}", "public String get();", "public Object get()\n {\n r...
[ "0.6714183", "0.6686965", "0.66844755", "0.6438079", "0.6408659", "0.63469344", "0.63125515", "0.6275929", "0.6249502", "0.6237673", "0.623528", "0.6197601", "0.61730593", "0.61730593", "0.6136286", "0.61304575", "0.61303455", "0.6099467", "0.6098043", "0.6074646", "0.6064347...
0.0
-1
Performs reverse engineering of the DB using internal DbLoader. This method should be invoked outside EventDispatchThread, or it will throw an exception.
public void execute() { stoppingReverseEngineering = false; // load schemas... LongRunningTask loadSchemasTask = new LoadSchemasTask(Application .getFrame(), "Loading Schemas"); loadSchemasTask.startAndWait(); if (stoppingReverseEngineering) { return; } final DbLoaderOptionsDialog dialog = new DbLoaderOptionsDialog( schemas, dbUserName, false); try { // since we are not inside EventDisptahcer Thread, must run it via // SwingUtilities SwingUtilities.invokeAndWait(new Runnable() { public void run() { dialog.show(); dialog.dispose(); } }); } catch (Throwable th) { processException(th, "Error Reengineering Database"); return; } if (dialog.getChoice() == DbLoaderOptionsDialog.CANCEL) { return; } this.schemaName = dialog.getSelectedSchema(); this.tableNamePattern = dialog.getTableNamePattern(); this.loadProcedures = dialog.isLoadingProcedures(); this.procedureNamePattern = dialog.getProcedureNamePattern(); // load DataMap... LongRunningTask loadDataMapTask = new LoadDataMapTask(Application .getFrame(), "Reengineering DB"); loadDataMapTask.startAndWait(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public abstract void loadFromDatabase();", "public static void loadDB() throws Exception {\n\t\t// Remove previously loaded data\n\t\tcolToData.clear();\n\t\t// Load dictionary from disk\n\t\tloadDictionary();\n\t\t// Collect columns to load in parallel\n\t\tList<ColumnRef> colsToLoad = new ArrayList<ColumnRef>(...
[ "0.6040395", "0.60377675", "0.5808216", "0.5628488", "0.55944085", "0.53989077", "0.5358882", "0.53380483", "0.5337612", "0.5319238", "0.5298193", "0.5293002", "0.5277061", "0.52292156", "0.5202896", "0.51964986", "0.5176966", "0.5153284", "0.5116273", "0.51081437", "0.509862...
0.6091394
0
noop, deprecated in the interface
public void setSchema(DbEntity entity, String schema) { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "default boolean isDeprecated() {\n return false;\n }", "@Deprecated\n\tprivate void oldCode()\n\t{\n\t}", "@Override\n public boolean getObsolete()\n {\n return false;\n }", "void unavailable();", "void unavailable();", "public void doNothing(){\n\t}", "private stendhal() {\n\...
[ "0.70096254", "0.6690727", "0.6595091", "0.65817446", "0.65817446", "0.6411812", "0.63655156", "0.62877876", "0.62745357", "0.6184679", "0.6164159", "0.6153976", "0.6124746", "0.6098984", "0.6094231", "0.60172004", "0.60094786", "0.60010886", "0.59787166", "0.5967468", "0.596...
0.0
-1
execute the ADB command "adb devices" to get online device ids
public List<String> execAdbDevices() { List<String> ret_device_id_list = new ArrayList<>(); Process proc = null; try { proc = new ProcessBuilder(this.adb_directory, "devices").start(); proc.waitFor(); } catch (IOException ioe) { ioe.printStackTrace(); } catch (InterruptedException ire) { ire.printStackTrace(); } String devices_result = this.collectResultFromProcess(proc); String[] device_id_list = devices_result.split("\\r?\\n"); if (device_id_list.length <= 1) { System.out.println("No Devices Attached."); return ret_device_id_list; } /** * collect the online devices */ String str_device_id = null; String[] str_device_id_parts = null; // ignore the first line which is "List of devices attached" for (int i = 1; i < device_id_list.length; i++) { str_device_id = device_id_list[i]; str_device_id_parts = str_device_id.split("\\s+"); // add the online device if (str_device_id_parts[1].equals("device")) ret_device_id_list.add(str_device_id_parts[0]); } return ret_device_id_list; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public List<String> execAdbDevices() {\n System.out.println(\"adb devices\");\n\n List<String> ret_device_id_list = new ArrayList<>();\n Process proc = null;\n try {\n proc = new ProcessBuilder(this.adb_path, \"devices\").start();\n proc.waitFor();\n } catch...
[ "0.84983414", "0.7021877", "0.7015683", "0.680301", "0.67459315", "0.6601616", "0.6551247", "0.6523731", "0.6470625", "0.64131254", "0.62666106", "0.62110674", "0.61831254", "0.6096007", "0.60748065", "0.6059374", "0.6035722", "0.5996254", "0.59681904", "0.59415007", "0.58901...
0.8351293
1
execute the "adb s forward" commands for each device with different ports on the host PC
public Map<String, Integer> execAdbOnlineDevicesPortForward() { List<String> device_id_list = this.execAdbDevices(); Map<String, Integer> device_hostport_map = new HashMap<String, Integer>(); int index = 0; for (String device : device_id_list) { int host_port = ADBExecutor.HOST_BASE_PORT + index * 10; this.execAdbSingleDevicePortForward(device, host_port, ADBExecutor.ANDROID_PORT); device_hostport_map.put(device, host_port); index++; } return device_hostport_map; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Map<String, Integer> execAdbOnlineDevicesPortForward() {\n List<String> device_id_list = this.execAdbDevices();\n Map<String, Integer> device_hostport_map = new HashMap<String, Integer>();\n\n int index = 0;\n for (String device : device_id_list) {\n int host_port = AD...
[ "0.66774315", "0.5451111", "0.53253424", "0.5314745", "0.52511877", "0.5218165", "0.5200285", "0.5189691", "0.5162838", "0.51513", "0.51020217", "0.50818044", "0.50708365", "0.5035609", "0.50000143", "0.4983644", "0.49675754", "0.4963349", "0.49349445", "0.4930186", "0.490285...
0.6792846
0
collect results (including error info.) from the process executing ADB command
private String collectResultFromProcess(Process proc) { StringBuilder sb_result = new StringBuilder(); BufferedReader stdInput = new BufferedReader(new InputStreamReader(proc.getInputStream())); BufferedReader stdError = new BufferedReader(new InputStreamReader(proc.getErrorStream())); String result_line = null; try { while ((result_line = stdInput.readLine()) != null) { sb_result.append(result_line); sb_result.append("\n"); } while ((result_line = stdError.readLine()) != null) { sb_result.append(result_line); sb_result.append("\n"); } } catch(IOException ioe) { ioe.printStackTrace(); } return sb_result.toString(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private String collectResultFromProcess(Process proc) {\n StringBuilder sb_result = new StringBuilder();\n\n BufferedReader stdInput = new BufferedReader(new InputStreamReader(proc.getInputStream()));\n BufferedReader stdError = new BufferedReader(new InputStreamReader(proc.getErrorStream()));...
[ "0.57937133", "0.54625726", "0.54580736", "0.53771514", "0.5376432", "0.5286795", "0.5116391", "0.5047878", "0.5042224", "0.4983845", "0.4977515", "0.49418437", "0.49407655", "0.49392262", "0.49328876", "0.49315786", "0.49137336", "0.49083918", "0.48677024", "0.48482797", "0....
0.57315785
1
Generates a SFC instance based on the dimensions definition and the space filling curve type
public static SpaceFillingCurve createSpaceFillingCurve( final SFCDimensionDefinition[] dimensionDefs, final SFCType sfc ) { switch (sfc) { case HILBERT: return new HilbertSFC( dimensionDefs); case ZORDER: return new ZOrderSFC( dimensionDefs); } return null; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void createSpaceClasses(){\n\t//add the number of classe demand in a list of superchannel\n\t\tspaceSC_List = new ArrayList<OpticalSuperChannel>();\n\t\tfor ( int i = 1 ; i < this.spatialDimension+1 ; i++ ) {\n\t\t\tspaceSC_List.add(new OpticalSuperChannel( i , this.signalBw, this.channelSpacing, this.bandG...
[ "0.5711173", "0.5310501", "0.53063834", "0.51554435", "0.5107102", "0.5104296", "0.5052235", "0.4983264", "0.4920226", "0.4889435", "0.488001", "0.4857512", "0.48494944", "0.48467186", "0.4841567", "0.48270306", "0.481401", "0.4799258", "0.4791197", "0.47904614", "0.47760898"...
0.68994796
0
You can't make sum n=2 when k=3. to run at least n>=k and using [1,9] you can't make sum more than 45. K can not be more than 9 since we have 9 choices only
public List<List<Integer>> combinationSum3(int k, int n) { if (n < k || n > 45 || k > 9) return Collections.EMPTY_LIST; List<List<Integer>> response = new ArrayList<>(); int candidates[] = {1, 2, 3, 4, 5, 6, 7, 8, 9}; combinationSum3(candidates, k, 0, 0, n, response, new ArrayList<>()); return response; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public List<List<Integer>> combinationSum3(int k, int n) {\n List<List<Integer>> res = new ArrayList<>();\n int min = 0, max = 0;\n for (int i = 1; i <= k; i++) {\n min += i;\n max += (10 - i);\n }\n if (n > max || n < min) return res;\n List<Integer>...
[ "0.74047375", "0.709352", "0.703069", "0.7002072", "0.6986876", "0.69564325", "0.6883908", "0.6880493", "0.6814057", "0.67857784", "0.6679697", "0.6653404", "0.66400295", "0.6625871", "0.6611353", "0.66091317", "0.6560854", "0.6498763", "0.6498421", "0.64980096", "0.64913905"...
0.71802145
1
3. Our goal: when currentSum = target & k numbers only
private void combinationSum3(int[] candidates, int k, int i, int currentSum, int target, List<List<Integer>> response, List<Integer> temp) { if (temp.size() == k) { if (currentSum == target) response.add(new ArrayList<>(temp)); return; } if (i == candidates.length) return; //1. Our choices: We can choose a number from the list any number of times and all the numbers for (int s = i; s < candidates.length; s++) { //if this element is greater than target, then adding it to current sum make bigger than target //since,elements are sorted, then all the element after this element are > target if (candidates[s] > target) break; //Our constraints : We can't go beyond target, we can take more element than available in array if (currentSum + candidates[s] <= target) { currentSum += candidates[s]; temp.add(candidates[s]); combinationSum3(candidates, k, s + 1, currentSum, target, response, temp); //backtrack temp.remove(temp.size() - 1); currentSum -= candidates[s]; } } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public int kSum(int[] A, int k, int target) {\n\t\tint res=0;\r\n\t\t//考虑k=1的情况\r\n//\t\tif (k==1) {\r\n//\t\t\tfor(int i=0;i<A.length;i++) {\r\n//\t\t\t\tif (A[i]==target) {\r\n//\t\t\t\t\tres++;\r\n//\t\t\t\t}\r\n//\t\t\t}\r\n//\t\t\treturn res;\r\n//\t\t}\r\n//\t\tint sum_k_1=0;\r\n//\t\tint sum=target-sum_k_1;...
[ "0.77023506", "0.7600023", "0.70212674", "0.691081", "0.67625046", "0.6720165", "0.6696932", "0.662084", "0.6574929", "0.6569007", "0.6473164", "0.64321566", "0.64194936", "0.6374812", "0.6360346", "0.6341105", "0.62827444", "0.62798685", "0.62774456", "0.6273188", "0.6254531...
0.74311584
2
Instantiates a new inquiry lftrattrib request.
public InquiryLftrattribRequest() { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public InquiryLftrattribRequest(UserContext userContext)\r\n\t{\r\n\t\tsuper(userContext);\r\n\t}", "public InquiryGrupomuscularRequest()\r\n\t{\r\n\r\n\t}", "public RequestAttribute() {\n }", "public UBERequest() {\r\n }", "public Request(){\n\t\tthis(null, null, null);\n\t}", "private void initRe...
[ "0.76419014", "0.5993871", "0.5842523", "0.56066054", "0.5582066", "0.54610825", "0.5437938", "0.54264903", "0.5365091", "0.53603166", "0.53460175", "0.53305763", "0.5306206", "0.52937937", "0.52865", "0.5257848", "0.5256177", "0.5256177", "0.5251407", "0.52396876", "0.520725...
0.84393096
0
Instantiates a new inquiry lftrattrib request.
public InquiryLftrattribRequest(UserContext userContext) { super(userContext); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public InquiryLftrattribRequest()\r\n\t{\r\n\t}", "public InquiryGrupomuscularRequest()\r\n\t{\r\n\r\n\t}", "public RequestAttribute() {\n }", "public UBERequest() {\r\n }", "public Request(){\n\t\tthis(null, null, null);\n\t}", "private void initRequestAttributes(){\n\t\tmThrowedExceptions \t= new...
[ "0.84393096", "0.5993871", "0.5842523", "0.56066054", "0.5582066", "0.54610825", "0.5437938", "0.54264903", "0.5365091", "0.53603166", "0.53460175", "0.53305763", "0.5306206", "0.52937937", "0.52865", "0.5257848", "0.5256177", "0.5256177", "0.5251407", "0.52396876", "0.520725...
0.76419014
1
Retorna todos los medios de pago de la base de datos.
public List<MedioDePagoEntity> findAll() { LOGGER.log(Level.INFO, "Consultando todos los medios de pago"); TypedQuery query = em.createQuery("select u from MedioDePagoEntity u", MedioDePagoEntity.class); return query.getResultList(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tpublic List<MedioPago> getall() {\n\t\treturn (List<MedioPago>) iMedioPagoDao.findAll();\t\t\n\t}", "public List<Medico> getAllMedicos() {\n List<Medico> medicos = new ArrayList<Medico>();\n try {\n PreparedStatement pstm = null;\n ResultSet rs = null;\n ...
[ "0.7057904", "0.6791581", "0.64622116", "0.6294171", "0.6240292", "0.6206014", "0.61511683", "0.61014915", "0.59142184", "0.59015095", "0.5890606", "0.5841607", "0.57983565", "0.5789329", "0.578525", "0.5769611", "0.5769224", "0.5766569", "0.57631665", "0.57609576", "0.573453...
0.79404587
0
Parsing Table: 0 123456 0+.cde 0|123 1|46 2|13 3|436 4|5 5|56 6|778 7|8 8|8 here: c = 19 d = 09 e = E|e accepting state: 1,3,5,8
public static int isNumber(String num) { int[][] table = new int[9][7]; for (int i = 0; i < 9; i++) { for (int j = 0; j < 6; j++) { table[i][j] = -1; } } table[0][0] = 1; table[0][2] = 2; table[0][4] = 3; table[1][3] = 4; table[1][6] = 6; table[2][0] = 1; table[2][4] = 3; table[3][3] = 4; table[3][5] = 3; table[3][6] = 6; table[4][5] = 5; table[5][5] = 5; table[5][6] = 6; table[6][1] = 7; table[6][2] = 7; table[6][5] = 8; table[7][5] = 8; table[8][5] = 8; int state = 0; Pattern c = Pattern.compile("[1-9]"); Pattern d = Pattern.compile("[0-9]"); char[] input = num.toCharArray(); int[] intinput = new int[num.length()]; for (int i = 0; i < intinput.length; i++) { intinput[i] = -1; } for (int i = 0; i < input.length; i++) { Matcher mc = c.matcher(String.valueOf(input[i])); Matcher md = c.matcher(String.valueOf(input[i])); if (input[i] == '0') intinput[i] = 0; else if (input[i] == '+') intinput[i] = 1; else if (input[i] == '-') intinput[i] = 2; else if (input[i] == '.') intinput[i] = 3; else if (input[i] == 'e' || input[i] == 'E') intinput[i] = 6; else if (mc.matches()) intinput[i] = 4; else if (md.matches()) intinput[i] = 5; } try { for (int i = 0; i < input.length; i++) { if (intinput[i] == 0 && table[state][intinput[i]] == -1) intinput[i] = 5; if (intinput[i] == 4 && table[state][intinput[i]] == -1) intinput[i] = 5; state = table[state][intinput[i]]; } } catch(IndexOutOfBoundsException e) { return 1; } if (state == 1 || state == 3 || state == 5 || state == 8) return 0; return 1; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void parse(String table) throws MEBNException {\r\n\t\tthis.init(table);\r\n\t\tthis.parse();\r\n\t}", "@Test\n void testParseTestcaseFrom50Specification(){\n String testcase = \"\\r\\n\" +\n \"/ISk5\\\\2MT382-1000\\r\\n\" +\n \"\\r\\n\" +\n \"1-3:0.2.8(50)\\r\\n...
[ "0.60005265", "0.55090004", "0.5507206", "0.54580843", "0.5442473", "0.5360198", "0.5327894", "0.5323562", "0.52558374", "0.5250416", "0.5249475", "0.5243001", "0.52074504", "0.5188618", "0.5182193", "0.5152468", "0.514407", "0.5142978", "0.5142284", "0.5134979", "0.51331246"...
0.52922577
8
log.debug("findAll()"); List list = em.createNamedQuery("QuestionMultiChoice.findAll", QuestionMultiChoice.class).getResultList(); List list = em.createQuery("SELECT q FROM QuestionMultiChoice q", QuestionMultiChoice.class).getResultList(); return list;
@Override @Transactional(readOnly=true) public List<QuestionMultiChoice> findAll() { return Lists.newArrayList(qcmRepository.findAll()); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public List<PokemonEntity> findAll() {\n LOGGER.log(Level.INFO, \"Consultando todas los trayectos\");\n // Se crea un query para buscar todas las ciudades en la base de datos.\n TypedQuery query = em.createQuery(\"select u from PokemonEntity u\", PokemonEntity.class);\n // Note que en el query se hace ...
[ "0.6733526", "0.6487268", "0.64692116", "0.6414354", "0.63779193", "0.6318336", "0.6237823", "0.62190646", "0.62168294", "0.6113038", "0.61076564", "0.61067957", "0.6053991", "0.6043224", "0.60245013", "0.60220295", "0.6020798", "0.601396", "0.60125726", "0.6009074", "0.60044...
0.6617144
1
log.debug("findByTags_Id( " + id + " )"); TypedQuery query = em.createNamedQuery("QuuestionMultiChoice.findAllWithTheTagId", QuestionMultiChoice.class).setParameter("id", id); List list = query.getResultList();
@Override @Transactional(readOnly=true) public List<QuestionMultiChoice> findByTags_Id(Long id) { List<QuestionMultiChoice> list = qcmRepository.findByTags_Id(id); return list; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void loadTag(){ \n\t\t try {\n\n\t\t\t\tConnection con = DBConnection.connect();\n\n\t\t\t\tString query=\"select * from Tag \";\n\t\t\t\tPreparedStatement pst=con.prepareStatement(query);\n\t\t\t\tResultSet rs=pst.executeQuery();\n\t\t\t\t\n\t\t\t\twhile(rs.next())\n\t\t\t\t{\n\t\t\t\t\tString name =rs....
[ "0.65693676", "0.6467249", "0.6217501", "0.6209293", "0.6119254", "0.59644854", "0.59340215", "0.59332836", "0.584551", "0.5839861", "0.577201", "0.57196665", "0.5708779", "0.5693597", "0.5689997", "0.56772655", "0.5675452", "0.5667555", "0.56660026", "0.56329346", "0.5600998...
0.7099037
0
Use GoodsItem.newBuilder() to construct.
private GoodsItem(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) { super(builder); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private GoodsItem(com.google.protobuf.GeneratedMessage.Builder<?> builder) {\n super(builder);\n this.unknownFields = builder.getUnknownFields();\n }", "private InventoryItemProto(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }", "public Item(){\n ...
[ "0.7398441", "0.6540017", "0.64247435", "0.64182115", "0.6310177", "0.6232988", "0.6222684", "0.6128192", "0.6113143", "0.6064411", "0.6040452", "0.60205114", "0.5994123", "0.5974963", "0.5960265", "0.59566987", "0.5938509", "0.5909097", "0.5901526", "0.5870639", "0.58663845"...
0.8044088
0
item_id int64 item_id = 9;
@java.lang.Override public long getItemId() { return itemId_; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "long getID(Object item);", "int getItemID();", "public long getItemShopBasketId();", "public Integer getItemid() {\n return itemid;\n }", "public Integer getItemid() {\n return itemid;\n }", "public int getItemId()\r\n {\r\n return _itemId;\r\n }", "public int getItemID...
[ "0.6832262", "0.67022014", "0.6573659", "0.64553726", "0.64553726", "0.64229095", "0.6410955", "0.6409017", "0.6404034", "0.6281676", "0.62705797", "0.6211113", "0.60965604", "0.6096335", "0.60360247", "0.60205024", "0.5994523", "0.5988325", "0.5982117", "0.5964025", "0.59105...
0.5848173
21
schema_url string schema_url = 10;
@java.lang.Override public java.lang.String getSchemaUrl() { java.lang.Object ref = schemaUrl_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); schemaUrl_ = s; return s; } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public abstract String getSchemaURI();", "void schema(String schema);", "void schema(String schema);", "public Builder setSchemaUrl(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n schemaUrl_ = value;\n onChanged();\n return this...
[ "0.7147353", "0.6984463", "0.6984463", "0.6629155", "0.66020215", "0.6460415", "0.6364115", "0.6349817", "0.6290244", "0.623084", "0.61599565", "0.61357313", "0.60573936", "0.59503204", "0.5879538", "0.58049405", "0.5789022", "0.5789022", "0.57843155", "0.578323", "0.5769759"...
0.65841216
5
schema_url string schema_url = 10;
@java.lang.Override public com.google.protobuf.ByteString getSchemaUrlBytes() { java.lang.Object ref = schemaUrl_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); schemaUrl_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public abstract String getSchemaURI();", "void schema(String schema);", "void schema(String schema);", "public Builder setSchemaUrl(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n schemaUrl_ = value;\n onChanged();\n return this...
[ "0.7147353", "0.6984463", "0.6984463", "0.6629155", "0.66020215", "0.65841216", "0.6460415", "0.6364115", "0.6349817", "0.6290244", "0.623084", "0.61357313", "0.60573936", "0.59503204", "0.5879538", "0.58049405", "0.5789022", "0.5789022", "0.57843155", "0.578323", "0.5769759"...
0.61599565
11
open_white_list repeated string open_white_list = 11;
public com.google.protobuf.ProtocolStringList getOpenWhiteListList() { return openWhiteList_; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "SList oddWords();", "public java.lang.String getOpenWhiteList(int index) {\n return openWhiteList_.get(index);\n }", "public int getOpenWhiteListCount() {\n return openWhiteList_.size();\n }", "public java.lang.String getOpenWhiteList(int index) {\n return openWhiteList_.get(index);\n }", "...
[ "0.55591595", "0.5524409", "0.54578066", "0.5425202", "0.53757787", "0.5364262", "0.5288061", "0.5286694", "0.52332956", "0.5221815", "0.5211653", "0.5201803", "0.51848924", "0.518454", "0.5178811", "0.51761377", "0.5141157", "0.5138997", "0.51366293", "0.5130912", "0.5127960...
0.5150973
16
open_white_list repeated string open_white_list = 11;
public int getOpenWhiteListCount() { return openWhiteList_.size(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "SList oddWords();", "public java.lang.String getOpenWhiteList(int index) {\n return openWhiteList_.get(index);\n }", "public java.lang.String getOpenWhiteList(int index) {\n return openWhiteList_.get(index);\n }", "public int getOpenWhiteListCount() {\n return openWhiteList_.size();\n }",...
[ "0.55588835", "0.55229723", "0.54238254", "0.5377577", "0.53646344", "0.52897197", "0.5288007", "0.5233525", "0.5225019", "0.521158", "0.5200129", "0.51884824", "0.5185825", "0.51782596", "0.51773864", "0.5151502", "0.5142657", "0.514163", "0.513604", "0.51307565", "0.5129297...
0.54595375
2
open_white_list repeated string open_white_list = 11;
public java.lang.String getOpenWhiteList(int index) { return openWhiteList_.get(index); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "SList oddWords();", "public int getOpenWhiteListCount() {\n return openWhiteList_.size();\n }", "public java.lang.String getOpenWhiteList(int index) {\n return openWhiteList_.get(index);\n }", "public int getOpenWhiteListCount() {\n return openWhiteList_.size();\n }", "private Lowercase...
[ "0.55591595", "0.54578066", "0.5425202", "0.53757787", "0.5364262", "0.5288061", "0.5286694", "0.52332956", "0.5221815", "0.5211653", "0.5201803", "0.51848924", "0.518454", "0.5178811", "0.51761377", "0.5150973", "0.5141157", "0.5138997", "0.51366293", "0.5130912", "0.5127960...
0.5524409
1
open_white_list repeated string open_white_list = 11;
public com.google.protobuf.ByteString getOpenWhiteListBytes(int index) { return openWhiteList_.getByteString(index); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "SList oddWords();", "public java.lang.String getOpenWhiteList(int index) {\n return openWhiteList_.get(index);\n }", "public int getOpenWhiteListCount() {\n return openWhiteList_.size();\n }", "public java.lang.String getOpenWhiteList(int index) {\n return openWhiteList_.get(index);\n }", "...
[ "0.55591595", "0.5524409", "0.54578066", "0.5425202", "0.53757787", "0.5364262", "0.5288061", "0.5286694", "0.52332956", "0.5221815", "0.5211653", "0.5201803", "0.51848924", "0.518454", "0.5178811", "0.51761377", "0.5150973", "0.5141157", "0.5138997", "0.51366293", "0.5130912...
0.5071481
22
use_web_v2 bool user_web_v2 = 12;
@java.lang.Override public boolean getUserWebV2() { return userWebV2_; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@java.lang.Override\n public boolean getUserWebV2() {\n return userWebV2_;\n }", "public Builder setUserWebV2(boolean value) {\n \n userWebV2_ = value;\n onChanged();\n return this;\n }", "public boolean isWebSignupSupported()\n {\n return false;\n }", "public v...
[ "0.72402245", "0.6900422", "0.57291615", "0.5685951", "0.55701023", "0.5427062", "0.5390331", "0.53485477", "0.52722657", "0.5243693", "0.52132434", "0.5166238", "0.51049083", "0.5103322", "0.50971246", "0.50955397", "0.5083663", "0.5081766", "0.5063107", "0.50076437", "0.498...
0.74197036
0
item_id int64 item_id = 9;
@java.lang.Override public long getItemId() { return itemId_; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "long getID(Object item);", "int getItemID();", "public long getItemShopBasketId();", "public Integer getItemid() {\n return itemid;\n }", "public Integer getItemid() {\n return itemid;\n }", "public int getItemId()\r\n {\r\n return _itemId;\r\n }", "public int getItemID...
[ "0.6832262", "0.67022014", "0.6573659", "0.64553726", "0.64553726", "0.64229095", "0.6410955", "0.6409017", "0.6404034", "0.6281676", "0.62705797", "0.6211113", "0.60965604", "0.6096335", "0.60360247", "0.60205024", "0.5994523", "0.5988325", "0.5982117", "0.5964025", "0.59105...
0.56037074
52
item_id int64 item_id = 9;
public Builder setItemId(long value) { itemId_ = value; onChanged(); return this; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "long getID(Object item);", "int getItemID();", "public long getItemShopBasketId();", "public Integer getItemid() {\n return itemid;\n }", "public Integer getItemid() {\n return itemid;\n }", "public int getItemId()\r\n {\r\n return _itemId;\r\n }", "public int getItemID...
[ "0.6829706", "0.6700685", "0.6573403", "0.6454609", "0.6454609", "0.64222175", "0.6409563", "0.6408336", "0.64018166", "0.62806517", "0.6269503", "0.62097144", "0.6095648", "0.6095398", "0.6034809", "0.60197014", "0.5995563", "0.59866834", "0.5980938", "0.5964149", "0.5909698...
0.0
-1
item_id int64 item_id = 9;
public Builder clearItemId() { itemId_ = 0L; onChanged(); return this; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "long getID(Object item);", "int getItemID();", "public long getItemShopBasketId();", "public Integer getItemid() {\n return itemid;\n }", "public Integer getItemid() {\n return itemid;\n }", "public int getItemId()\r\n {\r\n return _itemId;\r\n }", "public int getItemID...
[ "0.6829706", "0.6700685", "0.6573403", "0.6454609", "0.6454609", "0.64222175", "0.6409563", "0.6408336", "0.64018166", "0.62806517", "0.6269503", "0.62097144", "0.6095648", "0.6095398", "0.6034809", "0.60197014", "0.5995563", "0.59866834", "0.5980938", "0.5964149", "0.5909698...
0.0
-1
schema_url string schema_url = 10;
public java.lang.String getSchemaUrl() { java.lang.Object ref = schemaUrl_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); schemaUrl_ = s; return s; } else { return (java.lang.String) ref; } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public abstract String getSchemaURI();", "void schema(String schema);", "void schema(String schema);", "public Builder setSchemaUrl(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n schemaUrl_ = value;\n onChanged();\n return this...
[ "0.7147353", "0.6984463", "0.6984463", "0.6629155", "0.66020215", "0.65841216", "0.6364115", "0.6349817", "0.6290244", "0.623084", "0.61599565", "0.61357313", "0.60573936", "0.59503204", "0.5879538", "0.58049405", "0.5789022", "0.5789022", "0.57843155", "0.578323", "0.5769759...
0.6460415
6
schema_url string schema_url = 10;
public com.google.protobuf.ByteString getSchemaUrlBytes() { java.lang.Object ref = schemaUrl_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); schemaUrl_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public abstract String getSchemaURI();", "void schema(String schema);", "void schema(String schema);", "public Builder setSchemaUrl(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n schemaUrl_ = value;\n onChanged();\n return this...
[ "0.71473914", "0.69847476", "0.69847476", "0.66282034", "0.6600492", "0.6582395", "0.645873", "0.6363657", "0.6349423", "0.629031", "0.6230005", "0.61581266", "0.6135941", "0.6057086", "0.5879001", "0.5803982", "0.5788181", "0.5788181", "0.5784742", "0.5783416", "0.5770439", ...
0.5948576
14
schema_url string schema_url = 10;
public Builder setSchemaUrl( java.lang.String value) { if (value == null) { throw new NullPointerException(); } schemaUrl_ = value; onChanged(); return this; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public abstract String getSchemaURI();", "void schema(String schema);", "void schema(String schema);", "Builder addSchemaVersion(URL value);", "@java.lang.Override\n public java.lang.String getSchemaUrl() {\n java.lang.Object ref = schemaUrl_;\n if (ref instanceof java.lang.String) {\n return (...
[ "0.7147353", "0.6984463", "0.6984463", "0.66020215", "0.65841216", "0.6460415", "0.6364115", "0.6349817", "0.6290244", "0.623084", "0.61599565", "0.61357313", "0.60573936", "0.59503204", "0.5879538", "0.58049405", "0.5789022", "0.5789022", "0.57843155", "0.578323", "0.5769759...
0.6629155
3
schema_url string schema_url = 10;
public Builder clearSchemaUrl() { schemaUrl_ = getDefaultInstance().getSchemaUrl(); onChanged(); return this; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public abstract String getSchemaURI();", "void schema(String schema);", "void schema(String schema);", "public Builder setSchemaUrl(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n schemaUrl_ = value;\n onChanged();\n return this...
[ "0.7147353", "0.6984463", "0.6984463", "0.6629155", "0.66020215", "0.65841216", "0.6460415", "0.6364115", "0.6349817", "0.6290244", "0.623084", "0.61599565", "0.61357313", "0.60573936", "0.59503204", "0.5879538", "0.58049405", "0.5789022", "0.5789022", "0.57843155", "0.578323...
0.0
-1
schema_url string schema_url = 10;
public Builder setSchemaUrlBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); schemaUrl_ = value; onChanged(); return this; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public abstract String getSchemaURI();", "void schema(String schema);", "void schema(String schema);", "public Builder setSchemaUrl(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n schemaUrl_ = value;\n onChanged();\n return this...
[ "0.7147353", "0.6984463", "0.6984463", "0.6629155", "0.66020215", "0.65841216", "0.6460415", "0.6364115", "0.6349817", "0.6290244", "0.623084", "0.61599565", "0.61357313", "0.60573936", "0.59503204", "0.5879538", "0.58049405", "0.5789022", "0.5789022", "0.57843155", "0.578323...
0.55581963
30
open_white_list repeated string open_white_list = 11;
public com.google.protobuf.ProtocolStringList getOpenWhiteListList() { return openWhiteList_.getUnmodifiableView(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "SList oddWords();", "public java.lang.String getOpenWhiteList(int index) {\n return openWhiteList_.get(index);\n }", "public int getOpenWhiteListCount() {\n return openWhiteList_.size();\n }", "public java.lang.String getOpenWhiteList(int index) {\n return openWhiteList_.get(index);\n }", "...
[ "0.55588835", "0.55229723", "0.54595375", "0.54238254", "0.5377577", "0.53646344", "0.52897197", "0.5288007", "0.5233525", "0.5225019", "0.521158", "0.5200129", "0.51884824", "0.5185825", "0.51782596", "0.51773864", "0.5151502", "0.5142657", "0.514163", "0.513604", "0.5130756...
0.4880256
38
open_white_list repeated string open_white_list = 11;
public int getOpenWhiteListCount() { return openWhiteList_.size(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "SList oddWords();", "public java.lang.String getOpenWhiteList(int index) {\n return openWhiteList_.get(index);\n }", "public int getOpenWhiteListCount() {\n return openWhiteList_.size();\n }", "public java.lang.String getOpenWhiteList(int index) {\n return openWhiteList_.get(index);\n }", "...
[ "0.55591595", "0.5524409", "0.54578066", "0.5425202", "0.5364262", "0.5288061", "0.5286694", "0.52332956", "0.5221815", "0.5211653", "0.5201803", "0.51848924", "0.518454", "0.5178811", "0.51761377", "0.5150973", "0.5141157", "0.5138997", "0.51366293", "0.5130912", "0.51279604...
0.53757787
4
open_white_list repeated string open_white_list = 11;
public java.lang.String getOpenWhiteList(int index) { return openWhiteList_.get(index); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "SList oddWords();", "public java.lang.String getOpenWhiteList(int index) {\n return openWhiteList_.get(index);\n }", "public int getOpenWhiteListCount() {\n return openWhiteList_.size();\n }", "public int getOpenWhiteListCount() {\n return openWhiteList_.size();\n }", "private LowercaseWord...
[ "0.55591595", "0.5524409", "0.54578066", "0.53757787", "0.5364262", "0.5288061", "0.5286694", "0.52332956", "0.5221815", "0.5211653", "0.5201803", "0.51848924", "0.518454", "0.5178811", "0.51761377", "0.5150973", "0.5141157", "0.5138997", "0.51366293", "0.5130912", "0.5127960...
0.5425202
3
open_white_list repeated string open_white_list = 11;
public com.google.protobuf.ByteString getOpenWhiteListBytes(int index) { return openWhiteList_.getByteString(index); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "SList oddWords();", "public java.lang.String getOpenWhiteList(int index) {\n return openWhiteList_.get(index);\n }", "public int getOpenWhiteListCount() {\n return openWhiteList_.size();\n }", "public java.lang.String getOpenWhiteList(int index) {\n return openWhiteList_.get(index);\n }", "...
[ "0.55591595", "0.5524409", "0.54578066", "0.5425202", "0.53757787", "0.5364262", "0.5288061", "0.5286694", "0.52332956", "0.5221815", "0.5211653", "0.5201803", "0.51848924", "0.518454", "0.5178811", "0.51761377", "0.5150973", "0.5141157", "0.5138997", "0.51366293", "0.5130912...
0.4959684
32
open_white_list repeated string open_white_list = 11;
public Builder setOpenWhiteList( int index, java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensureOpenWhiteListIsMutable(); openWhiteList_.set(index, value); onChanged(); return this; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "SList oddWords();", "public java.lang.String getOpenWhiteList(int index) {\n return openWhiteList_.get(index);\n }", "public int getOpenWhiteListCount() {\n return openWhiteList_.size();\n }", "public java.lang.String getOpenWhiteList(int index) {\n return openWhiteList_.get(index);\n }", "...
[ "0.55588835", "0.55229723", "0.54595375", "0.54238254", "0.5377577", "0.53646344", "0.52897197", "0.5233525", "0.5225019", "0.521158", "0.5200129", "0.51884824", "0.5185825", "0.51782596", "0.51773864", "0.5151502", "0.5142657", "0.514163", "0.513604", "0.51307565", "0.512929...
0.5288007
7
open_white_list repeated string open_white_list = 11;
public Builder addOpenWhiteList( java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensureOpenWhiteListIsMutable(); openWhiteList_.add(value); onChanged(); return this; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "SList oddWords();", "public java.lang.String getOpenWhiteList(int index) {\n return openWhiteList_.get(index);\n }", "public int getOpenWhiteListCount() {\n return openWhiteList_.size();\n }", "public java.lang.String getOpenWhiteList(int index) {\n return openWhiteList_.get(index);\n }", "...
[ "0.55591595", "0.5524409", "0.54578066", "0.5425202", "0.53757787", "0.5364262", "0.5288061", "0.5286694", "0.5221815", "0.5211653", "0.5201803", "0.51848924", "0.518454", "0.5178811", "0.51761377", "0.5150973", "0.5141157", "0.5138997", "0.51366293", "0.5130912", "0.51279604...
0.52332956
8
open_white_list repeated string open_white_list = 11;
public Builder addAllOpenWhiteList( java.lang.Iterable<java.lang.String> values) { ensureOpenWhiteListIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, openWhiteList_); onChanged(); return this; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "SList oddWords();", "public java.lang.String getOpenWhiteList(int index) {\n return openWhiteList_.get(index);\n }", "public int getOpenWhiteListCount() {\n return openWhiteList_.size();\n }", "public java.lang.String getOpenWhiteList(int index) {\n return openWhiteList_.get(index);\n }", "...
[ "0.55591595", "0.5524409", "0.54578066", "0.5425202", "0.53757787", "0.5364262", "0.5288061", "0.5286694", "0.52332956", "0.5221815", "0.5211653", "0.5201803", "0.51848924", "0.518454", "0.5178811", "0.51761377", "0.5150973", "0.5141157", "0.5138997", "0.51366293", "0.5130912...
0.51279604
21
open_white_list repeated string open_white_list = 11;
public Builder clearOpenWhiteList() { openWhiteList_ = com.google.protobuf.LazyStringArrayList.EMPTY; bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "SList oddWords();", "public java.lang.String getOpenWhiteList(int index) {\n return openWhiteList_.get(index);\n }", "public int getOpenWhiteListCount() {\n return openWhiteList_.size();\n }", "public java.lang.String getOpenWhiteList(int index) {\n return openWhiteList_.get(index);\n }", "...
[ "0.55591595", "0.5524409", "0.54578066", "0.5425202", "0.53757787", "0.5364262", "0.5288061", "0.5286694", "0.52332956", "0.5221815", "0.5211653", "0.5201803", "0.51848924", "0.518454", "0.5178811", "0.51761377", "0.5150973", "0.5141157", "0.5138997", "0.51366293", "0.5127960...
0.5130912
20
open_white_list repeated string open_white_list = 11;
public Builder addOpenWhiteListBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); ensureOpenWhiteListIsMutable(); openWhiteList_.add(value); onChanged(); return this; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "SList oddWords();", "public java.lang.String getOpenWhiteList(int index) {\n return openWhiteList_.get(index);\n }", "public int getOpenWhiteListCount() {\n return openWhiteList_.size();\n }", "public java.lang.String getOpenWhiteList(int index) {\n return openWhiteList_.get(index);\n }", "...
[ "0.55588835", "0.55229723", "0.54595375", "0.54238254", "0.5377577", "0.53646344", "0.52897197", "0.5288007", "0.5233525", "0.5225019", "0.521158", "0.5200129", "0.51884824", "0.5185825", "0.51782596", "0.51773864", "0.5151502", "0.5142657", "0.514163", "0.513604", "0.5130756...
0.47237864
59
use_web_v2 bool user_web_v2 = 12;
@java.lang.Override public boolean getUserWebV2() { return userWebV2_; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@java.lang.Override\n public boolean getUserWebV2() {\n return userWebV2_;\n }", "public Builder setUserWebV2(boolean value) {\n \n userWebV2_ = value;\n onChanged();\n return this;\n }", "public boolean isWebSignupSupported()\n {\n return false;\n }", "public void se...
[ "0.74197036", "0.6900422", "0.57291615", "0.5685951", "0.55701023", "0.5427062", "0.5390331", "0.53485477", "0.52722657", "0.5243693", "0.52132434", "0.5166238", "0.51049083", "0.5103322", "0.50971246", "0.50955397", "0.5083663", "0.5081766", "0.5063107", "0.50076437", "0.498...
0.72402245
1
use_web_v2 bool user_web_v2 = 12;
public Builder setUserWebV2(boolean value) { userWebV2_ = value; onChanged(); return this; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@java.lang.Override\n public boolean getUserWebV2() {\n return userWebV2_;\n }", "@java.lang.Override\n public boolean getUserWebV2() {\n return userWebV2_;\n }", "public boolean isWebSignupSupported()\n {\n return false;\n }", "public void setWeb(String web) {\n\t\tthis.web = we...
[ "0.74197036", "0.72402245", "0.57291615", "0.5685951", "0.55701023", "0.5427062", "0.5390331", "0.53485477", "0.52722657", "0.5243693", "0.52132434", "0.5166238", "0.51049083", "0.5103322", "0.50971246", "0.50955397", "0.5083663", "0.5081766", "0.5063107", "0.50076437", "0.49...
0.6900422
2
use_web_v2 bool user_web_v2 = 12;
public Builder clearUserWebV2() { userWebV2_ = false; onChanged(); return this; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@java.lang.Override\n public boolean getUserWebV2() {\n return userWebV2_;\n }", "@java.lang.Override\n public boolean getUserWebV2() {\n return userWebV2_;\n }", "public Builder setUserWebV2(boolean value) {\n \n userWebV2_ = value;\n onChanged();\n return this;\n }", ...
[ "0.74197036", "0.72402245", "0.6900422", "0.57291615", "0.5685951", "0.55701023", "0.5427062", "0.5390331", "0.53485477", "0.52722657", "0.5243693", "0.52132434", "0.5166238", "0.51049083", "0.5103322", "0.50971246", "0.50955397", "0.5083663", "0.5081766", "0.5063107", "0.500...
0.49899334
21
This method creates the velocity using two given values.
public Velocity(double dx, double dy) { this.dx = dx; this.dy = dy; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected void calcVelocity()\n\t{}", "public void addVelocity(double var1, double var3, double var5)\n {}", "void addVelocityValue(int velocityValue);", "public static void initVelocity() {\n }", "private void calculateVelocity() {\n\t\tthis.velocity = Math.sqrt((this.roughRange *this.roughRange...
[ "0.6764221", "0.66798747", "0.64465785", "0.64170015", "0.63181245", "0.62923926", "0.62038153", "0.6180991", "0.6156389", "0.6148896", "0.6148896", "0.6148896", "0.60644346", "0.60337335", "0.60102445", "0.59849524", "0.59849524", "0.5982526", "0.596721", "0.5954076", "0.593...
0.60475373
14
This method finds the x value of the velocity.
public double getX() { return this.dx; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public double getVelocityX() {\n\t\treturn velocity.getX();\n\t}", "public int getVelX() {\r\n\t\treturn velX;\r\n\t}", "public int getXVelocity()\r\n {\r\n return xVel;\r\n }", "@Basic\n\tpublic double getXVelocity(){\n\t\treturn this.xVelocity;\n\t}", "double getVx() { return vel[0]; }", "...
[ "0.8181994", "0.775522", "0.77296937", "0.7661505", "0.7594851", "0.74448574", "0.7436043", "0.71945494", "0.71945494", "0.71945494", "0.71223485", "0.70764124", "0.70370007", "0.7031732", "0.70009696", "0.6983447", "0.6932696", "0.6883826", "0.68802714", "0.68802714", "0.688...
0.0
-1
This method finds the y value of the velocity.
public double getY() { return this.dy; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public double getVelocityY() {\n\t\treturn velocity.getY();\n\t}", "@Basic\n\tpublic double getYVelocity(){\n\t\treturn this.yVelocity;\n\t}", "public double getYVel() {\n return this.yVel;\n }", "public double getY_vel() {\n return this.y_vel;\n }", "public double getY() {\n return po...
[ "0.84682554", "0.7979984", "0.79103494", "0.77649283", "0.756366", "0.75249934", "0.75125605", "0.7483108", "0.7453787", "0.7423675", "0.74198556", "0.74182236", "0.74130464", "0.740397", "0.740397", "0.740397", "0.73907167", "0.7364688", "0.73558855", "0.7347505", "0.7342042...
0.73294413
22
This method Take a point with position (x,y) and return a new point with position (x+dx, y+dy).
public Point applyToPoint(Point p) { double newX = p.getX() + this.dx; double newY = p.getY() + this.dy; Point newP = new Point(newX, newY); return newP; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Point applyToPoint(Point p) {\n return new Point(this.dx + p.getX(), this.dy + p.getY());\n }", "public Point applyToPoint(Point p) {\r\n return new Point(p.getX() + this.dx, p.getY() + this.dy);\r\n }", "public Point applyToPoint(Point p) {\n double newX = p.getX() + this.dx;...
[ "0.76203305", "0.7537962", "0.7508211", "0.73979384", "0.69587255", "0.67730427", "0.66520023", "0.66457057", "0.658741", "0.65378237", "0.6458168", "0.64228123", "0.64149565", "0.63574487", "0.63255423", "0.6324741", "0.6294691", "0.62926185", "0.6248068", "0.6246032", "0.62...
0.741565
3
This method takes the given angle and speed and calculates the new velocity.
public static Velocity fromAngleAndSpeed(double angle, double speed) { angle -= 90; angle *= Math.PI / (180); double dx = Math.cos(angle) * speed; double dy = Math.sin(angle) * speed; return new Velocity(dx, dy); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static Velocity fromAngleAndSpeed(double angle, double speed) {\n double adjustAngle = angle - 90;\n double nextX = speed * Math.cos(Math.toRadians(adjustAngle));\n double nextY = speed * Math.sin(Math.toRadians(adjustAngle));\n return new Velocity(nextX, nextY);\n }", "...
[ "0.7781995", "0.7376984", "0.73603696", "0.7334631", "0.73236156", "0.72523385", "0.71382403", "0.7040417", "0.6939214", "0.65873057", "0.65224534", "0.6423757", "0.63872546", "0.6377203", "0.63748705", "0.63674587", "0.62813735", "0.626896", "0.62594223", "0.62346137", "0.62...
0.74982196
1
Creates a wishlist when one product is added to the list when created
public void createWishlist(Customer customer, Product product) { wishlistService.createWishlist(customerRepository.findByID(customer.getAccountID()), product); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void addToWish( String product_id, String product_name,String product_brand, String product_img,\n String product_price,String product_desc, String product_discount, String product_varieties )\n {\n boolean isAdded = mDatabaseFavorite.insert(product_id, product_name,product_brand, p...
[ "0.68621844", "0.66126657", "0.6509239", "0.6442504", "0.63522744", "0.62494", "0.620287", "0.61932844", "0.6187796", "0.61844385", "0.6090344", "0.6033382", "0.6011386", "0.60055786", "0.595488", "0.5950408", "0.5911955", "0.58621323", "0.5855522", "0.58550847", "0.5835971",...
0.7342396
0
Creates a wishlist where a list of products are added
public void createWishlist(Customer customer, List<Product> products) { wishlistService.createWishlist(customer, products); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void createWishlist(Customer customer, Product product) {\n wishlistService.createWishlist(customerRepository.findByID(customer.getAccountID()), product);\n }", "public void addToWish( String product_id, String product_name,String product_brand, String product_img,\n String produc...
[ "0.7122358", "0.651448", "0.63058555", "0.61067426", "0.6074461", "0.6058832", "0.60531706", "0.6020588", "0.60151875", "0.5992828", "0.59651214", "0.59225625", "0.5915555", "0.58716357", "0.58282036", "0.5810215", "0.57918304", "0.57821214", "0.57712287", "0.57347614", "0.57...
0.67998236
1
Adds a product in the wishlist to the basket
public boolean addProductToBasket(Product product, Order order) { int quantity = orderService.getQuanity(product); return orderService.addProductToBasket(order, product, quantity); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void addToBasket(Product product){\n\n Purchaseitem purchaseitem = new Purchaseitem();\n purchaseitem.setProduct(product.getId());\n purchaseitem.setProductByProduct(product);\n boolean toAdd = false;\n if(basket.isEmpty()){\n purchaseitem.setQuantity(1);\n ...
[ "0.74823666", "0.7384696", "0.72202086", "0.72041744", "0.7196659", "0.71107113", "0.70778465", "0.7077733", "0.7057597", "0.70433336", "0.7027093", "0.69127387", "0.69031525", "0.68544126", "0.6796001", "0.6714306", "0.66847914", "0.66629934", "0.66433793", "0.6634368", "0.6...
0.69882417
11
Overloading addProductToWishlist method because a customer object can be passed or the account ID. Accounting for both just in case.
public void addProductToWishlist(Product product, long accountId) { wishlistService.addProduct(product, accountId); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void createWishlist(Customer customer, Product product) {\n wishlistService.createWishlist(customerRepository.findByID(customer.getAccountID()), product);\n }", "public void addProduct(String c, String p){\n\t\ttry {\n\t\t\tif(!hasProduct(c, p)){\n\t\t\t\tfor (int i = 0; i < list.size(); i++) {\...
[ "0.67713076", "0.62201416", "0.62050766", "0.61647797", "0.6045408", "0.59377414", "0.5902292", "0.5842125", "0.5758569", "0.56887805", "0.5681336", "0.5651447", "0.55857253", "0.55750227", "0.55700386", "0.5560664", "0.5537476", "0.5408699", "0.53974277", "0.5374806", "0.537...
0.70542073
0
Removes a product from the wishlist
public void removeProductFromWishlist(Product product, long accountId) { wishlistService.removeProduct(product, accountId); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void removeProduct(Product product);", "public void removeProductFromWishlist(ProductItem product, User user) {\n this.removeProductFromWishlist(product, this.getWishlistByUser(user));\r\n }", "public boolean removeProductFromWishlist(String productId) {\n\t\t// TODO Auto-generated method stub\n\t\t...
[ "0.7854557", "0.7781033", "0.7559853", "0.7166714", "0.70788425", "0.69765097", "0.6958109", "0.6921097", "0.6911045", "0.6834603", "0.6821955", "0.681741", "0.6785931", "0.6726021", "0.6723925", "0.6698523", "0.6694231", "0.66266346", "0.6553828", "0.6538818", "0.64892226", ...
0.73369396
3
Driver a bit forward to help the pulley get on zipline
public void traverseZipline(){ this.driver.setForwardSpeed(150); this.driver.forward(); // Note: rotations are negative because motor is built the wrong way // Rotate slowly for the first third of the rotations this.pulleyMotor.setSpeed(80); this.pulleyMotor.rotate(-2160); // Rotate quicker for the second third of the rotations this.pulleyMotor.setSpeed(120); this.pulleyMotor.rotate(-2160); // Rotate slowly for the last third of the rotations this.pulleyMotor.setSpeed(80); this.pulleyMotor.rotate(-2160); // Move a bit forward to move away from zipline this.driver.forward(2,false); this.driver.setForwardSpeed(120); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public int processShipment(AascShipmentOrderInfo aascShipmentOrderInfo, \n AascShipMethodInfo aascShipMethodInfo, \n AascIntlInfo aascIntlInfo, \n AascProfileOptionsBean aascProfileOptionsInfo, \n ...
[ "0.55502033", "0.55124986", "0.540913", "0.534908", "0.5249587", "0.5185976", "0.5170498", "0.5167153", "0.51620996", "0.51551324", "0.5154414", "0.5133109", "0.5089098", "0.50843304", "0.5079168", "0.5057817", "0.5056311", "0.5018516", "0.5017369", "0.500986", "0.5004555", ...
0.6599041
0
If this instance is the cluster leader, it has to notify all other members about unreachable member because this allows the unreachable member to get known about the fact it is not reachable by the cluster. As a consequence, the unreachable member can stop processing events as it is not considered by the cluster anymore.
@Override public void onMemberUnreachable(final Member member) { if(clusterReadView.isLeader()){ LOGGER.info("I AM the LEADER and I am notifying other Scoop aware clients about [unreachableMember={}]", member); final Event event = new Event(); event.setEventType(UNREACHABLE_MEMBER_EVENT_TYPE); event.setOrderingKey("scoop-system"); // TODO better ordering key? final HashMap<String, Object> metadata = Maps.newHashMap(); metadata.put("id", UUID.randomUUID().toString()); final Map<String, String> bodyMap = Maps.newHashMap(); bodyMap.put(UNREACHABLE_MEMBER_EVENT_BODY_KEY, member.address().toString()); event.setBody(bodyMap); postEvent(scoopTopic, event); } else { LOGGER.debug("received event about [unreachableMember={}] but I am NOT the LEADER -> ignored", member); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public synchronized void memberRemoved(MembershipEvent membershipEvent) {\n membershipEvent.getMember().getUuid();\n System.out.println(String.format(\"Member Removed: %s - %s \",\n membershipEvent.getMember().getUuid(), membershipEvent.getMember().toString()));\n\n s...
[ "0.63174975", "0.59447664", "0.58907473", "0.58026", "0.5784551", "0.57415", "0.56398517", "0.56316185", "0.55382305", "0.5506402", "0.54558736", "0.5369602", "0.536739", "0.5363647", "0.5293856", "0.5263795", "0.5200489", "0.5169342", "0.51601356", "0.51317394", "0.50984037"...
0.7824962
0
This is called as a part of the startup for the startup. When running an application that is on the web application, the api.reader is started by the startup script.
@Override public boolean initializeIndexReader(String filename) { try { READER = DirectoryReader.open(FSDirectory.open(FileSystems.getDefault().getPath(filename))); } catch (IOException e) { READER = null; log.error("Failed to instantiate the index api.reader with directory: " + filename); } return isInitialized(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void startup() {\n }", "public void start() {\n\t\tinstanceConfigUpdated();\n\n\t\tnew Thread(getUsageData, \"ResourceConsumptionManager : GetUsageData\").start();\n\n\t\tLoggingService.logInfo(MODULE_NAME, \"started\");\n\t}", "@Override\n protected void appStart() {\n }", "...
[ "0.571409", "0.5669818", "0.5668037", "0.56441724", "0.5624003", "0.5619296", "0.5548093", "0.55429476", "0.55394584", "0.552132", "0.5490218", "0.54795563", "0.5477608", "0.5454746", "0.5448295", "0.542936", "0.5397698", "0.5393064", "0.53754324", "0.5372027", "0.53670126", ...
0.53032213
29
Default initializer for the index api.reader. Initializes the index to the default index directory.
public boolean initializeIndexReader() { return initializeIndexReader(Constants.INDEX_DIRECTORY); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private static RDFIndex createDefaultIndex() {\n defaultIndex = new RDFIndex(com.hp.hpl.jena.graph.Factory.createGraphMem());\n try {\n File indexFile = new File(INDEX_FILE);\n if(indexFile.exists()) {\n defaultIndex.read(new FileReader(indexFile),Constants.RESOUR...
[ "0.7367817", "0.719441", "0.709601", "0.67163837", "0.6704583", "0.64590293", "0.63617086", "0.63259465", "0.63155323", "0.626168", "0.62450707", "0.6160141", "0.61351204", "0.61067873", "0.6072199", "0.60606515", "0.59928656", "0.5974996", "0.5955831", "0.59224844", "0.59068...
0.6667731
5
Create the wizard panel descriptor.
public CreateProjectPanel() { isFinished = true; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public GuidedWizardPanel()\r\n\t{\t\r\n\t\tVerticalPanel panel = new VerticalPanel();\r\n\t\t\r\n\t\twizardPanel = new WizardPanel(panelList, groupLabels);\r\n\t\twizardPanel.addSaveListener(this);\r\n\t\tpanel.add(wizardPanel);\r\n\r\n\t\t// set up listener relationships\r\n\t\tsolvingForPanel.addSolvingForListen...
[ "0.6532063", "0.649443", "0.6451428", "0.64321166", "0.63148355", "0.6274365", "0.61855626", "0.6086988", "0.6071722", "0.60396606", "0.6017307", "0.599177", "0.5957932", "0.59572333", "0.5918871", "0.58403766", "0.5807674", "0.57938355", "0.5781276", "0.57465565", "0.5733979...
0.51873195
87
add wings first so that the body is on top (stacking order)
@Override protected void buildGraphics() { GArc rightWing = new GArc(100, 100, -60, 120); rightWing.setColor(Color.magenta); rightWing.setFilled(true); rightWing.setFillColor(Color.magenta); // position in format (cx - r, cy - r) for arc getGraphics().add(rightWing, (-15 - 50), (0 - 50)); GArc leftWing = new GArc(100, 100, 120, 120); leftWing.setColor(Color.magenta); leftWing.setFilled(true); leftWing.setFillColor(Color.magenta); getGraphics().add(leftWing, (-15 - 50), (0 - 50)); GOval rightWingDot = new GOval(-3, -15, 30, 30); rightWingDot.setColor(Color.blue); rightWingDot.setFilled(true); rightWingDot.setFillColor(Color.blue); getGraphics().add(rightWingDot); GOval rightWingDot2 = new GOval(7, -5, 10, 10); rightWingDot2.setColor(Color.cyan); rightWingDot2.setFilled(true); rightWingDot2.setFillColor(Color.cyan); getGraphics().add(rightWingDot2); GLine rightWingLine = new GLine(-15, 0, 35, 0); rightWingLine.setColor(Color.green); getGraphics().add(rightWingLine); GOval leftWingDot = new GOval(-57, -15, 30, 30); leftWingDot.setColor(Color.blue); leftWingDot.setFilled(true); leftWingDot.setFillColor(Color.blue); getGraphics().add(leftWingDot); GOval leftWingDot2 = new GOval(-47, -5, 10, 10); leftWingDot2.setColor(Color.cyan); leftWingDot2.setFilled(true); leftWingDot2.setFillColor(Color.cyan); getGraphics().add(leftWingDot2); GLine leftWingLine = new GLine(-15, 0, -65, 0); leftWingLine.setColor(Color.green); getGraphics().add(leftWingLine); GOval body = new GOval(-20, -30, 10, 60); body.setColor(Color.black); body.setFilled(true); body.setFillColor(Color.black); getGraphics().add(body); GOval head = new GOval(-23, -43, 16, 16); head.setColor(Color.black); head.setFilled(true); head.setFillColor(Color.black); getGraphics().add(head); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void forward() {\n\t\t\n\t\tif(hasEaten()) {\n\t\t\taddBodyPart();\n\t\t} else {\n\t\t\tshuffleBody();\n\t\t}\n\t\t\n\t\tthis.setLocation(this.getX()+dX, this.getY()+dY); // move head\n\t\tthis.display(w); \n\t}", "private void addStackBlocks() {\n\n for (int x = numBlocks; x > 0; x--) {\n\n ...
[ "0.55779785", "0.5492563", "0.53148717", "0.530275", "0.5290536", "0.5208017", "0.51921946", "0.5145585", "0.5141743", "0.50715643", "0.5031577", "0.50275064", "0.49745455", "0.49604023", "0.49486077", "0.4883306", "0.4868216", "0.48657545", "0.48567796", "0.4855657", "0.4841...
0.0
-1
TODO Autogenerated method stub
@Override public void mouseEntered(MouseEvent e) { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExr...
[ "0.6671074", "0.6567672", "0.6523024", "0.6481211", "0.6477082", "0.64591026", "0.64127725", "0.63762105", "0.6276059", "0.6254286", "0.623686", "0.6223679", "0.6201336", "0.61950207", "0.61950207", "0.61922914", "0.6186996", "0.6173591", "0.61327106", "0.61285484", "0.608016...
0.0
-1
TODO Autogenerated method stub
@Override public void mouseExited(MouseEvent e) { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExr...
[ "0.6671074", "0.6567672", "0.6523024", "0.6481211", "0.6477082", "0.64591026", "0.64127725", "0.63762105", "0.6276059", "0.6254286", "0.623686", "0.6223679", "0.6201336", "0.61950207", "0.61950207", "0.61922914", "0.6186996", "0.6173591", "0.61327106", "0.61285484", "0.608016...
0.0
-1
TODO Autogenerated method stub
@Override public void mousePressed(MouseEvent e) { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExr...
[ "0.6671074", "0.6567672", "0.6523024", "0.6481211", "0.6477082", "0.64591026", "0.64127725", "0.63762105", "0.6276059", "0.6254286", "0.623686", "0.6223679", "0.6201336", "0.61950207", "0.61950207", "0.61922914", "0.6186996", "0.6173591", "0.61327106", "0.61285484", "0.608016...
0.0
-1
TODO Autogenerated method stub
@Override public void mouseReleased(MouseEvent e) { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExr...
[ "0.6671074", "0.6567672", "0.6523024", "0.6481211", "0.6477082", "0.64591026", "0.64127725", "0.63762105", "0.6276059", "0.6254286", "0.623686", "0.6223679", "0.6201336", "0.61950207", "0.61950207", "0.61922914", "0.6186996", "0.6173591", "0.61327106", "0.61285484", "0.608016...
0.0
-1
Native methods for encryption and decryption (called from library)
private native void dll_encrypt(String path_in, String path_out, byte[] npub, byte[] key, int alg);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "Encryption encryption();", "private native int native_crypt(long cookie, byte[] in, int inOffset,\n byte[] out, int outOffset, boolean encrypt);", "public interface AES {\n\n public String encrypt(String strToEncrypt);\n\n public String decrypt(String strToDecrypt);\n\n...
[ "0.78033316", "0.7196333", "0.68628544", "0.6835665", "0.66329694", "0.6607961", "0.65652496", "0.65434116", "0.6518727", "0.6513501", "0.6512354", "0.64939916", "0.6480463", "0.6478903", "0.6467168", "0.6441225", "0.6413682", "0.6352005", "0.63429195", "0.63272333", "0.63031...
0.74556035
1
hex string => byte array
public static byte[] hexStringToByteArray(String s) { int len = s.length(); byte[] data = new byte[len / 2]; for (int i = 0; i < len; i += 2) { data[i / 2] = (byte) ((Character.digit(s.charAt(i), 16) << 4) + Character.digit(s.charAt(i+1), 16)); } return data; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private static byte[] hexStringToByteArray(String s) {\n\t\tint len = s.length();\n\t\tbyte[] data = new byte[len / 2];\n\t\tfor (int i = 0; i < len; i += 2) {\n\t\t\tdata[i / 2] = (byte) ((Character.digit(s.charAt(i), 16) << 4)\n\t\t\t\t\t+ Character.digit(s.charAt(i+1), 16));\n\t\t}\n\t\treturn data;\n\t}", "p...
[ "0.78981173", "0.7844114", "0.77499837", "0.77304935", "0.77235943", "0.7703884", "0.7696479", "0.76925945", "0.7656743", "0.7644211", "0.7643416", "0.76340324", "0.76316345", "0.76299196", "0.762399", "0.7619368", "0.76151603", "0.76082146", "0.76049924", "0.74738836", "0.74...
0.76296306
14
/ Main function arg0 file to encrypt arg1 path to encrypted file storage arg2 path to decrypted file storage arg3 algorithm number to choose (0,1,2 supported for now)
public static void main(String[] args) { /* algorithms to choose: 0 - ASCON 1 - AESOTRS 2 - AESOTRP ------ not yet supported ------ 3 - Acorn 4 - Keyak 5 - OCB 6 - Norx 7 - Deoxys 8 - Ketje 9 - AEZ 10 - MORUS */ // enter input file path String path_in = args[0]; // enter encrypted output file path String path_out = args[1]; // enter decrypted output file path String path_out2 = args[2]; // Algorithm number int alg = Integer.parseInt(args[3]); // enter key (in this case 16B) byte[] key = hexStringToByteArray("00112233445566778899aabbccddeeff"); // enter nonce (int his case 16B) byte[] nonce = hexStringToByteArray("00112233445566778899aabbccddeeff"); // call encryption function which will do the rest and output the file new JNI().dll_encrypt(path_in, path_out, nonce, key, alg); // invoke the native method new JNI().dll_decrypt(path_out, path_out2, nonce, key, alg); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static void main(String[] args){\n\n String mode = \"enc\";\n String data = \"\";\n String out = \"\";\n String path;\n String alg = \"unicode\";\n int key = 0;\n\n try {\n for (int i = 0; i < args.length; i++) {\n if (args[i].equals...
[ "0.73419243", "0.71161914", "0.70042616", "0.6918492", "0.6894503", "0.6742086", "0.6739729", "0.67135674", "0.66428137", "0.65915114", "0.65852773", "0.65426207", "0.64657515", "0.6444077", "0.6435011", "0.63888204", "0.6348294", "0.63410646", "0.63036776", "0.6291497", "0.6...
0.72211325
1
computes distance between two points. Latitude and longitude are defined in decimal degree, integer (float value multiply by 100000)
public static int getDistance(int paramLatSrc, int paramLongSrc, int paramLatDest, int paramLongDest) { double longSrc,latSrc,longDest,latDest, sinLongDist, sinLatDist, a, b; latSrc = Math.toRadians((double) paramLatSrc / 100000); longSrc = Math.toRadians((double)paramLongSrc / 100000); latDest = Math.toRadians((double)paramLatDest / 100000); longDest = Math.toRadians((double)paramLongDest / 100000); sinLongDist = Math.sin((longDest - longSrc)/2); sinLatDist = Math.sin((latDest - latSrc)/2); a = (sinLatDist*sinLatDist) + (Math.cos(latSrc)*Math.cos(latDest)*sinLongDist*sinLongDist); b = 2 * atan2(Math.sqrt(a) , Math.sqrt(1-a)); return (int) Math.floor(6378137 * b); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private double distance(double lat1, double lon1, double lat2, double lon2) {\n double theta = lon1 - lon2;\r\n double dist = Math.sin(deg2rad(lat1)) * Math.sin(deg2rad(lat2)) + Math.cos(deg2rad(lat1)) * Math.cos(deg2rad(lat2)) * Math.cos(deg2rad(theta));\r\n dist = Math.acos(dist);\r\n ...
[ "0.7448692", "0.73552454", "0.72768337", "0.7235169", "0.7186779", "0.71532345", "0.7147838", "0.7106134", "0.71013844", "0.70739937", "0.7070854", "0.70641035", "0.7031217", "0.7031127", "0.7025441", "0.7017174", "0.7001896", "0.6988134", "0.6970832", "0.6955408", "0.6915867...
0.61967987
82
Get specialties objects available to the patient
@FXML public void specialtyCombo() throws ClassNotFoundException, NullPointerException, SQLException, InstantiationException, IllegalAccessException { DAODoctorSpecialty dao = new DAODoctorSpecialty(); specialtyList = dao.getAllDescription(this.userId); //Prevent onChange behavior specialtyComboBox.setOnAction(null); //Clear items specialtyComboBox.getItems().clear(); //Set converter specialtyComboBox.setConverter(new StringConverter<Specialty>() { @Override public String toString(Specialty object) { return object.getDescription(); } @Override public Specialty fromString(String string) { return null; } }); //Set items specialtyComboBox.setItems(FXCollections.observableArrayList(specialtyList)); //Select one item in the combo specialtyComboBox.getSelectionModel().select(selectedComboSpecialty); //Set onChange behavior specialtyComboBox.setOnAction((event) -> { try { switchSpecialty(); } catch (ClassNotFoundException | SQLException | IllegalAccessException | InstantiationException | FileNotFoundException e) { e.printStackTrace(); } }); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public List<Specialisation> getAllSpecialisations() {\n\t\tSession session = factory.openSession();\r\n\t\tList<Specialisation> specialisations = new ArrayList<Specialisation>();\r\n\r\n\t\ttry {\r\n\t\t\tspecialisations= session.createQuery(\"FROM Specialisation\").list();\r\n\t\t} catch (HibernateException e) {\...
[ "0.6367863", "0.6066509", "0.5967917", "0.58578324", "0.58364964", "0.56016546", "0.5554539", "0.5481184", "0.5444588", "0.5422911", "0.53991765", "0.5393651", "0.53870726", "0.5337464", "0.53299826", "0.532691", "0.5279058", "0.52604544", "0.52322835", "0.52233505", "0.52178...
0.0
-1
/ Get the username with two first names
@Override public void initialize(URL url, ResourceBundle rb) { String name; String[] nameSplitted = user.getUserName().split(" "); if (nameSplitted.length > 1) { name = nameSplitted[0] + " " + nameSplitted[1]; } else { name = nameSplitted[0]; } userName.setText(name); /* * Specialty ComboBox */ try { specialtyCombo(); } catch (ClassNotFoundException | NullPointerException | InstantiationException | SQLException | IllegalAccessException e) { e.printStackTrace(); } /* * Doctor ComboBox */ try { doctorCombo(); } catch (ClassNotFoundException | NullPointerException | InstantiationException | SQLException | IllegalAccessException e) { e.printStackTrace(); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "java.lang.String getFirstName();", "java.lang.String getFirstName();", "public java.lang.String getFirstName();", "java.lang.String getUsername();", "java.lang.String getUsername();", "java.lang.String getUsername();", "java.lang.String getUsername();", "java.lang.String getUsername();", "java.lang...
[ "0.7238141", "0.7238141", "0.6812666", "0.6785645", "0.6785645", "0.6785645", "0.6785645", "0.6785645", "0.6785645", "0.6785645", "0.6785645", "0.6785645", "0.6736211", "0.66744924", "0.66576666", "0.66576666", "0.66576666", "0.665363", "0.66450286", "0.66160715", "0.6610462"...
0.0
-1
Encode the user information as a string.
public String encode() { if (password != null) return new StringBuffer() .append(user) .append(COLON) .append(password) .toString(); else return user; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static String encode(User user) {\n StringBuilder out = new StringBuilder();\n out.append(user.id).append(FIELD_SEPARATOR);\n out.append(user.isEnabled()).append(FIELD_SEPARATOR);\n out.append(Base64.encodeBase64String(user.name.getBytes())).append(FIELD_SEPARATOR);\n out....
[ "0.72077155", "0.68546", "0.68457186", "0.67812496", "0.67386264", "0.6697105", "0.66965896", "0.65885544", "0.6566731", "0.65517944", "0.6532273", "0.6528184", "0.649604", "0.6491248", "0.6452366", "0.6449778", "0.64443773", "0.64211726", "0.64191675", "0.64027923", "0.63859...
0.78947437
0
Clear the password field.
public void clearPassword() { this.password = null; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void clearPassword() {\n\t\tpassword.setValue(\"\");\n\t}", "private void clearPassword() {\n \n password_ = getDefaultInstance().getPassword();\n }", "private void clearPassword() {\n \n password_ = getDefaultInstance().getPassword();\n }", "public Builder clearP...
[ "0.9028416", "0.877828", "0.877828", "0.8229203", "0.809782", "0.809782", "0.80965424", "0.8051325", "0.8015859", "0.8015859", "0.8015859", "0.79919153", "0.7978757", "0.793601", "0.77924675", "0.76381725", "0.76381725", "0.7588451", "0.74913067", "0.73385704", "0.72797364", ...
0.8706472
3
Gets the user type (which can be set to TELEPHONE_SUBSCRIBER or USER)
public int getUserType() { return userType; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String getUserType() {\n\t\treturn _userType;\n\t}", "public String getUserType() {\n return userType;\n }", "public String getUserType() {\n return userType;\n }", "public String getUserType() {\n return userType;\n }", "public String getUserType() {\n return us...
[ "0.842639", "0.8386166", "0.8386166", "0.8386166", "0.8386166", "0.79563415", "0.7947286", "0.79265535", "0.7910455", "0.7596263", "0.75579125", "0.75351155", "0.75025004", "0.7255982", "0.7239858", "0.7225479", "0.71619004", "0.7083694", "0.70784795", "0.7018042", "0.7001887...
0.8313722
5