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
This method was generated by MyBatis Generator. This method corresponds to the database table order
int updateByExampleSelective(@Param("record") Order record, @Param("example") OrderExample example);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public String getSqlOrder() {\n return SQL_ORDER;\n }", "protected int getTableOrder()\n\t\t{\n\t\t\treturn Order ;\n\t\t}", "public String getDatabaseOrder() {\n\t\tSqlExpression expr = this.getOrderSqlExpression();\n\t\treturn expr != null ? expr.toSqlString() : \"\";\n\t}", "Or...
[ "0.7150102", "0.70747644", "0.5989495", "0.59714025", "0.5948854", "0.5912307", "0.59027433", "0.5847214", "0.58451104", "0.58348256", "0.57856953", "0.5757909", "0.57493114", "0.57219756", "0.5711273", "0.5709492", "0.5708551", "0.5699694", "0.56765527", "0.5645061", "0.5638...
0.0
-1
This method was generated by MyBatis Generator. This method corresponds to the database table order
int updateByExample(@Param("record") Order record, @Param("example") OrderExample example);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public String getSqlOrder() {\n return SQL_ORDER;\n }", "protected int getTableOrder()\n\t\t{\n\t\t\treturn Order ;\n\t\t}", "public String getDatabaseOrder() {\n\t\tSqlExpression expr = this.getOrderSqlExpression();\n\t\treturn expr != null ? expr.toSqlString() : \"\";\n\t}", "Or...
[ "0.7150102", "0.70747644", "0.5989495", "0.59714025", "0.5948854", "0.5912307", "0.59027433", "0.5847214", "0.58451104", "0.58348256", "0.57856953", "0.5757909", "0.57493114", "0.57219756", "0.5711273", "0.5709492", "0.5708551", "0.5699694", "0.56765527", "0.5645061", "0.5638...
0.0
-1
This method was generated by MyBatis Generator. This method corresponds to the database table order
int updateByPrimaryKeySelective(Order record);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public String getSqlOrder() {\n return SQL_ORDER;\n }", "protected int getTableOrder()\n\t\t{\n\t\t\treturn Order ;\n\t\t}", "public String getDatabaseOrder() {\n\t\tSqlExpression expr = this.getOrderSqlExpression();\n\t\treturn expr != null ? expr.toSqlString() : \"\";\n\t}", "Or...
[ "0.7150395", "0.70756245", "0.598947", "0.59722084", "0.59503245", "0.5913322", "0.5903205", "0.5847804", "0.5845008", "0.58349603", "0.57852846", "0.5758361", "0.57513916", "0.5722208", "0.57122165", "0.5709362", "0.5707884", "0.5698927", "0.5676392", "0.56462383", "0.563935...
0.0
-1
This method was generated by MyBatis Generator. This method corresponds to the database table order
@Update({ "update order", "set orderid = #{orderid,jdbcType=VARCHAR},", "name = #{name,jdbcType=VARCHAR},", "price = #{price,jdbcType=BIGINT},", "userid = #{userid,jdbcType=VARCHAR}", "where id = #{id,jdbcType=BIGINT}" }) int updateByPrimaryKey(Order record);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public String getSqlOrder() {\n return SQL_ORDER;\n }", "protected int getTableOrder()\n\t\t{\n\t\t\treturn Order ;\n\t\t}", "public String getDatabaseOrder() {\n\t\tSqlExpression expr = this.getOrderSqlExpression();\n\t\treturn expr != null ? expr.toSqlString() : \"\";\n\t}", "Or...
[ "0.71494067", "0.7074074", "0.59868467", "0.59690744", "0.59484506", "0.59095633", "0.59027445", "0.5846221", "0.584277", "0.58352035", "0.578317", "0.57546306", "0.574843", "0.5720651", "0.5709069", "0.57073045", "0.57066065", "0.5701518", "0.5674727", "0.56443137", "0.56385...
0.0
-1
Use a simple regex to extract the vertices
public void parseInstruction(String instruction) { String regex = "Step ([A-Z]) must be finished before step ([A-Z]) can begin\\."; Pattern pattern = Pattern.compile(regex, Pattern.CASE_INSENSITIVE); Matcher matcher = pattern.matcher(instruction); matcher.find(); String vertex1 = matcher.group(1); String vertex2 = matcher.group(2); // Create vertices and edges in the DAG if (!steps.containsVertex(vertex1)) { steps.addVertex(vertex1); } if (!steps.containsVertex(vertex2)) { steps.addVertex(vertex2); } DefaultEdge edge = new DefaultEdge(); if (!steps.containsEdge(vertex1, vertex2)) { steps.addEdge(vertex1, vertex2); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void parseVertex(String line) {\n\n String first_float = line.substring(2);\n first_float = first_float.trim();\n int second_space_index = first_float.indexOf(' ') + 1;\n String second_float = first_float.substring(second_space_index);\n second_float = second_float.trim()...
[ "0.62069875", "0.5918337", "0.5765421", "0.5498267", "0.5409038", "0.5367795", "0.53335565", "0.5330689", "0.5290166", "0.5288609", "0.52747244", "0.52731943", "0.52229184", "0.5157108", "0.51471794", "0.5138403", "0.5116292", "0.5111083", "0.5111083", "0.5102109", "0.5064885...
0.0
-1
Use a TopologicalOrderIterator to traverse the DAG in order In case of a tie, use a standard string comparator
public String getOutput() { TopologicalOrderIterator<String, DefaultEdge> iterator = new TopologicalOrderIterator<>(steps, Comparator.comparing((String x) -> x)); // Traverse the DAG and store each vertex to a StringBuilder // to output once traversal is completed StringBuilder sb = new StringBuilder(); while (iterator.hasNext()) { sb.append(iterator.next()); } return sb.toString(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String alienOrder(String[] words) {\n int[] indegree = new int[26];\n //adj list--hashmap\n HashMap<Character, Set<Character>> adjList = new HashMap();\n // 2 major steps\n // buildGraph(words,indegree,adjList );\n \n // initialise the adj list graph ...
[ "0.59149766", "0.56399024", "0.55688906", "0.54560167", "0.5412725", "0.5392336", "0.53653705", "0.53067994", "0.5305667", "0.5229914", "0.51821136", "0.51725096", "0.5136785", "0.5129733", "0.5127908", "0.5124719", "0.50744164", "0.5067785", "0.5051706", "0.5012421", "0.4990...
0.45218277
98
In the constructor we initialise the logger but most importantly the address of this server. Please see the comments.
public ClusterManager() throws UnknownHostException { // We give each server a unique name because there can be several servers // started on the same machine. For example several Tomcats each with a war. In // this case the ip addresses will overlap. Ikube can also be started as stand alone // just in a Jvm(which is the same as a Tomcat essentially) also they will have the // same ip address this.ip = InetAddress.getLocalHost().getHostAddress(); this.address = ip + "." + System.nanoTime(); this.servers = new HashMap<String, Server>(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public LogGPPServer()\n\t{\n\t\tarqConfig = ArqConfigGPPServer.getInstance();\n\t\t\n\t\t//Define o nome e a porta do servidor q serao utilizados no LOG\n\t\thostName = arqConfig.getHostGPP() + \":\" + arqConfig.getPortaGPP();\n\n\t\ttry\n\t\t{\n\t\t\t// Liga o log4j\n\t\t\tthis.ligaLog4j();\n\t\t}\n\t\tcatch(Exce...
[ "0.6957622", "0.6915909", "0.6887854", "0.6885197", "0.650491", "0.6428421", "0.64266956", "0.6385103", "0.6382342", "0.631993", "0.62691844", "0.6249449", "0.6241781", "0.6169787", "0.61417186", "0.6120426", "0.61188936", "0.6085467", "0.60702395", "0.6062826", "0.605712", ...
0.0
-1
It is the complete flow of showing the navigations
@Test public void completDataTes() throws Exception{ mActivity.requestToNetwork(); Thread.sleep(1000); onView(withId(R.id.graph_menu)).perform(click()); onView(withId(R.id.graph_menu)).perform(click()); Thread.sleep(1000); onView(withIndex(withId(R.id.image_item_clicks), 2)).perform(click()); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void navigation() {\n }", "@Override\r\n\tpublic void navigate() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void goToShowList() {\n\t\t\r\n\t}", "private void displayMenu() {\n\t\tint option = MenuView.getMenuOption(\n\t\t\t\"Welcome \" + movieGoer.getName() + \"!\",\n\t\t\t\"View movie showtimes\",\n...
[ "0.7336313", "0.7282867", "0.69961065", "0.6419933", "0.6318167", "0.6300856", "0.62605655", "0.6240726", "0.6202879", "0.61664885", "0.614535", "0.6106791", "0.60975474", "0.6085301", "0.607103", "0.60654867", "0.60393363", "0.59983516", "0.59908414", "0.5965178", "0.5946642...
0.0
-1
Expect a result from activity 3
public void onStartThirdActivity(View view) { Intent getThirdActivity = new Intent(this, ThirdActivity.class); final int result = 1; startActivityForResult(getThirdActivity, result); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void onResult(int ret);", "public int getResult() {return resultCode;}", "public void invokeBehaviour() {\n\t\tIntent i = alertMe.createIntentFromSession();\n\t\ti.setClass(this, AlertMeBehaviour.class);\n startActivityForResult(i, AlertMeConstants.INVOKE_STATUS); \n }", "@Override\n protected...
[ "0.61328334", "0.6093462", "0.6086866", "0.6029202", "0.58929074", "0.5841461", "0.57722354", "0.5751298", "0.57306117", "0.57206565", "0.5659083", "0.5637421", "0.5634546", "0.5614731", "0.5614089", "0.56066", "0.5605092", "0.55900127", "0.55822766", "0.5560943", "0.55179673...
0.52984565
63
end::fieldsCtor[] Code snippet for initializing the GUI. This snippet will be executed in the graphic thread. It is an anonymous inner class. tag::initImplGraphic[]
void init ( String awtOrSwt) { this.gui.wdgInputText.setText("any text input"); this.gui.gralMng.createGraphic(awtOrSwt, 'E', this.log); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private static void initAndShowGUI() {\n }", "private void initUI() {\n }", "@Override\n\tpublic void initGui() {\n\t\tfield_154330_a.init();\n\t\tsuper.initGui();\n\t}", "private void initComponents() {\n\t\t\n\t}", "private void initComponents() {\n\t\t\n\t}", "@Override\n public void initGUI()...
[ "0.7231272", "0.70949745", "0.7016095", "0.6969738", "0.6969738", "0.6957574", "0.68849885", "0.68794686", "0.68794686", "0.6865031", "0.6862084", "0.6814031", "0.6793033", "0.6791902", "0.6787293", "0.6786769", "0.6783193", "0.6776265", "0.67674685", "0.67594457", "0.6748657...
0.0
-1
end::initImplGraphic[] tag::execute[] execute routine for any other actions than the graphical actions. The application may do some things beside.
void execute ( ) { //Now do nothing because all actions are done in the graphic thread. //A more complex application can handle some actions in its main thread simultaneously and independent of the graphic thread. // while(this.gui.gralMng.isRunning()) { try { if(this.gui.wdgButton2.wasReleased()) { String textOfField = this.gui.wdgInputText.getText(); this.gui.widgOutput.append("Button2 " + (++this.ctKeyStroke2) + " time, text=" + textOfField + "\n"); throw new Exception("test"); } Thread.sleep(100); } catch(Exception exc){ CharSequence sText = org.vishia.util.ExcUtil.exceptionInfo("unexpected: ", exc, 1, 10); this.log.sendMsg(9999, sText); } } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public abstract void executeActionButton();", "@Override\n\tpublic void doExecute(Runnable action) {\n\t\t\n\t}", "public abstract void executeRunButton();", "abstract public void performAction();", "@Override\n public void action() {\n }", "@Override\n public void action...
[ "0.62021935", "0.6137629", "0.60787433", "0.60445476", "0.5991005", "0.5991005", "0.5991005", "0.59849286", "0.5929852", "0.59235305", "0.59126097", "0.5894244", "0.5892063", "0.5880213", "0.58786094", "0.58541834", "0.5848865", "0.5847201", "0.5839782", "0.5832835", "0.58056...
0.55284166
84
end::main[] tag::action[] Operation on button pressed, on the application level. It uses the known references to the GralWidget. Immediately access to implementation widgets is not necessary. This operation is executed in the Graphic thread. Be carefully, do not program longer or hanging stuff such as synchronized or sleep.
void actionButton ( ) throws IOException { String textOfField = this.gui.wdgInputText.getText(); this.gui.widgOutput.append("Button1 " + (++this.ctKeyStroke1) + " time, text=" + textOfField + "\n"); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected void execute() { \t\n// \tboolean toggle=true;\n// \tboolean grab = false;\n// \tif(toggle&&button.get()) {//execute once per button push\n// \t\ttoggle=false;//prevents code from being called again until button is released and pressed again\n// \t\tif(grab){\n// \t\t\tgrab=false;\n// ...
[ "0.66298336", "0.65656596", "0.6492711", "0.64560896", "0.63256985", "0.6183007", "0.6162809", "0.61269194", "0.6114866", "0.60641414", "0.6061642", "0.6019588", "0.60045725", "0.59999925", "0.5998241", "0.5997925", "0.5987056", "0.5984726", "0.59772915", "0.59499425", "0.594...
0.56291926
75
Methods / The constructor take a specific String formated word as input
public Word (String word) { // Call another constructor this(word.length()); // save the input word in this.theWord this.theWord = word.toCharArray(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Word (String word){\n this.word = word;\n count = 0;\n }", "public Word(String word) throws Exception{\n\t\tsuper();\n\t\tif(!isWordValid(word))\n\t\t\tthrow new Exception();\t\t\n\t\tkey = word;\n\t\tdefinition = \"\";\n\t}", "public Word(String text) {\n\t\tsuper();\n\t\tthis.text = t...
[ "0.7321902", "0.7243447", "0.71088755", "0.68482924", "0.6843969", "0.68228203", "0.66536206", "0.6624274", "0.64478016", "0.6410418", "0.63915724", "0.63681614", "0.63379127", "0.6323674", "0.6281762", "0.6231492", "0.62235004", "0.619026", "0.6185583", "0.61751014", "0.6169...
0.77533424
0
The constructor a more generalcased constructor which allows not initializing this.theWord
protected Word(int length) { // check if the length of is reasonable if(length > 0) { // initial the instance variables this.length = length; this.unrevealedSlots = this.length; this.mask = new boolean[this.length]; //each slots in the mask should be true (masked) by default for (int i = 0; i < this.length; i++) { this.mask[i] = true; } }else { // throw a exception if the length is not allowed throw new RuntimeException("Non-positive value is unacceptable."); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Word (String word) {\n\t\t// Call another constructor\n\t\tthis(word.length());\n\t\t// save the input word in this.theWord\n\t\tthis.theWord = word.toCharArray();\n\t}", "public Word (String word){\n this.word = word;\n count = 0;\n }", "private SpreedWord() {\n\n }", "public Doub...
[ "0.8413284", "0.7888346", "0.7730238", "0.7692205", "0.7476982", "0.7456652", "0.72897965", "0.72553796", "0.7212666", "0.7212666", "0.7212666", "0.71760315", "0.7112761", "0.7077101", "0.69598174", "0.693977", "0.68611896", "0.68381834", "0.6804849", "0.6797066", "0.6775056"...
0.62131256
64
return the length of the word
protected int getLength() { return this.length; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public int getWordLength();", "public static int getWordlenght() {\r\n\t\treturn lenght;\r\n\t}", "public int getWordSize(){\n\t\treturn word.length;\n\t}", "public int getLength() { return this.words.size(); }", "public int numWords(int length) {\r\n return 0;\r\n }", "public int lengthOfLonge...
[ "0.859207", "0.8357004", "0.7955007", "0.781396", "0.7586256", "0.7576015", "0.74353415", "0.7388972", "0.72372496", "0.71810734", "0.7143635", "0.7110763", "0.7102758", "0.7101043", "0.7066419", "0.7015262", "0.6983056", "0.6983056", "0.6983056", "0.6983056", "0.6983056", ...
0.0
-1
return the current mask of the word
protected boolean[] getMask() { return this.mask; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public long getMask() {\r\n\t\treturn this.mask;\r\n\t}", "public int letterMask(){\n\t\t\treturn letter_mask;\n\t\t}", "ICharacterMask getCharacterMask(int index);", "Long getResultMaskBoundary();", "public Boolean maskText();", "public BitSet getMask() {\r\n return mask;\r\n }", "public Fun...
[ "0.6589983", "0.63401693", "0.6330577", "0.6192664", "0.61695296", "0.6166126", "0.6090558", "0.5918397", "0.59010136", "0.58734155", "0.58663166", "0.58381206", "0.57866144", "0.57669383", "0.5762503", "0.5749264", "0.57079655", "0.569112", "0.5675752", "0.56386703", "0.5593...
0.6108353
6
unmask the corresponding position of the word decrement this.unrevealedSlots by 1
protected void unmaskSlot(int slot) { if (slot >= 0 && slot < this.length) { this.mask[slot] = false; this.unrevealedSlots--; } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void not() {\n\t\tfinal EWAHIterator i =\n\t\t\t\tnew EWAHIterator(this.buffer, this.actualsizeinwords);\n\t\tif (!i.hasNext())\n\t\t\treturn;\n\t\twhile (true) {\n\t\t\tfinal RunningLengthWord rlw1 = i.next();\n\t\t\tif (rlw1.getRunningLength() > 0)\n\t\t\t\trlw1.setRunningBit(!rlw1.getRunningBit());\n\t\t...
[ "0.6040588", "0.60117507", "0.59020764", "0.5813496", "0.571859", "0.5653694", "0.5599822", "0.5589694", "0.5537606", "0.55333865", "0.549718", "0.54965836", "0.54628354", "0.5447766", "0.54023737", "0.538988", "0.5363909", "0.5349067", "0.5335964", "0.5335639", "0.5307108", ...
0.73639715
0
return if the word is fully guessed out
public boolean isFinished() { // the word is guessed out only when the unrevealedSlots is 0 if (this.unrevealedSlots == 0) { return true; }else { return false; } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public boolean isWordFullyGuessed()\n {\n for(int i=0; i<showChar.length; i++)\n {\n if(!showChar[i]) return false;\n }\n\n return true;\n }", "boolean checkGuess(String guess) {\r\n if (currWord.contains(guess)) { // correct guess\r\n numToGuess--;\...
[ "0.77131", "0.7300475", "0.72181755", "0.7111815", "0.71031743", "0.70733064", "0.7003757", "0.6967787", "0.6806661", "0.6796438", "0.6780189", "0.6713629", "0.6707138", "0.6567718", "0.65416765", "0.6521339", "0.6472046", "0.6447961", "0.64444274", "0.64346814", "0.6428896",...
0.61201984
37
take the letter to proceed the guess on the word return true if the guess is correct else return false
public boolean takeGuess(char letter) { // reset default result as false boolean result = false; // iterate through the characters in the word for (int i = 0; i < this.getLength(); i++) { // if the guess is correct if (this.theWord[i] == letter) { // unmask the slot, set the result as true this.unmaskSlot(i); result = true; } } //return the result return result; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public boolean guess(char letter)\n\t{\n\t\treturn false;\n\t}", "private void matchletter(){\n\t\t/* Generate a Random Number and use that as a Index for selecting word from HangmanLexicon*/\n\t\tString incorrectwords = \"\";\n\t\tcanvas.reset();\n\t\tHangmanLexicon word= new HangmanLexicon(); // Get Word from...
[ "0.7896811", "0.7795853", "0.77423286", "0.7692634", "0.76661515", "0.7495562", "0.74760664", "0.74361765", "0.7289343", "0.7285714", "0.71424675", "0.71154034", "0.7062191", "0.7029148", "0.7007614", "0.6999109", "0.6981781", "0.69595045", "0.69335157", "0.6868657", "0.68533...
0.82871675
0
return the String format presentation of the Word Separated by space, each position will be shown as the original letter if unmasked or be shown as "_" if masked
@Override public String toString() { // create the String to return String str = new String(); // get the mask boolean[] mask = this.getMask(); // the new char of the string char oneChar; // for each character in the word for (int i = 0; i < this.getLength(); i++) { // if it is masked, set the new char as "_" if (mask[i] == true) { oneChar = '_'; // if it is unmasked, set the new char as the true character }else { oneChar = this.theWord[i]; } // add the new char to the string str += " " + oneChar; } // return the string return str; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String buildWord() {\n\t\tStringBuilder word = new StringBuilder();\n\t\t\n\t\tfor(int i = 0; i < letters.size(); i++) {\n\t\t\tLetter tempLetter = letters.get(i);\n\t\t\t\n\t\t\tif(!(letters.get(i).getLetter() >= 'A' && letters.get(i).getLetter() <= 'Z') || tempLetter.getStatus())\n\t\t\t\tif(letters.get(i...
[ "0.67276627", "0.65256244", "0.6346856", "0.61590725", "0.5981783", "0.5927492", "0.5907464", "0.5877733", "0.584137", "0.58225256", "0.578693", "0.57228035", "0.57041174", "0.5699797", "0.5680895", "0.5660503", "0.56564987", "0.5617688", "0.561339", "0.5585922", "0.55663306"...
0.7295629
0
TODO Autogenerated method stub
public void insertMemDts2(VngMem contact) { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExr...
[ "0.6671074", "0.6567672", "0.6523024", "0.6481211", "0.6477082", "0.64591026", "0.64127725", "0.63762105", "0.6276059", "0.6254286", "0.623686", "0.6223679", "0.6201336", "0.61950207", "0.61950207", "0.61922914", "0.6186996", "0.6173591", "0.61327106", "0.61285484", "0.608016...
0.0
-1
/ GETTER AND SETTTER
public void setiExampleWs(IExampleWS iExampleWs) { this.iExampleWs = iExampleWs; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void get() {\n\t\t\r\n\t}", "@Override\n public void get() {}", "public void get() {\n }", "public Empresa getEmpresa()\r\n/* 84: */ {\r\n/* 85:131 */ return this.empresa;\r\n/* 86: */ }", "public Student getStudent() { return student; }", "public Empleado getEm...
[ "0.67778563", "0.6611409", "0.65378225", "0.61919886", "0.6114965", "0.605731", "0.60508394", "0.60150766", "0.6006089", "0.59976023", "0.5962818", "0.59554064", "0.59329283", "0.5932162", "0.5930377", "0.5930377", "0.5914104", "0.59046274", "0.5904561", "0.58896315", "0.5888...
0.0
-1
Processes requests for both HTTP GET and POST methods.
protected void processRequest(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { response.setContentType("text/html;charset=UTF-8"); String url = ERROR; try { String code = request.getParameter("txtNewCode"); String userID = request.getParameter("txtNewUserID"); String name = request.getParameter("txtNewName"); String valueStr = request.getParameter("txtNewValue"); String beginDateStr = request.getParameter("txtNewBeginDate"); String closeDateStr = request.getParameter("txtNewCloseDate"); int value = Integer.parseInt(valueStr); SimpleDateFormat sdf = new SimpleDateFormat("dd-MM-yyyy"); java.util.Date dateBegin = sdf.parse(beginDateStr); java.util.Date dateClose = sdf.parse(closeDateStr); java.sql.Date beginDate = new Date(dateBegin.getTime()); java.sql.Date closeDate = new Date(dateClose.getTime()); VoucherDTO vou = new VoucherDTO(code, userID, name, value, beginDate, closeDate); VoucherDAO dao = new VoucherDAO(); boolean check = dao.insertVoucher(vou); if(check){ url = SUCCESS; request.setAttribute("CREATESUCCESS", "Create voucher successfull!"); } else { url = FAIL; request.setAttribute("CREATEFAIL", "Create voucher fail!"); } } catch (Exception e) { log("ERROR at CreateVoucherController: " + e.getMessage()); } finally { request.getRequestDispatcher(url).forward(request, response); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n protected void doPost(final HttpServletRequest req, final HttpServletResponse resp) throws ServletException, IOException {\n final String method = req.getParameter(METHOD);\n if (GET.equals(method)) {\n doGet(req, resp);\n } else {\n resp.setStatus(HttpServletResponse.SC_METHOD_NOT_...
[ "0.7004024", "0.66585696", "0.66031146", "0.6510023", "0.6447109", "0.64421695", "0.64405906", "0.64321136", "0.6428049", "0.6424289", "0.6424289", "0.6419742", "0.6419742", "0.6419742", "0.6418235", "0.64143145", "0.64143145", "0.6400266", "0.63939095", "0.63939095", "0.6392...
0.0
-1
Handles the HTTP GET method.
@Override protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { processRequest(request, response); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void doGet( )\n {\n \n }", "@Override\n\tprotected void executeGet(GetRequest request, OperationResponse response) {\n\t}", "@Override\n\tprotected Method getMethod() {\n\t\treturn Method.GET;\n\t}", "@Override\n\tprotected void doGet(HttpServletRequest req, HttpServletResponse resp) thro...
[ "0.7589609", "0.71665615", "0.71148175", "0.705623", "0.7030174", "0.70291144", "0.6995984", "0.697576", "0.68883485", "0.6873811", "0.6853569", "0.6843572", "0.6843572", "0.6835363", "0.6835363", "0.6835363", "0.68195957", "0.6817864", "0.6797789", "0.67810035", "0.6761234",...
0.0
-1
Handles the HTTP POST method.
@Override protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { processRequest(request, response); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tpublic void doPost(Request request, Response response) {\n\n\t}", "@Override\n protected void doPost(HttpServletRequest req, HttpServletResponse resp) {\n }", "public void doPost( )\n {\n \n }", "@Override\n public String getMethod() {\n return \"POST\";\n ...
[ "0.73289514", "0.71383566", "0.7116213", "0.7105215", "0.7100045", "0.70236707", "0.7016248", "0.6964149", "0.6889435", "0.6784954", "0.67733276", "0.67482096", "0.66677034", "0.6558593", "0.65582114", "0.6525548", "0.652552", "0.652552", "0.652552", "0.65229493", "0.6520197"...
0.0
-1
Returns a short description of the servlet.
@Override public String getServletInfo() { return "Short description"; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String getServletInfo()\n {\n return \"Short description\";\n }", "public String getServletInfo() {\n return \"Short description\";\n }", "public String getServletInfo() {\n return \"Short description\";\n }", "public String getServletInfo() {\n return \"Short d...
[ "0.87634975", "0.8732279", "0.8732279", "0.8732279", "0.8732279", "0.8732279", "0.8732279", "0.8732279", "0.8732279", "0.8732279", "0.8732279", "0.8699131", "0.8699131", "0.8699131", "0.8699131", "0.8699131", "0.8699131", "0.8531295", "0.8531295", "0.85282224", "0.85282224", ...
0.0
-1
Created by andycheng on 2016/3/26.
public interface IBasePresenter { void subscribeCallbacks(); void unSubscribeCallbacks(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void perish() {\n \n }", "private stendhal() {\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "@Override\r...
[ "0.6169699", "0.6029506", "0.5983016", "0.5909017", "0.5909017", "0.58916485", "0.58569443", "0.582393", "0.5803783", "0.57937586", "0.57829154", "0.57368356", "0.57324016", "0.5707139", "0.5692479", "0.5688311", "0.568669", "0.568669", "0.568669", "0.568669", "0.568669", "...
0.0
-1
TODO Autogenerated method stub
@Override public void onItemSelected(AdapterView<?> arg0, View arg1, int arg2, long arg3) { switch (arg2) { case 0: areaid = "07"; break; case 1: areaid = "23"; break; default: break; } }
{ "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 onNothingSelected(AdapterView<?> arg0) { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExr...
[ "0.6671074", "0.6567672", "0.6523024", "0.6481211", "0.6477082", "0.64591026", "0.64127725", "0.63762105", "0.6276059", "0.6254286", "0.623686", "0.6223679", "0.6201336", "0.61950207", "0.61950207", "0.61922914", "0.6186996", "0.6173591", "0.61327106", "0.61285484", "0.608016...
0.0
-1
TODO Autogenerated method stub
@Override public boolean onTouch(View v, MotionEvent event) { dpd_dob.show(); return false; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExr...
[ "0.6671074", "0.6567672", "0.6523024", "0.6481211", "0.6477082", "0.64591026", "0.64127725", "0.63762105", "0.6276059", "0.6254286", "0.623686", "0.6223679", "0.6201336", "0.61950207", "0.61950207", "0.61922914", "0.6186996", "0.6173591", "0.61327106", "0.61285484", "0.608016...
0.0
-1
TODO Autogenerated method stub
@Override public boolean onTouch(View v, MotionEvent event) { dpd_expireDate.show(); return false; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExr...
[ "0.6671074", "0.6567672", "0.6523024", "0.6481211", "0.6477082", "0.64591026", "0.64127725", "0.63762105", "0.6276059", "0.6254286", "0.623686", "0.6223679", "0.6201336", "0.61950207", "0.61950207", "0.61922914", "0.6186996", "0.6173591", "0.61327106", "0.61285484", "0.608016...
0.0
-1
TODO Autogenerated method stub
@Override public boolean onTouch(View v, MotionEvent event) { dpd_issueDate.show(); return false; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExr...
[ "0.6671074", "0.6567672", "0.6523024", "0.6481211", "0.6477082", "0.64591026", "0.64127725", "0.63762105", "0.6276059", "0.6254286", "0.623686", "0.6223679", "0.6201336", "0.61950207", "0.61950207", "0.61922914", "0.6186996", "0.6173591", "0.61327106", "0.61285484", "0.608016...
0.0
-1
TODO Autogenerated method stub
@Override public void onCheckedChanged(RadioGroup group, int checkedId) { if (checkedId == addpass_male.getId()) { sex = addpass_male.getText().toString(); } else if (checkedId == addpass_female.getId()) { sex = addpass_female.getText().toString(); } }
{ "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 onCreateOptionsMenu(Menu menu, MenuInflater inflater) { super.onCreateOptionsMenu(menu, inflater); Button actionbar_back_btn = (Button)getActivity().findViewById(R.id.actionbar_back_btn); actionbar_back_btn.setOnClickListener(new OnClickListener() { @Override public void onClick(View v) { // TODO Auto-generated method stub /*YwblFragment ywbl = new YwblFragment(); getFragmentManager().beginTransaction().replace(R.id.content, ywbl).commit(); */ getFragmentManager().popBackStack(); } }); actionbar_back_btn.setVisibility(View.VISIBLE); TextView actionbar_title = (TextView)getActivity().findViewById(R.id.actionbar_title); actionbar_title.setText("添加证件"); }
{ "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 /YwblFragment ywbl = new YwblFragment(); getFragmentManager().beginTransaction().replace(R.id.content, ywbl).commit();
@Override public void onClick(View v) { getFragmentManager().popBackStack(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n protected void onCreate(Bundle savedInstanceState) {\n setTheme(R.style.AppTheme);\n super.onCreate(savedInstanceState);\n setContentView(R.layout.activity_main);\n writedb s=new writedb(this);\n s.wr(path);\n init();\n zhuye zhuye=new zhuye();\n ...
[ "0.61488515", "0.60401726", "0.6002299", "0.5992794", "0.5970499", "0.583852", "0.58372456", "0.5786348", "0.5742841", "0.56921405", "0.56564844", "0.56393534", "0.5630582", "0.5625028", "0.5600964", "0.5576771", "0.55695033", "0.55683523", "0.5562156", "0.55451757", "0.55411...
0.0
-1
TODO Autogenerated method stub
@Override public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) { setHasOptionsMenu(true); return inflater.inflate(R.layout.activity_addpass, container, false); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExr...
[ "0.6671074", "0.6567672", "0.6523024", "0.6481211", "0.6477082", "0.64591026", "0.64127725", "0.63762105", "0.6276059", "0.6254286", "0.623686", "0.6223679", "0.6201336", "0.61950207", "0.61950207", "0.61922914", "0.6186996", "0.6173591", "0.61327106", "0.61285484", "0.608016...
0.0
-1
TODO Autogenerated method stub
@Override public void onActivityCreated(Bundle savedInstanceState) { super.onActivityCreated(savedInstanceState); if (CheckNetwork.connected(this)){ init(); addpass_bundle_btn.setOnClickListener(new OnClickListener() { @Override public void onClick(View v) { // TODO Auto-generated method stub if (addpass_passNumber.getText().toString().equals("")|| addpass_surName.getText().toString().equals("")|| addpass_givenName.getText().toString().equals("")|| addpass_dob.getText().toString().equals("")|| sex.equals("")||sex.equals(null)|| addpass_pob.getText().toString().equals("")|| addpass_expireDate.getText().toString().equals("")|| addpass_issueDate.getText().toString().equals("")|| addpass_issueArea.getText().toString().equals("")|| areaid.equals("")) { Toast.makeText(getActivity(), "请输入完整信息!", Toast.LENGTH_SHORT).show(); } else { new CustomAsynTask(getActivity()) { @Override protected Boolean doInBackground(Void... params) { String[] keys = new String[] { "username", "passNumber", "surName", "givenName", "dob", "sex", "pob", "expireDate", "issueDate", "issueArea", "area" }; String[] values = new String[] { sp.getString("username", ""), addpass_passNumber.getText().toString(), addpass_surName.getText().toString(), addpass_givenName.getText().toString(), addpass_dob.getText().toString(), sex, addpass_pob.getText().toString(), addpass_expireDate.getText().toString(), addpass_issueDate.getText().toString(), addpass_issueArea.getText().toString(), areaid }; PostJson postJson = new PostJson(); GetParamsMap = postJson.Post(keys, values, "addPass"); Boolean success = false; success = (Boolean) GetParamsMap.get("success"); return success; } protected void onPostExecute(Boolean result) { super.onPostExecute(result); if (GetParamsMap.get("msg").toString().length() > 50) { Toast.makeText( getActivity().getApplicationContext(), R.string.toast_flase_msg, Toast.LENGTH_LONG) .show(); } else { Toast.makeText( getActivity().getApplicationContext(), (String) GetParamsMap.get("msg"), Toast.LENGTH_LONG).show(); } if (result) { fragmentManager.popBackStack(); transaction.commit(); } }; }.execute(); } } }); } }
{ "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 onClick(View v) { if (addpass_passNumber.getText().toString().equals("")|| addpass_surName.getText().toString().equals("")|| addpass_givenName.getText().toString().equals("")|| addpass_dob.getText().toString().equals("")|| sex.equals("")||sex.equals(null)|| addpass_pob.getText().toString().equals("")|| addpass_expireDate.getText().toString().equals("")|| addpass_issueDate.getText().toString().equals("")|| addpass_issueArea.getText().toString().equals("")|| areaid.equals("")) { Toast.makeText(getActivity(), "请输入完整信息!", Toast.LENGTH_SHORT).show(); } else { new CustomAsynTask(getActivity()) { @Override protected Boolean doInBackground(Void... params) { String[] keys = new String[] { "username", "passNumber", "surName", "givenName", "dob", "sex", "pob", "expireDate", "issueDate", "issueArea", "area" }; String[] values = new String[] { sp.getString("username", ""), addpass_passNumber.getText().toString(), addpass_surName.getText().toString(), addpass_givenName.getText().toString(), addpass_dob.getText().toString(), sex, addpass_pob.getText().toString(), addpass_expireDate.getText().toString(), addpass_issueDate.getText().toString(), addpass_issueArea.getText().toString(), areaid }; PostJson postJson = new PostJson(); GetParamsMap = postJson.Post(keys, values, "addPass"); Boolean success = false; success = (Boolean) GetParamsMap.get("success"); return success; } protected void onPostExecute(Boolean result) { super.onPostExecute(result); if (GetParamsMap.get("msg").toString().length() > 50) { Toast.makeText( getActivity().getApplicationContext(), R.string.toast_flase_msg, Toast.LENGTH_LONG) .show(); } else { Toast.makeText( getActivity().getApplicationContext(), (String) GetParamsMap.get("msg"), Toast.LENGTH_LONG).show(); } if (result) { fragmentManager.popBackStack(); transaction.commit(); } }; }.execute(); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExr...
[ "0.6671074", "0.6567672", "0.6523024", "0.6481211", "0.6477082", "0.64591026", "0.64127725", "0.63762105", "0.6276059", "0.6254286", "0.623686", "0.6223679", "0.6201336", "0.61950207", "0.61950207", "0.61922914", "0.6186996", "0.6173591", "0.61327106", "0.61285484", "0.608016...
0.0
-1
Inflate the menu; this adds items to the action bar if it is present.
@Override public boolean onCreateOptionsMenu(Menu menu) { getMenuInflater().inflate(R.menu.menu_display_image, menu); return true; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n \tMenuInflater inflater = getMenuInflater();\n \tinflater.inflate(R.menu.main_activity_actions, menu);\n \treturn super.onCreateOptionsMenu(menu);\n }", "@Override\n public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {...
[ "0.7246102", "0.7201358", "0.7194834", "0.7176498", "0.71066517", "0.7039537", "0.7037961", "0.70112145", "0.70094734", "0.69807225", "0.6944953", "0.69389373", "0.6933199", "0.6916928", "0.6916928", "0.6891486", "0.68831646", "0.68754137", "0.68745375", "0.68621665", "0.6862...
0.0
-1
Create by guoxin on 2018/6/26
public interface TypeConvert<T> { /** * 1 byte = 8 bit */ int BIT = 8; static Class<?> getTypeClazz(Class<? extends TypeConvert> typeConvert){ return ClassUtils.getGenericsType(typeConvert); } static short getTypeIndex(Class<?> clazz) { return clazz.getAnnotation(Typed.class).index(); } static TypeCache getTypeCache(Class<? extends TypeConvert> typeConvert, int index) { Class<?> genericsType = ClassUtils.getGenericsType(typeConvert); TypeCache typeCache = TypeCache.builder().index(index).typeClass(genericsType).typeConvert(typeConvert).build(); return typeCache; } /** * 将{@code t}解码为字节流 * * @param t obj * @return 字节流 */ ByteBuf encode(T t); /** * 将字节流编码为{@link T} * * @param byteBuf 字节流 * @return obj */ T decode(ByteBuf byteBuf); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private stendhal() {\n\t}", "@Override\n public void perish() {\n \n }", "public final void mo51373a() {\n }", "@Override\n\tpublic void create () {\n\n\t}", "@Override\n public void inizializza() {\n\n super.inizializza();\n }", "@Override\n\tpubl...
[ "0.6197794", "0.61113065", "0.6036594", "0.5972172", "0.59240645", "0.59181416", "0.5888121", "0.588733", "0.5840477", "0.582768", "0.5818668", "0.58184725", "0.5813727", "0.5813727", "0.58009267", "0.5797762", "0.57908", "0.57889855", "0.5786941", "0.5783087", "0.5778107", ...
0.0
-1
Creates a new instance of ConfuseEffect
public ParalysisEffect() { m_lock = SPECIAL_EFFECT_LOCK; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public AbilityEffect() {\n\t\tsuper();\n\t}", "Effect getEffect();", "@Override public Effect construct(ConfigurationSection section)\n {\n String type = section.getString(\"type\");\n if(type == null) return null; // If there is no type defined\n if(!TextUtil.toKey(type).equals(IDENTIFIER)) ...
[ "0.5701022", "0.5623893", "0.5448415", "0.5289358", "0.5278343", "0.52548486", "0.5236053", "0.51849073", "0.50241065", "0.4953359", "0.4938956", "0.49285278", "0.49269104", "0.49115345", "0.49111748", "0.48797706", "0.48795676", "0.48699313", "0.48347673", "0.48072362", "0.4...
0.49122566
13
Paralysis stays through switching out.
public boolean switchOut(Pokemon p) { return false; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void finishSwitching();", "@Override\n public void scanAborted() {\n this.mplLiveData.stopAll();\n this.mplLiveData.emptyPool(); // CKA April 25, 2014\n }", "public void stop() {\r\n _keepGoing = false;\r\n }", "@Override\r\n\tprotected void onPause() {\n\t\tsuper.onPause();\r\...
[ "0.6727282", "0.6507846", "0.6468306", "0.64656883", "0.646561", "0.6317693", "0.62531835", "0.6236009", "0.62328285", "0.6201276", "0.61858964", "0.61643726", "0.6158596", "0.6143859", "0.61278963", "0.61130905", "0.60923064", "0.6073257", "0.6073199", "0.6062846", "0.606059...
0.6106492
16
Paralysis has a 25% chance of immobolising the afflicted pokemon.
public boolean immobilises(Pokemon poke) { BattleField field = poke.getField(); if (field.getRandom().nextDouble() <= 0.25) { field.showMessage(poke.getName() + " is paralysed! It can't move!"); return true; } return false; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "double getMissChance();", "static boolean getMauled(){\n\t\t\tif (Person.player.inventory.contains(Item.repellent)) //if you have the goose repellent...\n\t\t\t\treturn (MainFile.getRandomNumber(240) == 12); //drastically lowers your chance of being mauled.\n\t\t\treturn (MainFile.getRandomNumber(20) == 12);//ge...
[ "0.63058376", "0.6300658", "0.6248813", "0.6187665", "0.6171698", "0.6118705", "0.60821813", "0.60508186", "0.6026366", "0.60181624", "0.5999898", "0.59505355", "0.5947099", "0.5941139", "0.5931328", "0.5907943", "0.5907197", "0.58852094", "0.58284926", "0.58211887", "0.58206...
0.6793807
0
Responsible for searching and fetching Payments matching the input search criteria
public String paymentsSearch(final String merchantUuid, final String operatorCode, final String countryCode, final String msisdn);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@GetMapping(\"/_search/payments\")\n @Timed\n public ResponseEntity<List<PaymentDTO>> searchPayments(@RequestParam String query, Pageable pageable) {\n log.debug(\"REST request to search for a page of Payments for query {}\", query);\n Page<PaymentDTO> page = paymentQueryService.search(query, p...
[ "0.67468727", "0.6344441", "0.63372713", "0.62471586", "0.6123552", "0.59435314", "0.5932732", "0.59004736", "0.58316714", "0.5754885", "0.5708349", "0.56728804", "0.5658101", "0.5648483", "0.5632892", "0.56306803", "0.5623349", "0.56150717", "0.5609684", "0.55955535", "0.558...
0.54401124
27
Responsible for generating the report
public String generateReport(final String merchantUuid, final Integer days, final Integer offset);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public GenerateReport() {\n initComponents();\n displayLogs();\n }", "public static void generateReport() {\n PrintImpl printer = new PrintImpl(realtorLogImpl, propertyLogImpl);\n printer.generateReport(REQUESTS_FILE);\n }", "public static void generateReport()\n\t{\n\...
[ "0.81044465", "0.7870368", "0.76167774", "0.76036084", "0.75920695", "0.75754964", "0.754835", "0.75442743", "0.7511593", "0.74887526", "0.7482862", "0.72336966", "0.7233256", "0.71808636", "0.71521926", "0.71112347", "0.709923", "0.7077815", "0.7060722", "0.7010549", "0.6971...
0.0
-1
Does accept filtered object?
boolean accept(T filteredObject);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "PropertiedObjectFilter<O> getFilter();", "public abstract Filter<T> filter();", "public abstract void filter();", "public interface ObjectFilter<In, Out> {\n\n\t/**\n\t * Return an object of <code>Out</code> type initialized with the specified <code>In</code> object. \n\t * This object is displayed or is giv...
[ "0.69403285", "0.6786121", "0.6753016", "0.6750716", "0.66812795", "0.6609855", "0.6575447", "0.6554531", "0.64976555", "0.64620304", "0.6371493", "0.6228207", "0.61565244", "0.6118935", "0.6091817", "0.6070661", "0.6069556", "0.6064948", "0.60004896", "0.5991008", "0.5985208...
0.8125559
0
for testing/getting the right shoot speed
public void manualShoot(double speed) { shooter1.set(speed); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void shoot() {\n\r\n switch (shootstate) {\r\n case down:\r\n tempbutton = Components.shootsinglespeed;\r\n templimit = islimitshooterup();\r\n\r\n if (Components.shootsinglespeed && islimitshooterup() && Components.DownPickupLimit.get()) {\r\n ...
[ "0.72938687", "0.68879545", "0.686076", "0.68338585", "0.67943215", "0.673251", "0.66601014", "0.65689623", "0.6527464", "0.64954907", "0.64954907", "0.64954907", "0.64954907", "0.64954907", "0.64954907", "0.64352274", "0.642966", "0.642966", "0.642966", "0.642966", "0.642966...
0.68413043
3
This method will be called once per scheduler run
@Override public void periodic() { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void periodic() {\n // This method will be called once per scheduler run\n }", "@Override\r\n\tpublic void doInitialSchedules() {\n\t}", "@Override\n public void autonomousPeriodic() {\n \n Scheduler.getInstance().run();\n \n }", "protected abstract void scheduler_i...
[ "0.79959375", "0.71370137", "0.7053971", "0.6965585", "0.69561255", "0.6893155", "0.68800586", "0.6876765", "0.67826825", "0.67659134", "0.6764156", "0.67577356", "0.6701485", "0.6687244", "0.6663779", "0.6658108", "0.6658108", "0.6658108", "0.6658108", "0.6644757", "0.664475...
0.0
-1
Evaluate statement represented as string.
public String evaluate(String statement) { // TODO: Implement the logic here if (statement == null | statement == ""){ return null; } String addition = "+"; String substraction = "-"; String multiplication = "*"; String division = "/"; String leftbracket = "("; String rightbracket = ")"; Stack<String> temporaryStack = new Stack<>(); Stack<String> inputStack = new Stack<>(); Stack<String> outputStack = new Stack<>(); Stack<String> stackOperators = new Stack<>(); Stack<String> reverseStack = new Stack<>(); Stack<Double> computingStack = new Stack<>(); String crutch = "crutch"; stackOperators.push(crutch); inputStack.push(crutch); Double leftNumber; Double rightNumber; Double outResult; int stackCounter = 1; int reverseCounter = 0; String solution; if (statement.contains(",") | statement.contains("..") | statement.contains("//")| statement.contains("**") | statement.contains("++") | statement.contains("--")) { return null; } //преобразование выражения в обратную польскую нотацию StringTokenizer stTok = new StringTokenizer(statement, "+-*/()", true); while (stTok.hasMoreTokens()) { temporaryStack.push(stTok.nextToken()); stackCounter++; } while (!temporaryStack.isEmpty()){ inputStack.push(temporaryStack.peek()); temporaryStack.pop(); } for (int i=1; i<stackCounter; i++){ if (Character.isDigit(inputStack.peek().charAt(0))){ outputStack.push(inputStack.peek()); inputStack.pop(); } else if (stackOperators.peek().equals(crutch) && (inputStack.peek().equals(addition) | inputStack.peek().equals(substraction) | inputStack.peek().equals(multiplication) | inputStack.peek().equals(division))){ stackOperators.push(inputStack.peek()); inputStack.pop(); } else if (inputStack.peek().equals(addition) | inputStack.peek().equals(substraction)){ while (stackOperators.peek().equals(addition) | stackOperators.peek().equals(substraction) | stackOperators.peek().equals(multiplication) | stackOperators.peek().equals(division)){ outputStack.push(stackOperators.peek()); stackOperators.pop(); } stackOperators.push(inputStack.peek()); inputStack.pop(); } else if (inputStack.peek().equals(multiplication) | inputStack.peek().equals(division)){ while (stackOperators.peek().equals(multiplication) | stackOperators.peek().equals(division)){ outputStack.push(stackOperators.peek()); stackOperators.pop(); } stackOperators.push(inputStack.peek()); inputStack.pop(); } else if (inputStack.peek().equals(leftbracket)){ stackOperators.push(inputStack.peek()); inputStack.pop(); } else if (inputStack.peek().equals(rightbracket)){ while (!stackOperators.peek().equals(leftbracket)){ outputStack.push(stackOperators.peek()); stackOperators.pop(); } if (stackOperators.peek().equals(crutch)){ return null; } inputStack.pop(); stackOperators.pop(); } } while (!stackOperators.peek().equals(crutch)){ if (stackOperators.peek().equals(leftbracket) | stackOperators.peek().equals(rightbracket)){ return null; } else { outputStack.push(stackOperators.peek()); stackOperators.pop(); } } while (!outputStack.isEmpty()){ reverseStack.push(outputStack.peek()); outputStack.pop(); reverseCounter++; } //вычисление выражения for (int i=0; i<reverseCounter; i++){ if (Character.isDigit(reverseStack.peek().charAt(0))) { computingStack.push(Double.parseDouble(reverseStack.peek())); } else if (reverseStack.peek().equals(addition)){ rightNumber = computingStack.peek(); computingStack.pop(); leftNumber = computingStack.peek(); computingStack.pop(); outResult = leftNumber + rightNumber; computingStack.push(outResult); } else if (reverseStack.peek().equals(substraction)){ rightNumber = computingStack.peek(); computingStack.pop(); leftNumber = computingStack.peek(); computingStack.pop(); outResult = leftNumber - rightNumber; computingStack.push(outResult); } else if (reverseStack.peek().equals(multiplication)){ rightNumber = computingStack.peek(); computingStack.pop(); leftNumber = computingStack.peek(); computingStack.pop(); outResult = leftNumber * rightNumber; computingStack.push(outResult); } else if (reverseStack.peek().equals(division)){ rightNumber = computingStack.peek(); computingStack.pop(); leftNumber = computingStack.peek(); computingStack.pop(); if (rightNumber!=0){ outResult = leftNumber / rightNumber; computingStack.push(outResult); } else return null; } reverseStack.pop(); } DecimalFormat myFormatter = new DecimalFormat("#.####"); String format = myFormatter.format(computingStack.peek()); solution = format.replace( ',', '.'); return solution; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "String evaluate();", "public String evaluate(String expression);", "public String eval()\r\n\t{\r\n\t\treturn eval(null, null);\r\n\t}", "public Object eval(String expression) throws Exception;", "public String evaluate(final String jsExpression);", "Hojas eval();", "@Test\r\n public void testEval__...
[ "0.7016432", "0.6811866", "0.6225654", "0.6079348", "0.6046474", "0.5888169", "0.5843089", "0.5804055", "0.5732553", "0.57273906", "0.57065547", "0.56871796", "0.56871796", "0.5658676", "0.5649615", "0.5613695", "0.56077355", "0.55234694", "0.5496534", "0.5495888", "0.5493389...
0.51244146
39
NOTE: This test purely tests that when you are logged into Sugar and then navigate away and log into Portal, your session is still active when you navigate back to sugar(). This means once a test that follows this behavior is executed and Cleanup is run, the go(baseURL) will not require us to log in.
@Test public void portalLoginAfterSugarLogin() throws Exception { VoodooUtils.voodoo.log.info("Running portalLoginAfterSugarLogin()..."); // Log into Portal portal.loginScreen.navigateToPortal(); portal.login(portalUser); VoodooUtils.voodoo.log.info("If this message appears, that means we logged in successfully without error."); portal.navbar.userAction.assertVisible(true); VoodooUtils.voodoo.log.info("portalLoginAfterSugarLogin() completed."); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test\n public void loginRegistersSessionRoutes_GlobalCanBeAdded() {\n getDriver().get(getTestURL()+\"global\");\n\n WebElement login = findElement(By.id(\"login-field\"));\n WebElement pwd = findElement(By.id(\"password-field\"));\n\n login.sendKeys(\"admin\");\n pwd.sendKeys...
[ "0.69537634", "0.69067806", "0.6587034", "0.6518142", "0.6394273", "0.6283807", "0.6273013", "0.62042135", "0.61762214", "0.6175763", "0.6144968", "0.61407053", "0.61383075", "0.61313117", "0.6091393", "0.6064329", "0.6062358", "0.6047576", "0.60382277", "0.6012167", "0.60086...
0.63268214
5
NOTE: This test tests the behavior of PortalTest base cleanup after a test finishes while logged into Sugar as a Regular user.
@Test public void portalTestFinishesWhileLoggedInAsRegularUser() throws Exception { VoodooUtils.voodoo.log.info("Running portalTestFinishesWhileLoggedInAsRegularUser()..."); // Log into Portal portal.loginScreen.navigateToPortal(); portal.login(portalUser); VoodooUtils.voodoo.log.info("If this message appears, that means we logged in successfully without error."); portal.navbar.userAction.assertVisible(true); sugar().loginScreen.navigateToSugar(); sugar().alerts.waitForLoadingExpiration(30000); sugar().logout(); sugar().login(sugar().users.getQAUser()); VoodooUtils.voodoo.log.info("portalTestFinishesWhileLoggedInAsRegularUser() completed."); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test(expected = Exception.class)\n\tpublic void portalTestBaseCleanupAfterFailure() throws Exception {\n\t\tVoodooUtils.voodoo.log.info(\"Running portalTestBaseCleanupAfterFailure()...\");\n\n\t\t// Log into Portal\n\t\tportal.loginScreen.navigateToPortal();\n\t\tportal.login(portalUser);\n\n\t\tportal.loginScree...
[ "0.7297737", "0.6828958", "0.67841476", "0.67045295", "0.6679708", "0.66752297", "0.6563684", "0.6548086", "0.65122306", "0.64296633", "0.6427565", "0.6401281", "0.6395003", "0.6388721", "0.6367604", "0.6359338", "0.63516", "0.6308669", "0.630071", "0.62948835", "0.6283199", ...
0.72181004
1
NOTE: This test is to simulate a failure in a test execute that triggers Cleanup to occur.
@Test(expected = Exception.class) public void portalTestBaseCleanupAfterFailure() throws Exception { VoodooUtils.voodoo.log.info("Running portalTestBaseCleanupAfterFailure()..."); // Log into Portal portal.loginScreen.navigateToPortal(); portal.login(portalUser); portal.loginScreen.getControl("login").click(); // This will fail, but the @Test expects this VoodooUtils.voodoo.log.info("portalTestBaseCleanupAfterFailure() completed."); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@AfterMethod(alwaysRun=true)\n public boolean testCleanUp()\n throws Exception\n {\n boolean status = true;\n \n status &= super.testCleanUp();\n \n assertTrue(status, \"Cleanup failed\");\n return status;\n }", "public void testGetCleanupOnPutFailure() {\n System...
[ "0.7409567", "0.7186945", "0.71776766", "0.71596515", "0.71391934", "0.7128949", "0.70570284", "0.7025625", "0.69914454", "0.698841", "0.696799", "0.69176096", "0.6862626", "0.6841069", "0.6815385", "0.67998505", "0.67941314", "0.6783766", "0.6783766", "0.6783766", "0.6776801...
0.6595225
47
System.out.println(privilegeList + "|ifAll|" + privilegeCode);
public static boolean isUrl(List<String> urlList, String url) { if (StringUtils.isNotEmpty(url) && urlList != null) { String[] needPri = url.split(DELIMITED_CHAR); for (String pri : needPri) { if (!urlList.contains(pri)) { return false; } } return true; } return false; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void showList() {\n\t\tSystem.out.println(\"I am a MAC list\");\r\n\t}", "public int getMetaPrivileges();", "public void printOut() {\n System.out.println(\"\\t\" + result + \" = icmp \" + cond.toLowerCase() + \" \" + type + \" \" + op1 + \", \" + op2 );\n\n // System.out.p...
[ "0.57598394", "0.56379426", "0.5506534", "0.54999936", "0.5393121", "0.53709126", "0.5271335", "0.5260071", "0.52514184", "0.52366066", "0.5235557", "0.51848", "0.5182784", "0.51640654", "0.5157107", "0.5148058", "0.5143727", "0.5140486", "0.5140056", "0.5108256", "0.5102383"...
0.0
-1
/ suggestion: start automating some pages. ex: realtor.com Javascript executor is uses to handle some browser events scroll up/down/left/right scroll into element click generate alert change color ... 1. create javascript executor at the test method level. In the class level it did not work we create it from driver. So we have to "cast"
@Test public void scrollIntoView() throws InterruptedException { /* Task: go to http://carettahotel.com/ verify the text "Recent Blog" is on the page Scroll to that element */ driver.get("http://carettahotel.com/"); // we have to scroll otherwise it fails // scroll to the element by using javascript executor WebElement recentBlog = driver.findElement(By.xpath("//*[.='Recent Blog']")); // 1. create javascript executor // ((JavascriptExecutor) driver).executeScript("arguments[0].scrollIntoView(true);", recentBlog); JavascriptExecutor executor = (JavascriptExecutor) driver; executor.executeScript("arguments[0].scrollIntoView(true)", recentBlog); //Wait a little so that the page scrolls down. We can use also explictlyWait Thread.sleep(3000); boolean isRecentBlogDisplayed = recentBlog.isDisplayed(); Assert.assertTrue(isRecentBlogDisplayed); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private static Object executeJavascript(WebDriver driver, String script) {\n System.out.println(\"Executing javascript: \" + script);\n return ((JavascriptExecutor) driver).executeScript(script);\n }", "protected JavascriptExecutor getExecutor() {\n\t\treturn ((JavascriptExecutor) driver);\n\t}"...
[ "0.6475311", "0.64496696", "0.6321053", "0.62213385", "0.61973", "0.6172059", "0.6042771", "0.60094804", "0.59694564", "0.5969051", "0.5938644", "0.59232837", "0.5857899", "0.5852565", "0.5852545", "0.5842523", "0.5835524", "0.58335423", "0.5801072", "0.57994646", "0.5799165"...
0.6054534
6
Retreives access token from http request
public String extractAuthTokenFromRequest(HttpServletRequest httpRequest) { /* Get token from header */ String authToken = httpRequest.getHeader("X-Auth-Token"); /* If token not found get it from request parameter */ if (authToken == null) { authToken = httpRequest.getParameter("token"); } return authToken; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "String getAccessToken();", "String getAccessToken();", "GetToken.Req getGetTokenReq();", "OAuth2Token getToken();", "public String getAccessToken();", "private void getAccessToken() {\n\n\t\tMediaType mediaType = MediaType.parse(\"application/x-www-form-urlencoded\");\n\t\tRequestBody body = RequestBody....
[ "0.7615907", "0.7615907", "0.75174445", "0.7496002", "0.7453951", "0.72349906", "0.70693845", "0.7024268", "0.70055133", "0.69803125", "0.69801515", "0.6964778", "0.69373196", "0.69193715", "0.68699837", "0.6868124", "0.6861376", "0.6846879", "0.6843419", "0.6813082", "0.6786...
0.0
-1
gives the user name for a given access token string
public String getUserNameFromToken(String authToken) { if (null == authToken) { return null; } String[] parts = authToken.split(":"); return parts[0]; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "String getUsernameFromToken(String token);", "java.lang.String getUserName();", "java.lang.String getUserName();", "java.lang.String getUserName();", "private String getUserName(String authToken) {\n if (authToken != null) {\n try {\n return jwtTokenService.getUsernameFromToken(authToken);\n...
[ "0.7640887", "0.7154689", "0.7154689", "0.7154689", "0.7050197", "0.6934308", "0.6877877", "0.6877877", "0.68470323", "0.6695333", "0.6672223", "0.6666185", "0.6651076", "0.66380876", "0.6603804", "0.6603804", "0.6603804", "0.6603804", "0.6603804", "0.6603804", "0.6603804", ...
0.70345116
5
Retrieves user name from HttpServletRequest
public String extractUserNameFromRequest(HttpServletRequest httpRequest) { String authToken = extractAuthTokenFromRequest(httpRequest); String userName = getUserNameFromToken(authToken); return userName; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public String getUserRealName(HttpServletRequest request) {\n String result = null;\n String userName = (String) request.getSession().getAttribute(\"userName\");\n if (userName != null && !userName.equals(\"\")) {\n CrUser user = userRepo.findByUserName(userName);\n ...
[ "0.7772605", "0.75906193", "0.75906193", "0.75906193", "0.7372811", "0.7372811", "0.7371112", "0.7304982", "0.7304982", "0.72637266", "0.7261581", "0.7261581", "0.7261581", "0.7261581", "0.7261581", "0.7261581", "0.7261581", "0.7261581", "0.7261581", "0.7168025", "0.71052617"...
0.78382915
0
Constructs a DIDURL object with the given DID context and a url string.
public DIDURL(DID context, String url) throws MalformedDIDURLException { Parser parser = new Parser(); parser.parse(context, url); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static DIDURL valueOf(String context, String url) throws MalformedDIDURLException {\n\t\treturn (url == null || url.isEmpty()) ? null : new DIDURL(DID.valueOf(context), url);\n\t}", "public DIDURL(DID context, DIDURL url) {\n\t\tcheckArgument(context != null || url != null, \"Invalid context and url\");\n...
[ "0.7735603", "0.769393", "0.753104", "0.7095135", "0.66303885", "0.60169274", "0.60110056", "0.59324944", "0.5835787", "0.5824975", "0.5762122", "0.5749308", "0.5744495", "0.5744495", "0.5734601", "0.5662298", "0.5587315", "0.5551192", "0.5520754", "0.55096763", "0.54422754",...
0.7176713
3
Constructs a DIDURL object.
public DIDURL(String url) throws MalformedDIDURLException { this(null, url); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public DIDURL build() {\n\t\t\treturn url.deepClone(true);\n\t\t}", "public Builder(DID did) {\n\t\t\tthis(new DIDURL(did));\n\t\t}", "public DIDURL(DID context, DIDURL url) {\n\t\tcheckArgument(context != null || url != null, \"Invalid context and url\");\n\n\t\tif (context != null)\n\t\t\tthis.did = context;...
[ "0.70203066", "0.67110074", "0.6629", "0.6431727", "0.63866305", "0.63137376", "0.6296357", "0.6191419", "0.6003625", "0.5680532", "0.55220807", "0.5405902", "0.537024", "0.5361314", "0.5342427", "0.53308505", "0.529816", "0.52367765", "0.5152238", "0.5132134", "0.5132134", ...
0.6996228
1
Constructs a DIDURL object with the given DID context and a DIDURL object.
public DIDURL(DID context, DIDURL url) { checkArgument(context != null || url != null, "Invalid context and url"); if (context != null) this.did = context; if (url != null) { if (url.did != null) this.did = url.did; this.path = url.path; this.query = url.query; this.queryString = url.queryString; this.fragment = url.fragment; this.repr = url.repr; this.metadata = url.metadata; } else { this.query = Collections.emptyMap(); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private DIDURL(DID context) {\n\t\tthis(context, (DIDURL)null);\n\t}", "public static DIDURL valueOf(String context, String url) throws MalformedDIDURLException {\n\t\treturn (url == null || url.isEmpty()) ? null : new DIDURL(DID.valueOf(context), url);\n\t}", "public static DIDURL valueOf(DID context, String ...
[ "0.7368883", "0.7112082", "0.68365693", "0.63018656", "0.6260742", "0.58570623", "0.5742741", "0.57145756", "0.5411781", "0.51212597", "0.50734156", "0.5057941", "0.47941962", "0.4758437", "0.470626", "0.46234152", "0.46053997", "0.458724", "0.45818913", "0.45529732", "0.4513...
0.7524835
0
Constructs a DIDURL object from DID object.
private DIDURL(DID context) { this(context, (DIDURL)null); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Builder(DID did) {\n\t\t\tthis(new DIDURL(did));\n\t\t}", "public static DIDURL valueOf(DID context, String url) throws MalformedDIDURLException {\n\t\treturn (url == null || url.isEmpty()) ? null : new DIDURL(context, url);\n\t}", "public DIDURL(String url) throws MalformedDIDURLException {\n\t\tthis(n...
[ "0.6513077", "0.621307", "0.62061965", "0.61809874", "0.6171016", "0.6080136", "0.59153235", "0.5882095", "0.54224825", "0.5329907", "0.52174616", "0.5071686", "0.48813662", "0.44930914", "0.44539413", "0.44163388", "0.43574676", "0.43344837", "0.43233624", "0.43198448", "0.4...
0.58732283
8
Create a DIDURL object from the given string. The method will parse the DIDURL object from the string if the string is not empty. Otherwise will return null. If the parsed DIDURL object is relative, then use context as it's base DID.
public static DIDURL valueOf(DID context, String url) throws MalformedDIDURLException { return (url == null || url.isEmpty()) ? null : new DIDURL(context, url); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static DIDURL valueOf(String context, String url) throws MalformedDIDURLException {\n\t\treturn (url == null || url.isEmpty()) ? null : new DIDURL(DID.valueOf(context), url);\n\t}", "public DIDURL(DID context, DIDURL url) {\n\t\tcheckArgument(context != null || url != null, \"Invalid context and url\");\n...
[ "0.6763285", "0.5947271", "0.5888981", "0.57389593", "0.56727433", "0.53922343", "0.5245866", "0.5083039", "0.48798037", "0.48527354", "0.48527354", "0.4844862", "0.4834853", "0.46967062", "0.46784037", "0.46548024", "0.46205416", "0.4594441", "0.4555335", "0.4551049", "0.454...
0.6584807
1
Create a DIDURL object from the given string. The method will parse the DIDURL object from the string if the string is not empty. Otherwise will return null. If the parsed DIDURL object is relative, then use context as it's base DID.
public static DIDURL valueOf(String context, String url) throws MalformedDIDURLException { return (url == null || url.isEmpty()) ? null : new DIDURL(DID.valueOf(context), url); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static DIDURL valueOf(DID context, String url) throws MalformedDIDURLException {\n\t\treturn (url == null || url.isEmpty()) ? null : new DIDURL(context, url);\n\t}", "public DIDURL(DID context, DIDURL url) {\n\t\tcheckArgument(context != null || url != null, \"Invalid context and url\");\n\n\t\tif (contex...
[ "0.6585609", "0.594758", "0.58890975", "0.57384026", "0.567361", "0.5391243", "0.52467537", "0.5084414", "0.48791772", "0.48530298", "0.48530298", "0.48458263", "0.48357072", "0.4694861", "0.46764007", "0.4655256", "0.46200132", "0.45954785", "0.45558128", "0.4551678", "0.454...
0.6763645
0
Create a DIDURL object from the given string. The method will parse the DIDURL object from the string if the string is not empty. Otherwise will return null.
public static DIDURL valueOf(String url) throws MalformedDIDURLException { return (url == null || url.isEmpty()) ? null : new DIDURL(url); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static DIDURL valueOf(DID context, String url) throws MalformedDIDURLException {\n\t\treturn (url == null || url.isEmpty()) ? null : new DIDURL(context, url);\n\t}", "public static DIDURL valueOf(String context, String url) throws MalformedDIDURLException {\n\t\treturn (url == null || url.isEmpty()) ? nul...
[ "0.64418507", "0.6372744", "0.6205544", "0.56847095", "0.56847095", "0.53686255", "0.5322994", "0.530668", "0.5271163", "0.52110183", "0.52077967", "0.51999855", "0.5194602", "0.5159875", "0.5159875", "0.51397926", "0.5087844", "0.5073897", "0.50605035", "0.50024986", "0.4992...
0.7156736
0
Get the base DID of the DIDURL object.
public DID getDid() { return did; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public java.lang.String getDID() {\r\n return DID;\r\n }", "public String getBaseDomain(String url)\r\n\t{\r\n\t\tString host = getHost(url);\r\n\r\n\t\tint startIndex = 0;\r\n\t\tint nextIndex = host.indexOf('.');\r\n\t\tint lastIndex = host.lastIndexOf('.');\r\n\t\twhile (nextIndex < lastIndex)\r\n\t...
[ "0.5899009", "0.55824775", "0.5569004", "0.5565459", "0.5535013", "0.5506784", "0.5459783", "0.5360246", "0.53472376", "0.53447646", "0.5342863", "0.5325474", "0.5303834", "0.52922714", "0.5254994", "0.52484286", "0.5218677", "0.5199465", "0.5199465", "0.5194194", "0.5185596"...
0.5187847
20
Set the base DID of the DIDURL object.
protected void setDid(DID did) { this.did = did; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void setBaseUri(String baseUri);", "public Builder setDid(DID did) {\n\t\t\turl.setDid(did);\n\t\t\treturn this;\n\t\t}", "public void setBase(LocatorIF base_address) {\n this.base_address = base_address;\n }", "public Builder(DID did) {\n\t\t\tthis(new DIDURL(did));\n\t\t}", "public void setDID(java.l...
[ "0.58695024", "0.5861819", "0.582321", "0.5793527", "0.57680756", "0.567124", "0.5608456", "0.554603", "0.5503427", "0.53712887", "0.5355589", "0.5325972", "0.5307659", "0.53070116", "0.5294385", "0.5276132", "0.52573013", "0.52043855", "0.52025664", "0.5192689", "0.5126668",...
0.5516858
8
Get the decoded path component of this DIDURL.
public String getPath() { return path; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String getEncodedPath() {\n return getEncodedPath(false);\n }", "@Override\r\n public String getPathDecoded() throws FileSystemException {\r\n if (decodedAbsPath == null) {\r\n decodedAbsPath = UriParser.decode(getPath());\r\n }\r\n\r\n return decodedAbsPath;\r\n ...
[ "0.7116172", "0.67712176", "0.64210564", "0.64091927", "0.6386332", "0.63755333", "0.6298091", "0.6174265", "0.616515", "0.61621165", "0.6018261", "0.59923923", "0.5964059", "0.5948022", "0.58771867", "0.5845214", "0.5817858", "0.5792533", "0.5746912", "0.5730773", "0.5716261...
0.5491448
65
Get the decoded query component of this DIDURL.
public String getQueryString() { if (query.isEmpty()) return null; if (queryString == null) queryString = mapToString(query, "&"); return queryString; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public java.lang.String getQuery() {\n java.lang.Object ref = query_;\n if (ref instanceof java.lang.String) {\n return (java.lang.String) ref;\n } else {\n com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;\n java...
[ "0.70136344", "0.69760466", "0.6964511", "0.6930095", "0.6728501", "0.6517513", "0.6415172", "0.6415172", "0.6364842", "0.6364842", "0.6243974", "0.6219238", "0.61666435", "0.6164829", "0.61391836", "0.613875", "0.6128647", "0.6121898", "0.61176205", "0.61176205", "0.61176205...
0.595842
28
Get the query component of this DIDURL as a map.
public Map<String, String> getQuery() { return Collections.unmodifiableMap(query); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Map getQueryParameterMap() {\n return queryParams;\n }", "public Map<String, Object> getParameterMap() {\n\t\treturn queryParameters;\n\t}", "public Map getQueryParameterMap(PortletWindow window) {\n return queryParams;\n }", "public static Map<String, String> getQueryMap(String qu...
[ "0.70165515", "0.66128325", "0.6522289", "0.63555187", "0.6176877", "0.61408114", "0.6133714", "0.6015737", "0.600783", "0.598133", "0.59630597", "0.59630597", "0.5918032", "0.5782217", "0.57468456", "0.5744005", "0.5691691", "0.56492347", "0.5604416", "0.5592883", "0.5583384...
0.78342146
0
Get the value of the given query parameter.
public String getQueryParameter(String name) { checkArgument(name != null && !name.isEmpty(), "Invalid parameter name"); return query.get(name); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String getParameter(String name) {\n String[] values = getParameterValues(name);\n return (values != null) ? values[0] : null;\n }", "public String getParam(String name) {\n // For now, we ignore multiple instances of the same parameter (which is otherwise valid).\n ...
[ "0.6634909", "0.6595928", "0.6547249", "0.65016466", "0.6340169", "0.6310827", "0.63004684", "0.62768024", "0.62533015", "0.61884576", "0.6165158", "0.61603934", "0.6078037", "0.60608405", "0.6059686", "0.6026699", "0.59804654", "0.5976574", "0.5969808", "0.59458774", "0.5912...
0.61555535
12
Check whether the given parameter exists in the query component.
public boolean hasQueryParameter(String name) { checkArgument(name != null && !name.isEmpty(), "Invalid parameter name"); return query.containsKey(name); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public boolean hasParam(String name)\r\n {\r\n try {\r\n return lookup.get(name) != null;\r\n } catch(Exception e) {}\r\n \r\n return false;\r\n }", "public boolean hasParam(String paramName);", "private boolean hasParam(SearchCriteria sc, final String param) {\n ...
[ "0.7393851", "0.7379185", "0.73715943", "0.72155976", "0.6861768", "0.68092406", "0.6771326", "0.66999644", "0.6688405", "0.6687131", "0.6634414", "0.6594915", "0.6498394", "0.64828503", "0.64516854", "0.62436354", "0.6202579", "0.6201278", "0.6161725", "0.61363053", "0.60992...
0.75371224
0
Get the decoded fragment component of this DIDURL.
public String getFragment() { return fragment; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n protected String decodeFragment(String encodedFragment) {\n return encodedFragment;\n }", "public String getFragment() {\n return m_fragment;\n }", "String fragment();", "public Fragment getFragment() {\n return fragment;\n }", "public String getFragmentPath() {\n ...
[ "0.68632674", "0.6369017", "0.62476915", "0.5892083", "0.58274645", "0.57380474", "0.55568475", "0.54423755", "0.53878933", "0.535021", "0.5266268", "0.52549297", "0.52494043", "0.52296317", "0.5204579", "0.5178503", "0.51647615", "0.51344687", "0.50452954", "0.50452954", "0....
0.6566584
1
Check if the DIDURL object is full qualified.
public boolean isQualified() { return (did != null && fragment != null); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "boolean hasDidUri();", "boolean hasUri();", "private static boolean belongs(URL base, URL derived) {\n return derived.toString().startsWith(base.toString());\n }", "public static boolean isFullyQualified(String key) {\n return isFullyQualified(key, false);\n }", "public boolean hasDidUr...
[ "0.65258", "0.63351446", "0.6214335", "0.6193109", "0.60831326", "0.6050317", "0.6039035", "0.599871", "0.5977273", "0.5869459", "0.58677024", "0.58114177", "0.5678887", "0.5640577", "0.5640577", "0.5640577", "0.5640577", "0.5640577", "0.5620589", "0.5597009", "0.5533886", ...
0.69355756
0
Set the metadata that related with this DIDURL object.
protected void setMetadata(AbstractMetadata metadata) { this.metadata = metadata; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setMetaData(MetaData newMetaData);", "public void setMetadata(gov.ucore.ucore._2_0.ContentMetadataType metadata)\n {\n synchronized (monitor())\n {\n check_orphaned();\n gov.ucore.ucore._2_0.ContentMetadataType target = null;\n target = (gov.ucore.uco...
[ "0.64088875", "0.62133324", "0.61521846", "0.6086242", "0.60339916", "0.60184497", "0.6004469", "0.5960781", "0.595904", "0.59579843", "0.58018905", "0.5731079", "0.56848544", "0.5662319", "0.565273", "0.5638146", "0.5541388", "0.5540446", "0.5486297", "0.5441235", "0.5420322...
0.62830806
1
Get the metadata object that associated with this DIDURL object.
public AbstractMetadata getMetadata() { return metadata; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String getMetadataURL();", "public Object getMetadata() {\n return this.metadata;\n }", "public PDMetadata getMetadata()\n {\n PDMetadata retval = null;\n COSBase mdStream = stream.getDictionaryObject(COSName.METADATA);\n if (mdStream instanceof COSStream)\n {\n ...
[ "0.63428324", "0.6197722", "0.60987693", "0.60084593", "0.59983957", "0.59555644", "0.5939654", "0.5906317", "0.58233744", "0.5800869", "0.5778253", "0.56996655", "0.56665105", "0.565169", "0.5591946", "0.5581464", "0.55804783", "0.5561097", "0.5559915", "0.55162454", "0.5489...
0.5830736
8
Return the string representation of this DIDURL object. If the base DID isn't null, the result will be a relative representation.
protected String toString(DID context) { StringBuilder builder = new StringBuilder(512); if (did != null && (context == null || !did.equals(context))) builder.append(did); if (path != null && !path.isEmpty()) builder.append(path); if (query != null && !query.isEmpty()) builder.append("?").append(getQueryString()); if (fragment != null && !fragment.isEmpty()) builder.append("#").append(getFragment()); return builder.toString(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "String getURLStringToPersist() {\n return getURLStringImpl(null, null, false);\n }", "public String toString() {\n return getURLString();\n }", "public DsByteString getURIAsString() {\n DsURI uri = null;\n return (m_nameAddress != null && (uri = m_nameAddress.getURI()) != null)\n ...
[ "0.62573624", "0.62072694", "0.6113777", "0.60970336", "0.6013392", "0.59069616", "0.5822439", "0.58046913", "0.57899517", "0.5775824", "0.57530516", "0.5659652", "0.5651059", "0.55726993", "0.55656725", "0.5530991", "0.552559", "0.5516717", "0.549702", "0.54726464", "0.54493...
0.57053095
11
Return the string representation of this DIDURL object.
@Override public String toString() { if (repr == null) repr = toString(null); return repr; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String toString() {\n return getURLString();\n }", "public String toString()\n {\n return url.toString();\n }", "String getURLStringToPersist() {\n return getURLStringImpl(null, null, false);\n }", "@Override\r\n public String toString() {\r\n return getURI()...
[ "0.7302779", "0.7095098", "0.6686046", "0.63623756", "0.63451123", "0.6334461", "0.63325423", "0.6331862", "0.6277877", "0.62281287", "0.62281287", "0.62129205", "0.61841697", "0.6119327", "0.61075824", "0.61032754", "0.6079472", "0.6064186", "0.6026566", "0.60197914", "0.601...
0.0
-1
Compares this DIDURL to the specified object. The result is true if and only if the argument is not null and is a DIDURL object that represents the same resource.
@Override public boolean equals(Object obj) { if (obj == this) return true; if (obj instanceof DIDURL) { DIDURL id = (DIDURL)obj; return toString().equals(id.toString()); } if (obj instanceof String) { String url = (String)obj; return toString().equals(url); } return false; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public boolean equals(Object object) {\n if (!(object instanceof Url)) {\n return false;\n }\n Url other = (Url) object;\n if ((this.idURL == null && other.idURL != null) || (this.idURL != null && !this.idURL.equals(other.idURL))) {\n return false;\n...
[ "0.6527215", "0.62349635", "0.5867995", "0.5852439", "0.58435065", "0.5755775", "0.57331705", "0.5647664", "0.5613652", "0.5613652", "0.55955356", "0.556028", "0.555618", "0.55411685", "0.54912937", "0.5484162", "0.5478277", "0.5471635", "0.5464949", "0.5461452", "0.5444994",...
0.6783692
0
Compares this DIDURL with the specified DIDURL.
@Override public int compareTo(DIDURL id) { checkNotNull(id, "id is null"); return toString().compareTo(id.toString()); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tpublic boolean equals(Object obj) {\n\t\tif (obj == this)\n\t\t\treturn true;\n\n\t\tif (obj instanceof DIDURL) {\n\t\t\tDIDURL id = (DIDURL)obj;\n\t\t\treturn toString().equals(id.toString());\n\t\t}\n\n\t\tif (obj instanceof String) {\n\t\t\tString url = (String)obj;\n\t\t\treturn toString().equals(...
[ "0.5692205", "0.48933327", "0.47696075", "0.47238368", "0.46611214", "0.46404672", "0.46341988", "0.45703515", "0.45059323", "0.43940625", "0.4339652", "0.432812", "0.43077338", "0.4306435", "0.42739135", "0.42158756", "0.41659743", "0.4160107", "0.41546988", "0.4097859", "0....
0.5671368
1
Returns a hash code for this DIDURL object.
@Override public int hashCode() { return toString().hashCode(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "int getHash();", "public int hashCode() {\n if (myhash == -1) {\n myhash = timestamp.hashCode() + signerCertPath.hashCode();\n }\n return myhash;\n }", "public int getHash() {\n return hash_;\n }", "public int getHash() {\n return hash_;\n }", "public ...
[ "0.66338176", "0.6630933", "0.6627184", "0.6604147", "0.65384126", "0.65181804", "0.65126324", "0.65126324", "0.6477759", "0.6477759", "0.6459003", "0.6450833", "0.6450833", "0.6450833", "0.6447473", "0.6435267", "0.64213747", "0.6390469", "0.6387872", "0.6368066", "0.6357865...
0.0
-1
Create DIDURL builder object with given url as default pattern.
public Builder(DIDURL url) { this.url = url.deepClone(false); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public DIDURL(String url) throws MalformedDIDURLException {\n\t\tthis(null, url);\n\t}", "public DIDURL build() {\n\t\t\treturn url.deepClone(true);\n\t\t}", "Builder addUrl(String value);", "static DefaultUrlBuilder from(URL baseUrl) {\n if (!baseUrl.getProtocol().equals(\"http\") && !baseUrl.get...
[ "0.63474506", "0.6006289", "0.5897573", "0.58093745", "0.57532954", "0.5668184", "0.5668184", "0.5668184", "0.5604306", "0.5571057", "0.5568433", "0.55555224", "0.5550629", "0.5548426", "0.5534233", "0.55305105", "0.55221623", "0.55221623", "0.550855", "0.54761183", "0.547529...
0.6500033
0
Create DIDURL builder object with given did as base DID.
public Builder(DID did) { this(new DIDURL(did)); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Builder setDid(DID did) {\n\t\t\turl.setDid(did);\n\t\t\treturn this;\n\t\t}", "public DIDURL build() {\n\t\t\treturn url.deepClone(true);\n\t\t}", "public Builder setDid(String did) {\n\t\t\treturn setDid(DID.valueOf(did));\n\t\t}", "public Builder(DIDURL url) {\n\t\t\tthis.url = url.deepClone(false)...
[ "0.6830306", "0.62020975", "0.6039319", "0.5666008", "0.5187659", "0.517837", "0.5122599", "0.5108639", "0.505424", "0.50005645", "0.4964872", "0.49559787", "0.48764455", "0.48544997", "0.4823069", "0.48074085", "0.47144833", "0.47138008", "0.46652764", "0.46081385", "0.45733...
0.7710971
0
Set the base DID object of the DIDURL that to be build.
public Builder setDid(DID did) { url.setDid(did); return this; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Builder(DID did) {\n\t\t\tthis(new DIDURL(did));\n\t\t}", "public DIDURL build() {\n\t\t\treturn url.deepClone(true);\n\t\t}", "public void setDID(java.lang.String DID) {\r\n this.DID = DID;\r\n }", "public Builder setDidUri(\n java.lang.String value) {\n if (value == null) {...
[ "0.64087087", "0.616104", "0.5744041", "0.57240164", "0.5644222", "0.56093335", "0.55992174", "0.5579684", "0.5532664", "0.5523466", "0.5510053", "0.54768693", "0.5422002", "0.5414313", "0.5359514", "0.5286497", "0.5271605", "0.52587956", "0.52497244", "0.52242255", "0.519140...
0.6272726
1
Set the base DID object of the DIDURL that to be build.
public Builder setDid(String did) { return setDid(DID.valueOf(did)); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Builder(DID did) {\n\t\t\tthis(new DIDURL(did));\n\t\t}", "public Builder setDid(DID did) {\n\t\t\turl.setDid(did);\n\t\t\treturn this;\n\t\t}", "public DIDURL build() {\n\t\t\treturn url.deepClone(true);\n\t\t}", "public void setDID(java.lang.String DID) {\r\n this.DID = DID;\r\n }", "pub...
[ "0.64087087", "0.6272726", "0.616104", "0.5744041", "0.57240164", "0.5644222", "0.56093335", "0.55992174", "0.5579684", "0.5532664", "0.5523466", "0.5510053", "0.5422002", "0.5414313", "0.5359514", "0.5286497", "0.5271605", "0.52587956", "0.52497244", "0.52242255", "0.5191405...
0.54768693
12
Set the path component of the DIDURL object.
public Builder setPath(String path) { url.path = path == null || path.isEmpty() ? null : path; return this; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void setPath(String path);", "public void setPath(String path)\n {\n try\n {\n // Tokenize the path\n pathArray = getPathResolved(path);\n \n // Set path property\n this.path = path;\n }\n catch (NumberFormatException nfe)\n {\n...
[ "0.65771675", "0.6516193", "0.64598083", "0.6351641", "0.6340136", "0.61280644", "0.61150175", "0.6090701", "0.607667", "0.6042797", "0.6016845", "0.59704834", "0.5966146", "0.5944346", "0.59267026", "0.592081", "0.5860231", "0.5859165", "0.58193254", "0.5771887", "0.57611835...
0.58946073
16
Sets a query parameter with given value.
public Builder setQueryParameter(String name, String value) { checkArgument(name != null && !name.isEmpty(), "Invalid parameter name"); url.query.put(name, value); return this; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setParameter(String paramName, Object value, Query query) {\r\n\t\tif (hasParameter(paramName)) {\r\n\t\t\tquery.setParameter(paramName, value);\r\n\t\t}\r\n\t}", "void setQueryParam(String name, @Nullable Object value) {\n removeQueryParam(name);\n if (value != null) {\n appendQueryParam(...
[ "0.7318701", "0.729371", "0.70674276", "0.70297843", "0.70293105", "0.6984925", "0.6858343", "0.6820262", "0.6768196", "0.6658912", "0.66210747", "0.6515277", "0.6489246", "0.6488245", "0.63807195", "0.6373305", "0.6361244", "0.6353159", "0.6336875", "0.6306914", "0.6280012",...
0.7130076
2
Sets query parameters with given map object. All the previous parameters and values will be clear.
public Builder setQueryParameters(Map<String, String> params) { url.query.clear(); if (params != null && params.size() > 0) url.query.putAll(params); return this; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void setParameters(Map<String, String[]> parameters);", "RequestBuilder setQueryParameters(Map<String, String> queryParams);", "@Override\n public void setParameterMap(Map arg0) {\n\n }", "void setParameters(Map<String, Object> propertyValues);", "public Parameters(Map<String, String[]> map) {\n\t\tr...
[ "0.6956326", "0.69420046", "0.68651646", "0.67257035", "0.6659943", "0.66554457", "0.66458833", "0.6603572", "0.6591646", "0.6583453", "0.6547236", "0.64931595", "0.6389251", "0.6345707", "0.6211158", "0.61824465", "0.60912985", "0.6091135", "0.60741293", "0.6063481", "0.5987...
0.68342024
3
Remove the specific parameter from the query parameters.
public Builder removeQueryParameter(String name) { checkArgument(name != null && !name.isEmpty(), "Invalid parameter name"); url.query.remove(name); return this; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void removeQueryParam(String name) {\n if (name == null) {\n throw new IllegalArgumentException(\"Name cannot be null\");\n }\n Iterator<Param> iter = queryParams.iterator();\n while (iter.hasNext()) {\n Param p = iter.next();\n if (p.key.equals(name)) {\n iter.remove();\n }\...
[ "0.7827335", "0.77854705", "0.77481925", "0.70975035", "0.70005983", "0.6958394", "0.6819335", "0.6808876", "0.6720645", "0.66068554", "0.6547617", "0.6540366", "0.6523423", "0.65094876", "0.6502988", "0.6464321", "0.6453625", "0.6429079", "0.63983953", "0.63699555", "0.63446...
0.7311073
3
Remove all the existing parameters from the query parameters component.
public Builder clearQueryParameters() { url.query.clear(); return this; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void clearParameters() {\n\t\tqueryParameters.clear();\n\t}", "void removeQueryParam(String name) {\n if (name == null) {\n throw new IllegalArgumentException(\"Name cannot be null\");\n }\n Iterator<Param> iter = queryParams.iterator();\n while (iter.hasNext()) {\n Param p = iter.ne...
[ "0.81621855", "0.7417402", "0.73708266", "0.7045414", "0.6964985", "0.6836707", "0.6805194", "0.67844605", "0.6756326", "0.6751649", "0.67435926", "0.65476763", "0.65475523", "0.6539145", "0.6520653", "0.64371455", "0.6414248", "0.63808906", "0.6329144", "0.6318143", "0.61985...
0.69757533
4
Set the fragment component.
public Builder setFragment(String fragment) { url.fragment = fragment == null || fragment.isEmpty() ? null : fragment; return this; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected abstract FragmentComponent setupComponent();", "private void setFragment(Fragment fragment) {\n FragmentTransaction fragmentTransaction = getSupportFragmentManager().beginTransaction();\n fragmentTransaction.replace(R.id.frame_layout, fragment);\n fragmentTransaction.commit();\n\n ...
[ "0.72012645", "0.68339914", "0.6833191", "0.6695322", "0.65257996", "0.64900506", "0.6470561", "0.6414226", "0.6398626", "0.6348027", "0.631835", "0.62476254", "0.62189025", "0.6217881", "0.6124751", "0.6058418", "0.6020609", "0.6002513", "0.59988123", "0.5987173", "0.5965355...
0.6107241
15
Get the DIDURL instance that created by this builder object. After build a DIDURL object from this Builder object, the builder still available with the same status that before call the build method.
public DIDURL build() { return url.deepClone(true); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Builder setDid(DID did) {\n\t\t\turl.setDid(did);\n\t\t\treturn this;\n\t\t}", "public Builder(DID did) {\n\t\t\tthis(new DIDURL(did));\n\t\t}", "public Builder(DIDURL url) {\n\t\t\tthis.url = url.deepClone(false);\n\t\t}", "public io.envoyproxy.envoy.data.dns.v3.DnsTable.DnsEndpoint.Builder getEndpoi...
[ "0.6209893", "0.55939835", "0.5525003", "0.5341805", "0.5242124", "0.5242124", "0.5242124", "0.5168875", "0.5168875", "0.5168875", "0.51365876", "0.51270354", "0.5060698", "0.5035887", "0.5024402", "0.5010817", "0.495868", "0.49516088", "0.49232158", "0.4919206", "0.4916368",...
0.71090055
0
NOTE: IT IS IMPORTANT THAT THIS IS IMPLEMENTED IN THE LOOP FUNCTION OF THE OPMODE
public void Loop() { //if the drive mode is encoders then mirror the rear motors so that we just use the encoders of the front motors if(driveMode == DriveMode.Run_With_Encoders){ rearLeftDrive.setVelocity(frontLeftDrive.getVelocity()); rearRightDrive.setVelocity(frontRightDrive.getVelocity()); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void iterateCount() {\n\t\t\r\n\t}", "private static void iterator() {\n\t\t\r\n\t}", "private void closedLoopAlgo() {\n\t\tsimonsSimpleAlgo();\n\t}", "private void outer_loop( int max_bits,\n\t\t\tint ix[], /* vector of frequency values */\n\t\t\tint gr, int ch, SideInfoEnc side_in...
[ "0.58558184", "0.58008945", "0.55523634", "0.5488059", "0.5426405", "0.5406266", "0.53871536", "0.53583354", "0.5341777", "0.5328434", "0.52859133", "0.52716786", "0.5250363", "0.5244315", "0.5240082", "0.52176076", "0.52159345", "0.51988727", "0.5188341", "0.5185389", "0.516...
0.0
-1
endregion IMU region DriveEncoders
public void SetDriveModeNoEncoders() { frontLeftDrive.setMode(DcMotor.RunMode.RUN_WITHOUT_ENCODER); frontRightDrive.setMode(DcMotor.RunMode.RUN_WITHOUT_ENCODER); rearLeftDrive.setMode(DcMotor.RunMode.RUN_WITHOUT_ENCODER); rearRightDrive.setMode(DcMotor.RunMode.RUN_WITHOUT_ENCODER); driveMode = DriveMode.Run_Without_Encoders; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void resetDriveEncoders() {\n driverFR.resetEncoder();\n driverFL.resetEncoder();\n driverBR.resetEncoder();\n driverBL.resetEncoder();\n }", "public void resetDriveEncoders() {\r\n motorLeft.setMode(DcMotor.RunMode.STOP_AND_RESET_ENCODER);\r\n m...
[ "0.6294522", "0.57920474", "0.57202905", "0.55524313", "0.5536937", "0.53644466", "0.52613604", "0.52290154", "0.5215272", "0.52098936", "0.52065396", "0.51468104", "0.5109129", "0.50423175", "0.50351375", "0.50229895", "0.50069845", "0.49653953", "0.4930036", "0.4910693", "0...
0.47992632
30
endregion DriveEncoders region ClimbEncoders
public void ResetClimbEncoders() { leftClamFoot.setMode(DcMotor.RunMode.STOP_AND_RESET_ENCODER); rightClamFoot.setMode(DcMotor.RunMode.STOP_AND_RESET_ENCODER); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void resetDriveEncoders() {\n driverFR.resetEncoder();\n driverFL.resetEncoder();\n driverBR.resetEncoder();\n driverBL.resetEncoder();\n }", "public void resetDriveEncoders() {\r\n motorLeft.setMode(DcMotor.RunMode.STOP_AND_RESET_ENCODER);\r\n m...
[ "0.6471415", "0.62629884", "0.5916677", "0.56472313", "0.5584913", "0.5553978", "0.55367255", "0.5463727", "0.5371477", "0.5353068", "0.5341929", "0.53152275", "0.52958024", "0.52872866", "0.5277099", "0.51918447", "0.51475513", "0.5078995", "0.50681055", "0.5055136", "0.5037...
0.69331753
0
endregion ClimbEncoders region ArmEncoder
public void ResetArmEncoder() { armRotationMotor.setMode(DcMotor.RunMode.STOP_AND_RESET_ENCODER); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void ResetClimbEncoders() {\n leftClamFoot.setMode(DcMotor.RunMode.STOP_AND_RESET_ENCODER);\n rightClamFoot.setMode(DcMotor.RunMode.STOP_AND_RESET_ENCODER);\n }", "public Arm() {\n initializeLogger();\n initializeCurrentLimiting();\n setBrakeMode();\n encoder.s...
[ "0.66621566", "0.58607626", "0.5704525", "0.5686721", "0.5627257", "0.5604785", "0.5586418", "0.55811036", "0.55273277", "0.5526772", "0.54727834", "0.53891534", "0.53817254", "0.53288686", "0.5278645", "0.52777654", "0.52405125", "0.5210364", "0.52068263", "0.51949316", "0.5...
0.6321208
1
this function update/load list of survey from the server
private void loadSurvey(){ final Handler mainHandler = new Handler(getView().getContext().getMainLooper()); SimpleDateFormat df = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss.SSS", Locale.ENGLISH); // SurveyEntity surveyEntity = SurveyService.getInstance().getSurvey(); String lastTime = "2016-01-01";//surveyEntity != null ? df.format(surveyEntity.getLastUpdated()) : "2016-01-01"; restClient.getSurveyApi().getSurvey(lastTime, Long.toString(me.getUID())) .subscribeOn(Schedulers.io()) .subscribe(new Action1<SurveyResponse>() { @Override public void call(final SurveyResponse response) { if (response.status.equals("success")) { if (response.details != null ) { mainHandler.post(new Runnable() { @Override public void run() { surveys = SurveyService.getInstance().updateSurveyList(response.details); //update to db and display it when there is no internet if (getView() != null) { if (surveys.size() > 0) { if (getView().surveyLV.getAdapter() == null) { //first time loading to adapter surveyListAdapter = new SurveyListAdapter(getView(), surveys); getView().surveyLV.setAdapter(surveyListAdapter); } else { surveyListAdapter.updates(surveys); } getView().messageTV.setVisibility(View.GONE); } else { getView().messageTV.setVisibility(View.VISIBLE); getView().messageTV.setText("There is no survey going on now."); } } } }); } } else { mainHandler.post(new Runnable() { @Override public void run() { if (getView() != null) { getView().messageTV.setVisibility(View.VISIBLE); getView().messageTV.setText("There is no survey going on now."); } } }); } } }, new Action1<Throwable>() { @Override public void call(Throwable throwable) { Log.e("Mobisys: ", "cannot get survey", throwable); } }); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void addQuestions(String surveyId, List<Question> questions);", "public void surveyUpdated (SurveyMetaData survey)\n {\n if (_surveys == null) {\n return;\n }\n\n for (int ii = 0; ii < _surveys.size(); ++ii) {\n if (_surveys.get(ii).surveyId =...
[ "0.6094409", "0.58545786", "0.5848602", "0.5767605", "0.5720259", "0.561736", "0.5581515", "0.55741084", "0.5542971", "0.5485023", "0.5462409", "0.5461492", "0.54604983", "0.5446543", "0.54403853", "0.54229194", "0.53906", "0.5375603", "0.5375018", "0.5360133", "0.53585696", ...
0.64068633
0
Fill the parameters(HashTable). For instance when command ends like below: ... with delim(';'), quote('\''), replacedelim('D'), replacequote('Q') parameters will contains 'delim' as key and ';' as value, 'quote' as key and ';' as value, 'replacedelim' as key and 'D' as value, and 'replacequote' as key and 'Q' as value.
public boolean parse() { withClause = withClause.trim(); if (!withClause.toLowerCase().substring(0, 5).equals("with ")) { return false; } int pos = 5; int level = 0; String currentParameter = ""; String currentTerm = ""; List<String> currentArgumentList = new ArrayList<>(); boolean inQuote = false; parameters = new Hashtable<>(); while (pos < withClause.length()) { // if quoted content, write quotes (since they are part of the argument as well) // but remember and do ignore other steering characters until quote is closed if (withClause.charAt(pos) == '\"') { // at this point, earlier we had: // currentTerm += withClause.charAt(pos); // this would include the quotes in the parameter; so if the parameter is a String, // the client of WithClauseParser would have to "unquote" it to get the content. // Maybe in future we solve this differently, e.g. put without quotes, but have some // type property (e.g. not having Strings in the param list, but some Data Object class // which is able to differentiate on the types of the content (int, String, etc.) // then this would be the place to set the type pos++; inQuote = !inQuote; continue; } if (!inQuote) { if (withClause.charAt(pos) == '(') { if (level < 1) { currentParameter = currentTerm.trim(); currentArgumentList = new ArrayList<>(); currentTerm = ""; level++; } else // no brackets within brackets allowed { return false; } } else if (withClause.charAt(pos) == ')') { if (level == 1) { level--; currentArgumentList.add(currentTerm); currentTerm = ""; parameters.put(currentParameter, currentArgumentList); parametersLowerCase.put(currentParameter.toLowerCase(), currentParameter); } else // don't the hell know what's going on here... { return false; } } else if (withClause.charAt(pos) == ',') { if (level == 0) { currentTerm = ""; } else { currentArgumentList.add(currentTerm.trim()); currentTerm = ""; } } else { currentTerm += withClause.charAt(pos); } } else { currentTerm += withClause.charAt(pos); } pos++; } return true; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected void init(String command){\n\t\tStringTokenizer st = new StringTokenizer(command);\n\t\t\n\t\tthis.numberOfTokens = st.countTokens() ;\n\t\tthis.tokens = new String[this.numberOfTokens];\n\t\t\n\t\tString currentToken;\n\t\tint tokenNumber = 0;\n\t\t\n\t\t/*inizialize the entire array or cannot concatena...
[ "0.59834975", "0.5354521", "0.53505003", "0.5339089", "0.52745366", "0.5263533", "0.5245766", "0.51612526", "0.5154267", "0.5077371", "0.50744444", "0.5062217", "0.49969804", "0.4982239", "0.49560833", "0.4955466", "0.4928827", "0.4903732", "0.49023303", "0.4894302", "0.48942...
0.0
-1
Gets the out data.
public void getOutData(String line) { Matcher myMatcher = myPattern.matcher(line); myMatcher.find(); myMatcher.matches(); myMatcher.matches(); // *--- GROUP 3(X) 4(Y) 5(Z) --*// if (myMatcher.group(3) != null) xAxis = Double.parseDouble(myMatcher.group(3)); else { xAxis = Double.NaN; } if (myMatcher.group(4) != null) yAxis = Double.parseDouble(myMatcher.group(4)); else { yAxis = Double.NaN; } if (myMatcher.group(5) != null) zAxis = Double.parseDouble(myMatcher.group(5)); else { zAxis = Double.NaN; } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public Object getData() {\n return outputData;\n }", "@Override\n public Object getData() {\n return new String(outputData);\n }", "public long getOutBytes() {\n return outBytes.get();\n }", "public static long getBytesOut() {\n r...
[ "0.767042", "0.7277497", "0.68880844", "0.67329067", "0.6592785", "0.65884244", "0.6501864", "0.64936113", "0.6457657", "0.6414914", "0.63867027", "0.633285", "0.62970525", "0.6292528", "0.626412", "0.6258244", "0.6257262", "0.6257262", "0.6257262", "0.6257262", "0.625558", ...
0.0
-1
Root of the tree
public int insert(){ // Wrapper insert function, passes random values to insert integer data in the tree. Random rn = new Random(); for (int i = 0; i < 10; ++i) { insert(3); insert(5); insert(9); insert(5); insert(8); insert(1); insert(7); insert(4); insert(3); } return 1; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected TreeNode<E> getRoot() {\n\t\treturn root;\n\t}", "public Node getRoot(){\r\n return this.root;\r\n }", "public TreeNode root() {\n\t\treturn root;\n\t}", "public RBNode<T, E> getRoot() {\r\n\t\treturn root;\r\n\t}", "public Node getRoot() {\r\n\r\n\t\treturn root;\r\n\t}", "public Obj...
[ "0.8149333", "0.8107643", "0.80978054", "0.8087067", "0.80690074", "0.8045677", "0.80109525", "0.79924613", "0.7976298", "0.7956751", "0.7949849", "0.7948327", "0.7923615", "0.7920674", "0.7920674", "0.7920674", "0.79140246", "0.79137707", "0.78966236", "0.7837237", "0.782888...
0.0
-1
Insert function, calls tnode insert function and passes in integer data
protected int insert(int toAdd){ tnode object = new tnode(); return object.insert(toAdd); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void insert(int data) {\r\n \r\n // call the private insert method with root and data\r\n root = insert(root, data);\r\n }", "public void insert(int data)\r\n {\r\n root = insert(root, data);\r\n }", "public void insertNode(int data){\r\n\t\troot = insert(data, root)...
[ "0.7770086", "0.77401173", "0.7738975", "0.7718935", "0.75990564", "0.75846773", "0.751507", "0.74667346", "0.7421344", "0.73499537", "0.72717255", "0.704555", "0.7001551", "0.6845966", "0.68425435", "0.6799681", "0.67675614", "0.67665035", "0.6720084", "0.67089355", "0.66844...
0.7144421
11