query stringlengths 8 1.54M | document stringlengths 9 312k | negatives listlengths 19 20 | metadata dict |
|---|---|---|---|
Creates the MX object parsing the parameter String with the XML content | public MxSeev03200104(final String xml) {
this();
MxSeev03200104 tmp = parse(xml);
corpActnEvtPrcgStsAdvc = tmp.getCorpActnEvtPrcgStsAdvc();
} | [
"public abstract Object xMLToObject(String xml);",
"public WRMXML(String xml) {\n parse(xml);\n }",
"public static MxCaam00900102 parse(String xml) {\n return ((MxCaam00900102) com.prowidesoftware.swift.model.mx.MxReadImpl.parse(MxCaam00900102 .class, xml, _classes, new com.prowidesoftware.swif... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
TODO Autogenerated method stub | @Override
public UntypedResultSet fetchRowInternal(String ksName, String index, String cfName, String id, String[] columns, Map<String,ColumnDefinition> columnDefs) throws IOException {
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"
]
]
}
} |
Name of this product. | public LocalizedString getName() { return name; } | [
"public String getProductName() {\r\n return ProductName;\r\n }",
"public final String getProductName() {\n\t\treturn this.productName;\n\t}",
"public String getProductName() {\r\n return this.productName;\r\n }",
"@XmlElement\n public String getProductName()\n {\n return product.getProduct... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Ajout du listener pour le bouton gerer les salles. | public void addListenerOnButtonGestionSalles(){
bouton_gestion_salles.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View v) {
System.out.println("GUI - Admin : Transition vers Gestion des salles");
Intent i = new Intent(getA... | [
"public void addToListener() {\r\n\t\t// TODO Auto-generated method stub\r\n\r\n\t}",
"public void addListener (Listener sl) {\n\t\tlisteners.add (sl);\n\t}",
"public void AlunoListener(AlunoListener alunoListener) {\n\t\t\n\t}",
"private final void addListeners() {\n }",
"private void registerListener()... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
/ Use to get absolute plugin directory; test will fail and echo path into JUnit log | public void testWhereAmI() throws Exception
{
assertEquals("where am I?",TestUtil.getPluginDirectory());
} | [
"public String getTestDir();",
"private static String computePluginsPath(){\n return System.getProperty(\"user.dir\") +\n File.separatorChar + \"plugins\"+\n File.separatorChar + \"target\" +\n File.separatorChar + \"classes\"+\n File.separatorCha... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Update the variables in the table | public void refreshDataParam() {
if (prepareData == null) {
return;
}
if (prepareData.getDepDataSet() != null
&& prepareData.getDepDataSet().getVirtualTables() != null) {
refreshTableParam(prepareData.getDepDataSet().getVirtualTables());
}
if (... | [
"void tableUpdated();",
"private void updateInfo() {\n Properties props = new Properties();\n Enumeration keys = properties.keys();\n while (keys.hasMoreElements()) {\n String key = (String)keys.nextElement(); \n props.put(key, properties.getProperty(key));\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
TODO Autogenerated method stub | public void CreateRole(Role role) {
this.roleMapper.CreateRole(role);
} | [
"@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"
]
]
}
} |
/ Enabled aggressive block sorting Enabled unnecessary exception pruning Enabled aggressive exception aggregation | public final void cancel() {
Object object = this.c;
synchronized (object) {
Object var2_2 = null;
this.a = null;
return;
}
} | [
"@Override\n public int getBlockSortingIndex() {\n return 5;\n }",
"@Test\n\tpublic void badSortOrderVersion() throws Exception {\n\t\ttry (ChangeSimplifier simplifier = new ChangeSimplifier()) {\n\t\t\tsimplifier.setChangeSink(new NullChangeWriter());\n\t\t\tsimplifier.initialize(new HashMap<String,... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Set the 3D rotation. | public void setWheelRotationX(float wheelRotationX) {
if (this.wheelRotationX != wheelRotationX) {
this.wheelRotationX = wheelRotationX;
invalidate();
}
} | [
"public void setRotation(Vec3f x, Vec3f y, Vec3f z) {\n set(0, 0, x.x());\n set(1, 0, x.y());\n set(2, 0, x.z());\n\n set(0, 1, y.x());\n set(1, 1, y.y());\n set(2, 1, y.z());\n\n set(0, 2, z.x());\n set(1, 2, z.y());\n set(2, 2, z.z());\n }",
"public ONode2D setRotation(vector3df set)... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
This method was generated by MyBatis Generator. This method sets the value of the database column portal_transaction_record.transaction_time | public void setTransactionTime(Date transactionTime) {
this.transactionTime = transactionTime;
} | [
"public void setTransactionDate(Long transactionDate);",
"public int getTransactionTime() {\n return transactionTime;\n }",
"public void setTransactionStartTime(Date transactionStartTime)\n {\n this.transactionStartTime = transactionStartTime;\n }",
"public double getTransactionTime(){\... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
TODO Autogenerated method stub | @Override
public long getItemId(int position) {
return position;
} | [
"@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"
]
]
}
} |
Find the _Fields constant that matches fieldId, or null if its not found. | public static _Fields findByThriftId(int fieldId) {
switch(fieldId) {
case 1: // PID
return PID;
case 2: // CUS_COM_BASE
return CUS_COM_BASE;
case 4: // SHARE_TYPE
return SHARE_TYPE;
case 5: // SHARE_NAME
return SHARE_NAME;
case 6: //... | [
"@org.apache.thrift.annotation.Nullable\n public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 1: // HR_ID\n return HR_ID;\n case 2: // COMPANY_ID\n return COMPANY_ID;\n case 3: // COMPANY_TAG_IDS\n return COMPANY_TAG_... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
do NOT modify the tagcompounds of the returned itemstacks | List<ItemStack> performRequest(ItemStack wanted); | [
"public void stackItems() {\n List<Integer> removed = new ArrayList<>();\n List<ItemStack> newItems = new ArrayList<>();\n for (int i = 0; i < items.size(); i++) {\n ItemStack item = items.get(i);\n CompatibleMaterial material = CompatibleMaterial.getMaterial(item);\n\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Gets the downloads map. | public Map<Platform, String> getDownload() {
return download;
} | [
"public java.util.Map<java.lang.String, com.google.protobuf.ByteString> getFilesMap() {\n return internalGetFiles().getMap();\n }",
"java.util.Map<java.lang.String, com.google.protobuf.ByteString>\n getSourcesMap();",
"public java.util.Map<java.lang.String, com.google.protobuf.ByteString> g... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
pairnode[] pair_heap_table = new pairnode[freq_table.size()+1]; | public void build_pair_heap(HashMap<Integer, Integer> freq_table){
Set<Integer> set = freq_table.keySet();
Iterator<Integer> it = set.iterator();
pairnode pn;
while(it.hasNext()){
int key = it.next();
int val = freq_table.get(key);
pn = new pairnode(key,val);
insert(pn);
}
} | [
"private void resize() {\n\t int doubled = findPrime(2*buckets);\n DList[] newTable = new DList[doubled];\n for (int i = 0; i < doubled; i++) {\n newTable[i] = new DList();\n }\n buckets = doubled;\n for (DList l : table) {\n if (l.size() != 0) {\n ListNode current = l.front();\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
how the observer knows what subject is doing | public void update(int warning) {
if(warning==1)
System.out.println("Knight: Helps everyone get home safe");
if(warning ==2)
System.out.println("Knight: Prepares for battle");
} | [
"Subject getObservedSubject();",
"public interface Observer {\n\n //method to update the observer, used by subject\n void onUpdate();\n\n //attach with subject to observe\n void setSubject(Subject sub);\n}",
"public interface Observer {\n\n public void update();\n\n public void setSubject(Subj... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Checks if the SOD images exists. If not, user is prompted for a download and the files are downloaded if requested. | public boolean checkSod(final Activity a) {
return checkDictionaryFile(a, new SodDownloader(), false);
} | [
"private void try2CheckAssets(DownloadRequest request) {\n\t\t}",
"public boolean hasDownload()\n {\n return download != null && download.length() > 0;\n }",
"private File verifyDownloadDirectory() {\n String filename = downloadFolderTextField.getText();\n File directory = new File(fi... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
TODO Autogenerated method stub | @Override
public void run() {
Toast.makeText(getApplicationContext(),
R.string.No_Internet_Connection, 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"
]
]
}
} |
Adding shortcut for MainActivity on Home screen | private void addShortcut() {
Intent shortcutIntent = new Intent(getApplicationContext(), ZakraM.class);
shortcutIntent.setAction(Intent.ACTION_MAIN);
Intent addIntent = new Intent();
addIntent.putExtra(Intent.EXTRA_SHORTCUT_INTENT, shortcutIntent);
addIntent.putExtra(Intent.EXTR... | [
"public void returnToHomeScreen() {\n Intent intent = new Intent(Intent.ACTION_MAIN);\n intent.addCategory(Intent.CATEGORY_HOME);\n intent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK);\n startActivity(intent);\n }",
"private void addShortcut() {\n Intent shortcutIntent = new Inten... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
optional int32 ipadPositionX = 7; | public boolean hasIpadPositionX() {
return ((bitField0_ & 0x00000040) == 0x00000040);
} | [
"public int getX(){\n return (int)px;\n }",
"public int getxPos(){return xPos;}",
"int getPanePosX () {return panePosX;}",
"public int getXcoordinate(){return xcoordinate;}",
"int getXPos(){\n return xPos;\n }",
"public int getPaddleTop() {\r\n\r\n return (int)paddle.y;\r\n\... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Create offset which represents the latest offset at the point of access. | public static BinlogOffset ofLatest() {
return builder().setOffsetKind(LATEST).build();
} | [
"public Offset getLastOffset();",
"public long initialOffset() {\n\t\treturn 0;\n\t}",
"public Long lastOffset();",
"OffsetContext getOffset();",
"Point getOffset();",
"public void createOffset(){\n if(positionList.size() == 1) return;\n\n // compute offset in meters (TODO: should probably m... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
/ Test for, adding new record in database | @Test
public void testAddOrder() {
List<OrderDetails> beforeInsertion = iOrderRepository.findAll();
int beforeCount = 0;
for(OrderDetails od:beforeInsertion)
beforeCount++;
OrderDetails orderDetails2 = new OrderDetails(10101, new BookOrder(1008, new Customer(75, "Swati@gmail.com", "Swati kumari", "swa... | [
"@Test\n\tvoid testdbInsert() {\n\t\tint currItems = m.getDBManager().countItems();\n\t\tm.getDBManager().addItem(\"Electric Avenue\", StreetMode.BLOCK.getValue(), TrafficLight.NORMAL.getValue(), Warnsign.NOSIGN.getValue(), Roads.INNERCITYROAD.getValue());\n\t\tassertEquals(currItems+1, m.getDBManager().countItems(... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
/ This method calculates the Market Value of a bond | private static double CalcPrice(double coupon, int years, double face, double rate) {
double price = face / Math.pow((1 + rate), years);
for (int i = 1; i <= years; i++) {
price += (coupon * face) / Math.pow((1 + rate), i);
}
//return round(price, 7);
return price;
} | [
"public double getMarketValue(){\n return marketValue;\n }",
"public double computeMarketGains() {\n\t\tdouble value=0; \n\t\t\n\t\tfor (MarketCommitment mc : this.mk_commit) {\n\t\t\tfor (int k=0; k<mc.getWinning_bid().getNumSlices(); k++) {\n\t\t\t \tvalue -= mc.getWinning_bid().getWinPrices()[k];\n\... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
File file = new File(mContext.getFilesDir(), filename); | public void copyFile(String filename, String targetPath) {
File file = new File(targetPath);
if (file.exists() && file.length() > 0) {
} else {
try {
InputStream is = mContext.getAssets().open(filename);
FileOutputStream fos = new FileOutputStream(file);
int len = 0;
byte[] buffer = new byte[10... | [
"File getFile(String dir, String file) {\n File sdDir = Environment.getExternalStorageDirectory();\n File appDir = new File(sdDir, dir);\n \n if (!(appDir.exists() && appDir.isDirectory() && appDir.canWrite())) {\n appDir.mkdir();\n }\n return new File(appDir, f... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Stop reading the sensors. | public void stop() {
Task.remove(t);
} | [
"public void stopReadings(){\n sensorManager.unregisterListener(this);\n Log.d(\"teste\", \"stopReadings: \");\n }",
"public void stop(){\n sensorManager.unregisterListener(sensorEventListener);\n }",
"private void stop() {\n stopTimeout();\n if (this.status != EliSensor... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Initialize the head and tail pointer | public MyLinkedList() {
this.head = null;
this.tail = null;
} | [
"void initializeList(){\n\t\thead = null; tail = null; numElements = 0;\n\t}",
"public DoubleLinkedList(){\r\n\t\thead=tail=null;\r\n\t}",
"LinkedList(){\n\t\thead = new node();\n\t\thead.next=null;\n\t\ttail=head;count=0;\n\t}",
"public LinkedList() {\r\n first = last = new Node<>(null, null);\r\n }",... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Clears the value of the 'provinceid' field | public com.voole.dungbeetle.ad.record.avro.PlayLog.Builder clearProvinceid() {
provinceid = null;
fieldSetFlags()[9] = false;
return this;
} | [
"public Builder clearProvinceId() {\n \n provinceId_ = getDefaultInstance().getProvinceId();\n onChanged();\n return this;\n }",
"public net.stefanfuchs.fux.avro.dto.ad.OrgAddress.Builder clearProvince() {\n province = null;\n fieldSetFlags()[2] = false;\n return th... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Sets a call limit of 1 on the listener | public static Listener once(@NonNull Listener listener, @NonNull EventLoop eventLoop) {
return callLimit(listener, 1, eventLoop);
} | [
"private void setLimit(long value) {\n \n limit_ = value;\n }",
"public abstract long maxCallsbyIPIn1Minute();",
"public void setLimit(long limit) {\n if (this.limit == -1 || (limit != -1 && this.limit > limit)) {\n this.limit = limit;\n }\n }",
"public void setLimit(int limit) {\r\n\... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Gets all the customers from the tableCustomers | public List<String> getCustomers(){
List<String> customers = new ArrayList<String>();
try{
ResultSet set = statement.executeQuery("select * from tableCustomers");
while(set.next()){
customers.add(set.getString("Customer_FirstName") + " " + set.getString("Customer_LastName"));
}
set.close();
}c... | [
"public List<Customer> getCustomers() {\n return customerDAO.findAll();\n }",
"@Override\r\n\tpublic List<Customer> getAllCustomers() {\n\t\treturn getSession().createQuery(\"from Customer\").getResultList();\r\n\t}",
"public List<Cust> getAllCustomers() {\n List<Cust> customers = new ArrayList... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
para obtener la forma rectangular | public double[] getRectangular() {
return rectangular;
} | [
"void mo123968a(RectF rectF);",
"@Override\n protected Rect getRect(){\n return new Rect(x+ width*17/100, y +height* 17/100 , x+width*67/100, y+width*67/100);\n }",
"Rectangle getRect(){\n \treturn new Rectangle(bx,by,15,15);\n }",
"Rectangle getBoundaries();",
"public void generateRect()... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Apply the perturbatio to the given vertice. Equilavalent to v1.addLocal(getPerturbation(v1)) | public static void perturbate(Vector3f v1, float coefficient) {
v1.addLocal(getPerturbation(v1, coefficient, 0));
} | [
"@Override\n \t\tpublic void apply(final VectorDataTransform vlocal) {\n \t\t\tsuper.apply(vlocal);\n \t\t\t// ... and the area\n \t\t\tif (null == aw) return;\n \t\t\tM.apply(vlocal, aw.getArea());\n \t\t}",
"public abstract void addArco(Vertice<T> v1, Vertice<T> v2, double peso);",
"public void addPoint(PVect... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
All of these parameters are passed by yourself in the scheduling call | void onScheduleEnd(World world, BlockPos pos, int scheduleId, CompoundTag additionalData); | [
"@Override\n public void schedule() {\n }",
"@Override\n public void schedule() {\n Job joob = jobs.extractMax();\n //System.out.print(\"Executing: \" + joob.name + \" from: \" +joob.project);\n while(joob!=null)\n {\n if(joob.runtime > joob.project.budget)\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
added to allow GuiView access to image TODO clean this up | public WebCommunications()
{
processImage();
} | [
"public void paintComponent (Graphics g) {g.drawImage (view.img, 0, 0, this);}",
"public Label getImg ( ) {\n return img;\n }",
"private void initiateImageView() {\n red.setImageResource(level2Presenter.getRedAppearence());\n blue.setImageResource(level2Presenter.getBlueAppearence());\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
TODO Autogenerated method stub | public char[] employeeList(int i) {
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"
]
]
}
} |
TODO Autogenerated method stub | @Override
public String getName() {
return this.name;
} | [
"@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 | public static void main(String[] args) {
MarcoCombo mimarco=new MarcoCombo();
mimarco.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
} | [
"@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 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"
]
]
}
} |
$ANTLR end "rule__EAttribute__Group__2" $ANTLR start "rule__EAttribute__Group__2__Impl" ../pimar.editor.textual.xwcore.ui/srcgen/pimar/editor/textual/xwcore/ui/contentassist/antlr/internal/InternalXwcore.g:23689:1: rule__EAttribute__Group__2__Impl : ( ( rule__EAttribute__TransientAssignment_2 )? ) ; | public final void rule__EAttribute__Group__2__Impl() throws RecognitionException {
int stackSize = keepStackSize();
try {
// ../pimar.editor.textual.xwcore.ui/src-gen/pimar/editor/textual/xwcore/ui/contentassist/antlr/internal/InternalXwcore.g:23693:1: ( ( ( rule__EAttri... | [
"public final void rule__EAttributeOpDef__Group_1_3_0__2() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../it.univaq.coevolution.emfmigrate.ui/src-gen/it/univaq/coevolution/emfmigrate/ui/contentassist/antlr/internal/InternalEmig.g:3615:1:... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
This method is called to set the statistics data on the gui | public void loadStatisticsToGui(String[][] statistics) {
this.statisticsBoardPanel.setStatisticsData(statistics);
} | [
"private void updateStats() {\n statsCount.setText(Integer.toString(dm.getCount()));\n statsRecent.setText(Float.toString(dm.getRecentActivity()) + \" seconds\");\n statsHighCount.setText(Integer.toString(dm.getHighestCount()));\n statsMean.setText(Float.toString(dm.getMean()));\n }",... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Round down to the beginning of the month of the year of the specified time | public static long roundMonthOfYear(final long utcMillis) {
int year = getYear(utcMillis);
int month = getMonthOfYear(utcMillis, year);
return DateUtils.of(year, month);
} | [
"public static Calendar getStartOfMonth(int year, int month)\n {\n Calendar toReturn = DateHelper.getCalendarInstance();\n toReturn.clear();\n\n // Ah, silly Calendar. Using 0 for January and 1 for the first day in\n // a month.\n toReturn.set(year, (month - 1), 1);\n\n return toReturn;\n }",
... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
TODO Autogenerated method stub | @Override
public OFPortDesc getPort(OFPort portNumber) {
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"
]
]
}
} |
Return the value of P modulo the size of this permutation. | final int wrap(int p) {
int r = p % size();
if (r < 0) {
r += size();
}
return r;
} | [
"int permute(int p) {\n if (!_cycleMap.containsKey(String.valueOf(alphabet().toChar(p)))) {\n throw new EnigmaException(\"Permute Error:\"\n + \" there is no such interger or chara in the alphabet\");\n } else {\n char from = _IntToCharMap.get(p);\n i... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Load some demo UK postcode from reading a boundle csv file. | private List<PostCode> loadPostCodeData() {
InputStream in =
PostCodeResource.class.getClassLoader().getResourceAsStream(FILE_POSTCODE_OUTCODES_CSV);
BufferedReader reader = new BufferedReader(new InputStreamReader(in));
List<PostCode> postCodeList = new ArrayList<>();
try {
postCodeList =... | [
"public static List<PostPlace> readFromFile() throws IOException, InvalidPostalCodeException, InvalidTownException {\n List<PostPlace> postPlaces = new ArrayList<>();\n BufferedReader bufferedReader = Files.newBufferedReader(Path.of(\"src/main/resources/postPlaces.csv\"));\n String line;\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
TextView textView = findViewById(R.id.spinnerSelectedItem1); | public boolean onMenuItemClick(MenuItem item) {
tvAnger.setText(item.getTitle());
// CheckBox checkBox1 = findViewById(R.id.anger);
cbAnger.setChecked(true);
return true;
} | [
"@Override\n public void onItemSelected(AdapterView<?> parent, View view, int position, long id) {\n str = parent.getItemAtPosition(position).toString();\n\n // Showing selected spinner item\n\n\n }",
"public void onItemSelected(AdapterView<?> parent, View view, int pos, long id)\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Change the Brigthness of the color | private ArrayList<Integer> colorBrigthness(ArrayList<Integer> color){
color.set(1, (brightness * color.get(1)) / 100);
color.set(2, (brightness * color.get(2)) / 100);
color.set(3, (brightness * color.get(3)) / 100);
return color;
} | [
"public void brightColor() {\n this.color = this.color.brighter();\n }",
"private void setColorBasedOnWeight() {\n // The larger the rectangle, the redder is will become\n int blue = (int) Math.round( 250.0 * ((double) getWeight() \n / (double) MAXWEIGHT));\n // The s... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Instantiates a new food. | public Food() {
// place outside the pit, so that it will not be "displayed".
x = -10;
y = -10;
try {
image = ImageIO.read(getClass().getResource("images/food.png"));
} catch (IOException e) { }
} | [
"protected void createFood() {\n if (Math.random() < advancedFoodSpawnChance) {\n try {\n food = advancedFoodClasses.get(rand.nextInt(advancedFoodClasses.size())).getDeclaredConstructor().newInstance();\n } catch (InstantiationException | IllegalAccessException | Invocati... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
/ This method fetch all the employees from the backend server | public static JSONArray getEmployees() {
RestTemplate restTemplate = new RestTemplate();
String employees = restTemplate.getForObject(baseURL+"/getEmployees",String.class);
JSONParser parse = new JSONParser();
try {
JSONArray arr = (JSONArray)parse.parse(employees);
for(int i=0;i<arr.size();i++) {
... | [
"public List<EmployeeInfo> getAllEmployees() {\r\n\r\n\t\tString sql = hr.getProperty(\"GET_ALL_EMPLOYEES\").toString();\r\n\t\tlog.info(\"GET_ALL_EMPLOYEES query: \" + sql);\r\n\t\tObject[] params = new Object[] {};\r\n\t\tEmployeeMapper mapper = new EmployeeMapper();\r\n\r\n\t\tList<EmployeeInfo> list = jdbcTmpl.... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
TODO Autogenerated method stub | public void deleteEntity(int id) {
} | [
"@Override\n }",
"@Override\n\t\t\t\tpublic void pintate() {\n\t\t\t\t\t\n\t\t\t\t}",
"@Override\n public void extornar() {\n \n }",
"@Override\r\n\tpublic void hablar() {\n\t\t\r\n\t}",
"@Override\n\t\tpublic void kayit1() {\n\t\t\t\n\t\t}",
"@Override\r\n\tpublic void wydaj() {\n... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Distribute disks over partitions. .yandex.cloud.compute.v1.DiskPartitionPlacementStrategy partition_placement_strategy = 9; | boolean hasPartitionPlacementStrategy(); | [
"public void setFixedPartitionNumber(int val) { this.npartitions = val; }",
"@Override\n public void partitioned(Map<Integer, com.datatorrent.api.Partitioner.Partition<T>> partitions) {\n\n }",
"Object getPartitioner();",
"private void registerPartitions(Configuration conf, CatalogStorage storage, Path stat... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
find the position of entry in hash table. | private int find(K x) {
int k = 0, ik = 0; //ik is hashValue
HashNode < K > curNode;
while (true) {
ik = (k + hashHelper(x)) % this.capacity;
curNode = this.table[ik];
if (curNode == null || curNode.key.equals(x)) {
return ik;
} els... | [
"public static int locationOf(Object key, HashTableChained table){\n\treturn ((Integer)table.find(key).value()).intValue();\n }",
"private int searchPos(int key) {\n int desiredPos = hashfunc.hash(key, array.length);\n \n // will hold the actual position of the \n int actualPos = -1;\... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
optional .com.heme.logic.module.DelFriendReq DelFriendReqInfo = 42; | public com.heme.logic.module.Data.DelFriendReq getDelFriendReqInfo() {
if (delFriendReqInfoBuilder_ == null) {
return delFriendReqInfo_;
} else {
return delFriendReqInfoBuilder_.getMessage();
}
} | [
"im.turms.server.common.access.client.dto.request.user.relationship.UpdateFriendRequestRequest getUpdateFriendRequestRequest();",
"public void deleteFriendRequest(final int option) {\n friendRequestRef.document(userId).collection(\"sent to\")\n .document(currentUser.getUid()).delete().addOnS... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
/ JADX WARNING: type inference failed for: r4v2, types: [android.os.IInterface] / JADX WARNING: Multivariable type inference failed / JADX WARNING: Unknown variable types count: 1 / Code decompiled incorrectly, please refer to instructions dump. | public final com.google.android.gms.internal.ads.brw createSearchAdManager(com.google.android.gms.p039a.C0719a r2, com.google.android.gms.internal.ads.zzwf r3, java.lang.String r4, int r5) {
/*
r1 = this;
android.os.Parcel r0 = r1.mo11432z()
com.google.android.gms.internal.ad... | [
"private final com.google.android.gms.internal.zzba m17917b(com.google.android.gms.internal.zzfjj r4) throws java.io.IOException {\n /* JADX: method processing error */\n/*\nError: java.lang.NullPointerException\n\tat jadx.core.dex.visitors.regions.ProcessTryCatchRegions.searchTryCatchDominators(ProcessTryCa... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
check for required fields check for substruct validity | public void validate() throws org.apache.thrift.TException {
} | [
"public void validate() throws org.apache.thrift.TException {\n if (cpurate == null) {\n throw new org.apache.thrift.protocol.TProtocolException(\"Required field 'cpurate' was not present! Struct: \" + toString());\n }\n if (memrate == null) {\n throw new org.apache.thrift.protocol.TProtocolExcep... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
/ / / / / / / / / / / / / / / / / / / | void logMessageInCurrentThread(String fqcn, Level level, Marker marker, Message message, Throwable thrown) {
/* 302 */ ReliabilityStrategy strategy = this.privateConfig.loggerConfig.getReliabilityStrategy();
/* 303 */ strategy.log((Supplier)this, getName(), fqcn, marker, level, message, thrown);
/* */ } | [
"protected int snapBits(){return 9;}",
"private static void EX5() {\n\t\t\r\n\t}",
"public int getSize() { return 3+length;}",
"private void calculatePaths() {\n\n\n }",
"@Override\n public int getWidth(){\n return width - 10;\n }",
"public int getTileWidth() {\n/* 91 */ return 32;\n... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
prints generic values from abstract superclass. at present | private void printGenericValues() {
if (verbosity().length > 0) {
printOptionValues(System.out);
} else {
System.out.println("-v to see generic values");
}
} | [
"@Override\n public String toString() {\n return \"[\" + super.getType() + \"]\" + super.toString();\n }",
"@Override\r\n public String print() {\r\n return \"(\" + numericType.print() + \",\" + siunitType.print() + \")\";\r\n }",
"public interface Printable {\n\t\n /** \n * Lie... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
the onclick listner click is defined here by the button id we can check what button is clicked | @SuppressLint("NonConstantResourceId")
public void onClick(View view) {
switch (view.getId()) {
case R.id.rollOneDiceButton:
if (oneDiceRadioButton.isChecked()) {
if(spin.getSelectedItem() == "Custom 10 sides"){
diceResult = String.val... | [
"@Override\n public void onClick(View v) {\n switch (v.getId()) {\n case R.id.btnaudio:\n id = 1;\n listener.ButtonPressed(id,0);\n break;\n case R.id.btnpic:\n id = 2;\n listener.ButtonPressed(id,1);\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Created by Jessica on 2017/3/21. | public interface BookDetailContract {
interface View extends BaseView {
void showContent(BookDetailBean bookDetailBean);
void showExtraInfo(BookDetailExtraBean bookDetailExtraBean);
void setLikeButtonState(boolean isLiked);
//展示评论
void showReplay(List<RepliesListBean> mLi... | [
"@Override\n public void extornar() {\n \n }",
"@Override\n }",
"@Override\n\t\t\t\tpublic void pintate() {\n\t\t\t\t\t\n\t\t\t\t}",
"private static void EX5() {\n\t\t\r\n\t}",
"@Override\n public int utilite() {\n return 0;\n }",
"@Override\r\n\tpublic void hablar() {... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Remove entity cache data according entity type and ID. | @DISPID(3) //= 0x3. The runtime will prefer the VTID if present
@VTID(10)
void removeCachedData(
String dataType,
String dataCacheKey,
int timeDelay); | [
"public void uncacheProxyOfEntity(final Entity e, final Class<? extends Entity> type) {\n\tcache.invalidateType(e, type);\n }",
"void remove(final Long id, final T entity);",
"public <T> void removeById(Class<T> type, Serializable id) throws DaoException;",
"@Override\n public void remove(Product entity... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
This method was generated by MyBatis Generator. This method corresponds to the database table t_thesis | Thesis selectByPrimaryKey(Long id); | [
"public void setThesis(boolean thesis) {\r\n\t\tthis.thesis = thesis;\r\n\t}",
"@Override\r\n\tpublic ThesisExtend selectBythesisId(int id, User user) {\n\t\treturn null;\r\n\t}",
"@SuppressWarnings(\"unchecked\")\n\t@Override\n\tpublic List<StudentLessonInfo> listStudentLessonInfos() {\n\t\tString sql = \"Sele... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Evaluate the binomial coefficient | public static double combinations(int n, int k) {
double coeff = 1;
for (int i = n - k + 1; i <= n; i++) {
coeff *= i;
}
for (int i = 1; i <= k; i++) {
coeff /= i;
}
return coeff;
} | [
"double binomial (int n, double p, int k)\n {\n }",
"private static double binomialCoefficient(double n, double k) {\n return Math.exp(logFactorial(n) - logFactorial(k) - logFactorial(n - k));\n }",
"public long binomial(int[] array){\r\n\t\tlong ret = 1;\r\n\t\tint n = STARTNODES;\r\n\t\tfor(i... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
/ JADX WARNING: Code restructure failed: missing block: B:115:0x01c1, code lost: if (r16 == false) goto L_0x01c3; / JADX WARNING: Code restructure failed: missing block: B:128:0x01f2, code lost: if (r17 == false) goto L_0x01c3; / JADX WARNING: Code restructure failed: missing block: B:129:0x01f5, code lost: if (r18 == ... | public final void A0E(X.AnonymousClass0WD r36, boolean r37, boolean r38, boolean r39, boolean r40, X.AnonymousClass0WH r41, X.AnonymousClass0WH r42, X.AnonymousClass0WE r43, boolean r44, X.AnonymousClass0WG r45, X.AnonymousClass0WG r46, int r47, int r48, int r49, int r50, float r51, boolean r52, boolean r53, boolean r5... | [
"public static java.nio.ByteBuffer m4854a(java.io.File r9) {\n /* JADX: method processing error */\n/*\nError: java.lang.NullPointerException\n\tat jadx.core.dex.visitors.regions.ProcessTryCatchRegions.searchTryCatchDominators(ProcessTryCatchRegions.java:75)\n\tat jadx.core.dex.visitors.regions.ProcessTryCat... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Check if query has result | public boolean hasResult() {
Query query = createQuery(true);
return (long) query.getSingleResult() != 0;
} | [
"boolean hasQueryResult();",
"@java.lang.Override\n public boolean hasResult() {\n return result_ != null;\n }",
"public boolean hasResult();",
"public boolean hasQueryResultSet() {\n return result.hasQueryResultSet();\n }",
"public boolean hasQueryResult() {\n return ((bitField0_ & 0x... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Scenario: Add a PROJ role: similar the scenario of delete a PROJ role. For a just created brand new role, it can not be found in 'local user PROJ role' association 'remote role PROJ role' association So we can assume No local user use this PROJ role No remote user with remote role(s) use this PROJ role via 'remote role... | void freshCacheByAddPrjRole(PrjRoleModel role); | [
"void addRole(String username, String newRole);",
"@Test\n\tpublic void test030AssignRoleRespectable() throws Exception {\n\t\tfinal String TEST_NAME = \"test030AssignRoleRespectable\";\n\t\tTestUtil.displayTestTitle(this, TEST_NAME);\n\t\tlogin(userAdministrator);\n\n\t\tTask task = createTask(TEST_NAME);\n\t\tO... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Collect the supported resolutions that are at least as big as the preview Surface | private static android.util.Size chooseOptimalSize(android.util.Size[] choices, int textureViewWidth,
int textureViewHeight, int maxWidth, int maxHeight, android.util.Size aspectRatio) {
List<android.util.Size> bigEnough = new ArrayList<>();
// Coll... | [
"private void configureSurfaces() {\n // Find a good size for output - largest 16:9 aspect ratio that's less than 720p\n final int MAX_WIDTH = 1280;\n final float TARGET_ASPECT = 16.f / 9.f;\n final float ASPECT_TOLERANCE = 0.1f;\n\n StreamConfigurationMap configs =\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Display if the game is ended | public void displayEndState(Result result) {
btnPlay.setDisable(true);
btnDiscard.setDisable(true);
btnSwap.setDisable(true);
Platform.runLater(() -> {
switch (result) {
case WIN:
remainingTiles.setText(String.valueO... | [
"public void endGame()\n\t{\n\t\t//\t\ttimer.cancel(); // I feel like we don't need this but I'm not will so I''m not gonna delete it yet\n\t\tcanReach = false;\n\t\tstartText.setText(\"Game Over!\");\n\t\tendText.setText(\"You Scored: \" + score + \" Points. Press Enter to Continue.\");\n\t\tendText.setVisible(tru... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
STATIC INSTANCE Driver default constructor | public Driver() {
} | [
"public DriverUtil(){\n\n\t}",
"public CoreDriverImpl() {\n super();\n }",
"private Driver() {\n //kimse ulasmasin diye private kullan\n\n }",
"private Driver()\n {\n throw new IllegalStateException();\n }",
"private DriverFactory()\n \t{\n \t\t//this prevents even the nat... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Modifie le token de l'application transfert | public void setTrans_token(TransToken token){
this.trans_token = token;
} | [
"void refreshToken();",
"Token updateToken(Token token);",
"public void updateReistrationToken() {\n\t\t\n\t}",
"private void sendRegistrationToServer(String token) {\n Log.d(TAG, \"New token created ----> \" + token);\n SharedPreferences sharedPref = getApplicationContext().getSharedPreferences... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
TODO Autogenerated method stub | @Override
public boolean isEnabled() {
return true;
} | [
"@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"
]
]
}
} |
Construct a Pipe to read from is and write to os | Pipe(InputStream is, OutputStream os) {
this.is = new BufferedReader(new InputStreamReader(is));
this.os = new PrintStream(os);
} | [
"public PipedOutputStream(java.io.PipedInputStream snk) throws java.io.IOException { throw new RuntimeException(\"Stub!\"); }",
"public interface PipeInt {\n // advance must:\n // 1. return true to indicate attachPipe is in progress: advance-able\n // 2. return false to indicate attachPipe is done (finished or... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Sets string for the face value. | private void faceVal2Str (int faceValue)
{
if (2 <= faceValue && faceValue <= 10)
faceStr = "" + faceValue;
else
{
switch(faceValue)
{
case 1:
faceStr = "A";
break;
case 11:
... | [
"public void setFace(String f) { face = f; }",
"public void setFace(String face) {\n this.face = face == null ? null : face.trim();\n }",
"private void setFace(Face face)\n {\n this.face = face;\n }",
"void set(String text);",
"public void setFace(int face)\n {\n // 在这里加入你的代... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
optional string Symbol = 3; | public com.google.protobuf.ByteString
getSymbolBytes() {
java.lang.Object ref = symbol_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
symbol_ = b;
... | [
"public String symbol(){\n return symbol;\n }",
"public char getSymbol(){\r\n return symbol;\r\n }",
"private SymbolChar() {}",
"void getSymbol();",
"S getSymbol();",
"public char getSymbol(){ return this.symbol; }",
"public final String getSymbol()\n {\n return symbol;\n }",
"publi... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Check the status of the StorageUtility, throwing fatal exceptions if it is in a disallowed state. UNINITIALIZED is always a disallowed state CLEAN is always an allowed state DIRTY is allowed or disallowed depending on the parameter 'dirtyOK' | private void checkStatusOK (boolean dirtyOK) {
int status = getStatus();
if (status == STATUS_DIRTY) {
if (!dirtyOK) {
throw new IllegalStateException("Storage utility [" + basename + "] is in a corrupted state. You must repair it before you can access it again");
... | [
"@Override\n\tpublic int checkStatus() {\n\t\treturn 0;\n\t}",
"private void checkSDCardState() {\n //made for debugging\n //TODO actually do something when SDcard is unavailable\n boolean mExternalStorageAvailable = false;\n boolean mExternalStorageWriteable = false;\n String s... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Initialize the contents of the frame. | public void initialize() {
frame.setVisible(true);
frame.setBounds(100, 100, 720, 420);
frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
frame.getContentPane().setLayout(null);
cb.setBounds(564, 263, 130, 20);
frame.getContentPane().add(cb);
labelPlayerLife.setBounds(21, 275, 120, ... | [
"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"
]
]
}
} |
position and fill cells here | public void layoutContainer (Container target ){
ListCellFactory factory =getCellFactory ();
IntRectangle ir =getInsets ().getInsideBounds(getSize ().getBounds ());
cellPane.setComBounds(ir);
if(factory.isShareCells()){
layoutWhenShareCells();
}else{
if(factory.isAllCellHas... | [
"private void buildCells() {\n\n /* For each x / y position, place a new cell */\n for (int y = 0; y < cellsHigh_; y++) {\n for (int x = 0; x < cellsWide_; x++) {\n\n cells_.setCellToPosition(this, x, y);\n\n }\n }\n\n }",
"private void populateCells() ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
input = "/Users/yingsheng/git/CMULib/API/src/test/resources/data/testMat"; output = "/Users/yingsheng/testMatout"; | public String svdMaster(String input, String output) throws Exception {
gui.updateprogressArea("***************** Start Job ***************************\n");
gui.updateprogressArea("Loading Data \n ... \n");
output = output + "/svdResult";
//String[][] stringMat = processor.processingData(input, ",",... | [
"static List<TestData> getPath_URI_InputOutputTestData() {\n List<TestData> inputOutputTestCases = new ArrayList<>();\n inputOutputTestCases.add(new TestData(\"/d1\", \"file:///d1\"));\n inputOutputTestCases.add(new TestData(\"/\", \"file:///\"));\n inputOutputTestCases.add(new TestData(... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Set the value related to the column: DEF_MONEY1 | public void setDefMoney1 (java.math.BigDecimal defMoney1) {
this.defMoney1 = defMoney1;
} | [
"public void setMoney(int param){\r\n \r\n this.localMoney=param;\r\n \r\n\r\n }",
"void setMoney(int money);",
"public void setAmount(java.math.BigDecimal param){\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Yuki added 2014.10.24 latitude and longitude Function | @JavascriptInterface
public String getGPS() {
StringBuilder json = new StringBuilder();
try{
GpsActivity gps = new GpsActivity();
json.append("{\"latitude\": \""+gps.getLatitude()+"\",\n" +
" \"longitude\": \""+gps.getLongitude()... | [
"com.google.type.LatLng getLocation();",
"LocationResult mo84015a();",
"public int \r\nGetZipLatLong( String szZipCode,\r\n View zAny,\r\n MutableDouble dLatitude,\r\n MutableDouble dLongitude )\r\n{\r\n return( 0 );\r\n// END\r\n}",
"long getLat(int index);... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Adds an array of strings and creates an end of line character after each element | public void add(String[] theTextArray)
{
for (int i = 0; i < theTextArray.length; i++)
{
add(theTextArray[i]);
addBreak();
}
} | [
"public chbuf append ( String[] ary){\n\tif ( null == ary) \n\t return this;\n\telse {\n\t char infix = token_infix ;\n\t String arg;\n\n\t for ( int c = 0; c < ary.length; c++){\n\n\t\targ = ary[c];\n\n\t\tif ( null != arg){\n\n\t\t if ( 0 < infix && 0 < c)\n\t\t\tappend(infix);\n\n\t\t append(ar... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
add throws an IndexOutOfBoundsException on a negative index | public void testAdd1_IndexOutOfBoundsException() {
try {
CopyOnWriteArrayList c = new CopyOnWriteArrayList();
c.add(-1,"qwerty");
shouldThrow();
} catch (IndexOutOfBoundsException success) {}
} | [
"@Override\n\tpublic void add(int index, E element) {\n\t\t\n\t}",
"@Test(expected = IllegalArgumentException.class)\n\tpublic void test_add_first_negative() {\n\t\tio.add(-1,1);\n\t}",
"void add(int index, Object x);",
"void add(int index, Object o);",
"boolean add(int index, E value);",
"private void ra... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Set post uninstall script file | public void setPostUninstallScriptFile(File postUninstallScriptFile)
{
this.postUninstallScriptFile = postUninstallScriptFile;
} | [
"public void uninstall() {\n }",
"void unsetSetupScript();",
"void unInstall();",
"@Override\n\tpublic void onUninstall()\n\t{\n\t\tprint(\"DialogExtension : Uninstall\");\n\t}",
"private void unhookTibcoStartScript(TibcoServerConfiguration serverConfig) {\n File origTra = new File(serverConfig.g... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
TODO Autogenerated method stub | public static void main(String[] args) {
float a, b , c, guar = 0;
String angulo = "", formato = "";
Scanner s = new Scanner (System.in);
System.out.println("Digite o valor do lado 1");
a = s.nextFloat();
System.out.println("Digite o valor do lado 2");
b = s.nextFloat();
... | [
"@Override\n }",
"@Override\n\t\t\t\tpublic void pintate() {\n\t\t\t\t\t\n\t\t\t\t}",
"@Override\n public void extornar() {\n \n }",
"@Override\r\n\tpublic void hablar() {\n\t\t\r\n\t}",
"@Override\n\t\tpublic void kayit1() {\n\t\t\t\n\t\t}",
"@Override\r\n\tpublic void wydaj() {\n... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Returns node instances of specified attribute type (e.g., context, intervention, outcome) and attribute ID, indexed by AttributeValueNode string representation | public Map<String, WordVec> getNodeInstancesByTypeAndAttributeId(AttributeType attType, String attId) {
Map<String, WordVec> res = new HashMap<>();
for (Map.Entry<String, WordVec> entry : getNodeInstancesByType(attType).entrySet()) {
if (attId.equals(AttributeValueNode.parse(entry.getKey()).... | [
"String[] getValues(String attribute);",
"AttributesType getAttributes();",
"List getTBattributeValueType(Long blcokID,Long attributeID,Long testConditionID);",
"List<? extends Attribute> getAttributes();",
"private void buildMap() {\n \t\tattr2id = new HashMap<String, List<String>>();\n \n \t\tfinal Iterat... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
returns the Lambda Context object supplied to this class during initialization | public static Context getContext()
{
return functionContext;
} | [
"protected T getContext()\r\n\t{\r\n\t\treturn context;\r\n\t}",
"T getContext();",
"Context getContext() {return context;}",
"protected final TContext getContext() { return context.get(); }",
"protected Context getContext() {\n return (context);\n }",
"public static Context getContext() {return... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
TODO Autogenerated method stub | @Override
public void get(String URL) {
} | [
"@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"
]
]
}
} |
Update the cursor is decided by the dispatcher This method is used when setCursor on a lightweight | void updateCursor(Component comp) {
// 6229858 - if this component is the toplevel frame, change the
// cursor here instead of deferring to the LightweightDispatcher
if (comp instanceof Window) {
Cursor cursor = comp.getCursor();
changeCursor(cursor);
}
e... | [
"void updateCursorImmediately();",
"public void setCurrentCursor(Cursor c) { setCursor(c); }",
"public void setCursor(EuclidianCursor cursor);",
"public final void updateCursor() {\n String cursorString = preferences.getString(\"cursor-db\", null);\n String newCursor = null;\n //New Curso... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Created by Lunayo on 28/07/2017. | public interface CarRepository {
public void saveCar(Car car);
public void removeCarOfSlotID(int slotID);
public Collection<Car> listOfCars();
public Collection<String> registrationNumbersOfColour(String colour);
public Collection<Integer> slotNumbersOfColour(String colour);
public Optiona... | [
"@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}",
"public void mo28221a() {\n }",
"public void mo1857d() {\n }",
"@Override\n\t\tpublic voi... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
TODO: Remove this line of debug code when app hits version 1.0 | @Override
public void onResponse(JSONObject response) {
Log.d(TAG, response.toString());
ArrayList<SearchResult> results = new ArrayList<SearchResult>();
try {
JSONArray jsonResults = response.getJSONArray(JsonConstants.JSON_RESULT);
... | [
"protected void mo4791d() {\n }",
"@Override\n public void extornar() {\n \n }",
"private static void EX5() {\n\t\t\r\n\t}",
"public void mo1857d() {\n }",
"protected void method_5557() {}",
"@Override\n public int utilite() {\n return 0;\n }",
"private Perl5Debug() {... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Copy the collection builder, using a new internal collection. | public < C1 extends Collection< T > > CollectionBuilder< C1, T > copy( final C1 collection )
{
collection.addAll( this.collection );
return new CollectionBuilder< >( collection );
} | [
"public DataSetBuilder copyBuilder() {\n return copyBuilder(this);\n }",
"private List<?> copyCollection(final Collection<?> collection) {\n if(collection.isEmpty()) {\n return Lists.newArrayList();\n }\n final List<Object> associatedObjectsCopy = Lists.newArrayList();\n for(f... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Gets the byte array of an image | private byte[] get_byte_data(BufferedImage image) {
WritableRaster raster = image.getRaster();
DataBufferByte buffer = (DataBufferByte) raster.getDataBuffer();
return buffer.getData();
} | [
"private byte[] getByteData(BufferedImage img) {\n WritableRaster raster = img.getRaster();\n DataBufferByte buffer = (DataBufferByte) raster.getDataBuffer();\n return buffer.getData();\n }",
"public byte[] byteArrayFromImage(BufferedImage bi) throws IOException {\n\t\treturn ((DataBufferB... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Removes LSP from Bin. | public void removeLspFromBin(LspWrapper lsaWrapper) {
if (lsaWrapper != null) {
lsdbAge.removeLspFromBin(lsaWrapper);
}
} | [
"void removeLsaFromBin(LsaWrapper lsaWrapper);",
"public void removeLocalVariable(LocalVariableGen l) {\n/* 353 */ this.variable_vec.remove(l);\n/* */ }",
"public void removeLoad_flag(Flags.Load load_flag) {\n this.load_flags.remove(load_flag);\n }",
"public void removePowerSupplyGroup(PowerSu... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Called when the application is created, this method can be overridden to instantiate the application singleton and to create and instantiate any application state variable or shared resource | @Override
public void onCreate() {
super.onCreate();
MyApplication.context = getApplicationContext();
} | [
"public void onCreate(){\n try {\n Field sClassLoader = Globals.class.getDeclaredField(\"sClassLoader\");\n sClassLoader.setAccessible(true);\n sClassLoader.set(null, Atlas.getInstance().getDelegateClassLoader());\n } catch (Exception e) {\n throw new Runtim... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
TODO: this is a derived property, implement this method manually. | @FameProperty(name = "numberOfDirectSubclasses", derived = true)
public Number getNumberOfDirectSubclasses() {
throw new UnsupportedOperationException("Not yet implemented!");
} | [
"@Override\n }",
"@Override\n public void extornar() {\n \n }",
"@Override\n\t\t\t\tpublic void pintate() {\n\t\t\t\t\t\n\t\t\t\t}",
"public Property property() { return property; }",
"Property getRealProperty();",
"protected Z getProperty() {\n return Z.valueOf(mPerLen);\n }",... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
TODO Autogenerated method stub | @Override
public int size() {
return list.size();
} | [
"@Override\n }",
"@Override\n\t\t\t\tpublic void pintate() {\n\t\t\t\t\t\n\t\t\t\t}",
"@Override\n public void extornar() {\n \n }",
"@Override\r\n\tpublic void hablar() {\n\t\t\r\n\t}",
"@Override\n\t\tpublic void kayit1() {\n\t\t\t\n\t\t}",
"@Override\r\n\tpublic void wydaj() {\n... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
The transition function for the UAV MDP. Maps stateaction pairs to a vector of state probabilities | public double[] transition(State s, ACTION a) {
// the agent's position in State s
int x = s.x;
int y = s.y;
// the agent's "intended" direction
int intended_x = x;
int intended_y = y;
// the directions perpendicular to the intended direction
int ortho_x... | [
"public Matrix predictStateActionValues(StateTransition stateTransition) throws MatrixException {\n return predictPolicyValues(stateTransition, true);\n }",
"public double transitionProbability( Object from, Object to, int which, MultiState stateVector )\n{\n MultiDoubleState states = new MultiDouble... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Checks to see if there are any overridden methods. A method is overridden if it has the same signature one in a super class but has different arguments. TODO: Still need to specify which method it overrides in error message. | public boolean checkOverriding() throws MethodClashException {
// a keyset we can use to iterate through the class table's classes
Set<String> keySet = getTable().getClassNames();
// Store all classes that have a super class
ArrayList<ClassInfo> subClasses = new ArrayList<ClassInfo>();
// round up all sub c... | [
"public boolean isOverridingSignatureOf(MethodSignature ms)\n {\n if (returnType != ms.returnType)\n return false;\n\n if (!name.equals(ms.name))\n return false;\n\n if (mismatch(parameterTypes, ms.parameterTypes))\n return false;\n\n return exceptions... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Create an antonym relationship, which is a link between glossary terms that have the opposite meaning. | @PostMapping(path = "/users/{userId}/relationships/antonyms")
public SubjectAreaOMASAPIResponse<Antonym> createAntonym(@PathVariable String serverName,
@PathVariable String userId,
@RequestBody ... | [
"DirectedRelationship createDirectedRelationship();",
"public GrammaticalRelation reln(IndexedWord a, IndexedWord b) {\r\n if (!vertexSet().contains(a)) {\r\n throw new IllegalArgumentException();\r\n }\r\n\r\n List<Pair<GrammaticalRelation, IndexedWord>> pairs = childPairs(a);\r\n for (Pair<Gram... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
TODO: Warning this method won't work in the case the id fields are not set | @Override
public boolean equals(Object object) {
if (!(object instanceof FactureEau)) {
return false;
}
FactureEau other = (FactureEau) object;
if ((this.id == null && other.id != null) || (this.id != null && !this.id.equals(other.id))) {
return false;
... | [
"public int getId () { return id; }",
"public int getId(){ return this.id;}",
"public int id() {return this.id;}",
"@Override\n public int getId() { return id; }",
"public void setId(long id){ \r\n this.id = id; \r\n }",
"public void setId( int id ) { this.id = id; }",
"public void setId( l... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Setter for the data grouping settings. | public ChartsStock setGrouping(String grouping2) {
if (!isChain) {
js.append(jsBase);
isChain = true;
}
js.append(String.format(Locale.US, ".grouping(%s)", wrapQuotes(grouping2)));
if (isRendered) {
onChangeListener.onChange(String.format(Locale.US, "... | [
"public ReportConfigDataset withGrouping(List<ReportConfigGrouping> grouping) {\n this.grouping = grouping;\n return this;\n }",
"public void setGroupingSeparator(char groupingSeparator) {\n this .groupingSeparator = groupingSeparator;\n }",
"public void setGroups(){\n... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Returns the width of the bounding box of the original SVG image. | public static double getOrigWidth() {
return 0.7430000305175781;
} | [
"public int getBoundingBoxWidth() {\r\n\t\r\n\t\treturn WIDTH;\r\n\t\t\r\n\t}",
"public float getWidth() {\n if (boundingBox == null) {\n boundingBox = myCRIF.getBounds2D(paramBlock);\n }\n return (float)boundingBox.getWidth();\n }",
"public int getWidth() {\r\n return ... | {
"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 java.lang.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"
]
]
}
} |