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
Removes a keycode used to invoke this Action.
public final void removeKeyCode(int keyCode) { mKeyCodes.remove(keyCode); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void unsetKeyBox();", "public X unregisterAction(KeyStroke aKeyStroke) {\n component.unregisterKeyboardAction(aKeyStroke);\n return (X) this;\n }", "public Action remove(Object key) {\n\t\treturn removeAction(key);\n\t}", "public void removeKey() {\n \tthis.key =null;\n \tdungeon.keyLe...
[ "0.6804547", "0.64474505", "0.6409575", "0.6355756", "0.61752665", "0.5928983", "0.587623", "0.5795397", "0.5793737", "0.5697893", "0.5695954", "0.56937426", "0.56887996", "0.5669564", "0.5657216", "0.5657149", "0.5644669", "0.56312084", "0.5606015", "0.56039864", "0.56005794...
0.6042321
5
Returns true if the Action should respond to the given keycode.
public final boolean respondsToKeyCode(int keyCode) { return mKeyCodes.contains(keyCode); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public boolean keyInput(int code, int action);", "public boolean isKeyPressed (int keycode) {\n\t\treturn glfwGetKey(window, keycode) == GLFW_PRESS;\n\t}", "public boolean isKeyTriggered ( @NotNull final KeyEvent event )\n {\n return keyCode != null && event.getKeyCode () == keyCode;\n }", "publ...
[ "0.68710464", "0.6635562", "0.647663", "0.6475704", "0.6411789", "0.63864017", "0.63477445", "0.63395214", "0.63354814", "0.62207955", "0.61796105", "0.61365914", "0.61156434", "0.60998535", "0.6070462", "0.6051995", "0.6051995", "0.59891915", "0.59670156", "0.5922639", "0.59...
0.6784984
1
Tests the external sort using an inmemory sort. Relies on default memory settings to be large enough to do the inmemory sort (there is, unfortunately, no way to doublecheck that no spilling was done.) This must be checked manually by setting a breakpoint in the inmemory sort routine.
@Test public void mergeSortWithSv2() throws Exception { ClusterFixtureBuilder builder = ClusterFixture.builder(dirTestWatcher); try (ClusterFixture cluster = builder.build(); ClientFixture client = cluster.clientFixture()) { List<QueryDataBatch> results = client.queryBuilder().physicalResource("xsort/one_key_sort_descending_sv2.json").results(); assertEquals(500_000, client.countResults(results)); validateResults(client.allocator(), results); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\t\tpublic void run() {\n\t\t\tfor (int i = 0; i < 1000000; i++) {\n\t\t\t\tint[] a = Util.generateRandomArray(500, 200000);\n\t\t\t\tint[] b = a.clone();\n\t\t\t\t\n\t\t\t\ta = sort(a);\n\t\t\t\tArrays.sort(b);\n\t\t\t\t\n\t\t\t\tfor (int j = 0; j < b.length; j++) {\n\t\t\t\t\tUtil.Assert(a[j] == b[j],...
[ "0.6451569", "0.6451186", "0.6434697", "0.63954526", "0.63271433", "0.61290073", "0.6054533", "0.6030589", "0.60018283", "0.5977125", "0.59744966", "0.5943338", "0.59383225", "0.5937887", "0.59336823", "0.5918749", "0.58413607", "0.58304596", "0.58211106", "0.58206534", "0.58...
0.0
-1
Get cities of specific state
public List<City> getCityList(State state);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public List<String> getCity(String state) {\n\t\tSet set=new HashSet();\n\t\tList ls=new LinkedList();\n\t\tStatement statement=null;\n\t\tResultSet rs=null;\n\t\tString engineName=\"\";\n\t\ttry {\n\t\t\tstatement = connection.createStatement();\n\t\t\trs = statement.executeQuery(\"select VALUE from config_master...
[ "0.7381838", "0.73241353", "0.7094272", "0.68513095", "0.67794454", "0.67395073", "0.67227626", "0.6702872", "0.66402966", "0.6636139", "0.66257703", "0.66183215", "0.6586347", "0.6493056", "0.64627844", "0.6437127", "0.6433407", "0.6352454", "0.6349191", "0.6343307", "0.6333...
0.8225904
0
Activity running with "no history" set, so it is safe to set flag to false here. It needs to be set ASAP to handle corner case where activity is dismissed just before the server responds.
@Override protected void onPause() { isRunning = false; super.onPause(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected void noActiveActivity() {\n\t\tLog.i(STARTUP, \"no active activity\");\n\t\tcancelNotification();\n\t\tcreateNotification();\n\t\tstartMainService();\t\t\n\t}", "public boolean interceptStartActivityIfNeed(Intent intet, ActivityOptions activityOptions) {\n return false;\n }", "public void s...
[ "0.60271496", "0.6001253", "0.5959677", "0.59260136", "0.5683548", "0.56815034", "0.56713414", "0.56203026", "0.5534951", "0.55342203", "0.55212396", "0.55200535", "0.55133605", "0.5502057", "0.5497774", "0.54750514", "0.54646945", "0.5461784", "0.5449708", "0.5442472", "0.54...
0.57881236
4
TODO Autogenerated method stub
@Override public List<User> getList(Integer page, Integer Limit) { return null; }
{ "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
firebase thing starts here
private void setupFirebaseAuth(){ Log.d(TAG, "setupFirebaseAuth"); mAuth = FirebaseAuth.getInstance(); fbaseDB = FirebaseDatabase.getInstance(); dbRef = fbaseDB.getReference(); mAuthListener = new FirebaseAuth.AuthStateListener() { @Override public void onAuthStateChanged(@NonNull FirebaseAuth firebaseAuth) { FirebaseUser user = firebaseAuth.getCurrentUser(); if(user != null){ //somebody signed in Log.d(TAG, "onAuthStateChanged:signed_in" + user.getUid()); dbRef.addListenerForSingleValueEvent( new ValueEventListener() { @Override public void onDataChange(DataSnapshot dataSnapshot) { if(checkUsernamExists(username.getText().toString(), dataSnapshot)){ Toast.makeText(SignUp.this,"Signup SUCCESSFUL",Toast.LENGTH_SHORT).show(); } else{ mAuth.signOut(); } } @Override public void onCancelled(DatabaseError databaseError) { } } ); } else{ //nobodys here Log.d(TAG, "onAuthStateChanged:signed_out"); } } }; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void iniciarFirebase(){\n FirebaseApp.initializeApp(getApplicationContext());\n firebaseDatabase = FirebaseDatabase.getInstance();\n databaseReference = firebaseDatabase.getReference();\n }", "private void initFirebase() {\n //инициализируем наше приложение для Firebase сог...
[ "0.69485694", "0.6731765", "0.66987646", "0.667082", "0.6618754", "0.65781856", "0.65067977", "0.6272404", "0.6201946", "0.6196614", "0.61959815", "0.61948174", "0.6180015", "0.61012065", "0.6090386", "0.6090386", "0.6090386", "0.6090386", "0.6090234", "0.6085564", "0.6075359...
0.5693399
36
firebase thing end here
private void userRegister(){ String Email = email.getText().toString().trim(); String Username = username.getText().toString().trim(); String Password = password.getText().toString().trim(); if(TextUtils.isEmpty(Email)){ Toast.makeText(this,"Please Enter Email ID",Toast.LENGTH_SHORT).show(); return; } if(TextUtils.isEmpty(Username)){ Toast.makeText(this,"Please Enter Username",Toast.LENGTH_SHORT).show(); return; } if(TextUtils.isEmpty(Password)){ Toast.makeText(this,"Please Enter Password",Toast.LENGTH_SHORT).show(); return; } progressDialog.setMessage("Registering User...."); progressDialog.show(); mAuth.createUserWithEmailAndPassword(Email,Password) .addOnCompleteListener(this, new OnCompleteListener<AuthResult>() { @Override public void onComplete(@NonNull Task<AuthResult> task) { if (task.isSuccessful()) { Toast.makeText(SignUp.this,"Registered Successfully",Toast.LENGTH_SHORT).show(); // startActivity(new Intent(getApplicationContext(),LogIn.class)); // finish(); } else{ return; } } }); User user = new User(mAuth.getCurrentUser().getUid(), 1, Email, Username); dbRef.child("users") .child(mAuth.getCurrentUser().getUid()) .setValue(user); UserAccountSetting settings = new UserAccountSetting( "", "", 0, 0, 0, "", Username); dbRef.child("user_account_setting").child(mAuth.getCurrentUser().getUid()).setValue(settings); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void iniciarFirebase(){\n FirebaseApp.initializeApp(getApplicationContext());\n firebaseDatabase = FirebaseDatabase.getInstance();\n databaseReference = firebaseDatabase.getReference();\n }", "private void sendGuideRegDataToFireBase(){\n }", "private FirebaseUtil(){}", "@Ov...
[ "0.6746302", "0.6657219", "0.654424", "0.64801586", "0.647904", "0.64287347", "0.6427091", "0.6418603", "0.63724357", "0.63724357", "0.63724357", "0.63724357", "0.6354189", "0.63388413", "0.6300723", "0.63004", "0.6299575", "0.6076149", "0.59976995", "0.5990416", "0.59749603"...
0.0
-1
System.setProperty("java.awt.headless","true"); ConfigFile.init(); String pw = "Escherichia_coli_K12/superpathway_of_threonine_metabolism"; / final String pw = "Escherichia_coli_K12/b"; final String graphFile = pw + ".grp"; viz = GraphVisHandler.getImageByType(System.getProperty("user.dir") + "/..", graphFile, true, pw, 400, 400, CommonDef.ISMAPPING); / final String pw = "Escherichia_coli_K12/b1"; final String graphFile = pw + ".grp"; viz = GraphVisHandler.getImageByType(System.getProperty("user.dir") + "/..", graphFile, true, pw, 400, 400, CommonDef.ISPATTERN);
public static JSplitPane buildContentPane() { final String pw = "Escherichia_coli_K12/superpathway_of_leucine-_valine-_and_isoleucine_biosynthesis";//b3"; final String graphFile = pw + ".grp"; viz = GraphVisHandler.getImageByType(System.getProperty("user.dir") + "/..", graphFile, true, pw, 400, 400, CommonDef.ISTEXT); //JFrame frame = new JFrame("Graph Visualization"); //main display controls viz.setSize(400,400); viz.pan(5, 5); viz.addControlListener(new DragControl()); viz.addControlListener(new PanControl()); viz.addControlListener(new ZoomControl()); viz.addControlListener(new WheelZoomControl()); viz.addControlListener(new ZoomToFitControl()); //frame.getContentPane().add(viz); // create a new JSplitPane to present the interface JPanel fpanel = new JPanel(); JButton saveButton = new JButton(CommonDef.SAVE, CommonDef.createImageIcon("b1.gif", CommonDef.SAVE)); saveButton.setPressedIcon(CommonDef.createImageIcon("b1d.gif", CommonDef.SAVE)); saveButton.setRolloverIcon(CommonDef.createImageIcon("b1d.gif", CommonDef.SAVE)); saveButton.setDisabledIcon(CommonDef.createImageIcon("b1.gif", CommonDef.SAVE)); saveButton.setMargin(new Insets(0,0,0,0)); saveButton.addActionListener(new ActionListener(){ public void actionPerformed(ActionEvent arg0) { // TODO Auto-generated method stub GraphVisHandler.saveImageByType(viz, System.getProperty("user.dir") + "/..", graphFile, true, pw, 400, 400, CommonDef.ISMAPPING); System.out.println("---------"); //Upload } }); fpanel.add(saveButton); JPanel fpane2 = new JPanel(); fpane2.add(new JButton("Try")); JSplitPane split = new JSplitPane(JSplitPane.VERTICAL_SPLIT, viz, fpanel); split.setOneTouchExpandable(true); split.setContinuousLayout(false); split.setDividerLocation(400); // now we run our action list viz.getVisualization().run("draw"); //frame.getContentPane().add(split); //frame.setSize(viz.getWidth()+10,viz.getHeight()+160); //frame.pack(); //frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE); //<-CQ ADD //frame.getContentPane().setLayout(new BoxLayout(frame.getContentPane(), BoxLayout.Y_AXIS)); // --> //frame.setVisible(true); return split; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static void graphTree(CommonTree tree){\n\t\tDOTTreeGenerator gen = new DOTTreeGenerator(); \n\t\tStringTemplate st = gen.toDOT(tree); \n\n\t\tString type = \"jpg\";\n\t\tGraphViz gv = new GraphViz();\n\t\tgv.addln(st.toString());\n\n\t\tSystem.out.println(\"Before\");\n\n\t\tImageIcon img = new ImageIcon(g...
[ "0.6277086", "0.59298575", "0.582656", "0.57764184", "0.5744915", "0.5735792", "0.5726212", "0.5726148", "0.5710671", "0.56604815", "0.5648916", "0.5633941", "0.5633694", "0.5588499", "0.55732", "0.5556085", "0.555213", "0.55509746", "0.5548842", "0.5528789", "0.55251974", ...
0.59345764
1
TODO Autogenerated method stub
public void actionPerformed(ActionEvent arg0) { GraphVisHandler.saveImageByType(viz, System.getProperty("user.dir") + "/..", graphFile, true, pw, 400, 400, CommonDef.ISMAPPING); System.out.println("---------"); //Upload }
{ "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 setApplicationContext(ApplicationContext applicationContext) throws BeansException { this.applicationContext = applicationContext; }
{ "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 initFlowRules(); loadRules();
@Override public void afterPropertiesSet() throws Exception { loadRules2(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\npublic void initRules(){\r\n\t\r\n}", "@Override\r\n protected void initializeRules(List<AbstractValidationCheck> rules) {\n\r\n }", "private void loadRules2() {\n\t\t\r\n\t\tint type = Integer.valueOf(env.getProperty(\"sentinel.server.type\")) ;\r\n\t\t\r\n String appId = \"sentinel-dem...
[ "0.68419904", "0.6802403", "0.6700146", "0.66220754", "0.6569806", "0.627001", "0.6224775", "0.6148449", "0.60894513", "0.60483474", "0.60075074", "0.5955839", "0.59498554", "0.5924517", "0.5916717", "0.5824446", "0.576085", "0.57229555", "0.569271", "0.567064", "0.5649081", ...
0.58407515
15
Set up basic information, only for demo purpose. You may adjust them based on your actual environment. For more information, please refer
private void loadRules2() { int type = Integer.valueOf(env.getProperty("sentinel.server.type")) ; String appId = "sentinel-demo"; String apolloMetaServerAddress = "http://10.1.77.106:8080"; System.setProperty("app.id", appId); System.setProperty("apollo.meta", apolloMetaServerAddress); String namespaceName = "application"; String flowRuleKey = "flowRules"; // It's better to provide a meaningful default value. String defaultFlowRules = "[]"; ReadableDataSource<String, List<FlowRule>> flowRuleDataSource = new ApolloDataSource<>(namespaceName, flowRuleKey, defaultFlowRules, source -> JSON.parseObject(source, new TypeReference<List<FlowRule>>() { })); FlowRuleManager.register2Property(flowRuleDataSource.getProperty()); ClusterFlowRuleManager.setPropertySupplier(namespace ->flowRuleDataSource.getProperty()); if (ClusterStateManager.CLUSTER_SERVER == type) { ClusterStateManager.applyState(ClusterStateManager.CLUSTER_SERVER); } else { ClusterStateManager.applyState(ClusterStateManager.CLUSTER_CLIENT); initClientConfigProperty(namespaceName); initClientServerAssignProperty(namespaceName); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setup() {\n }", "public void setup() {\r\n\r\n\t}", "public void setup() {\r\n\t\tthis.greet(\"Hello, my name is \" + this.name + \", this message is brought to you from the AI.java file under the greet method!\");\r\n\t\t//TODO ask for name\r\n\t\t// check if setup file exists and make sure...
[ "0.6883867", "0.6713654", "0.6612482", "0.6567675", "0.6553602", "0.64493144", "0.634836", "0.6329768", "0.6325873", "0.62953264", "0.6278008", "0.6269998", "0.6262769", "0.6245164", "0.62239665", "0.6200961", "0.61976635", "0.6190985", "0.61908513", "0.61900604", "0.61900604...
0.0
-1
Creates a new instance of MouthNotEmptyException
public MouthNotEmptyException(Hamster hamster) { super(hamster); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public NotEmptyException() {\n \tsuper(\"Object was occupied.\");\n }", "public EmptyException() {\n super();\n }", "public InvalidMembershipProofException() {\n super();\n }", "public NotEmptyException(String msg) {\n super(msg);\n }", "SpaceInvaderTest_test_UnNouveauVa...
[ "0.6475501", "0.58057857", "0.57284975", "0.5605687", "0.55252904", "0.54517025", "0.5396253", "0.53744984", "0.5374099", "0.53500104", "0.5309424", "0.52848846", "0.5111184", "0.5098066", "0.50574195", "0.5051171", "0.50355774", "0.503088", "0.50276464", "0.50008553", "0.499...
0.7412242
0
java.lang.ClassNotFoundException: Didn't find class "okhttp3.Interceptor.Chain" on path: DexPathList
private void hookLastInterceptor(final LoadPackageParam lp) { Log.i(TAG, "start hookLastInterceptor:" + lp.packageName); XposedHelpers.findAndHookMethod(Application.class, "attach", Context.class, new XC_MethodHook() { @Override protected void afterHookedMethod(MethodHookParam param) throws Throwable { final ClassLoader cl = ((Context) param.args[0]).getClassLoader(); try { cl.loadClass("okhttp3.internal.http.CallServerInterceptor"); cl.loadClass("okhttp3.Interceptor.Chain"); classInDexFound = true; realHookLastInterceptor(cl); } catch (Throwable e) { if (e instanceof ClassNotFoundException) { findHideDex(findDexListener); } else { e.printStackTrace(); } } } }); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private Dex2JarProxy() {\r\n\t}", "private static OkHttpClient getOkHttpClient() {\n OkHttpClient.Builder okHttpClientBuilder = new OkHttpClient.Builder()\n .addInterceptor(new Interceptor() {\n @Override\n public Response intercept(Chain chain) throws ...
[ "0.53350735", "0.51587546", "0.5151088", "0.5027592", "0.49386182", "0.49330923", "0.49239275", "0.48286596", "0.47702572", "0.47568625", "0.47356656", "0.47041863", "0.4703149", "0.46235093", "0.44826773", "0.44465432", "0.4417839", "0.43975192", "0.43777388", "0.43742204", ...
0.49287874
6
taking input using Scanner class
public static void main (String[] args) { Scanner sc = new Scanner(System.in); //taking count of total testcases int t = sc.nextInt(); while(t-->0) { //taking total count of elements int n=sc.nextInt(); //creating an array of size n int []arr=new int[n]; //adding elements to the array for(int i=0;i<n;i++) arr[i]=(sc.nextInt()); //calling the method sumUsingStreams //and printing results System.out.println(sumUsingStreams(arr)); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void inputScanner(){\n\t\t Scanner sc=new Scanner(System.in); \n\t \n\t\t System.out.println(\"Enter your rollno\"); \n\t\t int rollno=sc.nextInt(); \n\t\t System.out.println(\"Enter your name\"); \n\t\t String name=sc.next(); \n\t\t System.out.println(\"Enter your fee\"); \n\t\t doubl...
[ "0.72666794", "0.7260617", "0.69082665", "0.6770765", "0.67132956", "0.6695114", "0.66887337", "0.66863775", "0.6684505", "0.6645453", "0.6627389", "0.6617125", "0.660051", "0.65862167", "0.6572887", "0.65695107", "0.6466872", "0.64412695", "0.64167774", "0.641208", "0.640773...
0.0
-1
} Driver Code Ends User function Template for Java
public static int sumUsingStreams(int []arr) { //Your code here //using stream.sum() return Arrays.stream( arr) .sum(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static void generateCode()\n {\n \n }", "private static void showJava(String string) { TODO Auto-generated method stub\n\t//\n\t\n}", "@Override\n public void function()\n {\n }", "@Override\n public void function()\n {\n }...
[ "0.5924226", "0.5811945", "0.5700109", "0.5700109", "0.56417835", "0.5636858", "0.56322086", "0.56123304", "0.55981994", "0.55886185", "0.5583528", "0.55289567", "0.55206555", "0.5486175", "0.5486175", "0.546304", "0.5460764", "0.5458329", "0.54582024", "0.5452999", "0.544782...
0.0
-1
TODO Autogenerated method stub
public void deleteSuperMarket(int superMarketID) throws ServiceLayerException { boolean found = false; try { superMarkets = sdoa.getSuperMarket(); for (int i : superMarkets.keySet()) { SuperMarket superMarket = superMarkets.get(i); if (superMarket.getId() == superMarketID) { found = true; sdoa.deleteSuperMarket(superMarketID); } } if (!found) { throw new NoSuperMarketFoundException("Super market not found"); } } catch (DoaException e) { throw new ServiceLayerException(e); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExr...
[ "0.6671074", "0.6567672", "0.6523024", "0.6481211", "0.6477082", "0.64591026", "0.64127725", "0.63762105", "0.6276059", "0.6254286", "0.623686", "0.6223679", "0.6201336", "0.61950207", "0.61950207", "0.61922914", "0.6186996", "0.6173591", "0.61327106", "0.61285484", "0.608016...
0.0
-1
private UrlPathHelper urlPathHelper = new UrlPathHelper();
public PathPermissionAnnotationHandler() { super(RequiresPathPermission.class); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public UrlPathHelper getUrlPathHelper()\n/* */ {\n/* 544 */ return this.urlPathHelper;\n/* */ }", "private URLHelper() {\n\n }", "public void setUrlPathHelper(UrlPathHelper urlPathHelper)\n/* */ {\n/* 537 */ this.urlPathHelper = urlPathHelper;\n/* */ }", "privat...
[ "0.8330215", "0.8161543", "0.80742973", "0.683842", "0.6596164", "0.6581168", "0.6417462", "0.6339004", "0.62572825", "0.6039537", "0.6039463", "0.60335773", "0.6005628", "0.6005012", "0.59441847", "0.5937749", "0.59087455", "0.59029037", "0.5878362", "0.58370286", "0.5821664...
0.0
-1
Created by hujie on 2017/2/23.
public interface IUserInfoView extends BaseView { void showUserData(UserBean userBean); }
{ "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\n\tpublic void grabar() {\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\r...
[ "0.6212068", "0.608072", "0.5968371", "0.5947141", "0.592344", "0.592344", "0.58577657", "0.58274823", "0.581497", "0.58066446", "0.5768329", "0.57598937", "0.5741582", "0.5740211", "0.5724739", "0.57011044", "0.5695043", "0.5694335", "0.5691426", "0.56616944", "0.5660633", ...
0.0
-1
when character is clicked, it starts the display mode for that char
public void clickOnItem(TraceableItem li) { Intent intent = new Intent(); Bundle bun = new Bundle(); bun.putString("mode", "display"); bun.putLong("wordId", li.getId()); if (id != -1) { bun.putLong("collectionId", id); bun.putString("collectionName", collectionName); } intent.setClass(this, ViewWordActivity.class); intent.putExtras(bun); startActivity(intent); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void handle_mode_display() {\n\t\t\t\n\t\t}", "@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tString input = e.getActionCommand();\n\t\t\t\tif(start) {\n\t\t\t\t\tdisplay.setText(\"\");\n\t\t\t\t\tstart = false;\n\t\t\t\t}\n\t\t\t\tdisplay.setText(display.getText() + input);\n\t\t...
[ "0.69496465", "0.6766611", "0.64812994", "0.6276177", "0.6215001", "0.6171133", "0.6042331", "0.5987774", "0.59826666", "0.5977575", "0.59762734", "0.59685534", "0.59617186", "0.5948678", "0.59197146", "0.59195966", "0.591833", "0.5859471", "0.5849107", "0.58474416", "0.58445...
0.0
-1
private static HASH h;
Login() { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "int getHash();", "private static int initHash() {\n return 0x811c9DC5; // unsigned 2166136261\n }", "public abstract int getHash();", "String getHash();", "String getHash();", "public HASH256 getHash1(){return hash1;}", "public String getHash()\n {\n return hash;\n }", "static...
[ "0.72733474", "0.71287996", "0.7121944", "0.7013494", "0.7013494", "0.6970181", "0.6902682", "0.68744856", "0.6808079", "0.6805583", "0.67242986", "0.6696311", "0.6696311", "0.6696311", "0.66288656", "0.66188055", "0.6594026", "0.6588168", "0.65683246", "0.6539983", "0.653998...
0.0
-1
submit button on click
public void actionPerformed(ActionEvent e) { enter(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tbtnSubmit_click(e);\n\t\t\t}", "public void clickSubmitButton(){\n actionsWithOurElements.clickOnElement(buttonSubmit);\n }", "public void submit() {\n driver.findElement(SUBMIT_SELECTOR).click();\n }", "public static ...
[ "0.7507205", "0.74874413", "0.7436808", "0.741131", "0.7366153", "0.7361461", "0.7346034", "0.7255447", "0.7167728", "0.7146669", "0.7065884", "0.7005316", "0.69084406", "0.69036084", "0.68580985", "0.6850976", "0.6826884", "0.674373", "0.6733216", "0.667659", "0.6662048", ...
0.0
-1
submit button with enter key
public void keyPressed(KeyEvent e) { if (e.getKeyCode()==KeyEvent.VK_ENTER){ enter(); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected void enterPressed()\n\t{\n\t\t// Call the enter method if the enter key was pressed\n\t\tif (showCaret)\n\t\t\tonSubmit(text.getText().substring(0, text.getText().length() - 1));\n\t\telse onSubmit(text.getText());\n\t}", "@Override\n\t\t\tpublic void keyPressed(KeyEvent e) {\n\t\t\t\tif (e.getKeyCode(...
[ "0.75666296", "0.720012", "0.71931994", "0.70692074", "0.7034464", "0.6902397", "0.6725001", "0.6719167", "0.66960245", "0.6692586", "0.66872275", "0.6668724", "0.66431063", "0.6540511", "0.6539943", "0.6537688", "0.6528186", "0.65204865", "0.6503248", "0.6473062", "0.6471292...
0.69163144
5
statisfying abstract class, but do nothing
public void keyReleased(KeyEvent e) {}
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void noabstractone() {\n\t\tSystem.out.println(\"No Abstract\");\n\t}", "public abstract void abstractone();", "abstract void method();", "@Override\n protected void checkSubclass() {\n }", "@Override\n\tvoid methodAbstractAndSubclassIsAbstract() {\n\t\t\n\t}", "public boolean isAbstract()\n/* ...
[ "0.6956503", "0.6713159", "0.6699587", "0.6679031", "0.6662252", "0.6648032", "0.6591954", "0.6534211", "0.6534211", "0.6534211", "0.6534211", "0.6534211", "0.6534211", "0.6534211", "0.6534211", "0.6534211", "0.6534211", "0.6534211", "0.6534211", "0.6534211", "0.6534211", "...
0.0
-1
Forge only uses a single save handler so we need to always pass overworld's mapstorage here
@Inject(method = "getMapStorage", at = @At("HEAD"), cancellable = true) public void onGetMapStorage(CallbackInfoReturnable<MapStorage> cir) { if (!this.isRemote && (this.mapStorage == null || this.provider.getDimension() != 0)) { WorldServer overworld = DimensionManager.getWorld(0); if (overworld != null) { cir.setReturnValue(overworld.getMapStorage()); } } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void saveMap() {\n\r\n\t}", "public void saveMap(){\n dataBase.updateMap(level);\n }", "public static void save()\n\t{\n writeMap();\n\t}", "public void saveGame(){\n \tsaveOriginator.writeMap(this.map, this.getObjectives(), this.gameState);\n \tsaveGame.saveGame(...
[ "0.7360972", "0.71536386", "0.70222825", "0.68756175", "0.6875015", "0.6694882", "0.66211164", "0.6508909", "0.62497723", "0.61551666", "0.61174226", "0.61070406", "0.60969925", "0.60962665", "0.606317", "0.60544646", "0.6045686", "0.6003954", "0.5972994", "0.5970256", "0.597...
0.59088814
27
TODO Autogenerated method stub
@Override public Boolean validate(CiMiniServerForm f) { return null; }
{ "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
Creates a new operation.
public Operation(int maxLocals, String name) { this.maxLocals = maxLocals; this.name = name; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "Operation createOperation();", "Operation createOperation();", "Operations createOperations();", "IOperationable create(String operationType);", "public Command createOperationCommand(int operator, Operand operand1, Operand operand2);", "public Operation() {\n super();\n }", "public Operation...
[ "0.85955054", "0.85955054", "0.76373124", "0.738777", "0.72509366", "0.7229837", "0.7156169", "0.706473", "0.6929162", "0.6893504", "0.68782717", "0.6818752", "0.66704154", "0.6655891", "0.66124004", "0.6594447", "0.6475579", "0.64327145", "0.6324789", "0.62806004", "0.625039...
0.0
-1
Returns the line at the specified number.
public String resolveLineNumber(int l) { return null; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String getLine(int lineNumber) {\n if (list.size()>lineNumber)\n return list.get(lineNumber);\n else\n return null; // Requested line number outside range\n }", "public int getLine() {\n return lineNum;\n }", "public abstract String getLine(int lineNumber);"...
[ "0.7495594", "0.716491", "0.7016704", "0.69691926", "0.6846907", "0.68322235", "0.68286604", "0.68229806", "0.6748261", "0.67435277", "0.67210364", "0.6714573", "0.6683066", "0.6669633", "0.66651803", "0.6665062", "0.6659817", "0.66453934", "0.6628841", "0.65741086", "0.65646...
0.5738244
97
Resolves a variable name by its slot number and its index.
public String resolveVariableName(int slot, int l) { return null; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Variable getVariable(String name);", "Symbol resolve(String name);", "public Value lookup (String name){\n Closure exist = find_var(name);\n return exist.getValues().get(name);\n }", "Variable resolve(String name) {\n Scope scope = this;\n while (scope != null) {...
[ "0.6456083", "0.64372575", "0.6225728", "0.61061627", "0.59931165", "0.5978255", "0.59638447", "0.574638", "0.56211615", "0.5614652", "0.5608587", "0.55949014", "0.5578441", "0.5569954", "0.55681455", "0.5538755", "0.5534204", "0.5513483", "0.5499342", "0.549473", "0.5480161"...
0.7226413
0
TODO Autogenerated method stub
@Override protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { this.doPost(request, response); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExr...
[ "0.6671074", "0.6567672", "0.6523024", "0.6481211", "0.6477082", "0.64591026", "0.64127725", "0.63762105", "0.6276059", "0.6254286", "0.623686", "0.6223679", "0.6201336", "0.61950207", "0.61950207", "0.61922914", "0.6186996", "0.6173591", "0.61327106", "0.61285484", "0.608016...
0.0
-1
This should be unique and internal, so .... not sure why it would ever need to be set.
public void setKey(String nkey) { setAttribute("id", nkey); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected int getUniqueID() {\n\t\treturn uniqueID;\n\t}", "public String getUniqueID ( ) { return _uniqueID; }", "public void setInternalId()\n {\n // generate a unique id that will be used for the internal id:\n UUID uuid = UUID.randomUUID();\n this.internalId = uuid.toString();\n ...
[ "0.62025416", "0.6177366", "0.61066383", "0.59774506", "0.59725213", "0.5960342", "0.5883741", "0.58481723", "0.57786465", "0.5757787", "0.5751933", "0.573561", "0.57127076", "0.57096183", "0.5705842", "0.56964576", "0.56876457", "0.56827235", "0.56692547", "0.5639915", "0.56...
0.0
-1
The key is a unique identifier on this server for a particular user. Never forget that this is NOT a global identifier that is useful on any other server. The email address, and open id, are global identifiers that can be transferred across servers, but the KEY is a key only on this server.
public String getKey() { return getAttribute("id"); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String getUserKey()\r\n {\r\n return getAttribute(\"userkey\");\r\n }", "java.lang.String getClientKey();", "public interface Key {\n\n String SHARE_KEY = \"userIndo\";//用户信息\n String SHARE_USER_ID = \"userId\";//用户账号\n\n}", "public int getUserKey() {\r\n\t\tif(email!=null&&password...
[ "0.7066592", "0.69811165", "0.6702109", "0.66432667", "0.650402", "0.6471361", "0.6471361", "0.646759", "0.6442484", "0.6442484", "0.64055103", "0.64055103", "0.64055103", "0.64055103", "0.6353955", "0.6351593", "0.6294877", "0.6294877", "0.62747705", "0.62747705", "0.6274770...
0.5906215
75
Gives this user the specified ID (either email or OpenId). Note: only do this when the ID have been verified as belonging to this user! This method will search for other users with that ID, and remove that id from those other users.
public void addId(String newId) throws Exception { DOMFace newIdRec = this.createChild("idrec", DOMFace.class); newIdRec.setAttribute("loginid", newId); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void removeUser(Long id);", "@Override\n\tpublic User getUserById(int id) {\n\t\treturn null;\n\t}", "@ApiMethod(name = \"removeUser\")\n\tpublic void removeUser(@Named(\"id\") Long id) {\n\t\tEntityManager mgr = getEntityManager();\n\t\ttry {\n\t\t\tUser user = mgr.find(User.class, id);\n\t\t\tmgr.remove(user...
[ "0.6784391", "0.65666324", "0.6563484", "0.6540719", "0.6527479", "0.65085715", "0.64001244", "0.63559365", "0.6313622", "0.62821656", "0.6246606", "0.62337476", "0.6227316", "0.62227917", "0.6196575", "0.6172461", "0.61646706", "0.61571884", "0.6134202", "0.61330384", "0.611...
0.0
-1
The license token is a randomly generated value that controls API access to the user's information. It is, so to speak, a password for use in the API. The user should be able to reset this token on demand, which then requires all userlicensed links to be refreshed. If you generate a new token, don't forget to save user profiles
public void setLicenseToken(String newLicTok) { setScalar("licensetoken", newLicTok); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public T generateLicense();", "public String generateAccessToken() {\n return accessTokenGenerator.generate().toString();\n }", "String generateUserRenewalToken(String username);", "public void setLicenseNumber( int license ) {\n\n licenseNumber = license;\n }", "private void requestToken(){\...
[ "0.5961474", "0.57628584", "0.5681143", "0.5649634", "0.5643916", "0.557444", "0.5573481", "0.5553363", "0.55470943", "0.55349", "0.5521401", "0.54966694", "0.54750437", "0.5451839", "0.5449293", "0.54455113", "0.5440989", "0.5440219", "0.5436016", "0.54261076", "0.54226583",...
0.60049415
0
Returns a vector of WatchRecord objects. Do not modify this vector externally, just read only.
public List<WatchRecord> getWatchList() throws Exception { List<WatchRecord> watchList = new Vector<WatchRecord>(); List<WatchRecordXML> chilluns = this.getChildren("watch", WatchRecordXML.class); for (WatchRecordXML wr : chilluns) { watchList.add(new WatchRecord(wr.getPageKey(), wr.getLastSeen())); } return watchList; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public final Record[] getRecords() {\n Record[] myRecords = new Record[records.size()];\n\n Iterator iterator = records.iterator();\n for (int i = 0; i < records.size(); i++) {\n myRecords[i] = (Record) iterator.next();\n }\n\n return myRecords;\n }", "public Virt...
[ "0.64948785", "0.64625335", "0.6203842", "0.6125305", "0.5937461", "0.5912316", "0.5864522", "0.583666", "0.5764396", "0.57268226", "0.5688524", "0.56432104", "0.55716866", "0.5567748", "0.5384129", "0.5364308", "0.5357275", "0.5356088", "0.53132373", "0.52708054", "0.5264081...
0.77059823
0
Create or update a watch on a page. the page key specifies the page. The long value is the time of "last seen" which will be used to determine if the page has changed since that time.
public void addWatch(String pageKey, long seenTime) throws Exception { DOMFace newSR = createChildWithID("watch", DOMFace.class, "pagekey", pageKey); newSR.setAttributeLong("lastseen",seenTime); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void updateLockedMetadata(String key, long value);", "private void addDoc(String path, SnapshotVersion readTime, String field, int value) {\n MutableDocument doc = doc(path, 10, map(field, value));\n remoteDocumentCache.add(doc, readTime);\n }", "public native static int ULTRALIGHT_LockPage(long hr ,lon...
[ "0.5128029", "0.49349114", "0.48655352", "0.48344487", "0.48057038", "0.47748587", "0.4676396", "0.46011296", "0.45766792", "0.4575946", "0.45755938", "0.45582852", "0.45508447", "0.454611", "0.4499775", "0.44921806", "0.44866943", "0.4468093", "0.4462702", "0.4461278", "0.44...
0.6841078
0
Returns a vector of keys of pages in the notify list Do not modify this vector externally, just read only.
public List<String> getNotificationList() throws Exception { ArrayList<String> cache = new ArrayList<String>(); for (DOMFace nr : getChildren("notification", DOMFace.class)) { cache.add(nr.getAttribute("pagekey")); } return cache; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "List<String> getKeys();", "public List<String> getKeys(){\n return Collections.unmodifiableList(keys);\n }", "public List<String> keys()\n {\n return new ArrayList<String>(keys);\n }", "public Vector keys() {\n Vector<K> temp = new Vector<>(3);\n for (int i=0;i<this.count...
[ "0.6525697", "0.63017446", "0.62888473", "0.62180245", "0.6145953", "0.61090165", "0.6106539", "0.60984206", "0.6009142", "0.5998317", "0.59941036", "0.59565276", "0.5935757", "0.5910767", "0.5888081", "0.5870258", "0.58532983", "0.5831808", "0.5789658", "0.5787123", "0.57725...
0.70439357
0
Create or update a notification on a page. the page key specifies the page. The long value is the time of "last seen" which will be used to determine if the page has changed since that time.
public void addNotification(String pageKey) throws Exception { createChildWithID("notification", DOMFace.class, "pagekey", pageKey); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void notifyPage(Webpage page, Weblink link);", "void updateLockedMetadata(String key, long value);", "@Override\n\tpublic Integer pubNotice(String id, String staticPage) {\n\t\tStringBuffer uptSql = new StringBuffer(\"update notice set status = 1,static_page = '\").append(staticPage)\n\t\t\t\t.append(\"...
[ "0.56146187", "0.5476548", "0.5320117", "0.5267711", "0.5109473", "0.5027144", "0.4913948", "0.48971534", "0.4852689", "0.48365223", "0.4776816", "0.47619525", "0.4740787", "0.4734493", "0.4721393", "0.4713439", "0.47032115", "0.46460387", "0.4625423", "0.46201572", "0.461250...
0.6319167
0
TODO convert to binary scan.
public int getLabel(int stateNum) { for (int i = 0; i < nodeOffsets.length; i++) { if (stateNum < nodeOffsets[i]) return i - 1; } return nodeOffsets.length - 1; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static void main(String[] args) {\r\n\r\n\t\tint n=439;\r\n\r\n\t\tint count = 1;\r\n\t\tint binary[] = new int[32];\r\n\t\tint i = 0;\r\n\t\twhile (n > 0) {\r\n\t\t\tbinary[i] = n % 2;\r\n\t\t\tn = n / 2;\r\n\t\t\ti++;\r\n\t\t}\r\n\r\n\t\tfor (int j = i - 1; j >= 0; j--) {\r\n\r\n\t\t\tString str = String....
[ "0.59265625", "0.58974487", "0.56708896", "0.5660639", "0.556692", "0.55176014", "0.5477915", "0.54662836", "0.54404134", "0.5388503", "0.53772867", "0.5371514", "0.53681827", "0.5338855", "0.53199875", "0.5315117", "0.53148043", "0.5241171", "0.5238381", "0.5233316", "0.5218...
0.0
-1
TODO convert this to binary search
public boolean isEndState(int i) { for (int k = 0; k < endStates.length; k++) if (endStates[k] == i) return true; return false; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "static int binSearch(int []arr,int key) {\n\t\tint start=0;\n\t\tint end=arr.length-1;\n\t\tdo {\n\t\t\tint pc=(start+end)/2;\n\t\t\tif(arr[pc]==key) {\n\t\t\t\treturn pc;\n\t\t\t}else if(arr[pc]<key) {\n\t\t\t\tstart=pc+1;\n\t\t\t}else\n\t\t\t\tend=pc-1;\n\t\t}while(start<=end);\n\t\t\n\t\treturn -1;\n\t}", "@T...
[ "0.7063641", "0.7027464", "0.70169866", "0.6989076", "0.6986333", "0.69823456", "0.6949036", "0.6947478", "0.692512", "0.69234174", "0.68952775", "0.68869627", "0.687566", "0.6843876", "0.6842733", "0.68244743", "0.6820225", "0.68176717", "0.6797093", "0.67940784", "0.6780319...
0.0
-1
TODO convert this to binary search
public boolean isStartState(int i) { for (int k = 0; k < startStates.length; k++) if (startStates[k] == i) return true; return false; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "static int binSearch(int []arr,int key) {\n\t\tint start=0;\n\t\tint end=arr.length-1;\n\t\tdo {\n\t\t\tint pc=(start+end)/2;\n\t\t\tif(arr[pc]==key) {\n\t\t\t\treturn pc;\n\t\t\t}else if(arr[pc]<key) {\n\t\t\t\tstart=pc+1;\n\t\t\t}else\n\t\t\t\tend=pc-1;\n\t\t}while(start<=end);\n\t\t\n\t\treturn -1;\n\t}", "@T...
[ "0.7063641", "0.7027464", "0.70169866", "0.6989076", "0.6986333", "0.69823456", "0.6949036", "0.6947478", "0.692512", "0.69234174", "0.68952775", "0.68869627", "0.687566", "0.6843876", "0.6842733", "0.68244743", "0.6820225", "0.68176717", "0.6797093", "0.67940784", "0.6780319...
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.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.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(); 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.79036397", "0.78051436", "0.77656627", "0.7726445", "0.7630767", "0.76211494", "0.75842685", "0.75296193", "0.74868536", "0.74574566", "0.74574566", "0.7437983", "0.7422003", "0.7402867", "0.7391276", "0.73864174", "0.7378494", "0.73696834", "0.736246", "0.7355139", "0.734...
0.0
-1
TODO Autogenerated method stub
@Override public void onAccuracyChanged(Sensor arg0, int arg1) { }
{ "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
only updates when clicked need to consider time when constantly updating
@Override public void onSensorChanged(SensorEvent event) { if(runOrNot) { Sensor mySensor = event.sensor; if (mySensor.getType() == Sensor.TYPE_ACCELEROMETER) { long current = System.currentTimeMillis(); if((current - prevTime) > 100) { prevTime = current; x = event.values[0]; y = event.values[1]; z = event.values[2]; String text = "x: " + x + " y: " + y + " z: " + z; listOfPoints.append(new Coordinate(x,y,z)); box.setText(text + "\n" + box.getText().toString()); } } } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void click() {\n this.lastActive = System.nanoTime();\n }", "@Override\r\n\t\tpublic void onClick(View arg0) {\n\t\t\tn++;\r\n\t\t\tmy_button.setText(\"receive:\"+String.valueOf(n));\r\n\t\t\t\r\n\r\n\t\t\tlong now_time = java.lang.System.currentTimeMillis();\r\n\t\t my_his_startTime = 10;\r\n\...
[ "0.70009935", "0.6919732", "0.6707651", "0.6522215", "0.6420087", "0.6392586", "0.6381929", "0.6350702", "0.6347508", "0.6325536", "0.6325233", "0.6319864", "0.63062394", "0.6304069", "0.62900525", "0.6288583", "0.62694556", "0.626822", "0.6260395", "0.6241861", "0.62403595",...
0.0
-1
Created by mikalai on 12.11.2016.
public interface def2 { default void go(){ System.out.println("def2"); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void perish() {\n \n }", "private stendhal() {\n\t}", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\n...
[ "0.59908074", "0.5857464", "0.5756835", "0.57346874", "0.5712564", "0.5712564", "0.56786996", "0.5670774", "0.5640327", "0.5599274", "0.5572335", "0.55669653", "0.55524063", "0.5537711", "0.55250007", "0.552369", "0.5517314", "0.5514908", "0.5513823", "0.55072355", "0.5495526...
0.0
-1
when creating a new stack
@Test public void isEmpty() { SimpleStack stack = new DefaultSimpleStack(); // then the stack is empty assertTrue(stack.isEmpty()); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@SubL(source = \"cycl/stacks.lisp\", position = 1818) \n public static final SubLObject create_stack() {\n return clear_stack(make_stack(UNPROVIDED));\n }", "public StackPushSingle()\n {\n super(\"PushStackSingle\");\n }", "MyStack(){\r\n\t\tsuper();\r\n\t}", "public MyStack() {\n\n }", ...
[ "0.71567136", "0.68895674", "0.68635714", "0.68168455", "0.67803025", "0.67119044", "0.6711034", "0.6666854", "0.6653689", "0.66431975", "0.66431975", "0.66431975", "0.6630327", "0.66201377", "0.6603903", "0.65696377", "0.65418637", "0.6538258", "0.64960605", "0.64587194", "0...
0.0
-1
Given an empty stack and an item
@Test public void push() { SimpleStack stack = new DefaultSimpleStack(); Item item = new Item(); // When the item is pushed in the stack stack.push(item); // Then… assertFalse("The stack must be not empty", stack.isEmpty()); assertEquals("The stack constains 1 item", 1, stack.getSize()); assertSame("The pushed item is on top of the stack", item, stack.peek()); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void push(Item item){\n this.stack.add(item);\n\n }", "protected void stackEmptyButton() {\n \tif (stack.empty()) {\n \t\tenter();\n \t}\n \telse {\n \t\tstack.pop();\n \t\tif (stack.empty()) {\n \t\t\tenter();\n \t}\n \t}\n }", "public void push (E item){\n ...
[ "0.6832829", "0.68030715", "0.67341524", "0.6700746", "0.6696106", "0.66815394", "0.6648342", "0.65780085", "0.6545572", "0.6508638", "0.6478286", "0.64511573", "0.6414773", "0.6412284", "0.6378463", "0.6350666", "0.63239056", "0.63239056", "0.6323761", "0.6318002", "0.630774...
0.6825066
1
Given an empty stack
@Test(expected = EmptyStackException.class) public void testPopOnEmptyStack() throws EmptyStackException { SimpleStack stack = new DefaultSimpleStack(); // When we « pop » the stack stack.pop(); // should throws an EmptyStackException. }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@SubL(source = \"cycl/stacks.lisp\", position = 2117) \n public static final SubLObject stack_empty_p(SubLObject stack) {\n checkType(stack, $sym1$STACK_P);\n return Types.sublisp_null(stack_struc_elements(stack));\n }", "protected void stackEmptyButton() {\n \tif (stack.empty()) {\n \t\tenter();\n...
[ "0.792486", "0.75264376", "0.75205266", "0.74435675", "0.7302112", "0.7281336", "0.7220552", "0.70778334", "0.7071724", "0.7058417", "0.7047124", "0.7029159", "0.7010734", "0.69947946", "0.6985023", "0.69393593", "0.69120246", "0.6891075", "0.6882353", "0.68805367", "0.687287...
0.70184773
12
Given a non empty stack with 2 items
@Test public void pop() { SimpleStack stack = new DefaultSimpleStack(); Item item = new Item(); Item item1 = new Item(); stack.push(item); stack.push(item1); // When we pop the stack Item topItem = stack.pop(); // Then… assertEquals("The stack constains 1 item", 1, stack.getSize()); assertSame("The first item is on top of the stack", item, stack.peek()); assertSame(item1, topItem); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public QueueUsingTwoStacks() \n {\n stack1 = new Stack<Item>();\n stack2 = new Stack<Item>();\n }", "void push2(int x) {\n --top2;\n if(top2 == size / 2) {\n System.out.println(\"Second stack is full\");\n return;\n }\n arr[top2] = x;\n }",...
[ "0.6757758", "0.6604134", "0.654522", "0.6527256", "0.6524469", "0.64036095", "0.638059", "0.63602906", "0.63439375", "0.63195586", "0.62813014", "0.62648267", "0.62352073", "0.6231378", "0.6206743", "0.61950386", "0.6178924", "0.6178499", "0.6166535", "0.61487097", "0.614869...
0.62936515
10
Given an empty stack
@Test(expected = EmptyStackException.class) public void testPeekOnEmptyStack() throws EmptyStackException { SimpleStack stack = new DefaultSimpleStack(); // When we « pop » the stack stack.peek(); // should throws an EmptyStackException. }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@SubL(source = \"cycl/stacks.lisp\", position = 2117) \n public static final SubLObject stack_empty_p(SubLObject stack) {\n checkType(stack, $sym1$STACK_P);\n return Types.sublisp_null(stack_struc_elements(stack));\n }", "protected void stackEmptyButton() {\n \tif (stack.empty()) {\n \t\tenter();\n...
[ "0.792486", "0.75264376", "0.75205266", "0.74435675", "0.7302112", "0.7281336", "0.7220552", "0.70778334", "0.7071724", "0.7058417", "0.7047124", "0.7029159", "0.70184773", "0.7010734", "0.69947946", "0.6985023", "0.69393593", "0.69120246", "0.6891075", "0.68805367", "0.68728...
0.6882353
19
return car without Dealer and mark
private Car extractCar(Node carNode) throws DataProviderException { String pageId = getXpathEvaluator().evaluateXpathString(carNode, CarXpath.PAGE_ID); String model = StringEscapeUtils.unescapeHtml4(getXpathEvaluator().evaluateXpathString(carNode, CarXpath.MODEL)); if (model == null || model.isEmpty()) { model = getXpathEvaluator().evaluateXpathString(carNode, CarXpath.MODEL_PROMOTED); } String mileage = getXpathEvaluator().evaluateXpathString(carNode, CarXpath.MILEAGE); if (mileage == null || mileage.isEmpty()) { mileage = getXpathEvaluator().evaluateXpathString(carNode, CarXpath.MILEAGE_PROMOTED); } String year = getXpathEvaluator().evaluateXpathString(carNode, CarXpath.YEAR); if (year == null || year.isEmpty()) { year = getXpathEvaluator().evaluateXpathString(carNode, CarXpath.YEAR_PROMOTED); } String price = getXpathEvaluator().evaluateXpathString(carNode, CarXpath.PRICE); if (price == null || price.isEmpty()) { price = getXpathEvaluator().evaluateXpathString(carNode, CarXpath.PRICE_PROMOTED); } Car result = new Car(); result.setPageId(pageId); result.setModel(model); result.setMileage(mileage); result.setYear(year); try { String[] priceSplitted = price.split(" "); result.setPrice(priceSplitted[0]); result.setPriceCurrency(priceSplitted[1]); } catch (Exception e) { result.setPrice(price); } return result; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public tT CAR()\r\n\t{\r\n\t\treturn car;\r\n\t}", "public abstract java.lang.String getNovedad();", "public String getCarCode()\r\n {\r\n return carCode;\r\n }", "public String getCarNo() {\n return carNo;\n }", "public boolean hasCar() {\n return dataBodyCase_ == 4;\n }", ...
[ "0.57652825", "0.5526533", "0.54816496", "0.5461447", "0.54614353", "0.5454352", "0.5447743", "0.53928894", "0.53699917", "0.53018886", "0.5293259", "0.5256674", "0.5242215", "0.52281016", "0.5215748", "0.51902956", "0.5189354", "0.5188294", "0.5177308", "0.5163128", "0.51415...
0.49415562
57
Returns the amount of outstanding async tasks to wait for.
public int asyncTaskCount();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "long getExecutorCompletedTaskCount();", "public int numberOfPendingTasks() {\n return allBatchesStream().mapToInt(Batch::getPendingCount).sum();\n }", "public long getPendingTasks()\n {\n return getTaskCount() - getCompletedTaskCount();\n }", "public static int getPendingRequests() {\n...
[ "0.7301245", "0.7245701", "0.7152635", "0.69943583", "0.6806761", "0.6747815", "0.6714269", "0.66677094", "0.65712273", "0.65673417", "0.65220135", "0.64999753", "0.6462698", "0.64202625", "0.64104146", "0.63707215", "0.6349368", "0.63465136", "0.6308308", "0.6290452", "0.628...
0.7571994
0
Unlocks one of the locked locks.
public void notifyAsyncTaskDone();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void unlock() {\n setLock.unlock(this);\n }", "public void unlock(){\n logger.log(Level. INFO,\"unlock() \"+lockState+\".\");\n this.lock.lock();\n logger.log(Level. INFO,\"unlock taking mutex :\"+lockState+\".\");\n switch(this.lockState)...
[ "0.76241434", "0.7173186", "0.7050791", "0.681688", "0.6783576", "0.6776072", "0.676939", "0.6747699", "0.6694396", "0.6680841", "0.66747296", "0.660895", "0.6571408", "0.6565056", "0.6560789", "0.6546235", "0.6537519", "0.65253884", "0.65036154", "0.6390999", "0.63176435", ...
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.
public void setUploading() { jPanel4.setVisible(false); th.start(); }
{ "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.7318655", "0.7289971", "0.7289971", "0.7289971", "0.72860885", "0.7247684", "0.7213551", "0.72080934", "0.7195069", "0.7189731", "0.7183451", "0.71579945", "0.7147311", "0.7092687", "0.70798934", "0.7055229", "0.69868284", "0.6976656", "0.6954658", "0.6952896", "0.69449455...
0.0
-1
GENFIRST:event_jButton1ActionPerformed TODO add your handling code here:
private void jButton1ActionPerformed(java.awt.event.ActionEvent evt) { try {int roll; String d_ob; roll = Integer.parseInt(jTextField1.getText()); d_ob = jTextField2.getText(); connect obj1 =new connect(); res = obj1.st.executeQuery("select * from studresult where RollNo = "+roll+""); res.last(); int rows = res.getRow(); if(rows>0) { res.beforeFirst(); setUploading(); jPanel4.setVisible(true); } else { jLabel16.setVisible(true); } } catch(Exception e) { JOptionPane.showMessageDialog(null,e); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void jButton1ActionPerformed(java.awt.event.ActionEvent evt) {\n }", "private void jButton1ActionPerformed(java.awt.event.ActionEvent evt) {\n }", "private void jButton1ActionPerformed(java.awt.event.ActionEvent evt) {\n }", "private void jButton2ActionPerformed(java.awt.event.ActionEvent ev...
[ "0.8749886", "0.8749886", "0.8749886", "0.85377127", "0.84710234", "0.84535646", "0.83879864", "0.83648056", "0.8345885", "0.8335142", "0.8258478", "0.82279325", "0.8218835", "0.81790894", "0.8130204", "0.81123257", "0.8012243", "0.8012243", "0.8012243", "0.7930663", "0.79306...
0.0
-1
Reference type in java which is similar to class it will contains abstract methods. A class will be implemented an interface interface person public void subject(); public void studentName();
public static void main(String[] args) { Javainterface e = new Javainterface(); e.studentName(); e.subject(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "String getReferenceType();", "public interface Student {\n}", "public interface Generic extends Reference\n{\n}", "PSObject getTypeReference();", "interface people{\n void walk();\n }", "@Override\n public final boolean isReferenceType() {\n return true;\n }", "interface School\r\n{\r\...
[ "0.6756022", "0.66703826", "0.64421207", "0.61882824", "0.6145525", "0.61431104", "0.6077689", "0.60434747", "0.60140747", "0.6000402", "0.5912537", "0.59023196", "0.58231634", "0.57975125", "0.5794867", "0.5763702", "0.5744801", "0.57359535", "0.5728989", "0.57286024", "0.57...
0.0
-1
TODO Autogenerated method stub
public static void main(String[] args) { String input1="AAA/abb/CCC"; ArrayList<String> l=new ArrayList<String>(); StringTokenizer t=new StringTokenizer(input1,"/"); while(t.hasMoreTokens()){ StringBuffer sb=new StringBuffer(t.nextToken().toLowerCase()); l.add(sb.reverse().toString()); } String op[]=new String[l.size()]; for(int i=0;i<op.length;i++) op[i]=l.get(i); for(String s:op) System.out.println(s); }
{ "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 load in local data
@EventHandler public void onFail(PlayerFallOnCourseEvent e) { PlayerTracker pt = PlayerTracker.getPlayerTracker(e.getPlayer().getName()); if(pt != null) { pt.removeLives(1); if(pt.hasLivesRemaining()) { e.getPlayer().teleport(pt.getLastCheckpoint().getLocation()); e.getPlayer().sendMessage(ChatColor.GREEN + "You have " + ChatColor.GRAY + "" + ChatColor.UNDERLINE + "" + pt.getLives() + "" + ChatColor.RESET + "" + ChatColor.GREEN + " lives left!"); } else { e.getPlayer().sendMessage(ChatColor.RED + "You have ran out of lives!"); Bukkit.getPluginManager().callEvent(new PlayerFinishCourseEvent(e.getPlayer(), e.getMap(), null, false)); } } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected void loadData()\n {\n }", "void loadData();", "void loadData();", "protected abstract void loadData();", "public abstract void loadData();", "public abstract void loadData();", "public void load() ;", "private void loadData() {\n\t\tOptional<ServerData> loaded_data = dataSaver.load();\n\t...
[ "0.7221316", "0.71329236", "0.71329236", "0.7079811", "0.6922708", "0.6922708", "0.6777903", "0.6668397", "0.6628822", "0.66226304", "0.65979916", "0.6570344", "0.65463465", "0.65434766", "0.65187824", "0.64719164", "0.64719164", "0.646788", "0.646788", "0.64604986", "0.64591...
0.0
-1
int prange = Integer.parseInt(args[0]);
public static void main(String[] args) { int[] range = new int[100]; for (int i = 0; i<range.length; i++) { range[i]=i+2; } /* for (int i = 1; i <prange; i++) { System.out.println(numbers[i]); } primearray obj = new primearray(numbers); for (int i = 1; i <prange; i++) { System.out.println(obj.range[i]); }*/ primearray obj = new primearray(range); obj.perform(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void inRange(String[] arguments) {\n\t\ttry { \n\t int IDLow = Integer.parseInt(arguments[1]);\n\t int IDHigh = Integer.parseInt(arguments[2]);\n\t totalInRangeCount = 0;\n\t countInRange(root, IDLow, IDHigh);\n\t System.out.printf(\"%d\\n\",totalInRangeCount);\n\t } c...
[ "0.6384244", "0.6233277", "0.5990945", "0.59875023", "0.59294444", "0.5888159", "0.58272856", "0.5826732", "0.5760381", "0.575184", "0.5740837", "0.57306725", "0.5679029", "0.56581265", "0.5647806", "0.56392074", "0.563203", "0.56303644", "0.56216013", "0.56202394", "0.561123...
0.0
-1
Se visualizan todas las piezas
public static void visualizarTodasLasPiezas(Monton todas){ System.out.println("\nVisualizando todas las piezas: "); System.out.println(todas.toString()); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void createPieModel() {\n pieModel = new PieChartModel();\n for (GraficoEsCarrera items : listagraficada) {//recorre la lista de datos de alumnos segun la carrera\n pieModel.set(items.getCarrera(), items.getCantidad());\n }\n pieModel.setTitle(\"ESTUDIANTES RESGITRADO...
[ "0.6897354", "0.6603145", "0.65580666", "0.650281", "0.63509184", "0.6342772", "0.62926334", "0.62874186", "0.62723553", "0.6265927", "0.6216885", "0.6197988", "0.6176121", "0.6131771", "0.6122153", "0.61152273", "0.6112601", "0.6043316", "0.60091776", "0.5995067", "0.5981892...
0.68128836
1
Se le asignan un numero de piezas a todos los jugadores
public static void establecerMano(Monton todas,Mano[] jugadores){ int pos; Pieza pieza; for (int i = 0; i < jugadores.length; i++) { for (int j = 0; j < Ajustes.PIEZAS_MANO; j++) { if(todas.getNPiezasMonton()>0){ pos=(int) (Math.random()*todas.getNPiezasMonton()); pieza=todas.getUnaPieza(pos); jugadores[i].setUnaPieza(pieza); todas.eliminarPiezaMonton(pieza); } } } System.out.println("\nCada jugador tiene "+jugadores[0].getNPiezas()+" piezas."); if(todas.getNPiezasMonton()!=0) System.out.println("Y en el monton quedan "+todas.getNPiezasMonton()); else System.out.println("No quedan piezas en el monton"); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private static void eligeJugadores() {\r\n\t\tint eleccion;\r\n\t\tdo {\r\n\t\t\tSystem.out.print(\"Elige el numero de jugadores [2,6]: \");\r\n\t\t\teleccion = Teclado.leerInt();\r\n\t\t} while (eleccion < 2 || eleccion > 6);\r\n\t\tnJugadores = eleccion;\r\n\t\tjugadores = new JugadorM[nJugadores];\r\n\t\tjugado...
[ "0.74836755", "0.6930138", "0.6746559", "0.669875", "0.66514564", "0.6358218", "0.6355003", "0.6235207", "0.6179033", "0.61490595", "0.6147696", "0.61129576", "0.6019812", "0.59982383", "0.59923446", "0.59922326", "0.59912896", "0.5958109", "0.5956989", "0.5926648", "0.590477...
0.6321591
7
Busca el doble mas alto que tiene algun jugador en su mano
public static int seleccionarCarro(Mano[] jug){//error no vio la 0,0 int numeroDoble=6; int toret=0; while(numeroDoble>=0){ int n=0; while(n<jug.length){ int f=0; while( f<jug[n].getNPiezas() && (jug[n].getUnaPieza(f).getN1()!=numeroDoble || jug[n].getUnaPieza(f).getN2()!=numeroDoble)) f++; if(f<jug[n].getNPiezas()){ System.out.println("Encontrada la "+numeroDoble+","+numeroDoble +", la tiene él jugador "+(n+1)+" y el tiene " + "el primer turno"); toret=n; numeroDoble=-10; } n++; } numeroDoble-=1; } if(numeroDoble==-1){ toret=(int) (Math.random()*jug.length); System.out.println("No se ha encontrado ningun jugador con alguna pieza doble.\n" + "Empieza el jugador "+toret); } return toret; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static void establecerMano(Monton todas,Mano[] jugadores){\n int pos;\n Pieza pieza;\n for (int i = 0; i < jugadores.length; i++) {\n for (int j = 0; j < Ajustes.PIEZAS_MANO; j++) {\n if(todas.getNPiezasMonton()>0){\n pos=(int) (Math.random()*...
[ "0.6531318", "0.62545747", "0.6145477", "0.602559", "0.60227895", "0.60150766", "0.6010115", "0.6009563", "0.5995503", "0.5969164", "0.5961272", "0.5955689", "0.59420455", "0.5919171", "0.59181994", "0.591455", "0.5899144", "0.5897197", "0.5895217", "0.58821094", "0.5870968",...
0.6316497
1
Analiza la variable puedeJugar de cada jugador
public static boolean sePuedeSeguir(Mano [] jugadores){ boolean toret; int n=0; while(n<jugadores.length && !jugadores[n].getPuedeJugar()) n++; return !(n==jugadores.length); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private static void eligeJugadores() {\r\n\t\tint eleccion;\r\n\t\tdo {\r\n\t\t\tSystem.out.print(\"Elige el numero de jugadores [2,6]: \");\r\n\t\t\teleccion = Teclado.leerInt();\r\n\t\t} while (eleccion < 2 || eleccion > 6);\r\n\t\tnJugadores = eleccion;\r\n\t\tjugadores = new JugadorM[nJugadores];\r\n\t\tjugado...
[ "0.70811087", "0.6865466", "0.6656846", "0.66486055", "0.6611359", "0.6588311", "0.65203315", "0.65051645", "0.6466204", "0.64543504", "0.63369554", "0.62826115", "0.62348264", "0.62085134", "0.6095198", "0.60610193", "0.6004074", "0.5990925", "0.59804946", "0.5961182", "0.59...
0.6017587
16
Primero mira si al ultimo jugador le quedaban fichas y luego quien tiene menor puntos
public static void quienHaGanado(Mano[] jugadores, int actual,int carro){ if(jugadores[actual].getNPiezas()!=0){ boolean dosIguales=false; actual=0; for (int i = 1; i < jugadores.length; i++) { if(jugadores[i].getPuntuacion()==jugadores[actual].getPuntuacion()){//El jug i y el actual tienen la misma putnuacion if(i==carro){//el jugador i es el carro actual=i; dosIguales=false; } else if(actual==carro){//el jugador actual es el carro dosIguales=false; } else{//ninguno es el carro y hay que acudir a un metodo para nombrar a los dos ganadores. dosIguales=true; } } if(jugadores[i].getPuntuacion()<jugadores[actual].getPuntuacion()){//el jugador i tiene menor puntuacion que el jugador actual actual=i; dosIguales=false; } } if(dosIguales){ System.out.println("pene"); Excepciones.cambiarColorAzul("Y los GANADORES SON...."); for (int i = 0; i < jugadores.length; i++) { if (jugadores[i].getPuntuacion()==jugadores[actual].getPuntuacion()) { //System.out.println("\t\t\u001B[34mEl jugador nº- "+(i+1)+": "+jugadores[i].getNombre()); Excepciones.cambiarColorAzul("\t\tEl jugador nº- "+(i+1)+": "+jugadores[i].getNombre()); } } System.out.println("\u001B[30m"); } else{ Excepciones.cambiarColorAzul("Y el GANADOR ES...."); //System.out.println("\t\t\u001B[34mEl jugador nº- "+(actual+1)+": "+jugadores[actual].getNombre()+"\u001B[30m"); Excepciones.cambiarColorAzul("\t\tEl jugador nº- "+(actual+1)+": "+jugadores[actual].getNombre()); } } else { Excepciones.cambiarColorAzul("Y el GANADOR ES...."); //System.out.println("\t\t\u001B[34mEl jugador nº- "+(actual+1)+": "+jugadores[actual].getNombre()+"\u001B[30m"); Excepciones.cambiarColorAzul("\t\tEl jugador nº- "+(actual+1)+": "+jugadores[actual].getNombre()); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private int fichasSeguidas(char[] array, char jugador) {\n if (array.length == 0)\n return 0; // última puesta\n if (array[0] != 'V') // si no hay hueco, devolver 0\n return 0;\n\n // buscar el hueco más cercano disponible\n int posHueco = 0;\n for (int i = ...
[ "0.65007484", "0.6310286", "0.6069047", "0.5952033", "0.5940649", "0.5871564", "0.5833821", "0.58209693", "0.5813769", "0.5695036", "0.5694484", "0.56590146", "0.5637353", "0.56351984", "0.5625879", "0.5622713", "0.5622287", "0.55931777", "0.5590095", "0.55792546", "0.5576914...
0.53775126
43
Muestra todos los jugadores junto con sus fichas y sus puntos
public static void tablaPuntos(Mano[] jug){ StringBuilder toret= new StringBuilder(); for (int i = 0; i < jug.length; i++) { toret.append(jug[i].getNombre()); toret.append(": \n"); toret.append(jug[i]); toret.append("\nPuntos: "); toret.append(jug[i].getPuntuacion()); toret.append("\n"); } System.out.println(toret.toString()); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static ArrayList<Puntaje> getListadoPuntajes(String jugador)\n {\n ArrayList<Puntaje> listado = new ArrayList<>();\n String rutaPuntaje = \"src/recursos/puntaje.txt\"; \n try \n {\n File archivo = new File(rutaPuntaje);\n if(!archivo.exists())\n ...
[ "0.6687478", "0.6529938", "0.65074533", "0.6469516", "0.64455485", "0.63158125", "0.6271771", "0.6156713", "0.61394626", "0.61168975", "0.6105473", "0.60990655", "0.6044922", "0.60397726", "0.59490746", "0.5948175", "0.59219563", "0.58808136", "0.58255875", "0.58076054", "0.5...
0.0
-1
Getter method for property data.
public Data getData() { return data; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Object getData(){\n\t\treturn this.data;\n\t}", "@Override\r\n\t\tpublic Meta_data getData() {\n\t\t\treturn this.data;\r\n\t\t}", "public Object getData() {\n\t\treturn data;\n\t}", "public Object getData() {\r\n\t\t\treturn data;\r\n\t\t}", "public Object getData()\r\n\t\t{\r\n\t\t\treturn data;\r...
[ "0.7315571", "0.71727896", "0.7099374", "0.70957893", "0.7090632", "0.70905894", "0.707523", "0.70282274", "0.6969563", "0.6955585", "0.69552314", "0.6904015", "0.6902253", "0.6885942", "0.6882503", "0.6880496", "0.6866483", "0.6862771", "0.6861909", "0.68438435", "0.6836332"...
0.69599676
10
Setter method for property data.
public void setData(Data data) { this.data = data; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setData(Object data) {\r\n this.data = data;\r\n }", "public void setData(Object data) {\n this.data = data;\n }", "public void setData(V data){\n\t\tthis.data = data;\n\t}", "public void setData(Object data) {\n\t\tthis.data = data;\n\t}", "@Override\r\n\tprotected void set...
[ "0.75627446", "0.752536", "0.74827284", "0.74613327", "0.7409053", "0.7303612", "0.7268738", "0.7252397", "0.72215766", "0.72087276", "0.7190595", "0.71803904", "0.71723276", "0.71177745", "0.71139383", "0.71046406", "0.70832175", "0.70403445", "0.70403445", "0.70340586", "0....
0.73325664
5
Getter method for property ip.
public String getIp() { return ip; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String getIp() {\r\n return ip;\r\n }", "public String getIp() {\n return ip;\n }", "public String getIp() {\n return ip;\n }", "public String getIp() {\n return ip;\n }", "public String getIp() {\n return ip;\n }", "public String getIp() {\n retu...
[ "0.85167015", "0.8490006", "0.84713846", "0.84713846", "0.84713846", "0.84713846", "0.84713846", "0.84713846", "0.8453721", "0.842714", "0.8364758", "0.8346088", "0.832196", "0.832196", "0.82793295", "0.82793295", "0.82793295", "0.82394147", "0.82112545", "0.8168167", "0.8168...
0.8445998
9
Setter method for property ip.
public void setIp(String ip) { this.ip = ip; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setIp(String ip) {\n this.ip = ip;\n }", "private void setIp(int value) {\n \n ip_ = value;\n }", "private void setIp(int value) {\n \n ip_ = value;\n }", "public void setIp(String ip) {\n this.ip = ip;\n }", "public void setIp(String ip) {\n ...
[ "0.81702346", "0.8139689", "0.8139689", "0.8058997", "0.8058997", "0.8057695", "0.8040692", "0.79729325", "0.79729325", "0.7771532", "0.776077", "0.776077", "0.776077", "0.75697196", "0.75053865", "0.75053865", "0.7493319", "0.7462796", "0.7462796", "0.74440163", "0.74249774"...
0.801267
7
Getter method for property country.
public String getCountry() { return country; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String getCountry() {\r\n return country;\r\n }", "public String getCountry() {\n return country;\n }", "public String getCountry() {\n return country;\n }", "public String getCountry() {\n return country;\n }", "public String getCountry() {\n return country;...
[ "0.8508782", "0.84988046", "0.848924", "0.848924", "0.848924", "0.848924", "0.848924", "0.848924", "0.848924", "0.8473651", "0.8462404", "0.84618723", "0.842262", "0.84058034", "0.8403383", "0.8403383", "0.837947", "0.837947", "0.8355946", "0.8324874", "0.8314418", "0.82813...
0.8426379
12
Setter method for property country.
public void setCountry(String country) { this.country = country; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setCountry(Country country) {\n this.country = country;\n }", "public void setCountry(String country) {\n this.country = country;\n }", "public void setCountry(String country) {\n this.country = country;\n }", "public void setCountry(String country) {\n this.c...
[ "0.84134346", "0.8139528", "0.8139528", "0.8139528", "0.8139528", "0.8139528", "0.8139528", "0.8040335", "0.8040335", "0.80245334", "0.7984706", "0.79626447", "0.79626447", "0.79626447", "0.78205484", "0.78003645", "0.7709301", "0.7686047", "0.75250345", "0.7463463", "0.74634...
0.80935097
7
Getter method for property area.
public String getArea() { return area; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String getArea() {\n return area;\n }", "public String getArea() {\n return area;\n }", "public String getArea() {\n return area;\n }", "public String getArea() {\n return this.area;\n }", "public String getArea() {\n\t\treturn area;\n\t}", "public Rectangle...
[ "0.80875796", "0.80875796", "0.80875796", "0.80416316", "0.79770964", "0.7957574", "0.79391503", "0.7878544", "0.78425103", "0.7747158", "0.7729724", "0.7661118", "0.7599047", "0.7550779", "0.74967253", "0.74203086", "0.7384054", "0.7281046", "0.7274907", "0.71984607", "0.719...
0.8050202
3
Setter method for property area.
public void setArea(String area) { this.area = area; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setArea() {\n\t\tthis.area= height*width;\n\t}", "public void setArea(Polygon area) {\n\t\tthis.area = area;\n\t}", "public void setArea(String area) {\n this.area = area;\n }", "public void setArea(String area) {\n\t\tthis.area = area;\n\t}", "@Override\n public final void setArea...
[ "0.7883478", "0.7746467", "0.76713645", "0.7489925", "0.72993326", "0.7182676", "0.7182676", "0.7103377", "0.7103377", "0.70442986", "0.70013684", "0.6965618", "0.6961695", "0.69417244", "0.69417244", "0.69417244", "0.6901725", "0.67350364", "0.67292625", "0.6701115", "0.6605...
0.76351696
3
Getter method for property region.
public String getRegion() { return region; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String getRegion() {\r\n return region;\r\n }", "public String getRegion() {\r\n return region;\r\n }", "public String getRegion() {\r\n return region;\r\n }", "public String getRegion() {\n return region;\n }", "public String getRegion() {\n return region;\n }"...
[ "0.8131512", "0.8131512", "0.8131512", "0.8112334", "0.8112334", "0.8097342", "0.8097342", "0.8097342", "0.8097342", "0.8097342", "0.8071395", "0.80683535", "0.7814059", "0.77610534", "0.7704964", "0.7683116", "0.75715053", "0.75459665", "0.7508708", "0.7500151", "0.74578536"...
0.8033688
12
Setter method for property region.
public void setRegion(String region) { this.region = region; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setRegion(String region);", "public void setRegion(Region region) {\n this.region = region;\n }", "@Generated\n @Selector(\"setRegion:\")\n public native void setRegion(@NotNull UIRegion value);", "public void setRegion(CoordinateRadius region);", "public void setRegion(final Ty...
[ "0.7793143", "0.75845027", "0.7566997", "0.7505375", "0.74107367", "0.7358714", "0.7329305", "0.7329305", "0.7329305", "0.7289737", "0.72282046", "0.72282046", "0.72282046", "0.7220757", "0.68926305", "0.6864642", "0.6864642", "0.68365085", "0.67149556", "0.67142624", "0.6712...
0.72119135
14
Getter method for property city.
public String getCity() { return city; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String getCity() {\r\n return city;\r\n }", "public String getCity() {\r\n return city;\r\n }", "public String getCity() {\r\n return city;\r\n }", "public String getCity() {\n return (String) get(\"city\");\n }", "public String getCity() {\n return this.ci...
[ "0.86548114", "0.86548114", "0.86548114", "0.8648216", "0.8625721", "0.8625721", "0.8625721", "0.86165446", "0.8611426", "0.8611426", "0.8611426", "0.8611426", "0.8611426", "0.8611426", "0.8611426", "0.8611426", "0.8611426", "0.8611426", "0.8548449", "0.85317034", "0.85317034...
0.86137813
8
Setter method for property city.
public void setCity(String city) { this.city = city; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setCity(City city) {\n this.city = city;\n }", "public void setCity(String city);", "public void setCity(String city) {\r\n this.city = city;\r\n }", "public void setCity(String city) {\r\n this.city = city;\r\n }", "public void setCity(String city){\n this....
[ "0.8527293", "0.8463363", "0.83847237", "0.83847237", "0.83731836", "0.8330701", "0.8330701", "0.8330701", "0.8330701", "0.8330701", "0.8330701", "0.8236547", "0.8216861", "0.8171864", "0.81706524", "0.8161946", "0.8161946", "0.8147446", "0.8136603", "0.8136603", "0.80421126"...
0.829339
11
Getter method for property county.
public String getCounty() { return county; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String getCounty() {\r\n return county;\r\n }", "public String getCounty()\n {\n \treturn county;\n }", "public String getCounty() {\n return mCounty;\n }", "public String getCountyname() {\n return countyname;\n }", "public Integer getCountyid() {\n ret...
[ "0.86527824", "0.8489922", "0.83471465", "0.78239125", "0.7729133", "0.76870924", "0.76271516", "0.75775373", "0.7390961", "0.7283088", "0.72696495", "0.7254065", "0.70417464", "0.66090465", "0.63552445", "0.6222266", "0.6178018", "0.61117375", "0.6062521", "0.60503286", "0.5...
0.8658718
0
Setter method for property county.
public void setCounty(String county) { this.county = county; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setCounty(String county) {\r\n this.county = county;\r\n }", "public String getCounty() {\n return county;\n }", "public void setCounty(String county) {\n this.county = county == null ? null : county.trim();\n }", "public String getCounty() {\r\n retur...
[ "0.84229517", "0.7692943", "0.76859426", "0.7683258", "0.737294", "0.73010135", "0.71777815", "0.7160993", "0.71213245", "0.7106054", "0.7064159", "0.70537174", "0.7040384", "0.69745404", "0.6618513", "0.6463209", "0.6391317", "0.63669705", "0.5895684", "0.57729447", "0.57656...
0.8356185
1
Getter method for property isp.
public String getIsp() { return isp; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String getIsp_id() {\n return isp_id;\n }", "public PIS getPis() {\n return pis;\n }", "public void setIsp(String isp) {\n this.isp = isp;\n }", "String getProperty();", "String getProperty();", "String getProperty();", "public String getCorpProvince...
[ "0.6418178", "0.63147813", "0.6127013", "0.56708306", "0.56708306", "0.56708306", "0.56659454", "0.56620437", "0.56283796", "0.55819446", "0.5528921", "0.55076283", "0.5492252", "0.54910004", "0.5490104", "0.5490104", "0.5468617", "0.5456519", "0.5424098", "0.5418186", "0.540...
0.72063434
0
Setter method for property isp.
public void setIsp(String isp) { this.isp = isp; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String getIsp() {\n return isp;\n }", "public void setIsp_id(String isp_id) {\n this.isp_id = isp_id;\n }", "protected abstract void setPpl();", "public String getIsp_id() {\n return isp_id;\n }", "protected abstract void setSpl();", "void setO...
[ "0.63520646", "0.6213539", "0.5958894", "0.58901995", "0.56462103", "0.5580956", "0.54566526", "0.5279284", "0.5126608", "0.5095283", "0.5072945", "0.50700796", "0.50537735", "0.5019459", "0.5019433", "0.5001042", "0.49726853", "0.49544027", "0.49516726", "0.4947577", "0.4942...
0.7229557
0
Getter method for property country_id.
public String getCountry_id() { return country_id; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Integer getCountryId() {\n return countryId;\n }", "public String getCountryId() {\r\n return countryId;\r\n }", "public int getCountryId() {\n return countryId;\n }", "public long getCountryId() {\n return countryId;\n }", "public Long getCountryId() {\n ...
[ "0.85393375", "0.8514592", "0.841887", "0.8398458", "0.8395703", "0.82822585", "0.8162186", "0.81502056", "0.7940261", "0.7907779", "0.7851063", "0.7553271", "0.7553271", "0.7233583", "0.72334105", "0.7212711", "0.7166698", "0.7149347", "0.71121216", "0.7111557", "0.7102736",...
0.8325851
5
Setter method for property country_id.
public void setCountry_id(String country_id) { this.country_id = country_id; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setCountryId(int value);", "public void setCountryId(long countryId) {\n this.countryId = countryId;\n }", "public void setCountryId(String countryId) {\r\n this.countryId = countryId;\r\n }", "public String getCountryId() {\r\n return countryId;\r\n }", "public vo...
[ "0.8428221", "0.8134522", "0.7966494", "0.7839697", "0.7794532", "0.777931", "0.776822", "0.77425796", "0.7705311", "0.7699371", "0.7677205", "0.7511357", "0.74635637", "0.74635637", "0.744482", "0.7405607", "0.7247328", "0.71357924", "0.7079369", "0.7012644", "0.7005943", ...
0.7952967
3
Getter method for property area_id.
public String getArea_id() { return area_id; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Integer getAreaId() {\n return areaId;\n }", "public Integer getAreaId() {\n return areaId;\n }", "public int getAreaNo() {\n return areaNo_;\n }", "public int getAreaNo() {\n return areaNo_;\n }", "public void setArea_id(String area_id) {\n this.area_id = ...
[ "0.86402684", "0.86402684", "0.77819353", "0.77438885", "0.7493831", "0.7482017", "0.74777275", "0.74777275", "0.74777275", "0.7462828", "0.74379647", "0.74379647", "0.74009037", "0.7358695", "0.7302429", "0.7259419", "0.71598804", "0.7112069", "0.7112069", "0.70953643", "0.7...
0.85533977
2
Setter method for property area_id.
public void setArea_id(String area_id) { this.area_id = area_id; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setAreaId(Integer areaId) {\n this.areaId = areaId;\n }", "public void setAreaId(Integer areaId) {\n this.areaId = areaId;\n }", "public String getArea_id() {\n return area_id;\n }", "public Integer getAreaId() {\n return areaId;\n }", "public Int...
[ "0.8119343", "0.8119343", "0.77818143", "0.76467776", "0.76467776", "0.7298053", "0.729406", "0.72862405", "0.72060394", "0.6995563", "0.698328", "0.698328", "0.6983238", "0.6983238", "0.6849826", "0.68076056", "0.67781556", "0.6700778", "0.66949004", "0.6560759", "0.65231574...
0.81412524
0
Getter method for property region_id.
public String getRegion_id() { return region_id; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String getRegionId() {\r\n return regionId;\r\n }", "public String getRegionId() {\n return regionId;\n }", "public String getRegionId() {\n return regionId;\n }", "public String getRegionId() {\n return regionId;\n }", "public String getRegionid() {\n ...
[ "0.8754461", "0.8741017", "0.8741017", "0.8741017", "0.86620307", "0.86059254", "0.8600333", "0.8525883", "0.8479357", "0.8414669", "0.8354576", "0.80241084", "0.80175024", "0.7903501", "0.7887526", "0.78052473", "0.7790166", "0.77492005", "0.77492005", "0.7737613", "0.770025...
0.85669804
7
Setter method for property region_id.
public void setRegion_id(String region_id) { this.region_id = region_id; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setRegionId(long regionId) {\r\n this.regionId = regionId;\r\n }", "public void setRegionid(String regionid) {\n this.regionid = regionid;\n }", "public Builder setRegionId(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();...
[ "0.7945864", "0.79092675", "0.78699625", "0.7860377", "0.783937", "0.7832706", "0.7831504", "0.78038394", "0.7795622", "0.7795622", "0.7795622", "0.7748507", "0.77105004", "0.7682148", "0.75998914", "0.7573946", "0.75726604", "0.75041115", "0.75041115", "0.75041115", "0.74859...
0.79950964
0
Getter method for property city_id.
public String getCity_id() { return city_id; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String getCityId() {\n return cityId;\n }", "public Integer getCityId() {\n return cityId;\n }", "public Integer getCityId() {\n return cityId;\n }", "public String getCityId() {\r\n return cityId;\r\n }", "public Long getCityId() {\n return cityId;\n }", ...
[ "0.862333", "0.85914105", "0.85914105", "0.8586257", "0.8575492", "0.848586", "0.84310657", "0.8321626", "0.79752123", "0.7858258", "0.77067184", "0.77067184", "0.74938697", "0.7459869", "0.74484056", "0.7401815", "0.739299", "0.7383725", "0.7367496", "0.72983015", "0.7285108...
0.85373676
5
Setter method for property city_id.
public void setCity_id(String city_id) { this.city_id = city_id; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setCityid(Integer cityid) {\n this.cityid = cityid;\n }", "public void setCityId(String cityId) {\n this.cityId = cityId;\n }", "public void setCityId(Integer cityId) {\n this.cityId = cityId;\n }", "public void setCityId(String cityId) {\r\n this.cityId = cityId;\r...
[ "0.82283676", "0.81818384", "0.8160321", "0.81467825", "0.8140078", "0.80223876", "0.7976071", "0.79596955", "0.78919667", "0.7889154", "0.7889154", "0.7793375", "0.77667123", "0.77307415", "0.77307415", "0.7654237", "0.74851906", "0.74054366", "0.73723364", "0.73723364", "0....
0.8212209
1
Getter method for property county_id.
public String getCounty_id() { return county_id; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Integer getCountyid() {\n return countyid;\n }", "public String getCounty() {\n return county;\n }", "public String getCounty() {\r\n return county;\r\n }", "public void setCounty_id(String county_id) {\n this.county_id = county_id;\n }", "publ...
[ "0.85267824", "0.75896245", "0.75543344", "0.7441724", "0.7398475", "0.7375841", "0.7318324", "0.7174712", "0.69674164", "0.66795325", "0.66133195", "0.6551921", "0.6544021", "0.6538143", "0.63456655", "0.6236509", "0.6234461", "0.61891484", "0.616265", "0.6138509", "0.613617...
0.85489684
0
Setter method for property county_id.
public void setCounty_id(String county_id) { this.county_id = county_id; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setCountyid(Integer countyid) {\n this.countyid = countyid;\n }", "public String getCounty_id() {\n return county_id;\n }", "public Integer getCountyid() {\n return countyid;\n }", "public void setCounty(String county) {\r\n this.county = county;\r\n ...
[ "0.82967085", "0.79711086", "0.7714318", "0.747038", "0.7408011", "0.68587315", "0.6556774", "0.6484521", "0.64519244", "0.6349096", "0.61699015", "0.60692614", "0.6049513", "0.6048673", "0.5980373", "0.5926883", "0.5918588", "0.5879387", "0.5858503", "0.57787025", "0.5715337...
0.82677704
1
Getter method for property isp_id.
public String getIsp_id() { return isp_id; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setIsp_id(String isp_id) {\n this.isp_id = isp_id;\n }", "public String getIsp() {\n return isp;\n }", "@Transient\n\tpublic String getSpId() \t{ \n\t\treturn spId; \n\t}", "@Id\n\t@Column(name = \"SPID\")\n\tpublic Long getId() {\n\t\treturn id;\n\t}", "p...
[ "0.7165216", "0.6590433", "0.64257157", "0.6320056", "0.6287979", "0.61553764", "0.6040382", "0.59749514", "0.5947568", "0.5942288", "0.5906133", "0.5901658", "0.58662975", "0.58357275", "0.58274955", "0.5820604", "0.58109885", "0.57708055", "0.5769818", "0.5754386", "0.57449...
0.8004136
0
Setter method for property isp_id.
public void setIsp_id(String isp_id) { this.isp_id = isp_id; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String getIsp_id() {\n return isp_id;\n }", "public void setIsp(String isp) {\n this.isp = isp;\n }", "public void setSpid(int param){\n localSpidTracker = true;\n \n ...
[ "0.7482968", "0.6745187", "0.5984741", "0.5953492", "0.5885025", "0.57507193", "0.5736361", "0.57315964", "0.57189125", "0.5633409", "0.5614145", "0.55686885", "0.5551069", "0.55443865", "0.5521807", "0.5516741", "0.5429504", "0.54219574", "0.5410374", "0.5410374", "0.5410374...
0.78305686
0
Create the View for the fragment
@Override public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) { View v = inflater.inflate(R.layout.fragment_mentions, container, false); //Inflate the views rvTweets = v.findViewById(R.id.rvTweet); pbNetwork = v.findViewById(R.id.pbNetwork); // finding swiperefresher swipeContainer = v.findViewById(R.id.swipeContainer); return v; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void createFragment() {\n\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View v = inflater.inflate(R.layout.fragment_event, container, false);\n\n\n\n\n\n\n\n\n retur...
[ "0.76026803", "0.75654334", "0.7554897", "0.75405586", "0.7529752", "0.74827135", "0.74821085", "0.7481404", "0.74769145", "0.74746925", "0.74657744", "0.74629635", "0.74535114", "0.7446879", "0.7444739", "0.74410063", "0.7433208", "0.7426764", "0.7410643", "0.7402823", "0.73...
0.0
-1
Triggered only when new data needs to be appended to the list Add whatever code is needed to append new items to the bottom of the list
@Override public void onLoadMore(int page, int totalItemsCount, RecyclerView view) { loadNextDataFromApi(page); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void addNewData(List<PublicPollResponseModel.Data> data) {\n //remove footer view\n this.removeFooterView(footer);\n //Add all data into the adapter\n adapter.addAll(data);\n //Notifies the attached observers that the underlying\n // data has been changed and any Vi...
[ "0.68505", "0.67379105", "0.6576448", "0.64311814", "0.64057314", "0.63982946", "0.6386796", "0.63458884", "0.63386583", "0.63163674", "0.62840456", "0.6283957", "0.62335134", "0.62313133", "0.6194525", "0.6179969", "0.6171727", "0.61328447", "0.6077409", "0.60730094", "0.607...
0.0
-1
Log.d("Twitter Client", response.toString()); iterate through the JSON response
@Override public void onSuccess(int statusCode, Header[] headers, JSONArray response) { for (int i = 0; i < response.length(); i++){ //get json object in the position index //create a tweet object with json object //add the tweet object to the arraylist of tweets //notify changes to adapter Tweet tweet = null; try { tweet = Tweet.fromJson(response.getJSONObject(i)); tweets.add(tweet); adapter.notifyItemInserted(tweets.size() - 1); } catch (JSONException e) { e.printStackTrace(); } if (tweet.uid < maxId){ maxId = tweet.uid; Log.d("MaxId", String.valueOf(maxId)); } swipeContainer.setRefreshing(false); pbNetwork.setVisibility(View.INVISIBLE); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void getTweets(long lastUid) {\n client.getMentionsTimeline(lastUid, new JsonHttpResponseHandler() {\n\n @Override\n public void onSuccess(int statusCode, Header[] headers, JSONArray response) {\n Log.d(\"DEBUG\", response.toString());\n addAll(Tweet.fromJ...
[ "0.6955072", "0.6549677", "0.64857656", "0.62850946", "0.6249039", "0.6172904", "0.6013537", "0.591393", "0.59024686", "0.5895447", "0.58754873", "0.5868207", "0.5848458", "0.5819683", "0.58004844", "0.5795212", "0.5776237", "0.57626206", "0.57582784", "0.5748746", "0.5726633...
0.62587136
4
Send an API request to retrieve appropriate paginated data > Send the request including an offset value (i.e `page`) as a query parameter. > Deserialize and construct new model objects from the API response > Append the new data objects to the existing set of items inside the array of items > Notify the adapter of the new items made with `notifyItemRangeInserted()`
public void loadNextDataFromApi(int offset) { client.getMoreMentionsTimeline(maxId, new JsonHttpResponseHandler(){ @Override public void onSuccess(int statusCode, Header[] headers, JSONArray response) { for (int i = 0; i < response.length(); i++){ //get json object in the position index //create a tweet object with json object //add the tweet object to the arraylist of tweets //notify changes to adapter Tweet tweet = null; try { tweet = Tweet.fromJson(response.getJSONObject(i)); tweets.add(tweet); adapter.notifyItemInserted(tweets.size() - 1); } catch (JSONException e) { e.printStackTrace(); } if (tweet.uid < maxId){ maxId = tweet.uid; Log.d("MaxId", String.valueOf(maxId)); } } } }); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void customLoadMoreDataFromApi(int offset) {\n// Log.d(TAG, \"page = \" + offset);\n populateTimeline();\n // This method probably sends out a network request and appends new data items to your adapter.\n // Use the offset value and add it as a parameter to your API request to re...
[ "0.7743845", "0.7659272", "0.7610936", "0.7462116", "0.6916099", "0.667327", "0.6656219", "0.6655941", "0.64893705", "0.64405465", "0.6359942", "0.6356634", "0.6304199", "0.6304199", "0.6304199", "0.62214047", "0.62214047", "0.61696476", "0.6143117", "0.610857", "0.60638386",...
0.6118358
19
add this after auto skill chooser
public void move() { this.hero.setPF(1); this.hero.setState(this.hero.getMoved()); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void AddNewSkill()\n\t{\n\t\t\n\t}", "public Skills chooseSkill();", "void skill( String key, String value ){\n developer.skills.add( value );\n }", "void skillsComplete( String key ) {\n //do nothing\n }", "public void setSkill(int skill){\n\t\tskillSelection = skill;\n\t}", "@Overr...
[ "0.65066403", "0.6383031", "0.6168633", "0.6141129", "0.6112178", "0.60954046", "0.6081749", "0.5995694", "0.59898126", "0.59837544", "0.5961549", "0.5945116", "0.58764064", "0.58514565", "0.5851289", "0.58343464", "0.5817582", "0.5793228", "0.577374", "0.5738511", "0.5647560...
0.0
-1