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
Created by mycom on 2018/3/12.
public interface IUserService { public void select(); public void update(); public void insert(); public void delect(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void perish() {\n \n }", "private stendhal() {\n\t}", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\r...
[ "0.6045938", "0.5994293", "0.5742296", "0.57383937", "0.57279277", "0.5652337", "0.5652337", "0.5637958", "0.5572891", "0.55696666", "0.55586046", "0.5556214", "0.5555514", "0.5555514", "0.5555514", "0.5555514", "0.5555514", "0.5555514", "0.55487716", "0.5531316", "0.5493069"...
0.0
-1
This method was generated by MyBatis Generator. This method sets the value of the database column HZD_BALANCE.BALANCE_ID
public void setWalletId(Long walletId) { this.walletId = walletId; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public synchronized double setBalanceForAccId(int AccId, double bal) {\n\t\tConnection dbAccess = DataAccess.getDbAccess();\n\t\tPreparedStatement psttmnt;\n\t\tString querySting;\n\t\tdouble balance = -1.0;\n\t\ttry {\n\t\t\tquerySting = \"UPDATE accounts SET acc_balance = \" + bal + \" WHERE acc_id = \" + AccId;...
[ "0.65393525", "0.6356108", "0.6356108", "0.6318363", "0.62819785", "0.62150127", "0.61942405", "0.61942405", "0.61681736", "0.6142864", "0.61093456", "0.6087146", "0.6065414", "0.60616994", "0.59676087", "0.5921689", "0.59050524", "0.5902455", "0.58981925", "0.5882443", "0.58...
0.0
-1
This method was generated by MyBatis Generator. This method returns the value of the database column HZD_BALANCE.USER_ID
public Long getUserId() { return userId; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public BigDecimal getUserId() {\r\n return userId;\r\n }", "public ResultSet retBalance(Long userid) throws SQLException {\n\trs=DbConnect.getStatement().executeQuery(\"Select balance from account where accno=\"+userid+\"\");\r\n\treturn rs;\r\n}", "public Integer getUser_id() {\n\t\treturn user_id;\...
[ "0.64549327", "0.63934344", "0.6210864", "0.6174411", "0.611319", "0.6087718", "0.60755455", "0.6047651", "0.60461926", "0.60461926", "0.60461926", "0.60461926", "0.60461926", "0.60461926", "0.60461926", "0.60461926", "0.60461926", "0.60461926", "0.60461926", "0.60461926", "0...
0.0
-1
This method was generated by MyBatis Generator. This method sets the value of the database column HZD_BALANCE.USER_ID
public void setUserId(Long userId) { this.userId = userId; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected void initUserAccount(String userServer, long userId, String userName, String balanceId) {\r\n\t\tDataCollection.remove(userServer, \"finance\", \"bill_\" + userId, new BasicDBObject());\r\n\t\tBasicDBObject oField = null;\r\n\t\tif (StringUtil.isEmpty(balanceId)) {\r\n\t\t\toField = new BasicDBObject().a...
[ "0.6279982", "0.6247058", "0.6194111", "0.617137", "0.6051838", "0.59722203", "0.5957132", "0.591315", "0.58751297", "0.5857939", "0.5854443", "0.5829794", "0.5794817", "0.5788226", "0.57696605", "0.57696605", "0.57696605", "0.57696605", "0.57485694", "0.5748476", "0.5723628"...
0.53505874
91
This method was generated by MyBatis Generator. This method returns the value of the database column HZD_BALANCE.MONEY
public BigDecimal getMoney() { return money; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public double getBankMoney(){\n double total = 0.0;\n for(Coin c : bank){\n total += c.getValue();\n }\n return total;\n }", "BigDecimal getClosingDebitBalance();", "public Money getTotalBalance();", "BigDecimal getOpeningDebitBalance();", "BigDecimal getOpeningDeb...
[ "0.65793824", "0.6502551", "0.6391795", "0.6371437", "0.6371437", "0.62764627", "0.62764627", "0.62764627", "0.62686455", "0.6226868", "0.62198776", "0.6198973", "0.6198973", "0.6190295", "0.61887085", "0.61887085", "0.6177321", "0.61228335", "0.61228335", "0.6114535", "0.609...
0.6323159
7
This method was generated by MyBatis Generator. This method sets the value of the database column HZD_BALANCE.MONEY
public void setMoney(BigDecimal money) { this.money = money; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void updateMoney() {\n balance = mysql.getMoney(customerNumber);\n balanceConverted = (float) balance / 100.00;\n }", "public void setMoney(BigDecimal money) {\n this.money = money;\n }", "public void setMoney(BigDecimal money) {\n this.money = money;\n }", "publi...
[ "0.66333187", "0.62740153", "0.62740153", "0.62740153", "0.6234209", "0.6156261", "0.6094607", "0.60925967", "0.6079014", "0.6079014", "0.6047067", "0.6029623", "0.59796786", "0.59796786", "0.59490293", "0.58731097", "0.58586234", "0.5846638", "0.58457804", "0.58297074", "0.5...
0.63329566
3
This method was generated by MyBatis Generator. This method returns the value of the database column HZD_BALANCE.STATUS
public Byte getStatus() { return status; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "io.opencannabis.schema.commerce.CommercialOrder.OrderStatus getStatus();", "io.opencannabis.schema.commerce.CommercialOrder.OrderStatus getStatus();", "@Enumerated(EnumType.STRING)\n@Column(name = \"STATUS\", length = EntityWithId.COLUMNLENGTH)\n \n @NotNull(message = \"{NotNull.gov.nih.nci.calims2.domain.ad...
[ "0.6345733", "0.6345733", "0.62386227", "0.622733", "0.6166729", "0.6076803", "0.6065161", "0.60496897", "0.60014945", "0.5966337", "0.59431934", "0.59039634", "0.59039634", "0.5896328", "0.5896328", "0.5896328", "0.588903", "0.588903", "0.588903", "0.588903", "0.588903", "...
0.0
-1
This method was generated by MyBatis Generator. This method sets the value of the database column HZD_BALANCE.STATUS
public void setStatus(Byte status) { this.status = status; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void setBidded(){\n this.status = \"Bidded\";\n }", "public void updateStatus() {\n\n //loading the driver\n try {\n Class.forName(\"com.mysql.jdbc.Driver\");\n } catch (Exception e) {\n e.printStackTrace();\n }\n\n //database variables\n...
[ "0.59157413", "0.56977904", "0.5694711", "0.56431955", "0.5642901", "0.5593511", "0.5572126", "0.55123955", "0.55121267", "0.5484189", "0.5472675", "0.5461467", "0.54497766", "0.54497766", "0.5449343", "0.544354", "0.54405355", "0.5436221", "0.5436221", "0.5436221", "0.543622...
0.5413957
51
This method was generated by MyBatis Generator. This method returns the value of the database column HZD_BALANCE.PAY_PASSWORD
public String getPayPassword() { return payPassword; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String getBankPassword() {\n return bankPassword;\n }", "public String getBankPassword() {\n return bankPassword;\n }", "public String getAccountPassword() {\n return accountPassword;\n }", "public String getAccountPassword() {\n return accountPassword;\n }", "public String...
[ "0.66592187", "0.65495443", "0.6466896", "0.64580274", "0.6443897", "0.6391927", "0.6383025", "0.6366727", "0.6321884", "0.62568", "0.61699116", "0.61491567", "0.61402917", "0.6113375", "0.6113375", "0.6113375", "0.6113375", "0.6113375", "0.6113375", "0.6113375", "0.6088482",...
0.69009256
1
This method was generated by MyBatis Generator. This method sets the value of the database column HZD_BALANCE.PAY_PASSWORD
public void setPayPassword(String payPassword) { this.payPassword = payPassword == null ? null : payPassword.trim(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setBankPassword(String value) {\n this.bankPassword = value;\n }", "public String getPayPassword() {\r\n return payPassword;\r\n }", "public String getPayPassword() {\r\n return payPassword;\r\n }", "public void setAccountPassword(String value) {\n this.accountPassword ...
[ "0.66257703", "0.6249301", "0.6249301", "0.61529", "0.6077189", "0.60060287", "0.59462875", "0.591515", "0.5890587", "0.5847851", "0.5830543", "0.58080775", "0.57821125", "0.577705", "0.57605994", "0.5741464", "0.57202363", "0.5690645", "0.56706434", "0.5666505", "0.56577134"...
0.59747505
7
Private constructor to hide default
private BeanAnnotationUtils() { super(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private Default()\n {}", "defaultConstructor(){}", "@SuppressWarnings(\"unused\")\n public NoConstructor() {\n // Empty\n }", "void DefaultConstructor(){}", "private Instantiation(){}", "private Rekenhulp()\n\t{\n\t}", "private Util()\n {\n // Empty default cto...
[ "0.7883724", "0.77926433", "0.76846474", "0.7626556", "0.75714576", "0.75536364", "0.7404144", "0.7354553", "0.727307", "0.7271066", "0.7270541", "0.71808314", "0.7177108", "0.7169986", "0.71362287", "0.7135409", "0.7108077", "0.70946145", "0.70820564", "0.7081095", "0.707996...
0.0
-1
Retrieves the specified typelevel annotation, if any, from the bean instance.
public static <A extends Annotation> A getAnnotationFromInstance(Class<A> annotationType, Object instance) { return instance.getClass().getAnnotation(annotationType); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@PropertyGetter(role = ANNOTATION)\n\t<A extends Annotation> CtAnnotation<A> getAnnotation(\n\t\t\tCtTypeReference<A> annotationType);", "Annotation getAnnotation();", "private Optional<AnnotatedMember> getMemberForType(AnnotatedType annotatedType) {\n\n String currentPropertyName = annotatedType.getPropert...
[ "0.58793736", "0.54880774", "0.53696656", "0.53434056", "0.5182682", "0.51242524", "0.5123482", "0.5120728", "0.5013212", "0.50100636", "0.49741706", "0.49562308", "0.49411857", "0.49254164", "0.48462474", "0.4842717", "0.4778955", "0.4775286", "0.47458193", "0.47347164", "0....
0.57422966
1
Retrieves the first method on the bean instance marked with a methodlevel annotation of the specified type.
public static Method getAnnotatedMethodFromInstance(Class<? extends Annotation> methodAnnotationClass, Object instance) { Method result = null; for (Method method : instance.getClass().getMethods()) { if (method.isAnnotationPresent(methodAnnotationClass)) { result = method; break; } } return result; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private IMethod findMethod(IType type, String sourceMethod) throws JavaModelException {\n\t\tIMethod[] methods = type.getMethods();\r\n\t\tfor (IMethod method : methods) {\r\n\t\t\tif (sourceMethod.equals(method.getElementName())) {\r\n\t\t\t\treturn method;\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn null;\r\n\t}", "priv...
[ "0.56324464", "0.55574733", "0.5462383", "0.5087072", "0.5087072", "0.50517535", "0.50150865", "0.49934614", "0.49680936", "0.49312443", "0.49212894", "0.49168262", "0.4903668", "0.4862167", "0.48560128", "0.4853844", "0.4837008", "0.48311964", "0.48158696", "0.4741709", "0.4...
0.47719637
19
///int port = 50000;
public static void main(String[] args) { try { /////String host = InetAddress.getLocalHost().getHostName(); Socket client = new Socket("131.159.52.1", 50000); PrintWriter writer = new PrintWriter(client.getOutputStream()); BufferedReader reader = new BufferedReader(new InputStreamReader(client.getInputStream())); BufferedReader stdin = new BufferedReader(new InputStreamReader(System.in)); System.out.println(reader.readLine()); //read welcome message String message; while (true) { ////System.out.print("Enter message to echo or Exit to end : "); message = stdin.readLine(); if (message == null || message.equalsIgnoreCase("exit")) break; writer.println(message); writer.flush(); System.out.println(reader.readLine()); } client.close(); }catch (Exception ex) { System.out.println("Exception: "+ex); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "int getPort()\n {\n return port;\n }", "public int getPort(){\r\n return localPort;\r\n }", "public int getPort(){\r\n return localPort;\r\n }", "public int getPort() { return port; }", "p...
[ "0.7992634", "0.7868627", "0.7868627", "0.7845634", "0.7825016", "0.78210163", "0.77999806", "0.7741929", "0.773655", "0.773655", "0.7652645", "0.7615614", "0.7615614", "0.752388", "0.752388", "0.752388", "0.752388", "0.752388", "0.752388", "0.752388", "0.752388", "0.752388...
0.0
-1
Do something here if sensor accuracy changes
@Override public void onAccuracyChanged(Sensor sensor, int accuracy) { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void onAccuracyChanged(int sensor, int accuracy) {\n }", "public void onAccuracyChanged(Sensor sensor, int accuracy) {\n }", "public void onAccuracyChanged(Sensor sensor, int accuracy) {\n }", "public void onAccuracyChanged(Sensor sensor, int accuracy) {\n }", "public void onAccuracyChang...
[ "0.79187226", "0.78287077", "0.78287077", "0.78287077", "0.78287077", "0.7800047", "0.7799769", "0.7772933", "0.77539575", "0.7732319", "0.77194035", "0.7683841", "0.7683408", "0.7683408", "0.7680105", "0.76508963", "0.76508963", "0.76508963", "0.76436335", "0.7641197", "0.76...
0.7614757
37
RedisCommands com = redis.sync();
public static String generateId(String s){ String date = LocalDate.now().format(DateTimeFormatter.ofPattern("yyMMdd")); String key = s +"_" + date; //com.incr(key); redisTemplate.opsForValue().increment(key); Integer num = redisTemplate.opsForValue().get(key); return date + "-" + String.format("%08d",num); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "Object exec(Jedis jedis);", "public interface RedisService {\n\n boolean existsKey(String key);\n\n void removeKey(String key);\n\n void pushMsg(String key, String message);\n\n void setRedis(String key,String value,int second);\n\n String getRedisValue(String key);\n\n boolean acquireLock(Stri...
[ "0.6691131", "0.62365097", "0.59918797", "0.580722", "0.5767454", "0.56771314", "0.56575006", "0.5635509", "0.5631057", "0.5603007", "0.56012744", "0.559034", "0.54479617", "0.544503", "0.5438451", "0.5399867", "0.5397943", "0.538153", "0.53614557", "0.53174853", "0.53133905"...
0.0
-1
This map will locally (per mapper data) calculate all the frequencies for a given term \t docPath
public void reduce(Text key, Iterable<Text> docPaths, Context context) throws IOException, InterruptedException { HashMap<Text, Integer> map = new HashMap<Text, Integer>(); for (Text docPath : docPaths) { String[] tokens = docPath.toString().split("/"); String path = tokens[tokens.length - 1]; if (map.containsKey(new Text(key.toString() + "\t" + path))) { Integer frequency = map.get(new Text(key.toString() + "\t" + path)); map.put(new Text(key.toString() + "\t" + path), frequency + 1); } else { map.put(new Text(key.toString() + "\t" + path), 1); } } // Iterate through and write the results to the context (docId, wordcount) map.forEach((Text k, Integer v) -> { try { context.write(k, new IntWritable(v)); } catch (Exception e) { System.out.println("Error: Reducer write failed"); } }); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\t\t\tpublic long getDocumentFrequency(String term) {\n\t\t\t\treturn 0;\r\n\t\t\t}", "@Override\n public int getDocumentFrequencyByTerm(String term) {\n return 0;\n }", "abstract public int docFreq(Term t) throws IOException;", "@Override\n public int getTermFrequencyByDocument(...
[ "0.7089572", "0.7018697", "0.70149946", "0.6903755", "0.68933177", "0.6792649", "0.65603125", "0.6555631", "0.65150255", "0.6283897", "0.62685096", "0.62412184", "0.6208782", "0.62046903", "0.61990803", "0.61811274", "0.61788905", "0.61509407", "0.6124751", "0.6072612", "0.60...
0.66024125
6
Get the mouth position that pac man is in.
public int getMouthPosition() { return (mouthPosition); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Point getPacmanPosition() {\n throw new RuntimeException(\"Not Implemented\");\n }", "public Point getCameraOffset() {\n Point offset = new Point(getPlayer().getCenterX() - screenWidthMiddle,\n getPlayer().getCenterY() - screenHeightMiddle);\n reboundCameraOffset(offset, E...
[ "0.6317851", "0.6230003", "0.6009172", "0.5994361", "0.5946985", "0.589167", "0.5888932", "0.58855295", "0.5878692", "0.5870679", "0.5867097", "0.5864945", "0.5855793", "0.58491784", "0.58112216", "0.57814217", "0.5757478", "0.57549924", "0.5718138", "0.57117766", "0.5703865"...
0.8082031
0
Move the pac man mouth by cycling through the mouth positions. There are 6 positions total.
public void moveMouth() { mouthPosition++; if(mouthPosition > Integer.parseInt("5")) { mouthPosition = 0; } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void moveMhos() {\n\t\tmoveAllignedMhos();\n\t\tmoveDiagonalMhos();\n\t\tmoveHorizontalMhos();\n\t\tmoveVerticalMhos();\n\t\tmoveRemainingMhos();\n\t\tupdateMhoLocationList();\n\t}", "void move_couple() {\n\t\tfor(int i = 0; i < d; i++){\n\t\t\tif(dancers[i].soulmate == -1) continue;\n\t\t\tPoint curr = ...
[ "0.6359787", "0.6301896", "0.61886144", "0.6162717", "0.61291337", "0.60827893", "0.6028936", "0.6019815", "0.59917766", "0.59898025", "0.59681123", "0.59562975", "0.59447706", "0.5936873", "0.5936328", "0.59325254", "0.5908673", "0.5901869", "0.5894936", "0.5875526", "0.5857...
0.7428139
0
Close the pac man mouth by resetting the position to 0.
public void stopMoving() { mouthPosition = 0; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void close(){\n \tisClosed = true;\n \tClawAct.set(true);\n\t\tRobot.oi.armRumble(RUMBLE_DURATION);\n }", "@Override\r\n\tpublic void reset() {\n\t\tposition.set(0, 0);\r\n\t\talive = false;\r\n\t}", "protected void end() {\n \tRobot.hand.setWrist(0.0);\n }", "protected void goAway() {\...
[ "0.6291988", "0.59594476", "0.5765055", "0.5706916", "0.56608576", "0.561781", "0.5601304", "0.5593647", "0.55872667", "0.5578432", "0.5561866", "0.5528964", "0.5527686", "0.55185676", "0.55109155", "0.55085003", "0.54713756", "0.54626864", "0.5446283", "0.54344076", "0.54156...
0.6663405
0
Common use for this class, loading Strings
@Test public void loadStringsTest() { TestCase.assertEquals( 0, testObj.getSize() ); TestCase.assertEquals( testObj.insert( "foo" ), 0 ); TestCase.assertEquals( testObj.insert( "bar" ), 1 ); TestCase.assertEquals( testObj.insert( "baz" ), 2 ); TestCase.assertEquals( testObj.insert( "quux" ), 3 ); TestCase.assertEquals( 4, testObj.getSize() ); TestCase.assertEquals( testObj.getByteBlock( 2 ), "baz" ); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n protected void loadStrings() {\r\n \r\n mfile = settings.getProperty( \"mfile\" );\r\n rmode = settings.getProperty( \"rmode\" );\r\n cmap = settings.getProperty( \"cmap\" );\r\n cmapMin = Double.parseDouble( settings.getProperty( \"cmapMin\" ) );\r\n ...
[ "0.72035635", "0.7057109", "0.65986216", "0.6382296", "0.6382296", "0.6359515", "0.62357455", "0.62181413", "0.6198471", "0.6167754", "0.61333346", "0.61165243", "0.60970175", "0.607093", "0.6067893", "0.60586125", "0.60548586", "0.60257626", "0.5993784", "0.5993784", "0.5968...
0.6506986
3
A single action in different ways it's call polymorphism, for example; Polymorphism allows you define one interface and have multiple implementations.
public void InterestRate(){ System.out.println("Bank interest rate is not name "); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public abstract void action();", "public abstract void action();", "public abstract void action();", "public abstract void action();", "protected abstract void action(Object obj);", "abstract public void performAction();", "public interface Action {\n void buy();\n\n void sell();\n\n void drop...
[ "0.7631201", "0.7631201", "0.7631201", "0.7631201", "0.7380832", "0.72410065", "0.7194837", "0.7086532", "0.7071773", "0.6976989", "0.68900543", "0.688819", "0.688819", "0.688819", "0.6881686", "0.6854604", "0.6830866", "0.6794066", "0.6774207", "0.67703027", "0.67436326", ...
0.0
-1
====================================== = Getters & Setters = ======================================
public Long getId() { return id; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void get() {}", "@Override\n\tprotected void getData() {\n\t\t\n\t}", "@Override\r\n\tpublic void get() {\n\t\t\r\n\t}", "@Override\n\n // <editor-fold defaultstate=\"collapsed\" desc=\" UML Marker \"> \n // #[regen=yes,id=DCE.E1700BD9-298C-DA86-4BFF-194B41A6CF5E]\n // </editor-f...
[ "0.639728", "0.6370859", "0.6183266", "0.60698766", "0.60481596", "0.59978604", "0.59956235", "0.5963829", "0.5963829", "0.5963829", "0.5963829", "0.5963829", "0.5963829", "0.5956234", "0.58971536", "0.58952826", "0.5894228", "0.58923745", "0.5868238", "0.5861126", "0.5859458...
0.0
-1
Creates request wrapper from original requests.
public HttpRequestWrapper(HttpServletRequest req, ServletContext servletContext) { super(req); this.servletContext = servletContext; manager = (SessionManager)servletContext.getAttribute(Attributes.SESSION_MANAGER); ServletRequest originalRequest = req; while (originalRequest instanceof ServletRequestWrapper) { if (originalRequest instanceof HttpRequestWrapper) { break; } originalRequest = ((ServletRequestWrapper)originalRequest).getRequest(); } embeddedRequest = (originalRequest instanceof HttpRequestWrapper) ? (HttpRequestWrapper)originalRequest : null; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected HttpServletRequest modifyRequest(HttpServletRequest request) {\n return new HttpServletRequestWrapper(request) {\n @Override\n public String getRequestURI() {\n StringBuffer uri = new StringBuffer(this.getPathInfo());\n if (this.getQueryString()....
[ "0.6387608", "0.62526065", "0.6238219", "0.6154489", "0.61411935", "0.60141104", "0.601258", "0.6003688", "0.59465116", "0.59024006", "0.5802191", "0.57705593", "0.5761076", "0.57162523", "0.5674654", "0.5612771", "0.55534285", "0.55529976", "0.5527769", "0.5527769", "0.55093...
0.5888605
10
Returns responses associated to this request.
public HttpResponseWrapper getResponse() { return response; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public ArrayList<CIPsResponse> getResponsesList() {\n createAllResponses();\n return responsesList;\n }", "public synchronized Object getResponse() {\n Object[] resp = new Object[ responses.size() ] ;\n for (int i=0;i<responses.size();i++) {\n resp[i] = responses.get(i) ...
[ "0.6781895", "0.67380947", "0.6544528", "0.63746166", "0.6365023", "0.63492626", "0.63307583", "0.6182817", "0.6150456", "0.61369437", "0.611346", "0.6088889", "0.60354996", "0.60077757", "0.60077757", "0.5990887", "0.5986424", "0.5978301", "0.5962289", "0.5927489", "0.585534...
0.597594
18
Sets response associated to this request
public void setResponse(HttpResponseWrapper response) { this.response = response; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setResponse(T response) {\n this.response = response;\n }", "public void setResponse(int response) {\r\n this.response = response;\r\n }", "public void setResponse(String response) {\n this.response = response;\n }", "public void setResponse(String response) {\n ...
[ "0.79768974", "0.7515466", "0.7512257", "0.7512257", "0.74630654", "0.74519014", "0.735617", "0.73328954", "0.73328954", "0.73034555", "0.73034555", "0.73034555", "0.73034555", "0.7294347", "0.71895325", "0.7076514", "0.70344746", "0.7002445", "0.697978", "0.69097745", "0.689...
0.78125674
1
Callback to propagate session to response.
boolean propagateSession() { if (committed && !isDirty()) { return true; } if (getRepositoryBackedSession(false) == null) { setPropagateOnCreate(true); return false; } return doPropagateAndStoreIfFirstWrapper(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void filter(ContainerRequestContext requestContext,\n ContainerResponseContext responseContext) throws IOException {\n HttpSession session = requestManager.getHttpSession();\n\n session.keepAlive();\n sessionManager.save(session);\n\n NewCookie sessionCookie...
[ "0.64934826", "0.6367335", "0.63527554", "0.617484", "0.61713326", "0.61527663", "0.6080439", "0.6076965", "0.6063476", "0.603394", "0.5934232", "0.58608127", "0.5845045", "0.5843526", "0.5805714", "0.5793514", "0.57844526", "0.5768773", "0.57490414", "0.57438546", "0.5741107...
0.0
-1
Callback to commit session.
public void commit() { doCommit(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void commit(Session session);", "@Override\n\tpublic void commit() {\n\n\t}", "@Override\n public void commit() {\n }", "public void commit();", "public abstract void commit();", "void commit() {\n }", "public void commit() {\n }", "void commit();", "void commit();", "void storeSessio...
[ "0.7874127", "0.6763586", "0.67579913", "0.6651148", "0.66487706", "0.6639147", "0.6628137", "0.6617442", "0.6617442", "0.65490466", "0.6536568", "0.6485286", "0.64432013", "0.63822305", "0.6343646", "0.63353837", "0.6335077", "0.6289681", "0.6268965", "0.6261785", "0.6170085...
0.65441895
10
Stores session if it was created
void storeSession() { retrieveSessionIfNeeded(false); if (session != null) { try { session.commit(); } catch (Exception e) { // NOSONAR - some error occured, log it logger.warn("cannot store session: {}", session, e); throw e; } } else { logger.debug("session was null, nothing to commit"); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void store() {\n session=(HttpSession)getPageContext().getSession();\n session.setAttribute(\"remoteUser\", getRemoteUser());\n session.setAttribute(\"authCode\", getAuthCode());\n }", "@Override\n protected void onSaveInstanceState(Bundle outState) {\n super.onSaveInst...
[ "0.68060213", "0.6534302", "0.650897", "0.64416534", "0.63820744", "0.6355814", "0.63041806", "0.6267394", "0.6232763", "0.6226429", "0.620836", "0.62070054", "0.6202769", "0.61968356", "0.614085", "0.61114347", "0.61110944", "0.61084867", "0.6076495", "0.6052851", "0.6037150...
0.7571156
0
Returns true if session should be propagated on create.
public boolean isPropagateOnCreate() { return propagateOnCreate; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "boolean propagateSession() {\n if (committed && !isDirty()) {\n return true;\n }\n if (getRepositoryBackedSession(false) == null) {\n setPropagateOnCreate(true);\n return false;\n }\n return doPropagateAndStoreIfFirstWrapper();\n }", "public boolean isCreate() {\r\n\t\treturn contr...
[ "0.80052483", "0.6435621", "0.6263163", "0.6201359", "0.6134773", "0.6045244", "0.60354006", "0.60073584", "0.5947773", "0.5946357", "0.59416217", "0.5938521", "0.59164685", "0.5844818", "0.58243096", "0.58176214", "0.5816752", "0.5791265", "0.57180387", "0.57166", "0.5699291...
0.6523812
1
Called to encode URL. This is used when URL session propagation is used.
public String encodeURL(String url) { return manager.encodeUrl(this, url); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public String encodeURL(String url) {\n return this._getHttpServletResponse().encodeURL(url);\n }", "public abstract String encodeURL(CharSequence url);", "@Override\n\tpublic CharSequence encodeURL(CharSequence url)\n\t{\n\t\tif (httpServletResponse != null && url != null)\n\t\t{\n\t\...
[ "0.7967348", "0.7694393", "0.7506379", "0.7488471", "0.7399654", "0.73882675", "0.73279566", "0.7253894", "0.6949848", "0.6906333", "0.6896704", "0.6875057", "0.68591714", "0.68371254", "0.68358225", "0.6827379", "0.6765374", "0.6700718", "0.6626673", "0.6606202", "0.6545801"...
0.7544785
2
Log.v(TAG, "recieve: " + rmsdB + "dB");
@Override public void onRmsChanged(float rmsdB) { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void retrieveBitRate() {\n\n new Thread(new Runnable() {\n @Override\n public void run() {\n\n HashMap<String, String> metadata = new HashMap<>();\n\n MediaMetadataRetriever mediaMetadataRetriever = new MediaMetadataRetriever();\n me...
[ "0.6209644", "0.5983885", "0.59296006", "0.5904198", "0.5837486", "0.5782387", "0.5769196", "0.5754569", "0.5745915", "0.5725117", "0.5688529", "0.5660304", "0.5632894", "0.5627375", "0.56194025", "0.56049204", "0.56039065", "0.55432725", "0.5539882", "0.5539191", "0.5513998"...
0.7260661
0
TODO: Remove this, it is just a debugging option
public RDFReplayAgent() {//throws XMPPException { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static void debugInfo() { throw Extensions.todo(); }", "@Override\r\n\t\t\tpublic void debug(String arg) {\n\t\t\t\t\r\n\t\t\t}", "public void debug() {\n\n }", "@Override\n\tpublic void dump() {\n\t\t\n\t}", "private stendhal() {\n\t}", "@Override\n\tpublic String toStringDebug() {\n\t\treturn...
[ "0.6167628", "0.61579645", "0.60574657", "0.6028902", "0.5949183", "0.5915097", "0.58014053", "0.5796744", "0.5782236", "0.57749575", "0.5769314", "0.5727877", "0.56922597", "0.5688681", "0.5675099", "0.56365615", "0.5632739", "0.56303906", "0.56221473", "0.56191486", "0.5602...
0.0
-1
TODO: Could all of these static methods be rolled into a single "getAgentGateway" method, which returns an object which was initialised previously in the agent to interact with GWT?
public static String getAgraphUsername() { return "root"; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "Agent getAgent();", "public AGateway getGateway()\r\n/* 16: */ {\r\n/* 17:36 */ return this.gateway;\r\n/* 18: */ }", "org.beangle.security.session.protobuf.Model.Agent getAgent();", "private GRIDagent getTestAgent()\n {\n String agtID = \"testAgent001\",\n currentLink = ...
[ "0.6934508", "0.6859549", "0.6356419", "0.63122666", "0.62022036", "0.6046418", "0.60280555", "0.59532595", "0.5930216", "0.590925", "0.5888291", "0.5867793", "0.5827093", "0.58124584", "0.57962096", "0.57904434", "0.57654864", "0.5752023", "0.57338643", "0.57270545", "0.5698...
0.0
-1
TODO: Make this encrypted somehow?
public static void setAgraphPassword(String password) { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "Encryption encryption();", "public String encrypt() throws LRException\n\t{\n\t\treturn LUEncrypt.encrypt(getFields(),\n\t\t\t((DataHRecordData)getData()).encryptKey.getStringValue());\n\t}", "public doEncryptNotifdeEncode() {\n\t}", "@Override\n public String encrypt(String s) throws NotInAlphabetException...
[ "0.75621617", "0.6609193", "0.6575502", "0.6563185", "0.6502766", "0.6466505", "0.64564764", "0.6445965", "0.64308995", "0.6429514", "0.63601404", "0.6354806", "0.6305103", "0.62885016", "0.6278003", "0.6265799", "0.62487215", "0.6219181", "0.62009484", "0.62005657", "0.62001...
0.0
-1
Constructs an instance of InvalidJSONException with the specified detail message.
public InvalidJSONException(String msg) { super(msg); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public InvalidJsonException(String message) {\n\t\tsuper(message);\n\t}", "public JsonParseException _constructError(String msg) {\n return new JsonParseException(this, msg).withRequestPayload(this._requestPayload);\n }", "public InvalidJsonException() {\n\t\tsuper();\n\t}", "public JSONParsingExce...
[ "0.7328285", "0.6654923", "0.66361666", "0.65034235", "0.6399539", "0.616301", "0.6096665", "0.5799229", "0.576719", "0.5734348", "0.57148576", "0.56123674", "0.55737543", "0.5540443", "0.5530061", "0.5519148", "0.5504449", "0.5486219", "0.545794", "0.5455076", "0.54498917", ...
0.7629741
0
Base interface for Parser.
public interface Parser { /** * Parse and return List of EXIFContent. * @return */ public abstract List<EXIFContent> parse(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public interface Parser {\n\n}", "private Parser () { }", "public Parser() {}", "public interface IParser {\n\n /**\n * Coco/R generated function. It is used to inform parser about semantic errors.\n */\n void SemErr(String str);\n\n /**\n * Coco/R generated function for parsing input. T...
[ "0.78445107", "0.7504592", "0.7290184", "0.72194517", "0.70909303", "0.7012618", "0.697916", "0.69425815", "0.693585", "0.68816614", "0.68656635", "0.68255067", "0.6770761", "0.672874", "0.67164904", "0.67164904", "0.67164904", "0.67164904", "0.67164904", "0.67164904", "0.671...
0.6146262
54
Parse and return List of EXIFContent.
public abstract List<EXIFContent> parse();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public interface Parser {\r\n\r\n /**\r\n * Parse and return List of EXIFContent.\r\n * @return\r\n */\r\n public abstract List<EXIFContent> parse();\r\n\r\n}", "java.util.List<? extends com.yahoo.xpathproto.TransformTestProtos.ContentImageOrBuilder> \n getImagesByHandlerOrBuilderList();", "java...
[ "0.61635965", "0.56097835", "0.5607213", "0.5454323", "0.5411374", "0.53800905", "0.53321594", "0.5293609", "0.5270647", "0.52372396", "0.52007574", "0.513925", "0.51378983", "0.5119044", "0.5119044", "0.5109154", "0.50656366", "0.503096", "0.49828923", "0.49746394", "0.49685...
0.83842206
0
This function returns generated terrain mesh. Heights of the terrain are based on the Perlin noise.
public TerrainMesh generateTerrain() { float[] vertices = new float[(zVertexCount * xSize) * 9]; float[] colors = new float[(zVertexCount * xSize) * 8]; float[] normals = new float[(zVertexCount * xSize) * 8]; int[] indices = new int[(zVertexCount * xSize) * 3]; for(int x = 0; x < xSize; x++) { for(int z = 0; z < zSize; z++) { TerrainSquare square = new TerrainSquare(this, new Vector2f(x, z), new Vector3f(x == 0 ? 0 : size * x, 0 + getHeight(x, z), z == 0 ? 0 : size * z), null); square.setColor(biomeGenerator.getColors()[square.getSquareId()]); storeSquareVertices(vertices, square); storeSquareColors(colors, square); storeSquareNormals(normals, square); storeSquareIndices(indices, square); terrainSquareMap.put(square.getSquareIndex(), square); } } return new TerrainMesh(vertices, colors, normals, indices); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void createTerrain( ) {\n //System.out.println( \"terrain#material: \" +getAppearance().getMaterial() ); \n ElevationGridGenerator gridGenerator = new ElevationGridGenerator(\n getTerrainWidth(),\n ...
[ "0.6210956", "0.55430377", "0.54928935", "0.54500216", "0.54392534", "0.54248834", "0.53713477", "0.53084785", "0.52264327", "0.51902586", "0.5172634", "0.51541555", "0.5132586", "0.5066451", "0.5065469", "0.50323254", "0.5020745", "0.49778944", "0.4966977", "0.4964077", "0.4...
0.7498125
0
Called when a Block is rightclicked with this Item
@Nonnull @Override public EnumActionResult onItemUse(@Nonnull EntityPlayer player, World world, @Nonnull BlockPos pos, EnumHand hand, @Nonnull EnumFacing facing, float hitX, float hitY, float hitZ) { // don't place the slab if unable to edit ItemStack stack = player.getHeldItem(hand); if(stack.getCount() != 0 && player.canPlayerEdit(pos.offset(facing), facing, stack)) { // try placing the slab at the current position // note that this requires the slab to be extended on the side the block was clicked if(tryPlace(player, stack, world, pos, facing)) { return EnumActionResult.SUCCESS; } // otherwise. try and place it in the block in front else if(this.tryPlace(player, stack, world, pos.offset(facing), null)) { return EnumActionResult.SUCCESS; } return super.onItemUse(player, world, pos, hand, facing, hitX, hitY, hitZ); } else { return EnumActionResult.FAIL; } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\t\t\tpublic void onRightClick() {\n\t\t\t}", "@Override\r\n\tpublic void rightClick(MouseEvent arg0) {\n\t\t\r\n\t}", "@Override\n\tpublic void rightClick(MouseEvent e) {\n\n\t}", "@Override\r\n protected void handleMouseClick(Slot slotIn, int slotId, int clickedButton, int clickType){\r\n\t\t...
[ "0.7032815", "0.68074626", "0.67368186", "0.6671143", "0.6589355", "0.65698373", "0.65369487", "0.6489962", "0.6485496", "0.6485496", "0.6408463", "0.6399357", "0.63392556", "0.6306047", "0.6242531", "0.62242967", "0.61944723", "0.61777246", "0.61668134", "0.6164712", "0.6160...
0.0
-1
adds the "half=bottom" to the item model, so it does not error
@Override @SuppressWarnings("unchecked") @SideOnly(Side.CLIENT) public void registerItemModels() { final Item item = this; final ResourceLocation loc = ForgeRegistries.BLOCKS.getKey(block); for(T o : (Collection<T>) mappingProperty.getAllowedValues()) { int meta = block.getMetaFromState(block.getDefaultState().withProperty(mappingProperty, o)); String name = mappingProperty.getName(o); ModelLoader.setCustomModelResourceLocation(item, meta, new ModelResourceLocation(loc, "half=bottom," + mappingProperty.getName() + "=" + name)); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setBottom(int x) {\r\n bottomSide = x;\r\n }", "public void setBoundingBoxBottom(double value) {\n this.boundingBoxBottom = value;\n }", "@Override\n public boolean isGoodForBottom()\n {\n return false;\n }", "public int getBottomWeight(){\r\n\t \treturn thi...
[ "0.60145736", "0.57271606", "0.5673889", "0.55491614", "0.53406006", "0.5261188", "0.52480304", "0.5227628", "0.52208614", "0.518289", "0.5179356", "0.5162002", "0.51551276", "0.51419485", "0.51403606", "0.5139257", "0.5108001", "0.50913274", "0.50701773", "0.5052966", "0.504...
0.0
-1
Use this factory method to create a new instance of this fragment using the provided parameters.
public static ListTrackInspectors newInstance(String param1, String param2) { ListTrackInspectors fragment = new ListTrackInspectors(); Bundle args = new Bundle(); args.putString(ARG_PARAM1, param1); args.putString(ARG_PARAM2, param2); fragment.setArguments(args); return fragment; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static FragmentTousWanted newInstance() {\n FragmentTousWanted fragment = new FragmentTousWanted();\n Bundle args = new Bundle();\n fragment.setArguments(args);\n return fragment;\n }", "protected abstract Fragment createFragment();", "public void createFragment() {\n\n ...
[ "0.72579354", "0.7230664", "0.7111118", "0.6989669", "0.6988643", "0.6832622", "0.6828347", "0.6811571", "0.67998976", "0.67981213", "0.6764955", "0.6737489", "0.6737489", "0.672639", "0.67151165", "0.6705766", "0.6689923", "0.66892016", "0.668683", "0.6660643", "0.6643716", ...
0.0
-1
TODO: Rename method, update argument and hook method into UI event
public void onButtonPressed(Uri uri) { if (mListener != null) { mListener.onFragmentInteraction(uri); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\t\t\t\tpublic void handle(ActionEvent event) {\n\t\t\t\t}", "@Override\n\t\t\t\tpublic void handle(ActionEvent event) {\n\n\t\t\t\t}", "@Override\n\t\t\tpublic void handle(ActionEvent event) {\n\t\t\t\t\n\t\t\t}", "@Override\n\t\t\tpublic void handle(ActionEvent event) {\n\t\t\t\t\n\t\t\t}", "@...
[ "0.6619185", "0.65246344", "0.6473144", "0.6473144", "0.64351684", "0.6325494", "0.62368196", "0.6189416", "0.6158721", "0.61455715", "0.6123594", "0.6107332", "0.6101038", "0.6092755", "0.6049496", "0.6049496", "0.60442764", "0.604003", "0.604003", "0.6007846", "0.59999037",...
0.0
-1
This interface must be implemented by activities that contain this fragment to allow an interaction in this fragment to be communicated to the activity and potentially other fragments contained in that activity. See the Android Training lesson Communicating with Other Fragments for more information.
public interface OnFragmentInteractionListener { // TODO: Update argument type and name void onFragmentInteraction(Uri uri); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public interface OnFragmentInteractionListener {\n void onFragmentMessage(String TAG, Object data);\n}", "public interface FragmentInteraction {\n void switchToBoardView();\n void switchToPinsView();\n void switchToPins(PDKBoard pdkBoard);\n void switchToDescription(PDKPin pin);\n}", "public int...
[ "0.73253685", "0.7208221", "0.7135427", "0.7125134", "0.7122899", "0.7015074", "0.69772226", "0.69772226", "0.69772226", "0.69742674", "0.6968375", "0.6966134", "0.6961393", "0.69540805", "0.6943721", "0.69346327", "0.6930482", "0.692832", "0.69233596", "0.69116926", "0.69034...
0.0
-1
TODO: Update argument type and name
void onFragmentInteraction(Uri uri);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n public String getFirstArg() {\n return name;\r\n }", "@Override\n public int getNumberArguments() {\n return 1;\n }", "java.lang.String getArg();", "@Override\n public int getArgLength() {\n return 4;\n }", "Argument createArgument();", "@Override\r\n\tpublic ...
[ "0.7164074", "0.6946075", "0.6714363", "0.65115863", "0.63969076", "0.6375468", "0.63481104", "0.63162106", "0.6260299", "0.6208487", "0.6208487", "0.62070644", "0.6197276", "0.61806154", "0.6177103", "0.61530507", "0.61472267", "0.61243707", "0.60771817", "0.6054482", "0.599...
0.0
-1
TODO: Warning this method won't work in the case the id fields are not set
@Override public boolean equals(Object object) { if (!(object instanceof Ingredient)) { return false; } Ingredient other = (Ingredient) object; if ((this.ingredientid == null && other.ingredientid != null) || (this.ingredientid != null && !this.ingredientid.equals(other.ingredientid))) { return false; } return true; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void setId(Integer id) { this.id = id; }", "private Integer getId() { return this.id; }", "public void setId(int id){ this.id = id; }", "public void setId(Long id) {this.id = id;}", "public void setId(Long id) {this.id = id;}", "public void setID(String idIn) {this.id = idIn;}", "public void se...
[ "0.68948644", "0.6837785", "0.67038405", "0.6639133", "0.6639133", "0.65911627", "0.6576973", "0.6576973", "0.6573157", "0.6573157", "0.6573157", "0.6573157", "0.6573157", "0.6573157", "0.65598476", "0.65598476", "0.6543178", "0.6523156", "0.65143406", "0.6486455", "0.6475413...
0.0
-1
Singleton Get method for getting the same instance every time, while also providing the context.
public static ContactModel get(Context context) { if (sContactModel == null) { sContactModel = new ContactModel(context); } return sContactModel; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static Context getInstance(){\n\t\treturn (Context) t.get();\n\t}", "public static synchronized MyVolleySingleton getInstance(Context context) {\n if (singletonInstance == null) { // If Instance is null\n singletonInstance = new MyVolleySingleton(context); // Initialize new Instance\n ...
[ "0.7729964", "0.740888", "0.73581964", "0.73580426", "0.7236581", "0.71133137", "0.6937681", "0.69307566", "0.6880928", "0.68800765", "0.68765634", "0.68726605", "0.68429554", "0.68217766", "0.6807674", "0.674565", "0.67062145", "0.6692505", "0.6683891", "0.66611844", "0.6648...
0.0
-1
Constructor with Context from the outside, and instantiation of Database.
private ContactModel(Context context) { mContext = context.getApplicationContext(); mDatabase = new ContactBaseHelper(mContext) .getWritableDatabase(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private DatabaseContext() {\r\n datastore = createDatastore();\r\n init();\r\n }", "public Database(Context context)\n\t{\n\t\t/* Instanciation de l'openHelper */\n\t\tDBOpenHelper helper = new DBOpenHelper(context);\n\t\t\n\t\t/* Load de la database */\n\t\t//TODO passer en asynchrone pour les perfs\n\t\...
[ "0.84380955", "0.80774504", "0.7931019", "0.7801445", "0.7741273", "0.7716652", "0.76555794", "0.76284707", "0.75969374", "0.75681627", "0.75391287", "0.7494194", "0.74889773", "0.74585474", "0.7431362", "0.7423389", "0.7381209", "0.73595506", "0.7290601", "0.7288254", "0.728...
0.0
-1
The public GetAll method that handles db contact.
public List<ContactBE> getContacts() { List<ContactBE> contacts = new ArrayList<>(); try (ContactCurserWrapper cursor = queryContacts(null, null)) { cursor.moveToFirst(); while (!cursor.isAfterLast()) { contacts.add(cursor.getContact()); cursor.moveToNext(); } } return contacts; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tpublic List<T> getAll() {\n\t\treturn getDao().findAll();\n\t}", "public Collection<T> getAll() throws DaoException;", "@Override\n @Transactional\n public List<Contacts> findAll() {\n Session currentSession = entiyManager.unwrap(Session.class);\n\n //create the query\n\n ...
[ "0.75924087", "0.7485579", "0.7377271", "0.73333925", "0.72466433", "0.72028625", "0.7091517", "0.7081645", "0.7003492", "0.6952232", "0.6946217", "0.69369197", "0.69335103", "0.69320834", "0.69046414", "0.68904257", "0.68826354", "0.6880802", "0.68596196", "0.6852975", "0.68...
0.0
-1
Helper method for putting Content Values, for better cohesion.
private static ContentValues getContentValues(ContactBE contact) { ContentValues values = new ContentValues(); values.put(ContactTable.Cols.UUID, contact.getId().toString()); values.put(ContactTable.Cols.NAME, contact.getName()); values.put(ContactTable.Cols.ADDRESS, contact.getAddress()); values.put(ContactTable.Cols.LOCATION, contact.getLocation()); values.put(ContactTable.Cols.PHONE, contact.getPhoneNumber()); values.put(ContactTable.Cols.MAIL, contact.getMailAddress()); values.put(ContactTable.Cols.WEBSITE, contact.getWebsite()); values.put(ContactTable.Cols.BIRTHDAY, contact.getBirthDay()); values.put(ContactTable.Cols.PICTURE, contact.getPicture()); return values; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void setContent(\n String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n content_ = value;\n }", "private void setContent(\n String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n ...
[ "0.6220141", "0.6220141", "0.6193001", "0.6193001", "0.58487535", "0.5826571", "0.5814029", "0.5785849", "0.57663786", "0.5766123", "0.57629377", "0.57525945", "0.5747664", "0.573144", "0.57099235", "0.5681055", "0.56689245", "0.56665814", "0.5665677", "0.5630049", "0.5553549...
0.5229388
67
Method for Creation of a contact in the db.
public void addContact(ContactBE contact) { ContentValues values = getContentValues(contact); mDatabase.insert(ContactTable.NAME, null, values); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public com.vh.locker.ejb.Contact create(java.lang.Long id, java.lang.String name, java.lang.String nickName, java.lang.String phone, java.lang.String email, com.vh.locker.ejb.User anUser) throws javax.ejb.CreateException;", "@ApiMethod(name = \"createContact\", path = \"contact\", httpMethod = HttpMethod.POST)\n...
[ "0.76280046", "0.7095293", "0.69612557", "0.682761", "0.6711824", "0.67041266", "0.6556355", "0.65424573", "0.6541615", "0.64876366", "0.6463753", "0.6388367", "0.63795966", "0.637916", "0.63730943", "0.6362734", "0.6353018", "0.63155985", "0.62818134", "0.62637675", "0.62564...
0.6050704
34
Method for Updating a contact matching the UUID
public void updateContact(ContactBE contact) { String uuidString = contact.getId().toString(); ContentValues values = getContentValues(contact); mDatabase.update(ContactTable.NAME, values, ContactTable.Cols.UUID + " = ?", new String [] {uuidString}); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void updateContact(String id, int status);", "@Override\n\tpublic void update(Contact contact) throws Exception {\n\t\tObject[] params = contact.toEditArray();\n\t\tparams = ArrayUtils.add(params, contact.getId());\n\t\tupdate(\"update contact set customer=?, gender=?, age=?, position=?, phone=?, relation=? wher...
[ "0.7132857", "0.6946882", "0.69337153", "0.6597124", "0.6493558", "0.6362904", "0.60717225", "0.6005614", "0.597988", "0.59590006", "0.59458745", "0.59155375", "0.5905146", "0.5877454", "0.58672535", "0.5786449", "0.5760769", "0.57011884", "0.5700664", "0.5698702", "0.568211"...
0.77781177
0
Helper method for getting a CursorWrapper.
private ContactCurserWrapper queryContacts(String whereClause, String[] whereArgs) { Cursor cursor = mDatabase.query( ContactTable.NAME, null, // columns - null selects all columns whereClause, whereArgs, null, // groupBy, null, // having null // orderBy ); return new ContactCurserWrapper(cursor); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public CursorWrapper getCursor() {\n\t\t\treturn cursor;\n\t\t}", "public MyCursorWrapper(Cursor cursor) {\n super(cursor);\n }", "public abstract Cursor buildCursor();", "public abstract long getCursor();", "public CrimeCursorWrapper(Cursor cursor) {\n super(cursor);\n }", "@Override...
[ "0.72058165", "0.70720136", "0.68249685", "0.64232177", "0.63924766", "0.6141465", "0.6131672", "0.6066923", "0.60245115", "0.5972383", "0.58895946", "0.5843797", "0.5828043", "0.58129364", "0.5763126", "0.5689918", "0.56789666", "0.5625608", "0.56215465", "0.56182116", "0.55...
0.0
-1
Method for Deletion of a specific ContactBE
public void deleteContact(UUID id) { mDatabase.delete(ContactTable.NAME, ContactTable.Cols.UUID + " = ?", new String[] {id.toString()}); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void delete(Contact contact ) {\n\n mRepository.delete(contact);\n }", "@Override\r\n\tpublic void delContact(Contact contact) {\n\t\tsuper.delete(contact);\r\n\t}", "void deleteContact(String id, int position);", "public void delContact() \n\t{\n\t\tSystem.out.printf(\"%n--[ Delete Contact ...
[ "0.6934847", "0.6909265", "0.68508166", "0.6653502", "0.6570559", "0.6540021", "0.65340835", "0.6507553", "0.64786434", "0.64065534", "0.6379846", "0.6374231", "0.6347536", "0.6332083", "0.6303823", "0.6267845", "0.62674224", "0.62246007", "0.61921215", "0.61836165", "0.61706...
0.0
-1
List of requirement for a beverage
@Override public Map<Ingredient, Integer> getRequirementsForABeverage(String beverage){ return requirementSpecificationMap.get(beverage); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public abstract List<AbstractRequirement> getRequirements();", "public List<? extends Requirement> getRequirements();", "public Collection<Requirement> getGenericRequirements();", "ImmutableList<ResourceRequirement> getRequirements();", "protected void getRequires() {\n System.out.println(\"\\nRequir...
[ "0.7446574", "0.7081293", "0.6558332", "0.64778316", "0.6410712", "0.62650985", "0.61888397", "0.6129109", "0.60732", "0.5809023", "0.5788553", "0.5773877", "0.57405835", "0.57161933", "0.55857307", "0.5559235", "0.5507461", "0.5483521", "0.54484046", "0.5439369", "0.5422502"...
0.7121387
1
Current Inventory for a Ingredient
@Override public Integer getInventoryForAIngredient(Ingredient ingredient){ return beverageInventoryMap.get(ingredient); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Inventory getInventory(){ //needed for InventoryView - Sam\n return inventory;\n }", "public Inventory getInventory() {\r\n\t\treturn inventory;\r\n\t}", "public Inventory getInventory() {\n return inventory;\n }", "InventoryItem getInventoryItem();", "public Product getProductIn...
[ "0.738529", "0.73724484", "0.7306059", "0.72603905", "0.69304574", "0.69198275", "0.6681486", "0.66559684", "0.66499674", "0.65851045", "0.6565348", "0.65499353", "0.65213895", "0.6503511", "0.6468907", "0.64429927", "0.6399593", "0.63983315", "0.63908386", "0.63729703", "0.6...
0.77972656
0
Get user display name from a system name
@Override public String getBeverageDisplayName(String beverage) throws BeverageNotSupportedException { if(!beverageNameVsDisplayNameMap.containsKey(beverage)){ throw new BeverageNotSupportedException(String.format(Messages.NOT_SUPPORTED, beverage)); } return beverageNameVsDisplayNameMap.get(beverage); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "String getCurrentUserDisplayName() throws Exception;", "public static String getUserDisplayName() {\r\n return getUsername();\r\n }", "String getDisplay_name();", "public static String makeSystemName(String displayName) {\n\t\treturn displayName.toLowerCase().replaceAll(\"\\\\s+\", \"\");\n\t}", ...
[ "0.79209656", "0.7336115", "0.71687055", "0.70793414", "0.70163125", "0.6935619", "0.6935619", "0.6935619", "0.6935619", "0.6935619", "0.6935619", "0.68740964", "0.6838545", "0.6752833", "0.6752833", "0.67290735", "0.6665537", "0.66623014", "0.66623014", "0.66623014", "0.6662...
0.0
-1
To Remove an Ingredient Quantity
@Override public void removeIngredientQuantity(Ingredient ingredient, Integer removedValue){ Integer newValue = getInventoryForAIngredient(ingredient) - removedValue; beverageInventoryMap.put(ingredient, newValue); if(newValue<Constants.CRITICAL_LIMIT){ System.out.println(String.format(Messages.INGREDIENT_RUNNING_LOW, ingredient.getDisplayName())); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void unsetValueQuantity();", "void removeStock(int i);", "public void decreaseQuantity() {\n this.quantity--;\n this.updateTotalPrice();\n }", "public void unsetQuantity()\n {\n synchronized (monitor())\n {\n check_orphaned();\n get_store().remove_eleme...
[ "0.69162637", "0.6813856", "0.6743156", "0.6638437", "0.66184884", "0.6609026", "0.65717226", "0.6552", "0.6513993", "0.6390151", "0.6385891", "0.63847214", "0.63365954", "0.63204", "0.6287481", "0.62552744", "0.62469065", "0.62425184", "0.62270796", "0.62057084", "0.6182822"...
0.7093075
0
To Add an Ingredient Quantity
public void addIngredientQuantity(Ingredient ingredient, Integer addedValue){ beverageInventoryMap.put(ingredient, getInventoryForAIngredient(ingredient) + addedValue); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "org.hl7.fhir.Quantity addNewValueQuantity();", "public void addIngredient(String name, String sQuantity){\r\n int positionIngredient = findIngredientByName(name);\r\n double quantity = Double.parseDouble(sQuantity);\r\n\r\n if(positionIngredient != -1){\r\n quantity += ingredients...
[ "0.7479091", "0.74040025", "0.712093", "0.69717175", "0.6924691", "0.6799296", "0.67660093", "0.6705145", "0.66661733", "0.6658218", "0.6635641", "0.6548286", "0.64955723", "0.64090824", "0.6408518", "0.6394884", "0.6394624", "0.6385323", "0.63826746", "0.63796335", "0.637296...
0.7598446
0
Outlets of the system
public Integer getOutlets(){ return this.outlets; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void setUIComponents() {\n\t\tframe.setTitle(\"Departamento de ventas\");\n\t\tframe.setMinimumSize(new Dimension(700, 500));\n\n\t\t/*\n\t\t * Paneles externos. Solo hay que añadir en el bottomPanel\n\t\t */\n\t\tJPanel topPanel = new JPanel();\n\t\tframe.getContentPane().add(topPanel, BorderLayout.NORTH)...
[ "0.597564", "0.5791874", "0.57534266", "0.57144916", "0.57094467", "0.5641334", "0.5510576", "0.5489671", "0.5392636", "0.5392436", "0.5384222", "0.53617257", "0.53119004", "0.53112495", "0.52875525", "0.5277807", "0.5272298", "0.5270107", "0.5238796", "0.52263224", "0.522614...
0.64021116
0
To prevent singleton property
public Object clone() throws CloneNotSupportedException { throw new CloneNotSupportedException(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private PropertySingleton(){}", "private StaticProperty() {}", "@Serialize//(getName = \"property\")\r\n public boolean getIsSingleton()\r\n\t{\r\n\t\treturn _isSingleton; \r\n\t}", "@Override\n public boolean isSingleton() {\n return false;\n }", "private PropertyAccess() {\n\t\tsuper();\n...
[ "0.7379674", "0.6740267", "0.66774195", "0.6408479", "0.6353141", "0.6303817", "0.60992366", "0.60855854", "0.59242624", "0.58671534", "0.5829433", "0.58144295", "0.57725626", "0.5758482", "0.57573766", "0.57573766", "0.57454765", "0.5723561", "0.5677753", "0.56585544", "0.56...
0.0
-1
see instructions for populating array
private void populate() { ages = new int[] { 15, 18, 16, 16, 15, 16 }; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void populate ()\n\t{\n\t\t//create a random object\n\t\tRandom rand = new Random(); \n\t\t//for loop for row\n\t\tfor (int row =0; row < currentVersion.length; row++)\n\t\t{\t//for loop for column\n\t\t\tfor(int column = 0; column < currentVersion[row].length; column++)\n\t\t\t{\n\t\t\t\t//assign byte val...
[ "0.65990126", "0.6535613", "0.65281546", "0.6500059", "0.64428127", "0.6442098", "0.63197917", "0.6313235", "0.630353", "0.62489897", "0.6246741", "0.6230326", "0.62298286", "0.61879385", "0.6161527", "0.6125777", "0.6096164", "0.609288", "0.6084218", "0.6083853", "0.60682446...
0.6811178
0
The Java method will process HTTP GET requests
@GET // The Java method will produce content identified by the MIME Media type "text/plain" @Produces("text/plain") public String getClichedMessage() throws IOException { // Return some cliched textual content return readAPI(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void doGet( )\n {\n \n }", "void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException;", "@Override\n\tprotected void executeGet(GetRequest request, OperationResponse response) {\n\t}", "void getRequests();", "@Override\n\t\t\t\t\tpublic v...
[ "0.7068913", "0.6971673", "0.68313414", "0.67879885", "0.67789954", "0.6752962", "0.6738498", "0.6734777", "0.6728428", "0.6724527", "0.6724527", "0.67236114", "0.67154545", "0.67131424", "0.66901344", "0.66901344", "0.6674147", "0.66630334", "0.6662823", "0.66560876", "0.664...
0.0
-1
Data un immagine disegna la sua icona
public void Draw() { imgIcon = new ImageIcon(imgUrl); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setIcone(String icone) {\n this.icone = icone;\n }", "@Override\n public void mudarIcone(String enderecoImg, int botao) {\n throw new UnsupportedOperationException(\"Not supported yet.\"); //To change body of generated methods, choose Tools | Templates.\n }", "public ImageIco...
[ "0.7003227", "0.68413", "0.6554687", "0.65369904", "0.65369904", "0.649371", "0.6465062", "0.6436137", "0.6431396", "0.6416774", "0.63414764", "0.63414764", "0.62894636", "0.62498343", "0.61851245", "0.6184714", "0.61809397", "0.6127482", "0.61189705", "0.61152375", "0.610652...
0.0
-1
currency name hashcode will become stable id
@Override public long getItemId(int position) { return getItem(position).currencyName.hashCode(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public int hashCode() {\n return (name.ordinal() + 5) * 51;\n }", "Long getCurrencyId();", "public int hashCode(){\n return name.hashCode();\n }", "public byte[] id() {\n return Token.concat(Token.DOLLAR, name.internal());\n }", "public int getC_Currency_ID();", "@Override\n publ...
[ "0.6253041", "0.6161416", "0.6074067", "0.60464954", "0.6013363", "0.59892005", "0.598472", "0.59838504", "0.5973574", "0.59345657", "0.5905769", "0.5894347", "0.58918065", "0.58886427", "0.58827597", "0.5872365", "0.5864474", "0.5862691", "0.58569586", "0.58554745", "0.58541...
0.59406483
9
Init the data structure using the given array of strings as the dictionary. You can assume each word in the dictionary contains only the upper letters A thru z
public BoggleSolver(String[] dictionary) { wordsSoFar = new ArrayList<String>(); // 1. build the trie tree of the dictionary dict = new NewTrieSet(); for (String s : dictionary) { if (s.length() >= MIN_WORD_LENGTH) dict.add(s); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void buildDict(String[] dict) {\n for (String word : dict) {\n for (int i = 0; i < word.length(); i++) {\n String key = word.substring(0, i) + word.substring(i+1);\n int[] indexAndChar = new int[2];\n indexAndChar[0] = i;\n indexA...
[ "0.6877559", "0.6522838", "0.64714515", "0.64549416", "0.6431791", "0.6358713", "0.63447106", "0.63152283", "0.62148565", "0.6152647", "0.60681653", "0.6052073", "0.6048187", "0.5940477", "0.577716", "0.5765131", "0.56934154", "0.56650335", "0.5663734", "0.5633483", "0.562188...
0.61857843
9
returns the set of all valid words in the given Boggle board, as an Iterable.
public Iterable<String> getAllValidWords(BoggleBoard board) { int rows = board.rows(); int cols = board.cols(); ArrayList<String> all = new ArrayList<String>(); // 1. enumerate all strings that can be composed by adj dice for (int i = 0; i < rows; i++) { for (int j = 0; j < cols; j++) depthFirstSearch(board, i, j, all); } // 2. for each string, check the longest prefix // 2. store the word wordsSoFar = all; return wordsSoFar; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Iterable<String> getAllValidWords(final BoggleBoard board) {\n HashSet<String> validwords = new HashSet<>();\n for (int i = 0; i < board.rows(); i++) {\n for (int j = 0; j < board.cols(); j++) {\n boolean[][] marked = new boolean[board.rows()][board.cols()];\n ...
[ "0.85390127", "0.841897", "0.8405043", "0.83367795", "0.78819966", "0.66343653", "0.6509318", "0.6443213", "0.63641113", "0.63451815", "0.5952888", "0.5920711", "0.5914554", "0.56239754", "0.5608188", "0.56013006", "0.5596035", "0.5558414", "0.55261093", "0.5525141", "0.55173...
0.79580784
4
returns the score of the given word if it is in the dictionary, zero otherwise. you can assume the word contains only the uppercase letters A thru Z.
public int scoreOf(String word) { // 1. check if the word is in dictionary. dict.contains(word) is true or not // 2. calculate the score of the word int score = calScore(word); return score; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public int scoreOf(String word) {\n\t\tString noU = stripU(word);\n\t\treturn tst.contains(noU) ? tst.get(noU) : 0;\n\t}", "public int scoreOf(String word) {\n if (dictionary.contains(word)) {\n switch (word.length()) {\n case 0:\n case 1:\n case 2:\...
[ "0.80764574", "0.799889", "0.74905986", "0.7251311", "0.70965636", "0.70672184", "0.6785874", "0.6632876", "0.65948164", "0.6530494", "0.6496762", "0.6476467", "0.6408439", "0.6390092", "0.634747", "0.6319309", "0.62736475", "0.6265352", "0.62169534", "0.619561", "0.6189797",...
0.8344074
0
depth first search from v
private void dfs(BoggleBoard board, int row, int col, StringBuilder theWord, ArrayList<String> all, boolean[] marked) { int totalRow = board.rows(); int totalCol = board.cols(); char ch = board.getLetter(row, col); if (ch == 'Q') theWord.append("QU"); else theWord.append(ch); if (!dict.isPrefixValid(theWord.toString())) { theWord.deleteCharAt(theWord.length() - 1); if (ch == 'Q') theWord.deleteCharAt(theWord.length() - 1); return; } marked[row * totalCol + col] = true; // if such prefix exists in dictionary, if not, undo it for (int w : getAdj(row, col, totalRow, totalCol)) { if (!marked[w]) { dfs(board, w / totalCol, w % totalCol, theWord, all, marked); } } String s = theWord.toString(); if ((dict.contains(s)) && (!all.contains(s))) all.add(theWord.toString()); // reset the theWord and marked theWord.deleteCharAt(theWord.length() - 1); if (ch == 'Q') // delete one more character theWord.deleteCharAt(theWord.length() - 1); marked[row * totalCol + col] = false; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private static void depthFirstSearch(Vertex v, ArrayList<Vertex> visitedArrayList, Graph graph){\n visitedArrayList.add(v);\n Iterator<Vertex> iter=graph.getNeighbors(v).iterator();\n while (iter.hasNext()){\n Vertex v1=iter.next();\n if(!visitedArrayList.contains(v1)){\n...
[ "0.6926913", "0.66088396", "0.6416563", "0.63649285", "0.6312199", "0.6274202", "0.62473565", "0.6238824", "0.60654896", "0.60553706", "0.5991765", "0.5979297", "0.5954744", "0.5954744", "0.5948598", "0.59413123", "0.5909545", "0.58403605", "0.58403605", "0.58403605", "0.5840...
0.0
-1
This class was generated by the JAXWS RI. JAXWS RI 2.2.10 Generated source version: 2.2
@WebService(name = "CustomerSoapType", targetNamespace = "http://test.co.id/ws/customer/") @SOAPBinding(parameterStyle = SOAPBinding.ParameterStyle.BARE) @XmlSeeAlso({ ObjectFactory.class }) public interface CustomerSoapType { /** * Request All Customer * * @return * returns id.co.bca.ws.mbs.soap.customer.ListOfCustomerType */ @WebMethod(operationName = "GetAllCustomer") @WebResult(name = "GetAllCustomerResponse", targetNamespace = "http://test.co.id/ws/customer/", partName = "parameters") public ListOfCustomerType getAllCustomer(); /** * Insert Customer * * @param parameters * @return * returns java.lang.String */ @WebMethod(operationName = "InsertCustomer") @WebResult(name = "InsertCustomerResponse", targetNamespace = "http://test.co.id/ws/customer/", partName = "parameters") public String insertCustomer( @WebParam(name = "InsertCustomer", targetNamespace = "http://test.co.id/ws/customer/", partName = "parameters") CustomerType parameters); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@WebService(name = \"ZWSVUR_UPDSTATUS\", targetNamespace = \"urn:sap-com:document:sap:rfc:functions\")\r\npublic interface ZWSVURUPDSTATUS {\r\n\r\n\r\n /**\r\n * \r\n * @param iNROLIQ\r\n * @param eRETURN\r\n * @param iESTADO\r\n * @param eMESSAGE\r\n */\r\n @WebMethod(operationName ...
[ "0.6616532", "0.6540903", "0.63170415", "0.630866", "0.6290191", "0.6281742", "0.62623346", "0.62558806", "0.62499386", "0.62491506", "0.6230389", "0.6225547", "0.62244487", "0.6215638", "0.6213505", "0.6209828", "0.6205393", "0.6204818", "0.6198135", "0.61892027", "0.6185030...
0.6284974
5
return !str.matches("^[\u0000\u0080]+$"); Only keeping paragraphs: 1). Contains English character only. 2). Starts with an uppercase letter or the character ".
private boolean preTest(String str) { return str.matches("^[\"A-Z][\u0000-\u0080]+$"); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private boolean isValidString(String str){\r\n\t\tString allowedChars=\"! \\\" # $ % & ' ( ) * + , - . / 0 1 2 3 4 5 6 7 8 9 : ; < = > ? @ A B C D E F G H I J K L M N O P Q R S T U V W X Y Z [ \\\\ ] ^ _ ` a b c d e f g h i j k l m n o p q r s t u v w x y z { | } ~\";\r\n\t\tfor(int i=0;i<str.split(\"\").length;i+...
[ "0.67250264", "0.6583328", "0.6543956", "0.6374958", "0.62242234", "0.621542", "0.6181269", "0.6165507", "0.6162376", "0.6090867", "0.6082882", "0.60221803", "0.601021", "0.6009832", "0.5972037", "0.59584785", "0.5925173", "0.5899171", "0.58745265", "0.58379346", "0.58207417"...
0.67015123
1
This method is often declared statically.
public Pizza createPizza(String type) { Pizza pizza = null; if(type.equals("cheese")) { pizza = new CheesePizza(); } else if(type.equals("pepperoni")) { pizza = new PepperoniPizza(); } return pizza; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private stendhal() {\n\t}", "@Override\n public void func_104112_b() {\n \n }", "public void method_4270() {}", "protected boolean func_70814_o() { return true; }", "public final void mo51373a() {\n }", "@Override\n public void perish() {\n \n }", "private ArraySetHelpe...
[ "0.65694755", "0.64055467", "0.6258356", "0.61724913", "0.61301583", "0.6127766", "0.6102856", "0.6069492", "0.60145783", "0.60145783", "0.60042006", "0.5986172", "0.59791744", "0.597188", "0.59352326", "0.5910292", "0.59092766", "0.59086406", "0.59078383", "0.5896443", "0.58...
0.0
-1
Test existing zero statistics for not touched caches.
@Test public void testEmptyIOStat() throws Exception { IgniteEx ign = prepareIgnite(true); GridMetricManager mmgr = ign.context().metric(); checkEmptyStat(mmgr.registry(metricName(CACHE_GROUP.metricGroupName(), DEFAULT_CACHE_NAME)), CACHE_GROUP); checkEmptyStat(mmgr.registry(metricName(HASH_INDEX.metricGroupName(), DEFAULT_CACHE_NAME, HASH_PK_IDX_NAME)), HASH_INDEX); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test\n public void testCoh3710_isEmpty()\n {\n doExpiryOpTest(new Runnable()\n {\n public void run()\n {\n assertTrue(getNamedCache(getCacheName0()).isEmpty());\n }\n });\n }", "@Test\n public void testCoh37...
[ "0.69380826", "0.6658924", "0.625626", "0.60116196", "0.5916905", "0.59120476", "0.5876542", "0.58646125", "0.58635026", "0.5863485", "0.585584", "0.5855358", "0.5853733", "0.5853694", "0.5804845", "0.5803738", "0.58031565", "0.57857746", "0.57732177", "0.5754136", "0.5745171...
0.7053075
0
Test LOCAL_NODE statistics tracking for not persistent cache.
@Test public void testNotPersistentIOGlobalStat() throws Exception { ioStatGlobalPageTrackTest(false); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test\n public void testLocalStatistics() {\n ObjectStatisticsImpl stat1 = getStatistics();\n ObjectStatisticsImpl stat2 = getStatistics();\n\n repo.saveLocalStatistics(K1, stat1, AffinityTopologyVersion.ZERO);\n repo.saveLocalStatistics(K2, stat2, AffinityTopologyVersion.ZERO);\n\n ...
[ "0.6607758", "0.60954565", "0.6068883", "0.60664254", "0.6035814", "0.60291857", "0.5842367", "0.58102363", "0.57829964", "0.5750845", "0.5665301", "0.55806774", "0.549923", "0.54802155", "0.5460439", "0.5436629", "0.54113746", "0.53596956", "0.5340876", "0.53293926", "0.5327...
0.58436286
6
Test LOCAL_NODE statistics tracking for persistent cache.
@Test public void testPersistentIOGlobalStat() throws Exception { ioStatGlobalPageTrackTest(true); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test\n public void testLocalStatistics() {\n ObjectStatisticsImpl stat1 = getStatistics();\n ObjectStatisticsImpl stat2 = getStatistics();\n\n repo.saveLocalStatistics(K1, stat1, AffinityTopologyVersion.ZERO);\n repo.saveLocalStatistics(K2, stat2, AffinityTopologyVersion.ZERO);\n\n ...
[ "0.6517676", "0.6014178", "0.5998602", "0.5964023", "0.5946795", "0.5849307", "0.5846891", "0.5685265", "0.56537426", "0.56006", "0.5549841", "0.5511392", "0.5506695", "0.5470127", "0.53747237", "0.5349057", "0.5311635", "0.5292859", "0.5259849", "0.5257434", "0.52568984", ...
0.61959165
1
Response of direct pre approval cancellation
public interface DirectPreApprovalCancellation { /** * Get Direct Pre Approval Code * * @return Direct Pre Approval Code */ String getCode(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "pb4server.CancelCureSoliderAskReq getCancelCureSoliderAskReq();", "CancelOrderResponse cancelOrder(CancelOrderRequest cancelOrderRequest);", "protected MessageBody cancel() {\n\t\tPlatformMessage msg = cancelRequest(incidentAddress).getMessage();\n\t\talarm.cancel(context, msg);\n\t\treturn msg.getValue();\n\t...
[ "0.68191415", "0.6672446", "0.65235174", "0.65200984", "0.65138906", "0.6482321", "0.64425796", "0.6426503", "0.6312178", "0.6229392", "0.621825", "0.61737657", "0.6134258", "0.61276066", "0.611633", "0.6095903", "0.6088454", "0.6065705", "0.6050046", "0.6031719", "0.59969354...
0.68082154
1
Get Direct Pre Approval Code
String getCode();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String getApprove() {\r\n if (approve == null)\r\n approve = initApproveElement().findElement(By.cssSelector(\"[data-role*='approvalStatus']\")).getText();\r\n return approve;\r\n }", "public String getLBR_ProtestCode();", "public String getStatus()\r\n {\n...
[ "0.63732266", "0.62542224", "0.61205345", "0.60546565", "0.59158725", "0.5862686", "0.5862686", "0.5862686", "0.5849837", "0.5825957", "0.5771247", "0.57366866", "0.57181793", "0.57100165", "0.570691", "0.56964755", "0.5674753", "0.567146", "0.565765", "0.5635546", "0.5628477...
0.5496812
37
Apply | message format for any named colours
protected void applyAnnotationStatusLabel(Annotation annotation) { // check for a colour label. ArrayList<DragDropColorList.ColorLabel> colorLabels = DragDropColorList.retrieveColorLabels(); String colorLabelString = null; if (colorLabels != null) { for (DragDropColorList.ColorLabel colorLabel : colorLabels) { if (annotation.getColor() != null && colorLabel.getColor().equals(annotation.getColor())) { colorLabelString = colorLabel.getLabel(); break; } } } StringBuilder statusLabel = new StringBuilder(); // append private/public start. if (PRIVATE_PROPERTY_ENABLED) { if (annotation.getFlagPrivateContents()) { statusLabel.append(messageBundle.getString("viewer.utilityPane.markupAnnotation.view.privateToggleButton.label")); } else { statusLabel.append(messageBundle.getString("viewer.utilityPane.markupAnnotation.view.publicToggleButton.label")); } } if (colorLabelString != null) { if (PRIVATE_PROPERTY_ENABLED) statusLabel.append(" | "); statusLabel.append(colorLabelString); } if (statusLabel.length() > 0) { markupAnnotationHandlerPanel.setProgressLabel(statusLabel.toString()); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private static String parseColor(String msg) {\n\t\tif (msg.contains(CS)) {\r\n\t\t\tmsg = msg.replaceAll(CS+\"a\", \"<span style=\\\"color: #8afb17\\\">\")\r\n\t\t\t .replace(CS+\"b\", \"<span style=\\\"color: #00ffff\\\">\")\r\n\t\t\t .replace(CS+\"c\", \"<span style=\\\"color: #e55451\\\">\")\r\n\t\t\t .replace...
[ "0.6405154", "0.60609835", "0.60342133", "0.6033067", "0.59056467", "0.58986753", "0.58581406", "0.5830659", "0.5829033", "0.5800968", "0.5791726", "0.5773249", "0.5773094", "0.5767372", "0.57624114", "0.57572323", "0.5712842", "0.5669336", "0.5666244", "0.5651782", "0.563437...
0.0
-1
update the quick color drop down.
public void refreshColorPanel() { if (quickPaintAnnotationButton != null) { quickPaintAnnotationButton.refreshColorPanel(); } colorFilterMenuItem.removeAll(); // build colour submenu based on colour labels ButtonGroup filterColorMenuGroup = new ButtonGroup(); JCheckBoxMenuItem filterColorAllMenuItem = new JCheckBoxMenuItem(); filterColorAllMenuItem.setAction(new FilterColorAction( messageBundle.getString("viewer.utilityPane.markupAnnotation.toolbar.filter.option.byColor.all.label"), null)); colorFilterMenuItem.add(filterColorAllMenuItem); filterColorMenuGroup.add(filterColorAllMenuItem); ArrayList<DragDropColorList.ColorLabel> colorLabels = DragDropColorList.retrieveColorLabels(); int defaultColor = preferences.getInt(ViewerPropertiesManager.PROPERTY_ANNOTATION_FILTER_COLOR_COLUMN, -1); JCheckBoxMenuItem filterColorMenuItem; if (colorLabels.size() > 0) { for (DragDropColorList.ColorLabel colorLabel : colorLabels) { filterColorMenuItem = new JCheckBoxMenuItem(); FilterColorAction sortAction = new FilterColorAction( colorLabel.getLabel(), colorLabel.getColor()); filterColorMenuItem.setAction(sortAction); colorFilterMenuItem.add(filterColorMenuItem); filterColorMenuGroup.add(filterColorMenuItem); if (defaultColor != -1 && defaultColor == sortAction.getColorRGB()) { filterColorMenuItem.setSelected(true); filterColorAction = sortAction; } } } if (defaultColor == -1) { filterColorAllMenuItem.setSelected(true); filterColorAction = filterColorAllMenuItem.getAction(); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void _updateField(Color c) {\n if (_isBackgroundColor) {\n _colorField.setBackground(c);\n }\n else {\n _colorField.setForeground(c);\n }\n _colorField.setText(getLabelText() + \" (\"+_option.format(c)+\")\");\n }", "private void updateMainFrame() {\n mainFrame.setCustomColor...
[ "0.66485715", "0.65726745", "0.6216254", "0.6198957", "0.6197765", "0.6166562", "0.61648524", "0.61586964", "0.6145272", "0.61219573", "0.611759", "0.6102317", "0.60702974", "0.6030355", "0.6025045", "0.60105175", "0.59905815", "0.5928779", "0.5886501", "0.5865859", "0.586240...
0.6851673
0
push the work off the a worker thread
protected void sortAndFilterAnnotationData() { SortColumn sortType = (SortColumn) sortAction.getValue(COLUMN_PROPERTY); FilterSubTypeColumn filterType = (FilterSubTypeColumn) filterTypeAction.getValue(COLUMN_PROPERTY); FilterAuthorColumn filterAuthor = (FilterAuthorColumn) filterAuthorAction.getValue(COLUMN_PROPERTY); Color filterColor = (Color) filterColorAction.getValue(COLUMN_PROPERTY); FilterVisibilityColumn filterVisibility = (FilterVisibilityColumn) filterVisibilityAction.getValue(COLUMN_PROPERTY); filterDropDownButton.setSelected(!filterAuthor.equals(FilterAuthorColumn.ALL) || !filterType.equals(FilterSubTypeColumn.ALL) || filterColor != null); // setup search pattern Pattern searchPattern = null; String searchTerm = searchTextField.getText(); boolean caseSensitive = caseSensitiveMenutItem.isSelected(); if (searchTerm != null && !searchTerm.isEmpty()) { searchPattern = Pattern.compile(caseSensitive ? searchTerm : searchTerm.toLowerCase()); // todo we can add search flags at a later date, via drop down on search or checkboxes. } markupAnnotationHandlerPanel.sortAndFilterAnnotationData( searchPattern, sortType, filterType, filterAuthor, filterVisibility, filterColor, regexMenuItem.isSelected(), caseSensitive); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void allocateWorker(Work work);", "private void workOnQueue() {\n }", "void allocateDeamonWorker(Work work);", "void done(W worker);", "private void startBackgroundWorker() {\n\t\tworker.execute(new Runnable() {\n\t\t\tpublic void run() {\n\t\t\t\twhile (true) {\n\t\t\t\t\tif (!buildList.isEmpty()) {\...
[ "0.70142895", "0.6962669", "0.65668297", "0.6554931", "0.6537636", "0.6513192", "0.6484341", "0.6472206", "0.6436022", "0.6425922", "0.6345506", "0.6269397", "0.6196936", "0.61855364", "0.6176427", "0.61705124", "0.61705124", "0.61467516", "0.61454594", "0.60924745", "0.60892...
0.0
-1
This method is called from within the constructor to initialize the form. WARNING: Do NOT modify this code. The content of this method is always regenerated by the Form Editor.
@SuppressWarnings("unchecked") // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents private void initComponents() { etiqueta1 = new javax.swing.JLabel(); funcion = new javax.swing.JTextField(); almacenar = new javax.swing.JButton(); limiteBoton = new javax.swing.JButton(); derivadaBoton = new javax.swing.JButton(); integralBoton = new javax.swing.JButton(); jLabel1 = new javax.swing.JLabel(); setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE); setBackground(new java.awt.Color(51, 51, 255)); setCursor(new java.awt.Cursor(java.awt.Cursor.TEXT_CURSOR)); setForeground(java.awt.Color.blue); setResizable(false); addWindowListener(new java.awt.event.WindowAdapter() { public void windowClosed(java.awt.event.WindowEvent evt) { formWindowClosed(evt); } }); etiqueta1.setFont(new java.awt.Font("Tahoma", 2, 24)); // NOI18N etiqueta1.setText("Resolución de una Función"); funcion.setFont(new java.awt.Font("Tahoma", 0, 14)); // NOI18N funcion.setText("f(x)="); funcion.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { funcionActionPerformed(evt); } }); almacenar.setFont(new java.awt.Font("Tahoma", 1, 14)); // NOI18N almacenar.setText("Guardar Función"); almacenar.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { almacenarActionPerformed(evt); } }); limiteBoton.setFont(new java.awt.Font("Tahoma", 1, 14)); // NOI18N limiteBoton.setText("Límite"); limiteBoton.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { limiteBotonActionPerformed(evt); } }); derivadaBoton.setFont(new java.awt.Font("Tahoma", 1, 14)); // NOI18N derivadaBoton.setText("Derivada"); derivadaBoton.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { derivadaBotonActionPerformed(evt); } }); integralBoton.setFont(new java.awt.Font("Tahoma", 1, 14)); // NOI18N integralBoton.setText("Integral"); integralBoton.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { integralBotonActionPerformed(evt); } }); jLabel1.setFont(new java.awt.Font("Tahoma", 0, 18)); // NOI18N jLabel1.setText("Función"); javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane()); getContentPane().setLayout(layout); layout.setHorizontalGroup( layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(layout.createSequentialGroup() .addGap(38, 38, 38) .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(layout.createSequentialGroup() .addComponent(jLabel1, javax.swing.GroupLayout.PREFERRED_SIZE, 71, javax.swing.GroupLayout.PREFERRED_SIZE) .addGap(0, 0, Short.MAX_VALUE)) .addGroup(layout.createSequentialGroup() .addComponent(funcion, javax.swing.GroupLayout.PREFERRED_SIZE, 265, javax.swing.GroupLayout.PREFERRED_SIZE) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 34, Short.MAX_VALUE) .addComponent(almacenar))) .addContainerGap()) .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup() .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup() .addComponent(limiteBoton) .addGap(47, 47, 47) .addComponent(derivadaBoton) .addGap(43, 43, 43) .addComponent(integralBoton) .addGap(85, 85, 85)) .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup() .addComponent(etiqueta1, javax.swing.GroupLayout.PREFERRED_SIZE, 290, javax.swing.GroupLayout.PREFERRED_SIZE) .addGap(97, 97, 97)))) ); layout.setVerticalGroup( layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(layout.createSequentialGroup() .addGap(20, 20, 20) .addComponent(etiqueta1) .addGap(18, 18, 18) .addComponent(jLabel1, javax.swing.GroupLayout.PREFERRED_SIZE, 27, javax.swing.GroupLayout.PREFERRED_SIZE) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) .addComponent(funcion, javax.swing.GroupLayout.PREFERRED_SIZE, 43, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(almacenar)) .addGap(36, 36, 36) .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) .addComponent(limiteBoton) .addComponent(derivadaBoton) .addComponent(integralBoton)) .addContainerGap(21, Short.MAX_VALUE)) ); pack(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Form() {\n initComponents();\n }", "public MainForm() {\n initComponents();\n }", "public MainForm() {\n initComponents();\n }", "public MainForm() {\n initComponents();\n }", "public frmRectangulo() {\n initComponents();\n }", "public form() {\n ...
[ "0.7321233", "0.72922724", "0.72922724", "0.72922724", "0.7287021", "0.7250113", "0.7214902", "0.7209478", "0.71973455", "0.71915394", "0.71855843", "0.71602577", "0.7149222", "0.70949143", "0.70813066", "0.70579875", "0.6988272", "0.6978623", "0.6956488", "0.6954857", "0.694...
0.0
-1
//GENEND:initComponents Desactiva todos los botones de funciones matematicas
private void deActivateButtons(){ limiteBoton.setEnabled(false); derivadaBoton.setEnabled(false); integralBoton.setEnabled(false); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Botones() {\n initComponents();\n }", "public void iniciarComponentes(){\n\n crearPanel();\n colocarBotones();\n \n }", "public void inicializarBotones() {\n\t\t\n\t\t// aņadimos listeners a los botones del panel 'login'\n\t\tthis.controladorLogin = new ControladorLogin(v...
[ "0.64417225", "0.6298969", "0.62462246", "0.60840106", "0.6056793", "0.6005554", "0.599306", "0.596062", "0.59470475", "0.5942543", "0.59164464", "0.591564", "0.59038466", "0.5901203", "0.58954227", "0.58893484", "0.5863353", "0.583921", "0.5835045", "0.58279395", "0.57929665...
0.0
-1
Activa todos los botones de funciones matematicas
private void activateButtons(){ limiteBoton.setEnabled(true); derivadaBoton.setEnabled(true); integralBoton.setEnabled(true); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void enableBotonAceptar()\r\n\t{\r\n\t\t\r\n\t}", "public void inicializarBotones() {\n\t\t\n\t\t// aņadimos listeners a los botones del panel 'login'\n\t\tthis.controladorLogin = new ControladorLogin(vista, modelo);\n\t\tthis.controladorLogin.addListeners();\n\t\t\n\t\t// aņadimos listeners a los botone...
[ "0.6466924", "0.62542796", "0.6032126", "0.5952281", "0.5920928", "0.5886437", "0.57655", "0.57032055", "0.56587476", "0.5654433", "0.564878", "0.56429845", "0.5620337", "0.56044316", "0.55497324", "0.5519884", "0.54949474", "0.5493066", "0.54657906", "0.5461769", "0.54549384...
0.5926789
4
GENFIRST:event_funcionActionPerformed TODO add your handling code here:
private void funcionActionPerformed(java.awt.event.ActionEvent evt) { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void jTextField11ActionPerformed(java.awt.event.ActionEvent evt) {\n }", "private void jTextField11ActionPerformed(java.awt.event.ActionEvent evt) {\n }", "private void jTextField4ActionPerformed(java.awt.event.ActionEvent evt) {\n }", "private void jTextField5ActionPerformed(java.awt.event....
[ "0.80805564", "0.80805564", "0.8068303", "0.79983896", "0.79983896", "0.79983896", "0.7981673", "0.7981673", "0.79761606", "0.797263", "0.79675037", "0.7941126", "0.79307985", "0.7920133", "0.7918774", "0.7901355", "0.7900483", "0.7900483", "0.7900483", "0.7898128", "0.788860...
0.89082474
0
TODO Autogenerated method stub
@Override public List<Role> find(String hql, Class<Role> entityClass, Object[] params) { return baseDao.find(hql, entityClass, params); }
{ "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 Role get(Class<Role> entityClass, Serializable id) { return baseDao.get(entityClass, id); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExr...
[ "0.6671074", "0.6567672", "0.6523024", "0.6481211", "0.6477082", "0.64591026", "0.64127725", "0.63762105", "0.6276059", "0.6254286", "0.623686", "0.6223679", "0.6201336", "0.61950207", "0.61950207", "0.61922914", "0.6186996", "0.6173591", "0.61327106", "0.61285484", "0.608016...
0.0
-1
TODO Autogenerated method stub
@Override public Page<Role> findPage(String hql, Page<Role> page, Class<Role> entityClass, Object[] params) { return baseDao.findPage(hql, page, entityClass, params); }
{ "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 saveOrUpdateAll(Collection<Role> entitys) { baseDao.saveOrUpdateAll(entitys); }
{ "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
run the factory, seize the means of production later
public byte[] produce(int quantity) { //generate an array of trash byte[] trash = new byte[quantity]; for(int i=0; i<quantity; i++) { trash[i] = (byte)randomNumGen.nextInt(256); } return trash; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static void main(String[] args) {\n System.out.println(\"=== Bodyguard ===\");\n HumanFactory factory = HumanFactory.getFactory(\"gof.creational.abstractfactory.factory.BodyguardFactory\");\n Weapon weapon = factory.createWeapon();\n weapon.attack();\n Vehicle vehicle = fa...
[ "0.62426335", "0.6196243", "0.6074782", "0.6039547", "0.60203224", "0.5907183", "0.5885029", "0.58053905", "0.5758383", "0.5758244", "0.5754419", "0.5738795", "0.5734192", "0.5712316", "0.57069844", "0.5703268", "0.569916", "0.5691093", "0.56701756", "0.56658834", "0.5665322"...
0.0
-1
read data file from source to list transaction. If can't read or sf is not found throw IOException
public void getInstances(String sf) throws IOException { Database db = new Database(); this.database = db.loadData(sf); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void readSourceData() throws Exception {\n\t\tthis.fileDataList = new ArrayList<String>();\n\t\tReader reader = new Reader(this.procPath);\n\t\treader.running();\n\t\tthis.fileDataList = reader.getFileDataList();\n\t}", "private static void readFridgeData() throws FileNotFoundException, InvalidDateExcept...
[ "0.65173644", "0.5987569", "0.5847535", "0.57117593", "0.5557766", "0.5496324", "0.54088813", "0.53708667", "0.53614897", "0.53226227", "0.53145736", "0.53100556", "0.530763", "0.52458936", "0.5234153", "0.52261585", "0.52156305", "0.52156204", "0.51878613", "0.51836324", "0....
0.0
-1
set minimum support for algorithm
public void setMinSup(int minSup) { this.minSup = minSup; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void setNilMultipleBetMinimum();", "void setNilSingleBetMinimum();", "void setNilWagerMinimum();", "@Test\n public void min() {\n assertEquals(2103, SuggestionUtil.min(2103, 2103, 2103));\n\n // EP: two numbers same and one different\n assertEquals(2103, SuggestionUtil.min(2103, 2104,...
[ "0.6492224", "0.6381097", "0.61244035", "0.60253406", "0.60084784", "0.59423137", "0.5904811", "0.5904811", "0.58842075", "0.58685035", "0.5863298", "0.5848883", "0.5796502", "0.57496727", "0.5736781", "0.56961775", "0.566934", "0.56624967", "0.5657167", "0.56569356", "0.5646...
0.0
-1
set minimum confidence for algorithm
public void setMinConf(int minConf) { this.minConf = minConf; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setConfidence(final Double confidence);", "public void setMinConf (float value) {\r\n min_conf = value; }", "float getConfidence();", "public double confidenceLow() {\n return mean() - ((1.96 * stddev()) / Math.sqrt(this.numTrials));\n }", "public double confidenceLow() {\n\...
[ "0.7245321", "0.6498493", "0.6479596", "0.6477637", "0.64652646", "0.64359987", "0.6403653", "0.6347741", "0.63377225", "0.62411773", "0.6205467", "0.61615103", "0.6160526", "0.6142017", "0.6118512", "0.6107053", "0.60994136", "0.60965455", "0.6080273", "0.608013", "0.6040200...
0.54377335
79
This method returns a signed authorization that the NHS will accept
public PutAuthorization authorizePutRecord(SecureRecord record) throws SecurityLibraryException { return new PutAuthorization( record, this.getCertificate(), record.getDoctorCertificate(), record.getPatientCertificate(), signBytes(record.getBytes()) ); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected abstract String getAuthorization();", "public int getAuthorizationCode();", "public static String getAuthorization() {\n\t\treturn getServer()+\"wsagenda/v1/agenda\";//\"http://10.0.2.2/wsrest/v1/agenda\";//\"http://10.0.2.2/prueba/ahorro/obtener_gastos.php\";//\"http://10.0.2.2/wsrest/v1/agenda\";\n...
[ "0.6683504", "0.6603295", "0.6363069", "0.5948031", "0.5881707", "0.5881707", "0.5881707", "0.58785385", "0.5846342", "0.57975763", "0.5707104", "0.558061", "0.5561617", "0.5555067", "0.55528384", "0.5533406", "0.5524699", "0.5524699", "0.5524699", "0.5497803", "0.5495944", ...
0.0
-1
This method returns a signed authorization that the NHS will accept
public FetchAuthorization authorizeFetchRecord(Doctor doctor, Patient patient) throws SecurityLibraryException { try { return new FetchAuthorization( this.getCertificate(), doctor.getCertificate(), patient.getCertificate(), signBytes(concat(doctor.getCertificate().getEncoded(), patient.getCertificate().getEncoded()))); } catch (CertificateEncodingException e) { throw new SecurityLibraryException(e); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected abstract String getAuthorization();", "public int getAuthorizationCode();", "public static String getAuthorization() {\n\t\treturn getServer()+\"wsagenda/v1/agenda\";//\"http://10.0.2.2/wsrest/v1/agenda\";//\"http://10.0.2.2/prueba/ahorro/obtener_gastos.php\";//\"http://10.0.2.2/wsrest/v1/agenda\";\n...
[ "0.66830826", "0.66024894", "0.6361659", "0.59477353", "0.5883168", "0.5883168", "0.5883168", "0.5877462", "0.584465", "0.5796613", "0.57062614", "0.55813056", "0.5561594", "0.5554536", "0.5552983", "0.55327576", "0.55265534", "0.55265534", "0.55265534", "0.5497931", "0.54963...
0.0
-1
Code based off this example:
public static byte[] createCheckSum(String filename) throws Exception { InputStream fis = new FileInputStream(filename); byte[] buffer = new byte[1024]; MessageDigest complete = MessageDigest.getInstance("MD5"); int numRead; do { numRead = fis.read(buffer); if (numRead > 0) { complete.update(buffer, 0, numRead); } } while (numRead != -1); fis.close(); // Return MD5 Hash return complete.digest(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "@Override\n\tprotected void interr() {\n\t}", "@Override\n public void perish() {\n \n }", "private static void cajas() {\n\t\t\n\t}", "private void kk12() {\n\n\t}", "private stendhal() {\n\t}", "@Override\r\n\t\tprotected void run() {\n\t...
[ "0.5444667", "0.5330878", "0.5248115", "0.5227022", "0.51644415", "0.51140094", "0.50927734", "0.50741845", "0.5053528", "0.504108", "0.4986639", "0.49724972", "0.496235", "0.496235", "0.49460778", "0.49311057", "0.49280804", "0.49233562", "0.4921858", "0.49214333", "0.492143...
0.0
-1
TODO Autogenerated method stub
public static void main(String[] args) { LinkRemoveDuplicates2 ll=new LinkRemoveDuplicates2(); ll.insertFirst(40); ll.insertFirst(30); ll.insertFirst(20); ll.insertFirst(20); ll.insertFirst(10); ll.insertFirst(10); System.out.println("Initial List->"); ll.printList(); ll.head=ll.remove(ll.head); System.out.println("\n\nAfter removing duplicates->"); ll.printList(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExr...
[ "0.6671074", "0.6567672", "0.6523024", "0.6481211", "0.6477082", "0.64591026", "0.64127725", "0.63762105", "0.6276059", "0.6254286", "0.623686", "0.6223679", "0.6201336", "0.61950207", "0.61950207", "0.61922914", "0.6186996", "0.6173591", "0.61327106", "0.61285484", "0.608016...
0.0
-1
Set values and important GUI things for all pieces of the GUI. HBox.setHgrow(adrem, Priority.ALWAYS); HBox.setHgrow(quitB, Priority.ALWAYS); HBox.setHgrow(saveB, Priority.ALWAYS); ColumnConstraints test1 = ColumnConstraintsBuilder.create().percentWidth.(20).build();
@Override public void start(Stage primaryStage) throws IOException { for (Country c : countries) { visibleCountriesList.add(c); } //Build top toolbar g.setHgap(10); for (int i = 0; i < 5; i++) { ColumnConstraints column = new ColumnConstraints(); column.setPercentWidth(20); g.getColumnConstraints().add(column); } //Top toolbar creation + eventHandler. for (int i = 0; i < 5; i++) { final Button b = new Button(); b.setMaxWidth(Double.MAX_VALUE); GridPane.setColumnIndex(b, i); g.getChildren().add(b); b.setOnMouseClicked(new EventHandler<MouseEvent>() { @Override public void handle(MouseEvent t) { if (!"None".equals(b.getText())) { selectedCountry = Country.getCountry(b.getText()); eventLog.appendText("Selected "+selectedCountry.Name+" From favourites list \n"); selectedCountryChanged(); } else { //don't wanna do anything } } }); } refreshToolbarButtons(); BorderPane root = new BorderPane(); //Build country list lv.setPrefHeight(400); lv.setPrefWidth(100); lv.setItems(visibleCountriesList); lv.getSelectionModel().setSelectionMode(SelectionMode.SINGLE); lv.getSelectionModel().selectedIndexProperty().addListener(new ChangeListener<Number>() { @Override public void changed(ObservableValue<? extends Number> ov, Number t, Number t1) { selectedCountry = (Country)lv.getSelectionModel().getSelectedItem(); selectedCountryChanged(); //eventLog.appendText("Changed Flag, Country Text and Image to:"+selectedCountry.Name+"\n"); } }); //Build main window addToToolbar.setOnMouseClicked(new EventHandler<MouseEvent>() { @Override public void handle(MouseEvent t) { addToToolbar(); } }); Button remFromToolbar = new Button("Remove favourite"); remFromToolbar.setOnMouseClicked(new EventHandler<MouseEvent>() { @Override public void handle(MouseEvent t) { removeFromToolbar(); } }); adrem.getChildren().add(addToToolbar); adrem.getChildren().add(remFromToolbar); //Set up for checkbox Filters GridPane filters = new GridPane(); for (int i = 0; i < 6; i++) { RowConstraints row = new RowConstraints(); row.setPercentHeight(20); filters.getRowConstraints().add(row); } saveB.setOnAction(new EventHandler<ActionEvent>(){ @Override public void handle(ActionEvent event) { FileChooser fileChooser = new FileChooser(); //Set extension filter FileChooser.ExtensionFilter extFilter = new FileChooser.ExtensionFilter("PNG files (*.png)", "*.png"); fileChooser.getExtensionFilters().add(extFilter); //Show save file dialog File filepath = fileChooser.showSaveDialog(primaryStage); //Modify this to print out the file path. eventLog.appendText("Saved file to: "+filepath.toString()+"\n"); //if(file != null){ //SaveFile( file); //} } }); //Creation and Observer for checkbox Filters. for (int i = 0; i < 6; i++) { CheckBox ch = new CheckBox(ContList[i]); ch.setMaxWidth(Double.MAX_VALUE); ch.setMaxHeight(Double.MAX_VALUE); GridPane.setRowIndex(ch, i); ch.setSelected(true); //filters.; ch.selectedProperty().addListener(new ChangeListener<Boolean>(){ @Override public void changed(ObservableValue<? extends Boolean> observable, Boolean oldValue, Boolean newValue) { if(ch.isSelected() == false){ String Title = ch.getText(); String Contval; //visibleCountriesList.clear(); //System.out.println(Title); for (Country c : countries){ switch (c.Continent.ordinal()) { case 0: Contval = ContList[0]; break; case 1: Contval = ContList[1]; break; case 2: Contval = ContList[2]; break; case 3: Contval = ContList[3]; break; case 4: Contval = ContList[4]; break; case 5: Contval = ContList[5]; break; default: Contval = "Doesn't Exist"; break; } //System.out.println(Contval); if (Title.equals(Contval)){ visibleCountriesList.remove(c); } } eventLog.appendText("Filtered Continent:"+ch.getText()+"\n"); } else { String Title = ch.getText(); String Contval; for (Country c : countries){ switch (c.Continent.ordinal()) { case 0: Contval = ContList[0]; break; case 1: Contval = ContList[1]; break; case 2: Contval = ContList[2]; break; case 3: Contval = ContList[3]; break; case 4: Contval = ContList[4]; break; case 5: Contval = ContList[5]; break; default: Contval = "Doesn't Exist"; break; } //System.out.println(Contval); if (Title.equals(Contval)){ visibleCountriesList.add(c); } if (visibleCountriesList.isEmpty()){ visibleCountriesList.clear(); } } eventLog.appendText("Unfiltered Continent:"+ch.getText()+"\n"); } } }); filters.getChildren().add(ch); } Scene scene = new Scene(root, 700, 500); primaryStage.setTitle("Assignment3"); primaryStage.setScene(scene); image = new Image((getClass().getResourceAsStream("/Flags/vi.png"))); CountryTitle.setText(countries[0].Name); CountryTitle.setFont(new Font("Arial",20)); //CountryTitle.setWrapText(true); selectedCountry = Country.getCountry(CountryTitle.getText()); //lv.getSelectionModel().select(0); //lv.getFocusModel().focus(0); imageHolder.setImage(image); //imageHolder.setFitWidth(200); imageHolder.setPreserveRatio(true); centreP.setBackground(new Background(new BackgroundFill(Color.LIGHTGREY,CornerRadii.EMPTY,Insets.EMPTY))); adrem.setAlignment(Pos.CENTER); lv.setMaxSize(Double.MAX_VALUE,Double.MAX_VALUE); filters.setMaxSize(Double.MAX_VALUE,Double.MAX_VALUE); centreP.setMaxSize(Double.MAX_VALUE,Double.MAX_VALUE); bottomStuff.setPrefHeight(300); eventLog.setPrefHeight(500); saveQuit.setPrefHeight(500); testGrid.add(topStuff,0,1); topStuff.add(filters,0,0); testGrid.add(g, 0, 0); ColumnConstraints cTopSt1 = new ColumnConstraints(50,5000,Double.MAX_VALUE); cTopSt1.setPercentWidth(15); cTopSt1.setHgrow(Priority.ALWAYS); topStuff.getColumnConstraints().add(cTopSt1); RowConstraints gtst =new RowConstraints (30,30,Double.MAX_VALUE); gtst.setVgrow(Priority.ALWAYS); gtst.setPercentHeight(100); g.getRowConstraints().add(gtst); topStuff.add(centreP,1,0); //centreP.getChildren().addAll(textAndFlag,descText,adrem); ColumnConstraints cTopSt2 = new ColumnConstraints(50,5000,Double.MAX_VALUE); cTopSt2.setPercentWidth(55); cTopSt2.setHgrow(Priority.ALWAYS); topStuff.getColumnConstraints().add(cTopSt2); centreP.add(textAndFlag,0,0); textAndFlag.getChildren().addAll(CountryTitle,imageHolder); textAndFlag.setAlignment(Pos.CENTER); centreP.add(descText,0,1); centreP.add(adrem,0,2); ColumnConstraints tstCol = new ColumnConstraints(50,1000,Double.MAX_VALUE); tstCol.setHgrow(Priority.ALWAYS); tstCol.setPercentWidth(100); RowConstraints tstRow = new RowConstraints(50,1000,Double.MAX_VALUE); tstRow.setVgrow(Priority.ALWAYS); //tstRow.getPercentHeight(); centreP.getRowConstraints().addAll(tstRow,tstRow,tstRow); centreP.getColumnConstraints().addAll(tstCol); //topStuff.getRowConstraints().add(tstRow); topStuff.add(lv, 2, 0); ColumnConstraints cTopSt3 = new ColumnConstraints(50,5000,Double.MAX_VALUE); cTopSt3.setPercentWidth(30); cTopSt3.setHgrow(Priority.ALWAYS); topStuff.getColumnConstraints().add(cTopSt3); testGrid.add(bottomStuff,0,2); bottomStuff.add(eventLog,0,0); ColumnConstraints cBotSt1 = new ColumnConstraints(50,50,Double.MAX_VALUE); cBotSt1.setPercentWidth(90); cBotSt1.setHgrow(Priority.ALWAYS); bottomStuff.getColumnConstraints().add(cBotSt1); //RowConstraints rBotSt1 = new RowConstraints(50,50,Double.MAX_VALUE); //rBotSt1.setVgrow(Priority.NEVER); //rBotSt1.setPercentHeight(100); bottomStuff.add(saveQuit,1,0); ColumnConstraints cBotSt2 = new ColumnConstraints(50,50,Double.MAX_VALUE); cBotSt2.setPercentWidth(10); cBotSt2.setHgrow(Priority.ALWAYS); bottomStuff.getColumnConstraints().add(cBotSt2); saveQuit.add(saveB,0,0); saveQuit.add(quitB,0,1); RowConstraints cRowSt3 = new RowConstraints(50,1000,Double.MAX_VALUE); cRowSt3.setPercentHeight(100); cRowSt3.setVgrow(Priority.ALWAYS); bottomStuff.getRowConstraints().add(cRowSt3); //testGrid.setGridLinesVisible(true); //RowConstraints tstR1 = new RowConstraints(50,50,Double.MAX_VALUE); //tstR1.setVgrow(Priority.ALWAYS); //tstR1.setPercentHeight(100); //testGrid.getRowConstraints().add(tstR1); //RowConstraints tstR2 = new RowConstraints(50,50,Double.MAX_VALUE); //tstR2.setVgrow(Priority.ALWAYS); //tstR2.setPercentHeight(100); //testGrid.getRowConstraints().add(tstR2); //Setting each piece of the overall TestGrid (why did I name it that? //Well it's it was originally a test //RowConstraints tGRow1 = new RowConstraints(50,50,Double.MAX_VALUE); //tGRow1.setVgrow(Priority.ALWAYS); //tGRow1.setPercentHeight(5); //testGrid.getRowConstraints().add(0,tGRow1); //RowConstraints tGRow2 = new RowConstraints(50,50,Double.MAX_VALUE); //tGRow2.setVgrow(Priority.ALWAYS); //tGRow2.setPercentHeight(55); //testGrid.getRowConstraints().add(1, tGRow2); //RowConstraints tGRow3 = new RowConstraints(50,50,Double.MAX_VALUE); //tGRow3.setVgrow(Priority.ALWAYS); //tGRow3.setPercentHeight(40); //testGrid.getRowConstraints().add(2,tGRow3); //g.setPadding(new Insets(0,10,10,0)); //root.setTop(g); //g.setGridLinesVisible(true); //root.setCenter(topStuff); //topStuff.setGridLinesVisible(true); //root.setBottom(bottomStuff); //bottomStuff.setGridLinesVisible(true); adrem.setSpacing(20); root.setCenter(testGrid); primaryStage.show(); quitB.setOnAction(new EventHandler<ActionEvent>(){ @Override public void handle(ActionEvent event) { System.exit(0); } }); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void $$$setupUI$$$() {\n panel1 = new JPanel();\n panel1.setLayout(new FormLayout(\"fill:d:grow\", \"center:d:noGrow,top:4dlu:noGrow,center:max(d;4px):noGrow,top:4dlu:noGrow,center:max(d;4px):noGrow\"));\n panel1.setBackground(new Color(-6047008));\n panel1.setFont(new Font(\"Ti...
[ "0.6836872", "0.6589898", "0.6559033", "0.65484947", "0.65200526", "0.6479848", "0.6477054", "0.64206606", "0.6416116", "0.64154255", "0.63921666", "0.6382986", "0.6354983", "0.63423336", "0.63407266", "0.63260347", "0.6307299", "0.6306208", "0.62774163", "0.626904", "0.62668...
0.0
-1
Establish a couple connections with the service, binding by interface names, This allows other applications to be installed the replace the remote service by implementing the same interface
@Override public void onClick(View v) { Intent intent = new Intent(Server.this, RemoteService.class); // bind the same interface name intent.setAction(IRemoteService.class.getName()); bindService(intent, mConnection, Context.BIND_AUTO_CREATE); intent.setAction(ISecondary.class.getName()); bindService(intent, mSecondaryConnection, Context.BIND_AUTO_CREATE); mIsBound = true; mCallbackText.setText("Binding the Remote Service"); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void connect() { \t\n \tbindService(IChatService.class, apiConnection);\n }", "public void connectWarehouses(){\n//\t\tWarehouseInterface wh1 = new WareHouseImpl(\"wh1\");\n//\n//\t\tWarehouseInterface wh2 = new WareHouseImpl(\"wh2\");\n//\t\twarehouseList.add(wh1);\n//\t\twarehouseList.add(wh2);\n\...
[ "0.67630124", "0.6455511", "0.62645155", "0.61737645", "0.61593574", "0.61478245", "0.6127625", "0.6011785", "0.59699565", "0.5931664", "0.58849406", "0.5812276", "0.57382476", "0.5727975", "0.5714461", "0.5709346", "0.5700631", "0.5683637", "0.56820124", "0.5674117", "0.5653...
0.5848266
11
To kill the process hosting our service , We need to know its PID, Conveniently our service has a call that will return to us that information
@Override public void onClick(View v) { if (mSecondService != null) { try { int pid = mSecondService.getPid(); // Note that, though this api allows us to request // to kill any process based on its pid, the kernel // will still impose standard restrictions on which // PID you actually able to kill. typically this means // only the process running your application and any additional // processes created by that app as shown here; packages sharing // a common UID will also be able to kill each other's processes Process.killProcess(pid); mCallbackText.setText("Killed service process"); } catch (RemoteException e) { e.printStackTrace(); //Recover gracefully from the process hosting the server dying // Just for purposes of the sample, put up a notification Log.i(TAG, "Failure calling RemoteService"); } } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void kill(long procid);", "public Map killServerProcess(String id) throws IOException\n\t{\n\t\treturn request(POST, address(id, \"kill\"));\n\t}", "String getPid();", "@DELETE\n @ApiOperation(\"Forcefully stops a process\")\n @javax.ws.rs.Path(\"/{id}\")\n @WithTimer\n public void kill(@ApiParam...
[ "0.762113", "0.7029089", "0.68580574", "0.6751603", "0.6751384", "0.6749166", "0.65780014", "0.64482504", "0.6430835", "0.6374353", "0.63536876", "0.6265393", "0.62520355", "0.62501466", "0.62193024", "0.6203333", "0.6203333", "0.61977565", "0.61580056", "0.6156856", "0.61435...
0.61108917
22
This is called when the connection with the service has been unexpectedly disconnected that is ,its process crashed.
@Override public void onServiceDisconnected(ComponentName name) { mService = null; mKillBtn.setEnabled(false); mCallbackText.setText("Disconnected"); Log.i(TAG, "Disconnected form remote service"); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void onServiceDisconnected(ComponentName className) {\n\t\t Log.e(MainActivity.ACTIVITY_TAG, \"Service has unexpectedly disconnected\");\n\t\t mIRemoteService = null;\n\t\t // 注意只有在极端的服务端crash的情况下,该函数才会被调用\n\t \t Log.v(MainActivity.ACTIVITY_TAG,\"kevin ---> client:ServiceDisconnect\"); \n\t...
[ "0.7376152", "0.7162639", "0.707017", "0.700034", "0.6934333", "0.68640214", "0.68524605", "0.684654", "0.6840401", "0.68330216", "0.6803266", "0.6794399", "0.6788466", "0.6787728", "0.6780206", "0.6780206", "0.6775316", "0.6775316", "0.67501533", "0.6742381", "0.67264795", ...
0.67058146
25