query
stringlengths
8
1.54M
document
stringlengths
9
312k
negatives
listlengths
19
20
metadata
dict
Convert case to TestCase Api response object
public TestCase toTestCase(Author author) { TestCase testCase = this.toTestCase(); testCase.setAuthor(author); return testCase; }
[ "@Test\n public void deleteBookingReturn201(){\n AuthPayload authPayload = new AuthPayload(\"admin\", \"password123\");\n Response authResponse = AuthApi.postAuth(authPayload);\n System.out.println(authResponse.getBody().prettyPrint());\n //Here we have to extract token from \"token: ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Constructor encargado de obtener la referencia al data source para habilitar el poleo de conexiones
public PoolDB() throws SQLException { Context ctx = null; try { ctx = new InitialContext(); } catch (NamingException ne) { throw new SQLException("Sin contexto inicial " + ne.getExplanation()); } try { ds = (DataSource) ctx.lookup(NameFactory.AnunciosJDBC); ...
[ "Datasource getDatasourceref();", "private DataSource(){\n\n\n }", "private DataSource() {\n }", "protected ConnectionSource getConnectionSource()\r\n {\r\n return myConnectionSource;\r\n }", "public DataSource() {\n\t\tthis(null);\n\t}", "public DataAccessor() throws Exception {\n\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
optional string MeetingHandle = 3;
public Builder clearMeetingHandle() { bitField0_ = (bitField0_ & ~0x00000004); meetingHandle_ = getDefaultInstance().getMeetingHandle(); onChanged(); return this; }
[ "public void setSenderSocialNo(java.lang.String param){\r\n localSenderSocialNoTracker = true;\r\n \r\n this.localSenderSocialNo=param;\r\n \r\n\r\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Method to set the value of an edge
private void setEdgeValue(int source, int dest, double wt) { edges[source-1][dest-1] = wt; }
[ "public void setEdgeValue(V2 edgeValue);", "protected void setEdge(localE edge)\n {\n this.edge = edge;\n }", "@Test \n\tpublic void testSetValE() {\n\t\tint vertex1ID = graph.addVertex(\"Schröder\");\n\t\tint vertex2ID = graph.addVertex(\"Merkel\");\t\t\t\t\n\t\tint edgeID = graph.addE...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Return the value associated with the column: eqpkey
public java.lang.String getEqpkey () { return _eqpkey; }
[ "public abstract Object getPrimaryKeyValue();", "public Object getValue(int rowId, String field);", "public Object getActivePrimaryKeyValue();", "public PVField getPVField(String key) throws EQException\n\t{\n\t\treturn (PVField) super.getField(key);\n\t}", "private String getCellValue(int x,int y)\n {\n...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
TODO Autogenerated method stub
public static void main(String[] args) throws IOException { WebDriverManager.chromedriver().setup(); ChromeDriver driver = new ChromeDriver(); driver.manage().window().maximize(); driver.manage().timeouts().implicitlyWait(50, TimeUnit.SECONDS); Actions action = new Actions(driver); driver.get("https://...
[ "@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" ] ] } }
Adds the specified entity to the request as a POST body, with the specified contenttype.
protected abstract void addPostEntity(HR httpRequest, String postEntity, String contentType);
[ "protected PostContent(TYPE type) {\n this.type = type;\n }", "public <T> T post(Class<T> type) {\n return post(true, type, null, null, false);\n\n }", "@POST\n \t@Path(\"submit/{type}\")\n \t@Consumes({ MediaType.TEXT_XML, MediaType.TEXT_PLAIN })\n \t@Produces({ MediaType.TEXT_XML, MediaTyp...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Note: if you change the table definition (for example uuid from binary to char) also check the TagResultMapper class that is used for jdbi queries
@SqlUpdate("create table mw_tag_certificate_request (id char(36) primary key, subject varchar(255), status varchar(255), content blob not null, contentType varchar(255) not null)") void create();
[ "@Select({\n \"select\",\n \"TAG_ID, TAG_CODE, TAG_VALUE, TAG_TYPE, DISPLAY_ORDER, PARENT_ID, XPATH, IS_DELETE\",\n \"from product_t_tag_info\",\n \"where TAG_ID = #{tagId,jdbcType=BIGINT}\"\n })\n @Results({\n @Result(column=\"TAG_ID\", property=\"tagId\", jdbcType=JdbcType...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
check is the piece is there on the place specified;
private boolean isValidMove(Move move) { Piece piece = this.positionToPiece.get(move.getStartingPosition()); //is present in the map if (piece != null) { //check color is same if (!piece.getColor().equals(move.getColor())) { return false; } ...
[ "private boolean isOccupied( BoardLocation loc )\n\t{\n\t\tif ( loc.row == start.row && loc.column == start.column )\n\t\t\treturn false;\n\t\telse\n\t\t\treturn board.hasPiece( posToString( loc ) );\n\n\t}", "public boolean containAPlayerPiece(Position pos) {\n return getPieceAtPosition(pos) != 0;\n }", "p...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
E is the noninteractive challenge as scalar required bytes e = 4;
public Builder clearE() { bitField0_ = (bitField0_ & ~0x00000008); e_ = getDefaultInstance().getE(); onChanged(); return this; }
[ "private static int parseE() {\n\t\tint n = parseT();\n\t\treturn parseEPrime(n);\n\t}", "IS getE();", "private static int e(int paramInt)\n/* */ {\n/* 246 */ paramInt = d(paramInt) ? paramInt : b(paramInt);\n/* 247 */ return b[((int)(paramInt * 125613361L >> 27) & 0x1F)];\n/* */ }", "com....
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Sets the value of the generatePass property.
public void setGeneratePass(boolean value) { this.generatePass = value; }
[ "public void setPass(Pass vPass);", "public int getPass()\r\n {\r\n return generationPass;\r\n }", "public String getPass ()\n\t{\n\t\treturn pass;\n\t}", "public void setPassw(String passw) {\n\t\tthis.passw = passw;\n\t}", "public void setValidatePass(String validatePass) {\r\n\t\tthis.valida...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Return a string that is used as a title of an enclosing frame.
abstract public String GetTitle ();
[ "private String getTitle() {\n if (this.window instanceof Frame) {\n return ((Frame) this.window).getTitle();\n }\n if (this.window instanceof Dialog) {\n return ((Dialog) this.window).getTitle();\n }\n return null;\n }", "public final View getTitleFrame...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
This method was generated by MyBatis Generator. This method returns the value of the database column TFSDOC_DOCUMENTS_TEMP.DOC_NBR
public BigDecimal getDOC_NBR() { return DOC_NBR; }
[ "java.lang.String getDocNumber();", "public String getDocNumber() {\n return this.docNumber;\n }", "public String getDocumentNumber(int i) {\n\t\tif (currentDocIndexRecord == null || i != currentDocIndexRecord.docid)\n\t\t\t\tif (seek(i) == false)\n\t\t\t\t\treturn null;\n\n\n\t\treturn currentDocInde...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
TODO Autogenerated method stub
@Override public WebElement findElement(By by) { return driver.findElement(by); }
[ "@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" ] ] } }
Sets the value of the 'strEmailUserGuest' field.
public void setStrEmailUserGuest(java.lang.String strEmailUserGuest) { this.strEmailUserGuest = strEmailUserGuest; }
[ "public void setguestEmail(String guestEmail) {\n\t\tthis.guestEmail = guestEmail;\n\t}", "public void setUserEmail(String userEmail)\r\n\t{\r\n\t\tthis.userEmail = userEmail;\r\n\t}", "public void setEmail(java.lang.String value) {\n\t\tsetValue(com.schedushare.core.database.tables.User.USER.EMAIL, value);\n\t...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
checks if piece to move is a checker
public boolean isValidMove(int currRow, int currCol, int nextRow, int nextCol) { if (board[currRow][currCol].getName() == EMPTY) { return false; // checks if position to move to is in bounds } else if (nextRow >= DIM || nextRow < 0 |...
[ "private boolean isLegalMove(int[] piece, int i, int j, Tile[][] tiles) {\n int fromI = piece[0];\n int fromJ = piece[1];\n int pieceType = piece[3];\n int pieceColor = piece[2];\n\n // initializes a list to be used to store all legal moves for a piece\n List<int[]> legalMoves = null;\n\n // ge...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
String sourcestring = "[Report123][Report124][Report125][Report126]";
private TreeMap getListOfReportsFromDashBoardHTML(String htmlString) { String sourcestring = htmlString; //Pattern re = Pattern.compile("([a-z]+)\\[([a-z]+)([=<>]+)([a-z]+)\\]",Pattern.CASE_INSENSITIVE); //Pattern re = Pattern.compile("\\[([R][e][p][o][r][t][#])[(*)]\\]"); Pattern re = Pattern.compile("\\[(....
[ "public String[][] parseString(String passedVal){\n\t\t\n\t\tString[][] stringArr = new String[8][8];\n\n\t\t\n\t\t\n\t\t\n\t\t\n\t\tfor(int i=0; i<8; i++)\n\t\t\tfor(int j=0; j<8; j++)\n\t\t\t\tstringArr[i][j]=String.valueOf(passedVal.substring((i*8+j)*2, (i*8+j+1)*2));\n\n\t\treturn stringArr;\n\t}", "String de...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
method for updating pet
static void updatePet(){ Scanner input = new Scanner(System.in); //inputs for updating information in the array list System.out.print("Enter the pet ID you can to \n"); int idChosen = input.nextInt(); System.out.print("Enter new name and new age...
[ "@Override\n public Pet update(Pet pet) throws Exception {\n return null;\n }", "@Override\n\tpublic void updatePet(Pet pet, int id) {\n\n\t}", "@Override\n\tpublic Pet update(Pet entity) {\n\t\treturn null;\n\t}", "@Override\r\n\tpublic void savePet() {\n\t\t\r\n\t}", "public void setPet(Pet p...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
This adds a an actionListener to every button of a grid. It is used for the player to shoot at the computers grid.
public void buttonListener(){ for(int y=0;y<buttons.length;y++){ for(int x=0;x<buttons[y].length;x++){ removeListeners(buttons[x][y]); buttons[x][y].addActionListener(new ButtonListener(x,y)); buttons[x][y].setEnabled(true); } } }
[ "public void setGridButtonListener(int row, int col, ActionListener e) {\n\t\tbuttons[row][col].addActionListener(e);\n\t}", "private void setUserBoardActionListeners(){\n\t\tBoard userBoard = viewManager.getGameScreen().getUserBoard();\n\n\t\tfor(int i = 0; i < ROWS; i++){\n\t\t\tfor(int j = 0; j < COLUMNS; j++)...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Called by the XARecoveryModule for each indoubt Xid. Implementations should return Vote.ROLLBACK if they recognize the xid and believe it should be aborted. Vote.LEAVE_ALONE if they recognize the xid and do not want the XARecovery module to roll it back. Vote.ABSTAIN if they do not recognize the xid. Each registered XA...
@Override public Vote checkXid(Xid xid) { if (LOG.isTraceEnabled()) { LOG.trace("InboundBridgeOrphanFilter.checkXid(" + xid + ")"); } Vote vote = Vote.ROLLBACK; if (xid.getFormatId() != InboundBridge.XARESOURCE_FORMAT_ID) { vote = Vote.ABSTAIN; } ...
[ "@Override\r\n\tpublic void rollback(Xid xid) throws XAException {\n\t\t\r\n\t}", "public Xid[] recover(int flag) throws XAException {\n\n\t\tsynchronized (this) {\n\t\t\tinitPendingTx();\n\t\t}\t\t\n\t\trollbackNotPreparedBranches(pendingXIDs.values().toArray(new InboundTransactionRecord[]{}));\n\t\treturn pendi...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Assigns the type instance to this attribute of a Pizza All decorators can dynamically customize the Pizza instance PlainPizza because of this
public ToppingDecorator(Pizza newPizza) { tempPizza = newPizza; }
[ "public Decorator(Pizza pizza){\n this.pizza = pizza;\n }", "@Override\n\tPizza createPizza(String type) {\n\t\tif( type.equals(\"cheese\") ){\n\t\t\treturn new ChicagoStyleCheesePizza();\n\t\t}else if( type.equals(\"clam\") ){\n\t\t\treturn new ChicagoStyleClamPizza();\n\t\t}\n\t\treturn null;\n\t}", ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
This method recursively builds the variable attribute from the UtilityArrayAttribute
private void loadVariable(int dim, int wildcard, int match, Integer [] maxIndex, Integer [] curIndex, UtilityArrayAttribute uaa) { if (dim == (maxIndex.length-1)) { if (dim == wildcard) { curIndex[dim] = match; String tmp = uaa.getElement(curIndex); // Now create the indexes for the local va...
[ "public List<JCTree> makeAttributeFields(List<? extends VarInfo> attrInfos) {\n // Buffer for new vars.\n ListBuffer<JCTree> vars = ListBuffer.lb();\n \n for (VarInfo ai : attrInfos) {\n // Only process attributes declared in this class (includes mixins.)\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Sets the loan activity ID of this loan activity.
@Override public void setLoanActivityId(long loanActivityId) { _loanActivity.setLoanActivityId(loanActivityId); }
[ "public void setIdActividad(long idActividad) {\n this.id = this.idActividad = idActividad;\n }", "public Builder setS2CActivityId(int value) {\n bitField0_ |= 0x00000002;\n s2CActivityId_ = value;\n onChanged();\n return this;\n }", "public int getLoanApplicationId() ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
This makes a PVector into a global coordinates from the given local zone's coordinate space
public PVector fromZoneVector(PVector local) { PMatrix3D temp = new PMatrix3D(); // list ancestors in order from most distant to closest, in order to // apply their matrix's in order LinkedList<Zone> ancestors = new LinkedList<Zone>(); Zone zone = this; while (zone.getParent() != null) { zone = zo...
[ "public Point globalToLocal(Point p) {\r\n\t\tif (this.parent == null) {\r\n\t\t\treturn p;\r\n\t\t}\r\n\r\n\t\tPoint parentGlobalPosition = this.parent.localToGlobal(this.parent.getPosition());\r\n\t\tint localX = (int)(p.getX() - parentGlobalPosition.getX());\r\n\t\tint localY = (int)(p.getY() - parentGlobalPosit...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
List All Job Classes
public List<String> listAllJobClasses() { String path =System.getProperty("user.dir"); System.out.println(" path " + System.getProperty("user.dir")); String packageName=env.getProperty("fastCode.jobs.default"); System.out.println(" package " + packageName); CGenClassLoader loader = new CGenClassLoader...
[ "private void listAllJobs() throws IOException {\n JobStatus[] jobs = getAllJobs();\n if (jobs == null)\n jobs = new JobStatus[0];\n System.out.printf(\"%d jobs submitted\\n\", jobs.length);\n System.out.printf(\"States are:\\n\\tRunning : 1\\tSucceded : 2\" +\n \"\\tFailed : 3\\tPrep : 4\\n\");...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Making notification bar transparent
private void changeStatusBarColor() { if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.LOLLIPOP) { Window window = getWindow(); window.addFlags(WindowManager.LayoutParams.FLAG_DRAWS_SYSTEM_BAR_BACKGROUNDS); window.setStatusBarColor(Color.TRANSPARENT); } }
[ "@TargetApi(19)\n public static void setupTransparentSystemBarsForLmp(Window window) {\n // Currently we use reflection to access the flags and the API to set\n // the transparency\n // on the System bars.\n if (isLmpOrAbove()) {\n try {\n window.clearFlags(W...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
optional .com.kedacom.ops.flink.etl.proto.EClientType ClientType = 2;
public Builder clearClientType() { bitField0_ = (bitField0_ & ~0x00000002); clientType_ = com.kedacom.ops.flink.etl.proto.Dssevenum.EClientType.DssObjUnknown; onChanged(); return this; }
[ "public Builder setClientType(com.zhangwuji.im.protobuf.IMBaseDefine.ClientType value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000002;\n clientType_ = value.getNumber();\n onChanged();\n return this;\n }", "public...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
TODO Autogenerated method stub
@Override public void eliminarDetalleTarea(DetalleTarea eliminaDetalleTarea) { detalleTareaDao.eliminarDetalleTarea(eliminaDetalleTarea); }
[ "@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" ] ] } }
This function selects any random option except the specified one for the Select Locator
public static void doNotselectSpecificOption(By selectLocator,String option,WebDriver driver){ UtilityCommon.waitForElementPresent(selectLocator, driver); WebElement droplist = driver.findElement(selectLocator); List<WebElement> options = droplist.findElements(By.tagName("option")); System.out.println(options....
[ "public static void selectorRandom(By locator) {\n\n if (driver.getContext().contains(\"WEBVIEW\")) {\n Random random = new Random();\n Select dropdown = new Select(driver.findElement(locator));\n List<WebElement> arrOption = dropdown.getOptions();\n int randomNumb...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
TODO Autogenerated method stub
@Override protected void onStart( ) { super.onStart( ); App.signupActivity = this; }
[ "@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" ] ] } }
Handle navigation view item clicks here.
@SuppressWarnings("StatementWithEmptyBody") @Override public boolean onNavigationItemSelected(MenuItem item) { Fragment f = null; int id = item.getItemId(); if (id == R.id.nav_editProfile) { // Handle the camera action // Toast.makeText(getApplication(),"HELO",T...
[ "void onNavigationItemClick(int item);", "public void ClickItem(View view){\n MainActivity.redirectActivity(this, item.class);\n }", "@Override\n public void clickitem(View view, final int position) {\n\n }", "@Override\n publ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
unfortunately, Steinfels doesn't provide rating info in the record lines, at least not in the old style docs
@Override public BigDecimal getParkerRating(String theLine) { return null; }
[ "public String getRating() {\n return this.rating;\n }", "public int getRating(){\r\n\t\treturn this.rating;\r\n\t}", "public int getRating()\r\n {\r\n return rating;\r\n }", "public int getRating(){\n\t\treturn this.rating;\n\t}", "public Double getRating() {\n return rating;\n }...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Get the restrict for a given value
public Guard getGuardFor(T value) { return guardedValues.getOrDefault(value, Guard.constFalse()); }
[ "com.google.privacy.dlp.v2.Value getLowerBound();", "com.google.privacy.dlp.v2.Value getMin();", "double getStartLimitValue();", "public Integer getLowerLimit();", "public static Limb findByValue(int value) { \n switch (value) {\n case 0:\n return BOTH;\n case 1:\n return LEFT;\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Tag to remove from the specified version. string tag = 2 [(.yandex.cloud.pattern) = "[az][_09az]"];
public com.google.protobuf.ByteString getTagBytes() { java.lang.Object ref = tag_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); tag_ = b; retu...
[ "void deleteTag(String tag) {\n String preName = nameGenerator();\n if (tags.contains(tag)) {\n tags.remove(tag);\n if (!pastNames.contains(preName))\n this.pastNames.add(preName);\n if (pastNames.contains(this.nameGenerator())) {\n this.p...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Gets the dataset ids by dataflow id and data provider id test.
@Test public void getDatasetIdsByDataflowIdAndDataProviderIdTest() { datasetMetabaseService.getDatasetIdsByDataflowIdAndDataProviderId(1L, 1L); Mockito.verify(dataSetMetabaseRepository, times(1)) .getDatasetIdsByDataflowIdAndDataProviderId(Mockito.anyLong(), Mockito.anyLong()); }
[ "@Select(sql = \"select id from data where data.samp_id=?{1}\", fetchSize = FETCH_SIZE)\n public DataIterator<Long> getDatasetIdsForSample(long sampleId);", "public void readDataflowId() {\n\n dataflowId = \"\";\n for (Element el : components) {\n if (el.getNodeName().equals(\"componen...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
getView is the central method which takes a vehicle and creates a thin view of said item for display in a feed.
@Override public View getView(int position, View convertView, ViewGroup parent) { // Get the data item for this position Vehicle vehicle = getItem(position); // Check if an existing view is being reused, otherwise inflate the view if (convertView == null) { convertView = ...
[ "@Override\n public RemoteViews getViewAt(int position) {\n CarObject car = mCarList.get(position);\n RemoteViews remoteViews = new RemoteViews(mContext.getPackageName(), R.layout.widget_list_item);\n remoteViews.setTextViewText(R.id.makeTextViewWidget, car.getMake());\n remoteViews.setTextVie...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Create an entity for this test. This is a static method, as tests for other entities might also need it, if they test an entity which requires the current entity.
public static Tarefa createEntity(EntityManager em) { Tarefa tarefa = new Tarefa() .nome(DEFAULT_NOME) .descricao(DEFAULT_DESCRICAO) .dataLimite(DEFAULT_DATA_LIMITE) .horaLimite(DEFAULT_HORA_LIMITE) .situacaoTarefa(DEFAULT_SITUACAO_TAREFA) ...
[ "protected abstract Entity createEntity();", "EntityInstance createEntityInstance();", "@Override\n protected void createEntity() {\n Company company = createCompany(1001);\n setEntity(company);\n }", "public final Entity createEntity() {\n Entity entity = new Entity(this);\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
/ Turns the grammar into epsilonfree returning the NE set
public Set<Symbol> toEpsilonFree() { Set<Symbol> Ne = buildNeSet(); for (Symbol nT: nonTerminalSymbols) { Set<Production> prodsToRemove = new HashSet<Production>(); for (Production P: nT.getProductionsTo()) { if (P.getDestinyString().contains("&")) { prodsToRemove.add(P); } } nT.getProduct...
[ "@SuppressWarnings(\"unchecked\")\n\tprivate ArrayList<String>[] epsilonProductions(ArrayList<String>[] grammar) {\n\n\t\t// Inizializzo gli ArrayList della nuova grammatica\n\t\tsimpGrammarEps = new ArrayList[4];\n\t\tArrayListInit(simpGrammarEps);\n\n\t\t// Aggiungo l'assioma di grammar all'insieme dei non termin...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
join up data into a string to output as a row use "," to separate csv columns
public String writeDetails() { String memberData = ""; memberData = memberData.concat(Forename); memberData = memberData.concat(","); memberData = memberData.concat(Surname); memberData = memberData.concat(","); memberData = memberData.concat(Integer.toString(PupilMar...
[ "abstract public String toCSVString();", "protected String convertToCsvLine(String[] data) {\n return Stream.of(data).collect(Collectors.joining(\",\"));\n }", "@Override\n public String getCSVString() {\n return getId() + \",\" + name + \",\" + cnp + \",\" + budget;\n }", "public Strin...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
b. Shift all elements by one to the right and move the last element into the first
public static int[] shiftRight(int[] array) { int last = array[array.length - 1]; for(int i = array.length - 2; i > 0 ; i--) { array[array.length - 1] = array[i]; } array[0] = last; for(int i : array) {System.out.print(i + " ");} return array; }
[ "static void shiftRight(byte[] array) {\n int m = array.length;\n byte temp = array[m-1];\n for (int k=m-1; k>=1; k--){\n array[k] = array[k-1];\n }\n array[0] = temp;\n }", "private void shiftByOne() {\n // This will never be called on an empty history containe...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Bean with the cros configuration
@Bean CorsConfigurationSource corsConfigurationSource() { final UrlBasedCorsConfigurationSource source = new UrlBasedCorsConfigurationSource(); source.registerCorsConfiguration("/**", new CorsConfiguration().applyPermitDefaultValues()); return source; }
[ "public CompetenceBean(){\n \n }", "private CesecoreConfiguration() {\n }", "@Override\n\tprotected void config() {\n\t\t\n\t}", "@Override\n public void configure(ComponentConfiguration conf) {\n\n }", "public FESConfiguration() {\n super(FES.getInstance());\n \n addDep...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Sets the account id number for the quiz
public void setAccountID(long accountID){ this.accountID = accountID; }
[ "public void setaccount_id(int account_id) {\n this.account_id = account_id;\n }", "private void setAccountID(String inputID){\n accountID=inputID;\n }", "public void setAccountNumber(int value) {\r\n this.accountNumber = value;\r\n }", "public void setAccountId(int value) {\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Set up desired capabilities and pass the Android appactivity and apppackage to Appium
@BeforeClass public void setUp() throws FileNotFoundException, IOException, ParseException{ DesiredCapabilities capabilities = new DesiredCapabilities(); capabilities.setCapability("BROWSER_NAME", JSONReader.ReadJSONFile("BROWSER_NAME", "./Data/data.json")); capabilities.setCapability("deviceName",JSONReader.Re...
[ "@BeforeClass\r\n\tpublic void setUp() throws MalformedURLException{\n\t\tDesiredCapabilities capabilities = new DesiredCapabilities();\r\n\t\t\r\n\t\t//capabilities.setCapability(\"BROWSER_NAME\", \"Android\");\r\n\t\tcapabilities.setCapability(\"VERSION\", \"6.0.1\"); \r\n\t\tcapabilities.setCapability(\"deviceNa...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Creates the new file if it doesn't exist.
@SuppressWarnings("all") default boolean create() { try { return getFile().createNewFile(); } catch (IOException e) { e.printStackTrace(); } return false; }
[ "public void newFile() {\n\t\ttry{\n\t\t\tif(!file.exists()) {\n\t\t\t\tfile.createNewFile();\n\t\t\t}\n\t\t}\n\t\tcatch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "private void createFile() {\n plugin.getLogger().info(filename + \" file does not exists. Creating it...\");\n file.ge...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
TODO Autogenerated method stub
public static void main(String[] args) { }
[ "@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" ] ] } }
Sets the collection membership string.
public void setCollectionMembership(String membership) { _collectionMembership = Val.chkStr(membership); }
[ "public void setCollectionLiteralExp(CollectionLiteralExp collectionLiteralExp);", "public void setCollection(final Collection collection) {\n cCollection = collection;\n }", "public void setCollectionId(String v) {\n if (DocumentMetaData_Type.featOkTst && ((DocumentMetaData_Type)jcasType).casFeat_...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Run the application from the command line.
public static void main(String[] args) { executeWrapper(new CommandLineInterviewApplication(args, DEFAULT_QUEUE_SIZE)); }
[ "public static void main(String[] args) {\n\t\ttry {\n\t\t\tnew App().run(args);\n\t\t} catch (Exception e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "public static void main(String[] args) {\n new MainRunApp().runApp();\n }", "public static void main(String...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
$ANTLR end "rule__AddClass__Group__1__Impl" $ANTLR start "rule__AddClass__Group__2" ../it.univaq.coevolution.differences.edelta.ui/srcgen/it/univaq/coevolution/differences/edelta/ui/contentassist/antlr/internal/InternalEDeltaLang.g:2672:1: rule__AddClass__Group__2 : rule__AddClass__Group__2__Impl ;
public final void rule__AddClass__Group__2() throws RecognitionException { int stackSize = keepStackSize(); try { // ../it.univaq.coevolution.differences.edelta.ui/src-gen/it/univaq/coevolution/differences/edelta/ui/contentassist/antlr/internal/InternalEDeltaLang.g:2676:1: ( ...
[ "public final void rule__ClassDeclaration__Group_2__1() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \t\n try {\n // InternalMiniJava.g:1531:1: ( rule__ClassDeclaration__Group_2__1__Impl )\n // InternalMiniJava.g:1532:2: rule__ClassDeclaration__...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
/ Filter ServiceRecord instances based on type
private ServiceRecord[] filterServiceRecords(final int type, final ServiceRecord[] records) { if(type == 0 || type != (type & (ServiceRecord.ACTIVE_SERVICE_RECORD | ServiceRecord.INACTIVE_SERVICE_RECORD))) throw new IllegalArgumentException("invalid recordType"); if(((type & ServiceRecord.AC...
[ "public abstract void filter(String type);", "public static List<Records> getSpecificRecordsByType(int type) {\n return new Select()\n .from(Records.class)\n .innerJoin(Category.class)\n .on(\"Records.category_id = Categories.Id\")\n .where(\"Cate...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Called when the activity is first created.
@Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); getWindow().requestFeature(Window.FEATURE_NO_TITLE); getWindow().addFlags(WindowManager.LayoutParams.FLAG_KEEP_SCREEN_ON); setContentView(R.layout.bookreader); setProgressBarIndet...
[ "protected void onCreate() {}", "@Override\n\tpublic void onCreate() {\n\t\tsuper.onCreate();\n\t\t\n\t\tinitData();\n\t\n\t}", "@Override\n\tpublic void onCreate() {\n\t\tsuper.onCreate();\n\t\tULog.i(this, \"onCreate() \");\n\t\tinitData();\n\t}", "@Override\n public void onCreate () {\n super.onC...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
This method was generated by MyBatis Generator. This method corresponds to the database table TBLS
public Criteria andOwnerTypeGreaterThanColumn(TbTBLS.Column column) { addCriterion(new StringBuilder("OWNER_TYPE > ").append(column.getEscapedColumnName()).toString()); return (Criteria) this; }
[ "@Override\n public String getTableName() {\n return \"vehicle\";\n }", "@MyBatisDao\npublic interface DesginTableDao extends CrudDao<DesginTable>{\n\n List<DesginTable> findTableList(DesginTable desginTable);\n// 创建表\n void createTable(DesginTable desginTable);\n// void updateIsDbsynch(Des...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Method calculates the perimeter
private double perimeter() { double p = n * s; globalPerimeter = p; final double globalPerimeter = p; return globalPerimeter; }
[ "public double calculatePerimeter()\n {\n double perimeter = 0;\n for (Double side : sides)\n perimeter += side;\n return perimeter;\n }", "public double calcPerimeter()\n {\n\t double perimeter = 0;\n for (int i = 1; i < 4; i++)\n\t {\n\t perimeter = p...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
.proto_def.RoomMemberControlResp.STATUS status = 1;
int getStatusValue();
[ "protobuf.clazz.s2s.Club_ProxyProto.PlayerStatusOrBuilder getStatusOrBuilder();", "proto.GameStatusEnum getStatus();", "public void setStatus(int status)\n/* */ {\n/* 194 */ this.status = status;\n/* */ }", "sifnode.oracle.v1.Types.StatusOrBuilder getStatusOrBuilder();", "com.yunhui.job.comm...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
The nextToken string returned on a previous page that you use to get the next page of results in a paginated response.
public void setNextToken(String nextToken) { this.nextToken = nextToken; }
[ "public java.lang.String getNextPageToken() {\n java.lang.Object ref = nextPageToken_;\n if (!(ref instanceof java.lang.String)) {\n com.google.protobuf.ByteString bs =\n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n if (bs.isValidUtf8())...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Opens the exam stage.
@FXML public void openExamStage() throws IOException{ VBox examPane = FXMLLoader.load( getClass().getResource( "/codingWizard/examstagepackage/examStage.fxml")); Scene examScene = new Scene( examPane, 700, 900); Stage examStage = new Stage(); examStage.setScene( examScene); e...
[ "public void openExamManagement(ActionEvent event) {\r\n\t\ttry {\r\n\t\t\ttableViewInExamsManagement.getItems().clear();\r\n\t\t\texamManagementAnchorPane.setVisible(true);\r\n\t\t\tbackAnchorPane.setVisible(true);\r\n\t\t\tcreateExamAnchorPane.setVisible(false);\r\n\t\t\taddQuestionAnchorPane.setVisible(false);\r...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Metoda koja vraca izracunatu hash vrijednost kao hiz heksadecimalnih znamenki.
public final String getHexDigest() { return byteArrayToHex(getDigest()); }
[ "private int calculateHash() {\n int result = 11;\n result = 37 * result + name.hashCode();\n result = 37 * result + ((Double)commissionPerEmployee).hashCode();\n List<double[]> types = Arrays.asList(cashFlowData,deductionsData,legalData,tallyingData,mergesData);\n for(double[] t ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Get the name of the place in category layout.
public String getmMuseumName() { return mMuseumName; }
[ "public String getName() {\n\t\t\treturn \"sample-layout\";\n\t\t}", "public String categoryName() {\n\t\treturn name;\n\t}", "public String getCategory(){\n if (this.category == null){\n return null;\n } else {\n return this.category.name();\n }\n }", "public Str...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Constructs a Node with the word object in the parameters and a null left and right node
public Node(Word wo){ w = wo; left = null; right = null; }
[ "public Node createRec(String word) {\r\n\t\tNode node = new Node(word);\r\n\t\treturn node;\r\n\t}", "public LinkedWord (String word) {\n this.word = word;\n this.depth = 2;\n }", "public Word (String left, String right)\n\t{\n\t\tthis.foreign\t= left;\n\t\tthis.home\t\t= right;\n\t}", "publ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
TODO Autogenerated method stub
@Override public NextPage execute(HttpServletRequest request, HttpServletResponse response) { System.out.println("2.AdminIndexService_ajax"); AdminIndexSelectService AdminIndexSelect = new AdminIndexSelectService(); Admin admin = new Admin(); Time_now now = new DateToday().getDate(); AdminIndexSelect.sele...
[ "@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" ] ] } }
Instantiates a new User in group.
public UserInGroup(String user, int group_id, String admin) { super(); this.email = user; this.group_id = group_id; this.added_by = admin; }
[ "private void createNewUser() {\n String nickName = loginField.getText();\n String pass = passwordField.getText();\n user = new User(nickName, pass, new Date());\n }", "public void createUser() {\n if (userService.getByEmail(\"test\") == null) {\n userService.create(\"tes...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
/ renamed from: com.tencent.mm.plugin.fav.a.o
public interface C3071o { /* renamed from: LP */ void mo7315LP(String str); /* renamed from: LQ */ void mo7316LQ(String str); /* renamed from: c */ void mo7317c(C45925c c45925c); /* renamed from: hf */ void mo7318hf(boolean z); void pauseDownload(String str); void run(); }
[ "void OnFavourited(String name);", "private void addFavourites() {\n\t\t\n\t}", "@Override\n public void openFavorite() {\n\n }", "public void addMedia2Favorites(Media m){\r\n\t\tsuper.addMedia2Favorites(m);\r\n\t}", "private void updateFavIcon() {\r\n//\t\tBitmapDrawable favicon = getNormalizedFavico...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
$ANTLR end "T__90" $ANTLR start "T__91"
public final void mT__91() throws RecognitionException { try { int _type = T__91; int _channel = DEFAULT_TOKEN_CHANNEL; // D:\\workspace\\s\\JLLVM_b\\src\\cn\\edu\\sjtu\\jllvm\\VMCore\\Parser\\LLVM.g:56:7: ( 'x' ) // D:\\workspace\\s\\JLLVM_b\\src\\cn\\edu\\s...
[ "public interface StmtParserConstants {\r\n\r\n /** End of File. */\r\n int EOF = 0;\r\n /** RegularExpression Id. */\r\n int OPEN = 6;\r\n /** RegularExpression Id. */\r\n int CLOSE = 7;\r\n /** RegularExpression Id. */\r\n int NEW = 8;\r\n /** RegularExpression Id. */\r\n int FROMREGEX = 9;\r\n /** Reg...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Test the property 'totalBillingPrice'
@Test public void totalBillingPriceTest() { // TODO: test totalBillingPrice }
[ "@Test\r\n\tpublic final void testBasketTotalValue() {\r\n\t\tMap<String, Item> basketList = createBasket();\r\n\t\tbasket = new BasketManager(basketList);\r\n\t\tBigDecimal d = basket.getBasketPrice();\r\n\t\tassertTrue(new BigDecimal(5370).equals(d));\r\n\t}", "boolean hasTotalPrice();", "@Test\n public vo...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
This method was generated by MyBatis Generator. This method sets the value of the database column PMSCONTROL1.MODIFY_CPN_DATE
public void setMODIFY_CPN_DATE(String MODIFY_CPN_DATE) { this.MODIFY_CPN_DATE = MODIFY_CPN_DATE == null ? null : MODIFY_CPN_DATE.trim(); }
[ "@PreUpdate \r\n\t public void setChangeDate() { \r\n\t \tthis.updatedBy = (String) SessionData.getUserDetails().get(\"userID\");\r\n\t \tthis.updatedDateTime = new Date(); \r\n\t }", "public void setModifyDate(Date modifyDate) {\r\n\t\tthis.modifyDate = modifyDate;\r\n\t}", "public void setResetD...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
/ Complete the 'groupTransactions' function below. The function is expected to return a STRING_ARRAY. The function accepts STRING_ARRAY transactions as parameter.
public static List<String> groupTransactions(List<String> transactions) { // Write your code here TreeMap<String,Integer> map=new TreeMap<String,Integer>(); List<String> list=new ArrayList<String>(); for(String s:transactions){ if(map.containsKey(s)){ map.replace(s,map.get(s)+1); ...
[ "public List<Transaction> getTransactions(){\n List<Transaction> transactions = new ArrayList<>();\n // sort through the groups\n for(int i = 0; i < UserSession.getGroupsList().size(); i++){\n Group group = UserSession.getGroupsList().get(i);\n //sort though the transactio...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
TODO Autogenerated method stub
@Override public byte[] getUserByte(int id) throws RemoteException { UserMapper userMapper = new UserMapperImpl(); return UserDTO.object2Byte(new UserAssembler().writeDTO(userMapper.find(id))); }
[ "@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" ] ] } }
Gets the num month.
public Long getNumMonth() { return numMonth; }
[ "public int getMonth()\n {\n Calendar cal = Calendar.getInstance();\n cal.setTimeInMillis(time);\n return cal.get(Calendar.MONTH);\n }", "public int getMonthNumber() {\n return _monthNumber;\n }", "public int getMonth () {\r\n\t\treturn month;\r\n\t}", "public int getMonth() {\n in...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Creating a new VoiceCache object using the specified parameters.
public VoiceCache(Context context, VoiceCacheParams cacheParams) { init(context, cacheParams); }
[ "public void createCache(String cacheName);", "public Cache() {\n //some code pls\n }", "Cache createCache(@Nonnull Class cacheOwner, int cacheId, @Nullable Object instance, CacheContext context);", "public InMemoryCacheObject() {\n }", "public CsmapCache create(long cacheId);", "public Cache...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
MARK: Handle Media Player
private void initiateSong() { mediaPlayer = MediaPlayer.create(getActivity(), songList.get(songIndex).getFile()); songName.setText(songList.get(songIndex).getName()); songSinger.setText(songList.get(songIndex).getAuthor()); }
[ "public void play() {\n Logger.debug(\"play()\");\n \n libvlc.libvlc_media_player_play(mediaPlayerInstance);\n }", "public MediaPlayer mediaPlayer(){\n\n File filestring = new File(\"src/music/remember_the_name.mp3\");\n Media hit = new Media(filestring.toURI().toString());\n mediaP...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
This method was generated by MyBatis Generator. This method corresponds to the database table bus_agent_company
int updateByPrimaryKeySelective(BusAgentCompany record);
[ "public void setCompany(int company) {\n\t\tthis.company = company;\n\t}", "@Override\n public long getCompanyId() {\n return _bed.getCompanyId();\n }", "public String getCompanyId()\r\n/* 35: */ {\r\n/* 36:31 */ return this.companyId;\r\n/* 37: */ }", "@GetMapping(value=\"/getCompany...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
String RA_old=null; String DEC_old=null;
public void setCentre(String RA, String DEC){ nodelist = this.document.getElementsByTagName("PARAM"); for(int i=0; i<nodelist.getLength(); i++){ Element elem = (Element)nodelist.item(i); if(elem.hasAttribute("name")){ String type = elem.getAttribute("name"); if(type.equals("RA")){ //RA_old = e...
[ "String getFieldOldValue();", "private void setDefVal() {\r\n \r\n // defValD = \"\"; No need to set default value for Date type in Observation file\r\n defValR = \"-99\";\r\n defValC = \"-99\"; // TODO wait for confirmation\r\n defValI = \"-99\";\r\n }", "private void m24...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
when the task started displaying a progressbar
@Override protected void onPreExecute() { super.onPreExecute(); // progressBar.setVisibility(View.VISIBLE); }
[ "@OnThread(Tag.Any)\n public void startProgress()\n {\n JavaFXUtil.runNowOrLater(() -> progressbar.setRunning(true));\n }", "public void run() {\r\n //set the updated progres value\r\n progressBar.setProgress(progressStatus);\r\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Appends and returns a new empty value (as xml) as the last "option" element
com.gazoomobile.mxalm.TOption addNewOption();
[ "public org.apache.xmlbeans.XmlString insertNewOption(int i)\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.apache.xmlbeans.XmlString target = null;\n target = (org.apache.xmlbeans.XmlString)get_store().insert_element_user(OPTION$14, i);\n r...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Register control laws with the factory. It is the job of the writer to ensure that provided classes implement the appropriate interface. Reflection is used to construct an instance of the appropriate class.
synchronized public void registerControlLaw(String name, String classname) { controlLawMap.put(name, classname); }
[ "public void createConditions() {\n ((com.guidewire.pc.domain.coverage.CoverablePublicMethods)__getDelegateManager().getImplementation(\"com.guidewire.pc.domain.coverage.CoverablePublicMethods\")).createConditions();\n }", "private static void addClass(Class klass) {\n\n try {\n\n Field[] fi...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
TODO Autogenerated method stub
private void openDialog(int newProgress) { if (dialog == null) { dialog = new ProgressDialog(WebViewActivity.this); dialog.setTitle("正在加载"); dialog.setProgressStyle(ProgressDialog.STYLE_HORIZONTAL); dialog.setProgress(newProgress); dialog.show();// 显示进度 } // dialog不为空时,实时刷新进度即可 ...
[ "@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" ] ] } }
/ renamed from: a
public static boolean m26095a(Activity activity, String[] strArr, int[] iArr) { if (iArr.length == 0) { return false; } for (int i : iArr) { if (i != 0) { return false; } } if (C8727e.m26082c().mo21730a()) { return m...
[ "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" ] ] } }
TODO Autogenerated method stub
@Override public Page<Attends> findAll(Pageable pageable) { 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" ] ] } }
End of variables declaration//GENEND:variables
@Override public void addNotify() { super.addNotify(); //same problem as in 31086, initial focus on Cancel button projectNameTextField.requestFocus(); }
[ "private static void EX5() {\n\t\t\r\n\t}", "@Override\n\tprotected void initVariable() {\n\t\n\t}", "public void mo17751g() {\n }", "public void mo1857d() {\n }", "public static void Q22()\r\n\t{\r\n\t}", "public void mo28221a() {\n }", "public void mo3914b() {\n }", "protecte...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
This is to demonstratee how to inject Mappers directly
public void insertBlog(Blog blog) { blogMapper.insertBlog(blog); }
[ "@Mapper\npublic interface PersonMapper {\n void getPerson();\n}", "@Mapper(componentModel = \"spring\")\npublic interface UserMapper {\n\n UserMapper INSTANCE = Mappers.getMapper(UserMapper.class);\n\n User fromDTO(UserDTO userDTO);\n\n UserDTO toDTO(User user);\n\n List<User> fromDTO(List<UserDTO...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
JTextArea textArea = new JTextArea(32, 55); // 60
public void overview(Settings s, boolean periodicity_checking) { JEditorPane textArea = new JEditorPane(); textArea.setEditable(false); textArea.setContentType("text/html"); textArea.setPreferredSize(new Dimension(800, 380)); //textArea.setPreferredSize(new Dimension(200, 200));...
[ "private TextArea makeTextArea(String id, int x, int y, String text, int height) {\n TextArea textArea = new TextArea();\n textArea.setId(id);\n textArea.setText(text);\n textArea.setLayoutX(x);\n textArea.setLayoutY(y);\n textArea.setEditable(false);\n textArea.setP...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
TODO Autogenerated method stub.
@Override public int size() { return size; }
[ "@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" ] ] } }
Get the polygons texture at a given point
public void getPolygonTextureAndShade(double lon, double lat, int texture, int shade) { texture = -1; for (Polygon i: _cacheLand) { if(insidePolygon(lon, lat, i)) { texture = ((Polygon)(i)).getTexture(); shade = ((Polygon)(i)).getShade(); return; } } }
[ "public int getTextureLocation(ITexture texture);", "public ArrayList<VTexture> getOBJVTexture();", "public TextureRegion getTexture(int index) {\r\n\t\treturn textures[index % textures.length];\r\n\t}", "public abstract void fillPolygon(int[] px, int[] py, int[] pc, JavaRenderTexture render, int[] ptx, int[]...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
This method was generated by MyBatis Generator. This method sets the value of the database column doctor.num
public void setNum(String num) { this.num = num; }
[ "public void setDorNum(Integer dorNum) {\n this.dorNum = dorNum;\n }", "@Insert(sql = QueryStorage.ASSIGN_DOCTOR)\n\tvoid assignDoctor(long idDoctor, long idPatient);", "public void setDcmaccessionnumber(String v){\n\t\ttry{\n\t\tsetProperty(SCHEMA_ELEMENT_NAME + \"/dcmAccessionNumber\",v);\n\t\t_Dcma...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Getter for property relativePk.
public java.lang.Integer getRelativePk() { return relativePk; }
[ "public Long getPk() {\n return pk;\n }", "@Property(name = \"soc:parentId\")\n public abstract String getParentId();", "public IEntityPK getPK() {\r\n return this.pk;\r\n }", "Set<Property> getPkFields();", "public String getPkPrefix() {\n/* 92 */ return this.pkPrefix;\n/* */ }", ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Method call will Register OnClick() Events for widgets.
public void registerOnClick() { mTextViewHome.setOnClickListener(this); mTextViewSearch.setOnClickListener(this); mTextViewSettings.setOnClickListener(this); mTextViewBack.setOnClickListener(this); mImageViewInformation.setOnClickListener(this); }
[ "public void addWidgetListener() {\n\t\tbtnAllOn.setOnClickListener(allonBtnListener);\r\n\t\t\r\n\t}", "@Override\n public void onClick(View widget) {\n }", "private void buildEvents()\r\n\t{\r\n\t\tbt_search_jobs.setOnClickListener(this);\r\n\t}", "protected abstract void setOnClickFor...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Get next matched session id.
protected final String nextSessionId() { int pos = nextInt(); return getMemberInfoList().get(pos).getSessionId(); }
[ "public static String getNextSessionItem() {\n ArrayList<String> sessionItemIds = new ArrayList<String>();\n for (String lSessionItemId : lSessionItems.keySet()) {\n sessionItemIds.add(lSessionItemId);\n }\n Log.i(\"GET NEXT SESSION\", sessionItemIds.toString());\n if (...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
returns the string representation of the polynomial
@Override public String toString() { return base + ": " + this.terms; }
[ "public String toString() {\n\n // initialize global property\n this.polynomial = \"\";\n \n // loop through coefficients\n for (int i = 0; i < this.coefficients.length; i++) {\n\n // local variables for temporary storing/naming\n String polynomialString = \"...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
1. Create the frame.
protected void Init(int X, int Y, int Width, int Height, String Name) { frame = new JFrame(Name); frame.setLayout(null); frame.setName(Name); frame.setSize(Width, Height); Dimension minSize = new Dimension(); minSize.setSize(Width, Height); frame.setMinimumSize(minSize); frame.setBounds(X, Y, W, H); ...
[ "private FlatFrame createFrame() {\r\n\t\tFlatFrame frame = new FlatFrame();\r\n\t\tScreenManager frameSM = ScreenManager.getInstance();\r\n\r\n\t\tframe.setTitle(\"직원 현황/해고\");\r\n\t\tframe.setSize(frameSM.dip2px(200), frameSM.dip2px(240));\r\n\t\tframe.setLocationOnScreenCenter();\r\n\t\tframe.setWindowExit(false...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Every time after the preprocessor or consumers do their jobs, we may need to restore the original dummy EGL surface. Thus the current EGL context will remain consistent even if the surfaces or pixel buffers used by preprocessors or consumers are destroyed in or out of the OpenGL threads.
private void makeDummySurfaceCurrent() { if (!mContext.isCurrent(mDummyEglSurface)) { mContext.makeCurrent(mDummyEglSurface); } }
[ "final void makeNothingCurrent() {makeCurrent(EGL14.EGL_NO_SURFACE);}", "@Override\n public void onSurfaceCreated(GL10 gl10, EGLConfig eglConfig) {\n gl = gl10;\n GLES20.glClearColor(0.0f, 0.0f, 0.0f, 1.0f);\n loadShaders();\n loadTextures();\n }", "public void a(EGLContext eGL...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
TODO Autogenerated method stub
@Override public List<GrhxMessageData> getByFrontmodule (Map<String, Object> map) throws SelectException{ return grhxMessageDataMapper.getByFrontmodule(map); }
[ "@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" ] ] } }
Action of the exonuclease enzyme.
public double getCurrentNegativeFlux(SequenceVertex j) { return -exo*j.getConcentration(); }
[ "@Override\n\tpublic void doAction(Activity activity, InstrumentationTestCase testCase, View view) {\n\t}", "@Override\n\t\tpublic void action() {\n\n\t\t}", "@Test\n @DisplayName(\"Interactions press\")\n void interactionsPress() {\n elementsPage.clickElementsHeader();\n elementsPage.clickI...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Created by david on 9/11/15.
@java.lang.FunctionalInterface public interface FunctionalInterface { int add(int x, int c); }
[ "@Override\n public void extornar() {\n \n }", "private static void EX5() {\n\t\t\r\n\t}", "protected void method_5557() {}", "@Override\n\t\t\t\tpublic void pintate() {\n\t\t\t\t\t\n\t\t\t\t}", "@Override\n }", "protected void mo4791d() {\n }", "@Override\n public int util...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
A convenience repository that can be mapped into IoC container. User: Denis Pavlov Date: Jan 26, 2010 Time: 4:11:13 PM
public interface AdaptersRepository extends DisposableContainer, Serializable { /** * @return all converters mapped for this repository. */ Map<String, Object> getAll(); /** * Register a new adapter in this repository or override old one. * * @param key converter key * @param...
[ "public interface Repository {\n\n}", "public interface RepositoryFactoryAware extends DependencyAware {\n\n /**\n * Used to inject the repository factory into the implementing class\n * @param factory the factory\n */\n void setRepositoryFactory(RepositoryFactory factory);\n\n}", "EReposit...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Interface to something that provides an eventlist. implementations probably provides a way of loading the list contents from a persistent store, and then watching for updates but this is not specified.
public interface ListProvider<E> { public EventList<E> getList(); }
[ "protected abstract void createEventList();", "public interface SharedList<E> extends List<E> {\n\n\t/**\n\t * Add a listener\n\t * \n\t * @param listener the listener\n\t */\n\tpublic void addSharedListListener(SharedListListener listener);\n\n\t/**\n\t * Remove a listener\n\t * \n\t * @param listener the listen...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
This method is called from within the constructor to initialize the form. WARNING: Do NOT modify this code. The content of this method is always regenerated by the Form Editor.
@SuppressWarnings("unchecked") // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents private void initComponents() { jPanel1 = new javax.swing.JPanel(); jLabel1 = new javax.swing.JLabel(); jLabel2 = new javax.swing.JLabel(); jLabel3 = new java...
[ "public StForm() {\n initComponents();\n }", "public CineForm() {\n initComponents();\n }", "public javaform() {\n initComponents();\n }", "public EditDemographicForm() {\n initComponents();\n }", "public FightForm() {\n initComponents();\n }", "public For...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
/ access modifiers changed from: 0000
public void drain() { if (getAndIncrement() == 0) { Subscriber<? super R> subscriber = this.downstream; ZipSubscriber<T, R>[] zipSubscriberArr = this.subscribers; int length = zipSubscriberArr.length; Object[] objArr = this.current; ...
[ "private B000066() {\r\n\r\n\t}", "@Override\n\tpublic int modifiers() {\n\t\treturn 0;\n\t}", "protected void method_5557() {}", "@Override\r\n\tpublic int getAccessCode() {\n\t\treturn 0;\r\n\t}", "public abstract void mo30462c();", "@Override\n public int utilite() {\n return 0;\n }", "p...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
String xx = Environment.getExternalStorageDirectory() + "/";
private void loadFileList() { File mPath = new File(Environment.getExternalStorageDirectory() + "/DCIM/" );//+ //getApplicationContext().getString(R.string.app_name)); try { mPath.mkdirs(); } catch (SecurityException e) { //Log.e(TAG, "unable to write on the sd c...
[ "private String getExternalStoragePath() {\r\n\t\tString path = Environment.getExternalStorageDirectory().getPath();\r\n\t\tString state = Environment.getExternalStorageState();\r\n\t\tif (Environment.MEDIA_MOUNTED.equals(state)) {\r\n\t\t\tpath = Environment.getExternalStorageDirectory().getAbsolutePath();\r\n\t\t...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
/ divid rem divis > rem divid (quot divis) > rem
public Num rem( final Num num ) { return this.sub( this.div( num ).mul( num ) ); }
[ "@Override\n\t// [THIS WORDS]\n\tpublic String visitMulDivExpr(DECAFParser.MulDivExprContext ctx) {\n\t\tString multDivExpression = visitChildren(ctx);\n\t\treturn multDivExpression;\n\t}", "@Test\n\tvoid testDiv() {\n\t\tassertEquals(ComplexNumber.parse(\"2+3i\").div(ComplexNumber.parse(\"2+2i\")).getReal(), 1.2...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Find the _Fields constant that matches name, or null if its not found.
public static _Fields findByName(String name) { return byName.get(name); }
[ "public static _Fields findByName(String name)\r\n {\r\n return byName.get(name);\r\n }", "public Field getField(String name) {\n for(Field field : fieldList) {\n if(field.getName().equals(name)) {\n return field;\n }\n }\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Wajib kasih Constructor Kosong
public Post() { }
[ "public Kakuro() {\n\t}", "public TebakanJamak() {\n }", "private Napakalaki(){}", "Cokolady()\t{\r\n\t\tsuper();\r\n\t}", "public Tanh() {\n\t}", "public Levyt(){\n\t\t\t//oletus muodostaja\n\t\t}", "public YeuCauXe() {\n }", "public BilletajeCajero() {\n }", "public Cachorro() {\r\n }"...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }