query
stringlengths
8
1.54M
document
stringlengths
9
312k
negatives
listlengths
19
20
metadata
dict
Sets the argument description.
public void setArgumentDescription(final String argSyntax, final int minargs, final int maxargs, final String[] argDescription) { this.argSyntax = argSyntax; this.minargs = minargs; this.maxargs = maxargs; this.argDescription = argDescription; }
[ "@Override\n\tpublic void setDescription(String description) {\n\t\t super.description = (description);\n\t}", "public void setDescription(java.lang.String description);", "public void setDescription(String description)\r\n/* 117: */ {\r\n/* 118:102 */ this.description = description;\r\n/* 119: */ ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
================================================================================ private constructor ================================================================================
private MailManager() { initialize(); }
[ "private O()\r\n {\r\n super();\r\n }", "protected CA() {}", "private SerializationUtils() {\n throw new Error(\"Do not allow instantiation!\");\n }", "private CSCreator() {\n }", "private Utils()\n {\n super();\n }", "private Library(){}", "private PrivateCons...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
TODO Autogenerated method stub
@Override public void mousePressed(MouseEvent e) { }
[ "@Override\n }", "@Override\n\t\t\t\tpublic void pintate() {\n\t\t\t\t\t\n\t\t\t\t}", "@Override\n public void extornar() {\n \n }", "@Override\r\n\tpublic void hablar() {\n\t\t\r\n\t}", "@Override\n\t\tpublic void kayit1() {\n\t\t\t\n\t\t}", "@Override\r\n\tpublic void wydaj() {\n...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Each index corresponds to az, count occurrences
public int[] charCounter(String input){ int[] counter={0,0,0,0,0, 0,0,0,0,0, 0,0,0,0,0, 0,0,0,0,0, 0,0,0,0,0,0}; for (char c : input.toCharArray()){ counter[c-'a']++; } return counte...
[ "public void countOccurrence() {\n\t\tint length = this.text.length();\n\t\tboolean[] mark = new boolean[length];\n\t\tint[] ghiNhan = new int[length];\n\t\tchar[] kyTu = new char[length];\n\n\t\tfor (int i = 0; i < length; i++) {\n\t\t\tmark[i] = true;// not mark yet\n\t\t}\n\t\tfor (int i = 0; i < length; i++) {\...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Close the engine, stop the stats timer
public void close() { this.statsTimer.cancel(); }
[ "public void close() {\r\n\t\tsynchronized (engineOnOffLock) {\r\n\t\t\tto_stop = true;\r\n\t\t\tengineOnOffLock.notify();\r\n\t\t}\r\n\t}", "public void close()\r\n \t{\r\n \t\ttimeouts.close();\r\n \t\ttimeouts = null;\r\n \t\tfinders.close();\r\n \t\tfinders = null;\r\n \t\tgameevents.close();\r\n \t\tgameeven...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Draws the object on the provided canvas with specified paint
void draw(Canvas canvas, Paint paint);
[ "void draw(Canvas canvas, float x, float y, Paint paint, int frame);", "@Override\n public void draw(Canvas canvas, Paint paint) {\n }", "public void paint(Graphics canvas)\n\t{\n\t\tsuper.paint(canvas);\n\t\t//Draw face outline:\n\t\tcanvas.drawOval(X_FACE, Y_FACE, FACE_DIAMETER, FACE_DIAMETER);\n\t\t//D...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
When user select an row this method will input the row data into a hashmap
protected HashMap<Integer, String> tableSelData(int selRow) { HashMap<Integer, String> tableData = new HashMap<>(); for (int i = 0; i < table_firmData.getColumnCount(); i++) { String data = (String) table_firmData.getValueAt(selRow, i); tableData.put(i, data); } return tableData; }
[ "Map<String, String> currentRow();", "public void dataSelect(){\n //deklarasi variabel\n int i = tbl1.getSelectedRow();\n \n //uji adakah data di tabel?\n if(i == -1){\n //tidak ada yang terpilih atau dipilih.\n return;\n }\n kp.setText(\"\"+m...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
True if has "ContinueRequest" element
boolean isSetContinueRequest();
[ "boolean hasStartRequest();", "public boolean hasContinue() {\n return ((bitField0_ & 0x00000004) == 0x00000004);\n }", "public boolean hasContinue() {\n return ((bitField0_ & 0x00000100) == 0x00000100);\n }", "public boolean isAcceptingNextRequest()\r\n {\r\n return isDownloadSu...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Wraps the view panel in another panel together with additional UI (e.g. algebra header)
Panel decorate(ScrollPanel algebrap, AppW app);
[ "protected abstract void layoutPanel();", "private JPanel equipamentoViewPanel() {\n\t\tJPanel panel = new JPanel(new BorderLayout());\n\t\tpanel.add(equipamentoViewContentRetornPanel(), BorderLayout.NORTH);\n\t\tpanel.add(equipamentoViewMorePanel());\n\t\treturn panel;\n\t}", "public void createPanel() {\n\t\t...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Smaller code by using for loop for several buttons performing similar scripture actions and Come, Follow Me materials
private void setup_buttons() { // setup buttons actions for scriptures int[] scripture_ids = {R.id.bofm, R.id.ot, R.id.nt, R.id.dc_testament, R.id.pgp}; for (int each : scripture_ids) findViewById(each).setOnClickListener(v -> returnIntent(v,2)); // setup buttons actions for...
[ "@Override\n public void actionPerformed(ActionEvent e) {\n player1Slugs = grs.generateSlugLocations(player1Slugs, ++clickP1);\n player1SlugPositions = grs.setSlugsToButtons(player1SlugPositions, player1Slugs);\n for (int x = 0; x < 12; x++) {\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Tests that the lastname can be retrieved
@Test public void testGetLastName() throws Exception { assertEquals("lastInstr",test_instr.getLastName()); }
[ "public void testGetLastname() {\r\n System.out.println(\"getLastname\");\r\n \r\n com.abbt.timesheet.entities.User instance = new com.abbt.timesheet.entities.User();\r\n \r\n String expResult = \"\";\r\n String result = instance.getLastname();\r\n assertEquals(expRe...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Constructor which sets the default scanner.
public parser(java_cup.runtime.Scanner s) {super(s);}
[ "public Scanner() {\n }", "void setScanner(Scanner in) {\n scanner = in;\n }", "public StyleScanner()\n {\n this(\"\");\n }", "public ECGReader(java_cup.runtime.Scanner s) {super(s);}", "public LuaBaseScanner() {\n super();\n }", "public Parser(Scanner scanner) {\n \t\tthis.s...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Tries to find the beginning of the nearest script specified relatively to position passed. Has OK status if the starting position of script is returned.
public void _beginOfScript() { String multiScript = "ab" + katakana ; int pos = oObj.beginOfScript(multiScript, 3, ScriptType.ASIAN) ; log.println("Position = " + pos) ; tRes.tested("beginOfScript()", pos == 2) ; }
[ "public int getMinStartPosition(int docId, int position) throws IOException {\n if (ignoreSpans != null && docId == currentDocId) {\n if (position < minimumPosition) {\n throw new IOException(\n \"Unexpected position, should be >= \" + minimumPosition + \"!\");\n } else {\n com...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Method descriptor 41 ()Lnet/opengis/gml/x32/ReferenceType;
public abstract ReferenceType getObservedProperty();
[ "boolean ll_isRefType(int typeCode);", "MapReferenceTypeType getMapReferenceType();", "protected void sequence_ReferenceType(ISerializationContext context, ReferenceType semanticObject) {\n\t\tif (errorAcceptor != null) {\n\t\t\tif (transientValues.isValueTransient(semanticObject, FormlPackage.Literals.REFERENC...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Creates new form FrameCliente
@SuppressWarnings("OverridableMethodCallInConstructor") public FrameCliente(Cliente cliente) { this.cliente = cliente; initComponents(); formataFrame(); URL iconURL = getClass().getResource("icon/petIcon.png"); ImageIcon icon = new ImageIcon(iconURL); this.s...
[ "public NuevoClienteFrame() {\n initComponents();\n }", "public JframeInserirColeta() {\n initComponents();\n Utilitarios util = new Utilitarios();\n util.InserirIcon(this);\n util.InserirTitulo(this);\n emf = Persistence.createEntityManagerFactory(\"TCC_JPAPU\");\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
OnBindViewHolder is called by the RecyclerView to display the data at the specified position. In this method, we update the contents of the ViewHolder to display the article details for this particular position, using the "position" argument that is conveniently passed into us.
@Override public void onBindViewHolder(@NonNull ArticleAdapterViewHolder articleAdapterViewHolder, int position) { Article currentArticle = mArticleData.get(position); GlideHelperClass glideHelper = new GlideHelperClass(mContext, currentArticle.getThumbnailUrl(), R....
[ "@Override\n public void onBindViewHolder(ViewHolder holder, int position) {\n // Get the data model based on position\n Article article = articles.get(position);\n\n // Display the title of the current article in that TextView\n holder.titleTextView.setText(article.getTitle());\n\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
This method was generated by MyBatis Generator. This method sets the value of the database column t_system_visit_message.AUDIT_STATE
public void setAuditState(String auditState) { this.auditState = auditState == null ? null : auditState.trim(); }
[ "public void setAuditDate(Date auditDate)\r\n\t{\r\n\t\tthis.auditDate = auditDate;\r\n\t}", "public void setStateManagerValue(String value){\n\t\tthis.stateManagerActionValue = value;\n\t}", "public void setAuditdate(Date auditdate) {\r\n\t\tthis.auditdate = auditdate;\r\n\t}", "public void setStateStamp(Str...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
TODO Autogenerated method stub
public void apply() { this.interpretr.quit(); }
[ "@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" ] ] } }
TODO Autogenerated method stub
@Override public String getDescription() { 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" ] ] } }
Prints the label and cards.
public String toString() { return label + " contains: " + cards.toString(); }
[ "public String printLabels() {\n\t\tString ret = \"Labels:\\n\";\n\t\tfor( String label : labels.keySet() ){\n\t\t\tret += \" label \" + label + \"\\n\";\n\t\t\tArrayList<Integer> curIdSet = labels.get(label);\n\t\t\tfor( Integer id : curIdSet ){\n\t\t\t\tret += \" \" + id.toString() + \" \" + allCards.get(id).nam...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
/This is similar to the add function only it decrements the value in the database instead of incrementing
public void min(String a, Class b){ database = FirebaseDatabase.getInstance().getReference(data + a); Increment.dec(database); Intent startIntent = new Intent(getApplicationContext(), b); startActivity(startIntent); }
[ "public void incr() {\r\n\t\tthis.value++;\r\n\t}", "public void increment() {}", "public void inc() {\n requireWriteTxn();\n IntegerState ts = getDataState();\n ts.txnValue++;\n }", "public void increase() {\r\n this.value = this.value + 1;\r\n }", "public void decrementVa...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Checks to see if its valid to put this block at the specified coordinates. Args: world, x, y, z
public boolean canPlaceBlockAt(World par1World, int par2, int par3, int par4) { return par1World.isBlockNormalCube(par2, par3 - 1, par4) || par1World.getBlockId(par2, par3 - 1, par4) == Block.fence.blockID; }
[ "public boolean canPlaceBlockOnSide(World world, int x, int y, int z) {\n\t\treturn canPlaceBlockAt(world, x, y + 1, z);\n\t}", "private static boolean isSafe(String world, double checkX, double checkY, double checkZ) {\n for (int y = 0; y < 5; y++) { //checking each level\r\n for (int x = 0; x ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
The basis on which the tickets are created by this machine. This includes not only the origin with which the generated tickets will be marked, but also the specification number that is being used by this factory.
public TicketBasis<R> getBasis() { return basis; }
[ "public String getTicketInfo(){\n\t\tif(exitDate == null){\n\t\t\tString a = \"Ticket Info\\nPlate Number : \" + vehicle.getPlateNumber() + \"\\nEntry : \" + entryDate ;\n\t\t\treturn a;\n\t\t}\n\t\t// Printing ticket info\n\t\telse{\n\t\t\tint hours = (int)Math.ceil((double)(exitDate.getTime() - entryDate.getTime(...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
TODO Autogenerated method stub
@Override public void onClick(View v) { Toast.makeText(mContext, listUser.get(tempPosition).username + ": broadcase voice", Toast.LENGTH_SHORT).show(); }
[ "@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" ] ] } }
Residual when from OD process. Z_DOT component in km/s
@JsonProperty("USER_DEFINED_RESIDUAL_6") public Double getUserDefinedResidual6() { return userDefinedResidual6; }
[ "double getEKin() {\n double ek = 0.0;\n for (int i = 0; i < N; i++)\n ek += rv3Dot(v[i], v[i]);\n return .5*ek;\n }", "double getO3();", "double getOmegaDot();", "public double getMZ();", "public double getSlope() {\r\n if (!Double.isNaN(dz)) {\r\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Handle action bar item clicks here. The action bar will automatically handle clicks on the Home/Up button, so long as you specify a parent activity in AndroidManifest.xml.
@Override public boolean onOptionsItemSelected(MenuItem item) { int id = item.getItemId(); //noinspection SimplifiableIfStatement if (id == R.id.action_settings) { return true; } return super.onOptionsItemSelected(item); }
[ "@Override\n\tpublic boolean onOptionsItemSelected(MenuItem item) {\n\t\tswitch(item.getItemId()){\n\t\tcase android.R.id.home:\n\t\t\t// app icon in action bar clicked; go home\n Intent intent = new Intent(this, MainMenuCard.class);\n intent.addFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP);\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
TODO Autogenerated method stub
@Override public ClothingInfo findById(String clothingID) { Connection conn = null; PreparedStatement pstm = null; ResultSet rs = null; ClothingInfo result = null; String sql = "select * from warehouse where `clothingID`='" + clothingID + "'"; try { conn = DBConn.getConnection(); pstm = conn.p...
[ "@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" ] ] } }
givenLength = rand.nextInt(9) + 1;
public void setGivenLength(int i ) { givenLength = i; }
[ "public static int randLength(){\n\n int range = (10-1)+1;\n return (int)(Math.random()*range)+1;\n //random.nextInt(max - min + 1) + min - doesnt work, non-static method in static context\n\n }", "String getRandomStringWithLength(final int length);", "private static int getRandomNumber...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Gets the length of the side of the board, assuming a square board
public int getSideLength(){ return boardSideLength; }
[ "public int getBoardWidth() { return squares[0].length; }", "private int squareWidth() {\n return getWidth() / NUM_COLS;\n }", "public int squareWidth()\n\t{\n\t\treturn (int) getSize().getWidth() / BOARD_WIDTH; \n\t}", "int getBoardColumnCount();", "@Override\r\n\tpublic final int numColumns() {\...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
optional int32 dummy = 1;
public boolean hasDummy() { return ((bitField0_ & 0x00000001) == 0x00000001); }
[ "private static int placeholder() {\n return 0;\n }", "public int prepareInt() {\n return 0;\n }", "public int intValueExact() { throw new RuntimeException(\"Stub!\"); }", "@SpecAssertion(section = \"4.2.3\", id = \"423-C2\")\n @Test\n public void testIntegerZero(){\n fail(\"Not yet...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Get the name of the member
public void apply(ITextViewer viewer, char trigger, int stateMask, int offset) { String methodpart = _name.substring(0,_name.indexOf('(')); String ifacepart = methodpart.substring(0, methodpart.lastIndexOf('.')); ifacepart= ifacepart.substring(ifacepart.lastIndexOf('.')+1,ifacepart.length()); method...
[ "public String getName()\r\n {\r\n return member.getName();\r\n }", "String getMemberName() {\n return member_name;\n }", "public String getMemberName() {\n return memberName;\n }", "public String getMemberName()\n {\n return null;\n }", "public String getMemberName...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
onPostExecute displays the results of the AsyncTask.
@Override protected void onPostExecute(String result) { // swipeRefreshLayout.setRefreshing(true); try { JSONObject jsonObj = new JSONObject(result); JSONArray jArray = jsonObj.getJSONArray("data"); if (jArray.length() > 0) { ...
[ "@Override\n protected void onPostExecute(String s) {\n // execution of result of Long time consuming operation\n progressDialog.dismiss();;\n tv_result.setText(response);\n super.onPostExecute(s);\n\n Log.e(\"Print\", \"Response in onPostExecute section...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Determines if children are allowed for the given node.
public boolean childrenAllowed() { if( definitionItem == null || definitionItem.getChild() == null ) { return false; } return true; }
[ "boolean hasChildren(N node);", "private boolean hasChildren(final int node) {\r\n\tif (node < _firstAttributeNode) {\r\n\t final int type = _type[node];\r\n\t return(((type >= NTYPES) || (type == ROOT)) &&\r\n\t\t (_offsetOrChild[node] != 0));\r\n\t}\r\n\treturn(false);\r\n }", "@DISPID(-2147417040)...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
/============================================================== TestScript : verifythedisplayofelasticstorageadminpage Manual TestCase: QAT1772 Description: verify the display of elastic storage admin page Author : Sukur Babu Creation Date : 08/02/2016 PreRequisites: Revision History: ==================================...
@Test(priority=7) public void verifythedisplayofelasticstorageadminpage() { WebDriver driver = WebDriverUtil.getDriver(); PageFactory.initElements(driver, Home); PageFactory.initElements(driver, Zathra); try { FrameworkUtil.sTestCaseName = "Elastic...
[ "@Test(groups = {\r\n\t\t\t\"Regression\" }, description = \"SET 001-Verify the details displayed in _Define Setup_ screen\")\r\n\tpublic void ESET002() throws InterruptedException, IOException {\r\n\t\textentTest = extent\r\n\t\t\t\t.startTest(\"SET 001-Verify the details displayed in _Define Setup_ screen\");\r\n...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Call to update the visibility of the buttons inside the location bar.
protected void updateButtonVisibility() { updateDeleteButtonVisibility(); }
[ "public void onLocationChanged(Location location) {\n if (!checkLocationsEqual(location, lastLocation)) {\n Button button = (Button) mView\n .findViewById(R.id.nearbylist_update_button);\n button.setVisibility(View.VISIBLE);\n }\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
LamNV Mot dai serial cung batch duoc chia thanh cac dai serial nho co size = 200
private static List<SerialPair> splitRequestLowLevel(String fromSerial, String toSerial) throws Exception { BigDecimal staNoTemp = new BigDecimal(fromSerial); BigDecimal endNoTemp = new BigDecimal(toSerial); BigDecimal i = new BigDecimal(fromSerial); BigDecimal maxReqSize = new BigDecim...
[ "private void nettoyageBatch(){\r\n\t\tList<BatchHisto> listHisto = batchHistoRepository.findByStateBatchHisto(ConstanteUtils.BATCH_RUNNING);\r\n\t\tlistHisto.forEach(batchHisto->{\r\n\t\t\tLocalDateTime now = LocalDateTime.now();\r\n\t\t\tLocalDateTime histPlusHour = batchHisto.getDateDebBatchHisto().plusHours(new...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
String userInfo[][] = new String[2][10];
public static void main(String[] args) { login("fidjfd", "442435235"); }
[ "private Object[][] userlistTo2dArray(List<User> users) {\n Object[][] array = new Object[(users.size())][5];\n for (int i = 0; i < array.length; i++) {\n User user = users.get(i);\n array[i] = new Object[]{user.getId(), user.getName(),\n user.getEmail(), user.getPas...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Inflate the layout for this fragment
@Override public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) { return inflater.inflate(R.layout.post_item, container, false); }
[ "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup parent, Bundle savedInstanceState) {\n // Defines the xml file for the fragment\n return inflater.inflate(R.layout.movie_statistic_layout, parent, false);\n }", "@Override\n\tprotected View initView(LayoutInflater inflate...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
optional uint32 msg_id = 5;
public boolean hasMsgId() { return ((bitField0_ & 0x00000010) == 0x00000010); }
[ "int getMsgId() {\n return msgId;\n }", "long getMsgID();", "void setMsgID(long id);", "public int getMsgType(){\r\n return localMsgType;\r\n }", "private String assignMessageId() {\n String messageId = \"vnpay\";\n intMessageId++;\n...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Adds a child element to this element.
public Element addContent( Element newContent ) { Assert.exists(newContent, Element.class); newContent.importInto(m_element.getOwnerDocument()); m_element.appendChild(newContent.getInternalElement()); return this; }
[ "void appendChild(DomElement childElement);", "public void add(UIElement child) {\n\t\tif (child.getParent() != null) {\n\t\t\tthrow new UIException(\"Can't add element to multiple parents.\");\n\t\t}\n\t\tchild.setParent(this);\n\t\tthis.children.add(child);\n\t}", "void addChild(Node<T> child) {\n\t\tchildren...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Returns a value corresponding to the given lookup key if exists, null otherwise.
V get(String key);
[ "public V lookup(K lookUpKey) {\n\t\treturn null;\n\t}", "@Override\n\tpublic V lookup(K key) {\n\t\tif(size == 0) {\n\t\t\tSystem.out.println(\"There is nothing to look up! Duh...\");\n\t\t\treturn null;\n\t\t}\n\t\tif(arrayList.size() != 0) {\n\t\t\tNode<K,V> tempNode = null;\n\t\t\tfor(int i = 0; i < arrayList...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Retorna a descricao da fila.
public String getDescricao() { return descricao; }
[ "public String getDesc() {\n\t\treturn this.descricao;\n\t}", "public java.lang.String getDescricao() {\n\t\treturn getValue(test.generated.public_.tables.Projetos.PROJETOS.DESCRICAO);\n\t}", "public final String getDescription()\n {\n return cf.getDescription();\n }", "String getDescription( );", "pub...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
/ / / / / / / / / / / / / / / / / / / / / / /
private boolean cutGrass(Action act, Creature performer, Item source, int tilex, int tiley, int tile, short action, float counter) { /* 404 */ float maxQLFromUsedTool = 5.0F; /* 405 */ short yield = 2; /* 406 */ int time = 0; /* 407 */ Skill gardening = null; /* 408 */ Skill toolskill = null; /* 409...
[ "private static void EX5() {\n\t\t\r\n\t}", "protected int snapBits(){return 9;}", "public int getSize() { return 3+length;}", "int getSize() {\r\n return 8;\r\n }", "protected void method_5557() {}", "private void calculatePaths() {\n\n\n }", "void mo8166KB();", "@Override\nint nooftyre...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
cost / items = profitability empty constructor
public EquipmentPackage(){ name = ""; items = 0; cost = 0; profitability = 0; }
[ "@Override\n\tpublic void computeProfit() {\n\t\tCargoItem cargoItem = new CargoItem();\n\t\tcargoItem = (CargoItem) this.compartmentList.get(0);\n\t\tthis.setProfit(this.compartmentList.size() * cargoItem.profit);\n\t}", "public Shipping_Item()\n {\n weight = 0;\n baseCost = BASE_AMOUNT;\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
since Strike is unique might be more efficient to just attempt insertion
public int insertStrike(){ throw new UnsupportedOperationException("not yet supported"); }
[ "int insert(CtcStriking record);", "void insertSelective(Soustraitance record);", "int insert(SKU record);", "int insertSelective(StockPlate record);", "int insertSelective(BookCharacters record);", "int insertSelective(TravelScenic record);", "int insertSelective(HotKeywordsEntity record);", "int ins...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
The method executing the task
public void execute() throws BuildException { System.out.println("TableGenerationTask: " + propertyFile); String args[] = new String[]{propertyFile}; Map map = new HashMap(); map.put("mgrwriter.include", tables); Main.main(args, map); }
[ "public void task(){}", "protected void execute() {\r\n\r\n\t}", "protected void execute()\r\n {\r\n }", "@SuppressWarnings(\"unchecked\")\n\tpublic void run() {\n\t\tthis.doExecute();\n\t\tthis.context.addResult(this.getTaskId(), this.result);\n\t}", "@Override\n public void execute()\n {\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Moves the different body parts of the snake, depending on the direction.
public void move() { PVector head = body.get(body.size()-1).copy(); body.remove(0); body.trimToSize(); head.x += dir.x; head.y += dir.y; body.add(head); if (dir.x != 0 || dir.y != 0) { fieldsMoved++; } }
[ "public void moveSnake () {\n\t\t // move the body\n for (int i = snakeBody.size() - 1; i > 0; i--) {\n \tsnakeBody.get(i).x = snakeBody.get(i - 1).x;\n \tsnakeBody.get(i).y = snakeBody.get(i - 1).y;\n }\n\n // move the head\n // left\n if (direction == 3) {\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Accept requests from other peers
private void acceptRequest(SerializableServerSocket serverSocket) throws IOException { Socket client = serverSocket.accept(); Thread thread = new Thread(new PeerServerThread(client, this)); thread.start(); }
[ "private void listen() throws IOException\n {\n \n client = server.accept();\n clientComm = server.accept();\n String clientIp = client.getInetAddress().getHostAddress();\n TarkovTraderServer.broadcast(\"Client connection from: \" + clientIp);\n \n \n // Cl...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Get the base path which corresponds to only the first context in the contextarray. The base path can be used for fast checking of the origin path of the token.
public TokenContextPath getBase() { if (base == null) { base = getParent().getBase(); } return base; }
[ "public String getContextPath()\r\n {\r\n return \"\";\r\n }", "public static String getContextPath() {\n\t\treturn StringUtil.isNotBlank(properties.getProperty(\"server.contextPath\"))\n\t\t\t\t? properties.getProperty(\"server.contextPath\")\n\t\t\t\t: Constants.APP_CONTXT_PATH;\n\t}", "@Ove...
{ "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() { jScrollPane1 = new javax.swing.JScrollPane(); jTextArea1 = new javax.swing.JTextArea(); jButtonVolver = new javax.swing.JButton(); ...
[ "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" ] ] } }
/ renamed from: e
private TextSelectionAssistant m12571e() { return (TextSelectionAssistant) this.f9158g.get(this.f9158g.size() - 1); }
[ "@Override protected void process (int e) {\n\t\t}", "@Override\n\tpublic void eee() {\n\t\t\n\t}", "public void e() throws c {\n for (i a2 : this.f13971e) {\n a2.e();\n }\n }", "@Override\n\tpublic void visitEnemigo(Enemigo e) {\n\n\t}", "public int e() {\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Tests that at least one required character is present.
public static boolean testForRequiredChar(String password){ for(Character good : CharLists.REQUIRED_CAF_LIST){ if(password.contains(good.toString())){ return true; } } return false; }
[ "public boolean hasChar();", "protected void validateFirstChars(FirstCharsType[] param){\n \n }", "boolean hasEmptyStr();", "boolean hasRequiredCharacterMix(String str) {\n int cnt = 0;\n Perl5Matcher matcher = RegexpUtil.getMatcher();\n for (P...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Read from the socket input into the buffer.
protected final void read(final byte[] buffer) { LOGGER.logTraceId(); try { final int len = input.read(buffer); if (-1 == len) { // the stream has been terminated from the other end fireStreamError(new NotificationException("Remote disconnect...
[ "private void readInput() {\n if (buf.limit() == buf.capacity())\n makeSpace();\n // Prepare to receive data\n int p = buf.position();\n buf.position(buf.limit());\n buf.limit(buf.capacity());\n\n int n = 0;\n try {\n n = source.read(buf);\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Returns a copy of the desired projectile.
public final static CombatProjectile copy(CombatProjectile projectile) { return new CombatProjectile(projectile); }
[ "@Override\n\tpublic ProjectileTree createCopy() {\n\t\treturn new ProjectileTree(this.getPosX(), this.getPosY(), this.reloadTime, this.range, this.maxHealth);\n\t}", "public EntityType getProjectile() { return projectile; }", "public Projectile(){}", "public IPiece copy() {\n return new Pawn(super.get...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Retourne le toString de l'objet (chaine affaichant le contenu des attributs de l'objet)
@Override public String toString() { String sortie = "==> Instance de la classe Svn : \n"; sortie += "String url = "+this.getUrl()+" \n"; sortie += "String login = "+this.getLogin()+" \n"; sortie += "String password = "+this.getPassword()+" \n"; return sortie; }
[ "public String toString() {\r\n\t\treturn StringUtil.formatObjectToString(this);\r\n\t}", "@Override\n public String toString() {\n String texto;\n\n texto = \"\" + getNome() + getSobrenome();\n\n return (texto);\n }", "@Override\r\n String toString();", "@Override\n\tpublic String ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Setter for this Square's size.
public void setSize(double size) { this.size = size; }
[ "public void setSize(int square) {\r\n\t\tthis.square = square;\r\n\t\tinit();\r\n\t}", "public void setSize(int s) {\n this.size = s;\n }", "private void setSize(int size) {\r\n\t\tthis.size = size;\r\n\t}", "public void setSize(float siz) {\n s = siz;\n }", "public void setSize(Recta...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Display the first 500 characters of the response string.
@Override public void onResponse(String response) { String json = response.replaceAll("[(?);]",""); try { JSONArray jsonArray = new JSONArray(json); for (int i=0; i < jsonArray.length();...
[ "@Override\n public void onResponse(String response) {\n mTextView.setText(\"Response is: \"+ response.substring(0,500));\n\n }", "@Transient\n public String getShortenedDescription() {\n return StringUtils.abbreviate(description, 500);\n\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Called after the code parses a descriptor
void setMddOverride(int protocolType, int fdocaTripletLid, int fdocaFieldType, int ccsid, int characterSize, int mode, int length) { mddOverride_ = true; if (...
[ "protected Descriptive() {}", "public void descriptionChenged() {\r\n }", "protected void sequence_Description(ISerializationContext context, Description semanticObject) {\n\t\tif (errorAcceptor != null) {\n\t\t\tif (transientValues.isValueTransient(semanticObject, InfoProjectPackage.Literals.DESCRIPTION__NA...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Transforms the incoming data from one format to another. For example, this can be useful if the data is to be sent as an hl7 message which doesn't support xml
public String serializeFormData(String data);
[ "public T2 transform(final T1 data) throws Exception;", "public void testOneConsumerResponseTransform() throws Exception {\n\t\tString xmlSource=\"<?xml version='1.0' encoding='UTF-8'?><ResponseDatacodeXML><_0700>1045261598481:213:PHXID130_Q1:</_0700><_8600>111408</_8600><_8601>111409</_8601><_9901><_8048>'A' MAI...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Returns the scale value.
public float getScale() { return scale; }
[ "public double getScale() {\n return _scale;\n }", "public double getScale()\n {\n\tsynchronized (scaleLock)\n\t{\n\t return scale;\n\t}\n }", "public double getScale() {\r\n\t\t\treturn scale;\r\n\t\t }", "public float getScale() {\n return this.scale;\n }", "public final double g...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Takes either the motor positions as doubles or a String and null, where the String is one of the alignment stage positions.
public void setOutBeamPosition(Map<String, Double> scanableMotorPositions) throws DeviceException { outbeamPosition = setPosition(EdePositionType.OUTBEAM, scanableMotorPositions); }
[ "public String getSenseOfMotionQual() {\n String value = (String)this.somParam.getValue();\n if(value.equalsIgnoreCase(QUANTITATIVE) || value.equalsIgnoreCase(UNKNOWN)) return null;\n return (String)somQualParam.getValue();\n }", "@Override\n public Double getDouble(String arg0) {\n return null;\n...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
TODO Autogenerated method stub
@Override public boolean scrolled(int amount) { return false; }
[ "@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" ] ] } }
Created by Gaurav Saluja on 13Apr18. Configuration persistent component
@ConfigPersistent @Component(dependencies = AppComponent.class) public interface ConfigPersistentComponent { ActivityComponent activityComponent(ActivityModule activityModule); FragmentComponent fragmentComponent(FragmentModule fragmentModule); }
[ "public Configuration() {\n this.data = new Properties();\n }", "protected abstract void config();", "public interface Configuration extends AbstractModel {\n\n\t/**\n\t * @return The name of the configuration.\n\t */\n\tpublic String getName();\n\n\t/**\n\t * @param name\n\t * The new name of th...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Returns a random dice result
public static int getFakeValuation() { int result; // Multiplies the Math.random result (0.0 to 1.0) with 5 // and round it to the upper integer result = (int) Math.ceil(Math.random() * 5); return result; }
[ "public int diceResult() {\n\t\tint dice1 = (int) (Math.random() * 6) + 1;\n\t\tint dice2 = (int) (Math.random() * 6) + 1;\n\t\treturn dice1 + dice2;\n\t}", "public void rollDice(){\n\t\t\n\t\t// what algo should we use?\n\t\t// Us Math.random\n\t\t\n\t\tdie1 = (int) (Math.random()*6 + 1);\n\t\tdie2 = (int) (Math...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Spec about the container image to launch. .google.dataflow.v1beta3.ContainerSpec container_spec = 4;
@java.lang.Override public com.google.dataflow.v1beta3.ContainerSpecOrBuilder getContainerSpecOrBuilder() { if (templateCase_ == 4) { return (com.google.dataflow.v1beta3.ContainerSpec) template_; } return com.google.dataflow.v1beta3.ContainerSpec.getDefaultInstance(); }
[ "@Description(\n \"Container image used to configure the SDK execution environment of \"\n + \"pipeline code on a worker. For non-portable pipelines, can only be \"\n + \"used for official Dataflow container images.\")\n String getSdkContainerImage();", "private ImageReviewContainerSpec(co...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
This method was generated by MyBatis Generator. This method sets the value of the database column account_register_payments.create_uid
public void setCreateUid(Integer createUid) { this.createUid = createUid; }
[ "public void create() {\r\n uid = newUserBean.createUser(username,password,address,usertype,message);\r\n }", "public String getCreateUsrId() {\n return this.ojv_create_usr_id;\n }", "@Override\n public void create(Integer uid, Long money, Long benefitMoney) {\n jdbcTemplate.update...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Register a block to worldgeneration
public static void registerOreForGeneration(OreGenDim oregendim) { HashMap<Integer, ArrayList<OreGen>> gen = CoreLib.getInstance().getGenerationList(); if (gen.get(oregendim.getDimid()) == null) { ArrayList<OreGen> list = new ArrayList<OreGen>(); list.add(oregendim.getOreGen()); gen.put(oregendim.getDimid(...
[ "void registerBlock();", "public void registerObject() {\n\t\tGameRegistry.registerBlock(this, name);\n\t}", "public static void registerBlock (Block block, String name, int id) {\n Block.field_149771_c.func_148756_a(id, name, block);\n }", "void registerBlock(ServiceAddress block) throws NetworkAdm...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Sets the user uuid of this employee detail.
@Override public void setUserUuid(String userUuid) { _employeeDetail.setUserUuid(userUuid); }
[ "@Override\r\n\tpublic void setUserUuid(java.lang.String userUuid) {\r\n\t\t_esfTool.setUserUuid(userUuid);\r\n\t}", "@Override\n\tpublic void setUserUuid(java.lang.String userUuid) {\n\t\t_day.setUserUuid(userUuid);\n\t}", "@Override\n\tpublic void setUserUuid(java.lang.String userUuid) {\n\t\t_workDay.setUser...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
calculate throughput of volumes per year
public Integer getCalcThroughputPerYear() { DateTime start = new DateTime(this.myProjekt.getStartDate().getTime()); DateTime end = new DateTime(this.myProjekt.getEndDate().getTime()); int years = Years.yearsBetween(start, end).getYears(); if (years < 1) { years = 1; }...
[ "public double calculateTotalOverallBudgetByYear(int projectID, int year);", "public double calculateTotalActivityBudgetByYear(int activityID, int year);", "public static long getTotalRevenueDuringYear(int year) {\n return getSalesDetails()\n .stream()\n .filter(sale -> sale...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Creates a StyleSheetEntry for the specified context and styleSheetName. This method will log any errors/exceptions and return null if the style sheet source file could not be found/parsed.
public static StyleSheetEntry createEntry( StyleContext context, String styleSheetName ) { // In order to create the StyleSheetEntry, we need to locate and // parse the style sheet file. We use a NameResolver to use to // find the style sheet. NameResolver resolver = _getNam...
[ "public static XStyle createCellStyle(XSpreadsheetDocument doc, String styleName)\r\n {\r\n XComponent compDoc = Lo.qi(XComponent.class, doc);\r\n XNameContainer styleFamilies = Info.getStyleContainer(compDoc, \"CellStyles\");\r\n\r\n XStyle style = Lo.createInstanceMSF(XStyle.class, \r\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
TODO Autogenerated method stub
@Override public Book save(Book book) { return bookRepository.save(book); }
[ "@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 praut 1.
public void setPraut1(String praut1) { this.praut1 = praut1; }
[ "public void setNumOne(int n1)\r\n\t{\n\t\tnumOne = n1;\r\n\t}", "public void setProrroga1(int prorroga1) { this.prorroga1 = prorroga1; }", "public Builder setGENTEMP1(int value) {\n bitField0_ |= 0x00000002;\n gENTEMP1_ = value;\n onChanged();\n return this;\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
System.out.format("Clicked: %d, %d ", posx, posy);
public void mousePressed (MouseEvent e) { if(SwingUtilities.isLeftMouseButton(e) && display.onTurn) { //System.out.format("left \n"); display.select_display_move(posx, posy); display.control.newSelect(posx, posy,display.split_on); display.split_on=false; int temp=display.control.execute(); ...
[ "public void mouseClicked(final MouseEvent event) {\r\n// this.mousePosition.setText( \"Clicked at [\" + event.getX() + \", \" + event.getY() + \"]\" );\r\n// repaint();\r\n }", "public void mouseClicked(MouseEvent e) {\n e.getPoint();\n int pointX = e.getPoint().x;\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Returns a Reminder instance from the database based on the primary key, id
@Select(SELECT_BY_ID) @Results(value = { @Result(property="id", column="ID"), @Result(property="name", column="NAME"), @Result(property="description", column="DESCRIPTION"), @Result(property="dueDate", column="DUE_DATE"), @Result(property="status", column=...
[ "Meeting selectByPrimaryKey(Integer id) throws SQLException;", "ResponseEntity<ReminderResponse> getReminderById(long id);", "DormitorNotice selectByPrimaryKey(Integer id);", "Paciente selectByPrimaryKey(Integer id);", "Todo selectByPrimaryKey(Integer id);", "public Reminder getReminder(int reminderId) {\...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
optional uint32 owner_account_id_1 = 2;
public int getOwnerAccountId1() { return ownerAccountId1_; }
[ "long getUAccountid();", "long getAAccountid();", "public String getOwnerAccount();", "public interface Account extends AccountState {\n\n /** The constant DEFAULT_NONCE. */\n long DEFAULT_NONCE = 0L;\n /** The constant MAX_NONCE. */\n long MAX_NONCE = -1; // per twos compliment rules -1 will be the unsig...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
optional fixed64 published_file_id = 1;
public long getPublishedFileId() { return publishedFileId_; }
[ "long getFileIdReplicated();", "public long getFileId() {\n return fileId;\n }", "public long getFileID() {\n return fileID;\n }", "@Override\n public File getFileById(String fileId) {\n return null;\n }", "String getFileIdModifier();", "public String getFileId() {\n retu...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
/ renamed from: f
public Bundle mo14763f() { if (VERSION.SDK_INT >= 19) { return this.f10453a.getExtras(); } return new Bundle(); }
[ "public abstract T mo8125a(F f);", "public void mo92799a(float f) {\n }", "public static void f() {\n\n\t}", "@Override\n public void f() {\n }", "void mo11404bf(float f);", "private void f() {\n }", "void mo22696a(float f);", "private static void plus(float f...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Test of addAll method, of class MyLinkedList.
@Test public void testAddAll_GenericType() { System.out.println("addAll"); MyLinkedList<String> instance = new MyLinkedList(); String[] expResult = {"111", "2222", "sdafasdf"}; instance.add("blah"); boolean result = instance.addAll(expResult); assertTrue(re...
[ "@Test\n\tpublic void AddAllTest1() {\n\t\tlist.add(\"sop\");\n\t\tlist.addAll(myList);\n\t\tint newSize = list.size();\n\t\tint expected = myList.size() + 1;\n\t\tassertEquals(\"After calling addAll(otherList) on the list with 1 element, the list should \"\n\t\t\t\t+ \"have increased in size by otherList's size.\"...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Ordinamento conti per saldo e poi per iban
public ArrayList<Conto> ordinamentoSaldoIban() { ArrayList<Conto> array = new ArrayList<Conto>(conti.values()); array.sort(new ContoComparatorSI()); return array; }
[ "private void sustraendoACancelar(OrdenDePago ordenDePago, Session s) {\r\n int aPartirDe = (int) (General.parametros.get(\"ut\").getValorDouble()\r\n * General.parametros.get(\"factorISLR\").getValorDouble());\r\n Double sustraendo = 0d;\r\n String sql = \"SELECT SUM(C.baseIslr)...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
This method was generated by MyBatis Generator. This method sets the value of the database column CMST_TRANSFDEVICE.MAINID
public void setMainid(String mainid) { this.mainid = mainid == null ? null : mainid.trim(); }
[ "public void setMainId(String mainId) {\n this.mainId = mainId;\n }", "public void setMAIN_EMPLOYEE_ID(BigDecimal MAIN_EMPLOYEE_ID)\r\n {\r\n\tthis.MAIN_EMPLOYEE_ID = MAIN_EMPLOYEE_ID;\r\n }", "public void setMainApp(Main mainApp) {\n\n this.mainApp = mainApp;\n\n adres_table.setIt...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Sets the email sttting id.
public void setEmailSettingId(Long emailSettingId) { this.emailSettingId = emailSettingId; }
[ "public void set_email_id(String email) {\n\t\tdriver.findElement(email_id).sendKeys(email);\n\t}", "public void setUserMailId(final String value)\r\n\t{\r\n\t\tsetUserMailId( getSession().getSessionContext(), value );\r\n\t}", "@Override\n\tpublic void setId(String to) {\n\t\tthis.id=to;\n\t}", "public Strin...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
This is populated when the previous :ref:`DiscoveryResponse &lt;envoy_api_msg_service.discovery.v3.DiscoveryResponse&gt;` failed to update configuration. The message field in error_details provides the Envoy internal exception related to the failure. .google.rpc.Status error_detail = 7;
com.google.rpc.StatusOrBuilder getErrorDetailOrBuilder();
[ "private InquiryLightResponse getInquiryLightResponseError()\r\n\t{\r\n\t\tInquiryLightResponse response = new InquiryLightResponse();\r\n\t\tresponse.setOperationSuccess(Status.ExceptionError);\r\n\t\tresponse.addFieldErrorMessage(ERROR_CODE);\r\n\t\treturn response;\r\n\t}", "@TargetApi(Build.VERSION_CODES.JELL...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
A pseudounique (random) number assigned to this span instance. The spanId is immutable and cannot be changed. It is safe to access this from multiple threads.
public long getSpanId() { return this.spanId; }
[ "@Override\r\n\tpublic void makeRandomNumber() {\n\t\t\r\n\t}", "public java.lang.String getSpanId() {\n java.lang.Object ref = spanId_;\n if (ref instanceof java.lang.String) {\n return (java.lang.String) ref;\n } else {\n com.google.protobuf.ByteString bs = \n (com.google...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
/ Diese Klasse wird noch nicht verwendet
public BoostPad(JumpPads jumpPads, String name, Material material, Location loc) { jumpPads.super(name, material, loc); }
[ "@Override\n }", "@Override\n public void extornar() {\n \n }", "public Levyt(){\n\t\t\t//oletus muodostaja\n\t\t}", "@Override\n\t\tpublic void classement() {\n\t\t\t\n\t\t}", "private Lieu() {\n\t}", "private O()\r\n {\r\n super();\r\n }", "Cokolady()\t...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Set the canDelete property: Delete enabled.
public ContentProperties setCanDelete(Boolean canDelete) { this.canDelete = canDelete; return this; }
[ "public Boolean getCanDelete() {\r\n return canDelete;\r\n }", "@Override\n public boolean canDelete()\n {\n return true;\n }", "public void setIsRestrictedDelete(java.lang.Boolean isRestrictedDelete) {\n this.isRestrictedDelete = isRestrictedDelete;\n }", "@Override\n p...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Called when it is time for this object to be drawn. When this method is called, this object will not have done the default render yet. It can be signalled that the default render should happen by returning true. If false is returned, then no rendering will be done (except whatever is done in this method obviously).
boolean render( Batch batch );
[ "public boolean shouldDraw() {\n\t\treturn shouldDraw;\n\t}", "protected final void forceDraw()\n\t{\n\t\tdraw = true ;\n\t}", "public void render() {\n if (!isDead() && !isGoal())\n getController().render();\n\n //used to render 2d items etc...\n Batch batch = getController().ge...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
another helper function, to recurse across tree
protected void recursiveBuildTree(DefaultMutableTreeNode parent, List<NodeComponent> children){ for(NodeComponent aNode: children){ DefaultMutableTreeNode node = new DefaultMutableTreeNode(((NodeComponent) aNode).getName()); parent.add(node); if(aNode instanceof Group){ recursiveBuildTree(node, ((Group) ...
[ "private void depthSearch() {\n\t\t// TODO\n\t}", "private void traverseRecursively(Node node) {\n\n // 1 - in recursive call, first statement is always a return condition\n if (node == null) return;\n\n // 2 - things that you actually want to do.\n // This can be before or after recur...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Creates a new instance of UauarioResource
public UsuarioResources() { }
[ "@Override\n\t\t\tpublic Resource createResource(URI uri) {\n\t\t\t\treturn new ResourceImpl(uri){\n\n\t\t\t\t\tFMU fmu;\n\t\t\t\t\t\n\t\t\t\t\t/* (non-Javadoc)\n\t\t\t\t\t * @see org.eclipse.emf.ecore.resource.impl.ResourceImpl#load(java.util.Map)\n\t\t\t\t\t */\n\t\t\t\t\t@Override\n\t\t\t\t\tpublic void load(Map...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Start an alpha animation for clicked item
@Override public void onItemClick(AdapterView<?> parent, View view, int position, long id) { Animation animation1 = new AlphaAnimation(0.3f, 1.0f); animation1.setDuration(200); view.startAnimation(animation1); HashMap<String, String> report = n...
[ "public void animateClickedView(final View view) {\n view.setAlpha(0.2f);\n view.postDelayed(new Runnable() {\n @Override\n public void run() {\n view.setAlpha(1.0f);\n }\n }, 2200L);\n }", "@Override\n public void onClick(View v) ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
/ access modifiers changed from: private
public void doAnimatingStep(int i) { this.mTotalHeight += i; this.mTotalHeight = Math.min(this.mTotalHeight, getMaxTotalHeight()); this.mTotalHeight = Math.max(this.mTotalHeight, this.mMinTotalHeight); int i2 = 0; int i3 = 0; for (Bitmap height : this.mLongBitmapDrawable....
[ "@Override\n }", "protected void method_5557() {}", "@Override\n public void extornar() {\n \n }", "@Override\r\n public void publicando() {\n }", "@Override\n\t\t\t\tpublic void pintate() {\n\t\t\t\t\t\n\t\t\t\t}", "private InternalReflect() {\n\t\t\t// do nothing\n\t\t}", ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Implements the override method from CRUD interface. Get a Cita record by its ID.
@Override public Cita getRecordById(Object id) { ResultSetHandler<Cita> resultSetHandler = new BeanHandler<>(Cita.class); try{ return new QueryRunner().query(connection, "select * from cita where NUMEROREGISTRO = ?", resultSetHandler, id); }catch (Exception e)...
[ "@Override\n\tpublic Record get(int id) {\n\t\treturn recordRepository.getOne(id);\n\t}", "private Customer findRecord(Long id) {\n\t\treturn ofy().load().type(Customer.class).id(id).get();\n\t}", "@Override\n\tpublic Ana get(int id) {\n\t\treturn this.baseDaoSupport.queryForObject(\"select * from ana where new...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
if (this == obj) return true; if (obj == null) return false; if (getClass() != obj.getClass()) return false;
@Override public boolean equals(Object obj) { Vertex other = (Vertex) obj; // logger.info("(" + this.getxCood() + "," + this.getyCood() + // ") : (" + other.getxCood() + "," + other.getyCood() + ")"); // settled.getxCood() == destination.getxCood() & // settled.getyCood() == destina...
[ "public boolean equals( Object obj )\n {\n return obj == this || ( obj != null && getClass().equals( obj.getClass() ) );\n }", "@Override\n\tpublic boolean equals(Object obj) {\n\t\tif (obj == null) {\n\t\t\treturn false;\n\t\t} else {\n\t\t\treturn getClass().equals(obj.getClass());\n\t\t}\n\t}", ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
The following method decides the type of ViewHolder to display in the RecyclerView
@Override public int getItemViewType(int position) { if(position==0){ return VIEW_TYPE_RESULT; } return VIEW_TYPE_ITEM; }
[ "protected abstract VH onCreateRecyclerViewHolder(View view, int viewType);", "@Override\n public void onBindViewHolder(RecyclerView.ViewHolder holder, int position) {\n\n switch (getItemViewType(position)){\n case MultipleViewTypesAdapter.ITEM_MODEL:\n //this method will be ca...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Methode zum Aufrufen von Screening Objects anhand des cinemaFK.
@Override public Vector<Screening> getScreeningByCinemaFK(int cinemaFK) throws IllegalArgumentException { return this.scMapper.findScreeningByCinemaFK(cinemaFK); }
[ "private void iObjectCollition() {\n \t\tint x = kangaroo.getPosition().getX() / Constants.TILE_SIZE;\n \t\tint y = kangaroo.getPosition().getY() / Constants.TILE_SIZE;\n \t\tfor (int i = x; i < x + 2; i++)\n \t\t\tfor (int j = y; j < y + 3; j++)\n \t\t\t\tif (gameMap.getIObjectAt(i, j) != null)\n \t\t\t\t\tgameMap...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Create a new user with an autogenerated id and email and name as passed values.
@RequestMapping(value = "/create") @ResponseBody public String create(@RequestBody String jsonString) { try { System.out.println("jsonString..." + jsonString); JSONObject jsonObject = new JSONObject(); JSONParser jsonParser = new JSONParser(); jsonObject = (JSONObject) jsonParser.parse(jsonString); ...
[ "public void createUser() {\n if (userService.getByEmail(\"test\") == null) {\n userService.create(\"test\", \"test\", \"Testing\", \"User\", Boolean.FALSE);\n }\n }", "void createUser(String firstName, String lastName);", "@PostMapping(\"/users/create\")\n public Stm_User createU...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
/ Requires valid arguments.
static ArraySourceBlockEncoder newEncoder(ArrayDataEncoder dataEncoder, final byte[] array, int arrayOff, FECParameters fecParams, int sbn) { ImmutableList<SourceSymbol> sourceSymbols = DataUtils.partitionSourceBlock( sbn, fecParams, arrayOff, SourceSymbol.class, new DataUtils.S...
[ "private static void verifyArgs()\r\n\t{\r\n\t\tif(goFile == null)\r\n\t\t{\r\n\t\t\tSystem.err.println(\"Error: you must specify an input ontology file.\");\r\n\t\t\texitError();\r\n\t\t}\r\n\t\tif(annotFile == null)\r\n\t\t{\r\n\t\t\tSystem.err.println(\"Error: you must specify an input annotation file.\");\r\n\t...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Parses the given date string returned by the AWS service into a Date object.
public static Date parseServiceSpecificDate(String dateString) { if (dateString == null) return null; try { BigDecimal dateValue = new BigDecimal(dateString); return new Date(dateValue.scaleByPowerOfTen( AWS_DATE_MILLI_SECOND_PRECISION).longValue()...
[ "public static Date parse(String dateString) throws ParseException {\n return parse(dateString, null);\n }", "private static Date parseDateString(String dateString) {\n Date parsedDate = null;\n try {\n parsedDate = new SimpleDateFormat(DATE_FORMAT).parse(dateString);\n }...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
String representation of this file object. Gives a string representation of the file.
public String toString() { return "File Name: " + this.name + "\nParent Directory: " + this.parentDir.getName() + "\nContent:\n" + this.content; }
[ "public String toString() {\n return file.getName();\n }", "public String toString() { \n return name_of_file;\n }", "@Override\n public String toString()\n {\n return \"file: \" + mFile.getAbsolutePath();\n }", "@Override\n public String toString() {\n StringBuilder s...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
create two fan objects
public static void main(String[] args) { Fan fan1 = new Fan(); Fan fan2 = new Fan(); // set fan properties for first fan and print output as described in problem statement fan1.setSpeed(Fan.FAST); fan1.setRadius(10); fan1.setColor("yellow"); fan1.setOn(tr...
[ "Fan(){\r\n\t\t\r\n\t}", "public static void main(String[] args) {\n Fan fan1 = new Fan();\n fan1.setSpeed(fan1.FAST);\n fan1.setRadius(10);\n fan1.setColor(\"yellow\");\n fan1.setOn(true);\n System.out.println(fan1.toString());\n\n Fan fan2 = new Fan();\n f...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Ferme les activity ouvertes a la fin des tests
public void tearDown() throws Exception { solo.finishOpenedActivities(); }
[ "@After\n public void tearDown() throws Exception\n {\n solo.finishOpenedActivities();\n }", "@After\n public void tearDown() throws Exception {\n solo.finishOpenedActivities();\n }", "@After\r\n public void tearDown() throws Exception\r\n {\r\n // Set to null and finish\r\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }