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
TODO Autogenerated method stub
@Override public void onClick(View v) { Intent cameraIntent = new Intent(android.provider.MediaStore.ACTION_IMAGE_CAPTURE); startActivityForResult(Intent.createChooser(cameraIntent, "Take your photo"), TAKE_AVATAR_CAMERA_REQUEST); }
{ "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 onLongClick(View v) { Intent galleryIntent = new Intent(Intent.ACTION_PICK); galleryIntent.setType("image/*"); startActivityForResult(Intent.createChooser(galleryIntent, "Choose your Avatar"), TAKE_AVATAR_GALLERY_REQUEST); return true; }
{ "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
if they cancelled taking their picture, don't attempt to save it
public void onActivityResult(int requestCode, int resultCode, Intent intent) { if(resultCode == Activity.RESULT_CANCELED) return; //as long as you are returning from the camera if(requestCode == TAKE_AVATAR_CAMERA_REQUEST) { if(resultCode == Activity.RESULT_OK) { //get data from camera and...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void onCanceled(EasyImage.ImageSource source) {\n if (source == EasyImage.ImageSource.CAMERA) {\n File photoFile = EasyImage.lastlyTakenButCanceledPhoto(MainActivity.this);\n if (photoFile != null) photoFile.delete();\n ...
[ "0.6860217", "0.6768951", "0.6576878", "0.6554692", "0.64737546", "0.64232033", "0.6337213", "0.6252301", "0.6244814", "0.6083669", "0.6040765", "0.60278475", "0.59646463", "0.59398746", "0.5918693", "0.59168214", "0.59054863", "0.58871865", "0.5814271", "0.5795864", "0.57742...
0.0
-1
Solves a Boggle puzzle.
public static List<String> solve(int k, String boardFilePath) { // YOUR CODE HERE Board b = new Board(boardFilePath); trie = getTrie(); MaxPQ<String> words = new MaxPQ<>(new LenComparator()); for (int i = 0; i < b.row; i += 1) { for (int j = 0; j < b.col; j +...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public boolean solve(){\n\t\t//Solve the puzzle using backtrack method\n\t\treturn solve(0,0);\n\t}", "public void trySolve() {\n\t\tboolean change = true;\n\t\twhile (change) {\n\t\t\tchange = boardSolve();\n\t\t}\n\t}", "public void solve(char[][] board) {\n\t\tif(board==null || board.length == 0)\n\t\t\tret...
[ "0.6639414", "0.63852274", "0.6384403", "0.6375688", "0.6243365", "0.6107376", "0.60516775", "0.601304", "0.588779", "0.58814156", "0.58686656", "0.5856773", "0.5845342", "0.58230174", "0.5814858", "0.57903445", "0.57838273", "0.57630366", "0.5755831", "0.57487273", "0.574165...
0.0
-1
Steps to validate scenario
public static String submitTextAndReturnResult(WebDriver driver, TestcaseBO testcaseBO, String testValue) { DateParser dateParser = new DateParser(driver); // fill test value dateParser.enterDate(testcaseBO, testValue); // submit value dateParser.clickSubmitButton(testcaseBO); // fetch value return dat...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private boolean doTestsPass()\r\n {\r\n return minimalSteps(\"ABCDABCE\") == 8 && minimalSteps(\"ABCABCE\") == 5;\r\n }", "@Test\n\tpublic void testCase1()\n\t{\n\t\tint numberOfCases=3;\n\t\t\n\t\t//checking number of case is positive or not\n\t\tboolean valid=BillEstimation.numberOfCaseValidation(numberOfCa...
[ "0.6775967", "0.63928205", "0.6283673", "0.621355", "0.6168169", "0.6119664", "0.60571134", "0.6054847", "0.60482365", "0.5998102", "0.5986212", "0.59785956", "0.5966002", "0.59522915", "0.59519595", "0.59491116", "0.59242356", "0.5922285", "0.591038", "0.59068304", "0.590635...
0.0
-1
persontest p3 =new persontest();
public void setName (String name) { if(name.length()>4||name.length()<2) { System.out.println("´íÎó"); return; } else { this.name = name; } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public TestPrelab2()\n {\n }", "public Plato(){\n\t\t\n\t}", "public ProjektTest()\n {\n }", "public static void main(String[] args) {\n persegi_panjang pp = new persegi_panjang();\r\n pp.lebar=30;\r\n pp.panjang=50;\r\n Segitiga s = new Segitiga();\r\n s.alas=20;\r\n s.tinggi=4...
[ "0.6572358", "0.64870524", "0.6455576", "0.6336503", "0.63202393", "0.6256473", "0.62277246", "0.62274164", "0.62195414", "0.6215057", "0.62047374", "0.61950225", "0.61941904", "0.6188207", "0.61757195", "0.6162834", "0.6152632", "0.6071224", "0.6056807", "0.6049287", "0.6030...
0.0
-1
access to production table
public short[][] production_table() {return _production_table;}
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public short[][] production_table() {\r\n return _production_table;\r\n }", "public short[][] production_table() {\r\n return _production_table;\r\n }", "private void refTable() {\n try {\n String s = \"select * from stock\";\n pstm = con.prepareStatement(s);\n ...
[ "0.64236426", "0.6407055", "0.5694357", "0.56227165", "0.55646527", "0.55162317", "0.542893", "0.5365297", "0.5299567", "0.52642924", "0.5264162", "0.5249329", "0.52455807", "0.52145475", "0.5205296", "0.5192975", "0.5191237", "0.5181122", "0.51756305", "0.516302", "0.5144691...
0.6591279
34
access to parse action table
public short[][] action_table() {return _action_table;}
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public short[][] action_table() {\r\n return _action_table;\r\n }", "public int getAction() {\n\t\treturn action;\n\t}", "public ActionList getActions();", "public int getAction() {\n return action;\n }", "public int getAction()\n {\n return m_action;\n }", "public int getAct...
[ "0.70970815", "0.64295626", "0.6412254", "0.63821363", "0.6376627", "0.63172174", "0.6314354", "0.6305169", "0.63049215", "0.6286055", "0.62774533", "0.62551343", "0.62551343", "0.62551343", "0.62551343", "0.62551343", "0.62511176", "0.62511176", "0.62511176", "0.62511176", "...
0.73386365
34
access to reduce_goto table
public short[][] reduce_table() {return _reduce_table;}
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private Collection<Node> findTarget(final JumpType type, final String label) {\n Collection<Node> result = new Object() {\n private Collection<Node> find(final int i) {\n if (i < 0) return null;\n\n Node nd = ctxt.get(i);\n\n if (nd instanceof Finally) {\n BlockSta...
[ "0.5281459", "0.5222255", "0.5039095", "0.5017412", "0.49735785", "0.4971291", "0.49610978", "0.49243176", "0.4881748", "0.4824816", "0.48228496", "0.4821682", "0.47724232", "0.4762695", "0.47360715", "0.4709183", "0.4706556", "0.4701475", "0.46923465", "0.46872666", "0.46870...
0.57156646
34
action encapsulation object initializer
protected void init_actions() { action_obj = new CUP$Grm$actions(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected void init_actions()\n {\n action_obj = new CUP$FractalParser$actions(this);\n }", "protected void init_actions()\r\n {\r\n action_obj = new CUP$Parser$actions(this);\r\n }", "protected void init_actions()\n {\n action_obj = new CUP$CoolParser$actions(this);\n }", "p...
[ "0.7609799", "0.7536611", "0.7534434", "0.7534434", "0.75256574", "0.75256574", "0.75256574", "0.75256574", "0.75256574", "0.7487761", "0.746983", "0.744214", "0.744214", "0.744214", "0.744214", "0.744214", "0.744214", "0.744214", "0.744214", "0.744214", "0.744214", "0.7442...
0.7322643
32
invoke a user supplied parse action
public java_cup.runtime.Symbol do_action( int act_num, java_cup.runtime.lr_parser parser, java.util.Stack stack, int top) throws java.lang.Exception { /* call code in generated class */ return action_obj.CUP$Grm$do_action(act_num, pa...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void executeAction( String actionInfo );", "abstract protected String performAction(String input);", "public final java_cup.runtime.Symbol CUP$Parser$do_action(\n int CUP$Parser$act_num,\n java_cup.runtime.lr_parser CUP$Parser$parser,\n java.util.Stack CUP$Pars...
[ "0.68355376", "0.66295016", "0.65853983", "0.65853983", "0.65853983", "0.6548972", "0.6540811", "0.6540811", "0.6540811", "0.6540811", "0.6540811", "0.64842075", "0.6374646", "0.636676", "0.636676", "0.6362", "0.6354121", "0.63493747", "0.6336536", "0.63205826", "0.6278884", ...
0.0
-1
scan to get the next Symbol
public java_cup.runtime.Symbol scan() throws java.lang.Exception { return lexer.nextToken(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public java_cup.runtime.Symbol scan()\n throws java.lang.Exception\n {\n return s.next_token(); \n }", "public java_cup.runtime.Symbol scan()\n throws java.lang.Exception\n {\n return getScanner().next_token(); \n }", "public java_cup.runtime.Symbol scan()\r\n throws java.lang.Exception\r\...
[ "0.8034087", "0.79618037", "0.77442193", "0.7740884", "0.6885904", "0.6579565", "0.6572175", "0.6537974", "0.6524329", "0.6521484", "0.6490938", "0.6487698", "0.63395166", "0.6227158", "0.6188244", "0.61473477", "0.61450654", "0.61071396", "0.61033714", "0.604319", "0.6034578...
0.76883
4
Method with the actual generated action code.
public final java_cup.runtime.Symbol CUP$Grm$do_action( int CUP$Grm$act_num, java_cup.runtime.lr_parser CUP$Grm$parser, java.util.Stack CUP$Grm$stack, int CUP$Grm$top) throws java.lang.Exception { /* Symbol object for return from act...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void action() {\n }", "@Override\n public void action() {\n }", "@Override\n public void action() {\n }", "@Override\r\n\tpublic void action() {\n\t\t\r\n\t}", "public void createAction() {\n }", "@Override\n\tpublic ...
[ "0.7253985", "0.7253985", "0.7253985", "0.71544045", "0.71270514", "0.71028495", "0.682494", "0.6795898", "0.66515064", "0.6604793", "0.6412416", "0.6410986", "0.6400891", "0.635059", "0.6294932", "0.6284992", "0.6284992", "0.6284992", "0.6255204", "0.623979", "0.6188923", ...
0.0
-1
get one content data from list for testing
@Test public void FRAN_5593_Verify_user_able_to_like_the_post() throws Exception { ArrayList<ContentData> listReview = everContentAPI.getEverContent(); ContentData selectedContent = listReview.get(0); String postBody = selectedContent.getPostBody(); //unlike content and get data again everContentAPI.unLikeCo...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test\n public void getByIndex(){\n List <String> list = new ArrayList<>();\n list.add(\"hola\");\n list.add(\"tdd\");\n list.add(\"test\");\n\n assertEquals(\"tdd\",list.get(1));\n }", "private static String retrieveForContentInitialization(NodeList<Expression> list) {\n...
[ "0.62005055", "0.6182472", "0.5920986", "0.58212245", "0.57914966", "0.5788572", "0.5777477", "0.5678061", "0.56655586", "0.5655557", "0.5631629", "0.5574585", "0.55397886", "0.55368817", "0.54663736", "0.5439314", "0.54261297", "0.5421101", "0.541639", "0.54018956", "0.53912...
0.0
-1
get one content data from list for testing
@Test public void FRAN_5594_Verify_user_able_to_comment_the_post() throws Exception { ArrayList<ContentData> listReview = everContentAPI.getEverContent(); ContentData selectedContent = listReview.get(0); String postBody = selectedContent.getPostBody(); selectedContent = everContentAPI.getContentDetail(selected...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test\n public void getByIndex(){\n List <String> list = new ArrayList<>();\n list.add(\"hola\");\n list.add(\"tdd\");\n list.add(\"test\");\n\n assertEquals(\"tdd\",list.get(1));\n }", "private static String retrieveForContentInitialization(NodeList<Expression> list) {\n...
[ "0.619964", "0.61829954", "0.59217227", "0.582185", "0.57911396", "0.578902", "0.57794166", "0.56812775", "0.5665395", "0.5655122", "0.5633847", "0.5577059", "0.5538963", "0.55351293", "0.5468384", "0.5438863", "0.54264486", "0.5422498", "0.54156554", "0.54031503", "0.5390652...
0.0
-1
get one content data from list for testing
@Test public void FRAN_5597_Verify_user_able_to_view_RatingScreen_when_click_on_star_icon() throws Exception { ArrayList<ContentData> listReview = everContentAPI.getEverContent(); ContentData selectedContent = listReview.get(0); loginPage = new LoginWithUsernamePage(driver); loginPage.doLoginProcess(Cons...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test\n public void getByIndex(){\n List <String> list = new ArrayList<>();\n list.add(\"hola\");\n list.add(\"tdd\");\n list.add(\"test\");\n\n assertEquals(\"tdd\",list.get(1));\n }", "private static String retrieveForContentInitialization(NodeList<Expression> list) {\n...
[ "0.62005055", "0.6182472", "0.5920986", "0.58212245", "0.57914966", "0.5788572", "0.5777477", "0.5678061", "0.56655586", "0.5655557", "0.5631629", "0.5574585", "0.55397886", "0.55368817", "0.54663736", "0.5439314", "0.54261297", "0.5421101", "0.541639", "0.54018956", "0.53912...
0.0
-1
This method is called from within the constructor to initialize the form. WARNING: Do NOT modify this code. The content of this method is always regenerated by the Form Editor.
@SuppressWarnings("unchecked") // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents private void initComponents() { jTabbedPane1 = new javax.swing.JTabbedPane(); jPanel2 = new javax.swing.JPanel(); jPanel3 = new javax.swing.JPanel(); jLabel4 ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Form() {\n initComponents();\n }", "public MainForm() {\n initComponents();\n }", "public MainForm() {\n initComponents();\n }", "public MainForm() {\n initComponents();\n }", "public frmRectangulo() {\n initComponents();\n }", "public form() {\n ...
[ "0.73197734", "0.72914416", "0.72914416", "0.72914416", "0.72862023", "0.72487676", "0.7213741", "0.7207628", "0.7196503", "0.7190263", "0.71850693", "0.71594703", "0.7147939", "0.7093137", "0.70808756", "0.70566356", "0.6987119", "0.69778043", "0.6955563", "0.6953879", "0.69...
0.0
-1
GENFIRST:event_jTextField2ActionPerformed TODO add your handling code here:
private void jTextField2ActionPerformed(java.awt.event.ActionEvent evt) { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void jTextField3ActionPerformed(java.awt.event.ActionEvent evt) {\n }", "private void jTextField3ActionPerformed(java.awt.event.ActionEvent evt) {\n }", "private void jTextField3ActionPerformed(java.awt.event.ActionEvent evt) {\n }", "private void jTextField1ActionPerformed(java.awt.event.Ac...
[ "0.8280018", "0.8280018", "0.8280018", "0.8262566", "0.8233825", "0.8233825", "0.8182143", "0.81503123", "0.81503123", "0.81503123", "0.81209344", "0.80962116", "0.80962116", "0.80023426", "0.80023426", "0.799648", "0.799648", "0.799648", "0.79787624", "0.79660904", "0.778830...
0.894056
2
Inflate the menu; this adds items to the action bar if it is present.
@Override public boolean onCreateOptionsMenu(Menu menu) { getMenuInflater().inflate(R.menu.main, menu); return true; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n \tMenuInflater inflater = getMenuInflater();\n \tinflater.inflate(R.menu.main_activity_actions, menu);\n \treturn super.onCreateOptionsMenu(menu);\n }", "@Override\n public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {...
[ "0.72461367", "0.7201596", "0.7195268", "0.7177002", "0.71069986", "0.7039653", "0.70384306", "0.70115715", "0.7010647", "0.69803435", "0.6945406", "0.69389313", "0.6933442", "0.69172275", "0.69172275", "0.6890826", "0.6883689", "0.687515", "0.6874831", "0.68615955", "0.68615...
0.0
-1
Handle action bar item clicks here. The action bar will automatically handle clicks on the Home/Up button, so long as you specify a parent activity in AndroidManifest.xml.
@Override public boolean onOptionsItemSelected(MenuItem item) { int id = item.getItemId(); if (id == R.id.action_settings) { Intent intent = new Intent(this, SettingsActivity.class); this.startActivty(intent); } return super.onOptionsItemSelected(item); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public boolean onOptionsItemSelected(MenuItem item) { Handle action bar item clicks here. The action bar will\n // automatically handle clicks on the Home/Up button, so long\n // as you specify a parent activity in AndroidManifest.xml.\n\n //\n // HANDLE BACK BUTTON\n ...
[ "0.79046714", "0.78065175", "0.7766765", "0.7727237", "0.76320195", "0.7622174", "0.7585192", "0.75314754", "0.74888134", "0.7458358", "0.7458358", "0.7438547", "0.7421898", "0.7402884", "0.73917156", "0.738695", "0.73795676", "0.73704445", "0.7361756", "0.7356012", "0.734561...
0.0
-1
TODO : could change this to pass along the threshhold instead of hardcoding 30.
@Override public String getFormattedString( String formatStr ) { if( formatStr == null || formatStr.isEmpty() || formatStr.startsWith("%" ) ) { return super.getFormattedString( formatStr ); } else if ( ( formatStr.compareToIgnoreCase("DPDX") == 0 ) ){ if( getValueAs( SI.CELSIUS ).doubleValue() >= ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected static void adaptivaeThresholdCalc() {\n\t\tif (triggerCount > 3) {\n\t\t\tthreshold /= 0.9;\n\t\t\t// Log.d(\"visualizer\", \"threshold up to \" + threshold);\n\t\t}\n\t\tif (triggerCount < 2) {\n\t\t\tthreshold *= 0.9;\n\t\t\t// Log.d(\"visualizer\", \"threshold down to \" + threshold);\n\t\t}\n\n\t\ti...
[ "0.6413004", "0.6367264", "0.6186666", "0.61521614", "0.61259156", "0.60997516", "0.5910034", "0.587172", "0.58082753", "0.5801926", "0.57353455", "0.57025254", "0.5662539", "0.5648504", "0.56444186", "0.5642325", "0.5603599", "0.5596585", "0.55391365", "0.5537184", "0.551507...
0.0
-1
TODO Autogenerated method stub
@Override public void cruise() { System.out.println("In SeaPlane::cruise"); if (altitude < 10) Sail.super.cruise(); else FastFly.super.cruise(); }
{ "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
Returns the absolute URL of a particular version.
public String getURL(Version version) { return getUrl() + version.getDocument().getDocumentURL(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Nullable public URL getUpdateURL(final PluginVersion version) {\n final Pair<URL, String> p = downloadInfo.get(version);\n if (p == null) {\n return null;\n }\n return p.getFirst();\n }", "private URL getManifestUrl() {\n\n\t\treturn new URL(VERSION_MANIFEST_URL.replace...
[ "0.7264873", "0.71108127", "0.6243924", "0.6187538", "0.6128961", "0.6073284", "0.5997726", "0.59049416", "0.5794928", "0.5749348", "0.5749074", "0.5729267", "0.5702348", "0.56838447", "0.56832415", "0.56783473", "0.5642313", "0.5632631", "0.5625056", "0.56177485", "0.5607795...
0.73698133
0
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_header, menu); return true; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n \tMenuInflater inflater = getMenuInflater();\n \tinflater.inflate(R.menu.main_activity_actions, menu);\n \treturn super.onCreateOptionsMenu(menu);\n }", "@Override\n public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {...
[ "0.7246102", "0.7201358", "0.7194834", "0.7176498", "0.71066517", "0.7039537", "0.7037961", "0.70112145", "0.70094734", "0.69807225", "0.6944953", "0.69389373", "0.6933199", "0.6916928", "0.6916928", "0.6891486", "0.68831646", "0.68754137", "0.68745375", "0.68621665", "0.6862...
0.0
-1
Handle action bar item clicks here. The action bar will automatically handle clicks on the Home/Up button, so long as you specify a parent activity in AndroidManifest.xml.
@Override public boolean onOptionsItemSelected(MenuItem item) { int id = item.getItemId(); //noinspection SimplifiableIfStatement // if (id == R.id.action_settings) { // return true; // } return super.onOptionsItemSelected(item); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public boolean onOptionsItemSelected(MenuItem item) { Handle action bar item clicks here. The action bar will\n // automatically handle clicks on the Home/Up button, so long\n // as you specify a parent activity in AndroidManifest.xml.\n\n //\n // HANDLE BACK BUTTON\n ...
[ "0.7904035", "0.78057915", "0.77662706", "0.7727266", "0.76317817", "0.76219225", "0.7584542", "0.7530336", "0.7487623", "0.7457442", "0.7457442", "0.7438915", "0.7421425", "0.7403424", "0.73923", "0.7387485", "0.7379756", "0.7370862", "0.73622537", "0.73564696", "0.7345994",...
0.0
-1
Constructor with Handler as parameter
public BuildingState(PocketHandler handler){ //Calls parent class super(handler); //Instantiate Objects loader = new BufferedImageLoader(); menuTimer = new MenuTimer(); //Loads in images required for the main menu try { text = loader.loadImage("/OtherPictures/enterArcade.png"); mainMenu = l...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "CreateHandler()\n {\n }", "public GenericHandler() {\n\n }", "public Hello(Handler handler){\n this.handler = handler;\n }", "private HandlerBuilder() {\n }", "public MessageHandler() {\n }", "void init(HandlerContext context);", "private PersonHandler() {\n }", "public\n ...
[ "0.76822627", "0.758468", "0.74443233", "0.71252763", "0.6771302", "0.6753629", "0.65643644", "0.6558916", "0.6550803", "0.6539376", "0.6510982", "0.6495024", "0.64801145", "0.64479667", "0.64424723", "0.6426446", "0.6421314", "0.6421314", "0.64156854", "0.63984734", "0.63375...
0.0
-1
This method initializes the timer and also the animation
public void init() { menuTimer.start(); mainMenuAnimation = new Animation(100,Assets.mainMenu); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void setupAnimationTimer() {\n new AnimationTimer() {\n @Override\n public void handle(long l) {\n view.movePlayer();\n view.updateView();\n }\n }.start();\n\n // Timeline for UI stuff\n uiTimeline = new Timeline();\...
[ "0.7731864", "0.76999587", "0.76762193", "0.7572848", "0.75079304", "0.7465069", "0.74268097", "0.73988163", "0.73704", "0.7259024", "0.72426397", "0.71115494", "0.7093626", "0.70503", "0.7039327", "0.70120335", "0.700609", "0.7002512", "0.6979481", "0.68731123", "0.6828167",...
0.71495193
11
Tick method to update all game variables
public void tick() { //If Statement to make sure this section of the code only runs once using the runOnce variable if(runOnce==1) { //Call initialize method init(); runOnce=2; } //If statement to check if the user presses the space button if(handler.getKeyManager().space==true) { spacePress...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void tick() {\n\t\thealth = GamePanel.getPlayer().health;\n\t\tmaxhealth = GamePanel.getPlayer().maxHealth;\n\t\tstatus = GamePanel.getPlayer().status;\t\n\t\tmanaLevel = GamePanel.getPlayer().mana;\n\t\tmaxManaLevel = GamePanel.getPlayer().maxMana;\n\t\tinv.tick();\n\t}", "private void tick() {\n ...
[ "0.74754447", "0.72370297", "0.7155942", "0.71427786", "0.71383524", "0.7093904", "0.7055563", "0.7024775", "0.7012973", "0.69880086", "0.6915629", "0.69023764", "0.69023764", "0.6884106", "0.6837901", "0.67841136", "0.6781898", "0.67769235", "0.6760583", "0.6760583", "0.6715...
0.6468063
68
Render method to render all the main menu graphics
public void render(Graphics graphics) { graphics.drawImage(mainMenu, 0, 0, null); graphics.drawImage(text, 90, 360, null); graphics.drawImage(border, 270, 420,100,39, null); graphics.drawImage(spaceText, 270, 420,100,39, null); //Check if space was pressed if(spacePressed==true) { //Draws the main men...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void renderMenu() {\n StdDraw.setCanvasSize(START_WIDTH * TILE_SIZE, START_HEIGHT * TILE_SIZE);\n Font font = new Font(\"Monaco\", Font.BOLD, 20);\n StdDraw.setFont(font);\n StdDraw.setXscale(0, START_WIDTH );\n StdDraw.setYscale(0, START_HEIGHT );\n StdDraw.clear(...
[ "0.7644889", "0.7309143", "0.6921261", "0.6887348", "0.6834698", "0.65860194", "0.64896", "0.6450892", "0.6426443", "0.6426077", "0.6345824", "0.63298076", "0.6318327", "0.62971455", "0.6291842", "0.62591773", "0.62552136", "0.62243617", "0.62162536", "0.6211064", "0.6188843"...
0.62757623
15
Method to get the current animation frame
private BufferedImage getCurrentAnimationFrame() { return mainMenuAnimation.getCurrentFrame(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public BufferedImage getCurrentFrame(){\n\t\tif(first)\n\t\t\treturn animation_frame[index];\n\t\telse\n\t\t\treturn animation_frame[0];\n\t\t\n\t}", "int getFrame() {\n return currFrame;\n }", "public int getFrame()\n\t{\n\t\treturn currFrame;\n\t}", "public TextureRegion getCurrentFrame() {\n ...
[ "0.8264168", "0.8087309", "0.8042242", "0.7757463", "0.7683343", "0.7383246", "0.7202287", "0.71181834", "0.7063971", "0.7031621", "0.7019163", "0.7014646", "0.69634336", "0.69308496", "0.68703586", "0.6749406", "0.6716608", "0.6704104", "0.66773665", "0.6660252", "0.6657459"...
0.80201364
3
Noexception constructor. Used when there is no original exception
public InstagramException(String message) { super(message, null); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public NoTraceOntimizeJEEException() {\r\n this((String) null);\r\n }", "public Exception() {\n\t\t\tsuper();\n\t\t}", "public NSException() {\n\t\tsuper();\n\t\tthis.exception = new Exception();\n\t}", "public Exception() {\n\tsuper();\n }", "public CIMException() {\n\t\tthis((String) null, (...
[ "0.7628606", "0.73057944", "0.7188961", "0.7108224", "0.7035291", "0.6995561", "0.6963371", "0.68419313", "0.6838129", "0.6829455", "0.67891043", "0.67527205", "0.6746436", "0.67448443", "0.6734013", "0.6669112", "0.66670287", "0.6657046", "0.66484016", "0.6582638", "0.658163...
0.0
-1
Methode qui permet de retourner une coleur de la palette
private Color couleurOfficiel( int numeroDeCouleur) { if(numeroDeCouleur ==1) { return new Color(230,57,70); } if(numeroDeCouleur ==2) { return new Color(241,250,238); } if(numeroDeCouleur ==3) { return new Color(168,218,220); } if(numeroDeCouleur ==4) { return new Color(168,218,220); }...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void invalidatePalette();", "private PaletteSwitch() {\n \n propertySupport = new PropertyChangeSupport( this );\n }", "static void convert_palette(char []palette,UBytePtr color_prom)\n\t{\n\t\tint i;\n\t\n int p_inc=0;\n\t\tfor (i = 0;i < 1024;i++)\n\t\t{\n\t\t\tint bit0,bit1,b...
[ "0.6833602", "0.6805058", "0.65670145", "0.6504468", "0.6459222", "0.6448544", "0.6441982", "0.6438446", "0.64017874", "0.6397001", "0.63712895", "0.6338735", "0.6315119", "0.6309137", "0.6273743", "0.62552744", "0.6224403", "0.62160873", "0.6214661", "0.62093556", "0.6206714...
0.6024915
35
Methode permettant a ajoute des murs
public void ajouterMur(SVector3d position, SVector3d taille) { Mur mur = new Mur(position, taille); obstaclesList.add(mur); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void ajouter() {\n position = graph.edges.ajouterElement(this);\n origine.successeurs.inserer(destination);\n destination.predecesseurs.inserer(origine);\n origine.aretes_sortantes.inserer(this);\n destination.aretes_entrantes.inserer(this);\n }", "private void ajouterPot (int somme) {\r\n...
[ "0.6981959", "0.63026", "0.623805", "0.62101215", "0.6179756", "0.61539006", "0.6125921", "0.61152166", "0.6112541", "0.6057379", "0.60485506", "0.59710956", "0.5969862", "0.59603006", "0.5868624", "0.58366704", "0.5785035", "0.5779787", "0.5775362", "0.5761174", "0.5735488",...
0.57992494
16
Methode permettant a ajoute des cactus
public void ajouterCactus(SVector3d position, SVector3d taille) { Cactus o = new Cactus(position, taille); obstaclesList.add(o); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\t\t\tpublic void ajouter(Catalogue catalogue) {\n\t\t\t\t\n\t\t\t}", "public void ajouterCource(Cource cource) {\n SQLiteDatabase db = this.getWritableDatabase(); // On veut écrire dans la BD\n ContentValues values = new ContentValues();\n values.put(COURCE_ID_USER, cource.getId_...
[ "0.6953703", "0.6876174", "0.66101", "0.6523428", "0.64883935", "0.6480926", "0.64541286", "0.64136416", "0.6391421", "0.6390208", "0.63776", "0.6366838", "0.63556176", "0.6339425", "0.6330728", "0.63053745", "0.6278264", "0.62732935", "0.62718093", "0.62385696", "0.6236663",...
0.62660915
19
Methode permettant a ajoute des scie
public void ajouterScie(SVector3d position, SVector3d taille) { Scie o = new Scie(position, taille); obstaclesList.add(o); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void agregarSocio(String nombre, int dni, int codSocio) {\n }", "public void sendeSpielfeld();", "Secuencia createSecuencia();", "public void selecao () {}", "public void validerSaisie();", "public void sendeSpielStarten();", "Schueler createSchueler();", "com.soa.SolicitarSe...
[ "0.6478346", "0.6397681", "0.62873876", "0.62139726", "0.6116007", "0.6091923", "0.6086459", "0.60739225", "0.60601467", "0.60223895", "0.5906011", "0.58807135", "0.5874835", "0.58723", "0.58710164", "0.5859964", "0.58585894", "0.5820573", "0.5810935", "0.5802486", "0.5784975...
0.6433954
1
Methode permettant a ajoute de lave
public void ajouterLave(SVector3d position, SVector3d taille) { Lave o = new Lave(position, taille); obstaclesList.add(o); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void ajouter() {\n position = graph.edges.ajouterElement(this);\n origine.successeurs.inserer(destination);\n destination.predecesseurs.inserer(origine);\n origine.aretes_sortantes.inserer(this);\n destination.aretes_entrantes.inserer(this);\n }", "@Override\n\t\t\tpublic void ajouter(Cata...
[ "0.70372677", "0.6772088", "0.6748166", "0.67149657", "0.65174115", "0.6516456", "0.63808876", "0.6353521", "0.6338993", "0.6246648", "0.62373304", "0.62366325", "0.62309474", "0.620525", "0.6180902", "0.6170401", "0.6153283", "0.6141529", "0.6127899", "0.6125009", "0.6120717...
0.0
-1
Methode permettant a ajoute des Champ magnetique
public void ajouterChampMag(SVector3d position, SVector3d taille,SVector3d champMagnetique,double charge,boolean activer) { ChampMagnetique o = new ChampMagnetique(position, taille,champMagnetique,charge,activer); obstaclesList.add(o); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void agregarMobibus(Mobibus mobibus);", "public MangKaib(Main game){\n super(game);\n taust = new Taust(0,0,600,400);\n taust.checkLevel();// checkime, mis areaga tegu on peale uue tausta loomist\n mobSpawner.lisaMobInfo(); // laeme mob info.\n //game, width height draw ...
[ "0.573119", "0.5586539", "0.55705804", "0.55537295", "0.55440676", "0.5503453", "0.5455812", "0.5374631", "0.53273106", "0.52966905", "0.5294502", "0.5284805", "0.5280111", "0.52769065", "0.52511483", "0.52167183", "0.51918733", "0.51882315", "0.5177361", "0.5171303", "0.5143...
0.668451
0
Methode permettant enlever la dernier obstacle
public void enleverlaDerniereObs() { obstaclesList.remove(obstaclesList.size()-1); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void addObstacle(Coord obstacleCoord);", "public Obstacle getConstructingObstacle();", "public void setConstructingObstacle(Obstacle obstacle);", "public void bougerObstacle (MouseEvent e) {\n\t\taddMouseMotionListener(new MouseMotionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void mouseDragged(MouseEv...
[ "0.768983", "0.75947654", "0.74755514", "0.7389665", "0.7134654", "0.6934825", "0.6932224", "0.69317824", "0.6910155", "0.6893913", "0.68319285", "0.67494", "0.6704935", "0.66977704", "0.668978", "0.665848", "0.65900344", "0.6584338", "0.65501827", "0.65464664", "0.6507809", ...
0.62183577
30
Methode qui permet de retourner l'ArrayList des obstacles
public ArrayList<Obstacles> getObstaclesList() { return obstaclesList; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public List<REPoint> getObstacles();", "protected ArrayList<Obstacle> getObstacles() {\n return obstacles;\n }", "public ArrayList<Obstacle> getObstacles(){\n\t\treturn obstacles;\n\t}", "public void enleverTousLesObs() {\n\n\t\tobstaclesList.removeAll(obstaclesList);\n\t}", "public void enleverl...
[ "0.7734109", "0.74248636", "0.7410435", "0.68871063", "0.6823125", "0.6753266", "0.6529732", "0.64669925", "0.6295832", "0.62841105", "0.6134168", "0.6045934", "0.60201895", "0.60149646", "0.6014134", "0.6005661", "0.59299004", "0.5920533", "0.5882038", "0.5867528", "0.583647...
0.7158476
3
Methode permettant enlever la dernier obstacle
public void enleverTousLesObs() { obstaclesList.removeAll(obstaclesList); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void addObstacle(Coord obstacleCoord);", "public Obstacle getConstructingObstacle();", "public void setConstructingObstacle(Obstacle obstacle);", "public void bougerObstacle (MouseEvent e) {\n\t\taddMouseMotionListener(new MouseMotionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void mouseDragged(MouseEv...
[ "0.7689236", "0.75956726", "0.74749684", "0.7389291", "0.71357006", "0.6934325", "0.693375", "0.69313353", "0.6910087", "0.6894035", "0.6832508", "0.67497104", "0.67048496", "0.6696798", "0.6690001", "0.66593117", "0.6591021", "0.6583652", "0.6550404", "0.6546721", "0.6506592...
0.5721798
73
Methode permettant d'effacer l'obstacle selectionner
public void effacerObjetSelec( int objetSelec) { obstaclesList.remove(objetSelec); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void bougerObstacle (MouseEvent e) {\n\t\taddMouseMotionListener(new MouseMotionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void mouseDragged(MouseEvent nouv) {\n\t\t\t\tif (interieur) {\n\t\t\t\t\t//\t\t\t\t\t\n\t\t\t\t\tgetObstaclesList().get(indiceObjetSelectionne).setPosition(new SVector3d(valeurEnReelle...
[ "0.69832104", "0.69212", "0.6584625", "0.6377203", "0.61627555", "0.6142347", "0.61197186", "0.61052823", "0.60902864", "0.6075242", "0.6054366", "0.60026526", "0.59567016", "0.5893133", "0.58697677", "0.58647346", "0.5833651", "0.58328277", "0.57858336", "0.57812434", "0.577...
0.6290105
4
Methode permettant de retourner la position du camera
public SVector3d getPositionCam() { return transCamera; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tpublic void moveCamera() {\n\n\t}", "private void changeCameraPosition() {\n yPosition = mPerspectiveCamera.position.y;\n if (isMovingUp) {\n yPosition += 0.1;\n if (yPosition > 20)\n isMovingUp = false;\n } else {\n yPosition -= 0...
[ "0.7801108", "0.75998986", "0.74536", "0.7390161", "0.7329799", "0.71918684", "0.7066676", "0.7057886", "0.6992825", "0.69349366", "0.6934439", "0.6879813", "0.6824952", "0.6710715", "0.6691993", "0.6661042", "0.6643586", "0.6593742", "0.6577943", "0.65759176", "0.65701056", ...
0.69705313
9
Methode permettant de changer a position du camera
public void setPositionCam(SVector3d positionCam) { transCamera = positionCam; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void changeCameraPosition() {\n yPosition = mPerspectiveCamera.position.y;\n if (isMovingUp) {\n yPosition += 0.1;\n if (yPosition > 20)\n isMovingUp = false;\n } else {\n yPosition -= 0.1;\n if (yPosition < 1)\n ...
[ "0.7860989", "0.77758193", "0.7502143", "0.72191846", "0.7081867", "0.70019555", "0.7001881", "0.69322294", "0.68847364", "0.6826826", "0.6784295", "0.67808837", "0.6744751", "0.67351556", "0.6721967", "0.66973555", "0.66811067", "0.6667505", "0.6654471", "0.6624773", "0.6614...
0.60394233
71
Methode permettant de changer le numero du mur selectionner
public void setNumeroMur(int numeroMur) { this.numeroMur = numeroMur; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\t\t\tpublic void changeSelectItem(int selectNum) {\n\t\t\t\tholder.num = selectNum;\n\t\t\t\tLogUtils.burtLog(\"selectNum==\"+selectNum);\n\t\t\t\tholder.tv_store.setText(\"-\"+selectNum*item.data.zsmdwypxhjfs+\" 剩余\"\n\t\t\t\t\t\t+(item.data1.num_syjf-selectNum*item.data.zsmdwypxhjfs));\n\t\t\t}", ...
[ "0.68819153", "0.6490282", "0.6416419", "0.6349757", "0.6295964", "0.62724024", "0.6205476", "0.6187476", "0.61480457", "0.6130572", "0.6072904", "0.6044224", "0.6040384", "0.60198724", "0.5997334", "0.5975548", "0.5960605", "0.5947098", "0.5938052", "0.59250206", "0.5924838"...
0.57207024
52
Methode permettant de changer le numero du cactus selectionner
public void setNumeroCactus(int numeroCactus) { this.numeroCactus = numeroCactus; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void actionPerformed(ActionEvent e) {\n\t\t\t\t\tpistaseleccionada = (int) pista.getSelectedItem();\r\n\r\n\t\t\t\t}", "public void setNumero(int numero) { this.numero = numero; }", "@Override\n\t\t\tpublic void changeSelectItem(int selectNum) {\n\t\t\t\tholder.num = selectNum;\n\t\t\t\tLogUtils.burtLog...
[ "0.6333425", "0.6268721", "0.6247136", "0.6194351", "0.6110078", "0.60912466", "0.6080539", "0.6049712", "0.60458165", "0.60181576", "0.60149723", "0.60109603", "0.5995832", "0.5970825", "0.5961063", "0.5923348", "0.5922009", "0.58897644", "0.58452034", "0.583339", "0.583052"...
0.5919658
17
Methode permettant de changer le numero de lave selectionner
public void setNumeroLave(int numeroLave) { this.numeroLave = numeroLave; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\t\t\tpublic void changeSelectItem(int selectNum) {\n\t\t\t\tholder.num = selectNum;\n\t\t\t\tLogUtils.burtLog(\"selectNum==\"+selectNum);\n\t\t\t\tholder.tv_store.setText(\"-\"+selectNum*item.data.zsmdwypxhjfs+\" 剩余\"\n\t\t\t\t\t\t+(item.data1.num_syjf-selectNum*item.data.zsmdwypxhjfs));\n\t\t\t}", ...
[ "0.67227376", "0.64563763", "0.64482135", "0.64174104", "0.62471974", "0.6226222", "0.6185375", "0.61792845", "0.6166182", "0.6139272", "0.61365336", "0.6112187", "0.6048497", "0.60484076", "0.60412264", "0.6026262", "0.59968156", "0.5969308", "0.5956", "0.5933972", "0.592863...
0.0
-1
Methode permettant de changer le numero du champ magnetique selectionner
public void setNumeroChampMag(int numeroChampMag) { this.numeroChampMag = numeroChampMag; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public int getNumeroChampMag() {\n\t\treturn numeroChampMag;\n\t}", "@Override\n\t\t\tpublic void changeSelectItem(int selectNum) {\n\t\t\t\tholder.num = selectNum;\n\t\t\t\tLogUtils.burtLog(\"selectNum==\"+selectNum);\n\t\t\t\tholder.tv_store.setText(\"-\"+selectNum*item.data.zsmdwypxhjfs+\" 剩余\"\n\t\t\t\t\t\t...
[ "0.59143674", "0.5825902", "0.5822854", "0.558787", "0.55785316", "0.5473962", "0.5452125", "0.5424212", "0.5420819", "0.5380422", "0.5356742", "0.5350487", "0.5341762", "0.53417057", "0.53290623", "0.5327698", "0.5283527", "0.5270406", "0.5267624", "0.5264439", "0.5255229", ...
0.5971435
0
Methode permettant de changer le numero de la scie selectionner
public void setNumeroScie(int numeroScie) { this.numeroScie = numeroScie; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\t\t\tpublic void changeSelectItem(int selectNum) {\n\t\t\t\tholder.num = selectNum;\n\t\t\t\tLogUtils.burtLog(\"selectNum==\"+selectNum);\n\t\t\t\tholder.tv_store.setText(\"-\"+selectNum*item.data.zsmdwypxhjfs+\" 剩余\"\n\t\t\t\t\t\t+(item.data1.num_syjf-selectNum*item.data.zsmdwypxhjfs));\n\t\t\t}", ...
[ "0.64504176", "0.64193916", "0.6349066", "0.6301155", "0.6255432", "0.6232399", "0.6214586", "0.6160197", "0.61376166", "0.61370426", "0.6097311", "0.6087493", "0.6066298", "0.6059926", "0.605239", "0.60334414", "0.6031158", "0.59741056", "0.595346", "0.5946534", "0.5939141",...
0.63700867
2
Methode permettant de retourner la numero du mur selectionner
public int getNumeroMur() { return numeroMur; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String getSelectedNumber() {\n\t\treturn uNumber;\n\t}", "public void setNumero(int numero) { this.numero = numero; }", "private int pickIdNumber(String type) {\n\t\tint xGetNum = -1;\n\t\ttry {\n\t\t\tSystem.out.println(\"\\nEnter the number 0 if the \" + type + \" is NOT on the list. \");\n\t\t\tSyste...
[ "0.65942913", "0.65245265", "0.6455666", "0.6412581", "0.63727707", "0.6325969", "0.62812066", "0.6213454", "0.6211638", "0.6198103", "0.61480397", "0.6121495", "0.61187947", "0.6055959", "0.60035354", "0.5929621", "0.5923524", "0.5921469", "0.5870062", "0.58499086", "0.58499...
0.0
-1
Methode permettant de retourner la numero du cactus selectionner
public int getNumeroCactus() { return numeroCactus; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "String selectNumeroManifiestoAeat(final Long srvcId);", "private int numOnglet(){\n int selIndex = jTabPane_Accueil.getSelectedIndex();\n return selIndex;\n }", "public void setNumero(int numero) { this.numero = numero; }", "private void selectedRowInvoice(){\r\n //numOrdenInv = tb_fa...
[ "0.6531301", "0.63833344", "0.63057435", "0.62570465", "0.61978", "0.60523754", "0.60466367", "0.6034537", "0.6032609", "0.6020558", "0.60088277", "0.5982313", "0.59776795", "0.59737706", "0.5953716", "0.59299517", "0.59028244", "0.5893021", "0.58688504", "0.5859422", "0.5848...
0.5856876
20
Methode permettant de retourner la numero du champ magnetique selectionner
public int getNumeroChampMag() { return numeroChampMag; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setNumeroChampMag(int numeroChampMag) {\n\t\tthis.numeroChampMag = numeroChampMag;\n\t}", "public void setNumeroMur(int numeroMur) {\n\t\tthis.numeroMur = numeroMur;\n\t}", "public int getNumeroMur() {\n\t\treturn numeroMur;\n\t}", "public void setBunga(int tipeBunga){\n }", "public void set...
[ "0.60656524", "0.5766551", "0.56300616", "0.5461557", "0.53879327", "0.5384414", "0.5383645", "0.537949", "0.5366445", "0.5352419", "0.53407353", "0.5330617", "0.52891004", "0.5287586", "0.52774936", "0.5273051", "0.5251799", "0.5231407", "0.52312994", "0.5215288", "0.5208162...
0.64646286
0
Methode permettant de retourner la numero de la scie selectionner
public int getNumeroScie() { return numeroScie; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setNumeroScie(int numeroScie) {\n\t\tthis.numeroScie = numeroScie;\n\t}", "public void setNumero(int numero) { this.numero = numero; }", "public void generaNumeros() {\n\n\n int number =0;\n int numeroSeleccionado=gameMemoriaUno.getNumberaleatorio();\n //se agrega numero a las ...
[ "0.6538354", "0.6471458", "0.6412491", "0.63384575", "0.6302735", "0.6280879", "0.624785", "0.621239", "0.6203974", "0.6178599", "0.61455446", "0.6142451", "0.6135647", "0.6121049", "0.6089681", "0.6068648", "0.60445225", "0.6044431", "0.6026643", "0.6001567", "0.596648", "...
0.57934743
41
Methode permettant de retourner la numero lave selectionner
public int getNumeroLave() { return numeroLave; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setNumero(int numero) { this.numero = numero; }", "private int pickIdNumber(String type) {\n\t\tint xGetNum = -1;\n\t\ttry {\n\t\t\tSystem.out.println(\"\\nEnter the number 0 if the \" + type + \" is NOT on the list. \");\n\t\t\tSystem.out.print(\"Enter the \" + type + \"'s ID# : \");\n\t\t\txGetNum ...
[ "0.66781914", "0.65050054", "0.6499621", "0.6486436", "0.6468919", "0.64155596", "0.6375646", "0.62803674", "0.6272875", "0.6253665", "0.62156606", "0.6213008", "0.6150112", "0.61394143", "0.61303437", "0.6126497", "0.608503", "0.6074442", "0.60658026", "0.6056373", "0.603967...
0.0
-1
Methode qui permet de savoir c'est koi l'hauteur du monde
public double getHauteurDuMonde(){ return HAUTEUR_DU_MONDE; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tpublic void fechaEstablecida(long milis) {\n\t\tfinal TextView dob = (TextView) findViewById(R.id.dayOfBirthTextView);\n\t\tdob.setText(DateFormat.format(\"MMMM dd, yyyy\", milis));\n\t\tdayOfBirth = milis;\n\t\tEditor editor = mGameSettings.edit();\n\t\teditor.putLong(Constants.GAME_PREFERENCES_DOB, ...
[ "0.64129674", "0.6211253", "0.6149221", "0.6135767", "0.60912615", "0.6041269", "0.60404783", "0.60347855", "0.6027606", "0.60127467", "0.5874337", "0.58625656", "0.5796887", "0.57952857", "0.5781389", "0.57740664", "0.57609963", "0.5760393", "0.5756068", "0.5744634", "0.5734...
0.0
-1
Methode qui permet de savoir c'est koi l'hauteur du monde
public double getLageurDuMonde(){ return largeurDuMonde; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tpublic void fechaEstablecida(long milis) {\n\t\tfinal TextView dob = (TextView) findViewById(R.id.dayOfBirthTextView);\n\t\tdob.setText(DateFormat.format(\"MMMM dd, yyyy\", milis));\n\t\tdayOfBirth = milis;\n\t\tEditor editor = mGameSettings.edit();\n\t\teditor.putLong(Constants.GAME_PREFERENCES_DOB, ...
[ "0.6414568", "0.62118363", "0.6146804", "0.61351043", "0.60908574", "0.60427934", "0.60423696", "0.6037574", "0.6026227", "0.6013136", "0.58754635", "0.5861974", "0.5797449", "0.5794826", "0.5782845", "0.5776009", "0.576304", "0.5761212", "0.5758032", "0.57444006", "0.5735864...
0.0
-1
Methode qui permet changer le largeur du monde
public void setLageurDuMonde( double valeur) { largeurDuMonde = valeur; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void geldCheat() {\n if (geld + 1000000 < Long.MAX_VALUE) {\n geld = geld + 1000000;\n ticker.neueNachricht(\"Korruptionsverdacht bei Stadtwerken!\");\n }\n }", "public abstract long mo24412e();", "public abstract long mo9746k();", "public int getLargeur() {\r\n ...
[ "0.65754294", "0.65143263", "0.64586115", "0.6396264", "0.6375887", "0.63557106", "0.63312703", "0.63087654", "0.6307012", "0.62956536", "0.6275768", "0.6267321", "0.6142844", "0.6137627", "0.60983044", "0.60949856", "0.6093717", "0.6056356", "0.60454315", "0.6034737", "0.602...
0.5670246
64
Methode qui permet changer l'argrandissement du monde
public void setleZoom( double valeur) { zoomMonde = valeur; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static void miedo(){\n int aleatorio; //variables locales a utilizar\n Random numeroAleatorio = new Random(); //declarando variables tipo random para aleatoriedad\n aleatorio = (numeroAleatorio.nextInt(10-5+1)+5);\n \n if(oro>aleatorio){//condicion de fina...
[ "0.6645587", "0.6585472", "0.64190096", "0.64162034", "0.6126691", "0.61168295", "0.6031851", "0.6015103", "0.5960593", "0.59279203", "0.59140325", "0.5904707", "0.58807755", "0.5819525", "0.5805622", "0.5790811", "0.57738185", "0.57732695", "0.5762018", "0.5749085", "0.57423...
0.0
-1
Methode qui prend en parametre une valeur en pixel et la convertit en unites reelles en X
public double valeurEnReelleX(double pixel) { return pixel/modele.getPixelsParUniteX(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void changePixelValues(ImageProcessor ip) {\n\t\t\tint[] pixels = (int[])ip.getPixels();\r\n\t\t\t\r\n\t\t\tfor (int y=0; y<height; y++) {\r\n\t\t\t\tfor (int x=0; x<width; x++) {\r\n\t\t\t\t\tint pos = y*width + x;\r\n\t\t\t\t\tint argb = origPixels[pos]; // Lesen der Originalwerte \r\n\t\t\t\t\t\r\n\t\t...
[ "0.63801277", "0.6242799", "0.62024885", "0.61510026", "0.61510026", "0.61278623", "0.612394", "0.60998166", "0.60302305", "0.6001126", "0.5975138", "0.5918646", "0.5914907", "0.5878228", "0.5864686", "0.58630246", "0.5845687", "0.58163947", "0.5804088", "0.5801837", "0.58008...
0.57721895
23
Methode qui prend en parametre une valeur en pixel et la convertit en unites reelles en Y
public double valeurEnReelleY(double pixel) { return pixel/modele.getPixelsParUniteY(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private int convertY(int i) {\n return i / width;\n }", "private void changePixelValues(ImageProcessor ip) {\n\t\t\tint[] pixels = (int[])ip.getPixels();\r\n\t\t\t\r\n\t\t\tfor (int y=0; y<height; y++) {\r\n\t\t\t\tfor (int x=0; x<width; x++) {\r\n\t\t\t\t\tint pos = y*width + x;\r\n\t\t\t\t\tint argb ...
[ "0.66099805", "0.65914166", "0.62294966", "0.6075484", "0.5987201", "0.59834814", "0.5977334", "0.596299", "0.5959124", "0.5939672", "0.589099", "0.5867802", "0.5852291", "0.58026534", "0.57719445", "0.5771293", "0.5711538", "0.5709174", "0.5696989", "0.5684377", "0.5682071",...
0.6051324
4
Methode permettant de touver l'objet selectionner
public void trouverQuelObjetEstSeletionne(MouseEvent e) { double xPrecedent = e.getX(); double yPrecedent = e.getY(); //double xPrecedent =0; //double yPrecedent = 0; if(getObstaclesList().size()>indiceObjetSelectionne) { while(getObstaclesList().get(i).getArea().contains(e.getX(), e.getY())&&getObstaclesL...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void seleccionarPersona() {\n\t\t\r\n\t}", "@Override\r\n\t\t\tpublic void seleccionar() {\n\r\n\t\t\t}", "@Override\n public void selectGolem(int id) {\n }", "public void select(Object obj, boolean selectionFlag);", "@Override\n\tpublic void selecciona() {\n\t\tClienteProxy bea...
[ "0.7746276", "0.74953383", "0.7217274", "0.7034093", "0.70078963", "0.69937867", "0.6441722", "0.6414869", "0.63782847", "0.6344729", "0.6324953", "0.63055974", "0.6277293", "0.627221", "0.6269903", "0.61995757", "0.61984456", "0.6190112", "0.61773247", "0.6157749", "0.615109...
0.0
-1
Methode permettant de bouger l'objet
public void bougerObstacle (MouseEvent e) { addMouseMotionListener(new MouseMotionAdapter() { @Override public void mouseDragged(MouseEvent nouv) { if (interieur) { // getObstaclesList().get(indiceObjetSelectionne).setPosition(new SVector3d(valeurEnReelleX(nouv.getX() - xPrecedent)- getPositi...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "Objet getObjetAlloue();", "@Override\n public void updete(Object obj) {\n\n }", "@Override\n\tpublic void gravarBd() {\n\t\t\n\t}", "@Override\n public boolean create(Revue objet) {\n return false;\n }", "@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}", "@Override\n\tpublic...
[ "0.6950923", "0.6775182", "0.66387963", "0.65395665", "0.64083344", "0.639604", "0.63944566", "0.63939977", "0.6387532", "0.6385473", "0.6354348", "0.63513666", "0.6345175", "0.63443583", "0.6339703", "0.6312618", "0.62672", "0.6262515", "0.6260736", "0.6255181", "0.62548065"...
0.0
-1
return value 1 means root is not balanced
private int getDepthRaw(TreeNode root){ if (root == null) { return 0; } int left = getDepthRaw(root.left); int right = getDepthRaw(root.right); if (left == -1 || right == -1) { return -1; }else{ if (Math.abs(left - right) > 1) { ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public boolean isBalanced() {\n return isBalanced(root);\n }", "public boolean isBalancedTree1(Node root){\n\t\tif(root == null)\n\t\t\treturn false;\n\t\treturn (checkHeight(root) != Integer.MIN_VALUE);\n\t\t\n\t}", "public boolean isBalanced() {\n\t if (checkHeight(root)==-1)\n\t \t\treturn false;\n\...
[ "0.689426", "0.68737113", "0.6860478", "0.6819278", "0.6774376", "0.673211", "0.66273475", "0.6572686", "0.65720755", "0.6570899", "0.65601313", "0.6557109", "0.6544965", "0.653908", "0.6518715", "0.6422081", "0.6413898", "0.6384511", "0.637556", "0.63616437", "0.6360524", ...
0.57241285
52
set keyvalue For Object(NOT String)
public void set(String key, Object value) { set(key, value, 0); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void set(String key, Object value);", "@Override\n public void putValue(String key, Object value) {\n\n }", "public void setObject(final String key, final Object value)\r\n {\r\n if (key == null)\r\n {\r\n throw new NullPointerException();\r\n }\r\n if (value == null)\r\n {\r\n ...
[ "0.80767375", "0.73178077", "0.726602", "0.7265548", "0.721337", "0.70997566", "0.7090743", "0.70773613", "0.70726556", "0.7013332", "0.7000818", "0.69914883", "0.6959162", "0.6952911", "0.6887042", "0.6843572", "0.68399256", "0.6736755", "0.67124903", "0.66622674", "0.662063...
0.7205878
5
set keyvalue For Object(NOT String)
public void set(String key, Object value, int ttl) { Jedis jedis = null; try { jedis = jedisPool.getResource(); // jedis.set(key.getBytes(), HessianSerializer.serialize(value)); jedis.set(key.getBytes(), toJsonByteArray(value)); if (ttl > 0) { ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void set(String key, Object value);", "@Override\n public void putValue(String key, Object value) {\n\n }", "public void setObject(final String key, final Object value)\r\n {\r\n if (key == null)\r\n {\r\n throw new NullPointerException();\r\n }\r\n if (value == null)\r\n {\r\n ...
[ "0.8078141", "0.7317737", "0.7267658", "0.72658914", "0.7213192", "0.72076046", "0.7101334", "0.70922494", "0.7078535", "0.7072452", "0.70132184", "0.7001114", "0.69936085", "0.6960398", "0.6954073", "0.68886775", "0.68433493", "0.6842315", "0.67372274", "0.671261", "0.666204...
0.0
-1
set keyvalue with expired time(s)
public String setex(String key, int seconds, String value) { Jedis jedis = null; try { jedis = jedisPool.getResource(); return jedis.setex(key, seconds, value); } finally { if (jedis != null) { jedis.close(); } } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tpublic void expire(String k, Value v)\n\t{\n\t\t\n\t}", "@Override\n\tpublic void expire(String k, Value v)\n\t{\n\t\t\n\t}", "protected abstract void _set(String key, Object obj, Date expires);", "public void put(String key, Object value, int time) {\n customCache.put(key, new TimeExpire...
[ "0.72431296", "0.72431296", "0.71293586", "0.70488", "0.7001133", "0.69791", "0.69066715", "0.6884907", "0.6877374", "0.68254304", "0.671898", "0.67137706", "0.6675019", "0.6647952", "0.6618206", "0.6559711", "0.65245616", "0.65110695", "0.6500481", "0.6500396", "0.6457206", ...
0.5723512
52
set keyvalue For Object(NOT String) with expired time(s)
public String setex(String key, int seconds, Object value) { Jedis jedis = null; try { jedis = jedisPool.getResource(); // return jedis.setex(key.getBytes(), seconds, // HessianSerializer.serialize(value)); return jedis.setex(key.getBytes(), seconds, toJso...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected abstract void _set(String key, Object obj, Date expires);", "public void put(String key, Object value, int time) {\n customCache.put(key, new TimeExpiredObject(value, time));\n }", "protected abstract boolean _setIfAbsent(String key, Object value, Date expires);", "@Override\n\tpublic voi...
[ "0.76108736", "0.72291374", "0.7048289", "0.6885148", "0.6885148", "0.676423", "0.6738559", "0.66545904", "0.6648451", "0.6578586", "0.64847267", "0.6433869", "0.64179426", "0.63499385", "0.6336268", "0.6218572", "0.6168204", "0.60946935", "0.60673565", "0.6066327", "0.604411...
0.56538254
38
Prepend one or multiple values to a list
public void lpush(String key, String... values) { Jedis jedis = null; if (values == null) { return; } try { jedis = jedisPool.getResource(); jedis.lpush(key, values); } finally { if (jedis != null) { jedis.close(); ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Nonnull\n @Contract(pure = true)\n public static <T> List<T> prepend(@Nonnull List<? extends T> list, @Nonnull T... values) {\n return concat(list(values), list);\n }", "public static <T> ConstList<T> prepend(List<T> list, T element) {\n TempList<T> ans = new TempList<T>(list.size() + 1);\n ...
[ "0.75336844", "0.6473061", "0.6157525", "0.6055937", "0.5991597", "0.57937586", "0.5759071", "0.57018006", "0.56445426", "0.56018263", "0.55889004", "0.556283", "0.5509266", "0.5492257", "0.54396373", "0.543786", "0.5434232", "0.54229116", "0.5404199", "0.5379455", "0.5376835...
0.0
-1
For Object,Prepend one or multiple values to a list
public void lpush(String key, Object... values) { Jedis jedis = null; if (values == null) { return; } try { jedis = jedisPool.getResource(); byte[][] strings = new byte[values.length][]; for (int j = 0; j < values.length; j++) { ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Nonnull\n @Contract(pure = true)\n public static <T> List<T> prepend(@Nonnull List<? extends T> list, @Nonnull T... values) {\n return concat(list(values), list);\n }", "protected <V> List<V> newObject(Collection<V> initialValues) {\n return new ArrayList<>(initialValues);\n }", "public void a...
[ "0.6421232", "0.55728996", "0.54041916", "0.52979493", "0.52509725", "0.52334493", "0.5225453", "0.51781005", "0.514629", "0.5115966", "0.51021034", "0.5068156", "0.5058453", "0.505809", "0.5047542", "0.504389", "0.5031551", "0.4974469", "0.49720526", "0.49719653", "0.4958934...
0.0
-1
For single Object,Prepend one or multiple values to a list
public void lpushForObject(String key, Object value) { Jedis jedis = null; if (value == null) { return; } try { jedis = jedisPool.getResource(); // jedis.lpush(key.getBytes(), HessianSerializer.serialize(value)); jedis.lpush(key.getBytes(),...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Nonnull\n @Contract(pure = true)\n public static <T> List<T> prepend(@Nonnull List<? extends T> list, @Nonnull T... values) {\n return concat(list(values), list);\n }", "protected <V> List<V> newObject(Collection<V> initialValues) {\n return new ArrayList<>(initialValues);\n }", "public void a...
[ "0.6307244", "0.5687526", "0.53977245", "0.52661157", "0.5260874", "0.5239584", "0.5224523", "0.52174914", "0.5129755", "0.5120652", "0.5119898", "0.5117087", "0.5112594", "0.509037", "0.50581884", "0.50442183", "0.5027332", "0.50217694", "0.5001238", "0.5001026", "0.49986222...
0.0
-1
For single Object,Prepend one or multiple values to a list
public void rpushForObject(String key, Object value) { Jedis jedis = null; if (value == null) { return; } try { jedis = jedisPool.getResource(); // jedis.rpush(key.getBytes(), HessianSerializer.serialize(value)); jedis.rpush(key.getBytes(),...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Nonnull\n @Contract(pure = true)\n public static <T> List<T> prepend(@Nonnull List<? extends T> list, @Nonnull T... values) {\n return concat(list(values), list);\n }", "protected <V> List<V> newObject(Collection<V> initialValues) {\n return new ArrayList<>(initialValues);\n }", "public void a...
[ "0.63068897", "0.56861734", "0.54002535", "0.526657", "0.52614444", "0.5238512", "0.5225376", "0.5216277", "0.51281893", "0.5122239", "0.512017", "0.5117675", "0.5112549", "0.509031", "0.5057359", "0.50434273", "0.5026014", "0.50212777", "0.50018936", "0.5000665", "0.49979883...
0.0
-1
Append one or multiple values to a list
public void rpush(String key, String... values) { Jedis jedis = null; if (values == null) { return; } try { jedis = jedisPool.getResource(); jedis.rpush(key, values); } finally { if (jedis != null) { jedis.close(); ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public RTWLocation append(Object... list);", "public void addValues(List newValues) {\n synchronized (values) {\n values.addAll(newValues);\n }\n }", "public void addAll(Object... values) {\n verifyModifiable();\n\n if (values.length == 1 && values[0] instanceof Tuple)\n ...
[ "0.682096", "0.6698737", "0.6340504", "0.6331937", "0.6230007", "0.6183599", "0.6081254", "0.60752195", "0.6070557", "0.6059498", "0.6033964", "0.6002291", "0.5973349", "0.5962341", "0.59573513", "0.59082615", "0.59044904", "0.59012085", "0.58961123", "0.5889239", "0.58737016...
0.0
-1
For Object, Append one or multiple values to a list
public void rpush(String key, Object... values) { Jedis jedis = null; if (values == null) { return; } try { jedis = jedisPool.getResource(); byte[][] strings = new byte[values.length][]; for (int j = 0; j < values.length; j++) { ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public RTWLocation append(Object... list);", "public void setValues(List<Object> values);", "public List<ValueObject> getValueObjects()\r\n {\r\n List<ValueObject> vos = new ArrayList<ValueObject>();\r\n vos.add(getValueObject());\r\n return vos;\r\n }", "public Sql appendList(Object[] value) {\n...
[ "0.62994266", "0.6147494", "0.6111699", "0.6081841", "0.5937926", "0.58757335", "0.58694184", "0.5766487", "0.56881356", "0.56123126", "0.56109095", "0.56024575", "0.55744994", "0.5523068", "0.5521041", "0.5493968", "0.5479086", "0.54755396", "0.5461043", "0.5457205", "0.5410...
0.0
-1
Remove and get the last element in a list
public String rpop(String key) { Jedis jedis = null; try { jedis = jedisPool.getResource(); return jedis.rpop(key); } finally { if (jedis != null) { jedis.close(); } } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public E removeLast();", "public T removeLast();", "public Item removeLast(){\r\n\t\tif (isEmpty()) throw new NoSuchElementException(\"Queue underflow\");\r\n\t\tItem tmp = list[last--];\r\n\t\tn--;\r\n\t\tlatter=last+1;\r\n\t\tif(last==-1){last=list.length-1;}\r\n\t\tif (n > 0 && n == list.length/4) resize(li...
[ "0.80688137", "0.7935168", "0.79196084", "0.78289264", "0.78161865", "0.77830744", "0.7720841", "0.77195466", "0.7703363", "0.7667939", "0.7666637", "0.76504487", "0.7611364", "0.7511172", "0.7446817", "0.74445224", "0.74009323", "0.73871225", "0.73858637", "0.7380855", "0.73...
0.0
-1
For Object, Remove and get the last element in a list
public <T> T rpop(String key, Class<T> clazz) { Jedis jedis = null; try { jedis = jedisPool.getResource(); // return (T) // HessianSerializer.deserialize(jedis.rpop(key.getBytes())); return fromJsonByteArray(jedis.rpop(key.getBytes()), clazz); } fi...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public E removeLast();", "public T removeLast();", "public Item removeLast();", "public TypeHere removeLast() {\n TypeHere x = getLast();\n items[size - 1] = null;\n size -= 1; \n return x;\n }", "public E removeLast(){\r\n return null;\r\n }", "public Object las...
[ "0.79691017", "0.7810951", "0.76792395", "0.75588834", "0.7425655", "0.7416225", "0.73918134", "0.7298461", "0.7282473", "0.7277077", "0.7218084", "0.7188545", "0.7173267", "0.71628445", "0.7151", "0.71040136", "0.7087466", "0.70283705", "0.7007677", "0.6994385", "0.69673526"...
0.0
-1
Remove and get the first element in a list
public String lpop(String key) { Jedis jedis = null; try { jedis = jedisPool.getResource(); return jedis.lpop(key); } finally { if (jedis != null) { jedis.close(); } } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "Object removeFirst();", "public T removeFirst( ){\r\n\t\t//calls remove onfirst\r\n\t\tT toRemove = getFirst();\r\n\t\treturn remove(toRemove);\r\n\t}", "public T removeFirst();", "public E removeFirst();", "public Object removeFirst(){\n if (first == null)\n throw new NoSuchElementException();\n ...
[ "0.7620516", "0.7605209", "0.75780797", "0.7577534", "0.747606", "0.7435786", "0.7418206", "0.73719686", "0.73407406", "0.7321904", "0.73093927", "0.72811776", "0.72756743", "0.7266056", "0.7259778", "0.71978486", "0.71829355", "0.7148703", "0.71374965", "0.71355677", "0.7131...
0.0
-1
For Object, Remove and get the first element in a list
public <T> T lpop(String key, Class<T> clazz) { Jedis jedis = null; try { jedis = jedisPool.getResource(); // return (T) // HessianSerializer.deserialize(jedis.lpop(key.getBytes())); return fromJsonByteArray(jedis.lpop(key.getBytes()), clazz); } fi...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "Object removeFirst();", "public E removeFirst();", "public T removeFirst();", "public T removeFirst( ){\r\n\t\t//calls remove onfirst\r\n\t\tT toRemove = getFirst();\r\n\t\treturn remove(toRemove);\r\n\t}", "public Object removeFirst(){\n if (first == null)\n throw new NoSuchElementException();\n ...
[ "0.8140355", "0.76982737", "0.7613797", "0.74454993", "0.73372144", "0.7275407", "0.7204326", "0.7093304", "0.7027485", "0.7015502", "0.69767547", "0.6941091", "0.68061465", "0.680418", "0.6790613", "0.6765364", "0.67627037", "0.6753293", "0.67427987", "0.67363954", "0.671827...
0.0
-1
Get the length of a list
public Long llen(String key) { Jedis jedis = null; try { jedis = jedisPool.getResource(); return jedis.llen(key); } finally { if (jedis != null) { jedis.close(); } } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public int length()\n {\n if(integerList == null)\n return 0;\n else\n return integerList.length;\n }", "int getListSize(int list) {\n\t\treturn m_lists.getField(list, 4);\n\t}", "public int len() {\n\t\tint i = 0;\n\t\tif(stringList != null) {\n\t\t\tIterator iterator...
[ "0.7815506", "0.7753383", "0.76602745", "0.76494807", "0.7635123", "0.7591964", "0.7591964", "0.7584446", "0.75826824", "0.75748384", "0.75748384", "0.7567244", "0.75216126", "0.7510128", "0.75055575", "0.7493404", "0.7473471", "0.7454891", "0.7444124", "0.73955476", "0.73847...
0.0
-1
Get a range of elements from a list. For example LRANGE foobar 0 2 will return the first three elements of the list. For example LRANGE foobar 1 2 will return the last two elements of the list.
public List<String> lrange(String key, long start, long end) { Jedis jedis = null; try { jedis = jedisPool.getResource(); return jedis.lrange(key, start, end); } finally { if (jedis != null) { jedis.close(); } } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "int getRange();", "public native RecordList getRangeAsRecordList(int start, int end) /*-{\r\n var self = this.@com.smartgwt.client.core.BaseClass::getOrCreateJsObj()();\r\n var recordsJS = self.getRange(start, end);\r\n return (recordsJS == null || recordsJS === undefined) ? null :\r\n ...
[ "0.66801727", "0.62296665", "0.6227357", "0.61096764", "0.5961306", "0.5949018", "0.5930339", "0.5892352", "0.58877677", "0.58608526", "0.5860179", "0.5833389", "0.5833034", "0.58312416", "0.58271545", "0.5814644", "0.5791102", "0.57492036", "0.56597763", "0.5634249", "0.5631...
0.610237
4
For Object, Get a range of elements from a list. For example LRANGE foobar 0 2 will return the first three elements of the list. For example LRANGE foobar 1 2 will return the last two elements of the list.
public <T> List<T> lrange(String key, long start, long end, Class<T> clazz) { Jedis jedis = null; try { jedis = jedisPool.getResource(); List<byte[]> list = jedis.lrange(key.getBytes(), start, end); if (list != null && list.size() > 0) { List<T> result...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "int getRange();", "public native RecordList getRangeAsRecordList(int start, int end) /*-{\r\n var self = this.@com.smartgwt.client.core.BaseClass::getOrCreateJsObj()();\r\n var recordsJS = self.getRange(start, end);\r\n return (recordsJS == null || recordsJS === undefined) ? null :\r\n ...
[ "0.6817796", "0.67337406", "0.634773", "0.63349515", "0.6326832", "0.6223458", "0.62113255", "0.6207945", "0.61606604", "0.61590844", "0.6139956", "0.6076048", "0.60728973", "0.605785", "0.60531694", "0.6049695", "0.6046122", "0.60236746", "0.60040116", "0.6001115", "0.596813...
0.5668684
36
Add one or more members to a set
public Boolean sadd(final String key, final String... members) { Jedis jedis = null; try { jedis = jedisPool.getResource(); return jedis.sadd(key, members) >= 1 ? true : false; } finally { if (jedis != null) { jedis.close(); } ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "MultiSet<X> add(X x);", "public void setMembers(Iterable<Integer> members) {\n\t\tthis.clear();\n\t\tfor (int member: members)\n\t\t\tthis.add(member);\n\t}", "public void addAll (SetADT<T> set);", "@Test\r\n\tpublic void testsetMembers() {\r\n\t\tSet<Person> persons1 = new HashSet<Person>();\r\n\t\tmeetingu...
[ "0.6827333", "0.6498397", "0.6481096", "0.6417484", "0.6317387", "0.63015485", "0.6250982", "0.6180775", "0.6145775", "0.61219895", "0.6113235", "0.59612095", "0.594061", "0.5868722", "0.5819405", "0.5813094", "0.5800168", "0.57186806", "0.57126987", "0.56740177", "0.5621623"...
0.5199407
69
Add one or more members to a set
public Boolean sadd(final String key, int ttl, final String... members) { Jedis jedis = null; try { jedis = jedisPool.getResource(); Boolean ret = jedis.sadd(key, members) == 1 ? true : false; if (ret && ttl > 0) { jedis.expire(key, ttl); }...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "MultiSet<X> add(X x);", "public void setMembers(Iterable<Integer> members) {\n\t\tthis.clear();\n\t\tfor (int member: members)\n\t\t\tthis.add(member);\n\t}", "public void addAll (SetADT<T> set);", "@Test\r\n\tpublic void testsetMembers() {\r\n\t\tSet<Person> persons1 = new HashSet<Person>();\r\n\t\tmeetingu...
[ "0.6827333", "0.6498397", "0.6481096", "0.6417484", "0.6317387", "0.63015485", "0.6250982", "0.6180775", "0.6145775", "0.61219895", "0.6113235", "0.59612095", "0.594061", "0.5868722", "0.5819405", "0.5813094", "0.5800168", "0.57186806", "0.57126987", "0.56740177", "0.5621623"...
0.0
-1
For Object, Add one or more members to a set
public Boolean sadd(final String key, final Object... members) { Jedis jedis = null; try { jedis = jedisPool.getResource(); byte[][] strings = new byte[members.length][]; for (int j = 0; j < members.length; j++) { strings[j] = toJsonByteArray(members[j...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "MultiSet<X> add(X x);", "public void addAll (SetADT<T> set);", "public synchronized void addObject(E obj) {\n\t\twrappedSet.add((E) obj);\n\t}", "@Test\r\n\tpublic void testsetMembers() {\r\n\t\tSet<Person> persons1 = new HashSet<Person>();\r\n\t\tmeetingu1.setMembers(persons1);\r\n\t\tassertTrue(meetingu1.g...
[ "0.6515961", "0.62543833", "0.6209852", "0.60590774", "0.60090244", "0.5982857", "0.5884324", "0.57810104", "0.56824356", "0.56737477", "0.56262916", "0.5622616", "0.5604257", "0.556115", "0.55231875", "0.5515563", "0.5506386", "0.5479069", "0.5450822", "0.5430022", "0.541332...
0.0
-1
Remove one or more members from a set
public Boolean srem(final String key, final String... members) { Jedis jedis = null; try { jedis = jedisPool.getResource(); return jedis.srem(key, members) >= 1 ? true : false; } finally { if (jedis != null) { jedis.close(); } ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected abstract Set<String> _removeFromSet(String key, Collection<String> str);", "Set<Card> remove();", "@Test\n\tpublic void testRemoveAll() {\n\t\tSet<Integer> setA = new HashSet<>(Arrays.asList(1, 2, 3, 4, 5));\n\t\tSet<Integer> setB = new HashSet<>(Arrays.asList(9, 8, 7, 6, 5, 4, 3));\n\t\tsetA.removeA...
[ "0.70625705", "0.69783586", "0.68379253", "0.66834474", "0.6669326", "0.6586468", "0.6442865", "0.6433356", "0.6331026", "0.6315058", "0.6307155", "0.6285205", "0.6269463", "0.6265714", "0.61993617", "0.61632955", "0.6088193", "0.6085136", "0.6085136", "0.6085136", "0.6085136...
0.0
-1
For Object, Remove one or more members from a set
public Boolean srem(final String key, final Object... members) { Jedis jedis = null; try { jedis = jedisPool.getResource(); byte[][] strings = new byte[members.length][]; for (int j = 0; j < members.length; j++) { strings[j] = toJsonByteArray(members[j...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "Set<Card> remove();", "protected abstract Set<String> _removeFromSet(String key, Collection<String> str);", "public void removeByObject()\r\n\t{\n\t}", "public void test5() {\n\t\tSet<String> keySet = member.keySet();\n\t\tfor(String key : keySet) {\n\t\t\tif(key ==\"leess\") {\n\t\t\t\tmember.remove(key);\n...
[ "0.6930484", "0.6570142", "0.641135", "0.6359619", "0.63550234", "0.63547593", "0.6338791", "0.63303655", "0.63122016", "0.62823", "0.62644017", "0.6230843", "0.61436546", "0.6132662", "0.6109748", "0.6108224", "0.6033707", "0.59963006", "0.5954215", "0.59494454", "0.59331757...
0.0
-1
Get all the members in a set.
public Set<String> smembers(final String key) { Jedis jedis = null; try { jedis = jedisPool.getResource(); return jedis.smembers(key); } finally { if (jedis != null) { jedis.close(); } } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Set<TopLevel> getMembers() {\n\t\tSet<TopLevel> result = new HashSet<>();\n\t\tfor (URI memberURI : members) {\n\t\t\tTopLevel member = this.getSBOLDocument().getTopLevel(memberURI);\n\t\t\tif(member != null) {\n\t\t\t\tresult.add(member);\n\t\t\t}\n\t\t}\n\t\treturn result;\n\t}", "public Set<TCSObjectRe...
[ "0.6601356", "0.65674376", "0.6449139", "0.6419262", "0.6352597", "0.6201932", "0.61442876", "0.6067814", "0.6058212", "0.5993212", "0.59842616", "0.59658015", "0.59433293", "0.59367913", "0.59326124", "0.58515227", "0.5846357", "0.5846119", "0.58300894", "0.58068085", "0.580...
0.5741825
26
For Object, Get all the members in a set.
public <T> Set<T> smembers(final String key, Class<T> clazz) { Jedis jedis = null; try { jedis = jedisPool.getResource(); Set<byte[]> tempSet = jedis.smembers(key.getBytes()); if (tempSet != null && tempSet.size() > 0) { TreeSet<T> result = new TreeSet...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Set<TCSObjectReference<?>> getMembers() {\n return Collections.unmodifiableSet(members);\n }", "public Collection members() {\n return this.<Collection>get(\"members\");\n }", "private Collection<MetaMember> getAllMetaMembers() throws XavaException { \n\t\tif (!hasSections()) return getMetaMemb...
[ "0.66863686", "0.62170315", "0.62000775", "0.6145792", "0.6022823", "0.5983797", "0.59827685", "0.58856916", "0.5682626", "0.56735957", "0.5653073", "0.5633041", "0.55643237", "0.55595595", "0.5544895", "0.55252355", "0.55238426", "0.55167335", "0.5487659", "0.54874027", "0.5...
0.0
-1
Get all the members is number in a set.
public Long scard(final String key) { Jedis jedis = null; try { jedis = jedisPool.getResource(); return jedis.scard(key); } finally { if (jedis != null) { jedis.close(); } } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected IntHashSet getMemberHashSet() {\n\t\treturn memberHashSet;\n\t}", "public static ImmutableSet<Integer> getIds(){\n\t\t\treturn m_namesMap.rightSet();\n\t\t}", "public void hashSet() {\n\n Set<Integer> num = new java.util.HashSet<>();\n\n num.add(3);\n num.add(11);\n num.a...
[ "0.629769", "0.6200984", "0.61720043", "0.60197055", "0.5952403", "0.58892757", "0.58478296", "0.5736357", "0.5723275", "0.5723075", "0.57227844", "0.56781477", "0.5619502", "0.5596238", "0.558638", "0.5584796", "0.557031", "0.5564754", "0.555268", "0.5541351", "0.55288446", ...
0.0
-1
true if the meber exists in a set,else false
public Boolean sismember(final String key, final String member) { Jedis jedis = null; try { jedis = jedisPool.getResource(); Boolean sismember = jedis.sismember(key, member); return sismember; } finally { if (jedis != null) { jedis....
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "boolean hasSharedSet();", "@Override\r\n\tpublic boolean contains(Object o) {\n\t\treturn set.contains(o);\r\n\t}", "boolean isCustomiseSet();", "public boolean contains(SeqItemset set)\n\t{\n\t\tif (m_size<set.m_size) return false;\n\t\tint ind = 0;\n\t\tint i = 0;\n\t\twhile ((i<set.m_size) && (-1!=ind))\n...
[ "0.7541908", "0.72439516", "0.7155318", "0.7127615", "0.6996807", "0.692613", "0.68894917", "0.6859929", "0.68596846", "0.6846802", "0.67746955", "0.66294384", "0.65812665", "0.6558697", "0.6538828", "0.6536307", "0.65208364", "0.65198624", "0.647738", "0.64526314", "0.644899...
0.0
-1
Set the string value of a hash field
public Boolean hset(final String key, final String field, final String value) { return hset(key, field, value, 0); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void setHashData(java.lang.String hashData);", "public void setHashValue(String hashValue) {\n this.hashValue = hashValue;\n }", "public void setHash(String hash)\n {\n this.hash = hash;\n }", "public void setHash(String hash) {\n this.hash = hash;\n }", "public void setHash(Stri...
[ "0.7508004", "0.67680186", "0.6664685", "0.66595113", "0.649894", "0.649894", "0.649894", "0.64018905", "0.638299", "0.6263438", "0.62601006", "0.625171", "0.62089896", "0.620769", "0.620769", "0.6068865", "0.5950678", "0.59264", "0.59094685", "0.5899294", "0.58239144", "0....
0.0
-1
Set the string value of a hash field
public Boolean hset(final String key, final String field, final String value, final int ttl) { Jedis jedis = null; try { jedis = jedisPool.getResource(); Long reply = jedis.hset(key, field, value); if (ttl > 0) { jedis.expire(key, ttl); } ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void setHashData(java.lang.String hashData);", "public void setHashValue(String hashValue) {\n this.hashValue = hashValue;\n }", "public void setHash(String hash)\n {\n this.hash = hash;\n }", "public void setHash(String hash) {\n this.hash = hash;\n }", "public void setHash(Stri...
[ "0.7508004", "0.67680186", "0.6664685", "0.66595113", "0.649894", "0.649894", "0.649894", "0.64018905", "0.638299", "0.6263438", "0.62601006", "0.625171", "0.62089896", "0.620769", "0.620769", "0.6068865", "0.5950678", "0.59264", "0.59094685", "0.5899294", "0.58239144", "0....
0.0
-1
Set the Object value of a hash field
public Boolean hset(final String key, final String field, final Object value) { return hset(key, field, value, 0); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void setHashData(java.lang.String hashData);", "void setValue(Object object, Object value);", "public void setHashCode(int hashCode){\n\n }", "public void setHashValue(String hashValue) {\n this.hashValue = hashValue;\n }", "public void setHash(int position, long hash) {\n tree.setHash(posi...
[ "0.6571452", "0.6385196", "0.6343298", "0.6202947", "0.6198334", "0.61192614", "0.61165226", "0.61154956", "0.61111665", "0.6097721", "0.6052141", "0.60273296", "0.6026817", "0.59937143", "0.5990659", "0.5990575", "0.5990575", "0.59786", "0.59786", "0.59786", "0.59182125", ...
0.53424346
60
Set the Object value of a hash field
public Boolean hset(final String key, final String field, final Object value, final int ttl) { Jedis jedis = null; try { jedis = jedisPool.getResource(); Long reply = jedis.hset(key.getBytes(), field.getBytes(), toJsonByteArray(value)); if (ttl > 0) { ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void setHashData(java.lang.String hashData);", "void setValue(Object object, Object value);", "public void setHashCode(int hashCode){\n\n }", "public void setHashValue(String hashValue) {\n this.hashValue = hashValue;\n }", "public void setHash(int position, long hash) {\n tree.setHash(posi...
[ "0.6571627", "0.63848335", "0.6344135", "0.62021244", "0.6198001", "0.6118132", "0.6115868", "0.6115", "0.61104625", "0.60972023", "0.6051433", "0.6027789", "0.6026913", "0.5992349", "0.59902936", "0.5990034", "0.5990034", "0.5977836", "0.5977836", "0.5977836", "0.5917363", ...
0.0
-1
Get the value of a hash field
public String hget(final String key, final String field) { return hget(key, field, 0); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String getHashValue() {\n\t\tif(hash == null || hash.equals(\"\")){\n\t\t\tthis.calculateHashValue();\n\t\t}\n\t\treturn hash;\n\t}", "public String getHashValue() {\n return hashValue;\n }", "java.lang.String getHashData();", "String getHash();", "String getHash();", "public String getH...
[ "0.70359194", "0.70285374", "0.656782", "0.6520849", "0.6520849", "0.63962024", "0.6331646", "0.6321076", "0.6321076", "0.6315504", "0.6279852", "0.62553465", "0.6248257", "0.62475395", "0.62475395", "0.62475395", "0.6158692", "0.6131891", "0.6107961", "0.6106436", "0.6085229...
0.61307734
18
Get the value of a hash field
public String hget(final String key, final String field, int ttl) { Jedis jedis = null; try { jedis = jedisPool.getResource(); String res = jedis.hget(key, field); if (ttl > 0) { jedis.expire(key, ttl); } return res; } f...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String getHashValue() {\n\t\tif(hash == null || hash.equals(\"\")){\n\t\t\tthis.calculateHashValue();\n\t\t}\n\t\treturn hash;\n\t}", "public String getHashValue() {\n return hashValue;\n }", "java.lang.String getHashData();", "String getHash();", "String getHash();", "public String getH...
[ "0.70359194", "0.70285374", "0.656782", "0.6520849", "0.6520849", "0.63962024", "0.6331646", "0.6321076", "0.6321076", "0.6315504", "0.6279852", "0.62553465", "0.6248257", "0.62475395", "0.62475395", "0.62475395", "0.6158692", "0.6131891", "0.61307734", "0.6107961", "0.610643...
0.0
-1
Get the value of a hash field
public <T> T hget(final String key, final String field, final Class<T> clazz) { return hget(key, field, clazz, 0); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String getHashValue() {\n\t\tif(hash == null || hash.equals(\"\")){\n\t\t\tthis.calculateHashValue();\n\t\t}\n\t\treturn hash;\n\t}", "public String getHashValue() {\n return hashValue;\n }", "java.lang.String getHashData();", "String getHash();", "String getHash();", "public String getH...
[ "0.7036032", "0.70289314", "0.65687203", "0.65213543", "0.65213543", "0.6397076", "0.6332352", "0.63223726", "0.63223726", "0.63162947", "0.62808746", "0.62556875", "0.624902", "0.62484145", "0.62484145", "0.62484145", "0.6159573", "0.6132824", "0.6129125", "0.6108347", "0.61...
0.0
-1
Get the value of a hash field
public <T> T hget(final String key, final String field, final Class<T> clazz, final int ttl) { Jedis jedis = null; try { jedis = jedisPool.getResource(); T res = fromJsonByteArray(jedis.hget(key.getBytes(), field.getBytes()), clazz); if (ttl > 0) { exp...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String getHashValue() {\n\t\tif(hash == null || hash.equals(\"\")){\n\t\t\tthis.calculateHashValue();\n\t\t}\n\t\treturn hash;\n\t}", "public String getHashValue() {\n return hashValue;\n }", "java.lang.String getHashData();", "String getHash();", "String getHash();", "public String getH...
[ "0.70359194", "0.70285374", "0.656782", "0.6520849", "0.6520849", "0.63962024", "0.6331646", "0.6321076", "0.6321076", "0.6315504", "0.6279852", "0.62553465", "0.6248257", "0.62475395", "0.62475395", "0.62475395", "0.6158692", "0.6131891", "0.61307734", "0.6107961", "0.610643...
0.0
-1
Delete one or more hash fields
public Boolean hdel(final String key, final String... fields) { Jedis jedis = null; try { jedis = jedisPool.getResource(); return jedis.hdel(key, fields) == 1 ? true : false; } finally { if (jedis != null) { jedis.close(); } ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "int deleteByPrimaryKey(String hash);", "@Override\r\n\tpublic void delete( UserFields fields ) {\n\t\t\r\n\t}", "@Override\n\tpublic void deleteHashFile(boardDTO board) throws Exception {\n\t\tsqlSession.delete(namespace+\".deleteFile\",board);\n\t\tsqlSession.delete(namespace+\".deleteHashtag\",board);\n\t\ts...
[ "0.67826563", "0.67228246", "0.6225902", "0.6093341", "0.60658056", "0.58925825", "0.5879433", "0.58659667", "0.5863779", "0.5829521", "0.58228743", "0.5809384", "0.58040535", "0.5777467", "0.5768044", "0.57470006", "0.57456565", "0.57417357", "0.5722702", "0.5706079", "0.568...
0.5301509
64
Check if a hash field exists
public Boolean hexists(final String key, final String field) { Jedis jedis = null; try { jedis = jedisPool.getResource(); return jedis.hexists(key, field); } finally { if (jedis != null) { jedis.close(); } } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "boolean hasHash();", "public boolean hasHash() {\n return ((bitField0_ & 0x00000001) == 0x00000001);\n }", "public boolean hasHash() {\n return ((bitField0_ & 0x00000001) == 0x00000001);\n }", "boolean containsField(\n java.lang.String key);", "boolean hasField0();", "public ...
[ "0.7274283", "0.6749659", "0.6727143", "0.63894045", "0.63455844", "0.63289", "0.62874895", "0.6273489", "0.6222439", "0.619466", "0.6183352", "0.6168266", "0.6079086", "0.60412365", "0.5987453", "0.598071", "0.5968058", "0.59233737", "0.5867461", "0.5852553", "0.5816887", ...
0.6073603
13
Get the values of all the given hash fields.
public List<String> hmget(final String key, final String... fields) { Jedis jedis = null; try { jedis = jedisPool.getResource(); return jedis.hmget(key, fields); } finally { if (jedis != null) { jedis.close(); } } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "List<Pair<String, Value>> fields();", "public static Hashtable getAllFieldsValuesEx(Object object)\r\n\t\t\tthrows Exception {\r\n\t\tHashtable hashtable = new Hashtable();\r\n\t\tClass classType = object.getClass();\r\n\t\tField fields[] = ReflectUtil.getAllFields(classType);\r\n\t\tfor (int i = 0; i < fields.l...
[ "0.64814544", "0.5733281", "0.5697765", "0.5682022", "0.5663848", "0.55861133", "0.55706704", "0.5568777", "0.5505179", "0.5489367", "0.5487144", "0.54832685", "0.542164", "0.54135185", "0.5385603", "0.5366502", "0.53468937", "0.531421", "0.5311169", "0.52964985", "0.528062",...
0.53950053
14
Get the value of a mulit fields
public Map<String, Object> hmgetObject(final String key, final int ttl, final String... fields) { Jedis jedis = null; try { if (null == fields) { return null; } jedis = jedisPool.getResource(); List<byte[]> byteList = new ArrayList<byte[]>(...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "abstract public String getValue(String fieldname);", "String getField();", "java.lang.String getField1015();", "java.lang.String getField4();", "java.lang.String getField1333();", "java.lang.String getField1111();", "java.lang.String getField1120();", "java.lang.String getField1032();", "java.lang....
[ "0.6807303", "0.6675708", "0.6496562", "0.6392162", "0.6374816", "0.6330768", "0.6311659", "0.6307924", "0.62837875", "0.62500995", "0.6242279", "0.62393135", "0.62387216", "0.6227319", "0.6223509", "0.6222105", "0.6221713", "0.621618", "0.6214503", "0.62117463", "0.6211014",...
0.0
-1