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
We need to create an AES key for EVERY message
public void sendMessage(View view) { String ownFingerprint = PreferenceManager .getDefaultSharedPreferences(getBaseContext()) .getString("KEY_FINGERPRINT", "Key not found"); EditText editText = (EditText)findViewById(R.id.edit_message); EncryptedMessage em = new EncryptedMessage( fingerprint, editText.getText().toString(), this); Log.d("MESSAGE submitter", ownFingerprint); Log.d("MESSAGE destination", em.getDestination()); Log.d("MESSAGE key", em.getEncryptedAesKey()); Log.d("MESSAGE encrypted", em.getEncryptedMessage()); Log.d("MESSAGE IV", em.getIv()); this.adapter.add(editText.getText().toString()); // Creating HTTP client DefaultHttpClient httpClient = new DefaultHttpClient(); // Creating HTTP Post HttpPost httpPost = new HttpPost(sendMessageURL); // Building post parameters // key and value pair List<NameValuePair> nameValuePair = new ArrayList<NameValuePair>(2); nameValuePair.add(new BasicNameValuePair("origin", ownFingerprint)); nameValuePair.add(new BasicNameValuePair("destination", em.getDestination())); nameValuePair.add(new BasicNameValuePair("key", em.getEncryptedAesKey())); nameValuePair.add(new BasicNameValuePair("vector", em.getIv())); nameValuePair.add(new BasicNameValuePair("message", em.getEncryptedMessage())); // Url Encoding the POST parameters try { httpPost.setEntity(new UrlEncodedFormEntity(nameValuePair)); } catch (UnsupportedEncodingException e) { // writing error to Log e.printStackTrace(); } // Making HTTP Request try { HttpResponse response = httpClient.execute(httpPost); // writing response to log Log.d("Http Response:", response.toString()); } catch (ClientProtocolException e) { // writing exception to log e.printStackTrace(); } catch (IOException e) { // writing exception to log e.printStackTrace(); } editText.setText(""); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static Key generateAESKey(final byte[] key) {\n return new AesKey(key);\n }", "@Test\n public void testAesEncryptForInputKey() throws Exception {\n byte[] key = Cryptos.generateAesKey();\n String input = \"foo message\";\n\n byte[] encryptResult = Cryptos.aesEncrypt(input...
[ "0.6794334", "0.67295253", "0.6716428", "0.6691493", "0.66810596", "0.66762686", "0.66524976", "0.6641701", "0.6567719", "0.6549723", "0.6519654", "0.6359847", "0.6358506", "0.63468903", "0.6344418", "0.63124275", "0.6285382", "0.6277058", "0.626138", "0.62354726", "0.6214642...
0.0
-1
return false if user is not suscribed
public boolean getUsuarioSuscrito(){ return !(suscribirClientBean.getUsuarioSuscrito(idOferta).length == 0); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tpublic boolean isUser(User user) {\n\t\treturn false;\n\t}", "@Override\n public boolean isUser() {\n return false;\n }", "public boolean isUser()\n\t{\n\t\treturn (id != -1);\n\t}", "private boolean correctUser() {\n // TODO mirar si l'usuari es unic a la base de dades\n ...
[ "0.7613435", "0.7378753", "0.7370544", "0.7351822", "0.72930163", "0.72930163", "0.72930163", "0.72930163", "0.72930163", "0.72930163", "0.72930163", "0.7068371", "0.7068371", "0.7026108", "0.6998292", "0.69851696", "0.69801617", "0.6973114", "0.6957981", "0.69559747", "0.695...
0.0
-1
initialize a duke object and run it
public static void main(String[] args) throws DukeException { new Duke("data/tasks.txt").run(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Duke(String filePath) {\n this.storage = new Storage(filePath);\n\n TaskList tmpTaskList;\n boolean tmpIsLoadedFromDisk;\n try {\n tmpTaskList = new TaskList(storage.load());\n tmpIsLoadedFromDisk = true;\n } catch (DukeException e) {\n tmp...
[ "0.6589819", "0.6409272", "0.64080924", "0.6388248", "0.63726276", "0.63260835", "0.62746847", "0.6270717", "0.6238325", "0.61446166", "0.6030088", "0.5986126", "0.59571064", "0.5952825", "0.5941619", "0.5902712", "0.5825249", "0.58234936", "0.5778279", "0.5724521", "0.570555...
0.5566762
34
Create new views (invoked by the layout manager)
@Override public RecyclerView.ViewHolder onCreateViewHolder(ViewGroup parent, int viewType) { View view = LayoutInflater.from(parent.getContext()).inflate(R.layout.story, parent, false); return new ViewHolder(view); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "View createView();", "private void addViews() {\n\t}", "@Override\n public void Create() {\n\n initView();\n }", "ViewContainer createViewContainer();", "private void createView() {\n\t\tTabWidget tWidget = (TabWidget) findViewById(android.R.id.tabs);\r\n\t\tshowLayout = (LinearLayout) LayoutI...
[ "0.73330516", "0.7290258", "0.72524214", "0.6896963", "0.6842908", "0.67892873", "0.6757536", "0.66984254", "0.6675081", "0.66690147", "0.6597825", "0.658943", "0.65769076", "0.6563808", "0.6537989", "0.6486454", "0.6471762", "0.64565444", "0.64475906", "0.64475906", "0.63975...
0.0
-1
get element from your DataSet at this position replace the contents of the view with that element Making Object
@Override public void onBindViewHolder(RecyclerView.ViewHolder holder, int position) { dbNEw = new DbAryan(mContext); final ViewHolder viewHolder = (ViewHolder) holder; final Model modelTest = (Model) contactParentsList.get(position); viewHolder.txtTitle.setText(modelTest.getTitle()); //Declared in Fields sharedPreferences = mContext.getSharedPreferences(PREF_SETTINGS_KEY, MODE_PRIVATE); chosenFont = sharedPreferences.getString(PREF_FONT, "Default"); chosenFontSize = sharedPreferences.getString(PREF_FONT_SIZE, "Default"); if (chosenFont == null) chosenFont = "Default"; switch (chosenFont) { case "Default": break; case "font/ALGER.TTF": viewHolder.txtTitle.setTypeface(Typeface.createFromAsset(mContext.getAssets(), "font/ALGER.TTF")); break; case "font/ITCBLKAD.TTF": viewHolder.txtTitle.setTypeface(Typeface.createFromAsset(mContext.getAssets(), "font/ITCBLKAD.TTF")); break; case "font/ITCKRIST.TTF": viewHolder.txtTitle.setTypeface(Typeface.createFromAsset(mContext.getAssets(), "font/ITCKRIST.TTF")); break; } if (chosenFontSize == null) chosenFontSize = "Default"; switch (chosenFontSize) { case "Default": break; case 13 + "": viewHolder.txtTitle.setTextSize(13); break; case 17 + "": viewHolder.txtTitle.setTextSize(17); break; case 20 + "": viewHolder.txtTitle.setTextSize(20); break; } //Adding Image Drawable d; try { // get input stream InputStream ims = mContext.getAssets().open(modelTest.getImageName() + ".jpg"); // load image as Drawable d = Drawable.createFromStream(ims, null); // set image to ImageView } catch (IOException ex) { return; } viewHolder.imgEachTitle.setImageDrawable(d); viewHolder.rltv.setOnClickListener(new View.OnClickListener() { @Override public void onClick(View v) { Intent intent = new Intent(mContext, ShowStory_Activity.class); intent.putExtra("Title", modelTest.getTitle()); intent.putExtra("Content", modelTest.getContent()); intent.putExtra("imageName", modelTest.getImageName()); mContext.startActivity(intent); } }); viewHolder.imgFAVE.setOnClickListener(new View.OnClickListener() { @Override public void onClick(View v) { switch (modelTest.getFave()) { case "0": modelTest.setFave("1"); viewHolder.imgFAVE.setImageResource(R.drawable.full_star); Splash.db.updateContactTest(modelTest.getId(),modelTest.getFave()); Toast.makeText(mContext,R.string.add_to_favorite, Toast.LENGTH_SHORT).show(); break; case "1": modelTest.setFave("0"); viewHolder.imgFAVE.setImageResource(R.drawable.empry_star); Splash.db.updateContactTest(modelTest.getId(),modelTest.getFave()); Toast.makeText(mContext, R.string.remove_from_fave, Toast.LENGTH_SHORT).show(); break; } } }); switch (modelTest.getFave()) { case "0": viewHolder.imgFAVE.setImageResource(R.drawable.empry_star); break; case "1": viewHolder.imgFAVE.setImageResource(R.drawable.full_star); break; } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void onBindViewHolder(DetailAdapter.ViewHolder holder, int position) {\n // - get element from your dataset at this position\n // - replace the contents of the view with that element\n //holder.mTextView.setText(mDataset[position]);\n holder.informacion.setText(mDa...
[ "0.5788672", "0.560918", "0.55316645", "0.55189246", "0.5511008", "0.538376", "0.5374371", "0.5359311", "0.5359231", "0.5336825", "0.5315739", "0.52926916", "0.5292342", "0.5292023", "0.5273709", "0.5265235", "0.5258763", "0.5258316", "0.5246756", "0.5241016", "0.52284586", ...
0.0
-1
Return the size of your DataSet (invoked by the layout manager)
@Override public int getItemCount() { return contactParentsList.size(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public int dataSize() {\n\t\treturn _dataSet.dataSize();\n\t}", "public int getMaxSize(){\n\t\treturn ds.length;\n\t}", "public int getDataSize() {\n\t\treturn (int)this.getSize(data);\n\t}", "public int dimensions() {\n return this.data[0].length;\n }", "@Override\n\tpublic int getSize() {\n\t\t...
[ "0.71140784", "0.7042257", "0.6934779", "0.6844951", "0.67670906", "0.6639744", "0.6639744", "0.66393524", "0.66149426", "0.6583243", "0.65451795", "0.65310085", "0.6523166", "0.65033543", "0.6491708", "0.648963", "0.64381087", "0.6422836", "0.6419385", "0.6408758", "0.640771...
0.0
-1
Specifies the depth of the host memory part of the DMA FIFO. This method is optional. In order to see the actual depth configured, use NiFpga_ConfigureFifo2.
public static void configureFifo(int hClient, int channel, int fifoDepthInElements, NiRioStatus status) { mergeStatus( status, configFifoFn.invokeInt(new Object[] { hClient, channel, fifoDepthInElements })); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setDepth(double aDepth);", "public static void setDepth(int dep) {\n depth = dep;\n }", "void setTemporaryMaxDepth(int depth);", "public void setDepth(int depth) {\r\n this.depth = depth;\r\n }", "public FractalTrace setDepth(int value) throws ParameterOutOfRangeException\n ...
[ "0.6179034", "0.6032015", "0.60235035", "0.59375036", "0.5924396", "0.58809793", "0.57431024", "0.5642797", "0.55504173", "0.5533685", "0.55155665", "0.54758686", "0.54621714", "0.54470634", "0.54470634", "0.5399118", "0.5276172", "0.5223725", "0.5207068", "0.5183158", "0.515...
0.52085567
18
Starts a FIFO. This method is optional.
public static void startFifo(int hClient, int channel, NiRioStatus status) { mergeStatus(status, startFifoFn.invokeInt(new Object[] { hClient, channel })); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void openFifoFile() throws Exception { Ready to start writing rows to the FIFO file now...\n //\n logDetailed(\"Opening fifo file \" + data.fifoFilename + \" for writing.\");\n data.fifoOpener = new FifoOpener(data.fifoFilename, 1000);\n data.fifoOpener.start();\n }", "public i...
[ "0.6385905", "0.5763877", "0.5632771", "0.54413205", "0.5438792", "0.5374396", "0.53186095", "0.5278651", "0.52313125", "0.51491666", "0.51022136", "0.50494725", "0.49682596", "0.49573192", "0.49463418", "0.49460536", "0.49460503", "0.49383324", "0.4935861", "0.493444", "0.49...
0.59194404
1
Stops a FIFO. This method is optional.
public static void stopFifo(int hClient, int channel, NiRioStatus status) { mergeStatus(status, stopFifoFn.invokeInt(new Object[] { hClient, channel })); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void stop() {\n\t\tthis.close(this.btcomm);\n\t}", "public void stop();", "public void stop();", "public void stop();", "public void stop();", "public void stop();", "public void stop();", "public void stop();", "public void stop();", "public void stop();", "public void stop();", "publ...
[ "0.5937078", "0.57912225", "0.57912225", "0.57912225", "0.57912225", "0.57912225", "0.57912225", "0.57912225", "0.57912225", "0.57912225", "0.57912225", "0.57912225", "0.57912225", "0.57912225", "0.57912225", "0.57912225", "0.5693799", "0.56844175", "0.5642362", "0.5544945", ...
0.57646203
16
Reads from a targettohost FIFO of unsigned 32bit integers.
public static void readFifoU32(int hClient, int channel, Pointer buf, int num, int timeout, IntByReference remaining, NiRioStatus status) { mergeStatus( status, readFifoU32Fn.invokeInt(new Object[] { hClient, channel, Pointer.nativeValue(buf), num, timeout, Pointer.nativeValue(buf) })); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test(expected = IOException.class)\n\tpublic void testUint32Overflow() throws IOException {\n\t\tBinaryReader br = br(true, 0xff, 0xff, 0xff, 0xff, 0xff);\n\t\tint value = br.readNextUnsignedIntExact();\n\t\tAssert.fail(\n\t\t\t\"Should not be able to read a value that is larger than what can fit in java 32 bit i...
[ "0.56382686", "0.5296472", "0.51658577", "0.51152915", "0.50977206", "0.50343686", "0.49759027", "0.484123", "0.47927678", "0.4769055", "0.47603607", "0.47522482", "0.47453368", "0.47391582", "0.47319195", "0.4726765", "0.4716371", "0.46762583", "0.4650393", "0.4646993", "0.4...
0.65044826
0
I/O: Conditionally sets the status to a new value. The previous status is preserved unless the new status is more of an error, which means that warnings and errors overwrite successes, and errors overwrite warnings. New errors do not overwrite older errors, and new warnings do not overwrite older warnings.
static void mergeStatus(NiRioStatus statusA, int statusB) { statusA.setStatus(statusB); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void setStatus(com.google.protobuf.ByteString value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n status_ = value;\n }", "public void switchStatus() {\n if (ioStatus.get() == EdgeStatus.INPUT) {\n ioStatus.set(EdgeStatus.OUTPUT);\n ...
[ "0.63083285", "0.620439", "0.61035836", "0.60052496", "0.5926086", "0.59147215", "0.5899964", "0.58688104", "0.58688104", "0.5848097", "0.5812922", "0.58079517", "0.58079517", "0.5807255", "0.5807255", "0.5803147", "0.5799505", "0.57960206", "0.57735246", "0.5743949", "0.5736...
0.55714476
65
Writes an unsigned 32bit integer value to a given control or indicator.
public static void writeU32(int hClient, int offset, int value, NiRioStatus status) { // System.out.print("write offset = 0x"); // System.out.print(Long.toString(offset, 16) + ""); // System.out.print("value = "); // System.out.println(Long.toString(((long)value) & 0xFFFFFFFFL, 10)); mergeStatus(status, writeU32Fn.invokeInt(new Object[] { hClient, offset, value })); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void writeInt(int value);", "static void write32( int dword, OutputStream out )\n throws IOException\n {\n out.write( dword );\n out.write( dword >> 8 );\n out.write( dword >> 16 );\n out.write( dword >> 24 );\n }", "void writeInt(int v) throws IOException;", "private...
[ "0.6376335", "0.62705606", "0.61910176", "0.60493845", "0.5880349", "0.58609176", "0.583557", "0.57671154", "0.57572275", "0.5737535", "0.57207024", "0.56384546", "0.56034195", "0.5564206", "0.55485463", "0.55244267", "0.5519404", "0.5515485", "0.54435045", "0.54198194", "0.5...
0.74081796
0
Reads an unsigned 32bit integer value from a given offset
public static synchronized int readU32(int hClient, int offset, NiRioStatus status) { // System.out.print("read offset = 0x"); // System.out.println(Long.toString(offset, 16)); mergeStatus( status, readU32Fn.invokeInt(new Object[] { hClient, offset, Pointer.nativeValue(readValue.getPointer()) })); // System.out.print("value = 0x"); // System.out.println(Long.toString(((long)value) & 0xFFFFFFFFL, 16)); return readValue.getValue(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private static int unserializeUint32(byte[] arr, int offset) {\n\t\tint i;\n\t\tint r = 0;\n\t\n\t\tfor (i = 3; i >= 0; i--)\n\t\t\tr |= (byte2int(arr[offset++])) << (i * 8);\n\t\treturn r;\n\t}", "public abstract int read_ulong();", "long fetch32(BytesStore bytes, @NonNegative long off) throws Illegal...
[ "0.7491091", "0.7388161", "0.6746685", "0.670283", "0.6634879", "0.66252476", "0.6616002", "0.6611586", "0.65905553", "0.6556598", "0.65157884", "0.6466919", "0.63987035", "0.6387142", "0.63155425", "0.6246467", "0.62263155", "0.6214114", "0.6178216", "0.61653817", "0.6114729...
0.7584207
0
IRQ contexts are singlethreaded; only one thread can wait with a particular context at any given time. Clients must reserve as many contexts as the application requires. If a context is successfully reserved (the returned status is not an error), it must be unreserved later. Otherwise a memory leak will occur.
public static void reserveIrqContext(int hClient, IntByReference context, NiRioStatus status) { mergeStatus( status, reserveIrqContextFn.invokeInt(new Object[] { hClient, Pointer.nativeValue(context.getPointer()) })); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static synchronized int waitOnIrqs(int hClient,\n\t\t\tIntByReference context, int irqs, int timeout, NiRioStatus status) {\n\t\tirqsAsserted.setValue(0);\n\t\tmergeStatus(\n\t\t\t\tstatus,\n\t\t\t\twaitOnIrqsFn.invokeInt(new Object[] { hClient,\n\t\t\t\t\t\tcontext.getValue(), irqs, timeout,\n\t\t\t\t\t\tP...
[ "0.6113385", "0.5694831", "0.5336117", "0.4981204", "0.48261213", "0.48224142", "0.48066968", "0.47734582", "0.46671724", "0.4653", "0.46507904", "0.46470216", "0.4646698", "0.46404824", "0.46167278", "0.45750886", "0.4570621", "0.4552233", "0.45516175", "0.45245188", "0.4499...
0.6960322
0
Unreserves an IRQ context obtained from reserveIrqContext.
public static void unreserveIrqContext(int hClient, IntByReference context, NiRioStatus status) { mergeStatus( status, unreserveIrqContextFn.invokeInt(new Object[] { hClient, context.getValue() })); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static void reserveIrqContext(int hClient, IntByReference context,\n\t\t\tNiRioStatus status) {\n\t\tmergeStatus(\n\t\t\t\tstatus,\n\t\t\t\treserveIrqContextFn.invokeInt(new Object[] { hClient,\n\t\t\t\t\t\tPointer.nativeValue(context.getPointer()) }));\n\t}", "public synchronized void abort(int trxnId)\n...
[ "0.5597856", "0.5160783", "0.5131465", "0.502584", "0.50057083", "0.4894409", "0.48910454", "0.48501003", "0.48421758", "0.48134014", "0.48051155", "0.47462004", "0.47395825", "0.46721745", "0.46653777", "0.46647355", "0.46415487", "0.46415487", "0.46415487", "0.46335143", "0...
0.72571605
0
This is a blocking function that stops the calling thread until the FPGA asserts any IRQ in the irqs parameter, or until the function call times out. Before calling this function, you must use NiFpga_ReserveIrqContext to reserve an IRQ context. No other threads can use the same context when this function is called. You can use the irqsAsserted parameter to determine which IRQs were asserted for each function call.
public static synchronized int waitOnIrqs(int hClient, IntByReference context, int irqs, int timeout, NiRioStatus status) { irqsAsserted.setValue(0); mergeStatus( status, waitOnIrqsFn.invokeInt(new Object[] { hClient, context.getValue(), irqs, timeout, Pointer.nativeValue(irqsAsserted.getPointer()), 0 })); return irqsAsserted.getValue(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void interrupt();", "public void timerInterrupt() \n {\n\t\n Machine.interrupt().disable(); //disable\n\n //if waitingQueue is empty, and current time is greater than or equal to the first ThreadWaits, wakeUp time,\n while(!waitingQueue.isEmpty() && (waitingQueue.peek().wakeUp < Ma...
[ "0.55566543", "0.54406184", "0.5408262", "0.5361728", "0.5305805", "0.5247828", "0.52353156", "0.51985455", "0.51337236", "0.5086136", "0.50843513", "0.5079572", "0.5078418", "0.50664824", "0.506314", "0.5018719", "0.49489608", "0.4923106", "0.49146304", "0.48908994", "0.4882...
0.6863439
0
Returns all card nodes in the scene graph. Card nodes that are visible in the listview are definitely in the scene graph, while some nodes that are not visible in the listview may also be in the scene graph.
private Set<Node> getAllCardNodes() { return guiRobot.lookup(CARD_PANE_ID).queryAll(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private List<Node> getNodes() {\n List<Node> nodes = new ArrayList<Node>();\n NodeApi.GetConnectedNodesResult rawNodes =\n Wearable.NodeApi.getConnectedNodes(mGoogleApiClient).await();\n for (Node node : rawNodes.getNodes()) {\n nodes.add(node);\n }\n re...
[ "0.62251073", "0.611847", "0.6057898", "0.6005521", "0.59987146", "0.5887535", "0.58257216", "0.58046305", "0.5762012", "0.5736038", "0.57253546", "0.56853384", "0.5684215", "0.5662819", "0.5652721", "0.56502056", "0.5626621", "0.56107104", "0.5583913", "0.5582383", "0.554264...
0.7792512
0
Returns the size of the list.
public int getListSize() { return getRootNode().getItems().size(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public int getSize(){\n\t\tint size = list.size();\n\t\treturn size;\n\n\t}", "public int size()\n\t{\n\t\treturn listSize;\n\t}", "public int size()\n\t{\n\t\treturn list.size();\n\t}", "public int size()\n\t{\n\t\treturn list.size();\n\t}", "public int getSize() {\n return list.size();\n }", ...
[ "0.8859538", "0.87179303", "0.8651766", "0.8651766", "0.8646886", "0.8633218", "0.86274886", "0.8609052", "0.859987", "0.8599389", "0.8599389", "0.8564131", "0.8519212", "0.85155004", "0.8418833", "0.8394364", "0.83943605", "0.8393758", "0.83928823", "0.83395946", "0.8327542"...
0.7884196
35
TODO Autogenerated method stub
@Override public void addNode(Node node) { frontier.addLast(node); if(frontier.size() > maxSize) maxSize = frontier.size(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExr...
[ "0.6671074", "0.6567672", "0.6523024", "0.6481211", "0.6477082", "0.64591026", "0.64127725", "0.63762105", "0.6276059", "0.6254286", "0.623686", "0.6223679", "0.6201336", "0.61950207", "0.61950207", "0.61922914", "0.6186996", "0.6173591", "0.61327106", "0.61285484", "0.608016...
0.0
-1
TODO Autogenerated method stub
@Override public boolean isEmpty() { return frontier.isEmpty(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExr...
[ "0.6671074", "0.6567672", "0.6523024", "0.6481211", "0.6477082", "0.64591026", "0.64127725", "0.63762105", "0.6276059", "0.6254286", "0.623686", "0.6223679", "0.6201336", "0.61950207", "0.61950207", "0.61922914", "0.6186996", "0.6173591", "0.61327106", "0.61285484", "0.608016...
0.0
-1
TODO Autogenerated method stub
@Override public Node removeNode() { if(isEmpty()) return null; // BreadthFirstSearch using a queue, first in first out principle return frontier.removeFirst(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExr...
[ "0.6671074", "0.6567672", "0.6523024", "0.6481211", "0.6477082", "0.64591026", "0.64127725", "0.63762105", "0.6276059", "0.6254286", "0.623686", "0.6223679", "0.6201336", "0.61950207", "0.61950207", "0.61922914", "0.6186996", "0.6173591", "0.61327106", "0.61285484", "0.608016...
0.0
-1
TODO Autogenerated method stub
@Override public void removeAll() { if(isEmpty()) return; // Remove until the frontier is empty while(!isEmpty()) frontier.removeFirst(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExr...
[ "0.6671074", "0.6567672", "0.6523024", "0.6481211", "0.6477082", "0.64591026", "0.64127725", "0.63762105", "0.6276059", "0.6254286", "0.623686", "0.6223679", "0.6201336", "0.61950207", "0.61950207", "0.61922914", "0.6186996", "0.6173591", "0.61327106", "0.61285484", "0.608016...
0.0
-1
TODO Autogenerated method stub
@Override // Return the maximum size of the frontier public int maxSize() { return maxSize; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExr...
[ "0.6671074", "0.6567672", "0.6523024", "0.6481211", "0.6477082", "0.64591026", "0.64127725", "0.63762105", "0.6276059", "0.6254286", "0.623686", "0.6223679", "0.6201336", "0.61950207", "0.61950207", "0.61922914", "0.6186996", "0.6173591", "0.61327106", "0.61285484", "0.608016...
0.0
-1
Create column from exists column
public Column(Column other) { from(other); if (other.next != null) addSubColumn(new Column(other.next)); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "Column createColumn();", "ColumnOrAlias createColumnOrAlias();", "Col createCol();", "OrColumn createOrColumn();", "public boolean hasExistingColumn(String name) // see also \"hasField(String)\"\n {\n try {\n String n = this.getMappedFieldName(name);\n Map<String,DBField> co...
[ "0.6953087", "0.63553816", "0.61299795", "0.61033225", "0.58512086", "0.58470005", "0.5759282", "0.56992847", "0.56795484", "0.5564968", "0.55595875", "0.54825926", "0.5475979", "0.5467109", "0.54572064", "0.54553837", "0.5325853", "0.531078", "0.52782166", "0.5229413", "0.52...
0.0
-1
Copy properties from other column
public Column from(Column other) { this.key = other.key; this.name = other.name; this.clazz = other.clazz; // this.share = other.share; this.processor = other.processor; this.styleProcessor = other.styleProcessor; this.width = other.width; this.headerHeight = other.headerHeight; this.o = other.o; this.styles = other.styles; this.headerComment = other.headerComment; this.cellComment = other.cellComment; this.numFmt = other.numFmt; this.colIndex = other.colIndex; this.option = other.option; this.realColIndex = other.realColIndex; if (other.cellStyle != null) setCellStyle(other.cellStyle); if (other.headerStyle != null) setHeaderStyle(other.headerStyle); int i; if ((i = other.getHeaderStyleIndex()) > 0) this.headerStyleIndex = i; if ((i = other.getCellStyleIndex()) > 0) this.cellStyleIndex = i; this.effect = other.effect; return this; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private static void copyColumns(Object o1, Object o2, JpaClassInfo classInfo, PropertyFilter propertyFilter) {\n\t\tfor (String property : classInfo.getColumns()) {\n\t\t\tif (propertyFilter.test(o1, property)) {\n\t\t\t\tObject value = JpaIntrospector.getProperty(o1, property);\n\t\t\t\tJpaIntrospector.setPropert...
[ "0.6745557", "0.6368918", "0.63210195", "0.63027304", "0.59528714", "0.5903792", "0.58869463", "0.588568", "0.57275736", "0.57161367", "0.5697701", "0.55553806", "0.5528181", "0.551826", "0.5472091", "0.5460043", "0.5393903", "0.53202945", "0.5306058", "0.5295899", "0.5273040...
0.581281
8
Setting the cell is shared
public boolean isShare() { return (option >> 5 & 1) == 1; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setShared(boolean shared) {\n this.shared = shared;\n }", "public void setShared(boolean shared) {\n this.shared = shared;\n }", "public void setShared(boolean shared) {\n isShared = shared;\n }", "public void setSharedInd(String sharedInd) {\n\t\t\n\t}", "pu...
[ "0.6894225", "0.66472685", "0.65892327", "0.6203736", "0.60551107", "0.60201275", "0.5927306", "0.5801597", "0.5791302", "0.57446206", "0.5721862", "0.56772524", "0.56772524", "0.5673462", "0.5644208", "0.56203306", "0.5563771", "0.5537648", "0.54982764", "0.54882157", "0.548...
0.0
-1
Returns the column name
public String getName() { return name; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "String getColumnName();", "public String getColumnName() {\r\n return dataBinder.getColumnName();\r\n }", "public String getColumnName();", "public String getName(){\n\t\t\treturn columnName;\n\t\t}", "public String getColumnName(int col) { return columnNames[col]; }", "public String getName() {\n ...
[ "0.8558194", "0.8449434", "0.83179766", "0.82954323", "0.8288235", "0.8273372", "0.81202126", "0.8086046", "0.80731994", "0.80645096", "0.80551314", "0.8036187", "0.802932", "0.7999848", "0.7979506", "0.7979506", "0.796866", "0.79398805", "0.7934371", "0.79253787", "0.7918247...
0.0
-1
Returns the cell type
public Class<?> getClazz() { return clazz; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String getCellType() {\n return this.cellType;\n }", "public String getCellTypeName()\n {\n return this.cellTypeName;\n }", "public CellType getType()\r\n/* 151: */ {\r\n/* 152:270 */ return CellType.ERROR;\r\n/* 153: */ }", "public CellType getType()\r\n/* 35: ...
[ "0.85624725", "0.7770981", "0.76376516", "0.74121743", "0.72755814", "0.71308714", "0.6977377", "0.6975954", "0.695035", "0.695035", "0.69439065", "0.6563227", "0.6554325", "0.64892656", "0.64829725", "0.6468825", "0.64535457", "0.6417181", "0.6359408", "0.6310548", "0.630123...
0.0
-1
Returns the width of cell
public double getWidth() { return width; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public int getCellWidth() {\r\n\t\treturn cellWidth;\r\n\t}", "private double getCellSize() {\n double wr = canvas.getWidth() / board.getWidth();\n double hr = canvas.getHeight() / board.getHeight();\n\n return Math.min(wr, hr);\n }", "public int getCellSize()\n {\n return cellSize;...
[ "0.83583343", "0.77618", "0.7625453", "0.7491855", "0.7464206", "0.7463638", "0.7400152", "0.7368157", "0.73384184", "0.7328591", "0.7328591", "0.73240966", "0.72965854", "0.729006", "0.729006", "0.72786784", "0.7277887", "0.727756", "0.7268719", "0.72674143", "0.72674143", ...
0.71434176
93
Returns the style index of cell, 1 if not be setting
public int getCellStyleIndex() { return cellStyleIndex >= 0 ? cellStyleIndex : (cellStyleIndex = styles != null && cellStyle != null ? styles.of(cellStyle) : -1); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public int getHeaderStyleIndex() {\n return headerStyleIndex >= 0 ? headerStyleIndex : (headerStyleIndex = styles != null && headerStyle != null ? styles.of(headerStyle) : -1);\n }", "public static String get_cell_style_id(){\r\n\t\t_cell_style_id ++;\r\n\t\treturn \"cond_ce\" + _cell_style_id;\r\n\t}"...
[ "0.7074823", "0.6907524", "0.6852764", "0.67617434", "0.65846205", "0.6516149", "0.6357865", "0.62903255", "0.62399423", "0.6200972", "0.6162265", "0.6145649", "0.60629404", "0.6055918", "0.60516584", "0.60493606", "0.60493606", "0.60493606", "0.6024433", "0.59541565", "0.592...
0.8225831
0
Returns the header style index of cell, 1 if not be setting
public int getHeaderStyleIndex() { return headerStyleIndex >= 0 ? headerStyleIndex : (headerStyleIndex = styles != null && headerStyle != null ? styles.of(headerStyle) : -1); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public int getCellStyleIndex() {\n return cellStyleIndex >= 0 ? cellStyleIndex : (cellStyleIndex = styles != null && cellStyle != null ? styles.of(cellStyle) : -1);\n }", "@Override\n\tpublic CellStyle getHeaderStyle(int index) {\n\t\treturn headerStyle;\n\t}", "@Override\n\tpublic CellStyle getHeade...
[ "0.7555913", "0.74668854", "0.71719307", "0.6706206", "0.6485947", "0.64568734", "0.63181275", "0.6272972", "0.6263478", "0.6255166", "0.61322695", "0.61322695", "0.61322695", "0.6026807", "0.59770256", "0.5871817", "0.58627856", "0.583073", "0.57474476", "0.57283455", "0.572...
0.7905072
0
Returns the default horizontal style the Date, Character, Bool has center value, the Numeric has right value, otherwise left value
int defaultHorizontal() { int horizontal; if (isDate(clazz) || isDateTime(clazz) || isLocalDate(clazz) || isLocalDateTime(clazz) || isTime(clazz) || isLocalTime(clazz) || isChar(clazz) || isBool(clazz)) { horizontal = Horizontals.CENTER; } else if (isInt(clazz) || isLong(clazz) || isFloat(clazz) || isDouble(clazz) || isBigDecimal(clazz)) { horizontal = Horizontals.RIGHT; } else { horizontal = Horizontals.LEFT; } return horizontal; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static String leftAlignFormat() {\n String leftAlignFormat = \"\\n\\t\"\r\n + \"|\"\r\n + \" %-\" + Integer.toString(5) + \"s\"\r\n + \"|\"\r\n + \" %-\" + Integer.toString(40) + \"s\"\r\n + \"|\"\r\n + \" %-\" ...
[ "0.59124756", "0.58312887", "0.5740625", "0.5704761", "0.56889343", "0.56751096", "0.5672222", "0.56517875", "0.561892", "0.5555294", "0.5539223", "0.549785", "0.5479754", "0.54667926", "0.5432658", "0.53863364", "0.53493273", "0.53173125", "0.53007394", "0.5287728", "0.52869...
0.79219055
0
Returns default style based on cell type
public int getCellStyle(Class<?> clazz) { int style; if (isString(clazz)) { style = Styles.defaultStringBorderStyle(); } else if (isDateTime(clazz) || isDate(clazz) || isLocalDateTime(clazz)) { if (numFmt == null) numFmt = DATETIME_FORMAT; style = (1 << INDEX_BORDER) | Horizontals.CENTER; } else if (isBool(clazz) || isChar(clazz)) { style = Styles.clearHorizontal(Styles.defaultStringBorderStyle()) | Horizontals.CENTER; } else if (isInt(clazz) || isLong(clazz)) { style = Styles.defaultIntBorderStyle(); } else if (isFloat(clazz) || isDouble(clazz) || isBigDecimal(clazz)) { style = Styles.defaultDoubleBorderStyle(); } else if (isLocalDate(clazz)) { if (numFmt == null) numFmt = DATE_FORMAT; style = (1 << INDEX_BORDER) | Horizontals.CENTER; } else if (isTime(clazz) || isLocalTime(clazz)) { if (numFmt == null) numFmt = TIME_FORMAT; style = (1 << INDEX_BORDER) | Horizontals.CENTER; } else { style = (1 << Styles.INDEX_FONT) | (1 << INDEX_BORDER); // Auto-style } // Reset custom number format if specified. if (numFmt != null) { style = Styles.clearNumFmt(style) | styles.addNumFmt(numFmt); } return style | (option & 1); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public CellStyle createCellStyle() {\n\t\treturn null;\n\t}", "@Override\n\tpublic CellStyle getRowStyle() {\n\t\treturn null;\n\t}", "public int getNumCellStyles() {\n\t\treturn 0;\n\t}", "public int getCellStyle() {\n if (cellStyle != null) {\n return cellStyle;\n }\n setCel...
[ "0.69642276", "0.66725373", "0.6518563", "0.65045863", "0.64589345", "0.6454533", "0.64080966", "0.6406496", "0.6369385", "0.63366246", "0.63229346", "0.62505937", "0.6248311", "0.62231237", "0.62019324", "0.61747134", "0.61673635", "0.61666346", "0.61213684", "0.6089832", "0...
0.6462357
4
Setting the cell styles
public int getCellStyle() { if (cellStyle != null) { return cellStyle; } setCellStyle(getCellStyle(clazz)); return cellStyle; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void modify( CellStyle style );", "public void setCellStyle( CellStyle style )\n {\n for (Cell[] colCells : cells) {\n for (Cell cell : colCells) {\n cell.setCellStyle(style);\n }\n }\n }", "public void style() {\n\n\t\tfinal ArrayList<String> cssClasses...
[ "0.77690905", "0.76153284", "0.74730325", "0.73960084", "0.7203759", "0.70037174", "0.6973764", "0.6957335", "0.6887151", "0.6742126", "0.67098695", "0.6588872", "0.6567022", "0.6506797", "0.6478973", "0.6461565", "0.6277226", "0.6216003", "0.6207319", "0.62039673", "0.620198...
0.583901
31
Returns the size of subcolumn
public int subColumnSize() { int i = 1; if (next != null) { Column next = this.next; for (; next != tail; next = next.next, i++); i++; } return i; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public abstract int getNumColumns();", "public int getColumnSize() {\n \t\treturn this.columns;\n \t}", "public abstract int numColumns();", "public int sizeOfColArray()\n {\n synchronized (monitor())\n {\n check_orphaned();\n return get_store().count_elements(COL$2);\n...
[ "0.6950763", "0.6938563", "0.69161725", "0.6898495", "0.67484534", "0.67484534", "0.66945636", "0.66171163", "0.66171163", "0.6583872", "0.65427583", "0.6529616", "0.6475099", "0.6430617", "0.64246345", "0.63745797", "0.6373441", "0.63617176", "0.63615453", "0.6334964", "0.63...
0.8392527
0
Returns an array containing all of the subcolumn
public Column[] toArray() { return toArray(new Column[subColumnSize()]); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public com.walgreens.rxit.ch.cda.StrucDocCol[] getColArray()\n {\n synchronized (monitor())\n {\n check_orphaned();\n java.util.List targetList = new java.util.ArrayList();\n get_store().find_all_element_users(COL$2, targetList);\n com.walgreens.rxit.ch....
[ "0.7128953", "0.688218", "0.68224645", "0.66983974", "0.65154946", "0.63308525", "0.62865436", "0.6252088", "0.62445045", "0.6194187", "0.6192667", "0.6128387", "0.6085707", "0.60779524", "0.6070498", "0.60268086", "0.602448", "0.6014522", "0.5986211", "0.59720397", "0.595373...
0.7608351
0
Returns an array containing all of the subcolumn
public Column[] toArray(Column[] dist) { int len = Math.min(subColumnSize(), dist.length); if (len < 1) return dist; Column e = this; for (int i = 0; i < len; i++) { dist[i] = e; e = e.next; } return dist; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Column[] toArray() {\n return toArray(new Column[subColumnSize()]);\n }", "public com.walgreens.rxit.ch.cda.StrucDocCol[] getColArray()\n {\n synchronized (monitor())\n {\n check_orphaned();\n java.util.List targetList = new java.util.ArrayList();\n ...
[ "0.7608351", "0.7128953", "0.688218", "0.68224645", "0.66983974", "0.65154946", "0.63308525", "0.62865436", "0.6252088", "0.62445045", "0.6194187", "0.6192667", "0.6128387", "0.6085707", "0.60779524", "0.6070498", "0.60268086", "0.602448", "0.6014522", "0.59720397", "0.595373...
0.5986211
19
Returns the real colindex(one base)
public int getRealColIndex() { return realColIndex; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "int getColumnIndex();", "int getColumnIndex();", "int getColumnIndex();", "int getCol();", "int getColumn();", "DataFrameColumn<R,C> colAt(int colIOrdinal);", "public abstract int getColumn();", "public int[] getNeighborColIndex() {\n if (myRow % 2 == 0) {\n return neighborEvenColIndex;\n ...
[ "0.7215893", "0.7215893", "0.7215893", "0.68961346", "0.6563815", "0.65566176", "0.65437645", "0.6521637", "0.6510369", "0.64918643", "0.64462966", "0.6443791", "0.6438793", "0.6433987", "0.6389258", "0.63891447", "0.63346714", "0.6315818", "0.6261539", "0.6205151", "0.620271...
0.76153183
0
Returns the last column
public Column getTail() { return tail != null ? tail : this; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public abstract int getLastCageCol(int row, int col);", "public int getEndColumnNumber() {\n return this.endColumn;\n }", "public String getLastCell() {\n\t\treturn lastCell;\n\t}", "public StrColumn getPageLast() {\n return delegate.getColumn(\"page_last\", DelegatingStrColumn::new);\n }", "...
[ "0.75848633", "0.74350923", "0.7400213", "0.7236102", "0.7200966", "0.7159362", "0.7020922", "0.6860772", "0.6857313", "0.6785662", "0.6751802", "0.6728523", "0.6704546", "0.66731864", "0.6672057", "0.6651794", "0.66199887", "0.6600613", "0.6566355", "0.6516941", "0.6514151",...
0.66674274
15
Returns the resize setting
public int getAutoSize() { return option >> 1 & 3; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "String getPreviewSizePref();", "public java.lang.Integer getResizeRatio() {\r\n return resizeRatio;\r\n }", "public boolean getResized()\n {\n return resized;\n }", "public int winSize() { return winSize; }", "int getImageQualityPref();", "public Number getSizeratio() {\n re...
[ "0.7015781", "0.691016", "0.64199024", "0.6101406", "0.60848427", "0.60575026", "0.6003313", "0.5961972", "0.59260714", "0.5862109", "0.5858231", "0.5827427", "0.5814925", "0.581468", "0.5797763", "0.57732373", "0.57492596", "0.57474345", "0.57379246", "0.5732393", "0.5716970...
0.55233705
40
Returns the column type
public int getColumnType() { return (this.option >> 6) & 3; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Column.Type getType();", "public String getColType() {\r\n\t\treturn colType;\r\n\t}", "public Class<?>[] getColumnTypes();", "public StrColumn getType() {\n return (StrColumn) (isText ? textFields.computeIfAbsent(\"type\", StrColumn::new) :\n getBinaryColumn(\"type\"));\n }",...
[ "0.87619525", "0.8252957", "0.7915561", "0.78373665", "0.7707074", "0.7707074", "0.7682978", "0.7575122", "0.7504132", "0.7492486", "0.7448752", "0.7437147", "0.7423709", "0.736951", "0.73069245", "0.7288481", "0.728828", "0.72829115", "0.7261002", "0.72545284", "0.7208923", ...
0.754088
8
TODO Autogenerated method stub
@Override public ActionForward execute(HttpServletRequest request, HttpServletResponse response) throws Exception { int no = Integer.parseInt (request.getParameter("no")); /* dao 메서드 호출 */ BoardDAO dao = new BoardDAO(); // 삭제 레코드 가져오기 BoardBean bean = dao.getCont(no); // key 생성 request.setAttribute("bean", bean); // view page 포워딩 ActionForward forward = new ActionForward(); forward.setRedirect(false); forward.setPath("./board/board_del.jsp"); return forward; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExr...
[ "0.6671074", "0.6567672", "0.6523024", "0.6481211", "0.6477082", "0.64591026", "0.64127725", "0.63762105", "0.6276059", "0.6254286", "0.623686", "0.6223679", "0.6201336", "0.61950207", "0.61950207", "0.61922914", "0.6186996", "0.6173591", "0.61327106", "0.61285484", "0.608016...
0.0
-1
Run the Collection retrieve() method test.
@Test public void testRetrieve_1() throws Exception { VictimsResourceImpl fixture = new VictimsResourceImpl(); Collection<VictimDTO> result = fixture.retrieve(); // add additional test code here // An unexpected exception was thrown in user code while executing this test: // java.lang.NullPointerException // at org.agetac.server.resources.VictimsResourceImpl.retrieve(VictimsResourceImpl.java:18) assertNotNull(result); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@SuppressWarnings(\"rawtypes\")\n\t@Test\n\tpublic void retrieveCollections() {\n\t\t// We can also query for the collections themselves, since they are\n\t\t// first class objects.\n\n\t\tObjectSet result = db.queryByExample(new ArrayList());\n\t\tlistResult(result);\n\n\t\t// as we are initializing readouts\n\t\...
[ "0.7037779", "0.6967554", "0.6502156", "0.6247481", "0.6158225", "0.6148105", "0.6129199", "0.6013065", "0.5880206", "0.58799446", "0.58614576", "0.5859197", "0.58239394", "0.5822321", "0.57760406", "0.57205915", "0.56801796", "0.5679982", "0.5656073", "0.56448954", "0.563410...
0.67454064
2
Run the Collection retrieve() method test.
@Test public void testRetrieve_2() throws Exception { VictimsResourceImpl fixture = new VictimsResourceImpl(); Collection<VictimDTO> result = fixture.retrieve(); // add additional test code here // An unexpected exception was thrown in user code while executing this test: // java.lang.NullPointerException // at org.agetac.server.resources.VictimsResourceImpl.retrieve(VictimsResourceImpl.java:18) assertNotNull(result); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@SuppressWarnings(\"rawtypes\")\n\t@Test\n\tpublic void retrieveCollections() {\n\t\t// We can also query for the collections themselves, since they are\n\t\t// first class objects.\n\n\t\tObjectSet result = db.queryByExample(new ArrayList());\n\t\tlistResult(result);\n\n\t\t// as we are initializing readouts\n\t\...
[ "0.7037779", "0.6967554", "0.67454064", "0.6247481", "0.6158225", "0.6148105", "0.6129199", "0.6013065", "0.5880206", "0.58799446", "0.58614576", "0.5859197", "0.58239394", "0.5822321", "0.57760406", "0.57205915", "0.56801796", "0.5679982", "0.5656073", "0.56448954", "0.56341...
0.6502156
3
Created by winstone on 2017/8/18.
public interface ExecutorService { /** * beat 心跳 * @return */ public ReturnT<String> beat(); public ReturnT<String> idleBeat(int jobId); /** * kill 掉某个job * @param jobId * @return */ public ReturnT<String> kill(int jobId); /** * 记录掉某个日志 * @param logDateTim * @param logId * @param fromLineNum * @return */ public ReturnT<LogResult> log(long logDateTim, int logId, int fromLineNum); /** * 执行某个任务 * @param triggerParam * @return */ public ReturnT<String> run(TriggerParam triggerParam); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void perish() {\n \n }", "private stendhal() {\n\t}", "@Override\n public void init() {\n\n }", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "@Override\n protected void initialize() {\n }", "@Override\n protected void initialize() {\n }", "@Override\n protect...
[ "0.6224642", "0.6165619", "0.58269244", "0.5825099", "0.5821704", "0.5821704", "0.5821704", "0.5821704", "0.5821704", "0.5821704", "0.58130234", "0.5784401", "0.57565993", "0.574882", "0.5745014", "0.5741957", "0.5741957", "0.57407075", "0.56434107", "0.5642389", "0.5628028",...
0.0
-1
obtenemos el porcentaje a mostrar
@SuppressLint("DefaultLocale") @Override public void onSeriesItemAnimationProgress(float percentComplete, float currentPosition) { float percentFilled = ((currentPosition - seriesItem1.getMinValue()) / (seriesItem1.getMaxValue() - seriesItem1.getMinValue())); //se lo pasamos al TextView tvPorciento.setText(String.format("%.0f%%", percentFilled * 100f)); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic double porcentajeDelComercio() {\n\t\treturn 0.25;\r\n\t}", "@Override\n\tpublic void muestraInfo() {\n\t\tSystem.out.println(\"Adivina un número par: Es un juego en el que el jugador\" +\n\t\t\t\t\" deberá acertar un número PAR comprendido entre el 0 y el 10 mediante un número limitado de ...
[ "0.6413971", "0.6238947", "0.6222149", "0.6200611", "0.61922115", "0.6117707", "0.60889834", "0.6002488", "0.5977447", "0.5956696", "0.5926875", "0.59170043", "0.5902582", "0.5898862", "0.58930403", "0.58924305", "0.58692473", "0.5827909", "0.58262026", "0.58229667", "0.57896...
0.0
-1
TODO: Rename method, update argument and hook method into UI event
public void onButtonPressed(Uri uri) { if (mListener != null) { mListener.onFragmentInteraction(uri); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\t\t\t\tpublic void handle(ActionEvent event) {\n\t\t\t\t}", "@Override\n\t\t\t\tpublic void handle(ActionEvent event) {\n\n\t\t\t\t}", "@Override\n\t\t\tpublic void handle(ActionEvent event) {\n\t\t\t\t\n\t\t\t}", "@Override\n\t\t\tpublic void handle(ActionEvent event) {\n\t\t\t\t\n\t\t\t}", "@...
[ "0.66181237", "0.6523692", "0.6472287", "0.6472287", "0.64342374", "0.63220537", "0.623621", "0.6188402", "0.6157599", "0.61416775", "0.61220664", "0.61074245", "0.6096379", "0.6092019", "0.6045935", "0.6045935", "0.6043641", "0.6039026", "0.6039026", "0.6007256", "0.5999497"...
0.0
-1
This interface must be implemented by activities that contain this fragment to allow an interaction in this fragment to be communicated to the activity and potentially other fragments contained in that activity. See the Android Training lesson Communicating with Other Fragments for more information.
public interface OnFragmentInteractionListener { // TODO: Update argument type and name void onFragmentInteraction(Uri uri); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public interface OnFragmentInteractionListener {\n void onFragmentMessage(String TAG, Object data);\n}", "public interface FragmentInteraction {\n void switchToBoardView();\n void switchToPinsView();\n void switchToPins(PDKBoard pdkBoard);\n void switchToDescription(PDKPin pin);\n}", "public int...
[ "0.7325234", "0.72088116", "0.7135504", "0.7124427", "0.7122146", "0.7014861", "0.6976295", "0.6976295", "0.6976295", "0.69739693", "0.6967686", "0.6965429", "0.6960378", "0.6953495", "0.6944161", "0.6934473", "0.69304806", "0.692841", "0.69227284", "0.6910248", "0.69029653",...
0.0
-1
TODO: Update argument type and name
void onFragmentInteraction(Uri uri);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n public String getFirstArg() {\n return name;\r\n }", "@Override\n public int getNumberArguments() {\n return 1;\n }", "java.lang.String getArg();", "@Override\n public int getArgLength() {\n return 4;\n }", "Argument createArgument();", "@Override\r\n\tpublic ...
[ "0.7164074", "0.6946075", "0.6714363", "0.65115863", "0.63969076", "0.6375468", "0.63481104", "0.63162106", "0.6260299", "0.6208487", "0.6208487", "0.62070644", "0.6197276", "0.61806154", "0.6177103", "0.61530507", "0.61472267", "0.61243707", "0.60771817", "0.6054482", "0.599...
0.0
-1
Constructs a new plane from the three points with a random color
public Plane(Point a, Point b, Point c) { this(a, b, c, new Color((int) (Math.random() * 256), (int) (Math.random() * 256), (int) (Math.random() * 256))); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Plane(Point origin, Vector normal) {\n\t\tthis(origin, normal, new Color((int) (Math.random() * 256),\n\t\t\t\t(int) (Math.random() * 256), (int) (Math.random() * 256)));\n\t}", "public Plane(Point a, Point b, Point c, Color colour) {\n\t\torigin = a;\n\t\tnormal = new Vector(a, b).crossProduct(new Vector...
[ "0.67413217", "0.6714998", "0.61964524", "0.6093654", "0.59089005", "0.5862528", "0.58178437", "0.55666804", "0.55534023", "0.54172254", "0.53945047", "0.5372887", "0.5359668", "0.5356643", "0.5343029", "0.53212047", "0.53153926", "0.53046894", "0.5304168", "0.53025776", "0.5...
0.73527175
0
Constructs a new plane from the three points with the given color
public Plane(Point a, Point b, Point c, Color colour) { origin = a; normal = new Vector(a, b).crossProduct(new Vector(a, c)); this.c = colour; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Plane(Point a, Point b, Point c) {\n\t\tthis(a, b, c, new Color((int) (Math.random() * 256),\n\t\t\t\t(int) (Math.random() * 256), (int) (Math.random() * 256)));\n\t}", "public Plane(Point origin, Vector normal, Color c) {\n\t\tthis.origin = origin;\n\t\tthis.normal = normal;\n\n\t\tthis.c = c;\n\t}", "...
[ "0.7167025", "0.6653327", "0.6391286", "0.6076664", "0.60256064", "0.5963214", "0.5746177", "0.57371134", "0.5698221", "0.5681377", "0.55967206", "0.55358857", "0.5519174", "0.54741573", "0.5451158", "0.5432711", "0.5417545", "0.5417051", "0.5406363", "0.54053265", "0.5386918...
0.74245304
0
Constructs a new plane with the given origin and normal with a random color
public Plane(Point origin, Vector normal) { this(origin, normal, new Color((int) (Math.random() * 256), (int) (Math.random() * 256), (int) (Math.random() * 256))); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Plane(Point origin, Vector normal, Color c) {\n\t\tthis.origin = origin;\n\t\tthis.normal = normal;\n\n\t\tthis.c = c;\n\t}", "public Plane() {\r\n\t\tvecX = new Vector3D();\r\n\t\tvecY = new Vector3D();\r\n\t\tnorm = new Vector3D();\r\n\t\tthis.setD(0);\r\n\t\tpos = new Position3D();\r\n\t}", "public P...
[ "0.7536452", "0.64689916", "0.63228476", "0.6106272", "0.5890181", "0.5656907", "0.5580675", "0.55643827", "0.55190694", "0.5478607", "0.54432493", "0.53762865", "0.53714854", "0.53354365", "0.5315421", "0.52816176", "0.52680165", "0.5262296", "0.525489", "0.5167214", "0.5147...
0.82314014
0
Constructs a new plane with the given origin and normal with the given color
public Plane(Point origin, Vector normal, Color c) { this.origin = origin; this.normal = normal; this.c = c; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Plane(Point origin, Vector normal) {\n\t\tthis(origin, normal, new Color((int) (Math.random() * 256),\n\t\t\t\t(int) (Math.random() * 256), (int) (Math.random() * 256)));\n\t}", "public Plane(Point a, Point b, Point c, Color colour) {\n\t\torigin = a;\n\t\tnormal = new Vector(a, b).crossProduct(new Vector...
[ "0.7860739", "0.7003232", "0.6233673", "0.6131693", "0.5877436", "0.58109605", "0.56634074", "0.5595013", "0.5592479", "0.55649436", "0.5564483", "0.54769665", "0.5437558", "0.5372597", "0.52455795", "0.52371746", "0.5226411", "0.5184509", "0.5183352", "0.5176723", "0.5174544...
0.78973603
0
Call this with three values, the two you wish to plug in and a NaN that you wish to solve for. remember, if you give two values that are not part of the plane, you will get NaN back
public Point evaluate(double x, double y, double z) { // x=(-(yn(y-y0)+zn(z-z0))+xn*x0)/xn if (x != x) { x = (-(normal.y * (y - origin.y) + normal.z * (z - origin.z)) + normal.x * origin.x) / normal.x; return new Point(x, y, z); } else if (y != y) { y = (-(normal.x * (x - origin.x) + normal.z * (z - origin.z)) + normal.y * origin.y) / normal.y; return new Point(x, y, z); } else if (z != z) { z = (-(normal.y * (y - origin.y) + normal.x * (x - origin.x)) + normal.z * origin.z) / normal.z; return new Point(x, y, z); } return null; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test\n public void test09() throws Throwable {\n IllinoisSolver illinoisSolver0 = new IllinoisSolver();\n Tanh tanh0 = new Tanh();\n AllowedSolution allowedSolution0 = AllowedSolution.LEFT_SIDE;\n // Undeclared exception!\n try { \n illinoisSolver0.solve(16, (UnivariateRealFunct...
[ "0.53521156", "0.523527", "0.51880866", "0.51795465", "0.5150209", "0.51287013", "0.50962895", "0.50800854", "0.5066566", "0.5041392", "0.49863732", "0.49751016", "0.4962002", "0.49393168", "0.49366426", "0.4907872", "0.4901512", "0.48827124", "0.48771697", "0.48380473", "0.4...
0.4974179
12
Sets the color of this plane
public void setC(Color c) { this.c = c; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void setColor(Vector color);", "public void setColor(float r, float g, float b, float a);", "public void setSurfaceColor(int color){\r\n\r\n this.surface.setColor(color);\r\n }", "public void setColor(Color c) { color.set(c); }", "public void setColor(Color color);", "public void setColor(int c...
[ "0.71088594", "0.6868377", "0.6828661", "0.6772461", "0.6724811", "0.6708614", "0.6708614", "0.6700198", "0.6587144", "0.65782094", "0.6562059", "0.6544648", "0.65120864", "0.6482825", "0.64787453", "0.6471864", "0.64666116", "0.6460901", "0.64302254", "0.64242595", "0.640704...
0.0
-1
Creates capabilities specific to seleniumGrid For example, Appium needs PLATFORM_NAME and PLATFORM_VERSION capabilities, but seleniumGrid matcher (default seleniumGrid) looks at PLATFORM and VERSION capabilities. This method adds them OS version is only updated for mobile. It has no real sense on desktop
private DesiredCapabilities createSpecificGridCapabilities(DriverConfig webDriverConfig) { DesiredCapabilities capabilities = new DesiredCapabilities(); if (SeleniumTestsContextManager.isMobileTest()) { capabilities.setCapability(CapabilityType.VERSION, webDriverConfig.getMobilePlatformVersion()); } else { capabilities.setCapability(CapabilityType.PLATFORM, webDriverConfig.getPlatform().toLowerCase()); if (webDriverConfig.getBrowserVersion() != null) { capabilities.setCapability(CapabilityType.VERSION, webDriverConfig.getBrowserVersion()); } } return capabilities; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test(groups={\"ut\"})\r\n\tpublic void testCreateCapabilitiesWithUserDefined() {\r\n\t\tSeleniumTestsContext context = new SeleniumTestsContext(SeleniumTestsContextManager.getThreadContext());\r\n\t\tcontext.setBrowser(BrowserType.CHROME.toString());\r\n\t\tcontext.setMobilePlatformVersion(\"8.0\");\r\n\t\tcontex...
[ "0.680432", "0.64266527", "0.62633705", "0.60793334", "0.59496844", "0.5805807", "0.5795599", "0.5752584", "0.5715164", "0.5587008", "0.55035925", "0.5500022", "0.5473278", "0.54484946", "0.5409432", "0.5388558", "0.53728604", "0.5349527", "0.53389615", "0.5315255", "0.524221...
0.69582003
0
create capabilities, specific to OS
@Override public WebDriver createWebDriver() { MutableCapabilities capabilities = createSpecificGridCapabilities(webDriverConfig); capabilities.merge(driverOptions); // gridConnector.uploadMobileApp(capabilities); // connection to grid is made here driver = getDriver(gridConnector.getHubUrl(), capabilities); setImplicitWaitTimeout(webDriverConfig.getImplicitWaitTimeout()); if (webDriverConfig.getPageLoadTimeout() >= 0 && SeleniumTestsContextManager.isWebTest()) { setPageLoadTimeout(webDriverConfig.getPageLoadTimeout()); } this.setWebDriver(driver); runWebDriver(); ((RemoteWebDriver)driver).setFileDetector(new LocalFileDetector()); return driver; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "Capabilities getCapabilities();", "@Test(groups={\"ut\"})\r\n\tpublic void testCreateCapabilitiesWithUserDefined() {\r\n\t\tSeleniumTestsContext context = new SeleniumTestsContext(SeleniumTestsContextManager.getThreadContext());\r\n\t\tcontext.setBrowser(BrowserType.CHROME.toString());\r\n\t\tcontext.setMobilePl...
[ "0.67962295", "0.6614985", "0.64215916", "0.6391442", "0.63791025", "0.6060252", "0.6008574", "0.594452", "0.59278023", "0.5917573", "0.58423936", "0.5837598", "0.58174676", "0.5807316", "0.579125", "0.57777584", "0.57728523", "0.5762043", "0.5742611", "0.57275206", "0.572638...
0.0
-1
Connect to grid using RemoteWebDriver
private WebDriver getDriver(URL url, MutableCapabilities capability){ driver = null; SystemClock clock = new SystemClock(); long end = clock.laterBy(retryTimeout * 1000L); Exception currentException = null; while (clock.isNowBefore(end)) { try { driver = new RemoteWebDriver(url, capability); break; } catch (WebDriverException e) { logger.warn("Error creating driver, retrying: " + e.getMessage()); currentException = e; continue; } } if (driver == null) { throw new SeleniumGridException("Cannot create driver on grid, it may be fully used", currentException); } return driver; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n public WebDriver createWebDriver() {\n MutableCapabilities capabilities = createSpecificGridCapabilities(webDriverConfig);\r\n capabilities.merge(driverOptions);\r\n \r\n // \r\n gridConnector.uploadMobileApp(capabilities);\r\n\r\n // connection to grid is...
[ "0.65274", "0.646047", "0.63609356", "0.6066724", "0.59509987", "0.59421045", "0.58814055", "0.5789115", "0.5758093", "0.5756172", "0.57369095", "0.5707279", "0.5696787", "0.5664401", "0.56523824", "0.56397504", "0.5604741", "0.5566931", "0.5547055", "0.55371857", "0.54513514...
0.5313283
27
Creates the metamodel objects for the package. This method is guarded to have no affect on any invocation but its first.
public void createPackageContents() { if (isCreated) return; isCreated = true; // Create classes and their features openStackRequestEClass = createEClass(OPEN_STACK_REQUEST); createEAttribute(openStackRequestEClass, OPEN_STACK_REQUEST__PROJECT_NAME); openstackRequestDeleteEClass = createEClass(OPENSTACK_REQUEST_DELETE); createEAttribute(openstackRequestDeleteEClass, OPENSTACK_REQUEST_DELETE__OBJECT_TYPE); createEAttribute(openstackRequestDeleteEClass, OPENSTACK_REQUEST_DELETE__OBJECT_NAME); openstackRequestPollEClass = createEClass(OPENSTACK_REQUEST_POLL); virtualMachineTypeEClass = createEClass(VIRTUAL_MACHINE_TYPE); createEAttribute(virtualMachineTypeEClass, VIRTUAL_MACHINE_TYPE__DESCRIPTION); createEAttribute(virtualMachineTypeEClass, VIRTUAL_MACHINE_TYPE__NUMBER_OF_CORES); createEAttribute(virtualMachineTypeEClass, VIRTUAL_MACHINE_TYPE__MEMORY_SIZE_MB); createEAttribute(virtualMachineTypeEClass, VIRTUAL_MACHINE_TYPE__ROOT_DISK_SIZE_GB); createEAttribute(virtualMachineTypeEClass, VIRTUAL_MACHINE_TYPE__DISK_SIZE_GB); createEAttribute(virtualMachineTypeEClass, VIRTUAL_MACHINE_TYPE__VOLUME_SIZE_GB); createEAttribute(virtualMachineTypeEClass, VIRTUAL_MACHINE_TYPE__IMAGE_NAME); createEAttribute(virtualMachineTypeEClass, VIRTUAL_MACHINE_TYPE__FLAVOR_NAME); createEAttribute(virtualMachineTypeEClass, VIRTUAL_MACHINE_TYPE__NEED_PUBLIC_IP); createEAttribute(virtualMachineTypeEClass, VIRTUAL_MACHINE_TYPE__DEPLOYMENT_STATUS); createEReference(virtualMachineTypeEClass, VIRTUAL_MACHINE_TYPE__INCOMING_SECURITY_RULES); createEReference(virtualMachineTypeEClass, VIRTUAL_MACHINE_TYPE__OUTBOUND_SECURITY_RULES); securityRuleEClass = createEClass(SECURITY_RULE); createEAttribute(securityRuleEClass, SECURITY_RULE__PORT_RANGE_START); createEAttribute(securityRuleEClass, SECURITY_RULE__PORT_RANGE_END); createEAttribute(securityRuleEClass, SECURITY_RULE__PREFIX); createEAttribute(securityRuleEClass, SECURITY_RULE__IP_PROTOCOL); // Create enums securityRuleProtocolEEnum = createEEnum(SECURITY_RULE_PROTOCOL); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void createPackageContents() {\n\t\tif (isCreated) return;\n\t\tisCreated = true;\n\n\t\t// Create classes and their features\n\t\tmetadataEClass = createEClass(METADATA);\n\t\tcreateEAttribute(metadataEClass, METADATA__GAMENAME);\n\t\tcreateEAttribute(metadataEClass, METADATA__SHORTNAME);\n\t\tcreateEAttri...
[ "0.6877726", "0.68018657", "0.66866565", "0.6660327", "0.66462505", "0.6617749", "0.66074246", "0.6604812", "0.6577536", "0.6568153", "0.6551695", "0.654932", "0.6540275", "0.65352243", "0.6533547", "0.65299624", "0.6515062", "0.6512313", "0.65005076", "0.64886785", "0.648180...
0.6090449
68
Complete the initialization of the package and its metamodel. This method is guarded to have no affect on any invocation but its first.
public void initializePackageContents() { if (isInitialized) return; isInitialized = true; // Initialize package setName(eNAME); setNsPrefix(eNS_PREFIX); setNsURI(eNS_URI); // Obtain other dependent packages EcorePackage theEcorePackage = (EcorePackage)EPackage.Registry.INSTANCE.getEPackage(EcorePackage.eNS_URI); org.openecomp.ncomp.core.CorePackage theCorePackage_1 = (org.openecomp.ncomp.core.CorePackage)EPackage.Registry.INSTANCE.getEPackage(org.openecomp.ncomp.core.CorePackage.eNS_URI); // Create type parameters // Set bounds for type parameters // Add supertypes to classes openstackRequestDeleteEClass.getESuperTypes().add(this.getOpenStackRequest()); openstackRequestPollEClass.getESuperTypes().add(this.getOpenStackRequest()); virtualMachineTypeEClass.getESuperTypes().add(theCorePackage_1.getNamedEntity()); securityRuleEClass.getESuperTypes().add(theCorePackage_1.getNamedEntity()); // Initialize classes, features, and operations; add parameters initEClass(openStackRequestEClass, OpenStackRequest.class, "OpenStackRequest", IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); initEAttribute(getOpenStackRequest_ProjectName(), theEcorePackage.getEString(), "projectName", null, 0, 1, OpenStackRequest.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); initEClass(openstackRequestDeleteEClass, OpenstackRequestDelete.class, "OpenstackRequestDelete", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); initEAttribute(getOpenstackRequestDelete_ObjectType(), theEcorePackage.getEString(), "objectType", null, 0, 1, OpenstackRequestDelete.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); initEAttribute(getOpenstackRequestDelete_ObjectName(), theEcorePackage.getEString(), "objectName", null, 0, 1, OpenstackRequestDelete.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); initEClass(openstackRequestPollEClass, OpenstackRequestPoll.class, "OpenstackRequestPoll", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); initEClass(virtualMachineTypeEClass, VirtualMachineType.class, "VirtualMachineType", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); initEAttribute(getVirtualMachineType_Description(), theEcorePackage.getEString(), "description", null, 0, 1, VirtualMachineType.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); initEAttribute(getVirtualMachineType_NumberOfCores(), theEcorePackage.getEInt(), "numberOfCores", null, 0, 1, VirtualMachineType.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); initEAttribute(getVirtualMachineType_MemorySizeMB(), theEcorePackage.getEInt(), "memorySizeMB", null, 0, 1, VirtualMachineType.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); initEAttribute(getVirtualMachineType_RootDiskSizeGB(), theEcorePackage.getEInt(), "rootDiskSizeGB", null, 0, 1, VirtualMachineType.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); initEAttribute(getVirtualMachineType_DiskSizeGB(), theEcorePackage.getEInt(), "diskSizeGB", null, 0, 1, VirtualMachineType.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); initEAttribute(getVirtualMachineType_VolumeSizeGB(), theEcorePackage.getEInt(), "volumeSizeGB", null, 0, 1, VirtualMachineType.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); initEAttribute(getVirtualMachineType_ImageName(), theEcorePackage.getEString(), "imageName", null, 0, 1, VirtualMachineType.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); initEAttribute(getVirtualMachineType_FlavorName(), theEcorePackage.getEString(), "flavorName", null, 0, 1, VirtualMachineType.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); initEAttribute(getVirtualMachineType_NeedPublicIp(), theEcorePackage.getEBoolean(), "needPublicIp", null, 0, 1, VirtualMachineType.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); initEAttribute(getVirtualMachineType_DeploymentStatus(), theCorePackage_1.getDeploymentStatus(), "deploymentStatus", null, 0, 1, VirtualMachineType.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); initEReference(getVirtualMachineType_IncomingSecurityRules(), this.getSecurityRule(), null, "incomingSecurityRules", null, 0, -1, VirtualMachineType.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); initEReference(getVirtualMachineType_OutboundSecurityRules(), this.getSecurityRule(), null, "outboundSecurityRules", null, 0, -1, VirtualMachineType.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); initEClass(securityRuleEClass, SecurityRule.class, "SecurityRule", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); initEAttribute(getSecurityRule_PortRangeStart(), theEcorePackage.getEIntegerObject(), "portRangeStart", null, 0, 1, SecurityRule.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); initEAttribute(getSecurityRule_PortRangeEnd(), theEcorePackage.getEIntegerObject(), "portRangeEnd", null, 0, 1, SecurityRule.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); initEAttribute(getSecurityRule_Prefix(), theEcorePackage.getEString(), "prefix", null, 0, 1, SecurityRule.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); initEAttribute(getSecurityRule_IpProtocol(), this.getSecurityRuleProtocol(), "ipProtocol", null, 0, 1, SecurityRule.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); // Initialize enums and add enum literals initEEnum(securityRuleProtocolEEnum, SecurityRuleProtocol.class, "SecurityRuleProtocol"); addEEnumLiteral(securityRuleProtocolEEnum, SecurityRuleProtocol.NONE); addEEnumLiteral(securityRuleProtocolEEnum, SecurityRuleProtocol.TCP); addEEnumLiteral(securityRuleProtocolEEnum, SecurityRuleProtocol.UDP); addEEnumLiteral(securityRuleProtocolEEnum, SecurityRuleProtocol.IMCP); // Create resource createResource(eNS_URI); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void initializePackageContents() {\n\t\tif (isInitialized) return;\n\t\tisInitialized = true;\n\n\t\t// Initialize package\n\t\tsetName(eNAME);\n\t\tsetNsPrefix(eNS_PREFIX);\n\t\tsetNsURI(eNS_URI);\n\n\t\t// Obtain other dependent packages\n\t\tEnginePackage theEnginePackage = (EnginePackage)EPackage.Regist...
[ "0.65655035", "0.6462492", "0.643739", "0.64189833", "0.6408949", "0.640807", "0.64031535", "0.6398402", "0.63814086", "0.63639367", "0.6354103", "0.6342191", "0.6340288", "0.63216865", "0.6318471", "0.6312058", "0.6308946", "0.6304751", "0.62934965", "0.62846047", "0.6269949...
0.5765858
72
A diagnostic indicating that a metaprogram as assigned as a child to a node when another node was already listed as its parent.
@Generated(value={"edu.jhu.cs.bsj.compiler.utils.generator.SourceGenerator"}) public interface MultipleParentNodeDiagnostic extends MetaprogramDetectedErrorDiagnostic<MultipleParentNodeException> { /** The code for this diagnostic. */ public static final String CODE = "bsj.compiler.metaprogram.node.parent.multiple"; /** * Retrieves the node which was attempting to become the parent of the child. * @return The node which was attempting to become the parent of the child. */ public Node getParent(); /** * Retrieves the child node which already had a parent. * @return The child node which already had a parent. */ public Node getChild(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tpublic void setChild(Knoten child) {\n\n\t}", "public void setORM_Parent(orm.Nomenclature value) {\r\n\t\tthis.parent = value;\r\n\t}", "public boolean isChild();", "public boolean isChild() {\n\t\treturn false;\n\t}", "public boolean isChild(){\n return false;\n }", "public boolea...
[ "0.59262294", "0.59251976", "0.5882821", "0.5875842", "0.5845912", "0.58097655", "0.58097655", "0.5747304", "0.57231456", "0.5719985", "0.57002455", "0.5620973", "0.56143486", "0.5587163", "0.5552329", "0.55446", "0.5496113", "0.54877764", "0.54748017", "0.54738605", "0.54381...
0.5920309
2
Retrieves the node which was attempting to become the parent of the child.
public Node getParent();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public TreeNode getParentNode();", "public TreeNode getParent() {\n\t\treturn null;\n\t}", "@Pure\n\tpublic TreeNode<?, ?> getParentNode() {\n\t\treturn (TreeNode<?, ?>) getSource();\n\t}", "Node<T> parent();", "public ParseTreeNode getParent() {\r\n return _parent;\r\n }", "public TreeNode get...
[ "0.75141823", "0.74134386", "0.736369", "0.73424166", "0.73119706", "0.7307072", "0.72970706", "0.72914255", "0.72910196", "0.72910196", "0.7244387", "0.7244387", "0.7238138", "0.721678", "0.71822375", "0.717924", "0.7169158", "0.71685743", "0.71589464", "0.7152551", "0.71309...
0.75714564
0
Retrieves the child node which already had a parent.
public Node getChild();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Node getParent();", "private TreeNode getOnlyChild() {\n return templateRoot.getChildren().get(0);\n }", "public N getChild() {\n\t\tcheckRep();\n\t\treturn this.child;\n\t}", "public XMLPath getParent() {\r\n return this.parent == null ? null : this.parent.get();\r\n }", "public Objec...
[ "0.6853779", "0.68295413", "0.6827413", "0.6701595", "0.66924584", "0.66381335", "0.66099745", "0.66022545", "0.65954816", "0.6589906", "0.6583704", "0.6583704", "0.657302", "0.6528379", "0.6508368", "0.6508368", "0.649355", "0.64835835", "0.6475636", "0.64511156", "0.6446292...
0.7121442
0
/ === Constractor ===
public BluetoothManager( Activity activity ) { mActivity = activity; mContext = activity; mPreferences = PreferenceManager.getDefaultSharedPreferences( mContext ); mByteUtility = new ByteUtility(); mDebugMsg = new DebugMsg(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tpublic boolean equal() {\n\t\treturn false;\n\t}", "String getEqual();", "private Equals() {}", "Equality createEquality();", "protected boolean isEqual( Object lhs, Object rhs ){\r\n\t\tboolean x = lhs==null;\r\n\t\tboolean y = rhs == null;\r\n\t\t//XOR OPERATOR, only one is null\r\n\t\tif ((...
[ "0.6738134", "0.6646298", "0.6496157", "0.6323362", "0.62319225", "0.61601883", "0.6115778", "0.60484564", "0.60470104", "0.6044388", "0.6008101", "0.6008035", "0.59953666", "0.59806347", "0.5957598", "0.5950826", "0.59299016", "0.5910255", "0.59092504", "0.58989966", "0.5896...
0.0
-1
ButtonConnect end Manager Control enabled BluetoothService when onStart
public boolean enableService() { log_d( "enabledService()" ); showTitleNotConnected(); // no action if debug if ( BT_DEBUG_SERVICE ) return false; // If BT is not on, request that it be enabled. // setupChat() will then be called during onActivityResult if ( !mBluetoothAdapter.isEnabled() ) { // startActivity Adapter Enable return true; // Otherwise, setup the chat session } else { initService(); } return false; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void onStart(){ \r\n\t\t//ensure bluetooth is enabled \r\n\t\tensureBluetoothIsEnabled();\r\n\t\tsuper.onStart(); \t\r\n\t}", "void setBluetoothService(BluetoothService bluetoothService);", "void bluetoothDeactivated();", "@Override\n public void onClick(View v) {\n if (mBluetoot...
[ "0.73794585", "0.6936647", "0.68609226", "0.68069834", "0.6738965", "0.6707041", "0.6681654", "0.66603446", "0.6620691", "0.6612107", "0.6609926", "0.6583182", "0.65749013", "0.65699583", "0.65691215", "0.65432185", "0.6533566", "0.6516124", "0.6515503", "0.6506929", "0.64997...
0.6091153
67
Initialization of Bluetooth service
private void initService() { log_d( "initService()" ); // no action if debug if ( BT_DEBUG_SERVICE ) return; // Initialize the BluetoothChatService to perform bluetooth connections if ( mBluetoothService == null ) { log_d( "new BluetoothService" ); mBluetoothService = new BluetoothService( mContext ); } if ( mBluetoothService != null ) { log_d( "set Handler" ); mBluetoothService.setHandler( sendHandler ); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void setupBTService(){\n btService = new BluetoothService(this, mHandler);\n\n // Initialize the buffer for outgoing messages\n outStringBuffer = new StringBuffer(\"\");\n\t}", "private void initializeBLEService(IBinder service) {\n mBluetoothLeService = ((BluetoothLeService.L...
[ "0.799972", "0.7850334", "0.7655771", "0.7571509", "0.73666006", "0.73236966", "0.7301614", "0.72123474", "0.70977724", "0.7038776", "0.7033042", "0.6966895", "0.6962287", "0.69233763", "0.6911639", "0.67317086", "0.66205573", "0.659089", "0.65770465", "0.65565413", "0.652589...
0.8386258
0
connect Bluetooth Device when touch button
public void connectService() { log_d( "connectService()" ); // no action if debug if ( BT_DEBUG_SERVICE ) { toast_short( "No Action in debug" ); return; } // connect the BT device at once // if there is a device address. String address = getPrefAddress(); if ( isPrefUseDevice() && ( address != null) && !address.equals("") ) { BluetoothDevice device = mBluetoothAdapter.getRemoteDevice( address ); if ( mBluetoothService != null ) { log_d( "connect " + address ); mBluetoothService.connect( device ); } // otherwise // send message for the intent of the BT device list } else { notifyDeviceList(); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void buttonClick_connect(View view)\n\t{\n\t\tAppSettings.showConnectionLost = false;\n\t\tLog.i(TAG, \"showConnectionLost = false\");\n\t\t\n\t\tAppSettings.bluetoothConnection = new BluetoothConnection(this.getApplicationContext(), this.btConnectionHandler);\n\t\tBluetoothAdapter btAdapter = AppSettings.b...
[ "0.77661043", "0.7468458", "0.7422976", "0.74047494", "0.73103094", "0.73025936", "0.7101166", "0.70917284", "0.70465237", "0.7027377", "0.7014398", "0.6969312", "0.68836665", "0.6877158", "0.6875312", "0.686895", "0.6857115", "0.6844093", "0.68382484", "0.68318456", "0.68198...
0.654323
47
start Bluetooth Service when onResume
public void startService() { log_d( "startService()" ); int state = execStartService(); switch( state ) { case STATE_CONNECTED: showTitleConnected( getDeviceName() ); hideButtonConnect(); break; default: showTitleNotConnected(); break; } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n protected void onResume() {\n\n super.onResume();\n\n bindService(serviceIntent, connection, BIND_AUTO_CREATE);\n\n }", "public void onResume(){\r\n\t\t//necessary if bluetooth-enabling-dialog appears \r\n\t\taddPairedDevices();\r\n\t\tsuper.onResume();\r\n\t}", "@Override\n ...
[ "0.7533819", "0.7419701", "0.73492867", "0.7237773", "0.71651167", "0.7134133", "0.7127907", "0.69184715", "0.68828577", "0.68531245", "0.67647886", "0.6727133", "0.6695579", "0.667928", "0.66492504", "0.66249585", "0.66191524", "0.6615979", "0.65824664", "0.655051", "0.65038...
0.0
-1
stop Bluetooth Service when onDestroy
public void stopService() { log_d( "stopService()" ); // no action if debug if ( BT_DEBUG_SERVICE ) return; // Stop the Bluetooth chat services if ( mBluetoothService != null ) { log_d( "BluetoothService stop" ); mBluetoothService.stop(); } showButtonConnect(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n protected void onDestroy() {\n super.onDestroy();\n\n unbindService(conn);\n unregisterReceiver(mbtBroadcastReceiver);\n }", "@Override\n public void onDestroy() {\n stopService();\n }", "@Override\n public void onDestroy() {\n super.onDestroy();\n ...
[ "0.7931839", "0.78975606", "0.7830911", "0.7829495", "0.7806286", "0.7771709", "0.7679922", "0.762894", "0.7622958", "0.76035917", "0.7592111", "0.7565034", "0.7523763", "0.75211966", "0.7456609", "0.7445137", "0.7400065", "0.73785555", "0.737134", "0.7359326", "0.7343899", ...
0.7481632
14
check the status of BT service
public boolean isServiceConnected() { log_d( "isServiceConnected()" ); // true if debug if ( BT_DEBUG_SERVICE ) return true; // if connected if ( mBluetoothService != null ) { if ( mBluetoothService.getState() == STATE_CONNECTED ) { log_d( "true" ); return true; } } // otherwise log_d( "false" ); return false; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private static void checkStatus() {\n\r\n\t\tDate date = new Date();\r\n\t\tSystem.out.println(\"Checking at :\"+date.toString());\r\n\t\tString response = \"\";\r\n\t\ttry {\r\n\t\t\tresponse = sendGET(GET_URL_COVAXIN);\r\n\t\t} catch (IOException e) {\r\n\t\t\t// TODO Auto-generated catch block\r\n\t\t\te.printS...
[ "0.72282743", "0.69944227", "0.6982639", "0.6911073", "0.6867167", "0.6840873", "0.6811853", "0.68070656", "0.67493355", "0.66702276", "0.65807253", "0.65554", "0.65554", "0.65554", "0.65554", "0.65554", "0.65554", "0.65554", "0.65554", "0.65554", "0.65554", "0.65554", "0...
0.0
-1
Manager Control end Command Sends a message.
public boolean writeString( String str ) { log_d( "writeString() " + str ); // Check that there's actually something to send if ( str.length() == 0 ) return false; // Get the message bytes and tell the BluetoothChatService to write return writeBytes( str.getBytes() ); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void endMessage()\n\t{\n\t}", "public void endGameMessage() {\n gameArena.addText(endGameMsg);\n }", "public void endCommand();", "void sendFinishMessage();", "public void sendEndGame (){\n connect();\n try{\n doStream.writeUTF(\"GAME_STOP\");\n doStream...
[ "0.7157452", "0.687574", "0.6778826", "0.66281164", "0.63412523", "0.6273718", "0.6272835", "0.62237084", "0.6195902", "0.6063505", "0.6056345", "0.601375", "0.5947765", "0.5923447", "0.5891666", "0.5803307", "0.5798586", "0.57886076", "0.57282245", "0.57278085", "0.56970835"...
0.0
-1
Command end onActivityResult Processing when ActivityResult
public boolean execActivityResult( int request, int result, Intent data ) { boolean ret = true; switch ( request) { case REQUEST_DEVICE_CONNECT: execActivityResultDevice( result, data ); break; case REQUEST_ADAPTER_ENABLE: ret = execActivityResultAdapter( result, data ); break; } return ret; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void end(){\r\n\t\tsetResult( true ); \r\n\t}", "@Override\r\n\t\tprotected void onPostExecute(String result) {\n\t\t\tmDialog.cancel();\r\n\t\t\tIntent intent=new Intent();\r\n\t\t\tsetResult(11, intent);\r\n\t\t\tfinish();\r\n\t\t}", "@Override\n\tpublic void resultActivityCall(int requestCode, int re...
[ "0.69068265", "0.68531114", "0.6851621", "0.68507254", "0.6847835", "0.68021625", "0.6791701", "0.67431664", "0.67327386", "0.66900665", "0.6678416", "0.6661554", "0.6660202", "0.6600704", "0.6565698", "0.656468", "0.6542877", "0.6530116", "0.6525045", "0.65198785", "0.650982...
0.0
-1
Processing when connecting Bluetooth Device
public void execActivityResultDevice( int result, Intent data ) { log_d( "execActivityResultDevice()" ); // no action if debug if ( BT_DEBUG_SERVICE ) return; // When DeviceListActivity returns with a device to connect if ( result == Activity.RESULT_OK ) { log_d( "RESULT OK" ); // Get the device MAC address String address = data.getExtras().getString( BT_EXTRA_DEVICE_ADDRESS ); // Get the BluetoothDevice object BluetoothDevice device = mBluetoothAdapter.getRemoteDevice( address ); if ( mBluetoothService != null ) { log_d( "connect " + address ) ; // Attempt to connect to the device mBluetoothService.connect( device ); } } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void bluetoothConnect() {\n\n btDevice = btAdapter.getRemoteDevice(EDISON_ADDRESS);\n if (btDevice == null) {\n Log.d(TAG,\"get remote device fail!\");\n finish();\n }\n\n try {\n btSocket = btDevice.createRfcommSocketToServiceRecord(SSP_UUID);\n...
[ "0.7481283", "0.74031913", "0.7366099", "0.69926757", "0.6954368", "0.6889281", "0.6879421", "0.687088", "0.68684745", "0.68463415", "0.67598575", "0.673858", "0.66980356", "0.66705596", "0.6659892", "0.6638189", "0.6633195", "0.66217893", "0.6615716", "0.6595033", "0.6557658...
0.0
-1
Processing when Bluetooth Adapter is enable
public boolean execActivityResultAdapter( int result, Intent data ) { log_d( "execActivityResultAdapter()" ); // no action if debug if ( BT_DEBUG_SERVICE ) return true; // When the request to enable Bluetooth returns if ( result == Activity.RESULT_OK ) { log_d( "RESULT OK" ); // Bluetooth is now enabled, so set up a chat session initService(); // If user did not enable Bluetooth or an error occured } else { log_d( "RESULT NG" ); return false; } return true; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void enableBT() {\n if (bluetoothAdapter == null) {\n Log.e(LOG_TAG, \"Bluetooth is not supported\");\n } else if (!bluetoothAdapter.isEnabled()) {\n bluetoothAdapter.enable();\n }\n }", "private void turnOnBT() {\n\t\tIntent intent = new Intent(BluetoothAdap...
[ "0.75552934", "0.7329292", "0.7272351", "0.72603494", "0.72107255", "0.72015464", "0.7140875", "0.7134927", "0.710149", "0.7055289", "0.6992043", "0.69535756", "0.6930251", "0.69231015", "0.69004613", "0.68934005", "0.6884545", "0.67729384", "0.6772903", "0.67345154", "0.6719...
0.61359787
67
Message Handler ( handle message )
private void execServiceHandler( Message msg ) { switch ( msg.what ) { case BluetoothService.WHAT_READ: execHandlerRead( msg ); break; case BluetoothService.WHAT_WRITE: execHandlerWrite( msg ); break; case BluetoothService.WHAT_STATE_CHANGE: execHandlerChange( msg ); break; case BluetoothService.WHAT_DEVICE_NAME: execHandlerDevice( msg ); break; case BluetoothService.WHAT_FAILED: execHandlerFailed( msg ); break; case BluetoothService.WHAT_LOST: execHandlerLost( msg ); break; } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected void handleMessage(Message msg) {}", "public void handleMessage(Message message);", "@Override\r\n public void handleMessage(Message msg) {\n }", "@Override\n public void handleMessage(Message message) {}", "public abstract void msgHandler(Message msg);", "abstract ...
[ "0.8766197", "0.8731672", "0.8408875", "0.83957416", "0.8264594", "0.8104294", "0.79856867", "0.78030145", "0.7799257", "0.7768347", "0.7753449", "0.77254844", "0.76256686", "0.75947964", "0.75705546", "0.75335735", "0.75261295", "0.7515114", "0.7510012", "0.750214", "0.74983...
0.0
-1
Message Handler ( state change )
private void execHandlerChange( Message msg ){ switch ( msg.arg1 ) { case STATE_CONNECTED: execHandlerConnected( msg ); break; case STATE_CONNECTING: execHandlerConnecting( msg ); break; default: execHandlerNotConnected( msg ); break; } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void handleMessage(Message msg) {\n switch (msg.what) {\n case Constants.MESSAGE_STATE_CHANGE:\n\n break;\n\n }\n }", "void stateUpdate(String msg);", "@Override\n public void handleMessage(Message m) {\n int gam...
[ "0.83581805", "0.78306556", "0.73385453", "0.7060574", "0.69741315", "0.6962521", "0.69577795", "0.68880963", "0.68111634", "0.6796918", "0.6791733", "0.67510617", "0.6697017", "0.66935", "0.6683748", "0.66571563", "0.66302216", "0.66170263", "0.6599638", "0.6571435", "0.6570...
0.7959315
1
Message Handler ( read )
public void execHandlerRead( Message msg ) { // create valid data bytes byte[] buffer = (byte[]) msg.obj; int length = (int) msg.arg1; byte[] bytes = new byte[ length ]; for ( int i=0; i < length; i++ ) { bytes[ i ] = buffer[ i ]; } // debug String read = buildMsgBytes( "r ", bytes ); log_d( read ); addAndShowTextViewDebug( read ); notifyRead( bytes ); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tpublic void readMessage(Message message) {\n\t\t\n\t}", "private void messageHandler(String read){\n\n try {\n buffer.append(read);\n }catch (MalformedMessageException e){\n System.out.println(\"[CLIENT] The message received is not in XML format.\");\n }\n\...
[ "0.7732359", "0.7504145", "0.7244303", "0.7200611", "0.71448874", "0.71405095", "0.71173126", "0.71027523", "0.7073241", "0.7058393", "0.7010969", "0.7010285", "0.6996081", "0.69955355", "0.697918", "0.692686", "0.692289", "0.6901084", "0.6888136", "0.68363744", "0.680746", ...
0.8109057
0
Message Handler ( write )
private byte[] execHandlerWrite( Message msg ) { byte[] bytes = (byte[]) msg.obj; String data = mByteUtility.bytesToHexString( bytes ); log_d( "EventWrite " + data ); return bytes; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void messageWriter(MessageWriter messageWriter);", "private void handleWrite(SelectionKey key, String message, SSLClientSession session) throws IOException {\n\t\t\tSSLSocketChannel ssl_socket_channel = session.getSSLSocketChannel();\n\t\t\t\n\t\t\tByteBuffer out_message = ssl_socket_channel.getAppSendBuffer();...
[ "0.7009702", "0.69228053", "0.6837062", "0.6827622", "0.66970307", "0.66810924", "0.6619897", "0.6617286", "0.65846646", "0.6502596", "0.64891887", "0.64785326", "0.64583904", "0.6447227", "0.6441881", "0.6438981", "0.6394632", "0.6384914", "0.6375571", "0.6360822", "0.635970...
0.68432426
2
Message Handler ( device name )
private void execHandlerDevice( Message msg ) { // get the connected device's name String name = msg.getData().getString( BUNDLE_DEVICE_NAME ); log_d( "EventDevice " + name ); hideButtonConnect(); String str = getTitleConnected( name ); showTitle( str ); toast_short( str ); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "String getDeviceName();", "public String getDeviceName(){\n\t return deviceName;\n }", "public String getDeviceName() {\r\n return name_;\r\n }", "void onConnectedAsServer(String deviceName);", "@Override\n public void onDeviceNameChange(BluetoothDevice device, String name) {\n ...
[ "0.6871022", "0.67320323", "0.65895236", "0.6550978", "0.6496539", "0.6493788", "0.64606243", "0.64603686", "0.64492935", "0.6358623", "0.6337397", "0.63313717", "0.63198084", "0.63066894", "0.62640357", "0.62614566", "0.6260836", "0.6175647", "0.61551154", "0.6151739", "0.61...
0.7931074
0
Message Handler ( failed )
private void execHandlerFailed( Message msg ) { toast_short( mMsgFailed ); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tpublic void fail(Handle msg) {\n\t\t\n\t}", "@Override\n\t\t\tpublic void onFailed(String message, int code) {\n\t\t\t\t\n\t\t\t}", "@Override\n\t\t\tpublic void onFailed(String message, int code) {\n\t\t\t\t\n\t\t\t}", "@Override\n\t\t\tpublic void onFailed(String message, int code) {\n\t\t\t\t...
[ "0.7387288", "0.7349048", "0.7349048", "0.7349048", "0.7238686", "0.7049957", "0.6835187", "0.683199", "0.6730331", "0.6650934", "0.66298693", "0.6629673", "0.6629673", "0.6629673", "0.6626149", "0.6626149", "0.66072965", "0.6579332", "0.6575883", "0.6573652", "0.6573652", ...
0.7916404
0
Message Handler ( lost )
private void execHandlerLost( Message msg ) { showButtonConnect(); toast_short( mMsgLost ); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected void handleMessage(Message msg) {}", "@Override\r\n public void handleMessage(Message msg) {\n }", "@Override\n public void handleMessage(Message message) {}", "public abstract void msgHandler(Message msg);", "public void handleMessage(Message message);", "@Override...
[ "0.7502888", "0.740167", "0.7329556", "0.7298726", "0.7072347", "0.6998925", "0.698325", "0.69166005", "0.6879751", "0.68460584", "0.68113965", "0.67889804", "0.6762183", "0.6717407", "0.66907436", "0.66518074", "0.6649059", "0.6642232", "0.6642232", "0.66220486", "0.6605792"...
0.6946612
7
Message Handler ( connected )
private void execHandlerConnected( Message msg ) { // save Device Address if ( mBluetoothService != null ) { String address = mBluetoothService.getDeviceAddress(); setPrefAddress( address ); } showTitleConnected( getDeviceName() ); hideButtonConnect(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void run() {\n Message message = new Message();\n message.what = 4;\n handler.sendMessage(message);\n }", "@Override\n public void run() {\n Message message = new Message();\n me...
[ "0.75898266", "0.7583686", "0.7543774", "0.74979174", "0.73762596", "0.7319143", "0.7316033", "0.7301449", "0.72884583", "0.7263919", "0.7215759", "0.72089857", "0.71918285", "0.7159917", "0.71582156", "0.71138096", "0.7112117", "0.70235807", "0.702035", "0.70184374", "0.7012...
0.7229048
10
Message Handler end Shared Preferences get the device address
private String getPrefAddress() { return mPreferences.getString( PREF_ADDR, DEFAULT_ADDR ); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void saveNewAddress() {\n SharedPreferences.Editor editor = sharedPreferences.edit();\n editor.putString(deviceAddress, \"previousDeviceAddress\");\n editor.commit();\n }", "private void execHandlerConnected( Message msg ) {\t\n\t\t// save Device Address\n\t\tif ( mBluetoothServic...
[ "0.5965852", "0.5875766", "0.5821932", "0.57656866", "0.5654178", "0.5651572", "0.56335247", "0.5618255", "0.5565892", "0.5471255", "0.5450582", "0.5428561", "0.5428561", "0.5410428", "0.54061687", "0.5400723", "0.5393484", "0.5367112", "0.53513485", "0.5336423", "0.5325696",...
0.6411973
0
save the device address
private void setPrefAddress( String addr ) { mPreferences.edit().putString( PREF_ADDR, addr ).commit(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void saveNewAddress() {\n SharedPreferences.Editor editor = sharedPreferences.edit();\n editor.putString(deviceAddress, \"previousDeviceAddress\");\n editor.commit();\n }", "public void saveNewAddress(Address addr) throws BackendException;", "public void writeToStorage() throws ...
[ "0.75483584", "0.66774684", "0.632301", "0.59225017", "0.588367", "0.5844859", "0.5837397", "0.5692034", "0.5681838", "0.5658346", "0.5626134", "0.5592251", "0.5575159", "0.55710614", "0.55437976", "0.5461086", "0.54274756", "0.54262686", "0.5416294", "0.54102796", "0.5399335...
0.54554236
16
clear the device address
public void clearPrefAddress() { setPrefAddress( "" ); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void clearAddress() {\n mAddress = HdmiCec.ADDR_UNREGISTERED;\n }", "void DevClear (int boardID, short addr);", "public void clear() throws DeviceException;", "public void unsetFromAddress()\n {\n synchronized (monitor())\n {\n check_orphaned();\n get_sto...
[ "0.7705272", "0.76685315", "0.75368667", "0.70288676", "0.669095", "0.669095", "0.66579413", "0.6615191", "0.6568888", "0.6514429", "0.6456057", "0.6421588", "0.6394968", "0.63897026", "0.62679833", "0.62099826", "0.6188136", "0.6188136", "0.6157186", "0.61526823", "0.6151785...
0.62399954
15
Shared Preferences end title bar showTitle Connected
private void showTitleConnected( String name ) { showTitle( getTitleConnected( name ) ); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void displayTitle() {\n\t\tthis.theScreen.setFont(Preferences.TITLE_FONT);\n\t\tthis.theScreen.setColor(Preferences.TITLE_COLOR);\n\t\tthis.theScreen.drawString(Preferences.TITLE,\n\t\t\t\tPreferences.TITLE_X, Preferences.TITLE_Y);\n\t}", "@Override\n\tprotected void onConfigrationTitleBar() {\n\t\tsetTit...
[ "0.6657982", "0.6486963", "0.6419342", "0.63407683", "0.6321046", "0.6273843", "0.62726897", "0.6246751", "0.6224322", "0.6206659", "0.6206659", "0.6206659", "0.6206659", "0.6206659", "0.6195683", "0.6195683", "0.6195683", "0.61875296", "0.6159419", "0.61506355", "0.6147226",...
0.6032542
26
title bar end Debug init TextView Debug when onCreate
public void initTextViewDebug( View view, int id ) { mTextViewDebug = (TextView) view.findViewById( id ); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void init_titlebar() {\n\t\tbackBtn = (Button) findViewById(R.id.titlebar_back);\n\t\ttitleTv = (TextView) findViewById(R.id.titlebar_title);\n\t\totherBtn = (Button) findViewById(R.id.titlebar_other);\n\n\t\tbackBtn.setOnClickListener(this);\n\t\ttitleTv.setText(R.string.WXYT);\n\t\totherBtn.setVisibility...
[ "0.7225686", "0.71933115", "0.7169258", "0.6978573", "0.67627203", "0.668859", "0.6687134", "0.6638682", "0.6600128", "0.65802306", "0.6559168", "0.655779", "0.653234", "0.6517696", "0.6480214", "0.64600956", "0.64509726", "0.6432522", "0.64121836", "0.6398237", "0.63864994",...
0.0
-1
TODO Autogenerated method stub
@Override public void changeDL(IDataLoader dl) { this.dl = dl; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExr...
[ "0.6671074", "0.6567672", "0.6523024", "0.6481211", "0.6477082", "0.64591026", "0.64127725", "0.63762105", "0.6276059", "0.6254286", "0.623686", "0.6223679", "0.6201336", "0.61950207", "0.61950207", "0.61922914", "0.6186996", "0.6173591", "0.61327106", "0.61285484", "0.608016...
0.0
-1
write your code here
public static int replaceBlank(char[] string, int length) { int count = 0; for(int i=0;i<length;i++){ if(string[i]==' '){ count++; } } int ans = length+count*2; int j=ans-1; for(int i=length-1;i>-1;i--){ if(string[i]==' '){ string[j--]='0'; string[j--]='2'; string[j--]='%'; }else{ string[j--]=string[i]; } } return ans; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void logic(){\r\n\r\n\t}", "public static void generateCode()\n {\n \n }", "@Override\n\tprotected void logic() {\n\n\t}", "private static void cajas() {\n\t\t\n\t}", "void pramitiTechTutorials() {\n\t\n}", "@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}", "@Override\r\n\tpub...
[ "0.61019534", "0.6054925", "0.58806974", "0.58270746", "0.5796887", "0.56999695", "0.5690986", "0.56556827", "0.5648637", "0.5640487", "0.56354505", "0.56032085", "0.56016207", "0.56006724", "0.5589654", "0.5583692", "0.55785793", "0.55733466", "0.5560209", "0.55325305", "0.5...
0.0
-1
convert both to string
@Override public int compare(Integer o1, Integer o2) { String s1 = o1.toString(); String s2 = o2.toString(); int s1Length = s1.length(); int s2Length = s2.length(); if (s1Length == s2Length) { //we want descending order return s2.compareTo(s1); } //find shortest if (s1Length < s2Length) { //we want descending order return compareInternal(s1, s2) * -1; } else { return compareInternal(s2, s1); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static String makeString(Object obj1) {\n if (obj1 != null)\n return obj1.toString();\n else\n return \"\";\n }", "String toString();", "String toString();", "String toString();", "String toString();", "String toString();", "String toString();", "String t...
[ "0.64015806", "0.6284314", "0.6284314", "0.6284314", "0.6284314", "0.6284314", "0.6284314", "0.6284314", "0.6284314", "0.6284314", "0.6284314", "0.6284314", "0.6284314", "0.6284314", "0.6284314", "0.6284314", "0.6284314", "0.6284314", "0.6284314", "0.6284314", "0.6284314", ...
0.0
-1
Compare shorter with longer by matching it with partial longer starting from beginning of longer
private int compareInternal(String shorter, String longer) { int lengthDiff = longer.length() - shorter.length(); for (int compareStartIndexInsideLonger = 0; compareStartIndexInsideLonger <= lengthDiff; compareStartIndexInsideLonger++) { String compariosonPartFromLonger = longer.substring(compareStartIndexInsideLonger, compareStartIndexInsideLonger + shorter.length()); //we have found an answer if they are not equal int result = shorter.compareTo(compariosonPartFromLonger); if (result != 0) { return result; } } //the are equal return 0; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "static String doit(final String string1, final String string2) {\n String shorterString; // a\n String longerString; // b\n if (string1.length() > string2.length()) {\n shorterString = string2;\n longerString = string1;\n } else {\n longerString = string...
[ "0.65732104", "0.61901206", "0.61136204", "0.6065445", "0.60575", "0.59764", "0.58070105", "0.57592165", "0.57178676", "0.5687377", "0.566919", "0.56347656", "0.56074905", "0.5604558", "0.5603731", "0.55998003", "0.5589877", "0.5588254", "0.55848956", "0.5583141", "0.55724514...
0.74595284
0
Creates new form SelectorColor
public SelectorColor(java.awt.Frame parent, boolean modal) { super(parent, modal); initComponents(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@SuppressWarnings({\"deprecation\", \"rawtypes\", \"unchecked\"})\n public static javafx.scene.effect.ColorInputBuilder<?> create() {\n return new javafx.scene.effect.ColorInputBuilder();\n }", "Color userColorChoose();", "colorChoice(Vec3 color) {\n this.color = color;\n ...
[ "0.679376", "0.65560776", "0.6463584", "0.645352", "0.64043856", "0.63114095", "0.61974657", "0.6176193", "0.6175821", "0.61428916", "0.6078054", "0.60779285", "0.5953885", "0.5948121", "0.5938788", "0.5850043", "0.580994", "0.5804413", "0.57799494", "0.5761495", "0.5728978",...
0.59146774
15
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() { colorChooser = new javax.swing.JColorChooser(); aceptarBoton = new javax.swing.JButton(); cancelarBoton = new javax.swing.JButton(); setDefaultCloseOperation(javax.swing.WindowConstants.DISPOSE_ON_CLOSE); colorChooser.setInheritsPopupMenu(true); aceptarBoton.setText("Aceptar"); aceptarBoton.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { aceptarBotonActionPerformed(evt); } }); cancelarBoton.setText("Cancelar"); cancelarBoton.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { cancelarBotonActionPerformed(evt); } }); javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane()); getContentPane().setLayout(layout); layout.setHorizontalGroup( layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(layout.createSequentialGroup() .addContainerGap() .addComponent(colorChooser, javax.swing.GroupLayout.DEFAULT_SIZE, 732, Short.MAX_VALUE) .addContainerGap()) .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup() .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addComponent(aceptarBoton) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addComponent(cancelarBoton) .addGap(11, 11, 11)) ); layout.setVerticalGroup( layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(layout.createSequentialGroup() .addContainerGap() .addComponent(colorChooser, javax.swing.GroupLayout.DEFAULT_SIZE, 348, Short.MAX_VALUE) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) .addComponent(aceptarBoton) .addComponent(cancelarBoton)) .addContainerGap()) ); 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
create a boolean store the result of you want to shop if yes, do you want to go to the Store or do you wanna shop online if user do not want to shop at all, print GOOD JOB
public static void main(String[] args) { Scanner shoppingMethod = new Scanner(System.in); System.out.println("DO YOU WANT TO SHOP ?"); boolean wantToShop = shoppingMethod.nextBoolean(); System.out.println("WHAT IS THE WAY YOU SHOPPIG ?"); String onlineOrStore = shoppingMethod.next(); if(wantToShop==true) { if (onlineOrStore.equals("Online")) { System.out.println("GOING TO ONLINE SHOOPING"); } else { System.out.println("GOING TO STORE SHOPPING"); } } else { System.out.println("GOOD JOB"); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void checkAndExecute(){\n if(priceListener.getSecurityPrice() < buyPrice){\n executionService.buy(security, buyPrice, 100);\n // if the price < buyPrice then executionService.buy(buyquantity)\n }else if ( priceListener.getSecurityPrice() > sellPrice ) {\n ...
[ "0.63566536", "0.608949", "0.599291", "0.59732264", "0.5883889", "0.58622456", "0.58468986", "0.5789756", "0.57227975", "0.568963", "0.5663494", "0.56574404", "0.56102395", "0.5598368", "0.559626", "0.5565171", "0.5558359", "0.5532332", "0.54748774", "0.5468284", "0.54659295"...
0.749418
0
if content root itself is switched, ignore
private void checkSwitchedFile(final FilePath filePath, final ChangelistBuilder builder, final VirtualFile dir, final Entry entry) { if (!myVcsManager.isFileInContent(dir)) { return; } final String dirTag = myEntriesManager.getCvsInfoFor(dir).getStickyTag(); final String dirStickyInfo = getStickyInfo(dirTag); if (entry != null && !Objects.equals(entry.getStickyInformation(), dirStickyInfo)) { final VirtualFile file = filePath.getVirtualFile(); if (file != null) { if (entry.getStickyTag() != null) { builder.processSwitchedFile(file, CvsBundle.message("switched.tag.format", entry.getStickyTag()), false); } else if (entry.getStickyDate() != null) { builder.processSwitchedFile(file, CvsBundle.message("switched.date.format", entry.getStickyDate()), false); } else if (entry.getStickyRevision() != null) { builder.processSwitchedFile(file, CvsBundle.message("switched.revision.format", entry.getStickyRevision()), false); } else { builder.processSwitchedFile(file, CvsUtil.HEAD, false); } } } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public boolean shouldContinueSwitchedRootFound() {\n return false;\n }", "protected boolean shouldIgnoreContent() {\n return empty;\n }", "public void ignoreChildren() {\r\n this.isIgnoreChildren = true;\r\n }", "@Override\n\tpublic boolean isRoot() {\n\t\treturn false;\n\t}"...
[ "0.6876519", "0.6149346", "0.60760087", "0.59823936", "0.5908794", "0.57927877", "0.576885", "0.576885", "0.5751858", "0.5751858", "0.5682119", "0.5654118", "0.5588678", "0.55698514", "0.5560867", "0.553969", "0.54746956", "0.54676", "0.5447001", "0.5402371", "0.53759277", ...
0.0
-1
add our users for in memory authentication
@Override protected void configure(AuthenticationManagerBuilder auth) throws Exception { UserBuilder users = User.withDefaultPasswordEncoder(); auth.inMemoryAuthentication().withUser(users.username("user").password("test123").roles("USER")) .withUser(users.username("tester").password("test123").roles("USER", "TESTER")) .withUser(users.username("tom").password("test123").roles("USER", "ADMIN")); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n protected void configure(AuthenticationManagerBuilder auth) throws Exception {\n\n //CREATE USERS\n auth.inMemoryAuthentication().withUser(\"myadmin\").password(\"{noop}myadminpassword\").roles(\"ADMIN\");\n auth.inMemoryAuthentication().withUser(\"myuser\" ).password(\"{noop}myuserpassword\"...
[ "0.6672891", "0.6598998", "0.647709", "0.642266", "0.63641715", "0.63556933", "0.633456", "0.62833756", "0.6270164", "0.62455016", "0.62423605", "0.6230895", "0.6221206", "0.6218644", "0.6216321", "0.62032616", "0.6201935", "0.6171627", "0.6161104", "0.61321104", "0.61281705"...
0.62265384
12
Custom method Update points
@PutMapping("/points/{customerId}") @ResponseStatus(HttpStatus.NO_CONTENT) public void updatePointsOnAccount(@PathVariable("customerId") int customerId, @RequestBody @Valid LevelUpViewModel lvm) { if (customerId != lvm.getCustomerId()) { throw new IllegalArgumentException(String.format("Id %s in the PathVariable does not match the Id %s in the RequestBody ", customerId, lvm.getCustomerId())); } serviceLayer.updatePoints(lvm); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void update(){\r\n\t\tList<Point> list = new ArrayList<Point>();\r\n\t\t\r\n\t\tlist.addAll(Arrays.asList(points));\r\n\t\t\r\n\t\tsetPoints(list);\r\n\t}", "protected synchronized void updatePoints(double points)\n\t{\n\t\tif(Config.VIT_MAX_PLAYER_LVL > _player.getLevel())\n\t\t{\n\t\t\tif(Config.VIT_CHE...
[ "0.81227314", "0.742128", "0.7315424", "0.7078705", "0.7050182", "0.6886994", "0.6854011", "0.6798531", "0.67973995", "0.6774254", "0.6749278", "0.6677003", "0.66460645", "0.6618703", "0.655445", "0.6529686", "0.6522992", "0.64900315", "0.6489052", "0.64884377", "0.6468875", ...
0.0
-1
Custom method Get points by customer id
@GetMapping("/points/{customerId}") @ResponseStatus(HttpStatus.OK) public int retrievePointsByCustomerId(@PathVariable("customerId") int customerId) { return serviceLayer.getPoints(customerId); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String getCustomer(String custId);", "Customer getCustomerById(final Long id);", "public Customer getCustomers(int customerId) {\n for(Customer customer:customers){\n if(customer.getId() == customerId){\n return customer;\n }\n }\n return null;\n...
[ "0.66678333", "0.6528641", "0.65059125", "0.64371055", "0.6370986", "0.6353332", "0.62746495", "0.6174383", "0.6167564", "0.61458755", "0.61425596", "0.6135432", "0.61285275", "0.60864484", "0.6081459", "0.60625166", "0.60383385", "0.6026971", "0.60227257", "0.60227257", "0.6...
0.7666842
0
Custom method Get account by Customer Id
@GetMapping("/customer/{customerId}") @ResponseStatus(HttpStatus.OK) public LevelUpViewModel getLevelUpAccountByCustomerId(@PathVariable("customerId") int customerId) { return serviceLayer.getLevelUpByCustomerId(customerId); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String getCustomer(String custId);", "List<Account> getAccountsForCustomerId(int customerId);", "Customer getCustomerById(final Long id);", "Account getAccount(int id);", "Customer getCustomerById(int customerId);", "public MnoAccount getAccountById(String id);", "@Query(\"select acc from Accoun...
[ "0.77170044", "0.76606154", "0.76304924", "0.75918984", "0.7484825", "0.7412228", "0.72984135", "0.72161317", "0.7215114", "0.7215114", "0.71732634", "0.71080995", "0.70702815", "0.6958351", "0.69418705", "0.6916249", "0.6914216", "0.6909826", "0.68978584", "0.6882773", "0.68...
0.0
-1
TODO Autogenerated method stub
@Override public void onClick(View arg0) { finish(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExr...
[ "0.6671074", "0.6567672", "0.6523024", "0.6481211", "0.6477082", "0.64591026", "0.64127725", "0.63762105", "0.6276059", "0.6254286", "0.623686", "0.6223679", "0.6201336", "0.61950207", "0.61950207", "0.61922914", "0.6186996", "0.6173591", "0.61327106", "0.61285484", "0.608016...
0.0
-1