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
Created by guo on 2018/08/22.
public interface CountTaskService extends Service<CountTask, Integer> { List<CountTaskDto> findList(CountTaskCriteria criteria); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void perish() {\n \n }", "private stendhal() {\n\t}", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\r...
[ "0.6037577", "0.5916261", "0.57683855", "0.571679", "0.5673143", "0.5673143", "0.5599331", "0.55785507", "0.5570049", "0.55672747", "0.556535", "0.5551324", "0.55365276", "0.5533741", "0.5519151", "0.5511595", "0.55105025", "0.55104065", "0.5501624", "0.5501145", "0.5487104",...
0.0
-1
Construct message view with corresponding fields
@Override protected Control createDialogArea(Composite parent) { container = (Composite) super.createDialogArea(parent); container.setLayout(new GridLayout(2, false)); new Label(container, SWT.NONE); Label lblTo = new Label(container, SWT.NONE); lblTo.setText("Recipient:"); new Label(container, SWT.NONE); tfRecipient = new Text(container, SWT.BORDER); tfRecipient.setLayoutData(new GridData(SWT.FILL, SWT.CENTER, true, false, 1, 1)); new Label(container, SWT.NONE); Label lblSubject = new Label(container, SWT.NONE); lblSubject.setText("Subject:"); new Label(container, SWT.NONE); tfSubject = new Text(container, SWT.BORDER); tfSubject.setLayoutData(new GridData(SWT.FILL, SWT.CENTER, true, false, 1, 1)); new Label(container, SWT.NONE); lblMessage = new Label(container, SWT.NONE); lblMessage.setText("Message:"); new Label(container, SWT.NONE); tfMessage = new Text(container, SWT.BORDER | SWT.WRAP | SWT.MULTI); GridData gd_text_2 = new GridData(SWT.FILL, SWT.CENTER, true, false, 1, 1); gd_text_2.heightHint = 292; tfMessage.setLayoutData(gd_text_2); getShell().setText("Write new Message"); return container; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n protected void populateView(View v, ChatMessage model, int position) {\n TextView messageText = (TextView)v.findViewById(R.id.message_text);\n TextView messageUser = (TextView)v.findViewById(R.id.message_user);\n TextView messageTime = (TextView)v...
[ "0.64927477", "0.6463125", "0.62977856", "0.61597914", "0.6158688", "0.6095031", "0.60573477", "0.59792507", "0.5925157", "0.59162873", "0.58819515", "0.582314", "0.5783868", "0.5717106", "0.56892467", "0.5686994", "0.56288", "0.5603257", "0.56029993", "0.5602824", "0.5599502...
0.5250257
71
Default size of dialog window
protected Point getInitialSize() { return new Point(700, 500); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tprotected Point getInitialSize() {\n\t\treturn new Point(DIALOG_DEFAULT_WIDHT, DIALOG_DEFAULT_HEIGHT);\n\t}", "protected void createDialogSize ()\n {\n }", "private void setDialog()\n {\n //this.setSize(350,500);\n this.setTitle(Constant.getTextBundle(\"ปฏิกิริยาต่อกัน\"));\...
[ "0.79964", "0.7745856", "0.71494424", "0.7133543", "0.698172", "0.6711133", "0.67034376", "0.6600735", "0.6490507", "0.6490072", "0.6424961", "0.634799", "0.6346851", "0.63286936", "0.6315616", "0.62982607", "0.6271267", "0.62650394", "0.6252255", "0.6208631", "0.6201126", ...
0.5788252
50
JBIDE4341: the EL proposals are not to be returned (and tested) here anymore. The ELproposals are removed from the testlist.
public void testThereAreNoUnnecessaryElementsForDirAttributeInXHTMLPageJBIDE1813(){ String[] proposals={ "ltr", "rtl", "#{}" }; checkProposals(PAGE_NAME, "dir=\"\"", 5, proposals, true); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void testCompletion() throws Exception {\n \t\tsetUpIntentProject(\"completionTest\", INTENT_DOC_PATH);\n \t\teditor = openIntentEditor();\n \t\tdocument = editor.getDocumentProvider().getDocument(editor.getEditorInput());\n \t\tcontentAssistant = editor.getViewerConfiguration().getContentAssistant(editor.g...
[ "0.5708207", "0.55172217", "0.55066705", "0.5341081", "0.53167534", "0.52897245", "0.52877545", "0.52409387", "0.5221864", "0.5148566", "0.51485646", "0.5114881", "0.5029636", "0.49956608", "0.4959972", "0.49598894", "0.49366358", "0.4935981", "0.49259627", "0.48788363", "0.4...
0.5020529
13
Example of reading request by chunk and getting values from chunk to chunk
private void readHttpDataChunkByChunk(HttpPostRequestDecoder decoder) { try { while (decoder.hasNext()) { InterfaceHttpData data = decoder.next(); if (data != null) { // check if current HttpData is a FileUpload and previously set as partial if (partialContent == data) { partialContent = null; } try { // new value writeHttpData(data); } finally { data.release(); } } } // Check partial decoding for a FileUpload InterfaceHttpData data = decoder.currentPartialHttpData(); if (data != null) { if (partialContent == null) { partialContent = (HttpData) data; } } } catch (HttpPostRequestDecoder.EndOfDataDecoderException e1) { // end } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test\n public void testChunkedOutputToChunkInput() throws Exception {\n final ChunkedInput<String> input = target().path(\"test\").request().get(new javax.ws.rs.core.GenericType<ChunkedInput<String>>() {});\n int counter = 0;\n String chunk;\n while ((chunk = input.read()) != null) ...
[ "0.69930035", "0.6086813", "0.6020874", "0.59546345", "0.5847357", "0.56635636", "0.56238914", "0.5609553", "0.56061596", "0.5604877", "0.5584553", "0.54951876", "0.5468784", "0.5432705", "0.5424228", "0.5424228", "0.5424228", "0.5424228", "0.53647035", "0.5308975", "0.529541...
0.66107714
1
Generate n components of random sizes
public static JComponent[] generateComponents(int n) { Random r = new Random(0); JComponent[] c = new JComponent[n]; int m = n; while (m > 0) { int i = r.nextInt(n); if (c[i] == null) { c[i] = new JLabel("Component " + i, null, SwingConstants.CENTER); int w = 5 * (2 + r.nextInt(20)); int h = 5 * (2 + r.nextInt(20)); c[i].setPreferredSize(new Dimension(w, h)); c[i].setBorder(new EtchedBorder()); m --; } } return c; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void genRand(int n) {\n\t\tfor(int i = 0; i < n; i++) {\n\t\t\tfor(int j = 0; j < n; j++) {\n\t\t\t\tm[i][j] = rand.nextInt(10);\n\t\t\t}\n\t\t}\n\t}", "public GenerateRandomInstances(int n) {\r\n this.sources = new Source[n];\r\n this.sources[0] = new Factory(\"S\" + 0, (int) (Math.random()...
[ "0.6497496", "0.6212603", "0.6211528", "0.61916804", "0.61687505", "0.6155554", "0.6152163", "0.6129056", "0.6064044", "0.60606825", "0.60589516", "0.60414237", "0.60409725", "0.60343766", "0.6013833", "0.5969816", "0.5927437", "0.5907512", "0.5891085", "0.58896554", "0.58488...
0.6759446
0
Generate the components for the "changepassword" panel
public static JComponent[] createPanelComponets() { JComponent[] c = new JComponent[6]; c[0] = new JLabel("Login"); c[1] = new JTextField("", 20); c[2] = new JLabel("Password"); c[3] = new JPasswordField("", 20); c[4] = new JLabel("Re-enter Password"); c[5] = new JPasswordField("", 20); return c; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public ChangePasswordPanel() {\n initComponents();\n }", "private void addChangePasswordForm() {\n // The panel to hold all form components to change the login accounts password\n final JPanel changePasswordForm = new JPanel();\n changePasswordForm.setPreferredSize(new Dimension(65...
[ "0.77929246", "0.7396983", "0.72298104", "0.711968", "0.711305", "0.70442617", "0.6963126", "0.69312954", "0.6910765", "0.68908197", "0.6874868", "0.6874329", "0.6839472", "0.6835479", "0.68340904", "0.6827055", "0.68183047", "0.68041396", "0.6803691", "0.6795677", "0.6737482...
0.0
-1
Create an image file name
private File createImageFile() throws IOException { String timeStamp = new SimpleDateFormat("yyyyMMdd_HHmmss").format(new Date()); String imageFileName = "JPEG_" + timeStamp; String folderName = context.getString(R.string.app_name).toLowerCase(); File path = new File(ContextCompat.getExternalFilesDirs(getActivity(), null)[0] .getAbsolutePath() + "/" + folderName); //make sure folder exists path.mkdirs(); File image = File.createTempFile( imageFileName, /* prefix */ ".jpg", /* suffix */ path /* directory */ ); return image; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private File createImageFileName() throws IOException {\n String timestamp = new SimpleDateFormat(\"yyyyMMdd_HHmmss\").format(new Date());\n //there are two types of SimpleDateFormat and Date()\n String prepend = \"JPEG_\" + timestamp + \"_\";\n File imageFile = File.createTempFile(prep...
[ "0.7782615", "0.7292824", "0.6992056", "0.6992056", "0.6943564", "0.6911284", "0.68938434", "0.686538", "0.68592805", "0.68590325", "0.68580544", "0.68443614", "0.67711073", "0.67546785", "0.6751638", "0.6737171", "0.6726197", "0.67170936", "0.67068315", "0.6706409", "0.66945...
0.66892946
22
Gets uncursed random equipment
@Test public void testCreateRandomEquipment() { Equipment equipment = Equipment.createRandom(DungeonType.DUNGEON, LEVEL, false, false, EquipmentLocation.DUNGEON, DUNGEON_ID); assertNotNull(equipment); assertEquals(LEVEL, equipment.getLevel()); // Change the id before checking the create equipment.setId(-1); verifyNoMoreInteractions(equipmentServiceMock); Map<Integer, Integer> testAttributes = equipment.getAttributes(true); for(Integer attributeId:testAttributes.keySet()) { assertTrue("Attribute Id "+attributeId+ " was cursed: "+testAttributes.get(attributeId), testAttributes.get(attributeId) > 0); assertEquals("Attribute Id "+attributeId+ " not equals", testAttributes.get(attributeId).intValue(), equipment.getAttributeValue(EquipmentAttribute.fromId(attributeId))); } EquipmentAttribute baseAttribute = equipment.getBaseAttribute(); int baseAttributeValue = equipment.getBaseAttributeValue(); assertTrue("Base Attribute Id "+baseAttribute.getId()+ " was cursed: "+testBaseAttribute, baseAttributeValue > 0); //assertEquals("Base Attribute Id "+baseAttribute.getId()+ " not equals", // baseAttributeValue, // testBaseAttributeValue); EquipmentAttribute defenceAttribute = equipment.getBaseAttribute(); int defenceAttributeValue = equipment.getDefenceAttributeValue(); assertTrue("Defence Attribute Id "+defenceAttribute.getId()+ " was cursed: "+testDefenceAttribute, defenceAttributeValue > 0); //assertEquals("Defence Attribute Id "+defenceAttribute.getId()+ " not equals", // defenceAttributeValue, // testDefenceAttributeValue); if(equipment.getQuality().getId() >= EquipmentQuality.ARTIFACT.getId()) { EquipmentAttribute ancientAttribute = equipment.getAncientAttribute(); int ancientAttributeValue = equipment.getAncientAttributeValue(); assertTrue("Ancient Attribute Id "+ancientAttribute.getId()+ " was cursed: "+testAncientAttribute, ancientAttributeValue > 0); //assertEquals("Ancient Attribute Id "+ancientAttribute.getId()+ " not equals", // ancientAttributeValue, // testAncientAttributeValue); } restrictMockAccess(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "RocketInterface getRandomRocket();", "public String getMonsterDropsLoot() {\r\n String res;\r\n Random gen = new Random();\r\n if (gen.nextInt(100) > 75) {\r\n int tmp = gen.nextInt(items.size());\r\n player.addToInventory(items.get(tmp));\r\n res = \"You sea...
[ "0.6749154", "0.65475553", "0.6531558", "0.64754677", "0.64683455", "0.64567524", "0.6440326", "0.643277", "0.637712", "0.63739216", "0.63529897", "0.63234484", "0.63175774", "0.63096875", "0.62935", "0.62826073", "0.62728196", "0.6246733", "0.622136", "0.62034", "0.61936647"...
0.6032002
31
specialTypeOfCard represents a card whose value is not the same as the face value So Ace, J Q, and K
public Card(int v, Suit s, String special) { this.value = v; this.suit = s; this.specialTypeOfCard = special; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Byte getCardType() {\r\n return cardType;\r\n }", "public String getCardType() {\n return cardType;\n }", "public java.lang.String getCardType() {\r\n return cardType;\r\n }", "public Integer getCardtype() {\n return cardtype;\n }", "private String m50417p() {...
[ "0.6456864", "0.63905126", "0.62735355", "0.6251812", "0.6194704", "0.61603457", "0.6047963", "0.6046891", "0.60429704", "0.59652513", "0.5933268", "0.5882417", "0.58688295", "0.5819748", "0.57613474", "0.57415086", "0.5720032", "0.5705453", "0.56913173", "0.56656414", "0.566...
0.5328859
37
For creating cards in range 2 10 these have values equivalent to face value
public Card(int v, Suit s) { this.value = v; this.suit = s; //this.specialTypeOfCard = NOT_FACE_NOT_ACE; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static int face(int card){\n //check if card is out of bounds\n if(card < 1 || card > 52){\n return 0;\n }\n //subtract 1 from card to include multiples of 13\n //add 1 so that it matches up with the desired output\n return (card - 1) % 13 + 1;\n }", ...
[ "0.6751511", "0.64602065", "0.63056576", "0.6304503", "0.6264804", "0.6170582", "0.61273175", "0.6123081", "0.6106532", "0.60827935", "0.6054022", "0.6050445", "0.603579", "0.6008043", "0.59683204", "0.5932825", "0.59169525", "0.5892457", "0.58878005", "0.5885405", "0.5878282...
0.5472495
77
TODO Autogenerated method stub
@Override public void onStart() { super.onStart(); }
{ "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
add your code here
static long findNumberOfTriangles(int arr[], int n) { long count=0; for(int i=0;i<n;i++){ for(int j=i;j<n;j++){ if(arr[i]>arr[j]){ int temp=arr[j]; arr[j]=arr[i]; arr[i]=temp; } } } int k =n-1; for(int i=n-2;i>=0;i--){ for(int j=i-1;j>=0;j--){ if(arr[k]<arr[j]+arr[i]){ count++; } } k--; } return count; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void settings() {\n // TODO Auto-generated method stub\n \n }", "CD withCode();", "@Override\n\t\tprotected void onPreExecute() {\n\t\t\t \n\t\t\t super.onPreExecute();\n\t\t}", "@Override\n public void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInsta...
[ "0.5796405", "0.56786925", "0.563816", "0.5565202", "0.55099386", "0.5472452", "0.5429367", "0.5425033", "0.5420643", "0.54064", "0.53861076", "0.5385484", "0.5382233", "0.5378073", "0.5374743", "0.5355735", "0.5346183", "0.5337322", "0.53347856", "0.5331404", "0.53269166", ...
0.0
-1
Buat prosedur addMoney dengan parameter T money, tambahkan transaksi tambah dengan senilai money
public void addMoney(T money) { transactions.add(new Transaction<T>('+', money)); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void addMoney(double profit){\n money+=profit;\n }", "@WebMethod public float addMoney(Account user,String e, float amount) throws NullParameterException, IncorrectPaymentFormatException, UserNotInDBException, NoPaymentMethodException, PaymentMethodNotFound;", "public void addMoney(int amount)...
[ "0.6756475", "0.66398793", "0.65791386", "0.65600777", "0.6483963", "0.6416632", "0.6390145", "0.6338103", "0.63290536", "0.63232875", "0.63109946", "0.6300525", "0.628332", "0.6282394", "0.6240391", "0.6217809", "0.62057483", "0.6181421", "0.6158367", "0.61321855", "0.611094...
0.69823945
0
Tambahkan transaksi kurang sebesar money (perlu ada pengecekan apakah balance cukup atau tidak) false bila transaksi gagal, true bila berhasil
public boolean takeMoney(T money) { Double saldo = getBalance(); if(saldo < money.doubleValue()){ return false; }else{ transactions.add(new Transaction<T>('-', money)); return true; } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public boolean depositMoney(int accountNo, float amount) {\n Account account = getAccountByAccountNo(accountNo);\n account.setBalance(account.getBalance() + amount);\n saveOrUpdate(account);\n // save transaction to database\n Transaction transaction = new Transaction();\n ...
[ "0.64703095", "0.64399606", "0.6418282", "0.625698", "0.6252564", "0.6208798", "0.6172321", "0.6077801", "0.60374206", "0.6025849", "0.60196966", "0.60051495", "0.6002916", "0.59902585", "0.5983148", "0.5949418", "0.5935252", "0.5935252", "0.59271586", "0.5892514", "0.5873549...
0.5577921
43
Mengganti transaksi agar bernilai sama dengan balance Tips: inisialisasi ulang transactions, lalu tambahkan transaksi tambah sebanyak balance
public void setBalance(T balance) { transactions = new ArrayList<Transaction>(); transactions.add(new Transaction<T>('+', balance)); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public transaksi() {\n initComponents();\n judul();\n tampildata();\n judulbarang();\n tampilbarang();\n reset();\n autokode();\n total();\n lkembali.setText(\"Rp. 0\");\n bcek.requestFocus();\n ltgl.setText(hari); \n bhapus.setVi...
[ "0.6971189", "0.60149467", "0.5791287", "0.5788763", "0.5785042", "0.57167447", "0.5715774", "0.56930506", "0.56788737", "0.5677592", "0.562897", "0.5600222", "0.55807966", "0.55749345", "0.5574405", "0.5574262", "0.5556175", "0.553843", "0.5510188", "0.55093265", "0.54946655...
0.0
-1
Akses nilai Double dilakukan dengan .doubleValue() Contoh: amount.doubleValue()
public Double getBalance(){ Double sum = 0.0; // Mencari balance dompet dari transaksi dengan cara menghitung total transaksi for (Transaction transaction : transactions) { sum += transaction.getAmount().doubleValue(); } return sum; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setAmount(Double amount) {\r\n this.amount = amount;\r\n }", "public double getAmount1() // getAmount1 method start\n\t\t{\n\t\t\treturn Double.parseDouble(amountField1.getText());\n\t\t}", "public double getAmount1() // getAmount1 method start\n\t\t{\n\t\t\treturn Double.parseDouble(amou...
[ "0.7016673", "0.69689983", "0.69689983", "0.69553226", "0.69320554", "0.6881427", "0.68520576", "0.6837586", "0.6828918", "0.6773308", "0.67400205", "0.67285", "0.6703917", "0.66900617", "0.66810226", "0.66317165", "0.66109586", "0.66109586", "0.65883344", "0.65883344", "0.65...
0.0
-1
Print seluruh transaksi yang ada pada array Format: Transactions [indeks + 1]: [tipe transaksi] [amount] Contoh: Transactions 3: + 500
public void printTransactions() { for (int i = 0; i < transactions.size(); i++) { int indeks = i+1; System.out.println("Transactions " + indeks + ": " + transactions.get(i).getType() + " " + transactions.get(i).getAmount()); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private String marketBuyAmounts() {\r\n\t\tint[] amounts= market.getBuyAmounts();\r\n\t\tString out = \"Buy Requests Are: \";\r\n\t\tfor(int i=0; i<amounts.length;i++) {\r\n\t\t\tout=out.concat(i+\": \"+amounts[i]+\" || \");\r\n\t\t}\r\n\t\treturn out;\r\n\t}", "@Override\r\n\tpublic String toString() {\r\n\t\tS...
[ "0.6076964", "0.57577884", "0.5722608", "0.56914234", "0.56872255", "0.5596355", "0.5550094", "0.54902494", "0.5458399", "0.5341401", "0.5338117", "0.5322237", "0.5307307", "0.53017193", "0.5289396", "0.52730894", "0.52682495", "0.5252385", "0.5246703", "0.5235553", "0.523421...
0.6532474
0
Mencari ratarata transaksi (jika tidak ada transaksi, berikan hasil null)
public Double getAverageTransaction() { if (transactions.size() == 0) { return null; } else { return getBalance() / transactions.size(); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public transaksi() {\n initComponents();\n judul();\n tampildata();\n judulbarang();\n tampilbarang();\n reset();\n autokode();\n total();\n lkembali.setText(\"Rp. 0\");\n bcek.requestFocus();\n ltgl.setText(hari); \n bhapus.setVi...
[ "0.64742124", "0.5803345", "0.5655822", "0.5649139", "0.5648615", "0.5604425", "0.55867094", "0.55406004", "0.5511026", "0.5472298", "0.5446063", "0.54449767", "0.5442704", "0.537517", "0.53726363", "0.53432286", "0.5323062", "0.53113407", "0.5308536", "0.52630365", "0.525409...
0.0
-1
Mencari nilai minimum transaksi (jika tidak ada transaksi, berikan hasil null; hanya perlu membandingkan nilainya saja tanpa peduli type)
public Double getMinimumTransaction() { if (transactions.size() == 0) { return null; } else { Double min = transactions.get(0).getAmount().doubleValue(); for (int i = 1; i < transactions.size(); i++) { if (min > transactions.get(i).getAmount().doubleValue()) { min = transactions.get(i).getAmount().doubleValue(); } } return min; } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public int getMinAmount() {\n return minAmount;\n }", "public int getMinAmount() {\n return _min;\n }", "public void setMinAmount(int min) {\n _min = min;\n }", "int nilaiMin(Node node){\n if (node.left != null) { // karena node yg nilainya minimum atau lebih kecil di seb...
[ "0.64541095", "0.63636255", "0.6163759", "0.6019891", "0.6016275", "0.59041214", "0.5893384", "0.5870126", "0.58684486", "0.5808483", "0.5799845", "0.5779387", "0.5764791", "0.5751885", "0.5717267", "0.5697883", "0.56751543", "0.5653068", "0.5637052", "0.5633133", "0.56136554...
0.6165975
2
Mencari nilai maksimum transaksi (jika tidak ada transaksi, berikan hasil null; hanya perlu membandingkan nilainya saja tanpa peduli type)
public Double getMaximumTransaction() { if (transactions.size() == 0) { return null; } else { Double maks = transactions.get(0).getAmount().doubleValue(); for (int i = 1; i < transactions.size(); i++) { if (maks < transactions.get(i).getAmount().doubleValue()) { maks = transactions.get(i).getAmount().doubleValue(); } } return maks; } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public transaksi() {\n initComponents();\n judul();\n tampildata();\n judulbarang();\n tampilbarang();\n reset();\n autokode();\n total();\n lkembali.setText(\"Rp. 0\");\n bcek.requestFocus();\n ltgl.setText(hari); \n bhapus.setVi...
[ "0.65859187", "0.5790198", "0.576259", "0.5638408", "0.56154764", "0.56080157", "0.5505585", "0.5505359", "0.5504762", "0.5457506", "0.5403156", "0.5402916", "0.53845507", "0.53283393", "0.53201985", "0.53032464", "0.5299728", "0.5298356", "0.52860534", "0.5278287", "0.527610...
0.0
-1
This constructs an instance from a factory and a notifier.
public NetworkDependencyItemProvider(AdapterFactory adapterFactory) { super(adapterFactory); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Factory() {\n this(getInternalClient());\n }", "public Factory() {\n\t\tsuper();\n\t}", "private VerifierFactory() {\n }", "public InternalFloaterFactory() {\n super();\n }", "public static Factory factory() {\n return ext_h::new;\n }", "public ObjectifyFa...
[ "0.6554377", "0.6267452", "0.6110438", "0.6079239", "0.60466135", "0.604489", "0.60234535", "0.59148544", "0.5899164", "0.58979696", "0.5893641", "0.58793443", "0.5844335", "0.58347386", "0.58312017", "0.5821703", "0.58199847", "0.5806926", "0.5787606", "0.57490224", "0.57250...
0.0
-1
This returns the property descriptors for the adapted class.
@Override public List<IItemPropertyDescriptor> getPropertyDescriptors(Object object) { if (itemPropertyDescriptors == null) { super.getPropertyDescriptors(object); addDependant1PropertyDescriptor(object); addDependant2PropertyDescriptor(object); } return itemPropertyDescriptors; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public PropertyDescriptor[] getPropertyDescriptors () {\n return desc;\n }", "public PropertyDescriptor[] getPropertyDescriptors() {\n return getPdescriptor();\n }", "@Override\n public PropertyDescriptor[] getPropertyDescriptors() {\n return getPdescriptor();\n }", "public L...
[ "0.74827915", "0.7437152", "0.73936653", "0.71689236", "0.69981146", "0.68416893", "0.6700892", "0.65058213", "0.64298385", "0.640673", "0.6359638", "0.62749296", "0.62353", "0.6228872", "0.6227949", "0.6221954", "0.612216", "0.6121374", "0.6098768", "0.6050726", "0.602448", ...
0.57941127
45
This adds a property descriptor for the Dependant1 feature.
protected void addDependant1PropertyDescriptor(Object object) { itemPropertyDescriptors.add (createItemPropertyDescriptor (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), getResourceLocator(), getString("_UI_NetworkDependency_Dependant1_feature"), getString("_UI_PropertyDescriptor_description", "_UI_NetworkDependency_Dependant1_feature", "_UI_NetworkDependency_type"), OMPackage.Literals.NETWORK_DEPENDENCY__DEPENDANT1, true, false, true, null, null, null)); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected void addDependant2PropertyDescriptor(Object object) {\n\t\titemPropertyDescriptors.add\n\t\t\t(createItemPropertyDescriptor\n\t\t\t\t(((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(),\n\t\t\t\t getResourceLocator(),\n\t\t\t\t getString(\"_UI_NetworkDependency_Dependant2_feature\"),\n\t...
[ "0.6934", "0.630411", "0.6254502", "0.61840844", "0.57280594", "0.5705419", "0.5695492", "0.5596633", "0.5595427", "0.54707015", "0.5460564", "0.5389607", "0.53730524", "0.53626853", "0.5321419", "0.528265", "0.5274024", "0.5271435", "0.522711", "0.52227294", "0.5209108", "...
0.7895743
0
This adds a property descriptor for the Dependant2 feature.
protected void addDependant2PropertyDescriptor(Object object) { itemPropertyDescriptors.add (createItemPropertyDescriptor (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), getResourceLocator(), getString("_UI_NetworkDependency_Dependant2_feature"), getString("_UI_PropertyDescriptor_description", "_UI_NetworkDependency_Dependant2_feature", "_UI_NetworkDependency_type"), OMPackage.Literals.NETWORK_DEPENDENCY__DEPENDANT2, true, false, true, null, null, null)); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected void addDependant1PropertyDescriptor(Object object) {\n\t\titemPropertyDescriptors.add\n\t\t\t(createItemPropertyDescriptor\n\t\t\t\t(((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(),\n\t\t\t\t getResourceLocator(),\n\t\t\t\t getString(\"_UI_NetworkDependency_Dependant1_feature\"),\n\t...
[ "0.6854183", "0.64184666", "0.6361226", "0.62419075", "0.5779151", "0.5765378", "0.57266194", "0.56651855", "0.5654132", "0.56217355", "0.5616456", "0.55581003", "0.5549923", "0.55116266", "0.5490873", "0.54762214", "0.54745567", "0.5459975", "0.54594487", "0.5458138", "0.544...
0.7713596
0
This returns the label text for the adapted class.
@Override public String getText(Object object) { String label = ((NetworkDependency)object).getName(); return label == null || label.length() == 0 ? getString("_UI_NetworkDependency_type") : getString("_UI_NetworkDependency_type") + " " + label; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String getLabelText();", "java.lang.String getLabel();", "public java.lang.String getLabel();", "public abstract String getLabelText();", "public String getLabel() {\r\n\t\tif (label != null)\r\n\t\t\treturn label;\r\n\t\tif (classSimpleName==null)\r\n\t\t\treturn null;\r\n\t\treturn classSimpleName...
[ "0.7866285", "0.7862631", "0.780615", "0.78000176", "0.76271594", "0.755294", "0.755294", "0.755294", "0.755294", "0.7546993", "0.7546993", "0.745652", "0.7416987", "0.7279132", "0.7279132", "0.7279132", "0.725332", "0.7239711", "0.7218232", "0.7210016", "0.72058916", "0.72...
0.0
-1
scope of chars on ASCII table u
int fixIndex(int i) { int ALPHABET_SCOPE = 26; char ch = (char) (isEncryption ? i - shift : i + shift); int index = i; if (ch >= 65 && ch <= 90) { while (index < 65) index += ALPHABET_SCOPE; while (index > 90) index -= ALPHABET_SCOPE; } else { while (index < 97) index += ALPHABET_SCOPE; while (index > 122) index -= ALPHABET_SCOPE; } return index; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public char[][] regenCharTable();", "private char toChar(int u)\r\n { \r\n return (char)(u + 64);\r\n }", "void circulardecode()\n{\nfor(i=0;i<s.length();i++)\n{\nc=s.charAt(i);\nk=(int)c;\nif(k==90)\nk1=65;\nelse\nif(k==122)\nk1=97;\nelse\nk1=k+1;\nc1=caseconverter(k,k1);\nSystem.out.print(c1);\...
[ "0.6352256", "0.59726614", "0.5894397", "0.5881378", "0.58011216", "0.5774126", "0.5753831", "0.5688358", "0.568605", "0.56534076", "0.5634756", "0.56145173", "0.5607649", "0.5586444", "0.55811536", "0.557847", "0.5557368", "0.5520241", "0.5499269", "0.5492958", "0.5475278", ...
0.51605016
68
pressing w makes the house white and b makes it black
public void keyPressed() { if (key == 98) { house.setColor(0); } else if (key == 119) { house.setColor(250); } else if (key == 99) { person.moveXR(10); } else if (key == 120) { person.moveYD(10); } else if (key == 122) { person.moveXL(10); } else if (key == 115) { person.moveYU(10); } else if (key == 107) { house.moveXR(10); } else if (key == 106) { house.moveYD(10); } else if (key == 104) { house.moveXL(10); } else if (key == 117) { house.moveYU(10); } else if (key == 116) { house.changeSize(-.1); } else if (key == 121) { house.changeSize(.1); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void white(){\n\t\tthis.arretes_fW();\n\t\tthis.coins_fW();\n\t\tthis.coins_a1W();\n\t\tthis.coins_a2W();\n\t\tthis.aretes_aW();\n\t\tthis.cube[4] = \"W\";\n\t}", "public void switchColor(){\r\n System.out.println(color);\r\n if(color==\"W\"){\r\n color=\"B\";\r\n Syst...
[ "0.72330743", "0.6556349", "0.6283388", "0.6278362", "0.6278362", "0.61604434", "0.6146908", "0.59476596", "0.59156024", "0.5903312", "0.5885362", "0.5869905", "0.58001405", "0.57916373", "0.5759427", "0.57340217", "0.5682756", "0.56673735", "0.5662827", "0.5658713", "0.56408...
0.0
-1
Constructor for the KeyColor
KeyColor(String name){ this.name = name; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public KeyHandler(ColorSwitch mg) {\r\n this.cs = mg;\r\n init();\r\n }", "public Color() {\n\n\t\tthis(0, 0, 0);\n\t}", "public Key(float x, float y, float width, float height, char Key, GameScreen gameScreen)\n {\n super(x, y, width, height, \"Key\", gameScreen);\n processIn...
[ "0.67605656", "0.6604722", "0.6490893", "0.6343023", "0.6329385", "0.62854844", "0.62528604", "0.6244072", "0.62399095", "0.6220215", "0.6144385", "0.6106192", "0.60421044", "0.6021196", "0.60156", "0.6006047", "0.5991218", "0.5988111", "0.59719616", "0.59677273", "0.5951647"...
0.77776235
0
Getter for the display name of the color
public String getName(){ return name; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tpublic String getColorName() {\n\t\treturn colorName;\n\t}", "@Override\n public String toString() {\n return color.name();\n }", "public String getColouredName() {\n\t\tConfigManager crates = new ConfigManager(\"crates.yml\");\n\t\tcrates.get().getString(\"crates.\"+name.toLowerCase(...
[ "0.8048962", "0.7971921", "0.7921083", "0.76090866", "0.7594643", "0.74839836", "0.7461567", "0.7378608", "0.73537457", "0.7326911", "0.72326016", "0.7222398", "0.72164226", "0.71187866", "0.70630276", "0.70600957", "0.70600283", "0.7056295", "0.70501786", "0.70501786", "0.70...
0.0
-1
/ This code provides "Up" navigation for the back button in appbar of this activity. I simply call the finish method to end this activity.
@Override public boolean onOptionsItemSelected(MenuItem item) { switch (item.getItemId()) { // Respond to the action bar's Up/Home button case android.R.id.home: finish(); return true; } return super.onOptionsItemSelected(item); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void handleOnBackPressed() {\n navController.navigateUp();\n }", "@Override\n public boolean onSupportNavigateUp() {\n onBackPressed();\n return super.onSupportNavigateUp();\n }", "@Override\n public boolean onSupportNavigateUp() {\...
[ "0.8132109", "0.7960575", "0.7938604", "0.79157335", "0.79157335", "0.79157335", "0.79157335", "0.79157335", "0.79157335", "0.79157335", "0.79157335", "0.7849402", "0.78425103", "0.7749666", "0.77330446", "0.7694488", "0.7688796", "0.7599936", "0.7599936", "0.7599936", "0.759...
0.0
-1
TODO Autogenerated method stub
public static void main(String[] args) { Scanner dmv= new Scanner(System.in); System.out.println("How old are you"); int age=dmv.nextInt(); if (age>=18) { System.out.println("Your driver lisence will be issued"); }else { System.out.println("Please get a learners permit"); } }
{ "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
private String[] getCmdFromXml() { String[] strArr= {"1","2"}; return strArr; }
{ "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
Called when a view has been clicked.
@Override public void onClick(View v) { if (v == button_cancel) { this.finish(); } else if (v == button_next && checkSpinner()) { if (InternetConnection.checkNetworkConnection(context)) { String url = ApplicationData.URL_CHARACTERISTIC + person_id; new PutAsync().execute(url, createJsonBody()); Log.e("JSOn BOdy ", createJsonBody()); Log.e("URL are ", url); } else { Toast.makeText(getApplicationContext(),ApplicationData.OFFLINE_SAVED_SUCCESSFULLY,Toast.LENGTH_LONG).show(); ApplicationData.writeToFile(this, ApplicationData.OFFLINE_DB_HOUSE_HOLD_CHARACTERISTICS, createJsonBody()); finish(); } } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void onClick(View pView)\n\t{\n\t}", "@Override\n public void onClick(View view) {\n }", "@Override\n public void onClick(View view) {\n }", "@Override\n public void onClick(View view) {\n }", "@Override\n public void onClick(View view) {\n }",...
[ "0.7561606", "0.74694735", "0.74694735", "0.74694735", "0.74694735", "0.74694735", "0.74694735", "0.74694735", "0.74244165", "0.739669", "0.7391502", "0.7374028", "0.7374028", "0.7374028", "0.7374028", "0.735448", "0.73523974", "0.73280215", "0.7281267", "0.7275264", "0.72677...
0.0
-1
Stop the activity showAlert(activity);
@Override public void onClick(DialogInterface dialog, int which) { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "ActivityType stop();", "public void cancel() {\n if (alert != null) {\n alert.cancel();\n isShowing = false;\n } else\n TLog.e(TAG + \" cancel\", \"alert is null\");\n }", "public void stopAct(View view){\n finish();\n }", "void dismissAlertDialog()...
[ "0.72695345", "0.7062523", "0.70313", "0.686605", "0.6784727", "0.6753847", "0.66926783", "0.66823196", "0.66823196", "0.66823196", "0.66689026", "0.65575176", "0.6515899", "0.6435642", "0.6416611", "0.6401964", "0.6397146", "0.63156927", "0.63058686", "0.6275004", "0.6236098...
0.0
-1
NOTE: key is of type Object only to retain binary backwardscompatibility
public V get(Object key) { return _map.get(key); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "Object getKey();", "@Override\r\n\tpublic Object getObject(Object key) {\n\t\treturn null;\r\n\t}", "protected abstract Object _get(String key);", "public Object obj(String key) throws AgentBuilderRuntimeException {\n\t\tif (!extContainsKey(key))\n\t\t\tthrow new AgentBuilderRuntimeException(\n\t\t\t\t\t\"Di...
[ "0.6857709", "0.68124205", "0.6799169", "0.6764355", "0.6749274", "0.67073864", "0.6672323", "0.6663086", "0.6622759", "0.6621243", "0.66086453", "0.65751743", "0.65714645", "0.6510036", "0.6508738", "0.64846545", "0.6447754", "0.6403507", "0.6372881", "0.6372881", "0.6370401...
0.0
-1
protected final Logger logger = LoggerFactory.getLogger(this.getClass());
@KafkaListener(topics = {"test"}) public void listen(ConsumerRecord<?, ?> record) { log.info("kafka的key: {0}", record.key()); log.info("kafka的value: {0}", record.value().toString()); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected Logger getLogger() {\n return LoggerFactory.getLogger(getClass());\n }", "@Override\n protected Logger getLogger() {\n return LOGGER;\n }", "@Override\n public MagicLogger getLogger() {\n return logger;\n }", "public Logger getLogger() {\t\t\n\t\treturn logger = ...
[ "0.81373054", "0.8023374", "0.7858801", "0.7793569", "0.77854145", "0.7702953", "0.76954496", "0.767308", "0.766194", "0.764693", "0.763841", "0.7615262", "0.7614509", "0.76001775", "0.7599722", "0.7599447", "0.7549211", "0.75342506", "0.7524463", "0.74722254", "0.7471587", ...
0.0
-1
/ renamed from: a
public int initialization(String url, ArrayList arrayList) { return 0; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public interface C4521a {\n /* renamed from: a */\n void mo12348a();\n }", "public interface C1423a {\n /* renamed from: a */\n void mo6888a(int i);\n }", "interface bxc {\n /* renamed from: a */\n void mo2508a(bxb bxb);\n}", "interface C33292a {\n /* renamed fr...
[ "0.62497115", "0.6242887", "0.61394435", "0.61176854", "0.6114027", "0.60893", "0.6046901", "0.6024682", "0.60201293", "0.5975212", "0.59482527", "0.59121317", "0.5883635", "0.587841", "0.58703005", "0.5868436", "0.5864884", "0.5857492", "0.58306104", "0.5827752", "0.58272064...
0.0
-1
/ renamed from: a
public int decodeAudio(String url) { return 0; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public interface C4521a {\n /* renamed from: a */\n void mo12348a();\n }", "public interface C1423a {\n /* renamed from: a */\n void mo6888a(int i);\n }", "interface bxc {\n /* renamed from: a */\n void mo2508a(bxb bxb);\n}", "interface C33292a {\n /* renamed fr...
[ "0.62497115", "0.6242887", "0.61394435", "0.61176854", "0.6114027", "0.60893", "0.6046901", "0.6024682", "0.60201293", "0.5975212", "0.59482527", "0.59121317", "0.5883635", "0.587841", "0.58703005", "0.5868436", "0.5864884", "0.5857492", "0.58306104", "0.5827752", "0.58272064...
0.0
-1
/ renamed from: a
public int changeOutput(Pair p, int pos) { return 0; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public interface C4521a {\n /* renamed from: a */\n void mo12348a();\n }", "public interface C1423a {\n /* renamed from: a */\n void mo6888a(int i);\n }", "interface bxc {\n /* renamed from: a */\n void mo2508a(bxb bxb);\n}", "interface C33292a {\n /* renamed fr...
[ "0.62497115", "0.6242887", "0.61394435", "0.61176854", "0.6114027", "0.60893", "0.6046901", "0.6024682", "0.60201293", "0.5975212", "0.59482527", "0.59121317", "0.5883635", "0.587841", "0.58703005", "0.5868436", "0.5864884", "0.5857492", "0.58306104", "0.5827752", "0.58272064...
0.0
-1
/ renamed from: a
public int getSampleRate() { return 0; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public interface C4521a {\n /* renamed from: a */\n void mo12348a();\n }", "public interface C1423a {\n /* renamed from: a */\n void mo6888a(int i);\n }", "interface bxc {\n /* renamed from: a */\n void mo2508a(bxb bxb);\n}", "interface C33292a {\n /* renamed fr...
[ "0.62497115", "0.6242887", "0.61394435", "0.61176854", "0.6114027", "0.60893", "0.6046901", "0.6024682", "0.60201293", "0.5975212", "0.59482527", "0.59121317", "0.5883635", "0.587841", "0.58703005", "0.5868436", "0.5864884", "0.5857492", "0.58306104", "0.5827752", "0.58272064...
0.0
-1
/ renamed from: b
public int getChannelConfig() { return 0; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void mo2508a(bxb bxb);", "@Override\n public void func_104112_b() {\n \n }", "@Override\n public void b() {\n }", "public interface C19351a {\n /* renamed from: b */\n void mo30633b(int i, String str, byte[] bArr);\n }", "@Override\n\tpublic void b2() {\n\t\t\n\t}", "v...
[ "0.64558864", "0.6283203", "0.6252635", "0.6250949", "0.6244743", "0.6216273", "0.6194491", "0.6193556", "0.61641675", "0.6140157", "0.60993093", "0.60974354", "0.6077849", "0.6001867", "0.5997364", "0.59737104", "0.59737104", "0.5905105", "0.5904295", "0.58908087", "0.588663...
0.0
-1
/ renamed from: c
public int getReSampleRate() { return 0; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void mo5289a(C5102c c5102c);", "public static void c0() {\n\t}", "void mo57278c();", "private static void cajas() {\n\t\t\n\t}", "void mo5290b(C5102c c5102c);", "void mo80457c();", "void mo12638c();", "void mo28717a(zzc zzc);", "void mo21072c();", "@Override\n\tpublic void ccc() {\n\t\t\n\t}", ...
[ "0.64592767", "0.644052", "0.6431582", "0.6418656", "0.64118475", "0.6397491", "0.6250796", "0.62470585", "0.6244832", "0.6232792", "0.618864", "0.61662376", "0.6152657", "0.61496663", "0.6138441", "0.6137171", "0.6131197", "0.6103783", "0.60983956", "0.6077118", "0.6061723",...
0.0
-1
/ renamed from: a
public static void m3983a(String[] args) { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public interface C4521a {\n /* renamed from: a */\n void mo12348a();\n }", "public interface C1423a {\n /* renamed from: a */\n void mo6888a(int i);\n }", "interface bxc {\n /* renamed from: a */\n void mo2508a(bxb bxb);\n}", "interface C33292a {\n /* renamed fr...
[ "0.62497115", "0.6242887", "0.61394435", "0.61176854", "0.6114027", "0.60893", "0.6046901", "0.6024682", "0.60201293", "0.5975212", "0.59482527", "0.59121317", "0.5883635", "0.587841", "0.58703005", "0.5868436", "0.5864884", "0.5857492", "0.58306104", "0.5827752", "0.58272064...
0.0
-1
the argument "folder" will have absolute path specified
public static void denyAccess(String folder) throws Exception { String drive = ""; for(int i=0;i<folder.length();i++) { if(folder.charAt(i)=='\\') { drive = folder.substring(0, i); break; } } String directory = ""; String fileName = ""; for(int i=folder.length()-1;i>=0;i--) { if(folder.charAt(i)=='\\') { fileName = folder.substring(i+1); directory = folder.substring(0,i); break; } } String user = fetchUserName(); Runtime r = Runtime.getRuntime(); r.exec("cmd /c start cmd.exe /K \""+drive+"&&cd "+directory+"&&icacls \""+fileName+"\" /deny "+user+":W&&exit\""); r.exec("cmd /c start cmd.exe /K \""+drive+"&&cd "+directory+"&&icacls \""+fileName+"\" /deny "+user+":R&&exit\""); /* Process p = Runtime.getRuntime().exec(drive); p.waitFor(); p = Runtime.getRuntime().exec("cd "+directory); p=Runtime.getRuntime().exec("icacls "+fileName+" /deny "+user+":W"); p.waitFor(); p = Runtime.getRuntime().exec("icacls "+fileName+" /deny "+user+":R"); p.waitFor(); */ }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "String folderPath();", "private void addFolder(){\n }", "public folderize() {\n }", "public Builder folder(String folder) {\n\t\t\tthis.folder = folder;\n\t\t\treturn this;\n\t\t}", "@Override\n\tpublic void setParrentFolder(String parrentFolder) {\n\t\t\n\t}", "public File getFolder() {\n return ...
[ "0.68973887", "0.6819248", "0.6677048", "0.6673011", "0.6571039", "0.6533859", "0.6492982", "0.64127123", "0.6359181", "0.6275183", "0.6267511", "0.62633145", "0.62604475", "0.62552524", "0.6251745", "0.6215379", "0.61712104", "0.6141258", "0.6030476", "0.60276353", "0.602673...
0.0
-1
the argument "folder" will have absolute path specified
public static void grantAccess(String folder) throws Exception { String drive = ""; for(int i=0;i<folder.length();i++) { if(folder.charAt(i)=='\\') { drive = folder.substring(0, i); break; } } String directory = ""; String fileName = ""; for(int i=folder.length()-1;i>=0;i--) { if(folder.charAt(i)=='\\') { fileName = folder.substring(i+1); directory = folder.substring(0,i); break; } } String user = fetchUserName(); Runtime r = Runtime.getRuntime(); r.exec("cmd /c start cmd.exe /K \""+drive+"&&cd "+directory+"&&icacls \""+fileName+"\" /grant "+user+":R&&exit\""); r.exec("cmd /c start cmd.exe /K \""+drive+"&&cd "+directory+"&&icacls \""+fileName+"\" /grant "+user+":W&&exit\""); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "String folderPath();", "private void addFolder(){\n }", "public folderize() {\n }", "public Builder folder(String folder) {\n\t\t\tthis.folder = folder;\n\t\t\treturn this;\n\t\t}", "@Override\n\tpublic void setParrentFolder(String parrentFolder) {\n\t\t\n\t}", "public File getFolder() {\n return ...
[ "0.68973887", "0.6819248", "0.6677048", "0.6673011", "0.6571039", "0.6533859", "0.6492982", "0.64127123", "0.6359181", "0.6275183", "0.6267511", "0.62633145", "0.62604475", "0.62552524", "0.6251745", "0.6215379", "0.61712104", "0.6141258", "0.6030476", "0.60276353", "0.602673...
0.0
-1
Indirectly invoke the P4ChangeProvider
@Override public void refresh(@NotNull final Project project) { ChangeListManager.getInstance(project).ensureUpToDate(true); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "Provider updateProvider(Provider prov) throws RepoxException;", "Provider updateProvider(Provider prov) throws RepoxException;", "public void onPROChange() {\n if (selectPROC != null) {\n CommunicationBridge communicationBridge = findCommunicationById(selectPROC.toString());\n para...
[ "0.63820606", "0.63820606", "0.56829226", "0.56078786", "0.5602977", "0.5587513", "0.55834574", "0.5568616", "0.5565863", "0.5565863", "0.5565863", "0.556139", "0.5545939", "0.55393773", "0.5530141", "0.54820526", "0.54799944", "0.5469209", "0.5463988", "0.54590666", "0.54418...
0.0
-1
This will perform all the right logic to refresh the change lists and refresh the UI.
@Override public void run() { RefreshAction.doRefresh(project); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void refreshList() {\n }", "protected void refresh() {\n\t}", "private void refresh() {\n updatePopulationInfo();\n\n // Update current production info\n updateProductionInfo();\n\n // Update the building grid\n updateBuildingInfo();\n\n // Upd...
[ "0.73309916", "0.7301822", "0.72015375", "0.71513057", "0.70894486", "0.70392287", "0.7023673", "0.70148", "0.7003833", "0.6960318", "0.6947077", "0.6947", "0.69182706", "0.6898815", "0.68964285", "0.68880284", "0.68776643", "0.6875392", "0.68717456", "0.68507147", "0.6847346...
0.0
-1
A = 1, ... Z = 26
public static void main(String[] args) { Scanner in = new Scanner(System.in); String encrypted = in.next(); int count = countDecryptNum(encrypted); System.out.println(count); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static void main(String[] args) {\n\t\tString s=\"A\";\n\t\tint l=s.length();\n\t\tint c=0;\n\t\tfor(int i=0;i<l;i++){\n\t\t\tc=(int) (c+(s.charAt(s.length()-i-1)-'A'+1)*Math.pow(26, i));\n\t\t\tSystem.out.println(c);\n\n\t\t}\n\t\t//System.out.println(c);\n\t}", "public static void main(String[] args)\n\...
[ "0.6625774", "0.6241965", "0.59722096", "0.59689814", "0.58235836", "0.5776276", "0.5719015", "0.5709055", "0.5703961", "0.5678388", "0.563817", "0.56062144", "0.5597979", "0.55824554", "0.5563054", "0.5542462", "0.55239433", "0.55215967", "0.5514458", "0.54985344", "0.548955...
0.0
-1
Return instance of the saveLoadProfiles
public static ProfileManager getInstance() { if (instance == null) { instance = new ProfileManager(); } return instance; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static ProfileStore getInstance() {\n if (instance == null) {\n instance = new ProfileStore(PersistentStorageAgent.getInstance());\n }\n return instance;\n }", "public MBMProfile(){\n worlds = new ArrayList<MBMWorld>();\n loadSave();\n }", "public static Profile getProfile() {...
[ "0.58348024", "0.54283744", "0.5243198", "0.51161784", "0.49864176", "0.49381092", "0.49375033", "0.49344364", "0.4926169", "0.49090242", "0.48924264", "0.4889845", "0.4889778", "0.48838374", "0.48818567", "0.48818567", "0.4853115", "0.4833282", "0.482121", "0.47876188", "0.4...
0.47386134
24
load profiles from XML file
public List<String> loadProfiles() { List<String> profileNames = new ArrayList<>(); profilesMap.clear(); ProfilesWrapper profiles = (ProfilesWrapper) XMLFileManager.loadXML("profiles.xml", ProfilesWrapper.class); if (profiles != null && profiles.getProfiles() != null) { for (Profiles prof : profiles.getProfiles()) { profileNames.add(prof.getFileName()); profilesMap.put(prof.getFileName(), new Profiles(prof.getFileName(), prof.getFilePath())); } } return profileNames; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Profile getProfile(String xmlString){\n\tProfile profile = null;\n profile = new Profile();\n String text = \"\";\n XmlPullParserFactory factory = null;\n XmlPullParser parser = null;\n try {\n factory = XmlPullParserFactory.newInstance();\n factory.setNamespaceAware(true);\n ...
[ "0.6418646", "0.6145861", "0.6093909", "0.60228384", "0.6020898", "0.59038746", "0.58570963", "0.5764428", "0.57577306", "0.56958187", "0.5658849", "0.5626744", "0.5580468", "0.54325855", "0.5432448", "0.54073185", "0.53996515", "0.5393338", "0.5389355", "0.5381652", "0.53814...
0.65221107
0
Check whether the new file is already loaded or not
public boolean isFileExists(String fileName) { return profilesMap.containsKey(fileName); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "boolean hasReinitializeFile();", "public boolean hasLoadedFile() {\n return isSuccessfulFileLoad;\n }", "public boolean isReloadFile() {\r\n \t\treturn reloadFile;\r\n \t}", "boolean hasCompleteFile();", "public boolean hasLoaded(String filename)\n {\n return this.loadedFiles.contains...
[ "0.7472047", "0.6911103", "0.64253587", "0.6346562", "0.6344867", "0.6332382", "0.62635285", "0.62193", "0.6133404", "0.6107763", "0.6074891", "0.6023961", "0.6015163", "0.5969819", "0.5967044", "0.5948026", "0.59434444", "0.59349155", "0.5927127", "0.59065104", "0.5904868", ...
0.0
-1
Update saved file list
public void updateProfilesList(File fileToSave, boolean isAdd) { // add file to the list if (isAdd) { profilesMap.put(fileToSave.getName(), new Profiles(fileToSave.getName(), fileToSave.getAbsolutePath())); } else { profilesMap.remove(fileToSave.getName()); } // update saved xml file List<Profiles> profilesList = new ArrayList<>(profilesMap.values()); ProfilesWrapper wrapper = new ProfilesWrapper(profilesList); XMLFileManager.saveXML("profiles.xml", wrapper, ProfilesWrapper.class); updatedProperty.setValue(!updatedProperty.getValue()); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void updateFiles() {\n\t}", "private void updateListView() {\n fileList.getItems().setAll(files.readList());\n //System.out.println(System.currentTimeMillis() - start + \" мс\");\n }", "private void updateFile() {\n try {\n this.taskStorage.save(this.taskList);\n ...
[ "0.73239225", "0.7153188", "0.708291", "0.6843051", "0.68024635", "0.6715732", "0.66343904", "0.6570155", "0.6495537", "0.6474534", "0.6392338", "0.6353818", "0.6340868", "0.62495816", "0.62319636", "0.62204236", "0.6214183", "0.6209241", "0.61768115", "0.61079204", "0.609289...
0.6104609
20
Intent intent = new Intent(mContext, VideoActivity.class); intent.putExtra("video",item.getVideo()); mContext.startActivity(intent);
@Override public void onClick(View v) { View viewVideo = LayoutInflater.from(mContext).inflate(R.layout.dialog_video,null); AlertDialog.Builder layoutDialogVideo = new AlertDialog.Builder(mContext); VideoView vvVideoView = viewVideo.findViewById(R.id.vv_dialogVideo_video); vvVideoView.setVideoPath(item.getVideo()); vvVideoView.seekTo(0); vvVideoView.start(); MediaController mediaController = new MediaController(mContext); vvVideoView.setMediaController(mediaController); mediaController.setMediaPlayer(vvVideoView); layoutDialogVideo.setView(viewVideo); Dialog dialogVideo = layoutDialogVideo.create(); dialogVideo.show(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void onItemClick(AdapterView<?> parent, View view, int position, long id) {\n try {\n JSONObject temp_items = items.getJSONObject(position);\n String ida = temp_items.getJSONObject(\"snippet\").getJSONObject(\"resourceId\").getString(\"videoId...
[ "0.75581795", "0.7521907", "0.7489121", "0.7374481", "0.7369892", "0.73568666", "0.73354316", "0.73260295", "0.7248182", "0.72254366", "0.7191014", "0.7183471", "0.71792537", "0.71787876", "0.7163681", "0.7096048", "0.70645064", "0.70540345", "0.7015108", "0.7004977", "0.7000...
0.69735444
21
Test of getMessageType method, of class CPTAYahooEODMessage.
@Test public void testGetMessageType() { System.out.println("getMessageType"); CPTAYahooEODMessage instance = new CPTAYahooEODMessage(); String expResult = ""; String result = instance.getMessageType(); // assertEquals(expResult, result); // TODO review the generated test code and remove the default call to fail. // fail("The test case is a prototype."); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test\n public void messageTypeTest() {\n // TODO: test messageType\n }", "protected abstract MessageType getMessageType();", "public abstract String getMessageType();", "public int getMessageType()\r\n {\r\n return msgType;\r\n }", "public MessageType getMessageType() {\n ...
[ "0.7217805", "0.714649", "0.70288175", "0.68557096", "0.68354934", "0.6832718", "0.6807747", "0.6781122", "0.67504984", "0.67504984", "0.6735714", "0.6711431", "0.67016923", "0.66917586", "0.6664578", "0.66550744", "0.66477513", "0.66413945", "0.66393596", "0.6604618", "0.658...
0.80942714
0
Test of getURL method, of class CPTAYahooEODMessage.
@Test public void testGetURL() { System.out.println("getURL"); String symbol = ""; CPTAYahooEODMessage instance = new CPTAYahooEODMessage(); String expResult = ""; String result = instance.getURL(symbol); // assertEquals(expResult, result); // TODO review the generated test code and remove the default call to fail. // fail("The test case is a prototype."); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test\n public void testLink() {\n try {\n Message email = emailUtils.getMessagesBySubject(\"You've received a document via HelloSign\", true, 5)[0];\n String link = emailUtils.getUrlsFromMessage(email, Data.mainUrl + \"/t\").get(0);\n\n driver.get(link);\n\n /...
[ "0.6290895", "0.6278372", "0.62675923", "0.6178708", "0.6159108", "0.6003257", "0.5994784", "0.5961123", "0.5934665", "0.59313077", "0.5925093", "0.5921455", "0.58683836", "0.5862673", "0.58212984", "0.5821113", "0.5819899", "0.5804138", "0.58025503", "0.579528", "0.5793989",...
0.8245096
0
Test of parseResult method, of class CPTAYahooEODMessage.
@Test public void testParseResult() throws Exception { System.out.println("parseResult"); JsonObject data = null; CPTAYahooEODMessage instance = new CPTAYahooEODMessage(); JsonArray expResult = null; // instance.parseResult(data, null); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tprotected void parseResult() {\n\t\t\n\t}", "public boolean parseResult( Exception e, T result) {\n\n if (e != null) {\n e.printStackTrace();\n ErrorModel em = new ErrorModel();\n if (e.getClass().equals(SocketTimeoutException.class)) {\n em.set...
[ "0.6669942", "0.6043696", "0.6011775", "0.5881528", "0.5771903", "0.5721362", "0.5659198", "0.56369454", "0.56058335", "0.55960995", "0.55660146", "0.5558589", "0.5536395", "0.5532663", "0.5460178", "0.54566836", "0.5456121", "0.5453237", "0.5432772", "0.5432448", "0.5402828"...
0.7933956
0
Test of getDateFromYahooDate method, of class CPTAYahooEODMessage.
@Test public void testGetDateFromYahooDate() { System.out.println("getDateFromYahooDate"); long yahooDateTime = 0L; String timezone = ""; CPTAYahooEODMessage instance = new CPTAYahooEODMessage(); String expResult = ""; String result = instance.getDateFromYahooDate(yahooDateTime, 0); // assertEquals(expResult, result); // TODO review the generated test code and remove the default call to fail. // fail("The test case is a prototype."); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test\n\tpublic void testDate2() {\n\t\ttry {\n\t\t\tfinal Date date = ParadoxDate.getDateFromParadoxDate(36160);\n\t\t\tfinal Calendar calendar = Calendar.getInstance();\n\t\t\tcalendar.setTime(date);\n\t\t\tAssert.assertTrue(calendar.get(Calendar.DATE) == 1);\n\t\t\tAssert.assertTrue(calendar.get(Calendar.MONTH)...
[ "0.6535604", "0.6458517", "0.64531314", "0.6262697", "0.6136837", "0.6131354", "0.60667807", "0.5918495", "0.5912947", "0.5905042", "0.5877332", "0.5826383", "0.57663786", "0.5707483", "0.5671175", "0.5661181", "0.5639065", "0.5636332", "0.5634939", "0.56258404", "0.5604548",...
0.84553736
0
Test of processProperties method, of class CPTAYahooEODMessage.
@Test public void testProcessProperties() { System.out.println("processProperties"); List<CPTADataProperty> properties = null; CPTAYahooEODMessage instance = new CPTAYahooEODMessage(); instance.processProperties(properties); // TODO review the generated test code and remove the default call to fail. // fail("The test case is a prototype."); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void testProperties(){\n \n if (parent == null)\n return;\n \n tests(parent);\n \n if (testSettings.AP_mnemonics){\n \n //- LOG ONLY - list of conflicts before cleaning\n if(debugLog) {\n System.err.println(...
[ "0.6129681", "0.6051359", "0.5968024", "0.5831719", "0.5773306", "0.5771664", "0.5718845", "0.5698844", "0.56908953", "0.56755006", "0.5661892", "0.5657164", "0.56115097", "0.5608285", "0.55999655", "0.5598422", "0.5592071", "0.55878633", "0.5587014", "0.5563351", "0.5541966"...
0.8597018
0
getView() is only available after onCreateView() method has run.
@Override public void onViewCreated(@NonNull View view, @Nullable Bundle savedInstanceState) { super.onViewCreated(view, savedInstanceState); TextView txtPlayerOne = getView().findViewById(R.id.txtv_playerOne); TextView txtPlayerTwo = getView().findViewById(R.id.txtv_playerTwo); txtPlayerOne.setText(playerOne.getName()); txtPlayerTwo.setText(playerTwo.getName()); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public View getView() { return view; }", "@Override\n public View getView()\n {\n return view;\n }", "@Override\n public View getView() {\n return mView;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstance...
[ "0.752658", "0.7364623", "0.7257861", "0.7236791", "0.72159725", "0.71240896", "0.70877707", "0.7082854", "0.701766", "0.7013503", "0.6999054", "0.6976866", "0.6976866", "0.6962138", "0.69522935", "0.6936393", "0.69040006", "0.6902099", "0.68975264", "0.6897269", "0.68946254"...
0.0
-1
Set the size for an structure element.
private static StructureElement createCenteredSquare(int size) { return new StructureElement(createSquareMask(size), size / 2, size / 2); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setStructureSize(int size) {\n\t\tmStructureSize = size;\n\t\tvalidateSize();\n\t\trepaint();\n\t\t}", "@Element \n public void setSize(String size) {\n this.size = size;\n }", "public void setSize(int _size)\r\n {\r\n size = _size;\r\n }", "@Override\n\tpublic void setEleme...
[ "0.75899947", "0.7236495", "0.7070795", "0.7062753", "0.70414966", "0.7037738", "0.7016599", "0.69986665", "0.6989014", "0.69465655", "0.6945997", "0.6945509", "0.693958", "0.69090766", "0.69052285", "0.69052285", "0.687182", "0.6854388", "0.68527555", "0.6830937", "0.6822209...
0.0
-1
Execute methode should be used for filtering. The ImageProcessor of the manipulated ImageData object gets black and with withe
public static ImageData execute(ImageData imageData) { Binarization.execute(imageData); invert(imageData.getImageProcessor()); close(imageData.getImageProcessor(), closeHoles); ImageProcessor other = imageData.getImageProcessor().duplicate(); dilate(imageData.getImageProcessor(), other, edgeDetection); xor(other, imageData.getImageProcessor()); imageData = new ImageData(removeBorder(imageData).getImageProcessor(), imageData.getLabel()); return imageData; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void filterImage() {\n\n if (opIndex == lastOp) {\n return;\n }\n\n lastOp = opIndex;\n switch (opIndex) {\n case 0:\n biFiltered = bi; /* original */\n return;\n case 1:\n biFiltered = ImageNegative(bi...
[ "0.7587644", "0.7131339", "0.7019803", "0.62826514", "0.624114", "0.621997", "0.61877835", "0.61259687", "0.609279", "0.6075063", "0.6048194", "0.6031388", "0.6008906", "0.6008856", "0.6001069", "0.5976708", "0.59763926", "0.59762764", "0.59576935", "0.59571624", "0.59417325"...
0.58467895
26
This methode simply inverts every single pixel value in the image.
public static void invert(ImageProcessor output) { for (int x = 0; x < output.getWidth(); x++) { for (int y = 0; y < output.getHeight(); y++) { boolean a = output.get(x, y) > 127; output.set(x, y, (!a) ? WHITE : BLACK); } } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void invert() {\n int len= currentIm.getRows() * currentIm.getCols();\n \n // invert all pixels (leave alpha/transparency value alone)\n \n // invariant: pixels 0..p-1 have been complemented.\n for (int p= 0; p < len; p= p+1) {\n int rgb= currentIm.getPix...
[ "0.818581", "0.74167347", "0.7181115", "0.7178948", "0.6710712", "0.65021014", "0.64972657", "0.6493911", "0.6401906", "0.63960105", "0.6367231", "0.63113815", "0.6273822", "0.62592345", "0.62039155", "0.6201945", "0.60307026", "0.60232526", "0.60082453", "0.60016125", "0.593...
0.6472621
8
A logic XOR operation on every single pixel, between inverted closed and one extra dilated image
public static void xor(ImageProcessor input, ImageProcessor output) { for (int x = 0; x < output.getWidth(); x++) { for (int y = 0; y < output.getHeight(); y++) { boolean a = input.get(x, y) > 127; boolean b = output.get(x, y) > 127; boolean aXORb = (a && !b) || (!a && b); output.set(x, y, aXORb ? WHITE : BLACK); } } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public BufferedImage bitwiseXOR(BufferedImage image, BufferedImage image1) {\r\n int[][][] arr = convertToArray(image);\r\n int[][][] arr1 = convertToArray(image1);\r\n\r\n int width = arr.length, height = arr[0].length;\r\n int width1 = arr1.length, height1 = arr1[0].length;\r\n\r\n ...
[ "0.7164933", "0.64575434", "0.64421177", "0.62407607", "0.6128189", "0.6079544", "0.6068829", "0.605471", "0.6005953", "0.59078157", "0.58877486", "0.58108497", "0.5777876", "0.57164204", "0.5715452", "0.5668189", "0.56335145", "0.5627906", "0.5611505", "0.5568426", "0.556235...
0.7440806
0
opens the ellipses by first dilate and than erode the objects on the image
public static void close(ImageProcessor output, StructureElement structureElement) { dilate(output.duplicate(), output, structureElement); erode(output.duplicate(), output, structureElement); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void explode(){\n\t\timage = explosion;\n\t\tisExploded = true;\n\t}", "private void postProcessing() {\n // create the element for erode\n Mat erodeElement = Imgproc.getStructuringElement(Imgproc.CV_SHAPE_RECT,\n new Size(2 * KERNELSIZE_ERODE + 1,2 * KERNELSIZE_ERODE + 1 ),\n...
[ "0.62340915", "0.601548", "0.5946572", "0.5824775", "0.581214", "0.5786041", "0.5592455", "0.5583924", "0.5574544", "0.55671114", "0.5558306", "0.5480598", "0.54759103", "0.5433195", "0.5406796", "0.5388033", "0.534727", "0.5336758", "0.53358966", "0.53192425", "0.5318821", ...
0.0
-1
Dilate operation on binary image
public static void dilate(ImageProcessor input, ImageProcessor output, StructureElement structureElement) { applyOperation(input, output, structureElement, Type.DILATE); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public native MagickImage despeckleImage() throws MagickException;", "public void dilation(RasterImage src, RasterImage dst, boolean[][] kernel) {\n\t\tArrays.fill(dst.argb, 0xffffffff);\n\t\tint radius = kernel.length / 2;\n\t\tfor (int picY = 0; picY < src.height; picY++) {\n\t\t\tfor (int picX = 0; picX < src...
[ "0.60429555", "0.6039047", "0.5721389", "0.57102495", "0.5620023", "0.5604774", "0.55984664", "0.5546995", "0.5514965", "0.54461676", "0.5395662", "0.5387632", "0.5382666", "0.53786415", "0.53566206", "0.53215176", "0.53215176", "0.5319603", "0.52938074", "0.5245737", "0.5191...
0.6059454
0
Erode operation on binary image
public static void erode(ImageProcessor input, ImageProcessor output, StructureElement structureElement) { applyOperation(input, output, structureElement, Type.ERODE); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void erosion(RasterImage src, RasterImage dst, boolean[][] kernel) {\n\t\tRasterImage tmp = new RasterImage(dst.width, dst.height);\n\t\tcopy(src, tmp);\n\t\ttmp.invert();\n\t\tdilation(tmp, dst, kernel);\n\t\tdst.invert();\n\t}", "public void invertImage()\r\n {\r\n BufferedImage toInvert;\r\n ...
[ "0.5829764", "0.55031615", "0.5426841", "0.54096353", "0.5265746", "0.52270484", "0.5215248", "0.5205023", "0.51482356", "0.51197445", "0.51129544", "0.503399", "0.4967865", "0.49650678", "0.49537736", "0.49483454", "0.49357325", "0.49128944", "0.49046072", "0.4902563", "0.48...
0.54112726
3
After filtering this method removes the white border
public static ImageData removeBorder(ImageData imageData) { final int imageWidth = imageData.getImageProcessor().getWidth()-2*Hyperparameter.MASK_SIZE; final int imageHeight = imageData.getImageProcessor().getHeight()-2*Hyperparameter.MASK_SIZE; ImageData image = imageData.duplicate(); image.getImageProcessor().setRoi(Hyperparameter.MASK_SIZE, Hyperparameter.MASK_SIZE, imageWidth, imageHeight); imageData = new ImageData(image.getImageProcessor().crop(), image.getLabel()); return imageData; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void clearHighlightTile() {\n\t\tfor(int i = 0;i < 8;i++) {\n\t\t\tfor(int j = 0;j < 8;j++) {\n\t\t\t\tRectangle rect = Main.tile[i][j].rectangle;\n\t\t\t\tif(rect.getStrokeType() == StrokeType.INSIDE){\n\t\t\t\t\trect.setStrokeType(StrokeType.INSIDE);\n\t\t\t\t\trect.setStroke(Color.TRANSPARENT);\n\t\t\t\t...
[ "0.62066865", "0.6151673", "0.6150073", "0.6059648", "0.58881253", "0.5849761", "0.58043104", "0.57698214", "0.57561946", "0.5740713", "0.5725497", "0.5708501", "0.57065827", "0.56795543", "0.5673968", "0.567257", "0.5669419", "0.56531", "0.5588912", "0.5554652", "0.55358684"...
0.5429477
29
Executes the method which is inserted as parameter
private static void applyOperation(ImageProcessor input, ImageProcessor output, StructureElement structureElement, Type type) { int thresholdInclusive = -1; if (type == Type.ERODE) { int sum = 0; for (int x = 0; x < structureElement.getWidth(); x++) { for (int y = 0; y < structureElement.getHeight(); y++) { if (structureElement.get(x, y)) { sum++; } } thresholdInclusive = sum; } } else if (type == Type.DILATE) { thresholdInclusive = 1; } else { throw new RuntimeException("Unknown type: " + type); } int maxX = input.getWidth() - structureElement.getWidth();// off by 1? int maxY = input.getHeight() - structureElement.getHeight();// off by 1? for (int x = 0; x < input.getWidth(); x++) { for (int y = 0; y < input.getHeight(); y++) { output.set(x, y, BLACK); } } for (int x = 0; x < maxX; x++) { for (int y = 0; y < maxY; y++) { int sum = 0; for (int i = 0; i < structureElement.getWidth(); i++) { for (int j = 0; j < structureElement.getHeight(); j++) { boolean set = (input.getPixel(x + i, y + j) > 127) && structureElement.get(i, j); if (set) { sum++; } } } int newValue = (sum >= thresholdInclusive) ? WHITE : BLACK; output.putPixel(x + structureElement.anchorX, y + structureElement.anchorY, newValue); } } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void Execute() {\n\n }", "@Override\n public void execute() throws EngineException {\n Object target = JavaReflectionUtil.getObject(this.target, \n callStatement.getEntries().subList(1,\n callStatement.getEntries().size() - 1));\n this.getParent().setResul...
[ "0.6953653", "0.67803687", "0.6769125", "0.66494226", "0.6590879", "0.65856624", "0.65856624", "0.65856624", "0.65856624", "0.6568591", "0.6498989", "0.64897066", "0.64552027", "0.6452343", "0.6450754", "0.64483804", "0.6445276", "0.6442147", "0.6425332", "0.64209974", "0.635...
0.0
-1
Private constructor used by declarations above
private StravaRouteSubType(final Integer id, final String description) { this.id = id; this.description = description; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void __sep__Constructors__() {}", "private Instantiation(){}", "private Rekenhulp()\n\t{\n\t}", "Constructor() {\r\n\t\t \r\n\t }", "public Constructor(){\n\t\t\n\t}", "private SimpleRepository() {\n \t\t// private ct to disallow external object creation\n \t}", "private TMCourse() {\n\t}", "...
[ "0.7665534", "0.7655353", "0.76294196", "0.7599199", "0.7568055", "0.73802173", "0.7327553", "0.73028076", "0.7193073", "0.7188641", "0.7175426", "0.71583366", "0.71552193", "0.71183723", "0.71089894", "0.7100221", "0.70927495", "0.70927495", "0.7087684", "0.7081099", "0.7071...
0.0
-1
This is the default constructor (do not remove).
public SSDI_AMImpl() { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "Constructor() {\r\n\t\t \r\n\t }", "public Constructor(){\n\t\t\n\t}", "@SuppressWarnings(\"unused\")\n public NoConstructor() {\n // Empty\n }", "private Instantiation(){}", "defaultConstructor(){}", "public PSRelation()\n {\n }", "public Orbiter() {\n }", "public Gen...
[ "0.8008779", "0.7769194", "0.73964155", "0.7316486", "0.7260056", "0.718806", "0.71752644", "0.7150133", "0.7121881", "0.7095582", "0.7064848", "0.7043535", "0.7021626", "0.6989982", "0.69864064", "0.6976774", "0.696405", "0.69608796", "0.69593084", "0.69549793", "0.69526047"...
0.0
-1
Container's getter for UserDetailsVO.
public ViewObjectImpl getUserDetailsVO() { return (ViewObjectImpl)findViewObject("UserDetailsVO"); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "UserDetails getDetails();", "public UserDetails getUserDetails() {\r\n\t\treturn userDetails;\r\n\t}", "public RetailUserDetailsVoImpl getRetailUserDetailsVo1() {\n return (RetailUserDetailsVoImpl) findViewObject(\"RetailUserDetailsVo1\");\n }", "UserDetails get(String id);", "UserDetails getCurr...
[ "0.74416995", "0.72081995", "0.6816259", "0.6753109", "0.64846903", "0.64811414", "0.64109504", "0.6401015", "0.63769084", "0.63510585", "0.63254386", "0.62414116", "0.6222436", "0.62186927", "0.6212735", "0.6174858", "0.6164941", "0.6157047", "0.6154479", "0.6137987", "0.613...
0.8333028
0
System.out.println("\n\n\n In the initial screen method \n\n");
public void initialScreen(int portfolioID) { PortfolioStocksVOImpl vo = getPortfolioStocksVO(); //Number numb = (Number)2; Number num = new Number(2); vo.setBindPortfolioID(2); vo.executeQuery(); //System.out.println("\n\n\n End initial screen method \n\n"); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void startingScreen() {\n screenWithGivenValues(-1,-2,1,2,3,-1,0);\n }", "public void display() {\n\t\tSystem.out.println(\"display..\");\n\t}", "@Override\r\n\tpublic void display() {\n\t\tSystem.out.println(\"RedHeadDuck\");\r\n\t}", "@Override\r\n\tpublic void display() {\n\t\tSystem.out...
[ "0.75118893", "0.74558806", "0.7371921", "0.7271544", "0.7232224", "0.72111595", "0.7154291", "0.7147733", "0.7144798", "0.70977354", "0.7064864", "0.70631063", "0.7041585", "0.7041585", "0.70378035", "0.70209193", "0.7019523", "0.70070714", "0.7004111", "0.6996834", "0.69900...
0.0
-1
System.out.println("\n\n\n In the initial screen method \n\n");
public void initialScreen() { PortfolioStocksVOImpl vo = getPortfolioStocksVO(); //Number numb = (Number)2; Number num = new Number(2); vo.setBindPortfolioID(2); vo.executeQuery(); //System.out.println("\n\n\n End initial screen method \n\n"); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void startingScreen() {\n screenWithGivenValues(-1,-2,1,2,3,-1,0);\n }", "public void display() {\n\t\tSystem.out.println(\"display..\");\n\t}", "@Override\r\n\tpublic void display() {\n\t\tSystem.out.println(\"RedHeadDuck\");\r\n\t}", "@Override\r\n\tpublic void display() {\n\t\tSystem.out...
[ "0.75112027", "0.7456554", "0.7372978", "0.727214", "0.7232645", "0.72103244", "0.7152333", "0.714811", "0.7144743", "0.70977265", "0.7065708", "0.7064265", "0.7042521", "0.7042521", "0.70378083", "0.7022082", "0.702009", "0.7008623", "0.700403", "0.69975847", "0.6990271", ...
0.0
-1
Execute the query here.
public List<String> autoComplete(String inputValue) { System.out.println("The input value is: " + inputValue); List<String> outputList = new ArrayList<String>(); StockDetailsROVOImpl vo = getStockDetailsROVO(); vo.executeQuery(); RowSetIterator it = vo.createRowSetIterator(null); while (it.hasNext()) { StockDetailsROVORowImpl newRow = (StockDetailsROVORowImpl)it.next(); if (newRow.getStockname().toLowerCase().startsWith(inputValue)) { outputList.add(newRow.getStockname()); System.out.println(newRow.getStockname()); } } vo.clearCache(); it.closeRowSetIterator(); return outputList; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void executeQuery() {\n }", "protected void execute() {\n \t\n }", "protected void execute() {\n \t\n }", "public abstract ResultList executeQuery(DatabaseQuery query);", "void runQueries();", "@Override\n\t\tpublic void executeQuery(String query) {\n\t\t\t\n\t\t}", "@SuppressWar...
[ "0.7586632", "0.6937787", "0.6937787", "0.68512", "0.6845657", "0.68141913", "0.681363", "0.6778343", "0.6601138", "0.6594343", "0.6588747", "0.6585934", "0.65806425", "0.65311253", "0.65243727", "0.6501449", "0.649974", "0.64975786", "0.64799845", "0.6452577", "0.6438984", ...
0.0
-1
get time tracked, prices
public Map<Number, Double> getTodayPrice(Number stockID, Number stDate, Number enDate) { Map<Number, Double> m = new HashMap<Number, Double>(); //get VO instance TestStockPricesVOImpl tspVO = getTestStockPricesVO(); //get VC instance ViewCriteria vc = tspVO.getViewCriteria("GetStockPricesInGivenDateRangeCriteria"); vc.resetCriteria(); //set All the bind parameters tspVO.setBindStockID(stockID); tspVO.setBindStartDate(stDate); tspVO.setBindEndDate(enDate); //apply the view criteria tspVO.applyViewCriteria(vc); //execute the view Object programatically tspVO.executeQuery(); System.out.print("Row count: "); System.out.println(tspVO.getRowCount()); //Iterate through the results RowSetIterator it = tspVO.createRowSetIterator(null); while (it.hasNext()) { TestStockPricesVORowImpl newRow = (TestStockPricesVORowImpl)it.next(); Number timetracked = newRow.getTimetracked(); Number price = newRow.getPrice(); m.put(timetracked, price.doubleValue()); } it.closeRowSetIterator(); return m; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tpublic List<Goods> GetGoodsByTime() {\n\t\treturn null;\n\t}", "public double getPrice(Movie movie, double time);", "public ArrayList<Double> GetPrices()\r\n\t{\r\n\t\treturn dayStockPrices;\r\n\t}", "Price[] getTradePrices();", "double calculatePrice(VehicleType vehicleType, Date entryTime, D...
[ "0.59716874", "0.5970878", "0.5963021", "0.5957293", "0.59396774", "0.58862585", "0.5864316", "0.57634723", "0.57251793", "0.57075834", "0.56977314", "0.5672827", "0.56723773", "0.5574099", "0.5569896", "0.55573606", "0.5554612", "0.55513376", "0.5543444", "0.5534879", "0.552...
0.56641454
13
Container's getter for PortfolioStocksVO.
public PortfolioStocksVOImpl getPortfolioStocksVO() { return (PortfolioStocksVOImpl)findViewObject("PortfolioStocksVO"); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public ViewObjectImpl getTestPortfolioStocksVO() {\n return (ViewObjectImpl)findViewObject(\"TestPortfolioStocksVO\");\n }", "public StockPricesVOImpl getStockPricesVO() {\n return (StockPricesVOImpl)findViewObject(\"StockPricesVO\");\n }", "public TestStockPricesVOImpl getTestStockPricesVO...
[ "0.7745095", "0.72170025", "0.68540835", "0.684176", "0.66972846", "0.6612173", "0.65294677", "0.6415862", "0.63663095", "0.63610953", "0.635805", "0.6351188", "0.62774134", "0.61541426", "0.6145047", "0.6139353", "0.60560584", "0.604805", "0.60001963", "0.5964015", "0.595778...
0.8631689
0
Container's getter for StockDetailsROVVO.
public StockDetailsROVOImpl getStockDetailsROVO() { return (StockDetailsROVOImpl)findViewObject("StockDetailsROVO"); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public ViewObjectImpl getStockPricesROVO() {\n return (ViewObjectImpl)findViewObject(\"StockPricesROVO\");\n }", "public StockPricesVOImpl getStockPricesVO() {\n return (StockPricesVOImpl)findViewObject(\"StockPricesVO\");\n }", "public TestStockPricesVOImpl getTestStockPricesVO() {\n ...
[ "0.77482015", "0.67611086", "0.65442395", "0.62450814", "0.6161011", "0.6028861", "0.6003059", "0.5995969", "0.57949287", "0.57949287", "0.57872", "0.5775083", "0.57687664", "0.57424194", "0.57376003", "0.5715123", "0.56920904", "0.56803644", "0.56661385", "0.5662235", "0.563...
0.8711749
0
Container's getter for StockPricesVO.
public StockPricesVOImpl getStockPricesVO() { return (StockPricesVOImpl)findViewObject("StockPricesVO"); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public TestStockPricesVOImpl getTestStockPricesVO() {\n return (TestStockPricesVOImpl)findViewObject(\"TestStockPricesVO\");\n }", "public ViewObjectImpl getStockPricesROVO() {\n return (ViewObjectImpl)findViewObject(\"StockPricesROVO\");\n }", "public ArrayList<Double> GetPrices()\r\n\t{\r...
[ "0.79269636", "0.77488506", "0.72322345", "0.7231301", "0.71709394", "0.6838694", "0.6735351", "0.66910493", "0.66489154", "0.66006994", "0.6492534", "0.6486171", "0.648427", "0.6471043", "0.64660376", "0.6324846", "0.63056386", "0.6301687", "0.6274863", "0.6270036", "0.62387...
0.8595302
0
Container's getter for StockPricesROVO.
public ViewObjectImpl getStockPricesROVO() { return (ViewObjectImpl)findViewObject("StockPricesROVO"); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public StockPricesVOImpl getStockPricesVO() {\n return (StockPricesVOImpl)findViewObject(\"StockPricesVO\");\n }", "public StockDetailsROVOImpl getStockDetailsROVO() {\n return (StockDetailsROVOImpl)findViewObject(\"StockDetailsROVO\");\n }", "public TestStockPricesVOImpl getTestStockPrices...
[ "0.76303", "0.7384159", "0.71129483", "0.64505017", "0.6416957", "0.63371515", "0.631179", "0.6173821", "0.61073136", "0.60705525", "0.6028047", "0.6022102", "0.5974599", "0.5954877", "0.59349906", "0.59133416", "0.5896894", "0.5856362", "0.57895434", "0.57882714", "0.5780834...
0.8411118
0
Container's getter for TestPortfolioStocksVO.
public ViewObjectImpl getTestPortfolioStocksVO() { return (ViewObjectImpl)findViewObject("TestPortfolioStocksVO"); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public PortfolioStocksVOImpl getPortfolioStocksVO() {\n return (PortfolioStocksVOImpl)findViewObject(\"PortfolioStocksVO\");\n }", "public TestStockPricesVOImpl getTestStockPricesVO() {\n return (TestStockPricesVOImpl)findViewObject(\"TestStockPricesVO\");\n }", "public StockPricesVOImpl ge...
[ "0.8215602", "0.74488354", "0.67287546", "0.6570814", "0.6453931", "0.6254661", "0.61710733", "0.60795856", "0.6078388", "0.6050251", "0.6029744", "0.60202205", "0.5989439", "0.58869964", "0.5810296", "0.57762337", "0.57104784", "0.5696032", "0.5672284", "0.56662965", "0.5550...
0.846155
0
Container's getter for PortfolioStocks2.
public ViewObjectImpl getPortfolioStocks2() { return (ViewObjectImpl)findViewObject("PortfolioStocks2"); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public PortfolioStocksVOImpl getPortfolioStocksVO() {\n return (PortfolioStocksVOImpl)findViewObject(\"PortfolioStocksVO\");\n }", "public Map<String, Stock> getStocks();", "public java.util.List<com.sbytestream.samples.grpc.stockservice.Stock> getStocksList() {\n return stocks_;\n }", "static ...
[ "0.6813283", "0.66272527", "0.6511134", "0.6421138", "0.63204014", "0.63152564", "0.624954", "0.6177919", "0.61145085", "0.60984737", "0.6070846", "0.6020739", "0.6020054", "0.5982604", "0.59701926", "0.5964566", "0.59397465", "0.59397465", "0.5928724", "0.5923325", "0.591629...
0.8000478
0
Container's getter for TestStockPricesVO.
public TestStockPricesVOImpl getTestStockPricesVO() { return (TestStockPricesVOImpl)findViewObject("TestStockPricesVO"); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public StockPricesVOImpl getStockPricesVO() {\n return (StockPricesVOImpl)findViewObject(\"StockPricesVO\");\n }", "public ViewObjectImpl getStockPricesROVO() {\n return (ViewObjectImpl)findViewObject(\"StockPricesROVO\");\n }", "public ViewObjectImpl getTestPortfolioStocksVO() {\n r...
[ "0.7992873", "0.74078435", "0.7115763", "0.692124", "0.6834262", "0.6693396", "0.64726967", "0.643027", "0.6398228", "0.6309033", "0.6276487", "0.62703294", "0.62350965", "0.6216084", "0.61712587", "0.61657596", "0.61444354", "0.61444354", "0.6118095", "0.6118095", "0.6118095...
0.8576692
0
get date tracked, prices
public Map<Number, Double> getThePastPrices(Number stockID, Number stDate, Number enDate) { Map<Number, Double> m = new HashMap<Number, Double>(); //get VO instance TestStockPricesVOImpl tspVO = getTestStockPricesVO(); //get VC instance ViewCriteria vc = tspVO.getViewCriteria("GetStockPricesInGivenDateRangeCriteria"); vc.resetCriteria(); //set All the bind parameters tspVO.setBindStockID(stockID); tspVO.setBindStartDate(stDate); tspVO.setBindEndDate(enDate); //apply the view criteria tspVO.applyViewCriteria(vc); //execute the view Object programatically tspVO.executeQuery(); System.out.print("Row count: "); System.out.println(tspVO.getRowCount()); //Iterate through the results RowSetIterator it = tspVO.createRowSetIterator(null); while (it.hasNext()) { TestStockPricesVORowImpl newRow = (TestStockPricesVORowImpl)it.next(); Number datetracked = newRow.getDatetracked(); Number timetracked = newRow.getTimetracked(); Number price = newRow.getPrice(); m.put(datetracked, price.doubleValue()); } it.closeRowSetIterator(); return m; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Date getPrice() {\n return price;\n }", "HashMap<String, Double> getPortfolioData(String date);", "public interface StockPriceDataSource {\n\n /**\n * daily prices\n * @param date required date, can be today\n * @return list of deals for the day\n */\n List<StockTrade> ge...
[ "0.6703779", "0.66150784", "0.65311384", "0.6502207", "0.64741135", "0.6229959", "0.62018615", "0.6158565", "0.6110805", "0.6042228", "0.6018789", "0.6015939", "0.6002756", "0.59800124", "0.59710956", "0.59266645", "0.5924713", "0.5907336", "0.58915406", "0.5863186", "0.58449...
0.6190985
7
Container's getter for UserPortfoliosVO.
public UserPortfoliosVOImpl getUserPortfoliosVO() { return (UserPortfoliosVOImpl)findViewObject("UserPortfoliosVO"); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public UserPortfolioNamesROVOImpl getUserPortfolioNamesROVO() {\n return (UserPortfolioNamesROVOImpl)findViewObject(\"UserPortfolioNamesROVO\");\n }", "public UserPortfoliosImpl() {\r\n portfolios = new ArrayList<>();\r\n formatter = new DateTimeFormatterBuilder()\r\n .appendPattern(\"...
[ "0.6342583", "0.6104654", "0.6002113", "0.5857502", "0.57095057", "0.5652559", "0.5602206", "0.5573147", "0.5550662", "0.5455211", "0.5438654", "0.53847766", "0.53671366", "0.53447163", "0.5299967", "0.51645327", "0.51560175", "0.50697345", "0.50668824", "0.50011796", "0.4979...
0.8817417
0
Container's getter for UserPortfolioNamesROVO.
public UserPortfolioNamesROVOImpl getUserPortfolioNamesROVO() { return (UserPortfolioNamesROVOImpl)findViewObject("UserPortfolioNamesROVO"); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String getUserNames() {\n return sp.getString(USER_NAMES, null);\n }", "Collection<String> getUsernames();", "@Override\n\tpublic String[] getRelatedProjectNames(String userName) {\n\t\tuserInfo.setUserName(userName);\n\t\treturn userInfo.getRelatedProject();\n\t}", "public String getSurname...
[ "0.6109714", "0.5993297", "0.5916823", "0.5761518", "0.567745", "0.567137", "0.5663327", "0.5643453", "0.5637157", "0.5624055", "0.5588187", "0.55747974", "0.5562023", "0.5560565", "0.5547217", "0.5511416", "0.55001414", "0.54849833", "0.54774463", "0.54545534", "0.54492885",...
0.87037736
0
TODO Autogenerated method stub
public static void main(String[] args) { SplayTreeSet<Integer> main = new SplayTreeSet<Integer>(); main.add(16); main.add(15); main.add(13); main.add(17); main.add(21); main.add(14); System.out.println(main.toString()+"\n\n"); main.remove(17); main.remove(21); System.out.println(main.toString()); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExr...
[ "0.6671074", "0.6567672", "0.6523024", "0.6481211", "0.6477082", "0.64591026", "0.64127725", "0.63762105", "0.6276059", "0.6254286", "0.623686", "0.6223679", "0.6201336", "0.61950207", "0.61950207", "0.61922914", "0.6186996", "0.6173591", "0.61327106", "0.61285484", "0.608016...
0.0
-1
/ if (array[upperBound] == null) array[upperBound] = new Enemy(); array[upperBound].initializeBullet(b);
public void add(Renderable e) { array[upperBound] = e; upperBound = (upperBound + 1) % array.length; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public Bullet getBullet() {\n return new EnemyGunBullet1();\n }", "public void trackBullets(){\n // bossbullet control, if it hit the bound, remove the bullet\n for(int i = 0; i < bossBullets.size(); i++){\n Bullet tempBullet = bossBullets.get(i);\n te...
[ "0.6810772", "0.6744811", "0.6698617", "0.66322744", "0.6562583", "0.6489071", "0.64657396", "0.6437249", "0.64261", "0.63511705", "0.63278806", "0.63266593", "0.6316828", "0.63137984", "0.62925327", "0.6285765", "0.62841874", "0.62716323", "0.6262918", "0.6259005", "0.623045...
0.0
-1
Self Explanatory, displays the player's inventory, using temp values to avoid overwriting inventory slots potions are kept in a separate 'pouch' in your inventory, else they would take up a majority of slots and would cause unneccessary bugs
static void displayInv() { //Draws the current inventory char[][] inv = MainApp.inv; //Assigns formatting variables char i0_0 = inv[0][0]; char i1_0 = inv[0][1]; char i2_0 = inv[0][2]; char i3_0 = inv[0][3]; char i0_1 = inv[1][0]; char i1_1 = inv[1][1]; char i2_1 = inv[1][2]; char i3_1 = inv[1][3]; char i0_2 = inv[2][0]; char i1_2 = inv[2][1]; char i2_2 = inv[2][2]; char i3_2 = inv[2][3]; String temp = MainApp.playerName; //displays the inventory System.out.printf("%s's inventory\n", temp); System.out.printf("~~~~~~~~~~~~~~\n"); System.out.printf("| %1s %1s %1s %1s |\n", i0_0, i1_0, i2_0, i3_0); System.out.printf("| %1s %1s %1s %1s |\n", i0_1, i1_1, i2_1, i3_1); System.out.printf("| %1s %1s %1s %1s |\n", i0_2, i1_2, i2_2, i3_2); System.out.printf("~~~~~~~~~~~~~~\n"); System.out.printf("%d Small Potions\n",MainApp.potions[0]); System.out.printf("%d Medium Potions\n",MainApp.potions[1]); System.out.printf("%d Large Potions\n",MainApp.potions[2]); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String printPlayerInventory() {\r\n\t\t\tif(this.getPlayer().getInventory().getContent().isEmpty()) {\r\n\t\t\t\treturn \"You have no items in your inventory.\" + \"\\n\"\r\n\t\t\t\t\t\t+ \"You can carry \" + this.getPlayer().getCarryCapacity() + \" more units of weight. \\n\"\r\n\t\t\t\t\t\t+ \"You have \"...
[ "0.74824625", "0.71888363", "0.70708823", "0.7020034", "0.7015361", "0.6947929", "0.6785571", "0.67438924", "0.67046636", "0.66249", "0.65301484", "0.6453608", "0.6396367", "0.6391746", "0.63817614", "0.63587147", "0.6324983", "0.63141584", "0.62921655", "0.62720245", "0.6270...
0.68396056
6
Handles adding items to the player's inventory Searches for next empty slot, then places item into slot
static void invAdd(char item) { for (int i=0; i<3; ++i) { for (int k=0; k<4; ++k) { if (MainApp.inv[i][k] == 'X') { MainApp.inv[i][k] = item; return; } } } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void inventoryHandler(){\n final Button TAB = getOwnerArea().getKeyboard().get(Keyboard.TAB);\n final Button SPACE = getOwnerArea().getKeyboard().get(Keyboard.SPACE);\n final Button R = getOwnerArea().getKeyboard().get(Keyboard.R);\n final Button T = getOwnerArea().getKeyboard()...
[ "0.71765494", "0.702067", "0.67654693", "0.6756254", "0.67140454", "0.6636005", "0.6610977", "0.65705156", "0.65435773", "0.6457315", "0.64538956", "0.63935363", "0.63895524", "0.6372594", "0.6364135", "0.6360333", "0.6339019", "0.6316276", "0.6309623", "0.6308158", "0.630418...
0.0
-1
Runs a check to see if it's an upgraded weapon for player's class and if so, equips it, buffing damage.
static void weapon(char item) { String pClass = MainApp.playerClass; if(MainApp.alreadyEquipped == false) { if(pClass == "Warrior") { if(item == '0') { MainApp.playerStats[0] += 5; MainApp.alreadyEquipped = true; //System.out.print("Warrior Equipped!"); } //System.out.print("Post Equip Warrior"); } if(pClass == "Archer") { if(item == '&') { MainApp.playerStats[0] += 5; MainApp.alreadyEquipped = true; //System.out.print("Archer Equipped!"); } //System.out.print("Post Equip Archer"); } if(pClass == "Rogue") { if(item == '!') { MainApp.playerStats[0] += 5; MainApp.alreadyEquipped = true; //System.out.print("Rogue Equipped!"); } //System.out.print("Post Equip Rogue"); } } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void attack() {\n if (activeWeapon == null) {\n return;\n }\n attacking = true;\n }", "public void useWeapon(Character victim) {\n Weapons weapons = this.getInventory().getFirstWeapon();\n if (weapons == null)\n this.hit(victim);\n else {\...
[ "0.6076593", "0.6017972", "0.59150964", "0.58823377", "0.586481", "0.5845152", "0.5812218", "0.580512", "0.5801186", "0.5786973", "0.5756665", "0.5737654", "0.57344097", "0.5701968", "0.5697105", "0.56941193", "0.5682521", "0.5656921", "0.5655795", "0.5650731", "0.5628414", ...
0.6386139
0
added by: giric trial markers Marker marker1, marker2; PopUp popUp; float markerX, markerY; int markerColor; public boolean checkPopUp = false; uptil here
public void initApp() { Utilities.program=this; touchList = new Hashtable<Integer, Touch>(); // DB queryManager = new QueryManager(this); long timer = System.currentTimeMillis(); results = queryManager.getCrashesALL(); System.out.println(System.currentTimeMillis() - timer); timer = System.currentTimeMillis(); // MARKERS Utilities.markerShape = loadShape("marker.svg"); markerList = updateMarkerList(); // GRID gm = new GridManager(this, map, results); System.out.println("InitApp1"); gm.computeGridValues(); System.out.println(System.currentTimeMillis() - timer); // OTHER Utilities.font = this.loadFont("Helvetica-Bold-100.vlw"); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n public boolean onMarkerClick(Marker marker) {\r\n if(!marker.getTitle().equals(\"Are you here!\")) {\r\n alertDialogBuldingData.showBuldingData(marker.getTitle(), marker.getSnippet(), _university_name, _buildings_type, \"\", \"\");\r\n return false;\r\n }\r\n ...
[ "0.66749", "0.6639497", "0.6577593", "0.6548596", "0.65256935", "0.6512789", "0.65007037", "0.63672197", "0.6338761", "0.63142014", "0.62838954", "0.62838954", "0.62723243", "0.6259441", "0.62139523", "0.61969644", "0.61557704", "0.614935", "0.6146336", "0.6125223", "0.610072...
0.0
-1
/h1.setData(queryManager.getHisogramCrashes(Utilities.minActiveLatitude, Utilities.maxActiveLatitude, Utilities.minActiveLongitude, Utilities.maxActiveLongitude)); h2.setData(queryManager.getHisogramFatalities( Utilities.minActiveLatitude, Utilities.maxActiveLatitude, Utilities.minActiveLongitude, Utilities.maxActiveLongitude)); h1.setBounds(); h2.setBounds();
public void initHistogram() { h1.setString(Utilities.hist1String); h2.setString(Utilities.hist2String); h1.setData(results); h2.setData(results); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void onDataChange(DataSnapshot dataSnapshot) {\n\n Map<String,Object> helpcenter = (Map<String, Object>) dataSnapshot.getValue();\n showHelpCenters (helpcenter );\n\n }", "private static void drawTableCompenent...
[ "0.54494417", "0.54129905", "0.53480685", "0.5345049", "0.53426886", "0.5316788", "0.5274548", "0.5267682", "0.52450275", "0.5242618", "0.52365965", "0.52333987", "0.5220373", "0.52072746", "0.52044684", "0.5188371", "0.51597565", "0.51539385", "0.51523054", "0.5151571", "0.5...
0.5879008
0
INIT MAP SIZE AND POSITION
public void initMap() { providers = new AbstractMapProvider[3]; providers[0] = new Microsoft.HybridProvider(); providers[1] = new Microsoft.RoadProvider(); providers[2] = new Microsoft.AerialProvider(); /* * providers[3] = new Yahoo.AerialProvider(); providers[4] = new * Yahoo.RoadProvider(); providers[5] = new OpenStreetMapProvider(); */ currentProviderIndex = 0; map = new InteractiveMap(this, providers[currentProviderIndex], Utilities.mapOffset.x, Utilities.mapOffset.y, Utilities.mapSize.x, Utilities.mapSize.y); map.panTo(locationUSA); map.setZoom(minZoom); updateCoordinatesLimits(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void initializeMap() {\n\t\tgameMap = new GameMap(GameMap.MAP_HEIGHT, GameMap.MAP_WIDTH);\n\t\tgameMap.initializeFields();\n\t}", "public pacman(int size_of_map) {\n this.positionX = (this.positionY = 0);\n this.size_of_map = size_of_map;\n }", "private void createMaps() {\r\n\t\tint SI...
[ "0.7145087", "0.7121677", "0.70897996", "0.7070029", "0.6996122", "0.68644774", "0.6842978", "0.6788554", "0.6707806", "0.67007667", "0.6672492", "0.6656597", "0.6616776", "0.66141", "0.6588977", "0.6557385", "0.6548682", "0.6543094", "0.65348744", "0.65254873", "0.65192926",...
0.6073324
59
> HERE BEGINS THE MOUSE STUFF < See TouchListener on how to use this function call In this example TouchListener draws a solid ellipse Ths functions here draws a ring around the solid ellipse NOTE: Mouse pressed, dragged, and released events will also trigger these using an ID of 1 and an xWidth and yWidth value of 10. Touch position at last frame
public void initOmicron() { // Creates the OmicronAPI object. This is placed in init() since we want // to use fullscreen omicronManager = new OmicronAPI(this); // Removes the title bar for full screen mode (present mode will not // work on Cyber-commons wall) omicronManager.setFullscreen(true); // Make the connection to the tracker machine omicronManager.ConnectToTracker(7001, 7340, "131.193.77.159"); // Create a listener to get events touchListener = new TouchListener(); touchListener.setThings(this); // Register listener with OmicronAPI omicronManager.setTouchListener(touchListener); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void onPress(MouseEvent e, GraphicsContext g) {\n g.beginPath();\n g.moveTo(e.getX(), e.getY());\n g.stroke();\n }", "@Override\n public void onPress(MouseEvent e, GraphicsContext g) {\n g.beginPath();\n g.moveTo(e.getX(), e.getY());\n g.setLi...
[ "0.6753907", "0.66450894", "0.6471681", "0.6400635", "0.6368393", "0.6325831", "0.6283548", "0.62765265", "0.62478507", "0.62297136", "0.62297136", "0.62297136", "0.61872435", "0.61617094", "0.6151775", "0.61287093", "0.61150986", "0.611487", "0.6111823", "0.6055728", "0.6054...
0.0
-1
DRAG ON THE MAP!
public void myDragged(int id, float mx, float my) { if (isIn(mx, my, Utilities.mapOffset.x, Utilities.mapOffset.y, Utilities.mapSize.x, Utilities.mapSize.y)) { mapDragHack++; if (mapDragHack % 10 == 0) { mapDragHack = 1; map.setCenter(map.pointLocation( map.locationPoint(map.getCenter()).x - (mx - lastTouchPos.x), map.locationPoint(map.getCenter()).y - (my - lastTouchPos.y))); lastTouchPos.x = mx; lastTouchPos.y = my; mapHasMoved = true; } } if(slider.isKnobSelected()){ slider.setKnobPosition(mx); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void mouseDragged(MapEventMouse e) {\n if (isDragging) {\n end = e.getPoint();\n e.getMap().repaint();\n }\n }", "@Override\n \tpublic void mouseDragged(PInputEvent event) {\n \t\t if (currentListener instanceof MapTool) {\n PGISCanvas.this.setCursor(((MapTool...
[ "0.6773869", "0.6642599", "0.6610063", "0.65556043", "0.6529055", "0.6365669", "0.6361843", "0.63420963", "0.63364774", "0.6330726", "0.62955683", "0.62892145", "0.62688124", "0.62651265", "0.6247426", "0.6240856", "0.623735", "0.62289387", "0.62053037", "0.6200578", "0.61834...
0.59423465
42
Invalidates and recreates session (do this on login/logout).
public HttpSession invalidateSession() { session.invalidate(); session = request.getSession(true); return session; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void refreshSession() {\n\t\ttry {\n\t\t\tAuthenticationUtils.endSession();\n\t\t\tAuthenticationUtils.startSession(endpointUser, endpointPassword);\n\t\t} catch(Throwable e) {\n\t\t\tLOG.error(\"Error refreshing session\", e);\n\t\t}\n\t}", "@Override\n\tpublic void exitSessionUser() {\n\t\tgetThreadLoc...
[ "0.7276059", "0.70172083", "0.6877732", "0.68108183", "0.6778234", "0.67370963", "0.6729355", "0.6683323", "0.6664565", "0.66095644", "0.6535527", "0.6508792", "0.6458537", "0.64558476", "0.64529234", "0.6371633", "0.63399625", "0.63306624", "0.63284594", "0.6326922", "0.6325...
0.71719486
1
Logs a security event as the currently logged in user. (convenience routine for SecurityAuditManager)
public void logEvent(String summary, String details) { SecurityAuditManager.getInstance().logEvent(getUser().getUsername(), summary, details); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void logUser() {\n }", "public void setLoggedUser(CustomEmployee user) {\n loggedUser = user;\n }", "@Override\n\tpublic void onExpiration(Session session) {\n\t\tlogger.info(\"onExpiration session created:id= {}, begin at {}\", session.getId(), session.getStartTimestamp());\n\t\tlogger.in...
[ "0.6490064", "0.6087781", "0.5820066", "0.578696", "0.5651575", "0.5545461", "0.5432808", "0.541385", "0.5357091", "0.5332519", "0.5304681", "0.5277914", "0.5265757", "0.5258635", "0.5187193", "0.51761734", "0.51554215", "0.5123703", "0.5097473", "0.50741917", "0.5068718", ...
0.59828633
2
Restarts the server then sleeps for 3 seconds.
public void restart() { try { getXMPPServer().restart(); } catch (Exception e) { Log.error(e.getMessage(), e); } sleep(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void restart(int delay) {\n\t\tstop();\n\t\tstart(delay);\n\t}", "public void restart() {\r\n\t\tstart();\r\n\t}", "private void sleep() {\n try {\n Thread.sleep(3000L);\n }\n catch (Exception ignored) {\n Log.trace(\"Sleep got interrupted.\");\n }\n ...
[ "0.6316342", "0.6257162", "0.61673087", "0.6099093", "0.60710025", "0.60267526", "0.6000543", "0.59693354", "0.5959892", "0.59327966", "0.58406", "0.58248264", "0.57397765", "0.5711728", "0.56877625", "0.5645326", "0.5621866", "0.56180286", "0.5554316", "0.5517901", "0.551110...
0.6778839
0
Stops the server then sleeps for 3 seconds.
public void stop() { try { getXMPPServer().stop(); } catch (Exception e) { Log.error(e.getMessage(), e); } sleep(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void sleep() {\n try {\n Thread.sleep(3000L);\n }\n catch (Exception ignored) {\n Log.trace(\"Sleep got interrupted.\");\n }\n }", "@Override\n\t\tpublic void run() {\n\t\t\ttry {\n\t\t\t\tTimeUnit.SECONDS.sleep(3);\n\t\t\t} catch (InterruptedException...
[ "0.66050875", "0.6126889", "0.6028013", "0.5913944", "0.5911234", "0.5875284", "0.5864144", "0.57802826", "0.57658803", "0.57658803", "0.5757382", "0.57107097", "0.5658652", "0.5647915", "0.56181383", "0.560087", "0.55825883", "0.5581675", "0.5565594", "0.5562832", "0.5562237...
0.5622269
14