query
stringlengths
8
1.54M
document
stringlengths
9
312k
negatives
listlengths
19
20
metadata
dict
returns total cost by deducting the treatent cost from the insurance amount.
public double getTotalCost(){ if(treatment_cost < insurance_amount) setTotC(0.0); else{ setTotC(treatment_cost - insurance_amount); } return total_cost; }
[ "public double calculateTotalCost(){\n return (mPrice - mDownPayment) + mTaxAmount;\n }", "public double getTotalCost()\r\n\t{\r\n\t\treturn ((getSubTotal() - getDiscountAmtTotal()) + getTaxAmount());\r\n\t}", "Double getTotalCost();", "public double findDeductible(int income, int dependents)\n {...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
TODO Autogenerated method stub
@Override public void onNothingSelected(AdapterView<?> arg0) { }
[ "@Override\n }", "@Override\n\t\t\t\tpublic void pintate() {\n\t\t\t\t\t\n\t\t\t\t}", "@Override\n public void extornar() {\n \n }", "@Override\r\n\tpublic void hablar() {\n\t\t\r\n\t}", "@Override\n\t\tpublic void kayit1() {\n\t\t\t\n\t\t}", "@Override\r\n\tpublic void wydaj() {\n...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
/ Don't need to implement this method unless your table's data can change.
public void setValueAt(Object value, int row, int col) { Gruppierung grupp = data.elementAt(row); switch(col){ case 4: Integer t1 = (Integer)value; grupp.setTore1(t1.intValue()); break; case 5: Integer t2 = (Integer)val...
[ "void tableUpdated();", "@Override\r\n\tpublic void tableChanged(TableModelEvent arg0)\r\n\t{\n\t\t\r\n\t}", "void onTableChanged();", "TableData createTableData();", "@Override\n public void update() {\n refreshTable();\n }", "@Override\n\tpublic void tableChanged(WTableModelEvent event) {\n...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Get the next entry, returned and also added in the array
public Entry readNextAndSetPosition() throws IOException { Entry entry = this.reader.next(); // Store the position so that in the future the reader can start // reading from here. If the above call to next() throws an // exception, the position won't be changed and retry will happen // from the last...
[ "public TarEntry getNextEntry() {\n\t}", "public FileEntry getNextEntry() {\n\t\tif(done) {\n\t\t\treturn null;\n\t\t}\n\t\treturn processingFile = currentFile;\n\t}", "E getNext();", "Object getNextValue();", "@Override\n public Object next() {\n // Object result = null;\n if (index == arra...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Interface override. Not implemented!
@Override public void remove() { //TODO: not yet supported }
[ "@Override\n }", "@Override\n public void extornar() {\n \n }", "@Override\n\t\t\t\tpublic void pintate() {\n\t\t\t\t\t\n\t\t\t\t}", "@Override\r\n public void publicando() {\n }", "@Override\r\n\tpublic void hablar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void limpar() {\n\...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
$ANTLR end "rule__Car__Group__8__Impl" $ANTLR start "rule__EDouble__Group__0" InternalUberDsl.g:4807:1: rule__EDouble__Group__0 : rule__EDouble__Group__0__Impl rule__EDouble__Group__1 ;
public final void rule__EDouble__Group__0() throws RecognitionException { int stackSize = keepStackSize(); try { // InternalUberDsl.g:4811:1: ( rule__EDouble__Group__0__Impl rule__EDouble__Group__1 ) // InternalUberDsl.g:4812:2: rule__EDouble__Group__0__Impl rule__ED...
[ "public final void rule__EDouble__Group__0() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \t\n try {\n // InternalActivityArchitecture.g:961:1: ( rule__EDouble__Group__0__Impl rule__EDouble__Group__1 )\n // InternalActivityArchitecture.g:962:2: ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Returns value of serverPortNumber
public int getServerPortNumber() { return serverPortNumber; }
[ "public int getServerPort() {\n\t\treturn Integer.parseInt(port.getText());\n\t}", "public Integer getServerPort()\n\t{\n\t\treturn serverPort;\n\t}", "java.lang.String getServerPort();", "public int getServerPort() {\n return serverPort_;\n }", "public java.lang.String getServerPort() {\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
TODO Autogenerated method stub
@Override protected void applyTransformation(float interpolatedTime, Transformation t) { super.applyTransformation(interpolatedTime, t); final Matrix matrix = t.getMatrix(); if (interpolatedTime < 0.8) { matrix.preScale(1+0.625f*interpolatedTime, 1-interpolatedTime/0.8f+0.01f,pointX,pointY); }else{ matri...
[ "@Override\n }", "@Override\n\t\t\t\tpublic void pintate() {\n\t\t\t\t\t\n\t\t\t\t}", "@Override\n public void extornar() {\n \n }", "@Override\r\n\tpublic void hablar() {\n\t\t\r\n\t}", "@Override\n\t\tpublic void kayit1() {\n\t\t\t\n\t\t}", "@Override\r\n\tpublic void wydaj() {\n...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Cadena de caracteres original a sustituir.
public static String remove1(String input) { String original = "áàäéèëíìïóòöúùuñÁÀÄÉÈËÍÌÏÓÒÖÚÙÜÑçÇ"; // Cadena de caracteres ASCII que reemplazarán los originales. String ascii = "aaaeeeiiiooouuunAAAEEEIIIOOOUUUNcC"; String output = input; for (int i = 0; i < original.length(); i...
[ "public String limpiarCaracteresSueltos(String cadena) {\n cadena = cadena.replaceAll(\" ([a-z]) \", \" \");\n cadena = cadena.replaceAll(\" ([a-z]) \", \" \");\n cadena = cadena.replaceAll(\" ([a-z]) \", \" \");\n cadena = cadena.replaceAll(\" ([a-z]) \", \" \");\n cadena = caden...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
/ Test the different Tissue matrix views
@Test public void testGetParentTermsStructureIDQuery() { GxdQueryForm query = new GxdQueryForm(); query.setStructureID(TERMID1); List<GxdMatrixRow> parentRows = handler.getParentTermsToDisplay(query,null,null); assertMatrixRowIds(parentRows,TERMID1); // verify the child term comes back GxdMatrixRow child...
[ "@Test(timeout = 4000)\n public void test175() throws Throwable {\n ResultMatrixGnuPlot resultMatrixGnuPlot0 = new ResultMatrixGnuPlot(26, 0);\n ResultMatrixHTML resultMatrixHTML0 = new ResultMatrixHTML();\n resultMatrixHTML0.setRowHidden(0, true);\n ResultMatrixSignificance resultMatrixSigni...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
TODO Autogenerated method stub
@Override public void keyPressed(KeyEvent e) { }
[ "@Override\n }", "@Override\n\t\t\t\tpublic void pintate() {\n\t\t\t\t\t\n\t\t\t\t}", "@Override\n public void extornar() {\n \n }", "@Override\r\n\tpublic void hablar() {\n\t\t\r\n\t}", "@Override\n\t\tpublic void kayit1() {\n\t\t\t\n\t\t}", "@Override\r\n\tpublic void wydaj() {\n...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Overriden method getCount to get the number of tabs
@Override public int getCount() { return tabCount; }
[ "@Override\r\n public int getCount() {\r\n return numOfTabs;\r\n }", "@Override\n public int getCount() {\n return mNumbOfTabs;\n }", "@Override\n\tpublic int getCount() {\n\t\treturn mTabs.size();\n\t}", "@Override\n public int getCount() {\n return tabCount;\n }", "@Override...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Gets a list of Sections for the FractalPiece. To add a Section, use the provided createSection() method, rather than attempting to add it to the list on your own.
public VoiceOrSectionList<Section, Voice> getSections() { assert sections != null : sections; // sections should never be null! return sections; }
[ "public List<Section> getSections() {\n List<Section> sectionsCopy = new ArrayList<Section>(10);\n sectionsCopy.addAll(sections);\n return sectionsCopy;\n }", "@Override\n\tpublic Object[] getSections() {\n\t\treturn sectionsList.toArray();\n\t}", "@Override\n public SectionContainer ge...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Undoes the last edit performed in this Transaction. If canUndo is true, then this method will undo the last edit and return true. It will return false if for any reason it was unable to undo an edit.
public boolean undo();
[ "public synchronized boolean canUndo() {\n if (inProgress) {\n UndoableEdit edit = editToBeUndone();\n return edit != null && edit.canUndo();\n } else {\n return super.canUndo();\n }\n }", "public final boolean canUndo() {\n return commandStack.size(...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Resize canvas to fit the screen. Only called when the window is resized. (Fullscreen, or anything else.
public void resize(){ Rect temp; Rect temp2; // RESIZE // Get window size (as a rectangle) temp2 = new Rect(_win.getWidth(), 0, 0, _win.getHeight()); // Get Logic's canvas temp = _logic.getCanvasSize(); // Resize the Logic's canvas with that ...
[ "public void resized() {\n final int width = this.getSize().width;\n final int height = this.getSize().height;\n trafficCanvas.setPreferredSize(new Dimension(width, height));\n trafficCanvas.setSize(width, height);\n trafficCanvas.requestFocusInWindow(); // give the canvas th...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
This method was generated by MyBatis Generator. This method returns the value of the database column t_report.record_id
public Integer getRecordId() { return recordId; }
[ "public Long getRecordid() {\n return recordid;\n }", "public RecordId getRecordId() {\n return new RecordId(segmentId, recordNumber);\n }", "@Override\n\tpublic long getRecordSetId() {\n\t\treturn _ddlRecordVersion.getRecordSetId();\n\t}", "@Override\n public String findRecordSchemaIdByI...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Constructs a StunMessageEvent according to the specified message.
public StunMessageEvent( StunStack stunStack, RawMessage rawMessage, Message parsedMessage) { super(stunStack, rawMessage.getLocalAddress(), parsedMessage); this.rawMessage = rawMessage; }
[ "public static Timber.LogEvent createMessage(String message) {\n return Timber.LogEvent.newBuilder()\n .setTimestamp(System.currentTimeMillis())\n .setLevel(1)\n .setHost(\"example.com\")\n .setServiceName(\"myservice\")\n .setSource(DispatcherTest.class...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
TODO Autogenerated method stub
public static void main(String[] args) { MyArrayList my_list = new MyArrayList(); //데이터 추가 my_list.add(100);//0 my_list.add(200);//1 my_list.add(300);//2 my_list.add(400);//3 my_list.add(500);//4 System.out.println("my_list'size=" + my_list.size()); System.out.println("--전체데이터--"); for(int...
[ "@Override\n }", "@Override\n\t\t\t\tpublic void pintate() {\n\t\t\t\t\t\n\t\t\t\t}", "@Override\n public void extornar() {\n \n }", "@Override\r\n\tpublic void hablar() {\n\t\t\r\n\t}", "@Override\n\t\tpublic void kayit1() {\n\t\t\t\n\t\t}", "@Override\r\n\tpublic void wydaj() {\n...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Returns all the pets in the system.
List<Pet> get();
[ "public List<Pet> getAllPets() {\n return pets;\n }", "private Vets allVets() {\n\t\treturn new Vets(this.vets.findAll());\n\t}", "public ArrayList<Pet> getPets()\r\n\t{\r\n\t\treturn pets;\r\n\t}", "@Override\n\t@Transactional\n\tpublic List<Pet> getPets() {\n\t\treturn dao.getPets();\n\t}", "pub...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
TODO Autogenerated method stub
public void handle(String content) { logger.info(content); lastOrderTimestamp=System.currentTimeMillis(); }
[ "@Override\n }", "@Override\n\t\t\t\tpublic void pintate() {\n\t\t\t\t\t\n\t\t\t\t}", "@Override\n public void extornar() {\n \n }", "@Override\r\n\tpublic void hablar() {\n\t\t\r\n\t}", "@Override\n\t\tpublic void kayit1() {\n\t\t\t\n\t\t}", "@Override\r\n\tpublic void wydaj() {\n...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
repeated .com.deerengine.pokemongo.protocol.ResponseEnvelop.NearbyPokemonProto pokemon = 11; int64 three = 3; float four = 4; int32 five = 5; unknown six = 6;
public java.util.List<com.deerengine.pokemongo.protocol.PokemonProto.ResponseEnvelop.NearbyPokemonProto> getPokemonList() { return pokemon_; }
[ "POGOProtos.Rpc.PokemonProtoOrBuilder getDummyPokemonOrBuilder();", "POGOProtos.Rpc.BuddyPokemonProto getBuddyPokemonProto();", "POGOProtos.Rpc.PokemonProto getPokemonEggs(int index);", "POGOProtos.Rpc.HoloPokemonId getPokemonType();", "public POGOProtos.Rpc.PokemonProtoOrBuilder getEggPokemonOrBuilder() {\...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
$ANTLR start value_chunk DSLMap.g:164:1: value_chunk : ( literal | EQUALS | COMMA )+ ;
public final value_chunk_return value_chunk() throws RecognitionException { value_chunk_return retval = new value_chunk_return(); retval.start = input.LT(1); Object root_0 = null; Token EQUALS23=null; Token COMMA24=null; literal_return literal22 = null; Object...
[ "public char[] getStringValueChunk(int nodeHandle, int chunkIndex, int[] startAndLen) {\n/* 799 */ return null;\n/* */ }", "public Builder setChunk(Chunk value) {\n if (chunkBuilder_ == null) {\n if (value == null) {\n throw new NullPointerException();\n }\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
add data read model
@RequestMapping("/processformwithmodel") public String ManuplateData(HttpServletRequest request, Model model ){ // read the value from html form String thename = request.getParameter("studentName"); //convert that data to upper case thename= thename.toUpperCase(); // create the message Str...
[ "@Override\n\n\tprotected <T> void addDataInModel(T data){\n\t\tSystem.err.println(\"Error adding data in variable list model\");\n\t\tSystem.exit(1);\n\t}", "public abstract void add(Read r, String name);", "private void addData() {\n\n\n\n }", "public abstract Set<T> addModelData(Set<T> p_addData);", "...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
/ methods to provide back word compatibility
private org.apache.axiom.soap.SOAPEnvelope toEnvelope(org.apache.axiom.soap.SOAPFactory factory, com.mcgraw.test.automation.api.blackboard.generated.userws.UserWSStub.DeleteAddressBookEntry param, boolean optimizeContent) throws org.apache.axis2.AxisFault{ ...
[ "private BuildWordClasses () {\n\t\tthrow new UnsupportedOperationException();\n\t}", "public abstract String mo3322u();", "@Override\n public void extornar() {\n \n }", "DealingWithGeneralization createDealingWithGeneralization();", "public abstract void mo1823b(String str);", "protected voi...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Deletes the XML output file before running the test.
@Before public void setUp() { xmlFile.delete(); }
[ "@Override\n public void cleanToolOutput() {\n String apksSourceFolder = homeDir + \"/apksToTest/\";\n String cleanCommand = \"cat /dev/null > \" + toolDir + \"/logs/app.log; \" +\n \"rm -r \" + apksSourceFolder + getFileNameWithoutExtension(apkPath)\n + \"; rm -r OUTP...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
/ 84: / 85:
protected Map<String, Object> getReportParameters() /* 86: */ { /* 87:107 */ Map<String, Object> reportParameters = super.getReportParameters(); /* 88:108 */ reportParameters.put("ReportTitle", "Lote Etiqueta"); /* 89:109 */ return reportParameters; /* 90: */ }
[ "public void mo3284g() {\n }", "public static void Elyazi_53() {\n\t\t\n\t}", "void mo29804K();", "public void mo9560p() {\n }", "void mo37715E_();", "public void mo12296x() {\n }", "public void mo829G() {\n }", "protected void o()\r\n/* 260: */ {\r\n/* 261:527 */ float f1 = (floa...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Create an instance of the SMS API
public static TwilioSMS create(String accountSID, String authToken, String fromPhone) { return new TwilioSMS(accountSID, authToken, fromPhone); }
[ "@Override\n public SmsOptions smsInit() {\n return new SmsOptions();\n }", "public Sms() {\n this(DSL.name(\"b2c_sms\"), null);\n }", "public MessageSMS(String string) {\r\n\t\t\r\n\t}", "public SmsSample() {}", "SmsModemSettings() {}", "java.util.concurrent.Future<CreateSmsTemplat...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
/ Element lastname = document.createElement("lastname"); lastname.appendChild(document.createTextNode("mook kim")); element.appendChild(lastname);
public void setFilaDatosExportarXmlSaldoContable(SaldoContable saldocontable,Document document,Element element) { Element elementId = document.createElement(SaldoContableConstantesFunciones.ID); elementId.appendChild(document.createTextNode(saldocontable.getId().toString().trim())); element.appendChild(e...
[ "XMLElement add(String elementName, String text);", "public static Node appendElement(Document document, Node parentElement, String elementName, String elementText) {\r\n\t\t \r\n\t\tElement childElement = document.createElement(elementName);\r\n\t\tText childElementText = document.createTextNode(elementText);\r\...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Adds a single determined mandatory capability of an SCSCF.
public void addMandatoryCapability(Long capability) { _mandatoryCapabilites.add(capability); }
[ "public static void addCapability(String capability){ \t\r\n\t\t\t\r\n\t\t\ttry{\r\n\t\t\t\tDocument doc = connect(Constants.getXSD_name_file());\r\n\t\t\t\tElement root = doc.getDocumentElement();\r\n\t\t\t\tNodeList nList = root.getChildNodes();\r\n\t\t\t\tfor(int index=0;index<nList.getLength();index++){\r\n\t\t...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Sets the current floor the party is on.
public void setFloor(int newFloor){ floor = newFloor; }
[ "public void setRequestedFloor(int requestedFloor) {\n\t\tsynchronized(this){\n\t\n\t\t\tif(!isInUse()){\n\t\t\t\t\n\t\t\t}\n\t\t\t}\n\t\tthis.requestedFloor = requestedFloor;\n\t}", "public void setCurrentFloor(int currentFloor) {\n if (currentFloor < this.building.getMinFloorsInBuilding()) {\r\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
/ access modifiers changed from: protected
public void resetMessage() { updateFingerprintIcon(1); this.mErrorText.setText(R.string.fingerprint_dialog_touch_sensor); this.mErrorText.setTextColor(this.mTextColor); }
[ "@Override\n }", "protected void method_5557() {}", "@Override\n public void extornar() {\n \n }", "@Override\r\n public void publicando() {\n }", "@Override\n\t\t\t\tpublic void pintate() {\n\t\t\t\t\t\n\t\t\t\t}", "@Override\r\n\tpublic void hablar() {\n\t\t\r\n\t}", "pro...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Creates new form ItemManager
public ItemManager(String _locationName, String _locationKey, String _categoryName, String _categoryKey) { initComponents(); locationName = _locationName; locationKey = _locationKey; itemName = _categoryName; categoryKey = _categoryKey; lblTitle.setText(CampusFood.CATERER...
[ "public void addNewItem() {\n /*\n create new item object\n call item constructor\n once item is created and initialized, add to itemList\n */\n }", "public void createItem() throws UnsupportedItemException {\n ItemManagerController controller = ItemManagerControll...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Used for connect(reconnect) to SIS Server
static Socket connect() throws IOException { Socket socket = new Socket("127.0.0.1", port); return socket; }
[ "boolean reconnect();", "void connectToServer() {\n timesToTry = MiscUtils.getNumberOfReconnectEvents(mContext);\n reconnectAttempts = 0;\n \n final MessageSender sender = MessageSender.getSender(server.getTitle());\n connect();\n \n while (!disconnectSent && reconnectAttem...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
/ renamed from: a
public C13868v mo43672a() { if (this.f40228a == null) { throw new IllegalStateException("scheme == null"); } else if (this.f40231d != null) { return new C13868v(this); } else { throw new IllegalStateException("host == null"); ...
[ "public interface C3511a {\n /* renamed from: a */\n void mo29057a(int i);\n }", "interface C4511c {\n /* renamed from: a */\n void mo29775a();\n }", "public interface ans {\n /* renamed from: a */\n void mo1174a();\n}", "public interface C24712af {\n /* renamed from...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
terminal ID: "^"? ("a".."z" | "A".."Z" | "_") ("a".."z" | "A".."Z" | "_" | "0".."9");
public TerminalRule getIDRule() { return gaTerminals.getIDRule(); }
[ "protected static boolean id_char( int ch )\n {\n return id_start_char( ch ) || ( ch == '_' ) || ( ch >= '0' && ch <= '9' );\n }", "public String generateCommandID() {\n String str = new String(this._initialID);\n boolean z = true;\n int length = this._initialID.length - 1;\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
parameterized query JPQL OR HQL
@Query("select u FROM User u WHERE u.name =:n and u.city =:c") public List<User> getUserByName(@Param("n") String name, @Param("c") String city);
[ "@Override\n\tpublic List<?> queryBySql(String sql, Object... parameters) {\n\t\tQuery query = sessionFactory.getCurrentSession().createQuery(sql);\n\t\tfor (int i = 0; i < parameters.length; i++) { \n\t\t\t query.setParameter(i, parameters[i]);\n\t\t}\n\t\t\n\t\treturn query.list();\n\t}", "public Promozioni[] ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
SVD File TreeView for register
public void svdtreeviewer() throws IllegalArgumentException, IllegalAccessException { TreeItem<String> peripheralsroot = new TreeItem<String>(PERIPHERALS); Map<String, Object> perpheralsMap = MainClass.getPeripheralsMap(); for (Map.Entry<String, Object> peripheral : perpheralsMap.en...
[ "public DataTreeView() {\n Vui.getInstance().registerTreeView(this);\n }", "public ScriptTreePanel getSTree() {\n\t\t//if (sTree == null) {\n\n\t\tScriptTreePanel stp = new ScriptTreePanel(Constant.messages.getString(\"customFire.custom.tab.script.node\"));\n\t\tJFileChooser chooser = new JFileChooser(C...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
filters the rows based on the search text entered by the student in the search text field.
private void filterData(){ filterDataTxt.textProperty().addListener((observable, oldValue, newValue) -> bookListTreeTableView.setPredicate(bookDTOTreeItem -> { return (Boolean) (bookDTOTreeItem.getValue().getBookTitle().getValue().toLowerCase().contains(newValue.toLowerCase()) || bookDTOTreeItem.ge...
[ "private void searchForUser() {\n DefaultTableModel dtm = new DefaultTableModel(new String[]{\"id_student\",\"name\",\"surname\"},0);\n listOfStudentsTable.setModel(dtm);\n\n startSession();\n students = session.createQuery(\"select s.idStudent, s.name, s.surname from Student s \" +\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
comparator, nulls lower (frequency) //
public JwComparator<AcUspsInternationalCgrLeg> getFrequencyComparatorNullsLower() { return FrequencyComparatorNullsLower; }
[ "public JwComparator<AcUspsDomesticSkeletonRouteOffer> getFrequencyComparatorNullsLower()\n {\n return FrequencyComparatorNullsLower;\n }", "@Override\n\tpublic int compare(Key o1, Key o2) {\n\t\t\n\t\tif(o1.freq < o2.freq)\n\t\t\treturn 1;\n\t\telse if (o1.freq > o2.freq)\n\t\t\treturn -1;\n\t\tretu...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Normal invoke with authentication. Credentials are required and may be overriden at the request level.
private <X, Y extends AmazonWebServiceRequest> Response<X> invoke(Request<Y> request, HttpResponseHandler<AmazonWebServiceResponse<X>> responseHandler, ExecutionContext executionContext, URI cachedEndpoint, URI uriFromEndpointTrait) { executionContext.setCredentialsProvider(CredentialUtils.getCrede...
[ "protected abstract RESTResult internalDoRequest(RequestMethod method,\n\t\t\tString urlString, Authenticator auth, byte[] payload,\n\t\t\tMap<String, String> headers) throws IOException;", "@Override\n public HttpResponse execute(HttpUriRequest request, HttpContext context) throws IOException, ClientProtocolE...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Replaces the element at the specified position in this list with the specified element.
public Object set(int index, Object element) { Entry e = entry(index); Object oldVal = e.element; e.element = element; return oldVal; }
[ "public void replaceAt(int position, E element){\n \tremoveItemAt(position);\n \tinsertItemAt(position, element);\n }", "public synchronized void replaceAt(int index, Object element) \r\n throws IllegalElementException, NoSuchElementException {\r\n checkIndex(index);\r\n checkElement(element);\r\n...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Interface to send callbacks
public interface ClickListener { void onItemClick(View view, int position); }
[ "public interface SimpleCallback {\n void callback(Object data);\n}", "public interface Callbacks {\n\t\tpublic void onDeviceAttached(String deviceName);\n\t\tpublic void onDeviceDetached(String deviceName);\n\t\tpublic void onProgramChange(int programNum);\n\t\tpublic void onControlChange(int control, int val...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Converts from an ordinal value to the ResponseCode
public static ResponseCode valueOf(int index) { ResponseCode[] values = ResponseCode.values(); if (index < 0 || index >= values.length) { return RESULT_ERROR; } return values[index]; }
[ "Response code(int code);", "private ResponseCode(int i) {\n\t\tthis.code=i;\n\t}", "public Builder setResponseCode(int value) {\n \n responseCode_ = value;\n onChanged();\n return this;\n }", "public void setResponseCode(final String value) {\n this.responseCode = value;\n...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
To prevent someone from accidentally instantiating the contract class, give it an empty constructor.
public DbSchema() {}
[ "public Contract() {\n\n\t}", "protected Contract() {}", "private StockContract() {\r\n }", "private MessageContract() {\n // nothing here.\n }", "private BookInventoryContract() {\n }", "public ContractEOImpl() {\n }", "private TransactionContract(){}", "private TripContract() {}",...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Constructor for all SkinBase instances.
protected ToggleSwitchSkin(ToggleSwitch control) { super(control); DropShadow dropShadow = new DropShadow(BlurType.THREE_PASS_BOX, Color.rgb(0, 0, 0, 0.65), PREFERRED_WIDTH * 0.016, 0.0, 0, PREFERRED_WIDTH * 0.028); InnerShadow highlight = new InnerShadow(BlurType.THREE_PASS_BOX, FRG_SHADOW, PR...
[ "public WolfSkin() \r\n\t{\r\n\t\tsuper(\"Wolf's skin\");\r\n\t}", "public BaseUI() {\n initComponents();\n }", "public MyShopUI() {\n\t\tsuper();\n\t}", "protected Base(VisualizerParameters parameters) {\r\n this.config = parameters.config;\r\n this.locale = parameters.locale;\r\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
File inputFile = new File("inputText.txt");
public static void main(String[] args) { List<String> inArr = new ArrayList<>(); try { Scanner scan = new Scanner(new File("inputText.txt")); while (scan.hasNextLine()) { String infix = scan.nextLine(); inArr.add(infix); } } ca...
[ "String getFileInputString();", "public static void readInputFile() throws IOException {\n StringBuilder input = new StringBuilder();\n try (BufferedReader inputFileReader = new BufferedReader(new FileReader(\"input.txt\"))) {\n String sCurrentLine;\n while ((sCurrentLine = inp...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Imprime los elementos de un arbol en posorder
public void posOrder(Node node) { if(node != null) { posOrder(node.getLeft()); posOrder(node.getRight()); System.out.println(node.getData()); } // T(n)= T(n/2) + T(n/2) + c // O(n) // n: número de elementos del árbol }
[ "void generarArbolPreorden(Expresion exp){\r\n\t\tStack<NodoBinario> p = new Stack<NodoBinario>();\r\n\t\tchar sigmov, simbolo;\r\n\t\tNodoBinario ultimo,nuevo;\r\n\t\tsimbolo = exp.obtenerSimbolo();\r\n\t\tnuevo = new NodoInterno(simbolo); // el primero es un operador\r\n\t\traiz = nuevo; // el primero siempre va ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Author: Mohit Patel Date: December 24, 2015 Purpose: Inserts a Node into the list, and sorts it by name and number. Input: A String name and integer number to be inserted. Output: None.
public void insert (String inputName, int inputNumber) { Node insertNode = new Node (inputName, inputNumber); Node beforeName = this.findBefore (inputName); Node beforeNumber = this.findBefore (inputNumber); if (beforeName == null) { if (this.listName == null) this.listName = insertNode; else ...
[ "public <T extends Comparable<T>> void sortedAdd(T number) {\n\t\tNode node = new Node();\n\t\tnode.data = number;\n\t\tnode.next = null;\n\t\tNode insert = null;\n\n\t\t// Node previousNode = new Node();\n\t\tif (head == null) {\n\t\t\thead = null;\n\t\t} else\n\n\t\t{\n\t\t\tNode temp = head;\n\n\t\t\twhile (temp...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Source:Target branch reference for push w/o fastforward. Example: refs/heads/master:refs/heads/master
public static RefSpec refPush(final String localBranchName, final String remoteBranchName) { return new RefSpec(ref(false, localBranchName, remoteBranchName)); }
[ "private static void push(String[] args) {\n validateNumArgs(\"push\", args, 3);\n String remotename = args[1];\n String remotebranch = args[2];\n File remotefile = Utils.join(_gitfolder.toString(), remotename);\n if (!remotefile.exists()) {\n System.out.println(\"Remot...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Constructor with InputStream and supplied encoding
public SimpL(java.io.InputStream stream, String encoding) { if (jj_initialized_once) { System.out.println("ERROR: Second call to constructor of static parser. "); System.out.println(" You must either use ReInit() or set the JavaCC option STATIC to false"); System.out.println(" during ...
[ "public ReaderInputStream(Reader reader, String encoding) {\n this.reader = reader;\n this.encoding = encoding;\n }", "public CCompatibleInputStream(InputStream is) {\n super(is);\n }", "public Input(InputStream stream) {\n this.in = new BufferedReader(new InputStreamReader(stream));\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
++ getter for static property _Instance Getter for property _Instance. Auto generated
public static com.tangosol.coherence.Component get_Instance() { return new com.tangosol.coherence.component.net.Cluster.ClusterService.ServiceConfig.Map.KeySet(); }
[ "public Object getInstance() {\n\t\treturn this.instance;\n\t}", "public abstract Instance getInstance();", "public static synchronized Instance getInstance() {\n return instance;\n }", "public static singleton getInstance(){\n\t\t return instance;\n\t\t }", "@JsonProperty(INSTANCE)\n\tpublic Str...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Gets Reference to the next node to corresponding current Node.
public Node<E> getNext() { return next; }
[ "public Node<E> getNextReference() {\n\t\treturn this.nextReference;\n\t}", "public Node getNext(){\n\t\treturn nextNode;\n\t}", "public Node getNext(){\n\t\treturn nextNode;\n\t\t\n\t}", "public Node getNext() {\r\n\t\t\treturn this._next;\r\n\t\t}", "public LLNode<T> getNextNode() {\r\n\r\n\t\treturn next...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
pop() pops the element from the stack
private String pop(){ //WRITE YOUR CODE HERE }
[ "public Object pop() throws StackException;", "E pop( ) throws EmptyStackException;", "Stack<T> pop();", "public void pop()\n\t{\n\t\tpop( null );\n\t}", "public void pop()\n {\n stack.pop();\n }", "public clothing pop() throws StackUnderflow{\r\n\t\treturn removeElement();\r\n\t}", "public...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Execute and wait for a command to complete. This command has the same syntax as spawn, except that it pauses execution of the table in order to wait for the command to complete.
public void command() { //System.out.println("OdiCommandLineFixture: command: starts"); Parse commandCell = cells.at(1); Parse resultCell = cells.at(2); try { CommandProcess p = doSpawn(commandCell, resultCell); // Close the output (stdin - yes, funny name for it!) stream for the process, other...
[ "public void invoke() {\r\n\t\tcommand.execute();\r\n\t}", "public void execute()\n\t{\n\t\tcommand.execute();\n\t}", "protected void execute() {\n\t\t\n\t\tm_elapsedTime = m_timer.get();\t\t\t\t\t\t\t// Return number of seconds since the timer was started\n\t\t\n\t\tif (++counter >= 50) {\n\t\t\tSystem.out.pri...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Gets the child that is in the back.
public BSPNode getBack() { return back; }
[ "public Node getback()\n\t{\n\t\treturn back;\n\t}", "public BackElements getBackAccess() {\r\n\t\treturn pBack;\r\n\t}", "public Object getBack() {\r\n\t\ttry {\r\n\t\t\tif (next.head.getValue() == null) {\r\n\t\t\t\treturn head.getValue();\r\n\t\t\t} else {\r\n\t\t\t\tif (next.next == null)\r\n\t\t\t\t\tretur...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
close inputstream without a Exception
public static void closeEL(InputStream is) { try { if(is!=null)is.close(); } //catch (AlwaysThrow at) {throw at;} catch (Throwable t) {} }
[ "public void close(){\n\t\tif(isDebug)System.out.println(\"Close the input file.\");\n\t\ttry{\n\t\t\tin.close();\n\t\t}catch(Exception e){//Catch exception if any\n\t\t\tSystem.err.println(\"Close Error: \" + e.getMessage());\n\t\t}\n\t}", "public static void closeStream(final InputStream in)\n {\n try {\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
.im.turms.proto.QueryNearbyUsersRequest query_nearby_users_request = 101;
public Builder mergeQueryNearbyUsersRequest(im.turms.common.model.dto.request.user.QueryNearbyUsersRequest value) { if (queryNearbyUsersRequestBuilder_ == null) { if (kindCase_ == 101 && kind_ != im.turms.common.model.dto.request.user.QueryNearbyUsersRequest.getDefaultInstance()) { k...
[ "im.turms.server.common.access.client.dto.request.user.QueryNearbyUsersRequest getQueryNearbyUsersRequest();", "void getNearbyUsers(String currUserType,String currUserId,String filteredUserType, LatLng currLatLng);", "@GET(\"/maps/api/place/nearbysearch/json?\")\n Call<NearbyPlaces> getNearbyPlacesQuery(@Que...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Constructor of class. Needs a HySpirit object containing all necessary information about the HySpirit implementation on your machine, and the base directory of the index. If the base directories and/lor all its subdirectories do not exist, they are created.
public SimpleHypertextFileIndex(HySpiritProperties hyspirit, String indexBaseDir) { this.hyspirit = hyspirit; this.indexBaseDir = indexBaseDir; createDirs(); //this.termMDSFile = knowledgebaseDir + File.separator + TERM_MDS; this.tfMDSFile = knowledg...
[ "public IndexBuilderBase()\n {\n dir = new RAMDirectory() ;\n makeIndex() ;\n }", "public IndexFiles() {\r\n\t\tsuper();\r\n\t}", "public Index(String path) throws IOException {\n\t\t// create a file from the path\n\t\tFile indexPath = new File(path);\n\t\t// if theres no folder\n\t\tif (!in...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Skip for subclasses which have null "state between"
@Test public void testQueryUsingNameAndStartAndEndWithGTOperator() { Assume.assumeTrue(((getQueryItemStateBetween()) != null)); FilterCriteria criteria = new FilterCriteria(); criteria.setOperator(GT); criteria.setState(getQueryItemStateBetween()); criteria.setItemName(getIte...
[ "@Override\n public State visitClass(ClassTree node, Void p) {\n return State.NO;\n }", "@Override\n\tpublic Boolean visit(Not n) {\n\t\treturn null;\n\t}", "@Override\n protected void checkSubclass() {\n }", "@Test(expected = IllegalArgumentException.class)\n public void testS...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Return the attributes from this object.
public Map<String, Object> getLocalAttrs() { return _localAttrs; }
[ "protected Map<String,Object> getAttributes() {\n\t\treturn getData();\n\t}", "public HashMap<String, Object> getAttributes() {\n\t\treturn this.attributes;\n\t}", "public Map getAttributes()\n {\n return _attributes;\n }", "public final Map<String, String> getAttributes() {\n return attribute...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
make an array of five strings and intialise it
public static void main(String[] args) { String[] s = { "potato", "cucumber", "onion", "cabbage", "mint" }; // create a sort object Sort mySort = new Sort(); // call the asort function to sort ascending s = mySort.ascendingSort(s); ...
[ "String[] createStringArray(String[] defaultArray, int size){\n\t\tRandom r = new Random();\n\t\tString[] newArray = new String[size];\n\t\t\n\t\tfor(int i = 0; i < size; i++){\n\t\t\tString s = new String();\n\t\t\t//number of new future string\n\t\t\tint bound = r.nextInt(defaultArray.length);\n\t\t\t//each itera...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
On Submit Button clicked OR when timer reaches zero Checks if the user answered the question correctly and sets variables appropriately Also when answering the last question, it goes to the results screen and transfers the appropriate data to it If called by pressing the submit button, if an answer is not selected then...
public void onClickSubmitButton(View view) { RadioButton rb = (RadioButton) answerButtonGroup.findViewById(answerButtonGroup.getCheckedRadioButtonId()); if (rb != null || outOfTime) { timer.cancel(); if (rb != null) { //Only runs if an answer was selected String s...
[ "@Override\n public void actionPerformed(ActionEvent arg0) {\n if (firstTime == true){\n firstTime = false;\n gambleButton.setText(\"Enter Answer\");\n\n // start kill timer on background thread\n MyThread myThread = ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Apumetodi, joka kokoaa pakattavasta merkkilistasta koodiston ja pakattavan listan.
private Lista<Integer> pakkaaMerkit(Lista<Character> merkkilista) { Lista<Integer> pakattu = new Lista(merkkilista.koko()); String merkkipuskuri = "" + (char) merkkilista.hae(0); for (int i = 1; i < merkkilista.koko(); i++) { Character nykyinenMerkki = (char) merkkilista.hae...
[ "private void napuniListu(List<Kosarkas> listaKosarkasa) {\n //jlistKosarkasi.removeAll();\n DefaultListModel dlm = new DefaultListModel();\n\n for (Kosarkas kosarkas : listaKosarkasa) {\n dlm.addElement(kosarkas);\n }\n\n jlistKosarkasi.setModel(dlm);\n\n jlistK...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
start the same service as StartGPSService, but this time passing false in the intent to signify we need to cancel the alarm
public void stopGPSService(View view){ //we reset the time last updated to 0. this way, when the user starts it up again, //it doesn't assign all the time that the user wasn't tracking to the first closest //location that matches for(MonitoredLocation ml : places){ ml.timeLas...
[ "@Override\n public int onStartCommand(Intent intent, int flags, int startId) {\n Log.d(TAG, \"onStartCommand: START\");\n\n SharedPreferences defaultSharedPreferences = PreferenceManager.getDefaultSharedPreferences(this);\n\n // only run if enabled\n boolean runService = defaultShare...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Creates an anchor for scripting. The anchor's href is set to javascript:;, based on the expectation that listeners will be added to the anchor.
public Anchor(String text) { this(text, "javascript:;"); }
[ "public static com.google.gwt.user.client.Element createAnchor() {\n return Document.get().createAnchorElement().cast();\n }", "public void setAnchor (String anchor) {\n this.anchor = anchor;\n }", "public void writeOpenAnchor(AnchorAttributes attributes) {\n\n }", "public SAnchor(String url,...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
/ renamed from: e
public final void mo80551e() { super.mo80551e(); C31383b bVar = this.f80531d; if (bVar != null) { bVar.mo81947a(); } }
[ "@Override protected void process (int e) {\n\t\t}", "@Override\n\tpublic void eee() {\n\t\t\n\t}", "public void e() throws c {\n for (i a2 : this.f13971e) {\n a2.e();\n }\n }", "@Override\n\tpublic void visitEnemigo(Enemigo e) {\n\n\t}", "public int e() {\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Returns true if field version is set (has been assigned a value) and false otherwise
public boolean isSetVersion() { return __isset_vector[__VERSION_ISSET_ID]; }
[ "public boolean hasVersion() {\n return ((bitField0_ & 0x00000008) != 0);\n }", "public boolean hasVersion() {\n return ((bitField0_ & 0x00000010) != 0);\n }", "@java.lang.Override\n\t\tpublic boolean hasVersion() {\n\t\t\treturn ((bitField0_ & 0x00000001) != 0);\n\t\t}", "boolean isVersio...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Computes the cross product between ab and ac vectors.
private float crossPoint(ImVector2f a, ImVector2f b, ImVector2f c) { ImVector2f ab = b.sub(a); ImVector2f ac = c.sub(a); return ab.getX() * ac.getY() - ab.getY() * ac.getX(); }
[ "static public Vector CrossProduct(Vector a , Vector b)\n {\n return new Vector( (a.Y * b.Z) - (b.Y * a.Z)\n ,(a.Z * b.X) - (b.Z * a.X)\n ,(a.X * b.Y) - (b.X * a.Y));\n }", "public static double[] crossProduct(double a[], double[] v) {\n return new...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
overriding the inherited display method
public void display(){ getPApplet().tint(255, 0, 0, 200); super.display(); // calling the inherited display method getPApplet().noTint();// turns off tint effect after the image is displayed }
[ "public abstract String display();", "@Override\n\tpublic void display() {\n\t\tSystem.out.println(\" DISPLAY TEXT \"+b.getDisplayText());\n\t}", "public void display() {\n System.out.println(this.toString());\n }", "public void display() {\n\t\tSystem.out.print(this.toString());\n\t}", "@Override...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
An interface implemented by datastructures for hypotheses (i.e. the clauses on the lefthandside of thetasubsumption).
public interface ClauseStructure { /** * initializes the data-structure for subsequent computation of theta-subsumption with example <em>clauseE</em> * * @param clauseE the example with which subsumoption will be computed * @return true if it was not proved without search th...
[ "static void generationalHypothesis() {\n\n }", "public interface ListAnalysis<T> extends Theory\n{\n\t/**\n\t * Gets the list interpretation of a list analysis\n\t * @return\n\t */\n\tList<T> getAnalysis();\n}", "public interface Equation<T> extends Predicate<T> {\n\n /**\n * Primary method allowing ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Searches the parameters for the ENABLED flag.
public boolean isEnabled() { return getBooleanParameter(PARAMETER_ENABLED); }
[ "private Map getACCOUNT_ENABLEDExampleParms(ScUserExample example) {\n Map parms = new HashMap();\n switch (example.getAccountEnabled_Indicator()) {\n case ScUserExample.EXAMPLE_NULL:\n if (example.isCombineTypeOr()) {\n parms.put(\"OR_ACCOUNT_ENABLED_NULL\", \"Y\");\n...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Instantiates a new Ais position.
public AisPosition() {}
[ "public Position() {\n this(ForsythEdwardsNotation.STARTING_POSITION);\n }", "public Position() {\n\t\tx=0;\n\t\ty=0;\n\t\tis_const = false;\n\t}", "public Position(int a, int b) {\n x = a;\n y = b;\n }", "public StartingPosition() {\n addSequential(new MoveArm(440));\n }"...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Calls saveArrayListToFile to save all Received messages
public void saveReceivedMessages(List<Message<String>> receivedMessages, String filename, String username) { try { saveArrayListToFile(receivedMessages, filename, username); } catch (IOException e) { e.printStackTrace(); Alert alert = new Alert(Alert.AlertType.ERROR);...
[ "public void saveMails() {\n Date date = new Date();\n\n try {\n BufferedWriter file = new BufferedWriter(new FileWriter(path + \"/mails_\" + date.toString() + \".txt\", true));\n for (Mail mail : mails) {\n file.write(mail.getOutput().toString());\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
TODO Autogenerated method stub
@Override public List<User> selectAllUser() { return userMapper.selectAllUser(); }
[ "@Override\n }", "@Override\n\t\t\t\tpublic void pintate() {\n\t\t\t\t\t\n\t\t\t\t}", "@Override\n public void extornar() {\n \n }", "@Override\r\n\tpublic void hablar() {\n\t\t\r\n\t}", "@Override\n\t\tpublic void kayit1() {\n\t\t\t\n\t\t}", "@Override\r\n\tpublic void wydaj() {\n...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Now we have to inform the adapter about the new list filtered
@Override protected boolean publishResults2(CharSequence constraint, FilterResults results) { if (results.count == 0) { adapterFilterTalkbalk.removeAllItems(); } else { synchronized (mLock) { if (results.values instanceof List) { //noinspection unchecked return adapterFilterTalkbalk.setItems...
[ "void updateFilteredListToShowAllWithoutCompleted();", "public void filterList(ArrayList<MosqueData> filteredList) {\n modelList = filteredList;\n notifyDataSetChanged();\n }", "public void setFilter(ArrayList<PerfilBreve> newList){\n listaObjetos = new ArrayList<PerfilBreve>();\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
picture String url????? This will be used only by the MyCreator
public Item(Parcel source) { /* * Reconstruct from the parcel */ Log.d("Item", "Item(Parcel source): time to put back parcel data"); latitude = source.readDouble(); longitude = source.readDouble(); author = source.readString(); category = source.readStri...
[ "String getImageURL();", "String getImgUrl();", "public void setPicture(String string) {\n\t\tpicture = string;\n\t}", "String targetImage(String url) {\n if (url.startsWith(\"http//imgur.com/\")) {\n StringBuffer temp = new StringBuffer(url);\n temp.append(\".jpg\");\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Default constructor for serialization
protected AbstractField() { }
[ "private Serializer() {\n }", "public ResultSequenceSerializer() {\n\t}", "public SerializedDataManager() {\n\t}", "public RollbarSerializer() {\n this(false);\n }", "public Serializer() {\n this(Witness.class);\n }", "public BPlusTree() {\n //Pedro -- I need an empty...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Set the JDBC DataSource that this instance should manage transactions for. This will typically be a locally defined DataSource, for example a Jakarta Commons DBCP connection pool. Alternatively, you can also drive transactions for a nonXA J2EE DataSource fetched from JNDI. For an XA DataSource, use JtaTransactionManage...
public void setDataSource(DataSource dataSource) { if (dataSource instanceof TransactionAwareDataSourceProxy) { // If we got a TransactionAwareDataSourceProxy, we need to perform transactions // for its underlying target DataSource, else data access code won't see // properly exposed transactions (i.e. trans...
[ "public void setDataSource(DataSource dataSource) throws SQLException {\n DbCachingJobServiceClassLoaderStrategy.prepareDataSource(dataSource);\n this.dataSource = dataSource;\n }", "public TransactionAwareDataSourceProxy(DataSource targetDataSource) {\n\t\tsuper(targetDataSource);\n\t}", "public void se...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
/ Remove a member from the list
public void removeMember(Member mem) { memberList.remove(mem); }
[ "void removeMember(ILDModelObject member);", "void removeMemberById(long member);", "public void removeMember(User member);", "public synchronized void removeMember(String name) {\n\n\t\tif(this.memberList.contains(name))\n\t\t{\n\n\t\t\tint rinaAddr = this.nameToAddr.get(name);\n\n\t\t\tthis.memberList.remov...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
This method was generated by MyBatis Generator. This method corresponds to the database table ship_order_source
public boolean isDistinct() { return distinct; }
[ "protected Source createOrderDetailSource() {\r\n\t\tList<Field> fields = new ArrayList<Field>();\r\n\t\tField field1 = new Field(\"OrderID\", \"OrderID\", \"\",\r\n\t\t\t\tNativeDataTypes.FlatFile.INT, \"10\", \"0\",\r\n\t\t\t\tFieldKeyType.FOREIGN_KEY, FieldType.SOURCE, false);\r\n\t\tfields.add(field1);\r\n\r\n\...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
O(nlogn) time | O(1) space
public static int minimumWaitingTimeConstantSpace(int[] queries) { Arrays.sort(queries); int totalWait = 0; for (int i = 0; i < queries.length; i++) { int duration = queries[i]; totalWait = totalWait + duration * (queries.length - 1 - i); } // Write yo...
[ "for (int i = 1; i <= n; i++) {\n for(int j = 1; j <= n; j++) {\n // constant time code here\n }\n }", "public static int BigO(int[] list) {\n return list[0]; // We can see that the function executes only one operation\n // The efficiency is Big O of 1 or ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
To get list of countries names
public List<String> getCurrencyNames() { return currency.values().stream() .sorted((currency1, currency2) -> currency1.toLowerCase().compareTo(currency2.toLowerCase())) .collect(Collectors.toList()); }
[ "public List <String> getCountryNames() {\n\t\tList<String> countryList = Arrays.asList(\"Maxico\", \"Russia\", \"USA\",\"India\",\"Canada\");\n\t\treturn countryList;\n\t}", "public List<String> getListOfAllCountries();", "public String[] getContinentNamesForCountries() {\r\n\t\tString[] names = new String[ris...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Returns the sole instance of this class.
public static IconFactory getInstance() { return soleInstance; }
[ "public Object getInstance() {\n\t\treturn this.instance;\n\t}", "public static Instance getInstance() {\n if(null == instance) {\n instance = new Instance();\n }\n return instance;\n }", "public static synchronized Instance getInstance() {\n return instance;\n }", "publ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Test case number: 2 /Coverage entropy=1.6094379124341005
@Test(timeout = 4000) public void test02() throws Throwable { OutputFormat outputFormat0 = new OutputFormat("C^lu^q 5B|"); outputFormat0.setLineSeparator("3Ur%wR]{*5z$d{"); String[] stringArray0 = new String[9]; stringArray0[0] = "N Vtj|_Qd@)~+}1wLoF"; stringArray0[1] = "N Vtj|_Qd@)~+}...
[ "@Test(timeout = 4000)\n public void test147() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getStructure();\n Evaluation evaluation0 = new Evaluation(instances0, (CostMatrix) null);\n String string0 = ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
User repository for CRUD operations.
public interface UserRepository extends JpaRepository<User,Long> { Optional<User> findByUsername(String username); // @Query(value="select u from User u where u.username = :username") // public User findByUsername(@Param("username")String username); }
[ "public interface UserRepository {\n \n\tpublic User create(User user);\n\t\n\tpublic User findUser(String username, String password);\n\n\tpublic User findByUserName(String username);\n\n\tpublic User findByID(String userId);\n}", "public interface UserRepository {\n List<User> getAllUsers();\n void addU...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
TODO Autogenerated method stub
@Override protected void onDraw(Canvas canvas) { super.onDraw(canvas); if (data != null) { angle = 360 / data.length; p.setStrokeWidth(4); // 把画布的坐标轴的中心一直屏幕中间 canvas.translate(getWidth() / 2, getHeight() / 2); radius = getWidth() / 2 * 3 / 4; for (int i = 0; i < data.length; i++) { BeanPoint ...
[ "@Override\n }", "@Override\n\t\t\t\tpublic void pintate() {\n\t\t\t\t\t\n\t\t\t\t}", "@Override\n public void extornar() {\n \n }", "@Override\r\n\tpublic void hablar() {\n\t\t\r\n\t}", "@Override\n\t\tpublic void kayit1() {\n\t\t\t\n\t\t}", "@Override\r\n\tpublic void wydaj() {\n...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Performs synchronization of existent users and groups.
public LdapBatchDto synchronizeExistingLdapUsers(LdapBatchDto batchInfo, boolean collectIgnoredUsers) throws AmbariException { LOG.trace("Synchronize Existing LDAP users..."); final Map<String, User> internalUsersMap = getInternalUsers(); for (User user : internalUsersMap.values()) { if (user.isLdapU...
[ "public void syncUsers() {\n // Run through the entire list of users and set up our sync group.\n for (Object userObj : yahooSession.getRoster().toArray()) {\n YahooUser user = (YahooUser)userObj;\n PseudoRosterItem rosterItem = pseudoRoster.getItem(user.getId());\n St...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
optional uint32 BandWidth = 5;
public boolean hasBandWidth() { return ((bitField0_ & 0x00000010) == 0x00000010); }
[ "public double getBandwidthConst();", "public int bitRate()\n{\n switch(getSamplesPerSecond()/5000) {\n case 1: return BitRate5k; case 2: return BitRate11k;\n case 4: return BitRate22k; case 8: return BitRate44k;\n default: return BitRateUndefined;\n }\n}", "@DISPID(1026) //= 0x402. T...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Returns the world object public method allows access from the outside.
public World getWorld() { return world; }
[ "public abstract boolean getPublic();", "boolean getIsMemberAccess();", "boolean hasMyPublic();", "public boolean restrictedToWorld() {\n\t\treturn getBooleanSetting(\"general.restrictedToWorld\") || restrictedToRegion();\n\t}", "boolean getIsAccessible()\n {\n return isAccessible;\n }", "public bool...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
repeated .dzhyun.KXian Data = 2;
public java.util.List<? extends com.dzhyun.proto.DzhyunGupiaolianxu.KXianOrBuilder> getDataOrBuilderList() { if (dataBuilder_ != null) { return dataBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(data_); } }
[ "zzqg mo2820o();", "public void mo1381a(kn knVar) {\n }", "@Override\n\tpublic void yaz1() {\n\t\t\n\t}", "public void Kemarau()\n // ngurangin hp tumbuhan 10%, nambahin turn unit charging manusia 1, gerah ceritanya\n {\n SearchAttack();\n int j =0;\n for (int idx=0; idx<Xset...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Sets the option id.
public void setOptionId(String optionId) { this.optionId = optionId; }
[ "void setId(int id) {\n\t\t\n\t\tthis.id = id;\n\t}", "void setId(String id) {\n _id = id;\n }", "public void setId(String id)\r\n/* 61: */ {\r\n/* 62:128 */ super.setId(id);\r\n/* 63:129 */ this.setIdCalled = true;\r\n/* 64: */ }", "public void setId(Object id) {\n\t\tthis.identific...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
TODO Autogenerated method stub
@Override public void onSuccess() { view.navigateToNext(); view.hideProgress(); }
[ "@Override\n }", "@Override\n\t\t\t\tpublic void pintate() {\n\t\t\t\t\t\n\t\t\t\t}", "@Override\n public void extornar() {\n \n }", "@Override\r\n\tpublic void hablar() {\n\t\t\r\n\t}", "@Override\n\t\tpublic void kayit1() {\n\t\t\t\n\t\t}", "@Override\r\n\tpublic void wydaj() {\n...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
WHERE lastName LIKE %? AND id < ?
List<Person> getByLastNameEndingWithAndIdLessThan(String lastName,Integer id);
[ "List<Person> getByNameStartingWithAndIdLessThan(String name, Integer id);", "List<StudentEntity> findByNameStartingWithAndAgeLessThanEqualOrderByIdDesc(String name, int age);", "List<Person> findByFirstNameLike(String first);", "List<Ninja> findByfirstNameContaining(String search);", "List<Person> findByLa...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Stops the TcpServer running on a given host and port
public void stop(HostAndPort hostAndPort) throws java.net.ConnectException { try { ShutdownRequest request = new ShutdownRequest(); requestToServer(hostAndPort, request, DEFAULT_REQUEST_TIMEOUT, true); } catch (java.net.ConnectException ce) { // must not be running, rethrow so the caller can h...
[ "void remotelyStopServer() throws RemoteException;", "public void stopServer() {\n\t\t//Checks if the server is running\n\t\tif(this.socket!=null&&!this.socket.isClosed())\n\t\t\ttry{\n\t\t\t\tthis.socket.close();\n\t\t\t}catch(IOException e){}\n\t\tthis.socket=null;\n\t}", "public void stop() {\n\t\tthis.serve...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
TODO Autogenerated method stub
public void saveBook(Books books) { bookCustomerdao.saveBook(books); }
[ "@Override\n }", "@Override\n\t\t\t\tpublic void pintate() {\n\t\t\t\t\t\n\t\t\t\t}", "@Override\n public void extornar() {\n \n }", "@Override\r\n\tpublic void hablar() {\n\t\t\r\n\t}", "@Override\n\t\tpublic void kayit1() {\n\t\t\t\n\t\t}", "@Override\r\n\tpublic void wydaj() {\n...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
ID of the instance to start. To get the instance ID, use a [InstanceService.List] request. string instance_id = 1 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "&lt;=50"];
public Builder clearInstanceId() { instanceId_ = getDefaultInstance().getInstanceId(); onChanged(); return this; }
[ "public void setInstanceid(Long instanceid) {\n this.instanceid = instanceid;\n }", "public String getInstanceID(){\n\t\treturn instanceID;\n\t}", "public Long getInstanceid() {\n return instanceid;\n }", "@NotNull\n @Generated\n @Selector(\"instanceID\")\n public native String in...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
TODO Autogenerated method stub
@SuppressWarnings("hiding") @Override public <T> List<T> findWithNamedQuery(String queryName, Map<String, Object> params) { return null; }
[ "@Override\n }", "@Override\n\t\t\t\tpublic void pintate() {\n\t\t\t\t\t\n\t\t\t\t}", "@Override\n public void extornar() {\n \n }", "@Override\r\n\tpublic void hablar() {\n\t\t\r\n\t}", "@Override\n\t\tpublic void kayit1() {\n\t\t\t\n\t\t}", "@Override\r\n\tpublic void wydaj() {\n...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
returns an accurate value of the approximation of the number by using doubles
public double floatValue() { return ((double) _num / _denom); }
[ "double doubleTheValue(double input) {\n\treturn input*2;\n}", "double getValue244();", "public void Squared() {\r\n\t\tmyDouble = myDouble * myDouble;\r\n\t}", "public double doubleValue() {\n/* 448 */ return this.numerator / this.denominator;\n/* */ }", "double getValue136();", "public double ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
using 999 as undefined/error Default to initialize to the ERROR TokenType
public Token() { type = TokenType.ERROR; op = '$'; val = -999; }
[ "ErrorType(int i) {\n errorType = i;\n }", "private void unexpectedTokenError() {\n errors.add(\"Unexpected token type: \" + lookahead.getType().name());\n result = null;\n }", "public static Token errorToken(String lex, int lineNo, int colNo)\r\n {return new Token(Tokens.TUNDF, le...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Get the proxied ServiceDomain.
public ServiceDomain getDomain() { return _domain; }
[ "protected SSDomain getSSDomainProxy() {\n\t\t\n\t\treturn (SSDomain) getServiceProxy(SSDomainPortBindingStub.class, SS_SERVICE_ENDPOINT_URL);\n\t\t\n\t}", "public Domain getDomain() {\n return _domain;\n }", "public Domain getDomain()\n {\n return domain;\n }", "public Domain getDomain()\n\t{\n\...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }