query
stringlengths
8
1.54M
document
stringlengths
9
312k
negatives
listlengths
19
20
metadata
dict
Sets the telephone value for this Address.
public void setTelephone(java.lang.String telephone) { this.telephone = telephone; }
[ "public void setTelephone(com.iot.data.schema.TelephoneData value) {\n this.telephone = value;\n }", "public void setTelphone(String value) {\n setAttributeInternal(TELPHONE, value);\n }", "public void setTelephone(String telephone) {\n this.telephone = telephone;\n }", "public void se...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Clears the notes from this annotation and replaces them with those from the given set. The set cannot be null.
public void setNoteSet(Set<Note> notes) throws ChangeVetoException;
[ "public void setNotes(Set<INote> notes) {\r\n this.no = new NoteOperations(notes);\r\n\r\n // the total beats onscreen.\r\n this.totalBeats = no.pieceLength();\r\n\r\n this.setPreferredSize(getPreferredSize());\r\n }", "public void clearNotes(){\n \t\tnotes.clear();\n \t}", "public void clearNotes(...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Delete the domicilioUsuario by id.
public void delete(Long id) { log.debug("Request to delete DomicilioUsuario : {}", id); domicilioUsuarioRepository.deleteById(id); }
[ "public Usuario remove(long usuarioId) throws NoSuchUsuarioException;", "void eliminarPedidosUsuario(String idUsuario);", "@Override\n public void delete(Long id) {\n log.debug(\"Request to delete FiestaUser : {}\", id);\n fiestaUserRepository.delete(id);\n }", "public void delete(final Us...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Failure response .axelar.tss.tofnd.v1beta1.MessageOut.CriminalList criminals = 2;
axelar.tss.tofnd.v1beta1.Tofnd.MessageOut.CriminalListOrBuilder getCriminalsOrBuilder();
[ "axelar.tss.tofnd.v1beta1.Tofnd.MessageOut.CriminalList getCriminals();", "axelar.tss.tofnd.v1beta1.Tofnd.MessageOut.CriminalList.Criminal getCriminals(int index);", "public axelar.tss.tofnd.v1beta1.Tofnd.MessageOut.CriminalList.CriminalOrBuilder getCriminalsOrBuilder(\n int index) {\n if (c...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
optional int32 sending_major_fragment_id = 4;
@java.lang.Override public int getSendingMajorFragmentId() { return sendingMajorFragmentId_; }
[ "int getSendingMajorFragmentId();", "int getSendingMinorFragmentId();", "int getReceivingMajorFragmentId();", "@java.lang.Override\n public int getSendingMajorFragmentId() {\n return sendingMajorFragmentId_;\n }", "boolean hasSendingMajorFragmentId();", "@java.lang.Override\n public int getS...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
$ANTLR end "rule__Categoria__Group__0__Impl" $ANTLR start "rule__Categoria__Group__1" ../org.xtext.catalogo.ui/srcgen/org/xtext/ui/contentassist/antlr/internal/InternalCatalogo.g:1800:1: rule__Categoria__Group__1 : rule__Categoria__Group__1__Impl rule__Categoria__Group__2 ;
public final void rule__Categoria__Group__1() throws RecognitionException { int stackSize = keepStackSize(); try { // ../org.xtext.catalogo.ui/src-gen/org/xtext/ui/contentassist/antlr/internal/InternalCatalogo.g:1804:1: ( rule__Categoria__Group__1__Impl rule__Categoria__Group...
[ "public final void rule__Categoria__Group__2__Impl() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.xtext.catalogo.ui/src-gen/org/xtext/ui/contentassist/antlr/internal/InternalCatalogo.g:1847:1: ( ( ( rule__Categoria__Group_2__0 )? )...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Check whether the value in the node of the SSA graph is a region constant.
private boolean RegionConst(SsaGraphNode name,BasicBlk header){ //env.output.print(" is const? : "+name+" header : blk"+header.id); if(isConst(name)){ env.println("OSR : "+name+" is region constant",THR); //env.output.println(" true 1"); return(true); } switch(name.opCode){ /** ...
[ "private boolean isConst(SsaGraphNode node){\n switch(node.opCode){\n case Op.INTCONST:\n case Op.FLOATCONST:\n case Op.FRAME:\n case Op.STATIC:{\n //env.println(\"OSR : \"+node+\" is constant\",THR);\n return(true);\n }\n }\n\n return(false);\n }", "public abstrac...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Requests to follow of the Web Feed represented by the provided identifier.
public void followFromId(String webFeedId, Callback<FollowResults> callback) { // TODO(crbug/1152592): replace mock implementation. boolean success = sRandom.nextFloat() > 0.1; PostTask.postTask( UiThreadTaskTraits.DEFAULT, () -> callback.onResult(new FollowResults(success))); ...
[ "public void follow(int followerId, int followeeId) {\n\n }", "public void sendFollowingRequest (String username) {\r\n followingManager.sendFollowingRequest(username);\r\n }", "public void loadAndFollow() {\n if (isRunning) {\n driver.get(BASE_URL + \"/explore/people/suggested/\");...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
The data point menu label options of a dashboard.
public DashboardPublishOptions withDataPointMenuLabelOption(DataPointMenuLabelOption dataPointMenuLabelOption) { setDataPointMenuLabelOption(dataPointMenuLabelOption); return this; }
[ "public DataPointMenuLabelOption getDataPointMenuLabelOption() {\n return this.dataPointMenuLabelOption;\n }", "public void setDataPointMenuLabelOption(DataPointMenuLabelOption dataPointMenuLabelOption) {\n this.dataPointMenuLabelOption = dataPointMenuLabelOption;\n }", "public void setMenuL...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Closes the GUI and starts a new game if again == true
private void finishGame(boolean again){ dispose(); if(again) Util.showNewGameDialog("Choose player names:", cantStop.getGameBoard().getPlayers()); }
[ "public static void endGame() {\r\n called = false;\r\n folded = false;\r\n betted = false;\r\n takingTurn = false;\r\n resetDealing();\r\n resetFlopDealing();\r\n resetTurnDealing();\r\n resetRiverDealing();\r\n cpuDealing = false;\r\n currentPo...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Initialize panel for the deck
private void initPanelDeck() { gsp.panelDeck = gsp.createPanel(100, 50, 50, 50, 0, 0, 400, 350); gsp.buttonDeck = new JButton(); gsp.setImageIcon("Deck", gsp.buttonDeck); gsp.labelLastCard = new JLabel(); gsp.updateLastCardView(); gsp.panelDeck.add(gsp.buttonDeck); gsp.panelDeck.add(gsp...
[ "public ViewDeckMenu() {\n initComponents();\n showCards();\n selectedCardButtons = new ArrayList<JButton>();\n }", "private void initDecks() {\n\t\tDeck[] decks = new Deck[2];\n\t\tdecks[0] = charDeck;\n\t\tdecks[1] = mainDeck;\n\n\t\tfor (int i = 0; i < decks.length; i++) {\n\t\t\tDeck d...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
/ Test Case 02 Test Case Name TC_02_verify_Registration_ValidData Test Objective: To verify user should be able to register in system with valid data email address
@Test public void TC_02_verify_Registration_ValidData() { homePgObj = new Page_Home(driver); regPgObj = homePgObj.click_RegistrationLink(); // Step 1: Verify the registration page is displayed flag = regPgObj.registrationPgDisplay(); // Step 2: Enter valid registration details including f...
[ "@Test\r\n\tpublic void TC_08_verify_Existing_Email_Address() {\r\n\r\n\t\thomePgObj = new Page_Home(driver);\r\n\t\tregPgObj = homePgObj.click_RegistrationLink();\r\n\t\t\r\n\t\t// Step 1: Verify the registration page is displayed\r\n\t\t\r\n\t\tflag = regPgObj.registrationPgDisplay();\r\n\t\tAssert.assertTrue(fla...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Adds all texts to the test set.
public void addAllTest(Collection<Text> texts) { testSet.addAll(texts); }
[ "public void addTest(Text text) {\n testSet.add(text);\n }", "@Test\n public void testAppendText() {\n LOG.info(\"appendText\");\n Element element = null;\n int i;\n for (i = 0; i < plainText.length; i++) {\n element = new OdfTextParagraph(dom);\n OdfWhitespaceProcessor.appendText...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Gets the _BIC_ZBMMC value for this _BIC_AZMDYX0000.
public java.lang.String get_BIC_ZBMMC() { return _BIC_ZBMMC; }
[ "public void set_BIC_ZBMMC(java.lang.String _BIC_ZBMMC) {\r\n this._BIC_ZBMMC = _BIC_ZBMMC;\r\n }", "public java.lang.String get_BIC_ZBMBM() {\r\n return _BIC_ZBMBM;\r\n }", "public java.lang.String get_BIC_ZGZMC() {\r\n return _BIC_ZGZMC;\r\n }", "public java.lang.String get_BIC...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Unsets the "furtherRelations" element
public void unsetFurtherRelations() { synchronized (monitor()) { check_orphaned(); get_store().remove_element(FURTHERRELATIONS$10, 0); } }
[ "void unsetFurtherRelations();", "void unsetRelations();", "public void removeAllRelation()\n {\n _relationList.removeAllElements();\n }", "public void unsetRel()\n {\n synchronized (monitor())\n {\n check_orphaned();\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Create a file observer filter that will filter out any events not for the provided file extension.
public FileObserverFilter(FileObserverFilterType aFilterType, String[] extension) { assert (aFilterType == FileObserverFilterType.EXTENSION); setFilterType(aFilterType); setFilter(extension); }
[ "protected FilenameFilter createFileNameFilter(String fileExtension) {\n return new FilenameFilter() {\n @Override\n public boolean accept(File dir, String name) {\n return name.endsWith(fileExtension);\n }\n };\n }", "public AXLFileFilter(String ex...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Sets the depreciationBatchDao attribute value.
public void setDepreciationBatchDao(DepreciationBatchDao depreciationBatchDao) { this.depreciationBatchDao = depreciationBatchDao; }
[ "public DepreciationBatchDao getDepreciationBatchDao() {\n return depreciationBatchDao;\n }", "void setBatchId(long batchId);", "public void setBatch(Integer batch) {\n this.batch = batch;\n }", "public void setBatch(Boolean batch) {\n\t\tthis.batch = batch;\n\t\tthis.handleConfig(\"batch\...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
factory method to create a deep copy of RemovePaymentChange
@Nullable public static RemovePaymentChange deepCopy(@Nullable final RemovePaymentChange template) { if (template == null) { return null; } RemovePaymentChangeImpl instance = new RemovePaymentChangeImpl(); instance.setChange(template.getChange()); instance.setPrev...
[ "public static RemovePaymentChangeBuilder builder() {\n return RemovePaymentChangeBuilder.of();\n }", "public PropertyChangeDto clonePropertyChange();", "public static RemovePaymentChange of(final RemovePaymentChange template) {\n RemovePaymentChangeImpl instance = new RemovePaymentChangeImpl()...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
System.out.println("join..."); System.out.println("before joined..."+firstVec); System.out.println("the joined vector:"+lastVec);
public Vector<Instance> joined(Vector<Instance> firstVec, Vector<Instance> lastVec){ for(int i=0;i<lastVec.size();i++){ boolean isReplicated=false; for(int j=0;j<firstVec.size();j++){ if(lastVec.elementAt(i).getID()==firstVec.elementAt(j).getID()){ isReplicated=true; break; } } ...
[ "private String join(VertexList vl, String join) {\n String s = \"\";\n VertexList current = vl;\n while (current != null) {\n s += vertices[current.target].name;\n current = current.next;\n if (current != null) s += join;\n } \n return s;\n }"...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Stored info type version state. Readonly, updated by the system during dictionary creation. .google.privacy.dlp.v2.StoredInfoTypeState state = 3;
@java.lang.Override public com.google.privacy.dlp.v2.StoredInfoTypeState getState() { com.google.privacy.dlp.v2.StoredInfoTypeState result = com.google.privacy.dlp.v2.StoredInfoTypeState.forNumber(state_); return result == null ? com.google.privacy.dlp.v2.StoredInfoTypeState.UNRECOGNIZED : res...
[ "@java.lang.Override\n public com.google.privacy.dlp.v2.StoredInfoTypeState getState() {\n com.google.privacy.dlp.v2.StoredInfoTypeState result =\n com.google.privacy.dlp.v2.StoredInfoTypeState.forNumber(state_);\n return result == null ? com.google.privacy.dlp.v2.StoredInfoTypeState.UNRECOGNIZED : re...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Devuelve si el tiempo se ha consumido por completo.
public boolean tiempoConsumido() { return this.unidadesDeTiempoUsadas >= this.intevaloDeTiempo; }
[ "public boolean verificaTrasicaoVazia(){\n\n //verifica se dentro das transicoes tem alguma saindo com valor vazio;\n for (int i = 0; i < this.transicoes.size(); i++) {\n if(this.transicoes.get(i).simbolo.equals(Automato_Servico.valorVazio)){\n return true;\n }\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
uppercase first letter of words in text
public Text uppercaseFirstLetters(Text text) throws UppercaseFirstLettersException { logger.info(LocaleHelper.getLocalizedString(LocaleHelper.START_UPPERCASE_WORDS)); Text uppercaseText; try { uppercaseText = text.uppercaseFirstLetters(); } catch(Exception e) { ...
[ "public String firstLetterToUpper(String text) {\n\t\ttry {\n\t\t\tString firstLetter = text.substring(0, 1);\n\t\t\tString cFirstLetter = firstLetter.toUpperCase();\n\t\t\tString firstLetterToUpper = text.replaceFirst(firstLetter,\n\t\t\t\t\tcFirstLetter);\n\t\t\treturn firstLetterToUpper;\n\t\t} catch (Exception ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Checks if injection is enabled on the given service.
boolean isInjectionEnabled(ServiceReference reference);
[ "boolean isInjectionEnabled(Bundle bundle);", "boolean isServiceEnabled(AGServiceDescription service)\n throws IOException, SoapException;", "public boolean isServiceRestricted(S service);", "private void checkActiveService(Integer serviceId) {\n checkArgument(servicesById.containsKey(serviceId),\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
CurrentAggregatedModelData is needed to update the view from models
AggregatedModelData getCurrentAggregatedModelData();
[ "@Override\n public void updateDataModel() {\n }", "public void refreshModel() {\n sharedModel.refresh();\n }", "@Override\n public void update(BaseViewModel model) {\n if(mView != null){\n mView.getAdapter().clearData();\n mView.getAdapter().addData(getViewMo...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Retrieves a document based on its document list and folder path in the document hierarchy. MozuClient mozuClient=GetTreeDocumentClient(dataViewMode, documentListName, documentName); client.setBaseAddress(url); client.executeRequest(); Document document = client.Result();
public static MozuClient<com.mozu.api.contracts.content.Document> getTreeDocumentClient(com.mozu.api.DataViewMode dataViewMode, String documentListName, String documentName) throws Exception { MozuUrl url = com.mozu.api.urls.content.documentlists.DocumentTreeUrl.getTreeDocumentUrl(documentListName, documentName); ...
[ "public static MozuClient<java.io.InputStream> getTreeDocumentContentClient(com.mozu.api.DataViewMode dataViewMode, String documentListName, String documentName) throws Exception\n\t{\n\t\tMozuUrl url = com.mozu.api.urls.content.documentlists.DocumentTreeUrl.getTreeDocumentContentUrl(documentListName, documentName)...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Define el valor de la propiedad codigoClienteSAP.
public void setCodigoClienteSAP(long value) { this.codigoClienteSAP = value; }
[ "public void setCodCliente(String codCliente) {\n this.codCliente = codCliente;\n }", "public long getCodigoClienteSAP() {\n return codigoClienteSAP;\n }", "public String getCodCliente() {\n return codCliente;\n }", "public void setCodCli(ICliente codigo);", "public String getC...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Checks if the list of visits passed in are consecutive
boolean areConsecutiveVisits(List<Integer> visits, Patient patient);
[ "private boolean recursiveHasConsecutives(int[] list, int count)\r\n {\r\n // Terminating condition for recursive method. If the count reaches 2\r\n // then we have reached the end (or in this case beginning) of the \r\n // array\r\n if(count == 2)\r\n {\r\n // First...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Gets the level high score object of the specified level.
public LevelHighScore getLevelHighScore(int level) { for (LevelHighScore lhs : levelHighScores) { if (lhs.getLevel() == level) { return lhs; } } return null; }
[ "public int getHighScoreOfLevel(int level) {\n\t\tfor (LevelHighScore lhs : levelHighScores) {\n\t\t\tif (lhs.getLevel() == level) {\n\t\t\t\treturn lhs.getHighScore();\n\t\t\t}\n\t\t}\n\n\t\treturn 0;\n\t}", "String getHighScoresForLevel(int levelId);", "public Highscore getHighscoreForLevel(int levelNumber)\r...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
This method was generated by MyBatis Generator. This method sets the value of the database column g_person.PERSON_ADDRESS
public void setPersonAddress(String personAddress) { this.personAddress = personAddress == null ? null : personAddress.trim(); }
[ "public void setIdPersonAddress(int value) {\n this.idPersonAddress = value;\n }", "public void setContactAddress(entity.Address value);", "public void setAddress(String addr)\r\n {\r\n if(studentNumber != 0)\r\n {\r\n address = addr;\r\n }\r\n }", "public Strin...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
This method was generated by MyBatis Generator. This method sets the value of the database column proportionmetrics.gradebandid
public void setGradeBandId(Long gradeBandId) { this.gradeBandId = gradeBandId; }
[ "public Long getGradeBandId() {\n\t\treturn gradeBandId;\n\t}", "public void setGrade(int grade);", "public final void setSamplingPercentage(java.math.BigDecimal samplingpercentage)\n\t{\n\t\tsetSamplingPercentage(getContext(), samplingpercentage);\n\t}", "public void setIdGrade(Integer idGrade) {\n\t\tthis.i...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
METHODS Tick method for the player. Moves the player up, down, left or right depending on the input that comes from the keyboard.
@Override public void tick() { if(game.getKeyManager().up) { moveUp(); } if(game.getKeyManager().down) { moveDown(); } if(game.getKeyManager().right) { moveRight(); } if(game.getKeyManager().left) { moveLeft(); } score(); //calls score method hasKey(); //calls hasKey method hasHammer(...
[ "public void tick() {\n forward = keys[KeyEvent.VK_W];\n backward = keys[KeyEvent.VK_S];\n left = keys[KeyEvent.VK_A];\n right = keys[KeyEvent.VK_D];\n shoot = keys[KeyEvent.VK_SPACE];\n forward2 = keys[KeyEvent.VK_UP];\n backward2 = keys[KeyEvent.VK_DOWN];\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
This method was generated by Apache iBATIS ibator. This method returns the value of the database column V_RP_WK_BRANCH_3G.SHO_SR_OUT
public Float getShoSrOut() { return shoSrOut; }
[ "public Float getShoSrOut() {\r\n return shoSrOut;\r\n }", "public String getRsv2() {\r\n return rsv2;\r\n }", "public String getRsv5() {\r\n return rsv5;\r\n }", "public String getOutPayNo() {\n return outPayNo;\n }", "public eu.aladdin_project.xsd.OperationResult getOut()...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
optional int32 isNew = 60;
public int getIsNew() { return isNew_; }
[ "public Integer getIsNew() {\n return isNew;\n }", "public void setIsNew(Integer isNew) {\n this.isNew = isNew;\n }", "@Override\n public final void setIsNew(final Boolean isNew) {\n //stub\n }", "public boolean isNewRecord() {\n\t\treturn (id == 0);\n\t}", "public void setNew();", ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
This method was generated by MyBatis Generator. This method returns the value of the database column TRSSETLMT_NIDC_DET.DEAL_NO
public BigDecimal getDEAL_NO() { return DEAL_NO; }
[ "public String getdNo() {\n return dNo;\n }", "public String getnomdudepartement() {\n AppModuleImpl am = (AppModuleImpl)this.getApplicationModule();\n ViewObjectImpl voimp = am.getDepartementView1();\n voimp.setWhereClause(\"Iddepartements = \"+getIddepartements());\n String...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Bezeichnung des Status "ToOrderStateID" .dstore.values.StringValue to_order_state = 10007;
io.dstore.values.StringValueOrBuilder getToOrderStateOrBuilder();
[ "io.dstore.values.StringValue getToOrderState();", "io.dstore.values.StringValue getFromOrderState();", "io.dstore.values.StringValueOrBuilder getFromOrderStateOrBuilder();", "io.dstore.values.IntegerValue getToOrderStateId();", "io.dstore.values.IntegerValue getFromOrderStateId();", "public io.dstore.val...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Tests method validateSubmission(submission) if submission contains activity diagram (no outputs will be returned).
public void testValidateSubmission() { UMLActivityDiagram activityDiagram = new UMLActivityDiagram(); ValidationOutput[] outputs = validator.validateSubmission(new Submission( new UMLUseCaseDiagram[0], new UMLActivityDiagram[]{activityDiagram})); //there must be no error outp...
[ "public void testValidateSubmissionIfNoActivityDiagrams() {\r\n ValidationOutput[] outputs = validator.validateSubmission(new Submission(\r\n new UMLUseCaseDiagram[0], new UMLActivityDiagram[0]));\r\n //there must be one error output\r\n assertEquals(\"There must be 1 output.\", ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Sets a configuration file other than the default to be used. These files have a .cfg extension and are often found in archive or pvcsprop folders.
public void setConfig(File f) { config = f.toString(); }
[ "public void setConfigfile (File file)\n {\n _configfile = file;\n }", "public static void setConfigFileName(String cfg) {\n configFileName = cfg;\n }", "protected void setConfigFilePath(String configFilePath){\n this.configFilePath = configFilePath;\n }", "public void setConf...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
This method was generated by MyBatis Generator. This method sets the value of the database column sms_channel.sms_channel_id
public void setSmsChannelId(Long smsChannelId) { this.smsChannelId = smsChannelId; }
[ "public void setSmsChannelUserid(String smsChannelUserid) {\n this.smsChannelUserid = smsChannelUserid == null ? null : smsChannelUserid.trim();\n }", "public Long getSmsChannelId() {\n return smsChannelId;\n }", "public void setIdChannel( Long idChannel ) {\n this.idChannel = idChannel;\...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
$ANTLR end "rule__XCasePart__Group_1__1" $ANTLR start "rule__XCasePart__Group_1__1__Impl" ../org.xtext.example.helloxcore.ui/srcgen/org/xtext/example/helloxcore/ui/contentassist/antlr/internal/InternalHelloXcore.g:9814:1: rule__XCasePart__Group_1__1__Impl : ( ( rule__XCasePart__CaseAssignment_1_1 ) ) ;
public final void rule__XCasePart__Group_1__1__Impl() throws RecognitionException { int stackSize = keepStackSize(); try { // ../org.xtext.example.helloxcore.ui/src-gen/org/xtext/example/helloxcore/ui/contentassist/antlr/internal/InternalHelloXcore.g:9818:1: ( ( ( rule__XCase...
[ "public final void rule__XCasePart__Group__1__Impl() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.xtext.example.helloxcore.ui/src-gen/org/xtext/example/helloxcore/ui/contentassist/antlr/internal/InternalHelloXcore.g:9692:1: ( ( ( r...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Inserts link in the topology
boolean insertLink(Link link);
[ "edu.umich.icpsr.ddi.LinkType insertNewLink(int i);", "@SuppressWarnings(\"unchecked\")\n\tprotected void addLink(final T3 link) {\n\t\t// Actual link creation is in child classes, because creation of generic\n\t\t// types sucks\n\t\tthis.linkSet.add(link);\n\t\tfinal T1 srcSwitch = (T1) link.getSrcSwitch();\n\t\...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Triggered after updating the UI.
protected void onUIUpdated() { }
[ "protected void updateFinished()\n {\n // Do nothing by default;\n }", "public void updateUI() {\n\t\tsuper.updateUI();\n\t\taddClipboardHotkeys();\n\t}", "@Override\r\n\tpublic void update() {\r\n\t\tSystem.out.println(\"IQM: Updating GUI...\");\r\n\t\t// here, it does nothing\r\n\t}", "private...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Set the source file.
public void setSourceFile(File sourceFile) { _sourceFile=sourceFile; }
[ "public void set(File source) throws IOException {\r\n set(new FileInputStream(source));\r\n }", "public void setSourceFile(Path sourceFile) {\n this.sourceFile = sourceFile;\n }", "public void setSrc(File source) {\r\n if (!(source.exists())) {\r\n throw new BuildException(\"the presentat...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
This method is called every time a server voice channel's bitrate changes.
void onServerVoiceChannelChangeBitrate(ServerVoiceChannelChangeBitrateEvent event);
[ "@Override\r\n public void onBitrateUpdate(long bitrate) {\n }", "public void setBitrate(int bitrate) {\n this.bitrate = bitrate;\n }", "void onBufferedAmountChange(long l, NBMPeerConnection connection, DataChannel channel);", "T setAudioBitrate(int val);", "@Override\n public void on...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Creates a new dependency relation between parent and child.
void depend(int parentID, int childID){ check(parentID, childID); nodes_[childID].parent_ = parentID; nodes_[parentID].addChild(childID); }
[ "RelationalDependency createRelationalDependency();", "private TaskDependency createDependency(TaskDependency dependency, KDTask newTask) throws TaskDependencyException {\n\t\tTaskDependencyConstraint constraint = null;\n\t\tif (dependency != null) {\n\t\t\tconstraint = dependency.getConstraint();\n\t\t} else {\n...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Creates a G2StateCommands for a multiple connection application.
public CondensedG2StateCommands(ConnectionManager connectionMgr){ this(); setConnection(connectionMgr.getCurrentConnection()); contextChangedListener = new ContextChangedAdapter(); connectionMgr.addContextChangedListener(contextChangedListener); }
[ "public CondensedG2StateCommands(TwAccess connection){\n this();\n setConnection(connection);\n }", "protected void createCommandList(int nStates) { \n\t\tcommandList = (ArrayList<SystemCommand>[]) new ArrayList[nStates]; \n\t\tfor (int p=0; p<commandList.length; p++)\n\t\t\tcommandList[p] = new ArrayList<...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Reads NFC msg. Gets the INetAddress of the host and calls connectToHost
private void processIntent(Intent intent) { Parcelable[] rawMsgs = intent.getParcelableArrayExtra( NfcAdapter.EXTRA_NDEF_MESSAGES); // only one message sent during the beam NdefMessage msg = (NdefMessage) rawMsgs[0]; InetAddress inet = null; // record 0 contains t...
[ "public NetMessage read() throws IOException\n \t{\n \t\treturn NetMessage.newNetMessage(new DataInputStream(din));\n \t}", "public void processMsg(NdefMessage msg){\n\t\t\n //extract web server address and port from the message\n webServerAddr_ = new String(msg.getRecords()[0].getPayload());\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Returns true if number of seats > 0 , false otherwise
public boolean isSeatAvailable(){ if(this.numberOfSeats > 0){ return true; } return false; }
[ "private static boolean seatCheck(List<Integer> seats,int curSeat){\n if(seats.contains(curSeat))\n return false;\n return true;\n\n }", "private synchronized boolean seatsAvailabilityCheck(int numSeats) {\r\n\t\ttry {\r\n\t\t\t// if there are seats available, return immediately.\r\n\t...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Observes a sample. If the sample is true, returns the result value. If it is false, throws runtime exception.
public static RuntimeValue observe(RuntimeValue sample, RuntimeValue result) throws RuntimeException { if (isDiscreteBoolSample(sample)) { Boolean value = Observations.select(sample.getDiscreteBoolSample()); if (value) { return result; } else { ...
[ "public final Object getSample()\n { return(this.sample); }", "boolean isSampled();", "@NotNull\n public Sample getSample(int index) {\n if (((index >= samples.size()) || (index < 0)) || (samples.get(index) == null))\n return new Sample(\"out of range\", \"x\", \"x\", \"x\", \"x\", \"x\"...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Checks whether the specified esc sequence parameters form a bar code sequence. If so, it returns an EscBarcode object. If not, the object given as first parameter will be returned.
static public PrintDataPart getEscBarcode(PrintDataPart obj, int type, int subtype, int value, String escdata, boolean negated, boolean valueispresent, int mapmode) { if (type == 'R' && subtype == 0 && !negated && escdata != null) { EscBarcode esc = new EscBarcode(); try {...
[ "cl.nic.siiDte.TedBarcodeDocument.TedBarcode.Barcode getBarcode();", "java.lang.String getBarcode();", "cl.nic.siiDte.TedBarcodeDocument.TedBarcode getTedBarcode();", "Barcode getBarcode() {\n Barcode barcode = null;\n List<BarcodeGraphic> barcodeList = mGraphicOverlay.getGraphics();\n\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Check if the input collection contains a DE
private boolean hasDE(DECollection dec){ boolean status = false; Iterator<AbstractDrawableComponent> it = dec.getComponentIterator(); while( it.hasNext() ){ AbstractDrawableComponent adc = it.next(); if ( adc instanceof DrawableElement ) { status = true; break; } else if ( adc instanceof DECol...
[ "@Ignore\r\n @Test\r\n public void testContainsCollection() {\r\n System.out.println(\"containsCollection\");\r\n NumberCollection nc = null;\r\n NumberCollection instance = new NumberCollection();\r\n boolean expResult = false;\r\n boolean result = instance.containsCollecti...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
optional string tx_out_hash = 3;
public Builder setTxOutHash( java.lang.String value) { if (value == null) { throw new NullPointerException(); } txOutHash_ = value; onChanged(); return this; }
[ "java.lang.String getTxOutHash();", "java.lang.String getTxHash();", "public java.lang.String getTxOutHash() {\n java.lang.Object ref = txOutHash_;\n if (!(ref instanceof java.lang.String)) {\n com.google.protobuf.ByteString bs =\n (com.google.protobuf.ByteString) ref;\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Sets the create date of this person.
@Override public void setCreateDate(java.util.Date createDate) { _person.setCreateDate(createDate); }
[ "@Override\n public void setCreateDate(Date createDate);", "@Override\n\tpublic void setCreateDate(java.util.Date createDate) {\n\t\t_employee.setCreateDate(createDate);\n\t}", "@Override\n\tpublic void setCreateDate(java.util.Date createDate) {\n\t\t_esfTournament.setCreateDate(createDate);\n\t}", "void s...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
This method was generated by MyBatis Generator. This method returns the value of the database column ehr_contract.contract_type
public String getContractType() { return contractType; }
[ "public String getContractType() {\n return (String) getAttributeInternal(CONTRACTTYPE);\n }", "public void setContractType(String contractType) {\n this.contractType = contractType;\n }", "public String getContractBussinessType() {\n return contractBussinessType;\n }", "public BigDeci...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Pop will delete the first element and return true or false depending if it was able to delete it.
public boolean pop();
[ "public boolean deleteLast() {\r\n \tif(isEmpty())\r\n \t\treturn false;\r\n \tsize--;\r\n \tif(rear==0)\r\n \t\trear=queue.length-1;\r\n \telse {\r\n \t\trear=rear-1;\r\n \t}\r\n \treturn true;\r\n }", "public boolean deleteFront() {\n if (isEmpty()) {\n re...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
The best TimeZone to use, as resolved by the TimeZoneResolver.
public TimeZone getTimeZoneToUse();
[ "public static TimeZone getPreferredTimeZone(String userId)\n\t{\n\t\tTimeZone rv = null;\n\n\t\tif (userId == null) userId = SessionManager.getCurrentSessionUserId();\n\t\tif (userId != null)\n\t\t{\n\t\t\tPreferences prefs = PreferencesService.getPreferences(userId);\n\t\t\tResourceProperties tzProps = prefs.getP...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Metodo que permite obtener la profundidadFinal
public Float getProfundidadFinal() { return profundidadFinal; }
[ "public double getPrecoFinal() {\n\t\t\n\t\tint desconto = fornecedor.getPorcentDesconto();\n\t\tprecoFinal = precoDeCusto - desconto*precoDeCusto;\n\t\t return precoFinal;\n\t\t\t\n\t}", "void desconto_final(){\n setDesconto_final(this.inss + this.irpf);\n System.out.println(\"desconto_total = R$ \...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
This method creates a new power up that is a copy (same instance variables) as the power up that it is called off of
@Override public PowerUp newCopy() { return new PowerUpFireBall(this.getCenterX(), this.getCenterY(), getPowerUpManager()); }
[ "public void generarPowerUp(){\r\n\t\tif (casilleroVacio()) {\r\n\t\t\tRandom random = new Random();\r\n\t\t\t//Hay un 25% de probabilidades de que se genere un powerup\r\n\t\t\tif (random.nextInt(4)+1 == 1 ) {\r\n\t\t\t\tint tipoPowerUp = random.nextInt(PowerUp.cantTipos)+1;\r\n\t\t\t\tif (tipoPowerUp == 1)\r\n\t\...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Calculates the time it will take to move the read/write head from the current cylinder position to the specified cylinder position.
private long calcSeekTime (int newCylinder) { // Compute number of cylinders to move. int moveCyl = Math.abs(newCylinder - this.cylinder); // Compute time to move that many cylinders. long moveTime = (long)(2 * config.getRampTime()); moveTime += Math.round(moveCyl * config.getTrack2Track()); return ...
[ "private long calcRotTime (int newSector)\r\n\t{\r\n\t\t//\tCompute number of sectors to wait until we rotate to where\r\n\t\t//\twe should be.\r\n\t\tint moveSect = newSector - this.sector;\r\n\t\t//\tIf newSector < currSector, adjust from negative.\r\n\t\tif (moveSect < 0) moveSect += config.getSectors();\r\n\t\t...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Constructor; initializes the probability table from the given saved training file. (See above for format of file.)
public Viterbi(String tagset, String gtagset, String datafile) throws FileNotFoundException, WrongFormatException, POSNotFoundException { POS.loadFromFile (tagset, gtagset); Scanner sc = null; // deals with the actual data file try { // tries to open the file sc = new Scanner(new BufferedRea...
[ "public void LoadTrainingData(String filename) {\n\t}", "private void load(String file) {\n\t\ttry {\n\n\t\t\tURL path = getClass().getResource(\"../resources/models/\"+file);\n\t\t\tScanner in = new Scanner(new File(path.getPath()));\n\n\t\t\ttrainingCursor = Integer.parseInt(in.nextLine().substring(24));\n\n\t\...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Function that increases strength
private static int gainStrength(int strength){ strength++; System.out.println("You gain 1 strength"); return strength; }
[ "void addStrength();", "@Override\n public void increaseStrength(int power) {\n this.damageStrength += power;\n }", "public void addSword(){\n this.strength = this.strength + 1;\n }", "int getStrength();", "public void setStrength(float strength)\n {\n this.strength = streng...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
/ Coloca un accionable en una coordenada del tablero. Parametros: accionable: accionable a colocar. coordenada: coordenada donde se quiere colocar el accionable. Lanza: MovimientoInvalidoException si no se puede colocar.
public void colocarEnTablero(Accionable accionable,Coordenada coordenada){ try{ this.accionables.get(coordenada).colisionar(); Recolectable recolectableEnCoordenada = this.recolectables.get(coordenada); accionable.recolectar(recolectableEnCoordenada); this.superficies.get(coordenada).producirEfecto(a...
[ "public void colocarAccionableEnPosicionValidaDesde(Accionable accionable, Coordenada coordReferencia){\r\n\t\tboolean sePudoUbicar = false;\r\n\t\tint radioDeVecindad = 1;\r\n\t\twhile(!sePudoUbicar){\r\n\t\t@SuppressWarnings(\"static-access\")\r\n\t\tArrayList<Coordenada> coordenadasVecinos = coordReferencia.veci...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Getter for deleted bikeslist.
public List<Bike> getDeletedBikes() { //Composition: Will return a copy. List<Bike> temp = (List) new ArrayList<Bike>(); for (Bike b : deletedBikes) { temp.add(b.clone()); } return temp; }
[ "java.lang.String getDeleted();", "List<EntityRecord> deleted() {\n var iterator = storage.readAll(\n storage.queryBuilder()\n .where(deleted).is(true)\n .build()\n );\n var result = Lists.newArrayList(iterator);\n return resul...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Property that is different from another property, but they are often confused. For more information, see <a href="
@Unstable @Nonnull public String getPropertyDifferentFromP20() { return this.propertyDifferentFromP20; }
[ "private DiffProperty() {\n\t\t// No implementation\n\t}", "public boolean hideProperty( RDFResource source, Property prop )\n {\n return false;\n }", "Property getOpposite();", "Properties getSupersedeProperties();", "public String getAnotherProperty() {\r\n\t\treturn this.AnotherProperty; \r\...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
This method was generated by MyBatis Generator. This method returns the value of the database column webhook_log.response_headers
public String getResponseHeaders() { return responseHeaders; }
[ "public HttpHeaders getResponseHeaders() {\n\t\treturn this.response.getHeaders();\n\t}", "public HashMap<String,String> getResponseHeaders() {\r\n return this.responseHeaders;\r\n }", "public ResponseHeader getResponseHeader() {\n return this.ResponseHeader;\n }", "public ResponseHeaderMe...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
For each component in the ReferenceUtilityStateMap: currentUtility = referenceUtility this.delta
private void initializeCurrentUtilityMap() { // Getting an iterator Iterator<Entry<String, Double>> hmIterator = this.ReferenceUtilityStateMap.entrySet().iterator(); // Iterate through the hashmap // and add some bonus marks for every student // System.out.println("HashMap after addi...
[ "private void intilializeReferenceUtilityMap(Architecture mRUBiS) {\n\t\t\n\t\tfor(Tenant shop:mRUBiS.getTenants())\n\t\t{\tString shopName=shop.getName();\n\t\tfor (Component component:shop.getComponents())\n\t\t{String componentType=component.getType().getName();\n\t\tif (componentType.contains(\"Authentication S...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
il metodo ha come tappo inizio > fine poi divide l'array a meta e se l'elemento da cercare e piu grande dell'elemento che si trova a meta allora io valuto nella chiamata ricorsiva solo il sotto array che va da meta+1 fino alla fine e se lo trovo restituisco true altrimenti false
private boolean ricerca(int[] array,int elemento,int inizio,int fine) { if(inizio > fine) return false ; int meta = (inizio+fine) / 2 ; if(elemento == array[meta]) return true ; if(elemento < array[meta]) return ricerca(array,elemento,inizio,meta-1) ; return ricerca(array,elemen...
[ "@Test\n public void testMediaPesada() {\n System.out.println(\"mediaPesada\");\n int[] energia = null;\n int linhas = 0;\n double nAlpha = 0;\n Double[] expResult = null;\n Double[] resultArray = null;\n double[] result = ProjetoV1.mediaPesada(energia, linhas, nA...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Sets random points for both the player's start and the exit of the maze; bounds to make sure player and goal aren't too close isnt precise, but at least it stops direct spawns sidebyside
private void setPoints () { ArrayList<Point> emptySpot = new ArrayList<Point>(); for (int i = 0; i < width; i++) { for (int j = 0; j < height; j++) { if (maze[i][j] == 0) { emptySpot.add(new Point (i, j)); } } } Collections.shuffle(emptySpot); this.goal = emptySpot.get(0); double goalRange ...
[ "protected void setStartAndExitPoints() throws MapException {\n\t\texitPoint = null;\n\t\tboolean foundExit = false;\n\t\tfor (Room room : rooms) {\n\t\t\tif (room.getExitPosition() != null) {\n\t\t\t\texitPoint = room.getExitPosition();\n\t\t\t\tlocation(exitPoint).setAsExit();\n\t\t\t\tfoundExit = true;\n\t\t\t\t...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
When we receive videoDbInfo, just propose player frontend which one to choose
@Override public void onVideoDb(VideoDbInfo info, VideoDbInfo remoteInfo) { if(mDestroyed) //will perhaps fix some weird crashes on playstore console return; if(mPlayerFrontend!=null) { mPlayerFrontend.onVideoDb(info, remoteInfo); } }
[ "void onPlaybackInfo(VideoInfo videoInfo, AudioInfo audioInfo);", "public String getVideoDevice();", "private void videoInfoScreen(String videoPath)\n {\n saveImagesToDataManager();\n\n if (listDetailsFragment == null)\n {\n infoFragment = new VideoInfoFragment();\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Informs the user that the message has been successfully deleted.
public void displayMessageDeleted() { System.out.println("Message has been deleted!"); }
[ "@FXML\n private void deleteUserMessage() {\n deleteMessages(deleteMessages_CB, warning_delete);\n updateAllMessagesToDelete();\n showMessageDelete();\n }", "@DELETE\n\t@Produces(\"text/plain\")\n\tpublic String onDelete() {\n\t\tmsg = null;\n\t\treturn \"Message deleted.\\n\";\n\t}", ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Sets net ratio norm.
public void setNetRatioNorm(String netRatioNorm) { this.netRatioNorm = netRatioNorm; }
[ "public String getNetRatioNorm( ) {\n\t\treturn this.netRatioNorm;\n\t}", "public void setNetNormValue(Double val)\r\n {\r\n \tlong value = Math.round(val * this.getPrecision());\r\n\t\tint intValue = (int)value;\r\n\t\t\r\n\t\tthis.getSlider().setValue(intValue);\r\n }", "void setNormalFactor(double f...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Returns the order of the field if defined. Will return 1 if undefined.
int getFieldOrder();
[ "public Integer getFieldOrder() {\n return fieldOrder;\n }", "public java.lang.Integer getFieldOrder() {\n return fieldOrder;\n }", "@VTID(76)\r\n int getPageFieldOrder();", "public Order getOrder(String fieldName)\r\n\t{\r\n\t\treturn null;\r\n\t}", "public final int getOrder()\n {\...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Este es el metodo set de fecha
public void setFecha(Fecha fecha) { this.fecha = fecha; }
[ "public void setFecha(Fecha fecha){\n this.fecha = fecha;\n }", "public abstract void setFechaRegistro( java.util.Date fechaRegistro );", "public void setFechaRegistro(Date fechaRegistro) {\r\n this.fechaRegistro = fechaRegistro;\r\n }", "public void setCreacion(Date creacion) {\r\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
/ Query used for calculating balances in Balances fragment for a particular group. Gets all the bills/expenses for a given(mid) member of the group
@Query("SELECT * FROM billentity WHERE GroupName= :gName AND MemberId= :mid") List<BillEntity> getAllMemberBills(String gName,int mid);
[ "AccountBalanceDto getAllBalance(Long memberId);", "public List <Balance> getAllBalances(LocalDate startDate, LocalDate endDate) throws SQLException{\n\t\tLOG.debug(startDate.getYear() + \" \" + endDate.getYear());\n\t\tLOG.debug(startDate.getMonthValue() + \" \" + endDate.getMonthValue());\n\t\tLOG.debug(star...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Gets the value of the '_2300DTP03DisabilityFromDate' field.
public java.lang.CharSequence get2300DTP03DisabilityFromDate$1() { return _2300DTP03DisabilityFromDate; }
[ "public java.lang.CharSequence get2300DTP03DisabilityFromDate$1() {\n return _2300DTP03DisabilityFromDate;\n }", "public void set2300DTP03DisabilityFromDate$1(java.lang.CharSequence value) {\n this._2300DTP03DisabilityFromDate = value;\n }", "public boolean has2300DTP03DisabilityFromDate$1() {\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Grabs the Project Number from the given Project Name from the Database
public BigDecimal getProjectNumber(String pName) throws SQLException { try { initiateConnection(); }catch(IOException ie) { ie.printStackTrace(); } String query = "select pnumber from project where pname = ?"; BigDecimal pno = null; System.out.print("Project Name to get PNO for:" + pName+"\n"); p = ...
[ "Project getByPrjNumber(Integer num);", "public String getProjectno() {\r\n return projectno;\r\n }", "public java.lang.Integer getProjectNumber() {\n return projectNumber;\n }", "public int getDepartmentNumber(String pname) throws SQLException {\n\t\tint dno = 0;\n\t\tString query = \"sel...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Returns the origin of the subset.
public String getSubsetOrigin(){ return this.subsetOrigin; }
[ "public void setSubsetOrigin(String origin){\n this.subsetOrigin = origin;\n }", "public Coords getOrigin() {\n\t\treturn getColumn(getColumns());\n\t}", "public Vector2D getOrigin() {\n return toSpace(Vector1D.ZERO);\n }", "public int getXOrigin() {\n return ic.getXOrigin();\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
CreatArrayQueue creatArrayQueue = new CreatArrayQueue(3); creatArrayQueue.addQueue(1); creatArrayQueue.addQueue(2); creatArrayQueue.addQueue(3); System.out.println(creatArrayQueue.getQueue()); System.out.println(creatArrayQueue.getQueue()); System.out.println(creatArrayQueue.getQueue()); creatArrayQueue.addQueue(4); cr...
public static void main(String[] args) { CircleArrayQueue circleArrayQueue = new CircleArrayQueue(4); circleArrayQueue.addQueue(1); circleArrayQueue.addQueue(2); circleArrayQueue.addQueue(3); System.out.println(circleArrayQueue.getQueue()); circleArrayQueue.showQueue(); /...
[ "public static void main(String[] args) {\n// arrayQueue.enqueue(1);\n// arrayQueue.enqueue(2);\n// arrayQueue.enqueue(3);\n// arrayQueue.list();\n// System.out.println();\n// int data1 = arrayQueue.dequeue();\n// System.out.println(data1);\n// arrayQueue.list...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Adds the passed parameter ChessPiece to the list of alive pieces on the board for the player.
public void recruitPiece(ChessPiece p){ alivePieces.add(p); }
[ "public void addBoardPiece(BoardPiece boardPiece);", "public void addPiece(Piece p) {\r\n\t\tfor (int i = 0; i < _pieces.length; i++) {\r\n\t\t\t_pieces[i].add(p);\r\n\t\t\tArrayList<Piece> tempPieces = new ArrayList<Piece>();\r\n\t\t\tfor(int j = 0; j < _pieces[i].size(); j++)\r\n\t\t\t{\r\n\t\t\t\ttempPieces.ad...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Called when MIDlet is started. Checks whether the MIDlet have been already started and initialize/starts or resumes the MIDlet.
public void startApp() { if (!midletPaused) { startMIDlet(); } midletPaused = false; }
[ "public void startApp() {\r\n if (midletPaused) {\r\n resumeMIDlet ();\r\n } else {\r\n initialize ();\r\n startMIDlet ();\r\n }\r\n midletPaused = false;\r\n }", "public void startApp() {\n if (midletPaused) {\n resumeMIDlet();\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
This is an interface for common generic type of entities representing a BUY or SELL request that is traded in the DePaul Stock Exchange System.
public interface Tradable { /** * Get method returns the product symbol (IBM, GOOG). * * @return product symbol */ String getProduct(); /** * Get method returns the price of the tradable. * * @return price object * @throws Exception */ Price getPrice() thro...
[ "public interface Trader\n{\n void buyItem (Tradeable item);\n\n void sellItem (Tradeable item);\n}", "public interface StockItem {\n String getSymbol();\n\n String getName();\n\n BigDecimal getValue();\n\n int getVolume();\n\n Date getLastTradeDateTime();\n\n BigDecimal getGains();\n\n Big...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Adds a topic message to the cluster
public void addTopicMessage(MQTTMessageContext messageContext) throws MQTTException { try { //Will add the topic message to the cluster for distribution if (log.isDebugEnabled()) { log.debug("Incoming message received with id : " + messageContext.getMqttLocalMessageID() ...
[ "public void addTopic(Topic topic) {\r\n\t\ttopics.add(topic);\r\n\t\t\r\n\t}", "public void addTopic(Topic newTopic) {\n allTopics.add(newTopic);\n }", "public int publishToTopic(String topicId, Message message);", "@Override\n\tpublic void sendMessage(String topic, message msg) throws IOException{...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Clicks on the add property button in the class editor. As a result the specified property is added to the edited class and the class is saved. This method waits for the class to be saved.
@Override public void clickEditAddProperty() { getSkinExecutor().clickEditAddProperty(); }
[ "public void addProperty() {\r\n\t\tproduct.getProperties().add(new Property());\r\n\t}", "@Test(groups = { \"Enterprise-only\" }, priority = 1)\n public void testValidateCreatePropertyWithJavaClass() throws Exception\n {\n\n String uniqueString = \"org.alfresco.\" + System.currentTimeMillis();\n\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Build the structure "hits" in the search response. The parser is at the start curly braces after fieldName "hits" has been consumed by the caller code.
@Override public Hits buildFromJson(JsonParser parser) throws IOException { JsonToken token = parser.currentToken(); JsonUtil.validateToken(JsonToken.START_OBJECT, token, parser); token = parser.nextToken(); JsonUtil.validateToken(JsonToken.FIELD_NAME, token, pars...
[ "@Override\n public SearchResponse buildFromJson(JsonParser parser) throws IOException {\n\n JsonToken token = parser.nextToken();\n JsonUtil.validateToken(JsonToken.START_OBJECT, token, parser);\n token = parser.nextToken();\n JsonUtil.validateToken(JsonToken.FIELD_NAME, token, parse...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
/ Method sets the ending port for the scan. If it's outside the valid range of ports (0 to 65535) or if it's not an int, return false. Otherwise return true. Returns: boolean to indicate if the port is valid. True = valid.
public boolean setEndPort(int endPort) { if(validPort(endPort)) { try { mEndPort = endPort; return true; } catch (Exception ex) { return false; } } else return false; }
[ "public boolean portInvalid() {\n\t\treturn portInvalid;\n\t}", "public static boolean isValidPort(int a_port)\n\t{\n\t\tif ( (a_port < PORT_MIN_VALUE) || (a_port > PORT_MAX_VALUE))\n\t\t{\n\t\t\treturn false;\n\t\t}\n\t\treturn true;\n\t}", "public boolean validPort(int port) {\n if (port >= 0 && port <...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
looks to see if there's any speciality containers in that location
boolean findSpecialtyContainers(){ if (this.receptacle != null)//checks and sees if there's any containers in the location. for (int i = 0; i < this.receptacle.size(); i++) if ((this.receptacle.get(i) instanceof SpecialtyContainer)) return true; return false; }
[ "void examineContainers(){\n\t\t\tif (this.receptacle != null)//checks and sees if there's any containers in the location.\n\t\t\t\tfor (int i = 0; i < this.receptacle.size(); i++)\n\t\t\t\t\tif (!(this.receptacle.get(i) instanceof SpecialtyContainer))//if it's a hidden container, you don't know it's there, but it ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Test packing and unpacking an RTP packet with out of range values.
public void testPackUnpackOutOfRangeValues() { // Test pack RtpPacket rtpPacket = new RtpPacket(); try { rtpPacket.setV(ByteUtil.getMaxIntValueForNumBits(2) + 1); } catch (IllegalArgumentException iae) { System.out.println("Set V = " + (ByteUtil.getMaxIntValueForNumBits(2) + 1) + ": " + iae); } ...
[ "public void testPackUnpackMaxValues() {\n\n\t\t// Test pack\n\t\tRtpPacket rtpPacket = new RtpPacket();\n\t\trtpPacket.setV(ByteUtil.getMaxIntValueForNumBits(2));\n\t\trtpPacket.setP(ByteUtil.getMaxIntValueForNumBits(1));\n\t\trtpPacket.setX(ByteUtil.getMaxIntValueForNumBits(1));\n\t\trtpPacket.setCC(ByteUtil.getM...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
This method prints out the shortest path between a source and destination vertex. The edges have weights. Uses Dijkstra's algorithm. The graphic is acyclic (no cycles).
private static void findShortestWeightedPath(ArrayList<WeightedEdges> edges, int start, int dest, int nNodes) { }
[ "public void findShortestPaths() throws Exception {\n\t\t// Queue to store nodes with updated distance from the source node.\n\t\tQueue<axg137230_Node> queue = new LinkedList<>();\n\t\tqueue.add(nodes[source]); // add source node the queue.\n\t\twhile (!queue.isEmpty()) {\n\t\t\taxg137230_Node u = queue.remove();\n...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Returns an unmodifiable view of the degree planner list. This list will not contain any duplicate degree planner.
ObservableList<DegreePlanner> getDegreePlannerList();
[ "public static Planner getPlanner() {\n\t\treturn planner;\n\t}", "public JList<JPanel> getPlants() {\n\t\treturn menuList;\n\t}", "@SuppressWarnings(\"unchecked\")\n public List<WorkLocationPlan> getWorkLocationPlans() {\n return (List<WorkLocationPlan>) workLocationPlans.clone();\n }", "publ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
/ Metodo encargado de la asignacion de ruta a un paquete ingresado. 1. Se llama al metodo conectarDB para crear una conexion con la base de datos. Se obtiene un valor booleano, true significa que se establecio la conexion exitosamrente y se procede a ejecutar el bucle de asignacion de paquetes a rutas y puntos de contr...
@Override public void run(){ //-------------------------------------------PASO 1------------------------------------------- if(this.conectarDB()){ while(!cerrarAplicacion){ try { //-------------------------------------------PASO 2----------------------------------...
[ "private void registrarPuntosdeControlPaquete() throws SQLException{\n contador = 1;\n declaracion = conexion.createStatement();\n resultadoPaquete = declaracion.executeQuery(\"SELECT* FROM Paquete WHERE Codigo = '\"+codigoPaquete+\"';\");\n while(resultadoPaquete.next()){\n p...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Renders the text of the specified iterator, using the Graphics2D context's current Paint. The iterator must specify a font for each character. The baseline of the first character is at position (x,&nbsp;y) in the User Space. The rendering attributes applied include the Clip, Transform, Paint, and Composite attributes. ...
public void drawString(AttributedCharacterIterator iterator, float x, float y) { // System.out.println("drawString att2"); }
[ "public void drawString(AttributedCharacterIterator iterator, int x, int y) {\r\n }", "public void drawString(AttributedCharacterIterator iterator,\n int x, int y){\n drawString(iterator, (float)x, (float)y);\n }", "public void drawString(AttributedCharacterIterator iterat...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
post: rv = intArray[beginIndex] + intArray[beginIndex + 1] + ... + intArray[endIndex 1]
private static int sum(int[] intArray, int beginIndex, int endIndex) { assert beginIndex >= 0 : "beginIndex = " + beginIndex + " < 0!"; assert endIndex <= (intArray.length) : "endIndex = " + endIndex + " > " + (intArray.length) + " = (intArray.length)!"; assert beginIndex < endIndex : "beginIndex = " + beginInde...
[ "private int sum(int[] tempArray){\r\n\t\tint sum = 0;\r\n\t\tfor (int value: tempArray)\r\n\t\t\tsum += value;\r\n\t\treturn sum;\r\n\t}", "private int arraySum (int array[]) {\r\n\t\tint sum = 0;\r\n\t\tfor(int element : array) { sum += element;}\r\n\t\treturn sum;\r\n\t}", "private static int sumArray(int[] ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Gets the visible tile's image at the coordinates
public Image getVisibleTile(int x, int y) throws SlickException { Image visibleTileImage = null; for (int l = this.getLayerCount() - 1; l > -1; l--) { if (visibleTileImage == null) { visibleTileImage = this.getTileImage(x, y, l); continue; } ...
[ "public Raster getTile(int tileX, int tileY);", "ITile getTileAt(int x, int y);", "ImageTile getImageTile();", "public Image getTileImage(){\n\t\treturn tileImage;\n\t}", "private Image getTileFromTileset(Point tile){\n Image image;\n if(tile.x > -1 && tile.y > -1){\n try{\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Increments the assigned task count to the specified user
public void incrementUserAssignedTaskCount(String userId) { userAssignedTaskCount.put(userId, userAssignedTaskCount.get(userId) + 1); }
[ "public void increase() {\r\n\t\t\tsynchronized (activity.getTaskTracker()) {\r\n\t\t\t\tactivity.getTaskTracker().count++;\r\n\t\t\t\tLog.d(LOGTAG, \"Incremented task count to \" + count);\r\n\t\t\t}\r\n\t\t}", "public void setAssignedUser(int assignedUser) {\n this.assignedUser = assignedUser;\n }", ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Given a binary tree, a target node in the binary tree, and an integer value k, PRINT ALL NODES that are at distance k from the given target node. No parent pointers are available.
public void printAllNodesDistantFromGivenValue(int value,int k){ findDistantNodes(value, 0, k, false, this.root); }
[ "public void printKDistantIter(Node root, int k) {\r\n if(root == null) {\r\n return;\r\n }\r\n\r\n Queue<Node> queue = new LinkedList<>();\r\n queue.add(root);\r\n while(!queue.isEmpty() && k != 0) {\r\n k--;\r\n int nodeCount = queue.size();\r\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Student3 d = new Student3(1,80) d.toString()
@Override public String toString() { return "Student3 [rno=" + rno + ", marks=" + marks + "]"; }
[ "public static void main(String[] args)\r\n {\n Student s = new Student(\"Joe\", \"012-1231231\", \"B1100111\");\r\n Person p = new Student(\"Jo\",\"010323\",\"98932\");\r\n System.out.println(\"Student is \" + s.toString());\r\n \r\n }", "@Override\n public String toString() {\...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
When a requiredrole element is encountered, we push a string for creation of MembershipAttributes.
private void startRequiredRole(Attributes atts) { stack.push(atts.getValue(NAME)); }
[ "void setRoleRequired(MapUserRole roleRequired);", "String getRequiresRole();", "public GraphNode addRole(String role){\n\t\tInteger intValue = addElement(role, 2);\n\t\t//System.out.println(role + \" Added with : \" + intValue);\n\t\tGraphNode roleVar = new GraphNode(intValue, 2);\n\t\tauthGraph.addVertex(role...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
/ Returns the average of the numbers in its Map argument
public static double computeAverage(Map<Integer, Double> valueMap) { int count = 0; double sum = 0; for (Map.Entry<Integer, Double> entry : valueMap.entrySet()) { sum += entry.getValue().doubleValue(); count++; } return sum / count; }
[ "private Double getValuesAvg(Map<Integer, Double> map) {\n\t\t// Go over the values and compute the average\n\t\tDouble avg = 0.0;\n\t\tfor (Double entry : map.values()) {\n\t\t\tavg += entry;\n\t\t}\n\t\tavg /= map.size();\n\t\treturn avg;\n\t}", "@Override\n public double findAverage() {\n double aver...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Updates a client account based on a ClientAccount object.
String updateClientAccount(ClientAccount account) throws ServiceException;
[ "public Response updateClientAccount(String id, ClientAccount clientAccount) {\n Response response = RestAssured.given()\n .log().all()\n .contentType(ContentType.JSON)\n .body(GSON.toJson(clientAccount))\n .when()\n .put(CLIENTS_RESO...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Test the property 'userIds'
@Test public void userIdsTest() { // TODO: test userIds }
[ "public void testGetUserIdsByUserName() {\r\n\t\t// TODO Auto-generated method stub\r\n\r\n\t}", "public boolean isSetUserIds() {\n return this.userIds != null;\n }", "public void testGetAllUserIDs() {\r\n\t\t// TODO Auto-generated method stub\r\n\r\n\t}", "AuthorizationQuery userIdIn(String... userIds);"...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
This method will return the two topic folder present under the root folder. e.g for the storage topics/abstopic/second=45/month=12/day=01/hour=23/year=2015/abstopic+0+0000000000.avro, topics/absothertopic/second=45/month=12/day=01/hour=23/year=2015/absothertopic+0+0000000000.avro it will return topics/abstopic/, topics...
@Test public void getTwoPartitionsUnderGivenPath() throws IOException { ContainerClient mockContainerClient = mock(ContainerClient.class); BlobItem testBlob = new BlobItem(); testBlob.name("topics/abs-topic/"); testBlob.isPrefix(true); BlobItem testBlobOther = new BlobItem(); testBlobOthe...
[ "abstract TopicPath topicPath();", "@VisibleForTesting\n String[] getPrefixesForFolders(Path folder1, Path folder2) {\n String separator = File.separator;\n String folder1Name = folder1.getFileName().toString();\n String folder2Name = folder2.getFileName().toString();\n if (!folder1...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }