query stringlengths 8 1.54M | document stringlengths 9 312k | negatives listlengths 19 20 | metadata dict |
|---|---|---|---|
Append to end of array | public void append(int item) {
// If the array is full, resize it.
if (items.length == count) {
int[] new_items = new int[count*2];
System.arraycopy(items, 0, new_items, 0, count);
items = new_items;
}
// Add the new item at the end.
it... | [
"public void addArrayEle(int data) \r\n{\n if (count == size) { \r\n growSize(); // make array size double \r\n } // insert element at end of array \r\n array[count] = data; \r\n count++; \r\n}",
"public void append(byte[] value) {\n append(value, 0);\n }",
"public void append(int[] arr){... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
This function checks if one country is in one continent only | public boolean isSingleContinent(){
boolean flag = true;
ArrayList<String> temp = new ArrayList<String>();
temp.add("nothing");
for (int key : country_map.keySet()){
String cname = country_map.get(key);
if (temp.contains(cname)){
flag = false;
... | [
"public boolean continent(Player p, int cont)\n {\n int start = 0;\n int end = 0;\n if (cont == 0)\n {\n start = 1; end = 10;\n }\n if (cont == 1)\n {\n start = 10; end = 14;\n }\n if (cont == 2)\n {\n start = 14; end = 21;\n }\n if (cont == 3)\n {\n start... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Shows label, field and button to allow adding/editing of caption. | public void editCaption() {
if(table.getSelectionModel().getSelectedIndex() == -1) {
Alert alert = new Alert(AlertType.ERROR, "Please select an item.");
alert.showAndWait();
}
else {
if(captionLabel.isVisible()) {
hideAll();
}else {
hideAll();
captionLabel.setVisible(true);
editCaption... | [
"void setAddButtonCaption(String caption);",
"public void setCaption(String caption) {\n setProperty(\"caption\", caption);\n }",
"public abstract void setCaption(String caption);",
"@Override\n public String getCaption() {\n return caption;\n }",
"@Override\n\tpublic void setCaption(String text) {... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
displays all relevant info : plots go here | private static void print(boolean check) {
lineDataset.addValue(sustainability, "sustainability", Integer.toString(tick));
lineDataset.addValue(supplier.getTotCost(), "Supplier cost", Integer.toString(tick));
lineDataset.addValue(buyer.getTotCost(), "Buyer cost", Integer.toString(tick));
if(check) {
marke... | [
"public void showAttributes()\n {\n //Stats Panel\n stats.clearBarPlots();\n displayStats(stats);\n stats.revalidate();\n\n //Crops Data\n cropStats.clearBarPlots();\n displayCrops(cropStats);\n cropStats.revalidate();\n\n //Land Data\n landStats.clearBarPlots();\n displayLand(land... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
To be override by the detailed business block interface | @Override
protected void initContent() {
Rectangle rect = contPan.getBounds();
ca1 = new JLabel("演出计划管理", JLabel.CENTER);
ca1.setBounds(0, 5, rect.width, 30);
ca1.setFont(new java.awt.Font("宋体", 1, 20));
ca1.setForeground(Color.blue);
contPan.add(ca1);
jsc = new JScrollPane();
jsc.setBounds(0, 40, re... | [
"@Override\n }",
"public interface BSBlock extends EObject\n{\n}",
"@Override\n\tprotected void body()\n\t{\n\n\t}",
"@Override\r\n\tpublic void hablar() {\n\t\t\r\n\t}",
"public ExtendedOperationDetailsPage( ExtendedOperationsMasterDetailsBlock emdb )\n {\n masterDetailsBlock = emdb;... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Use this factory method to create a new instance of this fragment using the provided parameters. | public static ManagementTabStripFragment newInstance() {
ManagementTabStripFragment fragment = new ManagementTabStripFragment();
Bundle args = new Bundle();
fragment.setArguments(args);
return fragment;
} | [
"public static PostFragment newInstance() {\n PostFragment fragment = new PostFragment();\n// Bundle args = new Bundle();\n// args.putString(ARG_PARAM1, param1);\n// args.putString(ARG_PARAM2, param2);\n// fragment.setArguments(args);\n return fragment;\n }",
"public H... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
implements javax.swing.table.TableColumnModel Returns the number of columns selected. | @Override
public int getSelectedColumnCount() {
if (selectionModel != null) {
final int iMin = selectionModel.getMinSelectionIndex();
final int iMax = selectionModel.getMaxSelectionIndex();
int count = 0;
for(int i = iMin; i <= iMax; i++) {
if... | [
"public int getColumnCount() {\n\treturn treeTableModel.getColumnCount();\n }",
"public int getColumnCount() {\n if (hasModel()) {\n return model.getColumnCount();\n }\n return 0;\n }",
"public int getColumnCount () {\n\tcheckWidget ();\n\treturn columns.length;\n}",
"pub... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
TODO writeNewCode Map emptyMap = new HashMap(); // codeMap.put("code", code); | public static void writeNewAlbumCode(String albumCode, String userID, String eventName, CallBack_saveData callBack_saveData) {
Map<String, Object> albumMap = new HashMap<>();
albumMap.put(EVENT_NAME_KEY, eventName);
// db.collection(USERS_PATH)
// .document(userID)
// ... | [
"@Override\n\tpublic void loadMap(String code) {\n\t\t\n\t}",
"List<CmmCodeDetailVO> giveMeCode(Map<String, Object> codeMap);",
"protected void putCode(HashMap<String, Long> map, String key) {\n\t\tmap.put(key, (long) (map.size() + 1));\n\t}",
"@Override\n public Map<String, String> asMap() {\n retu... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
TODO Autogenerated method stub | public String findOidByOrderNo(String orderNo) {
return xhOrderDao.findOidByOrderNo(orderNo);
} | [
"@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 long getItemId(int position) {
return 0;
} | [
"@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"
]
]
}
} |
Getter for Member arraylist | public ArrayList<Member> getMembers(){
return this.members;
} | [
"public ArrayList<Object> getMembers(){\n\t\treturn listOfMembers;\n\t}",
"public java.util.List<java.lang.Integer> getMemberList() {\n return java.util.Collections.unmodifiableList(result.member_);\n }",
"@Override\r\n\tpublic List<GradeMemberBean> getMemberList() {\n\t\treturn null;\r\n\t}",
"Li... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Returns the shape's shape. | Shape getShape(); | [
"public String getShape() {\n\t\treturn this.shape;\n\t}",
"public int getShape( ) {\r\n return shape;\r\n }",
"public RoundedPolygon getShape() {\n\t\treturn shape;\n\t}",
"@Override\n\tpublic Shape getShape() {\n\t\treturn this.shape;\n\t}",
"public Shape getShape(){\n\t\treturn shape;\t\t\n\t}",
... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Handle a user exception. Called by UserKernel.exceptionHandler(). The cause argument identifies which exception occurred; see the Processor.exceptionZZZ constants. | public void handleException(int cause) {
Processor processor = Machine.processor();
switch (cause) {
case Processor.exceptionSyscall:
int result = handleSyscall(processor.readRegister(Processor.regV0),
processor.readRegister(Processor.regA0),
processor.readRegister(Processor.regA1),
... | [
"public void handleException(int cause) {\n Processor processor = Machine.processor();\n\n switch (cause) {\n case Processor.exceptionSyscall:\n int result = handleSyscall(processor.readRegister(Processor.regV0), processor.readRegister(Processor.regA0),\n processor... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
This method was generated by MyBatis Generator. This method returns the value of the database column tb_cc_info.relay2 | public String getRelay2() {
return relay2;
} | [
"public String getCustomer2() {\n return customer2;\n }",
"public String getContactNum2() {\n\t\treturn contactNum2;\n\t}",
"public java.lang.Integer getTrx_num2() {\n\treturn trx_num2;\n}",
"public String getSQAL_2() {\n\t\treturn SQAlumno_2;\n\t}",
"public Integer getComp_id_2() {\n retur... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Gets the total progress, usually compared with getProgress to determine percent complete | public int getTotalProgress(int id); | [
"public double percentage() {\n return this.progress / (double) this.total;\n }",
"public float getProgress() {\n return ((float) downloaded / size) * 100;\n }",
"public synchronized int getProgress() {\r\n\t\treturn m_progress;\r\n\t}",
"public double getProgress() {\n return ins... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
total number of rented cars | public int totalRentedCars()throws NullPointerException{
return this.rentedCarsList.size();
} | [
"public int quantityOfCrossedCars(){\n int counter = 0;\n for (Transport transport: vehicles){\n if (transport instanceof Car){\n counter++;\n System.out.println(transport.toString());\n }\n }\n return counter;\n }",
"int getCostsP... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
TODO Autogenerated method stub | @Override
public void mouseReleased(MouseEvent arg0) {
} | [
"@Override\n }",
"@Override\n\t\t\t\tpublic void pintate() {\n\t\t\t\t\t\n\t\t\t\t}",
"@Override\n public void extornar() {\n \n }",
"@Override\r\n\tpublic void hablar() {\n\t\t\r\n\t}",
"@Override\n\t\tpublic void kayit1() {\n\t\t\t\n\t\t}",
"@Override\r\n\tpublic void wydaj() {\n... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Arrange space for arriving ships. | public void arrive(Ship ship) {
if (this._zoneType.equals(ZoneTypes.ARRIVAL)) {
try {
// Occupy one space in arrival zone for this new ship
this._arrivalQueueSemaphore.acquire();
this._arrivalOperateSemaphore.acquire();
this._arrivalShi... | [
"public void placeShip(){\n\t\tint shipsToPlace = numShips(); \n\t\t//while there are ships to still place onto board\n\t\twhile(shipsToPlace>0){\n\t\t\tship_strategy.place(DefaultShipSize);\n\t\t\tnotifyObservers(0);\n\t\t\tif(is_valid==true) \n\t\t\t\tshipsToPlace--;\n\t\t}\n\t}",
"public void placeShips() {\n\... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Gets external system URI. | public String getUri() {
return uri;
} | [
"public String getSystemUri() {\n\t\tString uri = this.getVocabularyReference();\n\t\t\n\t\tif (id.equalsIgnoreCase(\"SNOMED\")) uri = \"http://snomed.info/sct\";\n\t\telse if (id.equalsIgnoreCase(\"ICD9CM\")) uri = \"http://hl7.org/fhir/sid/icd-9-cm\";\n\t\telse if (id.equalsIgnoreCase(\"ICD9Proc\")) uri = \"http:... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Les methodes de traitement des compteAvecdecouv | CompteAvecDecouv findCompteAvecDecouvById(int id); | [
"@Override\n\tpublic void methodeC2() {\n\t\t\n\t}",
"public void afficherToutesLesCommandes() {\n\t\tcommandes.afficherToutesLesCommandes();\n\t}",
"@Test\n public void test_DaoCompte_specific_methods() {\n \n try{\n System.out.println(\"test_DaoCompte_specific_methods\");\n Collection<_Co... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Initialize the contents of the frame. | private void initialize() {
frame = new JFrame();
frame.setBounds(100, 100, 550, 400);
frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
frame.getContentPane().setLayout(null);
JLabel lblOp1 = new JLabel("Op 1");
lblOp1.setBounds(23, 55, 56, 16);
frame.getContentPane().add(lblOp1);
t... | [
"public void initializeFrame();",
"private void initialize() {\n\t\tsetFrame();\n\t\tsetheader();\n\t\tsetList();\n\t}",
"public MainFrame() {\n\t\tsuper();\n\t\tinitialize();\n\t}",
"public frame() {\n initComponents();\n read_init_config();\n }",
"private void initialize() {\n\t\tinitData... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
$ANTLR end "rule__Add__Group__0" $ANTLR start "rule__Add__Group__0__Impl" InternalJsonDsl.g:7145:1: rule__Add__Group__0__Impl : ( 'ADD' ) ; | public final void rule__Add__Group__0__Impl() throws RecognitionException {
int stackSize = keepStackSize();
try {
// InternalJsonDsl.g:7149:1: ( ( 'ADD' ) )
// InternalJsonDsl.g:7150:1: ( 'ADD' )
{
// InternalJsonDsl.g:7150:1: ( 'ADD' )
... | [
"public final void rule__Addition__Group__0() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \t\n try {\n // InternalMiniJava.g:3205:1: ( rule__Addition__Group__0__Impl rule__Addition__Group__1 )\n // InternalMiniJava.g:3206:2: rule__Addition__Gro... | {
"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 ParaCat createEntity(EntityManager em) {
ParaCat paraCat = new ParaCat()
.name(DEFAULT_NAME)
.serialNumber(DEFAULT_SERIAL_NUMBER)
.sortString(DEFAULT_SORT_STRING)
.descString(DEFAULT_DESC_STRING)
.imageBlob(DEFAULT_IMAGE_BLOB)
... | [
"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"
]
]
}
} |
/ / / / / / | public void setFilters(String... filters) {
/* 90 */ this.filters = filters;
/* */ } | [
"private void calculatePaths() {\n\n\n }",
"public static void main (String arg[]){\n\tSystem.out.println(\" ( ) ( ( \"); \n\n\tSystem.out.println(\" ( )\\\\ ) ( /( ( )\\\\ ) ( )\\\\ ) \");\n\t\n\tSystem.out.println(\... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
required int32 s2c_code = 1; | public Builder setS2CCode(int value) {
bitField0_ |= 0x00000001;
s2CCode_ = value;
onChanged();
return this;
} | [
"int mo46536a(int i, int i2, C24244c c24244c);",
"C2128c m5403a(C2129c c2129c, C2122b c2122b);",
"void mo1310a(C3767b c3767b, C1700b c1700b);",
"int getS2CNeedVipLevel();",
"void mo6687e(C1107n c1107n);",
"void mo22731b(C33642d c33642d);",
"void m28293a(C5003c c5003c, C5006e c5006e);",
"void mo24495a(... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
FragmentManager fm = ((VisitorHomeActivity) mContext).getFragmentManager(); | public void displayCloseVisit(String visitId, String hasVehicle) {
CloseVisitPopup popup = new CloseVisitPopup();
final Bundle bundle = new Bundle();
bundle.putString(Constants.ACCESS_TOKEN, accessToken);
bundle.putString(Constants.SOCIETY_ID, societyId);
bundle.putString(Constan... | [
"private FragmentManager getFragmentManager() {\n\t\treturn mActivity.getSupportFragmentManager();\n\t}",
"@Override\n public void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n activity = (MainActivity) getActivity();\n\n\n }",
"@Override\n public View onCr... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Tests for selecting all, name and number. SelectContact sends information to an ArrayList and therefore needs a toString to find contacts. When testing selectAll it is expected that all contacts in the list are found. | @Test
void testSelectAll() {
assertEquals(db.getSelectContact().selectAllContact().toString(),
"[1\tAnton\t0107433221, " +
"2\tBertil\t0206122334, " +
"3\tCarl\t0305564738, " +
"4\tDaniella\t0404659301, " +
"5\tElin\t0509384929... | [
"@Test\r\n\tpublic void testSelectAll() throws Exception{\r\n\t\tdao.selectfromrno(1);\r\n\t\tSystem.out.println(dao.selectfromrno(1));\r\n\t}",
"@Test\n\t// getContacts(String name)\n\t// ------------------------\n\tpublic void testGetContactsNames(){\n\t\t cm.addNewContact(\"Harry\",\"Likes a Drink\");\n\t\t cm... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Handles the HTTP POST method. | @Override
protected void doPost(HttpServletRequest request, HttpServletResponse response)
throws ServletException, IOException {
processRequest(request, response);
} | [
"@Override\n\tpublic void handlePost(HttpServletRequest request, HttpServletResponse response) {\n\t\t\n\t}",
"public void doPost(HttpServletRequest request, HttpServletResponse response) throws IOException {\n\n\n\n }",
"@Override\n public void post(String path) {\n \n }",
"@Override\r\n\tpub... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
This method was generated by MyBatis Generator. This method returns the value of the database column lxy_product.PRODUCT_TYPE_ID | public Long getProductTypeId() {
return productTypeId;
} | [
"public String productTypeId() {\n return this.productTypeId;\n }",
"public int getProductType() {\n return productType;\n }",
"@Column(name=\"type_id\")\n public int getTypeId()\n {\n return typeId;\n }",
"public Long getTypeID()\n {\n return typeID;\n }",
"... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
method to handle Qnames | private void writeQName(javax.xml.namespace.QName qname,
javax.xml.stream.XMLStreamWriter xmlWriter) throws javax.xml.stream.XMLStreamException {
java.lang.String namespaceURI = qname.getNamespaceURI();
if (namespaceURI != null) {
java.lang.String ... | [
"public int getIndex(String qName);",
"public void setQyName(String qyName) {\n this.qyName = qyName;\n }",
"private String qName(Namespace namespace, String localName)\n {\n \tString prefix = namespaces.getPrefix(namespace.URI);\n if (prefix == null || prefix.equals(\"\"))\n {\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Removes a specific repetition of OBX (Observation/Result) | public OBX removeOBX(int rep) throws HL7Exception {
return (OBX)super.removeRepetition("OBX", rep);
} | [
"private static void removeRepetitionsFromResult(HashMap<Tu, Tuv> result,\n HashMap<Tu, Tuv> repetitionMap)\n {\n if (repetitionMap.isEmpty())\n {\n return;\n }\n Set<Tu> repetitionTus = repetitionMap.keySet();\n for (Tu repetitionTu : repetitionTus)\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Sets the sipuri value for this Lbmonitor. | public void setSipuri(java.lang.String sipuri) {
this.sipuri = sipuri;
} | [
"void setURI(URI uri) throws RemoteException;",
"@Override\r\n\tpublic void SetUri(String uri) {\n\r\n\t}",
"public void setSIPId(String sipId) {\n m_sipId = sipId; \n }",
"public void setURI(String uri) {\n this.uri = uri;\n }",
"public Petrolink.PetroVaultHD.Model.Resource.Res... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Find the _Fields constant that matches fieldId, throwing an exception if it is not found. | public static _Fields findByThriftIdOrThrow(int fieldId) {
_Fields fields = findByThriftId(fieldId);
if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
return fields;
} | [
"@org.apache.thrift.annotation.Nullable\n public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 0: // SUCCESS\n return SUCCESS;\n case 1: // INVALID_ARGS\n return INVALID_ARGS;\n default:\n return null;\n }\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Interval in milliseconds to wait before each session live checking The default value is 60000 ms. | public long getSessionLiveCheckInterval() {
return sessionLiveCheckInterval;
} | [
"boolean hasKeepaliveInterval();",
"protected int initPollInterval ()\n {\n return 60;\n }",
"void setSessionExpiryInterval(long expiryInterval);",
"public int getCheckRegistrationIntervalSeconds() {\r\n\t\treturn this.scServer.getCheckRegistrationIntervalSeconds();\r\n\t}",
"public static int ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Method to test getParameterMatrix() | @Test
public void testGetParameterMatrix() throws MathException
{
final NolPlsModel testObj = createTestObject();
final Pls pls = mock(Pls.class);
final Vector<TrainableModel> models = new Vector<>();
models.addElement(pls);
Whitebox.setInternalState(testObj, "models", models);
final Matrix P = mock(Matr... | [
"@Test\n public void testgetMatrixValues() throws Exception {\n int rows = 2;\n int cols = 2;\n Matrix instance = new Matrix(rows,cols);\n for(int i = 0;i < rows;i++)\n for(int j = 0;j < cols;j++)\n instance.set(i, j, 3);\n Vector[] exp = new Vector[2]... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Creates and Return a new DOM document based on the current configuration | public static Document newDocument() {
try {
// always use system default, see IT 8229
ClassLoader currentLoader =
Thread.currentThread().getContextClassLoader();
Thread.currentThread().setContextClassLoader(
J2EEDocumentBuilder.class.getClassL... | [
"private void createDocument() {\n\t\tDocumentBuilderFactory dbFactory = DocumentBuilderFactory.newInstance();\n\t\ttry {\n\t\t\t// get an instance of builder\n\t\t\tDocumentBuilder db = dbFactory.newDocumentBuilder();\n\n\t\t\t// create an instance of DOM\n\t\t\tthis.dom = db.newDocument();\n\n\t\t} catch (ParserC... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
endregion region getters & setters | public List<String> getVmsToDetach() {
return vmsToDetach;
} | [
"public int getOldYear() {\r\n\treturn _oldYear;\r\n}",
"@Override\n }",
"public String getValue() {\n return _value;\n}",
"public int getValue() {\n \n return this.value;\n\n}",
"@Override\n public Serializable getValue() {\n return this.value;\n }",
"@Override\n public Va... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
/ renamed from: c | public KeyMaterialType mo9463c() {
return KeyMaterialType.SYMMETRIC;
} | [
"@Override\n\tpublic void c() {\n\t\t\n\t}",
"@Override\r\n\tvoid c() {\n\t\t\r\n\t}",
"protected void c() {\n\n\t}",
"void mo3976c(C5247d c5247d);",
"void mo62419c();",
"void m28293a(C5003c c5003c, C5006e c5006e);",
"void mo24495a(C12578a c12578a);",
"void mo22731b(C33642d c33642d);",
"public void ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Returns the plugin for the given id. | @Nullable
Plugin findPlugin(String id); | [
"UUID getPlugin();",
"Optional<IdeaPluginDescriptor> findPlugin(String pluginId);",
"@Override\n public @NotNull PluginId getPluginId() {\n return id;\n }",
"public Plugin getPluginInstance(String uniqueId)\r\n\t\t{\r\n\t\t\treturn (Plugin) instances.get(uniqueId);\r\n\t\t}",
"public void getPluginByID... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
TODO Autogenerated method stub | @Override
public Object getFormMantenimiento() {
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"
]
]
}
} |
Ending the monitoring of an executor object. | public void endMonitor(); | [
"@Override\r\n\tpublic void exit() {\r\n\t\texecutor.shutdown();\r\n\t}",
"public void shutdown() {\n this.executor.shutdown();\n }",
"public void shutdown() {\n _executorService.shutdown();\n }",
"public synchronized void end(){\n if(!isEnded){\n executor.shutdownNow()... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
An interface that provides a data management interface to the Person table. | public interface PersonDao extends GenericDao<Person, Long> {
} | [
"public interface Person {\n\t\n\t/**\n\t * The unique identifier assigned to this person.\n\t * No setter provided as this is created on instantiation and never again. \n\t * @return\n\t */\n\tpublic long getID();\n\t\n\t/**\n\t * Returns the first name of a person\n\t * \n\t * @return String\n\t */\n\tpublic Stri... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Util method to write an attribute with the ns prefix | private void writeAttribute(java.lang.String prefix,java.lang.String namespace,java.lang.String attName,
java.lang.String attValue,javax.xml.stream.XMLStreamWriter xmlWriter) throws javax.xml.stream.XMLStreamException{
if (xmlWriter.getPrefix(namespace) == null) {
... | [
"private void writeAttribute(java.lang.String namespace, java.lang.String attName, java.lang.String attValue,\r\n\t\t\tjavax.xml.stream.XMLStreamWriter xmlWriter) throws javax.xml.stream.XMLStreamException {\r\n\t\tif (namespace.equals(\"\")) {\r\n\t\t\txmlWriter.writeAttribute(attName, attValue);\r\n\t\t} else {\r... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
$ANTLR end "rulePrefix" $ANTLR start "entryRuleModifier" ../reqlang.ui/srcgen/com/leo_sa/ui/contentassist/antlr/internal/InternalReqLang.g:228:1: entryRuleModifier : ruleModifier EOF ; | public final void entryRuleModifier() throws RecognitionException {
try {
// ../reqlang.ui/src-gen/com/leo_sa/ui/contentassist/antlr/internal/InternalReqLang.g:229:1: ( ruleModifier EOF )
// ../reqlang.ui/src-gen/com/leo_sa/ui/contentassist/antlr/internal/InternalReqLang.g:230:1: ruleMod... | [
"public final void entryRuleFieldModifier() throws RecognitionException {\n try {\n // InternalMyDsl.g:555:1: ( ruleFieldModifier EOF )\n // InternalMyDsl.g:556:1: ruleFieldModifier EOF\n {\n if ( state.backtracking==0 ) {\n before(grammarAccess.getFi... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Determines how recent conversation context is filtered when generating suggestions. If unspecified, no messages will be dropped. .google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionQueryConfig.ContextFilterSettings context_filter_settings = 7; | public Builder setContextFilterSettings(
com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionQueryConfig.ContextFilterSettings.Builder builderForValue) {
if (contextFilterSettingsBuilder_ == null) {
contextFilterSettings_ = builderForValue.build();
onChanged();
... | [
"List<String> getForwardingContextDataExclude();",
"public int getContextSwitches() {\n\t\treturn contextSwitches;\n\t}",
"public Energistics.Etp.v12.Protocol.DiscoveryQuery.FindResources.Builder clearContext() {\n context = null;\n contextBuilder = null;\n fieldSetFlags()[0] = false;\n retu... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
HTTP POST request to add Patient notes in the DB | @PostMapping("/patHistory/add")
public String addPatientsNotes(@RequestParam int patId, @RequestParam String note) {
PatientNote patientNote = new PatientNote();
patientNote.setPatId(patId);
patientNote.setNote(note);
patientNoteService.savePatient(patientNote);
return "data ... | [
"@POST\n\t@Produces(MediaType.APPLICATION_JSON)\n\tpublic void addNote(Note note) {\n\t\tnoteDao.insertOneToDb(note);\t\n\t}",
"@GetMapping(\"/note/add/{patientId}\")\n public ModelAndView addNote(@PathVariable(\"patientId\") int patientId, Model model) {\n ModelAndView mav = new ModelAndView();\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Test of getUniprot_name method, of class Entry. | @Test
public void testGetUniprotName() {
LOGGER.info("getUniprotName");
String expResult = "ABC";
String result = instance.getUniprotName();
assertEquals(expResult, result);
} | [
"String getUser_nm();",
"java.lang.String getIName();",
"public String getPhoneticNickname();",
"public String getUnikey() {\n return unikey;\n }",
"String getTpname();",
"public String tryName() {\n\t\tString tempUserString;\n\t\ttry {\n\t\t\ttempUserString = getUname();\n\t\t}\n\t\tcatch (Exce... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Initialization of the "OdlCardinalBundleResolvedModule" group. Initialization of the "OdlCardinalBundleResolvedModule" group. To disable support of this group, redefine the "createOdlCardinalBundleResolvedModuleMetaNode()" factory method, and make it return "null" | protected void initOdlCardinalBundleResolvedModule(MBeanServer server) throws Exception {
final String oid = getGroupOid("OdlCardinalBundleResolvedModule", "1.3.6.1.3.1.1.6");
ObjectName objname = null;
if (server != null) {
objname = getGroupObjectName("OdlCardinalBundleResolvedModu... | [
"void initialize(ModuleNode moduleNode, NameResolverManager resolverManager);",
"public final void rule__ResolveExp__Group__0__Impl() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.xtext.example.webgme_mtl.ui/src-gen/org/xtext/exam... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Created by ncopado on 11/09/17. | public interface IRecyclerViewFragmentView {
public void generarLinearLayoutVertical();
public void generarGridLayoutVertical();
public ContactoAdaptador crearAdaptatodr(ArrayList<Contacto> contactos);
public void inicializarAdaptadorRv(ContactoAdaptador adaptador);
} | [
"@Override\n public void extornar() {\n \n }",
"@Override\n\t\t\t\tpublic void pintate() {\n\t\t\t\t\t\n\t\t\t\t}",
"@Override\n }",
"private static void EX5() {\n\t\t\r\n\t}",
"protected void method_5557() {}",
"@Override\r\n\tpublic void hablar() {\n\t\t\r\n\t}",
"@Override\n \... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
listen to the path that my friend will upload the filter to | public void ListenToMyFriendFilterChange(String myFriendUid) {
if (myFriendUid != null && !myFriendUid.isEmpty()) {
FirebaseDatabase.getInstance().getReference("users").child(myFriendUid).child("currentFilter").addValueEventListener(new ValueEventListener() {
@Override
... | [
"private void postEvent(DirectoryStream.Filter<Path> filter, Path path, String topic) {\n try {\n if (filter.accept(path)) {\n this.postEvent(path, topic);\n }\n } catch (IOException e) {\n logger.error(\"I/O error when try to filter path {}, UNEXPECTED ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
GET /socialmedias : get all the socialMedias. | @GetMapping("/social-medias")
@Timed
public ResponseEntity<List<SocialMedia>> getAllSocialMedias(Pageable pageable) {
log.debug("REST request to get a page of SocialMedias");
Page<SocialMedia> page = socialMediaService.findAll(pageable);
HttpHeaders headers = PaginationUtil.generatePagin... | [
"public List<MedioPagoEntity> getMedioPagos() {\n LOGGER.info(\"Inicia proceso de consultar todos los medios de pago\");\n List<MedioPagoEntity> mediosPago = persistence.findAll();\n LOGGER.info(\"Termina proceso de consultar todos los medios de pago\");\n return mediosPago;\n }",
"... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
/ renamed from: e | public String mo7782e() {
return this.f239e;
} | [
"@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"
]
]
}
} |
$FF: renamed from: 2 () double | public double method_2608() {
return this.field_1440;
} | [
"public abstract double doubleValue() {\n\t}",
"public double asDouble();",
"public Double asDouble();",
"default Scalar doubled(){\n return multiply(TWO);\n }",
"Double asDouble();",
"double mo105104g();",
"abstract double ury ();",
"double simple (double x, double y);",
"double getVarDouble();... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Assert that two XML documents are similar | public void assertXMLEqual(Document control, Document test) {
XMLAssert.assertXMLEqual(control, test);
} | [
"@Test\n public void compareXmlSame() throws IOException, SAXException, ParserConfigurationException {\n Assert.assertTrue(ParserUtils.nodesAreEquivalent(\n ParserUtils.nodeFromString(\"<div><span1></span1><span2></span2></div>\").getParentNode(),\n ParserUtils.nodeFromString... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
1. Create & allocate new node | public void insertNodeAtEnd(int data) {
Node newNode = new Node(data);
Node endNode = head;
// 2. Check if linked list is null then make new node as first node
if (head == null) {
newNode.prev = null;
head = newNode;
return;
}
// 3. find out the last node
while (endNode.next != null) {
endNo... | [
"private Dnode createNewNode() {\r\n try {\r\n return (Dnode) nodeClass.newInstance();\r\n } catch (Exception ex) {\r\n throw new RuntimeException(ex);\r\n }\r\n }",
"@Unused\n@Original(version=\"2.38.0\", path=\"lib/cgraph/node.c\", name=\"\", key=\"dzb7m0p5xsngvtyr8... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
TODO Autogenerated method stub | @Override
public Double getAmount() {
return this.amount;
} | [
"@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 List<FxForwardPoint> getForwardPoint() {
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"
]
]
}
} |
this tells us the best card(s) to discard, in order to get the best deadwood | public static ArrayList<Card> getBestDeadwoodCardsAfterDiscard(ArrayList<Card> myCards) {
if(myCards.size() < 11) throw new IllegalArgumentException("need 11 cards");
ArrayList<Card> bestDiscards = (ArrayList<Card>) myCards.clone(); // could be multiple
ArrayList<Card> newCards = (ArrayList<Ca... | [
"public void discard(){\n\t\tint numberOfPlayers = 3;\n\t\tCard discard = activePlayer.getHand().get(0);\n\t\tfor(int i = 0; i < numberOfPlayers; i++){\n\t\t\tfor(int j = 0; j < activePlayer.getHand().size(); j++){\n\t\t\t\twhile((activePlayer.getHand().size() > j) &&\n\t\t\t\t\t\tactivePlayer.getHand().get(j).getP... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
++ getter for autogen property _ChildClasses This is an autogenerated method that returns the map of design time [static] children. Note: the class generator will ignore any custom implementation for this behavior. | protected java.util.Map get_ChildClasses()
{
return __mapChildren;
} | [
"public HashMap<Integer, Child<T>> getChildrenMap() {return getCM();}",
"public Set<String> getChildrenKeys(){\n return children.keySet();\n }",
"HashMap <Character, TrieNode> getChildren () {\n\t\treturn children;\n\t}",
"public HashMap<Character, TrieNode> getChildren(){\n\t\treturn child... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Instantiates a new simple action. | public AlertAction()
{} | [
"Action() {\n\t\t// super();\n\t}",
"ActuatingAction createActuatingAction();",
"Action(String actionString)\n {\n this.actionString = actionString;\n }",
"public void testCreateAction() {\n\t\tAction action = new Action();\n\t\tassertEquals(action.getClass(), sbGEF.createAction().getClass());\n\... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
/ / NAME displayUserData displays user info. SYNOPSIS private void displayUserData(); DESCRIPTION Will display the data for the current user. RETURNS N/A / | private void displayUserData() {
final TextView user_name_text = mView.findViewById(R.id.user_name_text);
final TextView user_email_text = mView.findViewById(R.id.user_email_text);
final TextView user_uid_text = mView.findViewById(R.id.user_uid_text);
user_name_text.setText(User.getDisp... | [
"public static void displayUser(User aUser)\r\n\t{\r\n\t\tSystem.out.println(aUser);\r\n\t}",
"public static void displayUser(Integer userID)\r\n\t {\r\n\t\t if ( BakeryUsers.containsKey(userID) ) {\t\t\t \r\n\t\t\t String userDetails = BakeryUsers.get(userID);\r\n\t\t\t String[] userSplit = userDetail... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Find the _Fields constant that matches fieldId, throwing an exception if it is not found. | public static _Fields findByThriftIdOrThrow(int fieldId) {
_Fields fields = findByThriftId(fieldId);
if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
return fields;
} | [
"@org.apache.thrift.annotation.Nullable\n public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 0: // SUCCESS\n return SUCCESS;\n case 1: // INVALID_ARGS\n return INVALID_ARGS;\n default:\n return null;\n }\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Called when init is pressed, runs once | public abstract void on_init(); | [
"private void myInit() {\n init_button();\n init();\n }",
"private void myInit() {\n initActionKey();\n do_set_date();\n }",
"@Override\n public boolean isInit()\n {\n return true;\n }",
"private void init() {\n\t\tsetOpaque(false);\n\t\thasBee... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Metodos y funciones privadas | private Vehiculo crearVehiculo() {
Vehiculo vehiculo;
vehiculo = new Vehiculo();
vehiculo.setMatricula("5992 HLJ");
vehiculo.setMarca("Opel");
return vehiculo;
} | [
"private void initPrivileges() {\n this.privileges.put(\"Guest\", new HashSet<>(Arrays.asList\n (\"viewPages+LS\", \"searchByNCK\")));\n this.privileges.put(\"Fan\", new HashSet<>(Arrays.asList\n (\"followPage\", \"getNoti\", \"fileReport\", \"viewSHistory\", \"editPDetai... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Set The type of log collected. `json_log`: JSON logs; `delimiter_log`: separator logs; `minimalist_log`: full text in a single line Default value: `minimalist_log` | public void setLogType(String LogType) {
this.LogType = LogType;
} | [
"public void setLogType(int type);",
"public void setLogType(java.lang.String logType) {\n\t\t_uVersion.setLogType(logType);\n\t}",
"void setLog(Logger log);",
"public void setLogintype(final String parameter)\r\n\t{\n\r\n\t}",
"@Override\r\n public void addLog(Constants.LogType type, String body) {\r\n\... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Check if this plugin is useful to the server. | public static boolean isWorkingPipe() {
return Via.getManager().getProtocolManager().isWorkingPipe();
} | [
"boolean hasPluginType();",
"boolean hasUsage();",
"boolean isReusable();",
"private boolean checkMyChunk(){\n \tPlugin pMC = Bukkit.getPluginManager().getPlugin(\"MyChunk\");\n \tif (pMC != null && pMC.isEnabled()){\n \t\treturn true;\n \t}\n \treturn false;\n }",
"static boolean isAvaila... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Creates new form DbBackUp | public DbBackUp() {
initComponents();
} | [
"void insertNewBankAndAdmin(CreateBankFormData formData) throws SQLException, EmailAlreadyInUseException;",
"private void createNewBank() {\n\t\tString bankName = \"\";\n\t\tScanner in = new Scanner(System.in);\t\t\n\t\t// Ask the user for the name of the new bank of questions\n\t\tSystem.out.print(this.NAME_PROM... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Returns this level as an integer value. | public int getIntLevel() {
return this.intLevel;
} | [
"public int toInt() {\n return mValue;\n }",
"public int intValue() {\r\n return (int) getValue();\r\n }",
"public java.lang.Integer getLevel() {\n return Level;\n }",
"public java.lang.Integer getLevel() {\r\n\t\treturn level;\r\n\t}",
"public Integer getLevel() {\n \t\treturn _leve... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
/ renamed from: a | private final void m57033a(View view, float f) {
int i = 0;
if (f < ((float) null)) {
if (view.getHeight() > 0) {
f = m57028a((float) view.getHeight(), Math.abs(f));
int childCount = getChildCount();
while (i < childCount) {
... | [
"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"
]
]
}
} |
use this setting to improve performance if you know that changes in content do not change the layout size of the RecyclerView | private void setupRecyclerView() {
recyclerView.setHasFixedSize(true);
// use a linear layout manager
LinearLayoutManager layoutManager = new LinearLayoutManager(getContext());
recyclerView.setLayoutManager(layoutManager);
// specify an adapter (see also next example)
a... | [
"public void initRecyclerView() {\n\n //RecyclerViewDefinition\n LinearLayoutManager layoutManager\n = new LinearLayoutManager(getActivity(), LinearLayoutManager.VERTICAL, false);\n mRecyclerView.setLayoutManager(layoutManager);\n\n //Improving performance\n mRecycl... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
TODO add your handling code here: | private void jButton1ActionPerformed(java.awt.event.ActionEvent evt) {
Connection cn;
Statement st;
ResultSet rs;
//String db;
DataInputStream din= new DataInputStream(System.in);
String roll= jTextField2.getText().toString();
String name = jTextField1.getText().t... | [
"@Override\n public void extornar() {\n \n }",
"@Override\n }",
"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\tprotected void handleResponse(Response response) {\n\n\t}",
"@Override\n protecte... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
making sure form contains the necessary fields: | private void ensureFormContainsFields(HttpServletRequest req) throws InvalidFormException {
Map<String, String[]> parameters = req.getParameterMap();
if (!parameters.containsKey("searchType") || !parameters.containsKey("searchCriteria"))
throw new InvalidFormException("The form filled by User does not contain bo... | [
"public void validate() {\n for (Field f : getAllFields()) {\r\n String value = f.getValue();\r\n if (value != null && value.length() > 0) {\r\n return;\r\n }\r\n }\r\n\r\n addFormError(\"No form data sent with this request.\");\r\n }",
"@Ove... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
t, l, y, x | public void testTimeStepVar() throws IllegalFormulaException, InvalidRangeException {
Array array = createRandomArray(4, 2, 10, 3);
DataFrameBuilder builder = new DataFrameBuilder();
builder.setArray(array);
builder.addAxis(DataFrameAxis.createDataFrameAxis(new TestTimeCoordAxis(AxisType.TIME, 4), 0));
bu... | [
"double getXl();",
"@Override\n public double getGraphX(double t) {\n return mLemniscateParamY/((mRadiusFixed + mDistanceFromCenter + mRadiusMoving))*((mRadiusFixed + mRadiusMoving)*Math.cos(t) - mDistanceFromCenter *Math.cos(((mRadiusFixed + mRadiusMoving)/ mRadiusMoving)*t));\n }",
"public myPoin... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Constructor creates a MazeFrame using the given Maze | MazeFrame(Maze maze){
super("Maze");
int h = maze.getHeight();
int w = maze.getWidth();
panel = new MazePanel(h, w);
add(panel);
// your code here for drawing the maze
int i = 0;
int j = 0;
for(i=0; i < h; i++) {
for (j=0; j < w; j++) {
if(maze.isFree(... | [
"public Maze()\n {\n \n }",
"public Maze()\n\t{ \t\t\n\t\tchar lab[][] = \n\t\t\t{\n\t\t\t\t\t{'X','X','X','X','X','X','X','X','X','X'},\n\t\t\t\t\t{'X',' ',' ',' ',' ',' ',' ',' ',' ','X'},\n\t\t\t\t\t{'X',' ','X','X',' ','X',' ','X',' ','X'},\n\t\t\t\t\t{'X',' ','X','X',' ','X',' ','X',' ','X'},\n\... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
/ Insertion Sort: Inplace algorithm we don't need to create another array O(n2) time complexity quadratic It will take 10 000 steps to sort 100 items Stable algorithm | public static void main(String[] args) {
int[] intArray = {20, 35, -15, 7, 55, 1, -22};
for (int firstUnsortedIdx = 1; firstUnsortedIdx < intArray.length;
firstUnsortedIdx++) {
int newElement = intArray[firstUnsortedIdx];
int i;
for (i = firstUnsor... | [
"public void insertionSort (int[] arr){\n\n long startTime = System.nanoTime(); //here coding time measurement begins \n \n for(int i = 0; i < arr.length; i++){\n\n int key = arr[i];\n int j = i - 1; \n\n while( j >= 0 && arr[j] > key ){\n\n arr[j... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Removes player from game | public Playing removePlayer(String nick) throws RemoteException {
System.out.println("Player " + nick + " quited the game!");
this.unbindPlayer(nick);
return this.players.remove(nick);
} | [
"public void removePlayer() {\n\t\tcurrent = null;\n\t}",
"public void removePlayer(Player player){\n\t\t//TODO: Implement remove player\n\t}",
"public void removePlayerFromGameSession(Player player) {\n if (hasPlayerJoinedSession(player)) {\n //remove player from sessoin\n Team cap... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Get the start Point object that struct with spring. | public Point2D getStartPoint()
{
return this.startPoint;
} | [
"public abstract Point getStartPoint();",
"public Point getStartingPoint() {\n return startingPoint;\n }",
"public Point getStartPoint() {\r\n \treturn this.p0;\r\n }",
"StartPoint getStartPoint();",
"public Point getStartPoint() {\n\t\treturn startPoint; // this.startPoint\n\t}",
"public Point ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
TODO Autogenerated method stub | private void initCamera() {
if(cameraPreviewMode == false)
{
camera = Camera.open();
}
if(camera != null && cameraPreviewMode == false)
{
try {
//set camera parameters
camera.setPreviewDisplay(photoSurfaceHolder);
Camera.Parameters parameters = camera.getParameters();
parameters.setP... | [
"@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 boolean isDestroyed() {
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"
]
]
}
} |
$ANTLR end "rule__XEqualityExpression__Group_1_0_0__1__Impl" $ANTLR start "rule__XRelationalExpression__Group__0" ../org.yakindu.sct.generator.genmodel.ui/srcgen/org/yakindu/sct/generator/genmodel/ui/contentassist/antlr/internal/InternalSGen.g:4440:1: rule__XRelationalExpression__Group__0 : rule__XRelationalExpression_... | public final void rule__XRelationalExpression__Group__0() throws RecognitionException {
int stackSize = keepStackSize();
try {
// ../org.yakindu.sct.generator.genmodel.ui/src-gen/org/yakindu/sct/generator/genmodel/ui/contentassist/antlr/internal/InternalSGen.g:4444:1: ( rule_... | [
"public final void rule__XRelationalExpression__Group_1_0_0__0() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../fr.obeo.dsl.sprototyper.ui/src-gen/fr/obeo/dsl/ui/contentassist/antlr/internal/InternalSPrototyper.g:12083:1: ( rule__XRelati... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
TODO Autogenerated method stub | public static void main(String[] args) {
Cup2<Boricha> c = new Cup2<Boricha>();
Cup2<Beer> b = new Cup2<Beer>();
c.setBeverage(new Boricha());
// c.setBeverage(new Beer()); Cup2 클래스 타입의 객체 c는 Boricha 클래스 타입으로 고정되어 있으므로 Beer클래스 타입의 객체를 대입할 수 없음, 저장도 할 수 없음
// Beer b = c.getBeverage(); Cup2 클래스 타입의 객체 c는 Boric... | [
"@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"
]
]
}
} |
Create an empty representation of a job. | public Job() {} | [
"public Builder clearJob() {\n bitField0_ = (bitField0_ & ~0x00000100);\n job_ = 0;\n onChanged();\n return this;\n }",
"public Builder clearJob() {\n bitField0_ = (bitField0_ & ~0x00000004);\n job_ = 0;\n onChanged();\n return this;\n }",
"publi... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
string error = 2; | public Builder setError(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
error_ = value;
onChanged();
return this;
} | [
"void error(String code);",
"public int getErrorNumber(){\r\n return localErrorNumber;\r\n }",
"public java.lang.String getERROR(){\n return localERROR;\n }",
"public void error(final String _erro... | {
"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"
]
]
}
} |
String error = ""; | @PostMapping("/reset/password")
public String resetPassword(@RequestParam(name = "password") String password,
@RequestParam(name = "newpassword") String newpassword,
@RequestParam(name = "confirm") String confirm,
Model ... | [
"private String error() {//UNA EXCEPCION\n\t\treturn \"\";\n\t}",
"public String geterrormessage()\n {return errormessage;}",
"public java.lang.String getERROR(){\n return localERROR;\n }",
"public String getError()\r\n/* 48: */ {\r\n/* 49:45 ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
External IP address associated with server's IP address. | public String get_translationexternalip() throws Exception {
return this.translationexternalip;
} | [
"public String getIpAddress() {\r\n ExternalContext context =\r\n FacesContext.getCurrentInstance().getExternalContext();\r\n HttpServletRequest req = (HttpServletRequest)context.getRequest();\r\n return req.getRemoteAddr();\r\n }",
"public String getIpAddress() {\n Strin... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
tests that a dataset has had its Z & T dimensions swapped | private void swappedZtTest(ImagePlus imp, int pixType, boolean virtual, int originalZ, int originalC, int originalT)
{
if (DEBUG) log("swappedZtTest() : virtual "+virtual+" pixType "+FormatTools.getPixelTypeString(pixType));
stackTest(imp,(originalZ*originalC*originalT));
ImageStack st = imp.getSt... | [
"@Test\n public void transpose()\n {\n // System.out.println(\"transpose\");\n\n float[] m1 = new float[9];\n for (int i = 0; i < 9; i++)\n {\n m1[i] = i;\n }\n float m2[] = new float[9];\n // ((m1)T)T = m1\n Mat3f.transpose(m2, m1);\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Creates a BlockchainData for the service with the given name. | @VisibleForTesting
public static BlockchainData fromRawAccess(AbstractAccess baseAccess, String serviceName) {
Cleaner cleaner = baseAccess.getCleaner();
long bdNativeHandle = nativeCreate(baseAccess.getAccessNativeHandle(), serviceName);
return fromHandleInternal(bdNativeHandle, cleaner);
} | [
"public void createData (String name) throws IOException {\n throw new IOException ();\n }",
"public TransactionData(final String name)\n {\n super(name, TYPE_CODE);\n }",
"public void MakeBlock(String name) {\n\t\tlogger.field(\"name\", name).debug(\"MakeBlock() \");\n\t\tbyte[] tip = st... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
======================================================================================================= === METHODS ======================================================================================================= addResult(). | public void addResult(ResultStatisticsProvider resultStatisticsProvider) {
if (BuildState.SUCCESS.equals(resultStatisticsProvider.getBuildState()) && resultStatisticsProvider instanceof BuildResultsSummary) {
BuildResultsSummary results = (BuildResultsSummary) resultStatisticsProvider;
int authorCoun... | [
"public Result addResult(Object result);",
"void addResult(Result result){\n\t\tresults.add(result);\n\t}",
"public final Result addResult(Result result) {\r\n if (result == null) {\r\n throw new IllegalArgumentException(\"Illegal null result parameter\");\r\n }\r\n if (_result =... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Inflate the layout for this fragment | @Override
public View onCreateView(@NonNull LayoutInflater inflater, ViewGroup container,
Bundle savedInstanceState) {
View view = inflater.inflate(R.layout.fragment_category, container, false);
initComponent(view);
initToolbar(view);
return view;
} | [
"@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"
]
]
}
} |
0 1 2 3 4 5 | public static void main(String[] args) {
int[] nums = {20, 30, 50, 60, 70, 90};
System.out.println(searchInsert(nums,120));
} | [
"public static void main(String [] args){\n\n int arr[] = new int[5];\n for(int i = 6;i>0;i--){\n arr[6-i] = i;\n }\n Arrays.fill(arr,1,4,5);\n for(int i =0;i<6;i++)\n System.out.println(arr[i]);\n\n }",
"@Override\r\n\tpublic void recieve5(int s1,... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
$ANTLR end "rulePagoServicio" $ANTLR start "entryRuleEntidad" InternalPila.g:78:1: entryRuleEntidad : ruleEntidad EOF ; | public final void entryRuleEntidad() throws RecognitionException {
try {
// InternalPila.g:79:1: ( ruleEntidad EOF )
// InternalPila.g:80:1: ruleEntidad EOF
{
before(grammarAccess.getEntidadRule());
pushFollow(FOLLOW_1);
ruleEntida... | [
"public final void entryRuleEntity() throws RecognitionException {\n try {\n // InternalSwml.g:79:1: ( ruleEntity EOF )\n // InternalSwml.g:80:1: ruleEntity EOF\n {\n before(grammarAccess.getEntityRule()); \n pushFollow(FOLLOW_1);\n ruleEntit... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Devuelve el valor correspondiente a idmetricasSuelo | public int getIdmetricasSuelo(){
return this.idmetricasSuelo;
} | [
"@Override\n\tpublic long getId() {\n\t\treturn _logisticaStato.getId();\n\t}",
"public Integer getIdSegnalato() {\n if (isTipoSegnalazione()) {\n System.out.println(\"Stiamo segnalando un annuncio\");\n return annuncio;\n } else {\n System.out.println(\"Stiamo segnalando una recensione\");\n... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Construct the message handler. | public CrmfKeyUpdateHandler(final Admin admin, CAAdminSession caAdminSession, CertificateProfileSession certificateProfileSession,
EndEntityProfileSession endEntityProfileSession, SignSession signSession,
CertificateStoreSession certStoreSession, AuthorizationSession authSession, UserAdminSess... | [
"public MessageHandler create(MessageContext ctx);",
"public interface MessageHandlerFactory {\n\n MessageHandler getHandler();\n\n}",
"public JmsHandler() {\n }",
"public interface HandlerFactory {\r\n IHandler create(MessageHandler messageHandler);\r\n}",
"public ReceiveHandler() {\n memor... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
TODO Autogenerated method stub | public int[] executeBatch() throws SQLException {
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"
]
]
}
} |
Calcula el resultado y lo muestra por pantalla | private void calcularResultado() {
if (operacion.equals("+")) {
resultado += new Double(pantalla.getText());
} else if (operacion.equals("-")) {
resultado -= new Double(pantalla.getText());
} else if (operacion.equals("/")) {
resultado /= new Double(pantalla.getText());
} else if (operacion.... | [
"public void mostrarResultado() {\n\t\ttry {\n\t\t\tinvariante();\n\t\t\tSystem.out.println(\"Ultimo resultado valido: \" + monitor.traerResultado());\n\t\t} catch (ErrorDeCalculoException e) {\n\t\t\tmostrarEstado(e.getMessage());\n\t\t}\n\t}",
"void mostarResultados(){\r\n System.out.println(\"Nombre del... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
/ Ask user to enter an integer, then print its inverse on the console.(Interview Question) If the last number is "12345" output will be "54321" | public static void main(String[] args) {
Scanner scan = new Scanner(System.in);
System.out.println("Enter an integer");
String num = scan.nextLine();
String reversedNum = "";
for(int i=1; i<=num.length(); i++) {
reversedNum = reversedNum + num.charAt(num.length()-i);
}
System.out.println(rever... | [
"public void problemSix()\n\t{\n\t\tScanner console = new Scanner(System.in);\n\t\tSystem.out.println(\"Enter sequence of positive interger\");\n\t\tint num = console.nextInt();\n\t\tString value = Integer.toString(num);\n\t\tString [] arrayofValue = value.split(\"\");\n\t\t\n\t\tString revValue = \"\";\n\t\t\n\t\t... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Disconnects a Perform from this Scene. Care has been taken to ensure you can do this while the internalScene is being traversed. returns true if there was something tagged "tag"; | public boolean detach(String tag) {
Consumer<Integer> was = tagged.remove(tag);
if (was != null) detach(was);
return was != null;
} | [
"private boolean doDisconnect() {\n Log.i(TAG, \"doDisonnect()\");\n assert(mBusAttachmentState == BusAttachmentState.CONNECTED);\n mBus.unregisterBusListener(mBusListener);\n mBus.disconnect();\n mBusAttachmentState = BusAttachmentState.DISCONNECTED;\n return true;\n }"... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Retrieve a message definition object for logging. This method is used when there are values to be inserted into the message. | public AuditLogMessageDefinition getMessageDefinition(String ...params)
{
AuditLogMessageDefinition messageDefinition = new AuditLogMessageDefinition(logMessageId,
severity,
... | [
"public static Message createMessage() {\n Message message = new Message();\n final String key = sha1Hash(UUID.randomUUID().toString());\n message.setGuid(key);\n message.setPostDate(new DateTime(ISOChronology.getInstanceUTC()));\n return message;\n }",
"public MessageLog get... | {
"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();
jLabel7 = new javax.swing.JLabel();
txtStuId = new javax.swing.JTextField();
txtBranch = n... | [
"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"
]
]
}
} |