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
Create and display window
public WindowAutoLineaging() { setLayout(new GridLayout(1,1)); /* JPanel top=new JPanel(new GridBagLayout()); GridBagConstraints c=new GridBagConstraints(); c.gridy=0; top.add(new JLabel("Lineage "),c); //c.gridy=1; top.add(new JLabel("Channel "),c); c.gridy=1; top.add(new JLabel("Algorithm "),c); c.fill=GridBagConstraints.HORIZONTAL; c.gridx=1; c.weightx=1; c.gridy=0; top.add(comboLin,c); // c.gridy=1; top.add(comboChan,c); c.gridy=1; top.add(comboAlgo,c); */ JComponent top=EvSwingUtil.layoutTableCompactWide( new JLabel("Lineage "),comboLin, new JLabel("Algorithm "),comboAlgo ); panelOptions.setBorder(BorderFactory.createTitledBorder("Options")); add(EvSwingUtil.layoutCompactVertical( top, panelOptions, panelStatus, EvSwingUtil.withLabel("Frame", frameStart), EvSwingUtil.layoutEvenHorizontal(bStartStop,bStep,bFlatten))); comboAlgo.addActionListener(new ActionListener(){ public void actionPerformed(ActionEvent e){updateCurrentAlgo();}}); bStartStop.addActionListener(new ActionListener(){ public void actionPerformed(ActionEvent e){startStop();}}); bStep.addActionListener(new ActionListener(){ public void actionPerformed(ActionEvent e){step();}}); bFlatten.addActionListener(new ActionListener(){ public void actionPerformed(ActionEvent e){flatten();}}); setTitleEvWindow("Auto-lineage"); updateCurrentAlgo(); packEvWindow(); setVisibleEvWindow(true); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void createWindow();", "private void createWindow() throws Exception {\r\n Display.setFullscreen(false);\r\n Display.setDisplayMode(new DisplayMode(WIDTH, HEIGHT));\r\n Display.setTitle(\"Program 2\");\r\n Display.create();\r\n }", "private static void createWindow(){\n tr...
[ "0.83444935", "0.81803524", "0.81128967", "0.7925955", "0.7672075", "0.7644296", "0.7566588", "0.74912447", "0.7418889", "0.741087", "0.72562367", "0.72500366", "0.7241834", "0.72317", "0.7215411", "0.718258", "0.71544653", "0.71061397", "0.7090819", "0.70877707", "0.7078418"...
0.0
-1
Start or stop calculation, depending on if it is running or not
private void startStop() { if(currentAlgo!=null) { if(isRunning()) { bStartStop.setText("Stopping"); thread.toStop=true; currentAlgo.setStopping(true); } else { thread=new SteppingThread(); bStartStop.setText("Stop"); thread.toStop=false; currentAlgo.setStopping(false); thread.start(); } } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void stopCalc();", "@Override\n\tpublic void run()\n\t{\n\t\tstartButton.setEnabled(false);\n\t\ttry {\n\t\t\tlong start = System.nanoTime();\n\t\t\tdouble premium = monteCarlo.runMonteCarlo(callPutFlagField.getText(),\n\t\t\t\t\tDouble.parseDouble(sField.getText()),\n\t\t\t\t\tDouble.parseDouble(xField.g...
[ "0.7154344", "0.65580845", "0.63515365", "0.6174524", "0.6083136", "0.6081943", "0.599628", "0.5992409", "0.5958394", "0.5958394", "0.5958394", "0.5958394", "0.5958394", "0.5958394", "0.5896261", "0.5896261", "0.5896261", "0.5896261", "0.5896261", "0.58457565", "0.58335197", ...
0.5386138
62
Run calculation for one frame
private void step() { if(currentAlgo!=null && !isRunning()) { thread=new SteppingThread(); bStartStop.setText("Stepping"); thread.toStop=true; currentAlgo.setStopping(false); thread.start(); // currentAlgo.setStopping(false); // currentAlgo.run(this); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void computeAnimationFrame(int frame) {\n\t\tFont f = fnt[(frame < nSteps) ? frame : (nSteps - 1)];\r\n\t\ttxt.setFont(f);\r\n\t\tStopSize.set(f.getSize());\r\n\t}", "@Override\n public void run() {\n calculate();\n }", "@Override\n public ...
[ "0.6407965", "0.6229576", "0.61050653", "0.60306597", "0.6028756", "0.6010133", "0.5951373", "0.5875122", "0.5844792", "0.57654035", "0.57227224", "0.57163703", "0.56727886", "0.56705177", "0.560817", "0.55914223", "0.55711675", "0.55660325", "0.5563262", "0.5547769", "0.5537...
0.0
-1
Call when frame has been completed and all data written. Supply the next frame.
public void finishedAndNowAtFrame(final EvDecimal f) { if(SwingUtilities.isEventDispatchThread()) frameStart.setValue(f); else { try { SwingUtilities.invokeAndWait(new Runnable(){ public void run() { frameStart.setValue(f); }}); } catch (Exception e) { e.printStackTrace(); } } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void sendDone()\n\t{\n\t\tmSendBusy = false;\n\t\tStatistics.numPacketsSent++;\n\t\tmWriteHandler.call(mHandlerArg);\n\t}", "private void frameProcessed(){\n if(DEBUG) Log.d(TAG, \"Frame Processed\");\n synchronized (mWaitFrame) {\n mWaitFrame.notifyAll();\n }\n }", "p...
[ "0.64769703", "0.6435577", "0.62825495", "0.61378497", "0.59090555", "0.5886881", "0.57721925", "0.57565325", "0.5728471", "0.5717839", "0.5710683", "0.56998175", "0.5691518", "0.56910706", "0.56732976", "0.56519926", "0.5607766", "0.55712765", "0.5539509", "0.55307436", "0.5...
0.0
-1
Validation for the input the user has put in, must contain some data otherwise the post get rejected, finally creates a news post object and stores into the database
private void verifyPost() { if(TextUtils.isEmpty(newArticleTitle)){ articleTitle.setError("Your post requires a title!"); articleTitle.requestFocus(); return; } if(TextUtils.isEmpty(newArticleContent)){ articleContent.setError("Your post requires a some content!"); articleContent.requestFocus(); return; } // Pass in the calling activity such that official and team news are separated databaseReference = FirebaseDatabase.getInstance().getReference(callingActivity); String postId = databaseReference.push().getKey(); NewsPost newsPost = new NewsPost(newArticleTitle, newArticleContent, newArticlePosterUsername, newArticlePosterProfileImage, dayDate, dayTime); databaseReference.child(postId).setValue(newsPost); // Close the activity finish(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@RequestMapping(value = \"/blog/newpost\", method = RequestMethod.POST)\n\tpublic String newPost(HttpServletRequest request, Model model) {\n\t\tString title=request.getParameter(\"title\");\n\t\tString body=request.getParameter(\"body\");\n\t\t\n\t\t//Validate parameters if not valid send back to form w/ error me...
[ "0.61820495", "0.61237043", "0.60411817", "0.5903163", "0.57931703", "0.5766412", "0.5747927", "0.5746594", "0.5742515", "0.5728436", "0.5692482", "0.567388", "0.5656056", "0.56187403", "0.5569434", "0.5528961", "0.5524752", "0.549812", "0.5495357", "0.54858476", "0.5463967",...
0.7008306
0
Retrieves a long string containing the current date, time and year, then splits this data up into separate strings
private void getDateTime() { String todayDateTime = String.valueOf(Calendar.getInstance().getTime()); // Calendar.getInstance().getTime() returns a long string of various data for today, split and access what we need String[] splitTime = todayDateTime.split(" "); dayDate = splitTime[1] + " " + splitTime[2] + " " + splitTime[5]; // Month, Day, Year dayTime = splitTime[3]; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String getYear(){\n return rssData.getDate().split(\"/\")[2];\n }", "String timeStamp() {\n\n\t\tCalendar now = Calendar.getInstance();\n\n\t\t String y = String.valueOf(now.get(now.YEAR));\n\t\t String mo = String.valueOf(now.get(now.MONTH)+1);\n\t\t String d = String.valueOf(now.get(now.DAY_OF...
[ "0.6392694", "0.61076105", "0.606973", "0.6008441", "0.5984999", "0.593814", "0.58360034", "0.58293045", "0.57782865", "0.57781166", "0.57781166", "0.5777297", "0.5743877", "0.57428473", "0.5739579", "0.5681126", "0.56744653", "0.56652325", "0.5650485", "0.56387526", "0.55728...
0.6019471
3
places the username and profile image for the user into areas on the layout
public void setUserDetails(){ name = firebaseUser.getDisplayName(); username.setText(name); Glide.with(this).load(firebaseUser.getPhotoUrl()).into(profileIcon); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void setupPostUserUIElements() {\n if (prismPost.getPrismUser() != null) {\n Glide.with(context)\n .asBitmap()\n .thumbnail(0.05f)\n .load(prismPost.getPrismUser().getProfilePicture().getLowResProfilePicUri())\n ...
[ "0.70580256", "0.66674817", "0.6379883", "0.63620955", "0.62494206", "0.62416214", "0.6222311", "0.6197106", "0.6193216", "0.6185873", "0.6185739", "0.61287296", "0.611972", "0.610513", "0.60998213", "0.60566837", "0.6049254", "0.6020115", "0.60145897", "0.5989726", "0.598702...
0.6339172
4
Called when the user clicks the 'x', only used for a returning animation
@Override public boolean onSupportNavigateUp() { finish(); overridePendingTransition(R.anim.slide_in_from_top, R.anim.slide_out_from_top); return false; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void click(int x, int y)\n {\n\n if(!clicked)\n {\n if(game.setFirstClickCords(x/50,y/50))\n clicked = true;\n }\n else\n {\n game.move(x/50,y/50);\n clicked = false;\n \n }\n \n re...
[ "0.68341476", "0.67634404", "0.67243433", "0.65798604", "0.6516125", "0.6472713", "0.64407605", "0.6415782", "0.64146954", "0.6329115", "0.63176936", "0.6303715", "0.6276621", "0.6266782", "0.62474114", "0.618764", "0.618764", "0.618764", "0.61732817", "0.6128883", "0.6116881...
0.0
-1
Called when the user clicks the back button on their device, used for returning animation
@Override public void onBackPressed() { finish(); overridePendingTransition(R.anim.slide_in_from_top, R.anim.slide_out_from_top); super.onBackPressed(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void onBackPressed() {\n backbutton();\n }", "@Override\r\n\tpublic void onBackPressed() {\n\t\tbackButtonHandler();\r\n\t\treturn;\r\n\t}", "@Override\n\tpublic void onBackPressed()\n\t\t{\n\t\tbackPressed();\n\t\t}", "void onGoBackButtonClick();", "@Override\n // Detect when the back ...
[ "0.84693694", "0.83643806", "0.8351224", "0.83459264", "0.8316463", "0.8270669", "0.8205896", "0.8189046", "0.81689185", "0.8163292", "0.8119117", "0.8115758", "0.81049055", "0.8101575", "0.8094456", "0.80925363", "0.80925363", "0.8082588", "0.8073411", "0.80624914", "0.80590...
0.81608874
10
Returns if the sensor has been activated
public boolean isActived() { return isActived; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public boolean isActivated()\n {\n return this.activated;\n }", "public boolean isEnabled() {\r\n\t\treturn sensor.isEnabled();\r\n\t}", "public boolean isOn()\n {\n // Check the pin state\n return ledPin.isHigh();\n }", "public boolean IsAvailable()\n\t{\n\t\treturn mbHasAcc...
[ "0.73553777", "0.7349517", "0.70643806", "0.70189625", "0.6994874", "0.69253784", "0.68301517", "0.67852813", "0.678447", "0.67774886", "0.67762464", "0.6767796", "0.6743404", "0.6732371", "0.6706108", "0.66788995", "0.66241276", "0.65982693", "0.6573679", "0.6568425", "0.656...
0.68903416
6
Modifies the state of activity of the robot
public void setActived(boolean isActived) { if( this.isActived == isActived ) modified = false; else { modified = true; this.isActived = isActived; } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setStateOfMovement(int movementState){stateOfMovement = movementState; }", "public void setActivity(Activity activity) {\n lastNeuron().setActivity(activity);\n }", "public CurrentRobotState() {\r\n currentPos = new RobotCoordinates();\r\n motorState = new Motor();\r\n reInitiali...
[ "0.6659783", "0.6607493", "0.62547183", "0.61720026", "0.6146229", "0.613", "0.6123371", "0.6111526", "0.60820204", "0.60727805", "0.60649127", "0.60115546", "0.60074425", "0.59424204", "0.59080946", "0.58918995", "0.5889255", "0.5880553", "0.5873962", "0.5862135", "0.5853665...
0.0
-1
Returns if the sensor has been modified
public boolean isModified() { return modified; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "boolean isOssModified();", "public boolean isChanged() {\r\n return isChanged;\r\n }", "public boolean isChanged()\r\n\t{\r\n\t\treturn changed;\r\n\t}", "public boolean hasChanged();", "public boolean hasChanged();", "boolean isModified();", "boolean isModified();", "public boolean isChanged()...
[ "0.7687855", "0.7571319", "0.75224364", "0.7444817", "0.7444817", "0.7402546", "0.7402546", "0.73666716", "0.73614776", "0.7356448", "0.73442996", "0.7343873", "0.73403144", "0.7282653", "0.7261055", "0.72576797", "0.7248596", "0.7248596", "0.7238588", "0.71721894", "0.716904...
0.7090724
24
Modifies the state of modification of the robot
public void setModified(boolean modified) { this.modified = modified; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public CurrentRobotState() {\r\n currentPos = new RobotCoordinates();\r\n motorState = new Motor();\r\n reInitialize();\r\n }", "public void setStateOfMovement(int movementState){stateOfMovement = movementState; }", "public void updateState();", "abstract public void updateState();", "public fina...
[ "0.69582343", "0.6721131", "0.6599948", "0.65049994", "0.6435449", "0.63839126", "0.6357796", "0.6332786", "0.63182116", "0.62899095", "0.6268082", "0.6265339", "0.6255759", "0.62496126", "0.62197715", "0.6163944", "0.6108583", "0.610275", "0.6076925", "0.6073471", "0.6072551...
0.0
-1
Created by CJ on 2016/12/2.
public interface BaseView { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void perish() {\n \n }", "@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}", "private stendhal() {\n\t}", "@Override\r...
[ "0.6039482", "0.59775454", "0.5928005", "0.5888359", "0.5888359", "0.5880734", "0.58677334", "0.5806551", "0.57698673", "0.57208085", "0.57182324", "0.5688211", "0.56842136", "0.5672228", "0.56638354", "0.5647389", "0.56392395", "0.5637772", "0.56308806", "0.56280166", "0.562...
0.0
-1
Created by Administrator on 2016/9/30.
public interface UserFacade { public void addUser(); public void updateUser(); public void delUser(); public String findUser(String username); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private stendhal() {\n\t}", "@Override\n public void perish() {\n \n }", "@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\r\n\tpublic void tires() {\n\t\t\r\n\t}", "@Override\n\tpublic void entrenar() {\n\t\t\n\t}", "@Ov...
[ "0.6268523", "0.60463226", "0.6019012", "0.5953638", "0.59343326", "0.5925927", "0.5867646", "0.5855301", "0.5831548", "0.58115584", "0.58115584", "0.5802779", "0.5796062", "0.5792902", "0.5792902", "0.5771475", "0.57610875", "0.5753411", "0.5744331", "0.57209104", "0.5710408...
0.0
-1
Constructor for our simple class.
public Animate () { gl = this; use(); init(); // This is kind of funky, we are our own listener for key events addKeyListener( this ); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "Constructor() {\r\n\t\t \r\n\t }", "public Constructor(){\n\t\t\n\t}", "public CyanSus() {\n\n }", "public Basic() {}", "public Demo() {\n\t\t\n\t}", "ConstructorPractice () {\n\t\tSystem.out.println(\"Default Constructor\");\n\t}", "public Chick() {\n\t}", "public Pitonyak_09_02() {\r\n }", "@...
[ "0.81829834", "0.7801357", "0.7757719", "0.75926787", "0.7518349", "0.72615874", "0.7233141", "0.72066504", "0.7197996", "0.7163887", "0.7159377", "0.71443284", "0.71292245", "0.710512", "0.7093944", "0.7075126", "0.706953", "0.7067609", "0.70508736", "0.7040267", "0.7038513"...
0.0
-1
This gets called by the constructor, hopefully only once but it can be called at any time. Called prior to any Window creation so it can only set variables, not draw things
public void init() { /* initialize the widget */ int width = gl.getWidth(); int height = gl.getHeight(); // Initialize the rendering viewport size to OpenGL gl.viewport( 0, 0, width, height ); gl.matrixMode( GL.PROJECTION ); // Set up the camera mode gl.loadIdentity(); // Reset the transformation matrix if (width <= height) gl.ortho (-50.0, 50.0, -50.0*(double)height/(double)width, 50.0*(double)height/(double)width, -1.0, 1.0); else gl.ortho (-50.0*(double)width/(double)height, 50.0*(double)width/(double)height, -50.0, 50.0, -1.0, 1.0); gl.matrixMode( GL.MODELVIEW ); // Reset to model transforms }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n protected void windowInit ()\n {\n }", "public SettingsWindow()\n {\n House.seed = System.currentTimeMillis();\n initWindow();\n showWindows();\n }", "private SettingsWindow() {\n loadData();\n createListeners();\n }", "private void init() {\n\t\n\t\tthis.setS...
[ "0.77613187", "0.7071075", "0.695054", "0.6948069", "0.6942421", "0.6902915", "0.68469954", "0.6840826", "0.6813788", "0.6738569", "0.6705324", "0.66961783", "0.6693891", "0.668273", "0.6679635", "0.6673863", "0.66728574", "0.6664474", "0.6629692", "0.661577", "0.65887475", ...
0.0
-1
Sort of a legacy type function call, actually inside Java This stuff should be in the paint call
public synchronized void display() { // clear the screen and draw a yellow square gl.clear(GL.COLOR_BUFFER_BIT); // First rectangle gl.pushMatrix(); gl.translate(-0.5, 0.0, 0.0); gl.rotate(spin, 0.0, 0.0, 1.0); gl.rect(-0.5, -0.5, 0.5, 0.5); gl.popMatrix(); // Second rectangle gl.pushMatrix(); gl.translate(0.5, 0.0, 0.0); gl.rotate(-spin, 0.0, 0.0, 1.0); gl.rect(-0.5, -0.5, 0.5, 0.5); gl.popMatrix(); gl.flush(); // Make sure all commands have completed. gl.swap(); // Swap the render buffer with the screen buffer }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected void method_2665() {\r\n super.method_2427(awt.field_4171);\r\n this.method_2440(true);\r\n this.method_2521(class_872.field_4244);\r\n }", "ZHDraweeView mo91981h();", "protected void method_2427(awt var1) {\r\n super.method_2427(var1);\r\n }", "@Override\n protected void...
[ "0.62075764", "0.6030599", "0.6023789", "0.59331447", "0.5838312", "0.5827963", "0.58201325", "0.5817597", "0.57943237", "0.5775336", "0.56871593", "0.5682616", "0.5673107", "0.5673107", "0.56726885", "0.5665145", "0.5665145", "0.5662109", "0.5657128", "0.5649777", "0.5645183...
0.0
-1
Simple redirector to our display function
public void paint(Graphics g) { // First call the base class paint method to do a one time // Initialization - specific to the JoglCanvas class super.paint(g); //System.out.println("Call to paint"); display(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void redirect();", "protected void display() {\n\r\n\t}", "public void display() {\n\t\t\n\t}", "public void display() {\n\t\t\n\t}", "public void display()\r\n\t{\r\n\t\t\r\n\t}", "public void display() {\n\t}", "public abstract String redirectTo();", "public void redirect() {\n\t\tRequestContext co...
[ "0.7012096", "0.6461494", "0.6373197", "0.6373197", "0.626218", "0.62552124", "0.6242129", "0.61894494", "0.61820567", "0.61820567", "0.61294645", "0.609858", "0.6097208", "0.6097208", "0.6079109", "0.6079109", "0.60502005", "0.5996472", "0.59866697", "0.59866697", "0.5986669...
0.0
-1
This is where things get started
public static void main( String args[] ) { // Create a new frame to hold the canvas and put it up. Frame fm = new Frame(); Animate b = new Animate(); // Make it visible and set size b.setVisible(true); b.setSize(300, 300); System.out.println("Here we go"); // Add the canvas to the frame and make it show fm.add("Center", b); fm.pack(); fm.show(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void startup();", "void startup();", "private void start() {\n\n\t}", "public void setup() {\n }", "public static void main(String[] args) throws Exception {\n\t\t\t\t\t\t\n\t\t\t\t\n\t\t\t}", "public void setup() {\r\n\r\n\t}", "@Override\n\tpublic void start() {\n\t\t\n\t}", "@Override\n\tpu...
[ "0.6497621", "0.6497621", "0.64848214", "0.635381", "0.6318292", "0.63073343", "0.6300224", "0.6300224", "0.6300224", "0.6300224", "0.62997854", "0.6290927", "0.6290927", "0.62567705", "0.6252597", "0.62331766", "0.61961496", "0.61931586", "0.61922127", "0.6181861", "0.618146...
0.0
-1
Thread thingy to run at start thread
public void run() { try { while(true) { gl.use(); spinDisplay(); Thread.sleep(10); } } catch (InterruptedException e){ // the user sent an interupt, // So lets exit... } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void start() {\n thread = new Thread(this);\n thread.setPriority(Thread.MIN_PRIORITY);\n thread.start();\n }", "public synchronized void startup() {\n\n if (mThread == null) {\n mThread = new CounterThread();\n new Thread(mThread).start();\n }\n ...
[ "0.7388954", "0.7373829", "0.73715985", "0.73682183", "0.73446226", "0.7333709", "0.7328536", "0.7319815", "0.73091257", "0.73012537", "0.72800136", "0.72452897", "0.7234486", "0.72195035", "0.71721584", "0.71707857", "0.7164059", "0.7155123", "0.7149105", "0.7149105", "0.713...
0.0
-1
//////////////////////////////////////// camera/gallery ////////////////////////////////////////// foto
private void chooseDialog() { CharSequence menu[] = new CharSequence[]{"Take From Galery", "Open Camera"}; AlertDialog.Builder builder = new AlertDialog.Builder(this); builder.setTitle("Pick a Picture"); builder.setItems(menu, new DialogInterface.OnClickListener() { @Override public void onClick(DialogInterface dialogInterface, int i) { if (i == 0) { gallery(); } else { takePicture(); } } }); builder.show(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void camara(){\n Intent fotoPick = new Intent(android.provider.MediaStore.ACTION_IMAGE_CAPTURE);\n String fecha = new SimpleDateFormat(\"yyyy_MM_dd_HH_mm_ss\").format(new Date());\n Uri uriSavedImage=Uri.fromFile(new File(getExternalFilesDir(Environment.DIRECTORY_DCIM),\"inmueble_\"+id+...
[ "0.7037627", "0.67548615", "0.6750218", "0.67453617", "0.6734834", "0.67324984", "0.6721272", "0.6715661", "0.67040086", "0.6691527", "0.664161", "0.66236484", "0.66158134", "0.6608774", "0.6605284", "0.6598088", "0.65894634", "0.6585338", "0.6583712", "0.6582774", "0.6579604...
0.0
-1
A method to generate the short url form the given long url and returns it in the 'UrlShortenerResponse'
public UrlShortenerResponse generateShortUrl(String longUrl) { UrlShortenerResponse urlShortenerResponse = new UrlShortenerResponse(); String shortUrl = generateValidatedShortUrl(longUrl); urlShortenerResponse.setShortUrl(shortUrl); urlShortenerResponse.setAgent(getBrowserAgent().toString()); //Saving to database before returning ShortenerMapping shortenerMappings = new ShortenerMapping(); shortenerMappings.setLongUrl(longUrl); shortenerMappings.setShortUrl(shortUrl); shortenerMappings.setBrowserName(getBrowserAgent().toString()); if (!shortenerRepository.existsByLongUrl(longUrl)) { persist(shortenerMappings); } return urlShortenerResponse; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tpublic String shortenUrl(String longUrl){\n\t\tString encodedUrl = \"\";\n\t\tInteger hashKey = (int) UUID.nameUUIDFromBytes(longUrl.getBytes()).getMostSignificantBits();\n\t\tencodedUrl = Integer.toString(hashKey, 36);\n\t\treturn \"http://localhost:8080/URLShortner/short/\" +encodedUrl;\n\t}", "pr...
[ "0.8497104", "0.7479389", "0.7034953", "0.6958208", "0.6881931", "0.6841009", "0.6811488", "0.67766917", "0.67143685", "0.66506934", "0.66249275", "0.6530935", "0.63765657", "0.6349184", "0.63428843", "0.62545997", "0.6248135", "0.6142661", "0.6035323", "0.5994016", "0.585150...
0.8408199
1
A method to generated a validated short key and returns it in a desired url format It checks for existing long urls before creating new short keys and ensures that no two different url formats have the same short url
private String generateValidatedShortUrl(String longUrl) { if (shortenerRepository.existsByLongUrl(longUrl)) return shortenerRepository.findShortenerMappingsByLongUrl(longUrl).getShortUrl(); String shortUrlKey = Utils.generateShortKey(longUrl); while (shortenerRepository.existsByShortUrl(serviceUrl + "/" + shortUrlKey)) { shortUrlKey = generateValidatedShortUrl(longUrl); } return serviceUrl + "/" + shortUrlKey; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tpublic String shortenUrl(String longUrl){\n\t\tString encodedUrl = \"\";\n\t\tInteger hashKey = (int) UUID.nameUUIDFromBytes(longUrl.getBytes()).getMostSignificantBits();\n\t\tencodedUrl = Integer.toString(hashKey, 36);\n\t\treturn \"http://localhost:8080/URLShortner/short/\" +encodedUrl;\n\t}", "pu...
[ "0.69052887", "0.68633336", "0.6700216", "0.6252618", "0.6161795", "0.6048842", "0.6034737", "0.6004985", "0.5984184", "0.5958972", "0.59012926", "0.5871224", "0.58664113", "0.56626457", "0.56551665", "0.56543404", "0.5637857", "0.5586781", "0.55865717", "0.55021936", "0.5465...
0.79610294
0
A method that increases the number of visits by browser for each link
public void increaseNumberOfVisit(String shortUrl) { ShortenerMapping shortenerMappings = shortenerRepository.findShortenerMappingsByShortUrl(shortUrl); shortenerMappings.setVisits(shortenerMappings.getVisits() + 1); Browsers currentVisitingBrowsers = getBrowserAgent(); if (currentVisitingBrowsers == Browsers.CHROME) { shortenerMappings.setChrome(shortenerMappings.getChrome() + 1); } else if (currentVisitingBrowsers == Browsers.FIREFOX) { shortenerMappings.setFirefox(shortenerMappings.getFirefox() + 1); } else if (currentVisitingBrowsers == Browsers.SAFARI) { shortenerMappings.setSafari(shortenerMappings.getSafari() + 1); } else if (currentVisitingBrowsers == Browsers.OPERA) { shortenerMappings.setOpera(shortenerMappings.getOpera() + 1); } else if (currentVisitingBrowsers == Browsers.EDGE) { shortenerMappings.setEdge(shortenerMappings.getEdge() + 1); } else if (currentVisitingBrowsers == Browsers.INTERNET_EXPLORER) { shortenerMappings.setInternet_explorer(shortenerMappings.getInternet_explorer() + 1); } else if (currentVisitingBrowsers == Browsers.POSTMAN) { shortenerMappings.setPostman(shortenerMappings.getPostman() + 1); } else if (currentVisitingBrowsers == Browsers.POWERSHELL) { shortenerMappings.setPowershell(shortenerMappings.getPowershell() + 1); } else { shortenerMappings.setUnknown(shortenerMappings.getUnknown() + 1); } shortenerRepository.save(shortenerMappings); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void updateNumVisits(String url)\r\n\t{\r\n\t\tfor(int i = 0; i < siteVisited; i++)\r\n\t\t{\r\n\t\t\tif (webVisited[0][i].equals(url))\t\t\t\t\t\t\t\t\t//if the url is found in the array\r\n\t\t\t{\r\n\t\t\t\twebVisited[1][i] = (int)webVisited[1][i] + 1;\t\t\t\t\t//increment the number of times user visit...
[ "0.73744625", "0.6994665", "0.64612335", "0.63925266", "0.6183199", "0.5984611", "0.5874234", "0.58400315", "0.58313537", "0.5798437", "0.5761445", "0.57552135", "0.5736226", "0.5719195", "0.56963974", "0.5679555", "0.56672144", "0.56643254", "0.56432915", "0.5614134", "0.557...
0.70768106
1
Created by roman on 23.04.2017.
public interface InputTestReaderListener { public void onNewLine(); public void onColumnCountChanged(int newColumnCount); public void onError(String errorMessage); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void perish() {\n \n }", "private stendhal() {\n\t}", "@Override\n public void func_104112_b() {\n \n }", "private static void cajas() {\n\t\t\n\t}", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "private ...
[ "0.57371044", "0.5655475", "0.5588236", "0.5556619", "0.5545347", "0.5532433", "0.55243844", "0.55051863", "0.5449284", "0.5444569", "0.5444211", "0.5444211", "0.5419197", "0.54019845", "0.53953207", "0.53923726", "0.5384865", "0.5362702", "0.5352318", "0.53522766", "0.534667...
0.0
-1
Student studentLee = new Student("Lee");
public static void main(String[] args) { System.out.println(Student.getSerialNum()); /*Student studentKim = new Student("Kim"); System.out.println(Student.serialNum); System.out.println(Student.serialNum); System.out.println(studentLee.getStudentID()); System.out.println(studentKim.getStudentID()); */ }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "Student(String name){\n this.name = name;\n }", "public Student( String name ) {\n sname=name;\n }", "public Student(){}", "public Student(String name) {\n this.name = name;\n }", "Student createStudent();", "public Student() {\n }", "public Student() {\n }", "publ...
[ "0.7949572", "0.78822494", "0.779472", "0.7787164", "0.77670753", "0.7694893", "0.7694893", "0.7694893", "0.76556945", "0.76371694", "0.7618656", "0.7450184", "0.7412729", "0.73755074", "0.7279025", "0.7278183", "0.7261622", "0.7233803", "0.7227232", "0.70688874", "0.70158863...
0.0
-1
Creates new form Bancos
public Bancos() { initComponents(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@RequestMapping(value = \"/bancos\",\n method = RequestMethod.POST,\n produces = MediaType.APPLICATION_JSON_VALUE)\n @Timed\n public ResponseEntity<Banco> createBanco(@Valid @RequestBody Banco banco) throws URISyntaxException {\n log.debug(\"REST request to save Banco : {}\", banco);\n ...
[ "0.6618652", "0.6380947", "0.6268362", "0.6265906", "0.61476123", "0.61403406", "0.6097561", "0.5992689", "0.598512", "0.59244376", "0.5907012", "0.59045446", "0.59010315", "0.5890206", "0.58723336", "0.5842884", "0.5839187", "0.58379316", "0.58194256", "0.5814436", "0.578407...
0.6576718
1
This method is called from within the constructor to initialize the form. WARNING: Do NOT modify this code. The content of this method is always regenerated by the Form Editor.
@SuppressWarnings("unchecked") // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents private void initComponents() { jTabbedPane3 = new javax.swing.JTabbedPane(); jPanel15 = new javax.swing.JPanel(); jPanel43 = new javax.swing.JPanel(); jLabel96 = new javax.swing.JLabel(); jLabel97 = new javax.swing.JLabel(); jTextField55 = new javax.swing.JTextField(); jTextField56 = new javax.swing.JTextField(); jButton49 = new javax.swing.JButton(); jLabel98 = new javax.swing.JLabel(); jScrollPane22 = new javax.swing.JScrollPane(); jTable20 = new javax.swing.JTable(); jTextField57 = new javax.swing.JTextField(); jButton50 = new javax.swing.JButton(); jButton51 = new javax.swing.JButton(); setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE); jPanel43.setBorder(javax.swing.BorderFactory.createTitledBorder(null, "Bancos", javax.swing.border.TitledBorder.DEFAULT_JUSTIFICATION, javax.swing.border.TitledBorder.DEFAULT_POSITION, new java.awt.Font("Tahoma", 1, 18))); // NOI18N jLabel96.setFont(new java.awt.Font("Tahoma", 0, 14)); // NOI18N jLabel96.setText("Nombre banco"); jLabel97.setFont(new java.awt.Font("Tahoma", 0, 14)); // NOI18N jLabel97.setText("Codigo banco"); jTextField55.setFont(new java.awt.Font("Tahoma", 0, 14)); // NOI18N jTextField56.setFont(new java.awt.Font("Tahoma", 0, 14)); // NOI18N jButton49.setFont(new java.awt.Font("Tahoma", 0, 14)); // NOI18N jButton49.setText("Guardar"); javax.swing.GroupLayout jPanel43Layout = new javax.swing.GroupLayout(jPanel43); jPanel43.setLayout(jPanel43Layout); jPanel43Layout.setHorizontalGroup( jPanel43Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(jPanel43Layout.createSequentialGroup() .addGap(216, 216, 216) .addComponent(jLabel96) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addComponent(jTextField55, javax.swing.GroupLayout.PREFERRED_SIZE, 110, javax.swing.GroupLayout.PREFERRED_SIZE) .addGap(145, 145, 145) .addComponent(jLabel97, javax.swing.GroupLayout.PREFERRED_SIZE, 95, javax.swing.GroupLayout.PREFERRED_SIZE) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addComponent(jTextField56, javax.swing.GroupLayout.PREFERRED_SIZE, 90, javax.swing.GroupLayout.PREFERRED_SIZE) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addComponent(jButton49) .addGap(74, 74, 74)) ); jPanel43Layout.setVerticalGroup( jPanel43Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(jPanel43Layout.createSequentialGroup() .addGap(37, 37, 37) .addGroup(jPanel43Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) .addComponent(jLabel96) .addComponent(jLabel97) .addComponent(jTextField55, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(jTextField56, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(jButton49)) .addContainerGap(33, Short.MAX_VALUE)) ); jLabel98.setFont(new java.awt.Font("Tahoma", 1, 18)); // NOI18N jLabel98.setText("Bancos"); jTable20.setModel(new javax.swing.table.DefaultTableModel( new Object [][] { {null, null, null}, {null, null, null}, {null, null, null}, {null, null, null} }, new String [] { "Codigo banco", "Nombre banco", "Acción" } ) { Class[] types = new Class [] { java.lang.Integer.class, java.lang.String.class, java.lang.Boolean.class }; public Class getColumnClass(int columnIndex) { return types [columnIndex]; } }); jScrollPane22.setViewportView(jTable20); jTextField57.setFont(new java.awt.Font("Tahoma", 0, 14)); // NOI18N jTextField57.setText("Search"); jButton50.setFont(new java.awt.Font("Tahoma", 0, 14)); // NOI18N jButton50.setText("Editar"); jButton51.setFont(new java.awt.Font("Tahoma", 0, 14)); // NOI18N jButton51.setText("Desactivar"); javax.swing.GroupLayout jPanel15Layout = new javax.swing.GroupLayout(jPanel15); jPanel15.setLayout(jPanel15Layout); jPanel15Layout.setHorizontalGroup( jPanel15Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(jPanel15Layout.createSequentialGroup() .addGroup(jPanel15Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel15Layout.createSequentialGroup() .addGap(0, 0, Short.MAX_VALUE) .addComponent(jButton50) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addComponent(jButton51)) .addGroup(jPanel15Layout.createSequentialGroup() .addContainerGap() .addGroup(jPanel15Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(jPanel15Layout.createSequentialGroup() .addComponent(jTextField57, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addGap(0, 0, Short.MAX_VALUE)) .addComponent(jPanel43, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addComponent(jScrollPane22)))) .addContainerGap()) .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel15Layout.createSequentialGroup() .addGap(0, 0, Short.MAX_VALUE) .addComponent(jLabel98) .addGap(511, 511, 511)) ); jPanel15Layout.setVerticalGroup( jPanel15Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(jPanel15Layout.createSequentialGroup() .addContainerGap() .addComponent(jPanel43, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addComponent(jLabel98) .addGap(4, 4, 4) .addComponent(jTextField57, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addComponent(jScrollPane22, javax.swing.GroupLayout.PREFERRED_SIZE, 321, javax.swing.GroupLayout.PREFERRED_SIZE) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED) .addGroup(jPanel15Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) .addComponent(jButton51) .addComponent(jButton50)) .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)) ); jTabbedPane3.addTab("Bancos", jPanel15); javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane()); getContentPane().setLayout(layout); layout.setHorizontalGroup( layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addComponent(jTabbedPane3) ); layout.setVerticalGroup( layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addComponent(jTabbedPane3, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.DEFAULT_SIZE, 591, Short.MAX_VALUE) ); pack(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Form() {\n initComponents();\n }", "public MainForm() {\n initComponents();\n }", "public MainForm() {\n initComponents();\n }", "public MainForm() {\n initComponents();\n }", "public frmRectangulo() {\n initComponents();\n }", "public form() {\n ...
[ "0.73191476", "0.72906625", "0.72906625", "0.72906625", "0.72860986", "0.7248112", "0.7213479", "0.72078276", "0.7195841", "0.71899796", "0.71840525", "0.7158498", "0.71477973", "0.7092748", "0.70800966", "0.70558053", "0.69871384", "0.69773406", "0.69548076", "0.69533914", "...
0.0
-1
Class is a singleton
public static AudioDatabase getDatabase(final Context context) { if (INSTANCE == null) { synchronized (AudioDatabase.class) { if (INSTANCE == null) { INSTANCE = Room.databaseBuilder(context.getApplicationContext(), AudioDatabase.class, "audio_database") .build(); } } } return INSTANCE; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private Singleton(){}", "private SingletonSigar(){}", "@Override\n public boolean isSingleton() {\n return false;\n }", "private Singleton()\n\t\t{\n\t\t}", "private Singleton() { }", "private SingletonSample() {}", "private Singleton() {\n\t}", "private Singleton(){\n }", "static v...
[ "0.81364787", "0.7961246", "0.79574317", "0.78291124", "0.78242815", "0.7814711", "0.77982044", "0.77492213", "0.7749057", "0.7696049", "0.7692165", "0.7635526", "0.76351345", "0.7612986", "0.74948573", "0.74927115", "0.74265516", "0.73774016", "0.72945917", "0.7289576", "0.7...
0.0
-1
Created by Rohan on 04/03/16.
public interface ErisConnectionListener extends ErisInternetConnectionListner{ public void onConnect(boolean value); public void onDisconnect(); public void onException(Exception e); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void perish() {\n \n }", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "private stendhal() {\n\t}", "@Override\n public void func_104112_b() {\n \n }", "public final void mo51373a() {\n }", "@Overri...
[ "0.5960731", "0.58968115", "0.58653647", "0.58373034", "0.57853603", "0.5774148", "0.57516885", "0.57516885", "0.57460594", "0.57349354", "0.5734917", "0.57298505", "0.57265157", "0.57083845", "0.5702838", "0.56789", "0.56613576", "0.56597733", "0.5640565", "0.56358206", "0.5...
0.0
-1
PluginFile pluginFile = new PluginFile(); pluginFile.fileName = apkName; pluginFile.fileAllPath = apkAllPath; List listPlugin = new ArrayList(); listPlugin.add(pluginFile); PluginTools.loadPluginTest(this, listPlugin);
private void startPluginActivity(Context context, DLIntent intent) { DLPluginManager dlPluginManager = DLPluginManager.getInstance(context); if (!dlPluginManager.isHostPackageSet()){ dlPluginManager.setHostPackageName("com.ryg"); } dlPluginManager.startPluginActivity(this, intent); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected void onCreate(Bundle bundle) {\n super.onCreate(bundle);\n this.setContentView(R.layout.auto_upload_plugin_list);\n Intent intent = new Intent(\"com.sonymobile.camera.autoupload.PLUGIN_UPLOAD_SETTING\");\n List list = this.getPackageManager().queryIntentActivities(intent, 128)...
[ "0.64020175", "0.6357079", "0.61597705", "0.5991164", "0.598504", "0.59048396", "0.5879778", "0.5834055", "0.5831188", "0.5785123", "0.5727452", "0.56893855", "0.5670569", "0.5659932", "0.5646144", "0.5631587", "0.5572126", "0.55601144", "0.5557579", "0.5546467", "0.55391014"...
0.0
-1
This class was generated by the JAXWS RI. JAXWS RI 2.2.4b01 Generated source version: 2.2
@WebService(name = "GetAllProductsSoap", targetNamespace = "http://tempuri.org/") @XmlSeeAlso({ ObjectFactory.class }) public interface GetAllProductsSoap { /** * * @return * returns org.tempuri.ArrayOfProductClass */ @WebMethod(operationName = "GetAllProductsList", action = "http://tempuri.org/GetAllProductsList") @WebResult(name = "GetAllProductsListResult", targetNamespace = "http://tempuri.org/") @RequestWrapper(localName = "GetAllProductsList", targetNamespace = "http://tempuri.org/", className = "org.tempuri.GetAllProductsList") @ResponseWrapper(localName = "GetAllProductsListResponse", targetNamespace = "http://tempuri.org/", className = "org.tempuri.GetAllProductsListResponse") public ArrayOfProductClass getAllProductsList(); /** * * @param serviceid * @return * returns org.tempuri.ArrayOfProductClass */ @WebMethod(operationName = "GetProductsByServiceID", action = "http://tempuri.org/GetProductsByServiceID") @WebResult(name = "GetProductsByServiceIDResult", targetNamespace = "http://tempuri.org/") @RequestWrapper(localName = "GetProductsByServiceID", targetNamespace = "http://tempuri.org/", className = "org.tempuri.GetProductsByServiceID") @ResponseWrapper(localName = "GetProductsByServiceIDResponse", targetNamespace = "http://tempuri.org/", className = "org.tempuri.GetProductsByServiceIDResponse") public ArrayOfProductClass getProductsByServiceID( @WebParam(name = "serviceid", targetNamespace = "http://tempuri.org/") String serviceid); /** * * @param zip * @param serviceid * @return * returns org.tempuri.ArrayOfProductClass */ @WebMethod(operationName = "GetProductsByZipAndServiceID", action = "http://tempuri.org/GetProductsByZipAndServiceID") @WebResult(name = "GetProductsByZipAndServiceIDResult", targetNamespace = "http://tempuri.org/") @RequestWrapper(localName = "GetProductsByZipAndServiceID", targetNamespace = "http://tempuri.org/", className = "org.tempuri.GetProductsByZipAndServiceID") @ResponseWrapper(localName = "GetProductsByZipAndServiceIDResponse", targetNamespace = "http://tempuri.org/", className = "org.tempuri.GetProductsByZipAndServiceIDResponse") public ArrayOfProductClass getProductsByZipAndServiceID( @WebParam(name = "serviceid", targetNamespace = "http://tempuri.org/") String serviceid, @WebParam(name = "zip", targetNamespace = "http://tempuri.org/") int zip); /** * * @param zip * @param stateCode * @return * returns org.tempuri.ArrayOfProductClass */ @WebMethod(operationName = "GetEnterpriseProducts", action = "http://tempuri.org/GetEnterpriseProducts") @WebResult(name = "GetEnterpriseProductsResult", targetNamespace = "http://tempuri.org/") @RequestWrapper(localName = "GetEnterpriseProducts", targetNamespace = "http://tempuri.org/", className = "org.tempuri.GetEnterpriseProducts") @ResponseWrapper(localName = "GetEnterpriseProductsResponse", targetNamespace = "http://tempuri.org/", className = "org.tempuri.GetEnterpriseProductsResponse") public ArrayOfProductClass getEnterpriseProducts( @WebParam(name = "state_code", targetNamespace = "http://tempuri.org/") String stateCode, @WebParam(name = "zip", targetNamespace = "http://tempuri.org/") int zip); /** * * @return * returns org.tempuri.ArrayOfProductRate */ @WebMethod(operationName = "GetProductRates", action = "http://tempuri.org/GetProductRates") @WebResult(name = "GetProductRatesResult", targetNamespace = "http://tempuri.org/") @RequestWrapper(localName = "GetProductRates", targetNamespace = "http://tempuri.org/", className = "org.tempuri.GetProductRates") @ResponseWrapper(localName = "GetProductRatesResponse", targetNamespace = "http://tempuri.org/", className = "org.tempuri.GetProductRatesResponse") public ArrayOfProductRate getProductRates(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@WebService(name = \"ZWSVUR_UPDSTATUS\", targetNamespace = \"urn:sap-com:document:sap:rfc:functions\")\r\npublic interface ZWSVURUPDSTATUS {\r\n\r\n\r\n /**\r\n * \r\n * @param iNROLIQ\r\n * @param eRETURN\r\n * @param iESTADO\r\n * @param eMESSAGE\r\n */\r\n @WebMethod(operationName ...
[ "0.65934545", "0.64754117", "0.6259098", "0.62573147", "0.62297916", "0.62122595", "0.62097585", "0.6204365", "0.6203556", "0.6192989", "0.6183288", "0.6172715", "0.616898", "0.61685634", "0.61563957", "0.61555284", "0.61530846", "0.6147452", "0.61455417", "0.613981", "0.6139...
0.60865796
30
/ Implementation of necessary concrete methods
void initializeGame() { // Initialize players // Put the pieces on the board }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n protected void prot() {\n }", "@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}", "@Override\n public void perish() {\n \n }", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n\tpublic void anular(...
[ "0.6535761", "0.6492017", "0.6448271", "0.6388572", "0.6376756", "0.63658607", "0.6254669", "0.6203766", "0.6202524", "0.6202524", "0.61893755", "0.6189346", "0.6170972", "0.616552", "0.6161386", "0.6156584", "0.6150712", "0.6150712", "0.6146286", "0.61058694", "0.60788006", ...
0.0
-1
Process a turn for the player
void makePlay(int player) { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected abstract void takeTurn(int player);", "private void doGameTurn()\n\t{\n\t\tif (!lost && !won)\n\t\t{\n\t\t\trefreshMapAndFrame();\n\t\t\t\n\t\t\tcheckPlayerCondition();\n\t\t\tElementAccess.openExit();\n\t\t\tSystem.out.println(turn);\n\t\t}\n\t\telse if (lost)\n\t\t{\n\t\t\tSound.lost();\n\t\t\trefres...
[ "0.7140055", "0.6821564", "0.6683357", "0.6676291", "0.6623844", "0.6617505", "0.6579626", "0.64931864", "0.64884543", "0.64840686", "0.6414887", "0.6388207", "0.6363089", "0.63373554", "0.63260955", "0.6322895", "0.6321872", "0.6306061", "0.6272946", "0.6258798", "0.6252622"...
0.0
-1
Return true if in Checkmate or Stalemate has been reached
boolean endOfGame() { return false; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public boolean isReached();", "private boolean isCheckMate() {\n if (whitePlayer.getOccupiedSet().isEmpty()) {\n System.out.println(\"BLACK PLAYER WINS\");\n return true;\n }\n else if (blackPlayer.getOccupiedSet().isEmpty()) {\n System.out.println(\"WHITE PL...
[ "0.69540113", "0.68396604", "0.67737955", "0.6556643", "0.6543761", "0.6520296", "0.6466234", "0.63691634", "0.62775195", "0.6264829", "0.6257473", "0.6254159", "0.623106", "0.62250626", "0.6211207", "0.6202754", "0.6197064", "0.6190768", "0.618199", "0.6166564", "0.6166556",...
0.0
-1
Display the winning player
void printWinner() { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void displayPlayerWinnings()\n {\n for(int card = 0; card < playerCardsWon; card++)\n {\n System.out.println(playerWinnings[card].toString());\n }\n }", "public void displayWin()\n {\n if(player1 instanceof GameController){\n player1.gameOver(1);\n } ...
[ "0.8050308", "0.7931476", "0.7679108", "0.7392017", "0.7311062", "0.7264771", "0.7217593", "0.7213316", "0.7106777", "0.70747817", "0.70695734", "0.7051884", "0.7048659", "0.6999533", "0.6996809", "0.6987058", "0.6966568", "0.69568026", "0.6942789", "0.69212455", "0.69155043"...
0.62524825
90
Get shelf collection by given collectionId
void openShelfCollection(String collectionId);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "StoreCollection getOrCreateCollection( String name);", "public SitbMoneyCollection fetchByPrimaryKey(long money_collection_id);", "@Override\n @Transactional(readOnly = true)\n public CollectionDTO findOne(Long id) {\n log.debug(\"Request to get Collection : {}\", id);\n Collection collecti...
[ "0.64426553", "0.6278613", "0.61971813", "0.6094376", "0.60612273", "0.5922049", "0.57260436", "0.5686329", "0.56539226", "0.5535568", "0.54535186", "0.54529357", "0.5441117", "0.5413291", "0.5407496", "0.54016286", "0.5319416", "0.52584875", "0.5162916", "0.51554483", "0.513...
0.71151185
0
Reset the Dragged image
void resetDragImage();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void resetDrag(){\n\t\tsetCurrentPosition( new Point(0,0) );\n\t\tsetScale(1);\n\t\tlengthsYShift = defaultYShift;\n\t}", "public void reset(){\n x = originalX;\n y = originalY;\n dx = originalDX;\n dy = originalDY;\n }", "private void reset()\r\n\t{\r\n\t\t\r\n\t\toriginD...
[ "0.7980747", "0.71572304", "0.6996585", "0.6825022", "0.681558", "0.68146336", "0.68006825", "0.6797748", "0.6729582", "0.6648668", "0.66171104", "0.6611492", "0.6607201", "0.66055167", "0.65746194", "0.65401715", "0.6493289", "0.6484954", "0.6452607", "0.6445661", "0.6434942...
0.9345912
0
Disable the New folder and New collection links in shelf list view
void disableFolderCollectionPanel();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void enableFolderCollectionPanel();", "@Override\r\n\tprotected void setSavedDirectoriesIntoControls() {\n\r\n\t}", "@Override\r\n\tpublic void goToShowList() {\n\t\t\r\n\t}", "@Override\r\n\tvoid setExcludedMenu() {\n\t\tthis.setMenuExclusion(OLBaseTabActivity.RANKINGS_ID);\r\n\t}", "@Override\npublic boo...
[ "0.6925119", "0.5454033", "0.5434121", "0.5431458", "0.5428371", "0.5415064", "0.5405219", "0.5367272", "0.5314632", "0.52923715", "0.52725077", "0.52641034", "0.5233394", "0.5219462", "0.51830417", "0.5182504", "0.5181154", "0.5166418", "0.513125", "0.51258343", "0.5115948",...
0.72229373
0
Enable the New folder and New collection links in shelf list view
void enableFolderCollectionPanel();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@FXML\n private void setDirectoryOfPostVersionLists() {\n setPathToRootOfPostVersionLists();\n indexPostVersionListsInRootPath();\n }", "protected void addFoldersPropertyDescriptor(Object object) {\r\n\t\titemPropertyDescriptors.add\r\n\t\t\t(createItemPropertyDescriptor\r\n\t\t\t\t(((Compose...
[ "0.58522874", "0.5677007", "0.5626302", "0.5617806", "0.5594395", "0.55680877", "0.5545869", "0.5528712", "0.55078936", "0.5504322", "0.55005836", "0.54014987", "0.53922397", "0.5356732", "0.53250676", "0.5293751", "0.5267844", "0.5191294", "0.5187027", "0.514136", "0.5134769...
0.70508224
0
Disable the droppable event for the ShelfCollection.java object
void disableDraggableEvent(String folderLevel, String folderObjectType);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public JsStatement disable()\n\t{\n\t\treturn new JsQuery(getComponent()).$().chain(\"draggable\", \"'disable'\");\n\t}", "public void setDropEnabled(boolean enabled) { this.dropEnabled = enabled; }", "public void setDropped(boolean dropped);", "@Override\n\tpublic void dragDropped() {\n\n\t}", "static voi...
[ "0.6439741", "0.6417542", "0.6090757", "0.60868686", "0.60590893", "0.5963902", "0.59023124", "0.5877198", "0.5860305", "0.5853747", "0.5836571", "0.5822547", "0.57652175", "0.57562435", "0.5704584", "0.5700279", "0.5671628", "0.56704116", "0.5647703", "0.56418025", "0.564134...
0.6989811
0
Sets the default new collection panel text and CSS
void setNewCollectionPanel();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void createYourListsTitle() {\n\t\tjlYourLists = new JLabel(\"PLAYLISTS\");\t\t\n\t\tjlYourLists.setFont(new java.awt.Font(\"Century Gothic\",0, 17));\n\t\tjlYourLists.setForeground(new Color(250,250,250));\n\t}", "@Override\n public void setupPanel()\n {\n\n }", "SummaryPanel() {\r\n\t\tsetLa...
[ "0.5968204", "0.59388167", "0.5932282", "0.5881373", "0.58519596", "0.57887673", "0.5781735", "0.5775343", "0.5769663", "0.5759856", "0.56959593", "0.5694846", "0.56702274", "0.56664807", "0.56661093", "0.56488687", "0.56458026", "0.56439805", "0.56259114", "0.5621821", "0.56...
0.73343694
0
Write your code here
public static void permutations(String input){ permutations("", input); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static void generateCode()\n {\n \n }", "public void logic(){\r\n\r\n\t}", "@Override\n\tprotected void logic() {\n\n\t}", "private static void cajas() {\n\t\t\n\t}", "void pramitiTechTutorials() {\n\t\n}", "public void ganar() {\n // TODO implement here\n }", "@Override\r...
[ "0.6385292", "0.62825674", "0.6094859", "0.59705144", "0.59174407", "0.5879631", "0.58751583", "0.58699447", "0.5869017", "0.58553624", "0.5826625", "0.5825323", "0.58233553", "0.577183", "0.576982", "0.5769503", "0.57691693", "0.5748044", "0.57379705", "0.573767", "0.5728572...
0.0
-1
Returns the button's tag.
public String getTag() { return tag; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public ButtonTag GetButtonTag(){\n if(buttonTag != null) {\n return ButtonTag.valueOf(buttonTag);\n }\n else{\n return null;\n }\n }", "public Button getButton() {\n\t\treturn button;\n\t}", "java.lang.String getTag();", "java.lang.String getTag();", "pu...
[ "0.8392482", "0.69739664", "0.693926", "0.693926", "0.6893823", "0.67902535", "0.67003274", "0.6679001", "0.663521", "0.663521", "0.6633593", "0.6610439", "0.6609509", "0.66028947", "0.659522", "0.6594298", "0.65904945", "0.6587625", "0.6546523", "0.65155417", "0.65155417", ...
0.6547212
18
Sets the button's tag.
public void setTag(String tag) { this.tag = tag; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setTag(String tag);", "public void setTag(Object tag)\n {\n fTag = tag;\n }", "void setTag(java.lang.String tag);", "@Override\n public void setTag(int t) {\n this.tag = t;\n\n }", "public void setTag(int tag) {\n this.tag = tag;\n }", "public void setTag( ...
[ "0.67213386", "0.67171806", "0.6629465", "0.6537264", "0.64621955", "0.6433313", "0.63928014", "0.6373219", "0.63638836", "0.6190935", "0.61505026", "0.6089151", "0.5966935", "0.59536165", "0.5940149", "0.5911693", "0.5906734", "0.5802919", "0.5796413", "0.57909423", "0.57780...
0.6274859
9
This method was generated by MyBatis Generator. This method corresponds to the database table tb_yhzh
public static Yhzh.Builder builder() { return new Yhzh.Builder(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tpublic String getTableName() {\n\t\treturn \"DMDB.GY_DM_ZJLX\";\n\t}", "public List GetSoupKitchenTable() {\n\n //ArrayList<FoodPantry> fpantries = new ArrayList<FoodPantry>();\n\n\n //here we want to to a SELECT * FROM food_pantry table\n MapSqlParameterSource params = new M...
[ "0.60354143", "0.5611922", "0.53955555", "0.53549755", "0.5352391", "0.5344904", "0.5319707", "0.52860206", "0.52838993", "0.52782947", "0.5268295", "0.5266151", "0.5262551", "0.5245395", "0.5237363", "0.5232411", "0.52288324", "0.522008", "0.5201928", "0.5195359", "0.5191921...
0.0
-1
This method was generated by MyBatis Generator. This method corresponds to the database table tb_yhzh
public Builder() { this.obj = new Yhzh(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tpublic String getTableName() {\n\t\treturn \"DMDB.GY_DM_ZJLX\";\n\t}", "public List GetSoupKitchenTable() {\n\n //ArrayList<FoodPantry> fpantries = new ArrayList<FoodPantry>();\n\n\n //here we want to to a SELECT * FROM food_pantry table\n MapSqlParameterSource params = new M...
[ "0.603733", "0.56132084", "0.5395344", "0.5355035", "0.5353118", "0.53449875", "0.5317748", "0.5285874", "0.52854156", "0.52783126", "0.5270925", "0.5267713", "0.5262155", "0.5245577", "0.5236842", "0.5233102", "0.52311546", "0.52205044", "0.52020687", "0.5194909", "0.5194013...
0.0
-1
This method was generated by MyBatis Generator. This method sets the value of the database column tb_yhzh.ZHID
public Builder zhid(String zhid) { obj.setZhid(zhid); return this; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setZhuanjiaid(Integer zhuanjiaid) {\n this.zhuanjiaid = zhuanjiaid;\n }", "public void setZjhm(java.lang.String param) {\r\n localZjhmTracker = param != null;\r\n\r\n this.localZjhm = param;\r\n }", "public void setMu_zhh(java.lang.String param) {\r\n ...
[ "0.59170395", "0.58780044", "0.57311726", "0.57311726", "0.5631301", "0.55755484", "0.5408637", "0.53784597", "0.5362913", "0.53505814", "0.53459114", "0.5331436", "0.5318683", "0.5294098", "0.5275916", "0.5274106", "0.52144134", "0.5211472", "0.51485705", "0.5139304", "0.510...
0.6125079
0
This method was generated by MyBatis Generator. This method sets the value of the database column tb_yhzh.YHID
public Builder yhid(String yhid) { obj.setYhid(yhid); return this; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setYxbh(String yxbh) {\n this.yxbh = yxbh == null ? null : yxbh.trim();\n }", "public void setMu_zhh(java.lang.String param) {\r\n localMu_zhhTracker = param != null;\r\n\r\n this.localMu_zhh = param;\r\n }", "public void setMu_zhh(java.lang.String param) {\r\...
[ "0.5814878", "0.55536497", "0.55536497", "0.5470284", "0.5305622", "0.5292886", "0.52382773", "0.52306837", "0.52305686", "0.5211589", "0.52089757", "0.5204665", "0.51800895", "0.5142896", "0.5114144", "0.51056576", "0.5096126", "0.5077804", "0.50594944", "0.5039111", "0.5022...
0.6278746
0
This method was generated by MyBatis Generator. This method sets the value of the database column tb_yhzh.DLZH
public Builder dlzh(String dlzh) { obj.setDlzh(dlzh); return this; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setMu_zhh(java.lang.String param) {\r\n localMu_zhhTracker = param != null;\r\n\r\n this.localMu_zhh = param;\r\n }", "public void setMu_zhh(java.lang.String param) {\r\n localMu_zhhTracker = param != null;\r\n\r\n this.localMu_zhh = param;\r\n ...
[ "0.56927013", "0.56927013", "0.56558603", "0.5610559", "0.54994535", "0.5221271", "0.51980895", "0.51980895", "0.49332222", "0.49190328", "0.49101144", "0.4902868", "0.48499408", "0.48170328", "0.47769624", "0.47364968", "0.4729169", "0.47118992", "0.46983114", "0.46941888", ...
0.5939709
0
This method was generated by MyBatis Generator. This method sets the value of the database column tb_yhzh.DLMM
public Builder dlmm(String dlmm) { obj.setDlmm(dlmm); return this; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setMu_ddh(java.lang.String param) {\r\n localMu_ddhTracker = param != null;\r\n\r\n this.localMu_ddh = param;\r\n }", "public void setMu_ddh(java.lang.String param) {\r\n localMu_ddhTracker = param != null;\r\n\r\n this.localMu_ddh = param;\r\n ...
[ "0.57431495", "0.57431495", "0.57160664", "0.56221783", "0.55260676", "0.5472662", "0.54451585", "0.53500307", "0.52851015", "0.52301276", "0.5225998", "0.5208572", "0.5208572", "0.51046985", "0.50743717", "0.50677586", "0.50654167", "0.5007431", "0.5000731", "0.49841174", "0...
0.62453955
0
This method was generated by MyBatis Generator. This method sets the value of the database column tb_yhzh.SYPT
public Builder sypt(String sypt) { obj.setSypt(sypt); return this; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setSYND(java.lang.String SYND) {\n this.SYND = SYND;\n }", "public void addSysproperty(Environment.Variable sysp) {\r\n getCommandLine().addSysproperty(sysp);\r\n }", "public void setYylsh(java.lang.String param) {\r\n localYylshTracker = param != null;\r\n\r\n ...
[ "0.58788025", "0.5238477", "0.5229323", "0.5091305", "0.50410783", "0.49838874", "0.49390012", "0.49159056", "0.49027276", "0.48781392", "0.4865868", "0.48202088", "0.47516614", "0.47516605", "0.47330078", "0.47330078", "0.47288924", "0.47251424", "0.46926454", "0.46649894", ...
0.6113662
0
This method was generated by MyBatis Generator. This method sets the value of the database column tb_yhzh.ZHLX
public Builder zhlx(String zhlx) { obj.setZhlx(zhlx); return this; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setZxdhm(java.lang.String param) {\r\n localZxdhmTracker = param != null;\r\n\r\n this.localZxdhm = param;\r\n }", "public void setZjhm(java.lang.String param) {\r\n localZjhmTracker = param != null;\r\n\r\n this.localZjhm = param;\r\n }", "...
[ "0.5638266", "0.5517529", "0.5475137", "0.5411907", "0.5393952", "0.53744805", "0.53250474", "0.5309604", "0.52822965", "0.52822965", "0.526046", "0.52579504", "0.52338356", "0.5149296", "0.5134676", "0.51343894", "0.5125128", "0.50971323", "0.50967664", "0.5092356", "0.50876...
0.61610734
0
This method was generated by MyBatis Generator. This method sets the value of the database column tb_yhzh.ENABLE_STATUS
public Builder enableStatus(String enableStatus) { obj.setEnableStatus(enableStatus); return this; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setActiveStatus(Boolean active){ this.status = active; }", "public void setAdminMigrationStatus(Context context,String strStatus) throws Exception\r\n\t{\r\n\t\tString cmd = \"modify program eServiceSystemInformation.tcl property MigrationR212VariantConfiguration value \"+strStatus;\r\n\t\tMqlUtil.mq...
[ "0.5854671", "0.57705194", "0.5747287", "0.5660517", "0.56302077", "0.56247747", "0.5616015", "0.5606476", "0.55599463", "0.5525221", "0.5525221", "0.54823536", "0.54646254", "0.5454898", "0.5454898", "0.5454898", "0.54038817", "0.53954726", "0.5368441", "0.53470814", "0.5310...
0.5264186
26
This method was generated by MyBatis Generator. This method sets the value of the database column tb_yhzh.DELETE_STATUS
public Builder deleteStatus(String deleteStatus) { obj.setDeleteStatus(deleteStatus); return this; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setDeleteStatus(String deleteStatus) {\n this.deleteStatus = deleteStatus;\n }", "public void delete()\n\t{\n\t\t_Status = DBRowStatus.Deleted;\n\t}", "public String getDeleteStatus() {\n return deleteStatus;\n }", "@Override\n public void deleteStatus(Status s) {\n }", ...
[ "0.64464813", "0.63262826", "0.62370867", "0.56509894", "0.54919183", "0.54809624", "0.5472915", "0.5466137", "0.5466137", "0.5466137", "0.5466137", "0.5466137", "0.5395343", "0.53769827", "0.53527445", "0.5320062", "0.52969617", "0.5296636", "0.5295227", "0.5261199", "0.5254...
0.56877905
3
This method was generated by MyBatis Generator. This method sets the value of the database column tb_yhzh.CREATE_TIME
public Builder createTime(String createTime) { obj.setCreateTime(createTime); return this; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setCreateTime (java.sql.Timestamp createTime) {\r\n\t\tthis.createTime = createTime;\r\n\t}", "public void setCreateTime(Date createTime)\n/* */ {\n/* 184 */ this.createTime = createTime;\n/* */ }", "private void setCreateTime(long createTime) {\n this.createTime = createTime...
[ "0.6944862", "0.6802329", "0.6783773", "0.6760943", "0.6760943", "0.66426957", "0.6636672", "0.6586426", "0.6579971", "0.6571798", "0.6571798", "0.6571798", "0.6571798", "0.6571798", "0.6571798", "0.6552384", "0.6542074", "0.6538206", "0.6518784", "0.6503874", "0.6497008", ...
0.0
-1
This method was generated by MyBatis Generator. This method sets the value of the database column tb_yhzh.CREATE_ID
public Builder createId(String createId) { obj.setCreateId(createId); return this; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Long getCreateId() {\n\t\treturn createId;\n\t}", "public String getCreateId() {\n\t\treturn createId;\n\t}", "public String getCreateId() {\n\t\treturn createId;\n\t}", "public void setCreateId(Long createId) {\n\t\tsetField(\"createId\", createId);\n\t}", "public void setCreateId(String createId) ...
[ "0.62084943", "0.6078081", "0.6078081", "0.60655206", "0.5978598", "0.5978598", "0.5777758", "0.5752673", "0.5739185", "0.56136614", "0.56108576", "0.55907816", "0.54666066", "0.546628", "0.546628", "0.54631025", "0.54631025", "0.54631025", "0.54631025", "0.54631025", "0.5459...
0.52150655
43
This method was generated by MyBatis Generator. This method sets the value of the database column tb_yhzh.UPDATE_TIME
public Builder updateTime(String updateTime) { obj.setUpdateTime(updateTime); return this; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setUpdate_time(Date update_time) {\n this.update_time = update_time;\n }", "public void setUpdate_time(Date update_time) {\n this.update_time = update_time;\n }", "public void setUpdateTime (java.sql.Timestamp updateTime) {\r\n\t\tthis.updateTime = updateTime;\r\n\t}", "public...
[ "0.70917565", "0.70917565", "0.69757515", "0.6789305", "0.6740425", "0.6699183", "0.6699183", "0.6597029", "0.65967953", "0.6545313", "0.65150917", "0.64970183", "0.64970183", "0.64970183", "0.6494303", "0.6494303", "0.64881426", "0.64881426", "0.64862084", "0.64843994", "0.6...
0.0
-1
This method was generated by MyBatis Generator. This method sets the value of the database column tb_yhzh.UPDATE_ID
public Builder updateId(String updateId) { obj.setUpdateId(updateId); return this; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setUpdateId(String updateId) {\r\n this.updateId = updateId;\r\n }", "public void setUpdateId(String updateId) {\r\n this.updateId = updateId;\r\n }", "public void setUpdateId(String updateId) {\n\t\tthis.updateId = updateId == null ? null : updateId.trim();\n\t}", "public voi...
[ "0.6277595", "0.6277595", "0.61644787", "0.61644787", "0.60959786", "0.60959786", "0.6070708", "0.5961416", "0.5951897", "0.5951897", "0.5910323", "0.58115125", "0.5788653", "0.5667642", "0.5658381", "0.5592999", "0.55903095", "0.55824083", "0.5580783", "0.5580783", "0.558078...
0.52148205
76
This method was generated by MyBatis Generator. This method corresponds to the database table tb_yhzh
public Yhzh build() { return this.obj; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tpublic String getTableName() {\n\t\treturn \"DMDB.GY_DM_ZJLX\";\n\t}", "public List GetSoupKitchenTable() {\n\n //ArrayList<FoodPantry> fpantries = new ArrayList<FoodPantry>();\n\n\n //here we want to to a SELECT * FROM food_pantry table\n MapSqlParameterSource params = new M...
[ "0.60356367", "0.56124693", "0.53962386", "0.5355566", "0.5352006", "0.5344612", "0.5318651", "0.5286104", "0.52847433", "0.52783763", "0.52678764", "0.5267239", "0.5263121", "0.5245775", "0.5237332", "0.52327955", "0.52291036", "0.52199924", "0.52016973", "0.5194897", "0.519...
0.0
-1
Creates a new flight route.
public FlightRoute(int flightLength, int minHeight, int maxHeight) throws InvalidFlightPlanException { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@RequestMapping(value = \"/flight/{flightNumber}/**\", method = RequestMethod.POST, produces = {\n\t\t\tMediaType.APPLICATION_XML_VALUE })\n\tpublic Flight createFlight(@PathVariable(\"flightNumber\") String flightNumber, @RequestParam(\"price\") int price,\n\t\t\t@RequestParam(\"from\") String from, @RequestParam...
[ "0.708133", "0.68025154", "0.66559154", "0.65071887", "0.64959544", "0.64501697", "0.63644224", "0.63245445", "0.6276784", "0.6255857", "0.62170494", "0.6189691", "0.6175764", "0.61291814", "0.61122775", "0.6112223", "0.6039016", "0.6033757", "0.60320455", "0.60160977", "0.59...
0.6016561
19
Sets the length of the flight in kilometers. Has to be at least 1 km.
public void setFlightLength(int flightLength) throws InvalidFlightPlanException { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setLength(double newLength) {\n length = newLength;\n }", "public void setLength(double length) {\r\n this.length = length;\r\n }", "public void setLength(double length)\r\n {\r\n this.length = length;\r\n }", "public void setLength(double length) {\n this.le...
[ "0.6821458", "0.68117875", "0.68025017", "0.6785512", "0.67473066", "0.6640935", "0.66260046", "0.6553855", "0.6531532", "0.6523856", "0.6468402", "0.6427932", "0.6427932", "0.61550623", "0.6133759", "0.61228794", "0.6082117", "0.60265076", "0.60265076", "0.6002886", "0.59996...
0.63068944
13
Sets the maximum height the plane is allowed to fly.
public void setMaxHeight(int maxHeight) throws InvalidFlightPlanException { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setHeight(int arg) throws ReadWriteException\n\t{\n\t\tsetValue(_Prefix + HardZone.HEIGHT.toString(), arg);\n\t}", "void setMaxActiveAltitude(double maxActiveAltitude);", "public void setHeight(double value) {\n this.height = value;\n }", "public void setHeight(int value) {\n this.he...
[ "0.68274575", "0.6787504", "0.66764575", "0.6655116", "0.6640406", "0.66099656", "0.65613663", "0.65603507", "0.6527788", "0.6490015", "0.6374332", "0.63633746", "0.63584423", "0.63099355", "0.62869424", "0.6280253", "0.6273799", "0.6270822", "0.6267704", "0.62571424", "0.625...
0.7153276
0
Sets the minimum height the plane is allowed to fly over a town
public void setMinHeight(int minHeight) throws InvalidFlightPlanException { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void setMinActiveAltitude(double minActiveAltitude);", "public void setHeight(int arg) throws ReadWriteException\n\t{\n\t\tsetValue(_Prefix + HardZone.HEIGHT.toString(), arg);\n\t}", "void setHeight(VariableAmount height);", "public void setMinHeight(double aHeight)\n{\n double h = aHeight<=0? 0 : aHeight...
[ "0.6009189", "0.59627426", "0.590355", "0.5807623", "0.5755345", "0.57390404", "0.57234263", "0.5705857", "0.56879807", "0.5667983", "0.5609771", "0.554454", "0.55206215", "0.5517135", "0.5509456", "0.54371005", "0.54218596", "0.54218596", "0.54063594", "0.539857", "0.539857"...
0.6593955
0
Property's owner Main constructor of the Property class At the beginning of the game, each property doesn't have an owner, nor is it mortgaged
public Property(int boardPosition, String name, int value, int rentPrice, int mortgagePrice, int redeemPrice) { this.boardPosition = boardPosition; this.name = name; this.value = value; this.rentPrice = rentPrice; this.mortgagePrice = mortgagePrice; this.isMortgaged = false; this.redeemPrice = redeemPrice; this.owner = null; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public PropertyListManager(TLPropertyOwner owner) {\n super( owner, ModelEventType.PROPERTY_ADDED, ModelEventType.PROPERTY_REMOVED );\n }", "public void setOwner(TLPropertyOwner propertyOwner) {\n this.propertyOwner = propertyOwner;\n }", "public SpotPropertyManager() {\r\n\t\tsuper...
[ "0.67345107", "0.6456882", "0.6402501", "0.6382094", "0.63818043", "0.6316643", "0.63129234", "0.63037753", "0.6166077", "0.60789", "0.60447645", "0.60381323", "0.5989536", "0.5918362", "0.59126246", "0.5875274", "0.5852118", "0.57836026", "0.5763805", "0.5754026", "0.5717841...
0.51591617
86
Start of getters and setters of Property
public int getBoardPosition() { return boardPosition; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private ReadProperty()\r\n {\r\n\r\n }", "private PropertyAccess() {\n\t\tsuper();\n\t}", "@Before(order=0)\n\tpublic void getProperty() {\n\t\tconfigReader = new ConfigReaders();\n\t\tprop = configReader.init_prop();\n\t\t\n\t}", "public void setupProperties() {\n // left empty for subclass to ...
[ "0.68812513", "0.66127414", "0.6524785", "0.6470429", "0.6458618", "0.63361144", "0.63361144", "0.63201654", "0.631863", "0.62329066", "0.6231845", "0.6221441", "0.62010443", "0.61689407", "0.61344", "0.6126154", "0.60964006", "0.608539", "0.6071911", "0.6068573", "0.6057496"...
0.0
-1
End of Getters and setters of Property
@Override public String toString() { return "Property{" + "boardPosition=" + boardPosition + ", name='" + name + '\'' + ", value=" + value + ", rentPrice=" + rentPrice + ", mortgagePrice=" + mortgagePrice + ", isMortgaged=" + isMortgaged + ", redeemPrice=" + redeemPrice + '}'; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n protected void updateProperties() {\n }", "private void endProperty()\n {\n\n }", "private ReadProperty()\r\n {\r\n\r\n }", "@Override\r\n\tpublic void setProperty(Properties prop) {\n\t}", "@Override\n public void updateProperties() {\n // unneeded\n }", "priva...
[ "0.6792639", "0.67878777", "0.67369616", "0.67188257", "0.6680936", "0.6547855", "0.6483152", "0.6447757", "0.64433825", "0.6435738", "0.6435534", "0.642719", "0.6419003", "0.6385957", "0.63260436", "0.631875", "0.6314737", "0.6296118", "0.6276622", "0.6270403", "0.6245371", ...
0.60271686
42
/ JADX WARNING: inconsistent code. / Code decompiled incorrectly, please refer to instructions dump.
void transactTo_uninstallPackage(int code, String transactName, ComponentName who, String packageName, boolean keepData, int userId) { int i = 1; Parcel _data = Parcel.obtain(); Parcel _reply = Parcel.obtain(); try { IBinder binder = ServiceManager.getService("device_policy"); if (binder != null) { if (HWFLOW) { Log.i(TAG, "Transact:" + transactName + "to device policy manager service."); } _data.writeInterfaceToken(ConstantValue.DESCRIPTOR); if (who != null) { _data.writeInt(1); who.writeToParcel(_data, 0); } else { _data.writeInt(0); } _data.writeString(packageName); if (!keepData) { i = 0; } _data.writeInt(i); _data.writeInt(userId); binder.transact(code, _data, _reply, 0); _reply.readException(); } _reply.recycle(); _data.recycle(); } catch (RemoteException localRemoteException) { Log.e(TAG, "transactTo " + transactName + " failed: " + localRemoteException.getMessage()); } catch (Throwable th) { _reply.recycle(); _data.recycle(); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected void method_2241() {\r\n // $FF: Couldn't be decompiled\r\n }", "private void method_7083() {\r\n // $FF: Couldn't be decompiled\r\n }", "protected void method_2145() {\r\n // $FF: Couldn't be decompiled\r\n }", "protected void method_2247() {\r\n // $FF: Couldn't be decom...
[ "0.7616782", "0.75728166", "0.7525724", "0.74507046", "0.74505866", "0.74373597", "0.7381616", "0.7381616", "0.7366568", "0.735341", "0.73420185", "0.73150736", "0.7308675", "0.73055106", "0.7274724", "0.72523946", "0.72216254", "0.71979403", "0.7177258", "0.7136552", "0.7106...
0.0
-1
/ JADX WARNING: inconsistent code. / Code decompiled incorrectly, please refer to instructions dump.
boolean transactTo_isFunctionDisabled(int code, String transactName, ComponentName who, int userId) { Parcel _data = Parcel.obtain(); Parcel _reply = Parcel.obtain(); boolean bDisabled = false; try { IBinder binder = ServiceManager.getService("device_policy"); if (binder != null) { _data.writeInterfaceToken(ConstantValue.DESCRIPTOR); if (who != null) { _data.writeInt(1); who.writeToParcel(_data, 0); } else { _data.writeInt(0); } _data.writeInt(userId); binder.transact(code, _data, _reply, 0); _reply.readException(); bDisabled = _reply.readInt() == 1; } _reply.recycle(); _data.recycle(); } catch (RemoteException localRemoteException) { Log.e(TAG, "transactTo " + transactName + " failed: " + localRemoteException.getMessage()); } catch (Throwable th) { _reply.recycle(); _data.recycle(); } return bDisabled; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected void method_2241() {\r\n // $FF: Couldn't be decompiled\r\n }", "private void method_7083() {\r\n // $FF: Couldn't be decompiled\r\n }", "protected void method_2145() {\r\n // $FF: Couldn't be decompiled\r\n }", "protected void method_2247() {\r\n // $FF: Couldn't be decom...
[ "0.7616782", "0.75728166", "0.7525724", "0.74507046", "0.74505866", "0.74373597", "0.7381616", "0.7381616", "0.7366568", "0.735341", "0.73420185", "0.73150736", "0.7308675", "0.73055106", "0.7274724", "0.72523946", "0.72216254", "0.71979403", "0.7177258", "0.7136552", "0.7106...
0.0
-1
/ JADX WARNING: inconsistent code. / Code decompiled incorrectly, please refer to instructions dump.
boolean transactTo_setFunctionDisabled(int code, String transactName, ComponentName who, boolean disabled, int userId) { int i = 1; Parcel _data = Parcel.obtain(); Parcel _reply = Parcel.obtain(); try { IBinder binder = ServiceManager.getService("device_policy"); if (binder != null) { if (HWFLOW) { Log.i(TAG, "Transact:" + transactName + "to device policy manager service."); } _data.writeInterfaceToken(ConstantValue.DESCRIPTOR); if (who != null) { _data.writeInt(1); who.writeToParcel(_data, 0); } else { _data.writeInt(0); } if (!disabled) { i = 0; } _data.writeInt(i); _data.writeInt(userId); binder.transact(code, _data, _reply, 0); _reply.readException(); } _reply.recycle(); _data.recycle(); } catch (RemoteException localRemoteException) { Log.e(TAG, "transactTo " + transactName + " failed: " + localRemoteException.getMessage()); } catch (Throwable th) { _reply.recycle(); _data.recycle(); } return false; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected void method_2241() {\r\n // $FF: Couldn't be decompiled\r\n }", "private void method_7083() {\r\n // $FF: Couldn't be decompiled\r\n }", "protected void method_2145() {\r\n // $FF: Couldn't be decompiled\r\n }", "protected void method_2247() {\r\n // $FF: Couldn't be decom...
[ "0.76173544", "0.75733525", "0.75262165", "0.7451346", "0.74510956", "0.7437915", "0.7382154", "0.7382154", "0.7367079", "0.7353888", "0.73426217", "0.7315395", "0.7307767", "0.7306053", "0.7273519", "0.72529453", "0.7221846", "0.7198469", "0.71779066", "0.7137063", "0.710652...
0.0
-1
/ JADX WARNING: inconsistent code. / Code decompiled incorrectly, please refer to instructions dump.
void transactTo_execCommand(int code, String transactName, ComponentName who, int userId) { Parcel _data = Parcel.obtain(); Parcel _reply = Parcel.obtain(); try { IBinder binder = ServiceManager.getService("device_policy"); if (binder != null) { if (HWFLOW) { Log.i(TAG, "Transact: " + transactName + " to device policy manager service."); } _data.writeInterfaceToken(ConstantValue.DESCRIPTOR); if (who != null) { _data.writeInt(1); who.writeToParcel(_data, 0); } else { _data.writeInt(0); } _data.writeInt(userId); binder.transact(code, _data, _reply, 0); _reply.readException(); } _reply.recycle(); _data.recycle(); } catch (RemoteException localRemoteException) { Log.e(TAG, "transactTo " + transactName + " failed: " + localRemoteException.getMessage()); } catch (Throwable th) { _reply.recycle(); _data.recycle(); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected void method_2241() {\r\n // $FF: Couldn't be decompiled\r\n }", "private void method_7083() {\r\n // $FF: Couldn't be decompiled\r\n }", "protected void method_2145() {\r\n // $FF: Couldn't be decompiled\r\n }", "protected void method_2247() {\r\n // $FF: Couldn't be decom...
[ "0.76178586", "0.75745016", "0.7527132", "0.7452018", "0.7451632", "0.74388385", "0.73828584", "0.73828584", "0.73678523", "0.7354693", "0.7343335", "0.73163086", "0.73092943", "0.7306793", "0.72746176", "0.7253614", "0.72228837", "0.71988684", "0.7178745", "0.7137457", "0.71...
0.0
-1
/ JADX WARNING: inconsistent code. / Code decompiled incorrectly, please refer to instructions dump.
void transactTo_execCommand(int code, String transactName, ComponentName who, String param, int userId) { Parcel _data = Parcel.obtain(); Parcel _reply = Parcel.obtain(); try { IBinder binder = ServiceManager.getService("device_policy"); if (binder != null) { if (HWFLOW) { Log.i(TAG, "Transact: " + transactName + " to device policy manager service."); } _data.writeInterfaceToken(ConstantValue.DESCRIPTOR); if (who != null) { _data.writeInt(1); who.writeToParcel(_data, 0); } else { _data.writeInt(0); } _data.writeString(param); _data.writeInt(userId); binder.transact(code, _data, _reply, 0); _reply.readException(); } _reply.recycle(); _data.recycle(); } catch (RemoteException localRemoteException) { Log.e(TAG, "transactTo " + transactName + " failed: " + localRemoteException.getMessage()); } catch (Throwable th) { _reply.recycle(); _data.recycle(); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected void method_2241() {\r\n // $FF: Couldn't be decompiled\r\n }", "private void method_7083() {\r\n // $FF: Couldn't be decompiled\r\n }", "protected void method_2145() {\r\n // $FF: Couldn't be decompiled\r\n }", "protected void method_2247() {\r\n // $FF: Couldn't be decom...
[ "0.7616782", "0.75728166", "0.7525724", "0.74507046", "0.74505866", "0.74373597", "0.7381616", "0.7381616", "0.7366568", "0.735341", "0.73420185", "0.73150736", "0.7308675", "0.73055106", "0.7274724", "0.72523946", "0.72216254", "0.71979403", "0.7177258", "0.7136552", "0.7106...
0.0
-1
/ JADX WARNING: inconsistent code. / Code decompiled incorrectly, please refer to instructions dump.
boolean transactTo_execCommand(int code, String transactName, ComponentName who, List<String> param, int userId) { Parcel _data = Parcel.obtain(); Parcel _reply = Parcel.obtain(); try { IBinder binder = ServiceManager.getService("device_policy"); if (binder != null) { if (HWFLOW) { Log.i(TAG, "Transact:" + transactName + " to device policy manager service.code is " + code); } _data.writeInterfaceToken(ConstantValue.DESCRIPTOR); if (who != null) { _data.writeInt(1); who.writeToParcel(_data, 0); } else { _data.writeInt(0); } _data.writeStringList(param); _data.writeInt(userId); binder.transact(code, _data, _reply, 0); _reply.readException(); } _reply.recycle(); _data.recycle(); } catch (RemoteException localRemoteException) { Log.e(TAG, "transactTo " + transactName + " failed: " + localRemoteException.getMessage()); } catch (Throwable th) { _reply.recycle(); _data.recycle(); } return false; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected void method_2241() {\r\n // $FF: Couldn't be decompiled\r\n }", "private void method_7083() {\r\n // $FF: Couldn't be decompiled\r\n }", "protected void method_2145() {\r\n // $FF: Couldn't be decompiled\r\n }", "protected void method_2247() {\r\n // $FF: Couldn't be decom...
[ "0.7616782", "0.75728166", "0.7525724", "0.74507046", "0.74505866", "0.74373597", "0.7381616", "0.7381616", "0.7366568", "0.735341", "0.73420185", "0.73150736", "0.7308675", "0.73055106", "0.7274724", "0.72523946", "0.72216254", "0.71979403", "0.7177258", "0.7136552", "0.7106...
0.0
-1
/ JADX WARNING: inconsistent code. / Code decompiled incorrectly, please refer to instructions dump.
void transactTo_execCommand(int code, String transactName, ComponentName who, Map param, int userId) { Parcel _data = Parcel.obtain(); Parcel _reply = Parcel.obtain(); try { IBinder binder = ServiceManager.getService("device_policy"); if (binder != null) { if (HWFLOW) { Log.i(TAG, "Transact:" + transactName + " to device policy manager service.code is " + code); } _data.writeInterfaceToken(ConstantValue.DESCRIPTOR); if (who != null) { _data.writeInt(1); who.writeToParcel(_data, 0); } else { _data.writeInt(0); } _data.writeMap(param); _data.writeInt(userId); binder.transact(code, _data, _reply, 0); _reply.readException(); } _reply.recycle(); _data.recycle(); } catch (RemoteException localRemoteException) { Log.e(TAG, "transactTo " + transactName + " failed: " + localRemoteException.getMessage()); } catch (Throwable th) { _reply.recycle(); _data.recycle(); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected void method_2241() {\r\n // $FF: Couldn't be decompiled\r\n }", "private void method_7083() {\r\n // $FF: Couldn't be decompiled\r\n }", "protected void method_2145() {\r\n // $FF: Couldn't be decompiled\r\n }", "protected void method_2247() {\r\n // $FF: Couldn't be decom...
[ "0.76173544", "0.75733525", "0.75262165", "0.7451346", "0.74510956", "0.7437915", "0.7382154", "0.7382154", "0.7367079", "0.7353888", "0.73426217", "0.7315395", "0.7307767", "0.7306053", "0.7273519", "0.72529453", "0.7221846", "0.7198469", "0.71779066", "0.7137063", "0.710652...
0.0
-1
/ JADX WARNING: inconsistent code. / Code decompiled incorrectly, please refer to instructions dump.
void transactTo_execCommand(int code, String transactName, ComponentName who, Map param1, String param2, int userId) { Parcel _data = Parcel.obtain(); Parcel _reply = Parcel.obtain(); try { IBinder binder = ServiceManager.getService("device_policy"); if (binder != null) { if (HWFLOW) { Log.i(TAG, "Transact:" + transactName + " to device policy manager service. code is " + code); } _data.writeInterfaceToken(ConstantValue.DESCRIPTOR); if (who != null) { _data.writeInt(1); who.writeToParcel(_data, 0); } else { _data.writeInt(0); } _data.writeMap(param1); _data.writeString(param2); _data.writeInt(userId); binder.transact(code, _data, _reply, 0); _reply.readException(); } _reply.recycle(); _data.recycle(); } catch (RemoteException localRemoteException) { Log.e(TAG, "transactTo " + transactName + " failed: " + localRemoteException.getMessage()); } catch (Throwable th) { _reply.recycle(); _data.recycle(); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected void method_2241() {\r\n // $FF: Couldn't be decompiled\r\n }", "private void method_7083() {\r\n // $FF: Couldn't be decompiled\r\n }", "protected void method_2145() {\r\n // $FF: Couldn't be decompiled\r\n }", "protected void method_2247() {\r\n // $FF: Couldn't be decom...
[ "0.76178586", "0.75745016", "0.7527132", "0.7452018", "0.7451632", "0.74388385", "0.73828584", "0.73828584", "0.73678523", "0.7354693", "0.7343335", "0.73163086", "0.73092943", "0.7306793", "0.72746176", "0.7253614", "0.72228837", "0.71988684", "0.7178745", "0.7137457", "0.71...
0.0
-1
/ JADX WARNING: inconsistent code. / Code decompiled incorrectly, please refer to instructions dump.
void transactTo_configExchangeMail(int code, String transactName, ComponentName who, Bundle para, int userId) { Parcel _data = Parcel.obtain(); Parcel _reply = Parcel.obtain(); try { IBinder binder = ServiceManager.getService("device_policy"); if (binder != null) { if (HWFLOW) { Log.i(TAG, "Transact:" + transactName + "to device policy manager service."); } _data.writeInterfaceToken(ConstantValue.DESCRIPTOR); if (who != null) { _data.writeInt(1); who.writeToParcel(_data, 0); } else { _data.writeInt(0); } para.writeToParcel(_data, 0); _data.writeInt(userId); binder.transact(code, _data, _reply, 0); _reply.readException(); } _reply.recycle(); _data.recycle(); } catch (RemoteException localRemoteException) { Log.e(TAG, "transactTo " + transactName + " failed: " + localRemoteException.getMessage()); } catch (Throwable th) { _reply.recycle(); _data.recycle(); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected void method_2241() {\r\n // $FF: Couldn't be decompiled\r\n }", "private void method_7083() {\r\n // $FF: Couldn't be decompiled\r\n }", "protected void method_2145() {\r\n // $FF: Couldn't be decompiled\r\n }", "protected void method_2247() {\r\n // $FF: Couldn't be decom...
[ "0.7616782", "0.75728166", "0.7525724", "0.74507046", "0.74505866", "0.74373597", "0.7381616", "0.7381616", "0.7366568", "0.735341", "0.73420185", "0.73150736", "0.7308675", "0.73055106", "0.7274724", "0.72523946", "0.72216254", "0.71979403", "0.7177258", "0.7136552", "0.7106...
0.0
-1
/ JADX WARNING: inconsistent code. / Code decompiled incorrectly, please refer to instructions dump.
void transactTo_setDefaultLauncher(int code, String transactName, ComponentName who, String packageName, String className, int userId) { Parcel _data = Parcel.obtain(); Parcel _reply = Parcel.obtain(); try { IBinder binder = ServiceManager.getService("device_policy"); if (binder != null) { if (HWFLOW) { Log.i(TAG, "Transact:" + transactName + "to device policy manager service."); } _data.writeInterfaceToken(ConstantValue.DESCRIPTOR); if (who != null) { _data.writeInt(1); who.writeToParcel(_data, 0); } else { _data.writeInt(0); } _data.writeString(packageName); _data.writeString(className); _data.writeInt(userId); binder.transact(code, _data, _reply, 0); _reply.readException(); } _reply.recycle(); _data.recycle(); } catch (RemoteException localRemoteException) { Log.e(TAG, "transactTo " + transactName + " failed: " + localRemoteException.getMessage()); } catch (Throwable th) { _reply.recycle(); _data.recycle(); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected void method_2241() {\r\n // $FF: Couldn't be decompiled\r\n }", "private void method_7083() {\r\n // $FF: Couldn't be decompiled\r\n }", "protected void method_2145() {\r\n // $FF: Couldn't be decompiled\r\n }", "protected void method_2247() {\r\n // $FF: Couldn't be decom...
[ "0.7616782", "0.75728166", "0.7525724", "0.74507046", "0.74505866", "0.74373597", "0.7381616", "0.7381616", "0.7366568", "0.735341", "0.73420185", "0.73150736", "0.7308675", "0.73055106", "0.7274724", "0.72523946", "0.72216254", "0.71979403", "0.7177258", "0.7136552", "0.7106...
0.0
-1
/ JADX WARNING: inconsistent code. / Code decompiled incorrectly, please refer to instructions dump.
Bitmap transactTo_captureScreen(int code, String transactName, ComponentName who, int userId) { Parcel _data = Parcel.obtain(); Parcel _reply = Parcel.obtain(); Bitmap bitmap = null; try { IBinder binder = ServiceManager.getService("device_policy"); if (binder != null) { if (HWFLOW) { Log.i(TAG, "Transact:" + transactName + "to device policy manager service."); } _data.writeInterfaceToken(ConstantValue.DESCRIPTOR); if (who != null) { _data.writeInt(1); who.writeToParcel(_data, 0); } else { _data.writeInt(0); } _data.writeInt(userId); binder.transact(code, _data, _reply, 0); _reply.readException(); if (_reply.readInt() != 0) { bitmap = (Bitmap) Bitmap.CREATOR.createFromParcel(_reply); } } _reply.recycle(); _data.recycle(); } catch (RemoteException localRemoteException) { Log.e(TAG, "transactTo " + transactName + " failed: " + localRemoteException.getMessage()); } catch (Throwable th) { _reply.recycle(); _data.recycle(); } return bitmap; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected void method_2241() {\r\n // $FF: Couldn't be decompiled\r\n }", "private void method_7083() {\r\n // $FF: Couldn't be decompiled\r\n }", "protected void method_2145() {\r\n // $FF: Couldn't be decompiled\r\n }", "protected void method_2247() {\r\n // $FF: Couldn't be decom...
[ "0.76173544", "0.75733525", "0.75262165", "0.7451346", "0.74510956", "0.7437915", "0.7382154", "0.7382154", "0.7367079", "0.7353888", "0.73426217", "0.7315395", "0.7307767", "0.7306053", "0.7273519", "0.72529453", "0.7221846", "0.7198469", "0.71779066", "0.7137063", "0.710652...
0.0
-1
/ JADX WARNING: inconsistent code. / Code decompiled incorrectly, please refer to instructions dump.
int transactTo_getSDCardEncryptionStatus(int code, String transactName, int userId) { Parcel _data = Parcel.obtain(); Parcel _reply = Parcel.obtain(); int encryptionStatus = 0; try { IBinder binder = ServiceManager.getService("device_policy"); if (binder != null) { if (HWFLOW) { Log.i(TAG, "Transact:" + transactName + " to device policy manager service."); } _data.writeInterfaceToken(ConstantValue.DESCRIPTOR); binder.transact(code, _data, _reply, 0); _reply.readException(); encryptionStatus = _reply.readInt(); } _reply.recycle(); _data.recycle(); } catch (RemoteException localRemoteException) { Log.e(TAG, "transactTo " + transactName + " failed: " + localRemoteException.getMessage()); } catch (Throwable th) { _reply.recycle(); _data.recycle(); } return encryptionStatus; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected void method_2241() {\r\n // $FF: Couldn't be decompiled\r\n }", "private void method_7083() {\r\n // $FF: Couldn't be decompiled\r\n }", "protected void method_2145() {\r\n // $FF: Couldn't be decompiled\r\n }", "protected void method_2247() {\r\n // $FF: Couldn't be decom...
[ "0.76178586", "0.75745016", "0.7527132", "0.7452018", "0.7451632", "0.74388385", "0.73828584", "0.73828584", "0.73678523", "0.7354693", "0.7343335", "0.73163086", "0.73092943", "0.7306793", "0.72746176", "0.7253614", "0.72228837", "0.71988684", "0.7178745", "0.7137457", "0.71...
0.0
-1
/ JADX WARNING: inconsistent code. / Code decompiled incorrectly, please refer to instructions dump.
boolean transactTo_setPolicy(int code, String policyName, String transactName, ComponentName who, int userId, Bundle policyData, int customType) { Parcel _data = Parcel.obtain(); Parcel _reply = Parcel.obtain(); boolean bDisabled = false; try { IBinder binder = ServiceManager.getService("device_policy"); if (binder != null) { if (HWFLOW) { Log.i(TAG, "Transact:" + transactName + " to device policy manager service."); } _data.writeInterfaceToken(ConstantValue.DESCRIPTOR); if (who != null) { _data.writeInt(1); who.writeToParcel(_data, 0); } else { _data.writeInt(0); } _data.writeInt(userId); _data.writeString(policyName); _data.writeBundle(policyData); _data.writeInt(customType); binder.transact(code, _data, _reply, 0); _reply.readException(); bDisabled = _reply.readInt() == 1; } _reply.recycle(); _data.recycle(); } catch (RemoteException localRemoteException) { Log.e(TAG, "transactTo " + transactName + " failed: " + localRemoteException.getMessage()); } catch (Throwable th) { _reply.recycle(); _data.recycle(); } return bDisabled; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected void method_2241() {\r\n // $FF: Couldn't be decompiled\r\n }", "private void method_7083() {\r\n // $FF: Couldn't be decompiled\r\n }", "protected void method_2145() {\r\n // $FF: Couldn't be decompiled\r\n }", "protected void method_2247() {\r\n // $FF: Couldn't be decom...
[ "0.7616782", "0.75728166", "0.7525724", "0.74507046", "0.74505866", "0.74373597", "0.7381616", "0.7381616", "0.7366568", "0.735341", "0.73420185", "0.73150736", "0.7308675", "0.73055106", "0.7274724", "0.72523946", "0.72216254", "0.71979403", "0.7177258", "0.7136552", "0.7106...
0.0
-1
/ JADX WARNING: inconsistent code. / Code decompiled incorrectly, please refer to instructions dump.
Bundle transactTo_getPolicy(int code, String policyName, Bundle keyWords, String transactName, ComponentName who, int userId, int customType) { Parcel _data = Parcel.obtain(); Parcel _reply = Parcel.obtain(); Bundle bundle = null; try { IBinder binder = ServiceManager.getService("device_policy"); if (binder != null) { _data.writeInterfaceToken(ConstantValue.DESCRIPTOR); if (who != null) { _data.writeInt(1); who.writeToParcel(_data, 0); } else { _data.writeInt(0); } _data.writeInt(userId); _data.writeString(policyName); _data.writeBundle(keyWords); _data.writeInt(customType); binder.transact(code, _data, _reply, 0); _reply.readException(); bundle = _reply.readBundle(); } _reply.recycle(); _data.recycle(); } catch (RemoteException localRemoteException) { Log.e(TAG, "transactTo " + transactName + " failed: " + localRemoteException.getMessage()); } catch (Throwable th) { _reply.recycle(); _data.recycle(); } return bundle; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected void method_2241() {\r\n // $FF: Couldn't be decompiled\r\n }", "private void method_7083() {\r\n // $FF: Couldn't be decompiled\r\n }", "protected void method_2145() {\r\n // $FF: Couldn't be decompiled\r\n }", "protected void method_2247() {\r\n // $FF: Couldn't be decom...
[ "0.7616782", "0.75728166", "0.7525724", "0.74507046", "0.74505866", "0.74373597", "0.7381616", "0.7381616", "0.7366568", "0.735341", "0.73420185", "0.73150736", "0.7308675", "0.73055106", "0.7274724", "0.72523946", "0.72216254", "0.71979403", "0.7177258", "0.7136552", "0.7106...
0.0
-1
/ JADX WARNING: inconsistent code. / Code decompiled incorrectly, please refer to instructions dump.
boolean transactTo_removePolicy(int code, String policyName, String transactName, ComponentName who, int userId, int customType) { Parcel _data = Parcel.obtain(); Parcel _reply = Parcel.obtain(); boolean bDisabled = false; try { IBinder binder = ServiceManager.getService("device_policy"); if (binder != null) { if (HWFLOW) { Log.i(TAG, "Transact:" + transactName + " to device policy manager service."); } _data.writeInterfaceToken(ConstantValue.DESCRIPTOR); if (who != null) { _data.writeInt(1); who.writeToParcel(_data, 0); } else { _data.writeInt(0); } _data.writeInt(userId); _data.writeString(policyName); _data.writeInt(customType); binder.transact(code, _data, _reply, 0); _reply.readException(); bDisabled = _reply.readInt() == 1; } _reply.recycle(); _data.recycle(); } catch (RemoteException localRemoteException) { Log.e(TAG, "transactTo " + transactName + " failed: " + localRemoteException.getMessage()); } catch (Throwable th) { _reply.recycle(); _data.recycle(); } return bDisabled; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected void method_2241() {\r\n // $FF: Couldn't be decompiled\r\n }", "private void method_7083() {\r\n // $FF: Couldn't be decompiled\r\n }", "protected void method_2145() {\r\n // $FF: Couldn't be decompiled\r\n }", "protected void method_2247() {\r\n // $FF: Couldn't be decom...
[ "0.76173544", "0.75733525", "0.75262165", "0.7451346", "0.74510956", "0.7437915", "0.7382154", "0.7382154", "0.7367079", "0.7353888", "0.73426217", "0.7315395", "0.7307767", "0.7306053", "0.7273519", "0.72529453", "0.7221846", "0.7198469", "0.71779066", "0.7137063", "0.710652...
0.0
-1
/ JADX WARNING: inconsistent code. / Code decompiled incorrectly, please refer to instructions dump.
boolean transactTo_hasHwPolicy(int code, String transactName, int userId) { Parcel _data = Parcel.obtain(); Parcel _reply = Parcel.obtain(); boolean bDisabled = false; try { IBinder binder = ServiceManager.getService("device_policy"); if (binder != null) { if (HWFLOW) { Log.i(TAG, "Transact:" + transactName + " to device policy manager service."); } _data.writeInterfaceToken(ConstantValue.DESCRIPTOR); _data.writeInt(userId); binder.transact(code, _data, _reply, 0); _reply.readException(); bDisabled = _reply.readInt() == 1; } _reply.recycle(); _data.recycle(); } catch (RemoteException localRemoteException) { Log.e(TAG, "transactTo " + transactName + " failed: " + localRemoteException.getMessage()); } catch (Throwable th) { _reply.recycle(); _data.recycle(); } return bDisabled; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected void method_2241() {\r\n // $FF: Couldn't be decompiled\r\n }", "private void method_7083() {\r\n // $FF: Couldn't be decompiled\r\n }", "protected void method_2145() {\r\n // $FF: Couldn't be decompiled\r\n }", "protected void method_2247() {\r\n // $FF: Couldn't be decom...
[ "0.76178586", "0.75745016", "0.7527132", "0.7452018", "0.7451632", "0.74388385", "0.73828584", "0.73828584", "0.73678523", "0.7354693", "0.7343335", "0.73163086", "0.73092943", "0.7306793", "0.72746176", "0.7253614", "0.72228837", "0.71988684", "0.7178745", "0.7137457", "0.71...
0.0
-1
/ JADX WARNING: inconsistent code. / Code decompiled incorrectly, please refer to instructions dump.
void transactTo_setAccountDisabled(int code, String transactName, ComponentName who, String accountType, boolean disabled, int userId) { int i = 1; Parcel _data = Parcel.obtain(); Parcel _reply = Parcel.obtain(); try { IBinder binder = ServiceManager.getService("device_policy"); if (binder != null) { if (HWFLOW) { Log.i(TAG, "Transact:" + transactName + " to device policy manager service."); } _data.writeInterfaceToken(ConstantValue.DESCRIPTOR); if (who != null) { _data.writeInt(1); who.writeToParcel(_data, 0); } else { _data.writeInt(0); } _data.writeString(accountType); if (!disabled) { i = 0; } _data.writeInt(i); _data.writeInt(userId); binder.transact(code, _data, _reply, 0); _reply.readException(); } _reply.recycle(); _data.recycle(); } catch (RemoteException localRemoteException) { Log.e(TAG, "transactTo " + transactName + " failed: " + localRemoteException.getMessage()); } catch (Throwable th) { _reply.recycle(); _data.recycle(); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected void method_2241() {\r\n // $FF: Couldn't be decompiled\r\n }", "private void method_7083() {\r\n // $FF: Couldn't be decompiled\r\n }", "protected void method_2145() {\r\n // $FF: Couldn't be decompiled\r\n }", "protected void method_2247() {\r\n // $FF: Couldn't be decom...
[ "0.7616782", "0.75728166", "0.7525724", "0.74507046", "0.74505866", "0.74373597", "0.7381616", "0.7381616", "0.7366568", "0.735341", "0.73420185", "0.73150736", "0.7308675", "0.73055106", "0.7274724", "0.72523946", "0.72216254", "0.71979403", "0.7177258", "0.7136552", "0.7106...
0.0
-1
/ JADX WARNING: inconsistent code. / Code decompiled incorrectly, please refer to instructions dump.
boolean transactTo_isAccountDisabled(int code, String transactName, ComponentName who, String accountType, int userId) { Parcel _data = Parcel.obtain(); Parcel _reply = Parcel.obtain(); boolean bDisabled = false; try { IBinder binder = ServiceManager.getService("device_policy"); if (binder != null) { if (HWFLOW) { Log.i(TAG, "Transact:" + transactName + " to device policy manager service."); } _data.writeInterfaceToken(ConstantValue.DESCRIPTOR); if (who != null) { _data.writeInt(1); who.writeToParcel(_data, 0); } else { _data.writeInt(0); } _data.writeString(accountType); _data.writeInt(userId); binder.transact(code, _data, _reply, 0); _reply.readException(); bDisabled = _reply.readInt() == 1; } _reply.recycle(); _data.recycle(); } catch (RemoteException localRemoteException) { Log.e(TAG, "transactTo " + transactName + " failed: " + localRemoteException.getMessage()); } catch (Throwable th) { _reply.recycle(); _data.recycle(); } return bDisabled; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected void method_2241() {\r\n // $FF: Couldn't be decompiled\r\n }", "private void method_7083() {\r\n // $FF: Couldn't be decompiled\r\n }", "protected void method_2145() {\r\n // $FF: Couldn't be decompiled\r\n }", "protected void method_2247() {\r\n // $FF: Couldn't be decom...
[ "0.7616782", "0.75728166", "0.7525724", "0.74507046", "0.74505866", "0.74373597", "0.7381616", "0.7381616", "0.7366568", "0.735341", "0.73420185", "0.73150736", "0.7308675", "0.73055106", "0.7274724", "0.72523946", "0.72216254", "0.71979403", "0.7177258", "0.7136552", "0.7106...
0.0
-1
/ JADX WARNING: inconsistent code. / Code decompiled incorrectly, please refer to instructions dump.
boolean transactTo_formatSDCard(int code, String transactName, ComponentName who, String diskId, int userId) { Parcel _data = Parcel.obtain(); Parcel _reply = Parcel.obtain(); boolean bDisabled = false; try { IBinder binder = ServiceManager.getService("device_policy"); if (binder != null) { if (HWFLOW) { Log.i(TAG, "Transact:" + transactName + " to device policy manager service."); } _data.writeInterfaceToken(ConstantValue.DESCRIPTOR); if (who != null) { _data.writeInt(1); who.writeToParcel(_data, 0); } else { _data.writeInt(0); } _data.writeString(diskId); _data.writeInt(userId); binder.transact(code, _data, _reply, 0); _reply.readException(); bDisabled = _reply.readInt() == 1; } _reply.recycle(); _data.recycle(); } catch (RemoteException localRemoteException) { Log.e(TAG, "transactTo " + transactName + " failed: " + localRemoteException.getMessage()); } catch (Throwable th) { _reply.recycle(); _data.recycle(); } return bDisabled; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected void method_2241() {\r\n // $FF: Couldn't be decompiled\r\n }", "private void method_7083() {\r\n // $FF: Couldn't be decompiled\r\n }", "protected void method_2145() {\r\n // $FF: Couldn't be decompiled\r\n }", "protected void method_2247() {\r\n // $FF: Couldn't be decom...
[ "0.76173544", "0.75733525", "0.75262165", "0.7451346", "0.74510956", "0.7437915", "0.7382154", "0.7382154", "0.7367079", "0.7353888", "0.73426217", "0.7315395", "0.7307767", "0.7306053", "0.7273519", "0.72529453", "0.7221846", "0.7198469", "0.71779066", "0.7137063", "0.710652...
0.0
-1
/ JADX WARNING: inconsistent code. / Code decompiled incorrectly, please refer to instructions dump.
boolean transactTo_installCertificateWithType(int code, String transactName, ComponentName who, int type, byte[] certBuffer, String name, String password, int flag, boolean requestAccess, int userId) { Parcel _data = Parcel.obtain(); Parcel _reply = Parcel.obtain(); boolean bDisabled = false; try { IBinder binder = ServiceManager.getService("device_policy"); if (binder != null) { if (HWFLOW) { Log.i(TAG, "Transact:" + transactName + " to device policy manager service."); } _data.writeInterfaceToken(ConstantValue.DESCRIPTOR); if (who != null) { _data.writeInt(1); who.writeToParcel(_data, 0); } else { _data.writeInt(0); } _data.writeInt(type); _data.writeInt(certBuffer.length); _data.writeByteArray(certBuffer); _data.writeString(name); _data.writeString(password); _data.writeInt(flag); _data.writeInt(requestAccess ? 1 : 0); _data.writeInt(userId); binder.transact(code, _data, _reply, 0); _reply.readException(); bDisabled = _reply.readInt() == 1; } _reply.recycle(); _data.recycle(); } catch (RemoteException localRemoteException) { Log.e(TAG, "transactTo " + transactName + " failed: " + localRemoteException.getMessage()); } catch (Throwable th) { _reply.recycle(); _data.recycle(); } return bDisabled; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected void method_2241() {\r\n // $FF: Couldn't be decompiled\r\n }", "private void method_7083() {\r\n // $FF: Couldn't be decompiled\r\n }", "protected void method_2145() {\r\n // $FF: Couldn't be decompiled\r\n }", "protected void method_2247() {\r\n // $FF: Couldn't be decom...
[ "0.76178586", "0.75745016", "0.7527132", "0.7452018", "0.7451632", "0.74388385", "0.73828584", "0.73828584", "0.73678523", "0.7354693", "0.7343335", "0.73163086", "0.73092943", "0.7306793", "0.72746176", "0.7253614", "0.72228837", "0.71988684", "0.7178745", "0.7137457", "0.71...
0.0
-1
Interface that provides the Pruning service. ArchPrune is responsible for taking a selector file that has extraneous Types and ArchStructures and then subsequently removing any those elements.
public interface IPruner { /** * This is the function that is responsible for calling the pruning algorithm. The algorithm * will hierarchically traverse through the architectural elements and discover which elements * are not linked up to architecture and need to be "pruned." All elements in the document * are cloned before pruning so that the original document is not altered. The result is a document * containing only the structures and types used in the architecture. Additionally, the pruner * removes any version graph whose internal nodes are not referenced by any type included in the * selected architecture. * * @param archURI This is the URL of the xADL document that needs to be pruned * @param targetArchURI This is the URL of the new xADL document that will be created and store the pruned architecture * @param startingID This is the ID of the element that the pruning algorithm should start from * @param isStructural If this is true then the startingID is that of an archStruct, otherwise it is an * ID to a type * * @throws InvalidURIException If the provided URL to open an xArch document is invalid * @throws InvalidElementIDException If the provided starting ID is invalid * @throws MissingElementException If an expected element is missing * @throws MissingAttributeException If an expected attribute on an element is missing * @throws BrokenLinkException If a link between elements does not match up or exist */ public void prune(String archURI, String targetArchURI, String startingID, boolean isStructural) throws InvalidURIException, InvalidElementIDException, MissingElementException, MissingAttributeException, BrokenLinkException; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void prune() {\n\n }", "public void prune(String archURI, String targetArchURI, String startingID, boolean isStructural)\r\n\t\tthrows InvalidURIException, InvalidElementIDException, MissingElementException, \r\n\t\t\t\tMissingAttributeException, BrokenLinkException;", "@Override\n\tpublic void runPrune(Str...
[ "0.6093891", "0.5755273", "0.5727251", "0.56685156", "0.546502", "0.49463785", "0.48221594", "0.47888732", "0.47440547", "0.46775785", "0.4646934", "0.46426016", "0.45637015", "0.45570546", "0.45376652", "0.45312777", "0.4480662", "0.4463963", "0.444115", "0.4424815", "0.4366...
0.7218356
0
This is the function that is responsible for calling the pruning algorithm. The algorithm will hierarchically traverse through the architectural elements and discover which elements are not linked up to architecture and need to be "pruned." All elements in the document are cloned before pruning so that the original document is not altered. The result is a document containing only the structures and types used in the architecture. Additionally, the pruner removes any version graph whose internal nodes are not referenced by any type included in the selected architecture.
public void prune(String archURI, String targetArchURI, String startingID, boolean isStructural) throws InvalidURIException, InvalidElementIDException, MissingElementException, MissingAttributeException, BrokenLinkException;
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public interface IPruner\r\n{\r\n\t/**\r\n\t * This is the function that is responsible for calling the pruning algorithm. The algorithm\r\n\t * will hierarchically traverse through the architectural elements and discover which elements\r\n\t * are not linked up to architecture and need to be \"pruned.\" All ele...
[ "0.7360515", "0.589508", "0.5299492", "0.4841235", "0.4759646", "0.46838668", "0.46049982", "0.45910013", "0.45424724", "0.4522721", "0.45144618", "0.4497308", "0.44781074", "0.4467669", "0.4458369", "0.44473645", "0.44095814", "0.4359929", "0.43529373", "0.43449226", "0.4343...
0.60333145
1
Display the first 500 characters of the response string. mTextView.setText("Response is: "+ response.substring(0,500));
@Override public void onResponse(String response) { Log.d(TAG, "onResponse: " + response); parseResponse(response,speech); ChatHeadService.chatHead.setImageResource(R.drawable.microphone_standby ); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void onResponse(String response) {\n mTextView.setText(\"Response is: \" + response);\n }", "@Override\n public void onResponse(String response)\n {\n httpReturn.setText(\"RESPOSTA:\\n...
[ "0.7305845", "0.6839376", "0.67129576", "0.65606844", "0.6392109", "0.63723135", "0.6242821", "0.61157644", "0.60808", "0.60800576", "0.60782886", "0.60296637", "0.5990445", "0.5968086", "0.5938068", "0.5899088", "0.58967453", "0.58585024", "0.5846855", "0.58401346", "0.58348...
0.5730161
29
Pour chaque field, calculer le vecteur moyenne
public static double[][] calculerVecteursMoyenne(List<Field> fields) { double[][] result = new double[fields.size()][]; for (int i = 0 ; i < fields.size() ; i ++) { result[i] = calculerVecteurMoyenne(fields.get(i)); } return result; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public double calculateField(double aSide);", "double getField3();", "float getField2();", "long getNumericField();", "long getField1();", "public java.math.BigDecimal getField_737();", "@Override\r\n public double obtenerVolumen() {\n return Math.pow(getA(), 3);//eleva al cubo\r\n }", "...
[ "0.63981783", "0.638224", "0.6190693", "0.61876225", "0.59065616", "0.5848836", "0.5829129", "0.5778053", "0.5771421", "0.5705172", "0.570094", "0.5627858", "0.56154037", "0.55706024", "0.5569832", "0.5567896", "0.5549175", "0.5532902", "0.5530151", "0.55250967", "0.5523984",...
0.5815628
7
Retourne l'indice des n plus grandes eigen values
public static int[] getBiggestEigensValuesIndex(double[][] matriceCovariance, int count) { int[] biggest = new int[count]; RealMatrix matrix = MatrixUtils.createRealMatrix(matriceCovariance); EigenDecomposition decomposition = new EigenDecomposition(matrix); double[] eaganValues = decomposition.getRealEigenvalues(); Arrays.sort(eaganValues); for (int i = eaganValues.length - 1, j = 0; i >= (eaganValues.length - count); i--, j++) { biggest[j] = i; } return biggest; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public double getEigenValue(int i) {\n\t\treturn eigenvalues[i];\n\t}", "public double[] eigenValues(){\n if(!this.pcaDone)this.pca();\n return this.eigenValues;\n }", "public Vector getImagEigenvalues() {\n return e;\n }", "public int[] eigenValueIndices(){\n if(!this.pcaDone)thi...
[ "0.6883839", "0.68546", "0.66822964", "0.66370827", "0.61830086", "0.6152375", "0.6139874", "0.59819406", "0.5786532", "0.5741248", "0.56813216", "0.56808597", "0.56805354", "0.5617752", "0.5607428", "0.5542996", "0.5488568", "0.54098266", "0.5398658", "0.5358831", "0.5358379...
0.49574098
60
A boolean election to specify whether provided that, where a party is governed by a system of law which does not permit the termination of one or more Transactions to occur following an Event of Default specified in Section 5(a)(vii)(1), (3), (4), (5), (6) or, to extent analogous thereto, (8) ,then the Automatic Early Termination provisions of Section 6(a) shall apply to such party.
Boolean getFallbackAET();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public boolean isElected(){\n\treturn (synState == SynCT.IAM_THE_CENTER);\n }", "@Override\n\tpublic boolean identifiesOffense() {\n\t\treturn false;\n\t}", "public void testRingElection() {\n \t\tfinal RingElection model = new RingElection();\n \t\tfinal Formula checkAtMostOneElected = model.declsAndFacts(...
[ "0.5793665", "0.55713636", "0.5546526", "0.5446275", "0.53886855", "0.53772247", "0.5371835", "0.536087", "0.53606486", "0.53526497", "0.5338274", "0.5322206", "0.5275946", "0.5271022", "0.5249683", "0.52460563", "0.524073", "0.5236494", "0.52203596", "0.5213525", "0.5208805"...
0.0
-1
A boolean attribute to specify whether if an Early Termination Date occurs because Automatic Early Termination applies in respect of a party, the Defaulting Party shall indemnify the Non defaulting Party, on demand, against any losses, costs, expenses or damages that the Non defaulting Party incurs (to the extent not already taken into account in Section 6(e)) in relation to terminating, liquidating, establishing or re establishing any hedge or related positions as result of movements of rates, indices, prices, yields, volatilities, spreads or other market data between the Early Termination Date and the Local Business Day on which the Nondefaulting Party becomes aware that the Early Termination Date has occurred
Boolean getIndemnity();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public boolean DefaultEffectiveDate() throws Exception {\n\t\tboolean status = false;\n\t\tString sCurrentDate = SCRCommon.ReturnCurrentDate();\n\t\tstatus = common.SafeAction(Common.o.getObject(\"edtAutoIdCardEndorsementEffDate\"), sCurrentDate, \"edt\");\n\t\treturn status;\n\t}", "@Override\r\n public bool...
[ "0.5780334", "0.5671278", "0.55870694", "0.553707", "0.550221", "0.5421195", "0.5407364", "0.5374435", "0.53699166", "0.5351912", "0.5312638", "0.5312489", "0.5304523", "0.5265442", "0.5246521", "0.5233715", "0.52237767", "0.5213717", "0.5203381", "0.5179935", "0.5179672", ...
0.48961917
48
The party election specific to the Automatic Early Termination Clause.
List<? extends AutomaticEarlyTerminationElection> getPartyElection();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void testRingElection() {\n \t\tfinal RingElection model = new RingElection();\n \t\tfinal Formula checkAtMostOneElected = model.declsAndFacts().and(model.atMostOneElected().not());\n \t\tfinal Solution sol = solve(checkAtMostOneElected, model.bounds(5,10));\n //\t\tUNSATISFIABLE\n //\t\tp cnf 8665 29590 \n...
[ "0.56210333", "0.5610805", "0.5488055", "0.54447865", "0.53510475", "0.5253815", "0.5176524", "0.5159752", "0.51565427", "0.5130292", "0.5117514", "0.5095063", "0.5070092", "0.50357825", "0.50188494", "0.49213606", "0.4918488", "0.48843613", "0.4796496", "0.47822484", "0.4769...
0.66665065
0
Min Cost path from cell (i,j) to cell m1,n1
private static int MinCostPath(int arr[][],int i,int j) { int m = arr.length; int n = arr[0].length; if(i==m-1 && j==n-1) { return arr[i][j]; } if(i>=m || j>=n) { return Integer.MAX_VALUE; } int op1 = MinCostPath(arr, i,j+1); int op2 = MinCostPath(arr,i+1,j+1); int op3 = MinCostPath(arr,i+1,j); return arr[i][j] + Math.min(op1,Math.min(op2,op3)); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void minimum()\n\t{\n\t\tfor(int i=0;i<n;i++)\n\t\t{\n\t\t\tif(rowTick[i]==8888)\n\t\t\t{\n\t\t\t\tfor(int j=0;j<n;j++)\n\t\t\t\t{\n\t\t\t\t\tif(columnTick[j]==0)\n\t\t\t\t\t{\n\t\t\t\t\t\tif(cost[i][j]<min)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tmin=cost[i][j];\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}...
[ "0.6693748", "0.6658156", "0.66018486", "0.6515025", "0.64506364", "0.63350415", "0.63091505", "0.6296494", "0.62613034", "0.6260195", "0.61743355", "0.61565757", "0.6101998", "0.6092122", "0.60667527", "0.6050745", "0.6012184", "0.60094905", "0.5979308", "0.59448844", "0.592...
0.746186
0
Provider pattern for dependency inversion.
public interface ILdapUpdaterServicesProvider { @Nonnull ILdapService getLdapService() throws OsgiServiceUnavailableException; @Nonnull LdapUpdaterPreferencesService getPreferencesService(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "Dependency createDependency();", "Dependency createDependency();", "public interface VersionManager {\n\n /**\n * Sleeping versions\n * @return list of versions or empty list\n */\n public List<Version> getUnreleasedVersions();\n\n /**\n * Released versions\n * @return list of vers...
[ "0.6362574", "0.6362574", "0.628894", "0.62519765", "0.6246675", "0.6246675", "0.6242629", "0.6225419", "0.6126063", "0.60925144", "0.60825443", "0.60561484", "0.60048807", "0.59995276", "0.5993666", "0.5941302", "0.5917087", "0.58585376", "0.5845042", "0.5824615", "0.5798002...
0.0
-1
/ 1. 4 birds are sitting on a branch. 1 flies away. How many birds are left on the branch? EXAMPLE:
public static void main(String[] args) { int initialNumberOfBirds = 4; int birdsThatFlewAway = 1; int remainingNumberOfBirds = initialNumberOfBirds - birdsThatFlewAway; /* 2. There are 6 birds and 3 nests. How many more birds are there than nests? */ // ### EXAMPLE: int numberOfBirds = 6; int numberOfNests = 3; int numberOfExtraBirds = numberOfBirds - numberOfNests; /* 3. 3 raccoons are playing in the woods. 2 go home to eat dinner. How many raccoons are left in the woods? */ int raccoonsPlaying = 3; int raccoonsThatWentHome = 2; int raccoonsLeft = raccoonsPlaying - raccoonsThatWentHome; /* 4. There are 5 flowers and 3 bees. How many less bees than flowers? */ int flowers = 5; int bees = 3; int difference = flowers - bees; /* 5. 1 lonely pigeon was eating breadcrumbs. Another pigeon came to eat breadcrumbs, too. How many pigeons are eating breadcrumbs now? */ int pigeonEating = 1; int pigeonThatJoinedToEat = 1; int totalOfPigeonsEating = pigeonEating + pigeonThatJoinedToEat; /* 6. 3 owls were sitting on the fence. 2 more owls joined them. How many owls are on the fence now? */ int owlsSittingOnFence = 3; int owlsThatJoined = 2; int totalOwlsOnFence = owlsSittingOnFence + owlsThatJoined; /* 7. 2 beavers were working on their home. 1 went for a swim. How many beavers are still working on their home? */ int beaversWorking = 2; int beaversSwimming = 1; int beaversLeftWorking = beaversWorking - beaversSwimming; /* 8. 2 toucans are sitting on a tree limb. 1 more toucan joins them. How many toucans in all? */ int toucansSitting = 2; int toucansThatJoined = 1; int totalToucans = toucansSitting + toucansThatJoined; /* 9. There are 4 squirrels in a tree with 2 nuts. How many more squirrels are there than nuts? */ int squirrelsInTreesWithNuts = 4; int nuts = 2; int differenceBetweenSquirrelsAndNuts = squirrelsInTreesWithNuts - nuts; /* 10. Mrs. Hilt found a quarter, 1 dime, and 2 nickels. How much money did she find? */ int quarter = 25; int dime = 10; int nickel = 5; int numberOfNickels = 2; float totalAmount = (float)(quarter + dime + (nickel * numberOfNickels))/100; /* 11. Mrs. Hilt's favorite first grade classes are baking muffins. Mrs. Brier's class bakes 18 muffins, Mrs. MacAdams's class bakes 20 muffins, and Mrs. Flannery's class bakes 17 muffins. How many muffins does first grade bake in all? */ int brierClassMuffin = 18; int macAdamClassMuffin = 20; int flanneryClassMuffin = 17; int hiltFirstGradeTotalMuffins = brierClassMuffin + macAdamClassMuffin + flanneryClassMuffin; /* 12. Mrs. Hilt bought a yoyo for 24 cents and a whistle for 14 cents. How much did she spend in all for the two toys? */ int yoyoCost = 24; int whistleCost = 14; float totalCostToys = (float)(yoyoCost + whistleCost)/100; /* 13. Mrs. Hilt made 5 Rice Krispie Treats. She used 8 large marshmallows and 10 mini marshmallows.How many marshmallows did she use altogether? */ int largeMarshmallows = 8; int miniMarshmallows = 10; int totalMarshmallows = largeMarshmallows + miniMarshmallows; /* 14. At Mrs. Hilt's house, there was 29 inches of snow, and Brecknock Elementary School received 17 inches of snow. How much more snow did Mrs. Hilt's house have? */ int hiltHouseSnow = 29; int brecknockSchoolSnow = 17; int snowDifferenceAtHiltHouse = hiltHouseSnow - brecknockSchoolSnow; /* 15. Mrs. Hilt has $10. She spends $3 on a toy truck and $2 on a pencil case. How much money does she have left? */ int hiltTotalMoney = 10; int toyTruckCost = 3; int pencilCaseCost = 2; int hiltMoneyLeft = hiltTotalMoney - toyTruckCost - pencilCaseCost; /* 16. Josh had 16 marbles in his collection. He lost 7 marbles. How many marbles does he have now? */ int joshTotalMarbles = 16; int joshLostMarbles = 7; int joshRemainingMarbles = joshTotalMarbles - joshLostMarbles; /* 17. Megan has 19 seashells. How many more seashells does she need to find to have 25 seashells in her collection? */ int meganSeashells = 19; int desiredSeashells = 25; int numberSeashellsNeeded = desiredSeashells - meganSeashells; /* 18. Brad has 17 balloons. 8 balloons are red and the rest are green. How many green balloons does Brad have? */ int bradBallons = 17; int bradRedBallons = 8; int bradGreenBallons = bradBallons - bradRedBallons; /* 19. There are 38 books on the shelf. Marta put 10 more books on the shelf. How many books are on the shelf now? */ int shelfBooks = 38; int addedBooks = 10; int totalShelfBooks = shelfBooks + addedBooks; /* 20. A bee has 6 legs. How many legs do 8 bees have? */ int beeLegs = 6; int beesRightHere = 8; int totalLegs = beeLegs * beesRightHere; /* 21. Mrs. Hilt bought an ice cream cone for 99 cents. How much would 2 ice cream cones cost? */ int iceCreamCost = 99; int amountIceCream = 2; float totalIceCreamCost = (float)(iceCreamCost * amountIceCream) /100; /* 22. Mrs. Hilt wants to make a border around her garden. She needs 125 rocks to complete the border. She has 64 rocks. How many more rocks does she need to complete the border? */ int hiltRocksOwned = 64; int hiltRocksGoal = 125; int hiltRocksNeeded = hiltRocksGoal - hiltRocksOwned; /* 23. Mrs. Hilt had 38 marbles. She lost 15 of them. How many marbles does she have left? */ int hiltMarbles = 38; int hiltMissedMarbles = 15; int hiltMarblesLeft = hiltMarbles - hiltMissedMarbles; /* 24. Mrs. Hilt and her sister drove to a concert 78 miles away. They drove 32 miles and then stopped for gas. How many miles did they have left to drive? */ int concertDistance = 78; int milesDriven = 32; int milesLeft = concertDistance - milesDriven; /* 25. Mrs. Hilt spent 1 hour and 30 minutes shoveling snow on Saturday morning and 45 minutes shoveling snow on Saturday afternoon. How much total time did she spend shoveling snow? */ int hourToMinutes = 1 * 60; int remainingMinutes = 75; int totalTimeMinutes = hourToMinutes + remainingMinutes; float totalTimeHours = (float)totalTimeMinutes / 60; /* 26. Mrs. Hilt bought 6 hot dogs. Each hot dog cost 50 cents. How much money did she pay for all of the hot dogs? */ int hotDogsBought = 6; int hotDogCost = 50; float totalHotDogsCost = (float) (hotDogsBought * hotDogCost) /100; /* 27. Mrs. Hilt has 50 cents. A pencil costs 7 cents. How many pencils can she buy with the money she has? */ float hiltCash = 0.50f; float pencilCost = 0.07f; int pencilsAcquirable = (int) (hiltCash / pencilCost) ; /* 28. Mrs. Hilt saw 33 butterflies. Some of the butterflies were red and others were orange. If 20 of the butterflies were orange, how many of them were red? */ int butterfliesSaw = 33; int orangeButterflies = 20; int redButterflies = butterfliesSaw - orangeButterflies; /* 29. Kate gave the clerk $1.00. Her candy cost 54 cents. How much change should Kate get back? */ int moneyGivenInCents = 1 * 100; int productCostInCents = 54; float change = (float) (moneyGivenInCents - productCostInCents) /100; /* 30. Mark has 13 trees in his backyard. If he plants 12 more, how many trees will he have? */ int treesInBackyard = 13; int treesPlanted = 12; int totalTrees = treesInBackyard + treesPlanted; /* 31. Joy will see her grandma in two days. How many hours until she sees her? */ int daysLeft = 2; int hoursInDay = 24; int hoursLeft = daysLeft * hoursInDay; /* 32. Kim has 4 cousins. She wants to give each one 5 pieces of gum. How much gum will she need? */ int kimCousins = 4; int gumToEach = 5; int gumNeeded = kimCousins * gumToEach; /* 33. Dan has $3.00. He bought a candy bar for $1.00. How much money is left? */ int danCash = 3; int candyBarCost = 1; int cashLeft = danCash - candyBarCost; /* 34. 5 boats are in the lake. Each boat has 3 people. How many people are on boats in the lake? */ int boatsInLake = 5; int peopleInEachBoat = 3; int peopleInBoats = boatsInLake * peopleInEachBoat; /* 35. Ellen had 380 legos, but she lost 57 of them. How many legos does she have now? */ int ellenLegos = 380; int legosLost = 57; int legosLeft = ellenLegos - legosLost; /* 36. Arthur baked 35 muffins. How many more muffins does Arthur have to bake to have 83 muffins? */ int arthurBakedMuffins = 35; int arthurGoalMuffins = 83; int muffinsLeftToBake = arthurGoalMuffins - arthurBakedMuffins; /* 37. Willy has 1400 crayons. Lucy has 290 crayons. How many more crayons does Willy have then Lucy? */ int willyCrayons = 1400; int lucyCrayons = 290; int differenceInCrayons = willyCrayons - lucyCrayons; /* 38. There are 10 stickers on a page. If you have 22 pages of stickers, how many stickers do you have? */ int stickersOnPage = 10; int numberOfPages = 22; int totalStickers = stickersOnPage * numberOfPages; /* 39. There are 96 cupcakes for 8 children to share. How much will each person get if they share the cupcakes equally? */ int totalCupcakes = 96; int totalChildren = 8; int shareOfCupcakes = totalCupcakes / totalChildren; /* 40. She made 47 gingerbread cookies which she will distribute equally in tiny glass jars. If each jar is to contain six cookies each, how many cookies will not be placed in a jar? */ int totalGingerbread = 47; int jarCapacity = 6; int cookiesLeftOutside = totalGingerbread % jarCapacity; /* 41. She also prepared 59 croissants which she plans to give to her 8 neighbors. If each neighbor received and equal number of croissants, how many will be left with Marian? */ int totalCroissants = 59; int neighboorsToGetCroissants = 8; int croissantsLeftToMarian = totalCroissants % neighboorsToGetCroissants; /* 42. Marian also baked oatmeal cookies for her classmates. If she can place 12 cookies on a tray at a time, how many trays will she need to prepare 276 oatmeal cookies at a time? */ int oatmealCookiesGoal = 276; int trayCookieCapacity = 12; int traysNeeded = oatmealCookiesGoal / trayCookieCapacity; /* 43. Marian’s friends were coming over that afternoon so she made 480 bite-sized pretzels. If one serving is equal to 12 pretzels, how many servings of bite-sized pretzels was Marian able to prepare? */ int totalPretzels = 480; int oneServing = 12; int amountsOfServing = totalPretzels / oneServing; /* 44. Lastly, she baked 53 lemon cupcakes for the children living in the city orphanage. If two lemon cupcakes were left at home, how many boxes with 3 lemon cupcakes each were given away? */ int lemonCupcakes = 53; int cupcakesLeftAtHome = 2; int cupcakesInABox = 3; int boxesGiven = (lemonCupcakes - cupcakesLeftAtHome) / cupcakesInABox; /* 45. Susie's mom prepared 74 carrot sticks for breakfast. If the carrots were served equally to 12 people, how many carrot sticks were left uneaten? */ int carrotSticks = 74; int peopleEating = 12; int carrotLeftOut = carrotSticks % peopleEating; /* 46. Susie and her sister gathered all 98 of their teddy bears and placed them on the shelves in their bedroom. If every shelf can carry a maximum of 7 teddy bears, how many shelves will be filled? */ int teddyBears = 98; int shelfCapacity = 7; int numberOfShelvesFilled = teddyBears / shelfCapacity; /* 47. Susie’s mother collected all family pictures and wanted to place all of them in an album. If an album can contain 20 pictures, how many albums will she need if there are 480 pictures? */ int albumCapacity = 20; int pictures = 480; int albumsNeeded = pictures / albumCapacity; /* 48. Joe, Susie’s brother, collected all 94 trading cards scattered in his room and placed them in boxes. If a full box can hold a maximum of 8 cards, how many boxes were filled and how many cards are there in the unfilled box? */ int tradingCards = 94; int boxCapacity = 8; int boxesFilled = tradingCards % boxCapacity; /* 49. Susie’s father repaired the bookshelves in the reading room. If he has 210 books to be distributed equally on the 10 shelves he repaired, how many books will each shelf contain? */ int numberOfBooks = 210; int shelvesAvailable = 10; int booksPerShelf = numberOfBooks / shelvesAvailable; /* 50. Cristina baked 17 croissants. If she planned to serve this equally to her seven guests, how many will each have? */ int croissants = 17; int guests = 7; int croissantsPerGuest = croissants / guests; /* CHALLENGE PROBLEMS */ /* Bill and Jill are house painters. Bill can paint a 12 x 14 room in 2.15 hours, while Jill averages 1.90 hours. How long will it take the two painter working together to paint 5 12 x 14 rooms? Hint: Calculate the hourly rate for each painter, combine them, and then divide the total walls in feet by the combined hourly rate of the painters. Challenge: How many days will it take the pair to paint 623 rooms assuming they work 8 hours a day?. */ float billFeetTimeHourly = (12*14) / 2.15f; float jillFeetTimeHourly = (12*14) /1.90f; float hourlyFeetRateCombined = billFeetTimeHourly + jillFeetTimeHourly ; float wallsFeetCombined = 5 * (12*14) / hourlyFeetRateCombined; float finalAnswer = wallsFeetCombined; //challenge below float daysFor623Rooms = 623 * (12*14) / (hourlyFeetRateCombined * 8); /* Create and assign variables to hold your first name, last name, and middle initial. Using concatenation, build an additional variable to hold your full name in the order of last name, first name, middle initial. The last and first names should be separated by a comma followed by a space, and the middle initial must end with a period. Example: "Hopper, Grace B." */ String firstName = "William"; String lastName = "Rabuske"; String middleInitial = "M"; String fullName = lastName + "," + " " + firstName + " " + middleInitial + "."; /* The distance between New York and Chicago is 800 miles, and the train has already travelled 537 miles. What percentage of the trip has been completed? Hint: The percent completed is the miles already travelled divided by the total miles. Challenge: Display as an integer value between 0 and 100 using casts. */ int distanceBetweenCities = 800; int distanceTravelled = 537; float completed = (float) distanceTravelled / distanceBetweenCities; int percentageCompleted = (int)(completed * 100); System.out.println(percentageCompleted); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public int getBranchCount() { return _brcnt; }", "public static void main(String[] args) {\n\t\tint initialNumberOfBirds = 4;\n\t\tint birdsThatFlewAway = 1;\n\t\tint remainingNumberOfBirds = initialNumberOfBirds - birdsThatFlewAway;\n\t\tSystem.out.println(remainingNumberOfBirds);\n /*\n 2. There ...
[ "0.70540315", "0.6716137", "0.6658754", "0.664274", "0.64237607", "0.6382252", "0.6362318", "0.63418996", "0.63358957", "0.6314783", "0.6313576", "0.6154829", "0.6149297", "0.6127593", "0.60850114", "0.60597134", "0.6040223", "0.5950217", "0.5948379", "0.5937689", "0.5911728"...
0.65408003
4
This property determines if credit card verification numbers are required by the application. Many credit cards have a card verification number printed, not embossed, on the card. This number is never transferred during card swipes and should be known only by the cardholder. Each card association has its own name for this number. Visa calls it the Card Verification Value (CVV2), and MasterCard calls it the Card Validation Code (CVC2). Visa and MasterCard print the number on the back of the card. American Express and Discover call it the Card Identification Digits (CID).
public boolean isRequireCreditCardVerification() { return mRequireCreditCardVerification; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setRequireCreditCardVerification(boolean pRequireCreditCardVerification) {\n mRequireCreditCardVerification = pRequireCreditCardVerification;\n }", "public Boolean isPrimaryCreditCard();", "public String getCardRequired() {\n return cardRequired1;\n }", "public void validateCreditNu...
[ "0.6390376", "0.6167717", "0.6061427", "0.60347295", "0.60281324", "0.60122806", "0.58949727", "0.58268714", "0.5791281", "0.57902837", "0.5787843", "0.5723047", "0.5715088", "0.5703851", "0.56845534", "0.5654916", "0.565443", "0.5584306", "0.554471", "0.5531143", "0.55263114...
0.6806387
0