query stringlengths 8 1.54M | document stringlengths 9 312k | negatives listlengths 19 20 | metadata dict |
|---|---|---|---|
========PARSE TREE NODES BACKTRANSLATION STARTS HERE========= >0. 'text' is name of grammar's root node< | @Override
public void enterText( simpleParser.TextContext ctx) {
System.out.println();
System.out.println( " Starting Text..." );
System.out.println( "Text contains: "+ctx.getChildCount()+" lines." );
} | [
"@Override\n public void parseText(){\n CParserResult vResult= new CParserResult();\n if(SymbolStream!=null && SymbolStream.getSymbolStreamStructure().symbolCount()!=0 && Grammar!=null && ParseTable!=null && !TableStructure.isEmpty()){\n vResult=lrParse();\n } \n //}else if(Symb... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Sets a secret in the specified vault. | SecretBundle setSecret(SetSecretRequest setSecretRequest); | [
"void setSecret(String secret);",
"public static void setSecret(String alias, String secret) {\n\t\tsetSecret(alias, secret.getBytes());\n\t}",
"public void setSecret( String s ) {\r\n\tsecret=s;\r\n }",
"Observable<SecretBundle> updateSecretAsync(String vaultBaseUrl, String secretName, String secretVersio... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
TODO Autogenerated method stub | @Override
public void vRetGetMotionResult(int state) {
Log.e(TAG, "vRetGetMotionResult:" + state);
Intent motion = new Intent();
motion.setAction(Constants.P2P.RET_GET_MOTION);
motion.putExtra("motionState", state);
MyApp.app.sendBroadcast(motion);
} | [
"@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"
]
]
}
} |
If mouse is inside the messageWindow or menu then runs its onLeftClick method else checks if some sample is under the mouse and if so then set its moving variable to true (that sample will follow the mouse until left button will be released) | @Override
public boolean onLeftClick(double mouseX, double mouseY) {
menu.focusingInputs(mouseX, mouseY);
if(exitWindow.hasInside(mouseX, mouseY)) {
exitWindow.onLeftClick(mouseX, mouseY);
return false;
} else if(messageWindow.hasInside(mouseX, mouseY)) {
... | [
"public void onLeftDown(int mouseX, int mouseY);",
"public boolean isLeftClick() {\n/* 140 */ return this.click.isLeftClick();\n/* */ }",
"public void onLeftMouseDown(final MouseEvent e) {}",
"public boolean isMouseLeftPressed(){ return(glfwGetMouseButton(window, GLFW_MOUSE_BUTTON_LEFT)==GLFW_PRESS)... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Auto generated setter method | public void setMscAddress(java.lang.String param){
localMscAddressTracker = param != null;
this.localMscAddress=param;
} | [
"abstract protected void set(Object value);",
"@Override\n protected void doSetValue(Object value) {\n super.doSetValue(value);\n }",
"@Override\n \t\t@SuppressWarnings(\"unchecked\")\n \t\tpublic Object setValue(Object value) {\n \t\t\twrite();\n \t\t\treturn me.setValue( value );\n \t\t}",
... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Called when the activity is first created. | @Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
// Impostiamo il layout principale
setContentView(R.layout.main);
// Inizializziamo la struttura di oggetti
List<? extends Map<String,?>> listData = createItems();
// Definiamo le chiavi da rappresentare
Strin... | [
"protected void onCreate() {}",
"@Override\n\tpublic void onCreate() {\n\t\tsuper.onCreate();\n\t\t\n\t\tinitData();\n\t\n\t}",
"@Override\n\tpublic void onCreate() {\n\t\tsuper.onCreate();\n\t\tULog.i(this, \"onCreate() \");\n\t\tinitData();\n\t}",
"@Override\n public void onCreate () {\n super.onC... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
/ renamed from: a | public void mo46616a(String str, Object obj) {
if (!this.f43616j.mo46631a(obj)) {
mo46615a(5, str, (Throwable) null);
}
} | [
"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"
]
]
}
} |
Identity hash in the target VM | public long identityHash() {
Mark mark = getMark();
if (mark.isUnlocked() && (!mark.hasNoHash())) {
return (int) mark.hash();
} else if (mark.isMarked()) {
return (int) mark.hash();
} else {
return slowIdentityHash();
}
} | [
"public String getMachineIdHash() {\n return machineIdHash;\n }",
"public String getVisuHash() {\n return onVisuPassSet(\"compute visu hash\",\n () -> LoxoneCrypto.loxoneHashing(profile.getVisuPassword(), null, visuHashing, \"secured command\"));\n }",
"ByteArray avm_getTransa... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
This method is called by onSwipe in WaferListActivity that implements this method from RecyclerItemTouchHelperListener interface This method is called to delete items from RecyclerView list | public void removeWafer(int position) {
waferList.remove(position);
// notify the wafer removed by position
// to perform recycler view delete animations
notifyItemRemoved(position);
} | [
"@Override\n public void onSwiped(RecyclerView.ViewHolder viewHolder, int direction, int position) {\n final int deletedIndex = viewHolder.getAdapterPosition();\n\n // remove the item from recycler view\n //appointmentFreelancerAdapter.removeItem(viewHolder.ge... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Reads the data and logs any error. | private T readData() {
try {
return attemptReadData();
}
catch ( IOException e ) {
error_ = e;
logger_.log( Level.WARNING, "Failed to read " + dataDescription_,
e );
return null;
}
} | [
"public static int readData() {\n\t\ttry (BufferedReader br = new BufferedReader(new FileReader(\"abc.txt\"))) {\r\n\t\t\tSystem.out.println(br.readLine());\r\n\t\t} catch (\r\n\r\n\t\tFileNotFoundException e) {\r\n\t\t\tSystem.out.println(e.getMessage());\r\n\t\t} catch (IOException e) {\r\n\t\t\tSystem.out.printl... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Saves list of variant products | Map<String, String> saveVariantProducts(final List<B2BAdvanceVariantProductData> variantProducts); | [
"public static void saveProducts()\n\t{\n\t\tif (!productsModified) return;\n\t\tSerialFileHandler.writeObject(products, supplier.getName() + \".dat\");\n\t\tproductsModified = false;\n\t}",
"public void setVariants(List<ProductVariants> variants) {\n this.productVariants = productVariants;\n }",
"pub... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
/ Set the Nimbus look and feel / If Nimbus (introduced in Java SE 6) is not available, stay with the default look and feel. For details see | public static void main(String args[]) {
try {
for (javax.swing.UIManager.LookAndFeelInfo info : javax.swing.UIManager.getInstalledLookAndFeels()) {
if ("Nimbus".equals(info.getName())) {
javax.swing.UIManager.setLookAndFeel(info.getClassName());
... | [
"public static void nimbusLookAndFeel() {\n try {\n for (javax.swing.UIManager.LookAndFeelInfo info : javax.swing.UIManager.getInstalledLookAndFeels()) {\n if (\"Nimbus\".equals(info.getName())) {\n javax.swing.UIManager.setLookAndFeel(info.getClassName());\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
This method was generated by iBATIS builder. This method corresponds to the database table T_A_LOGIN_LOG | @Override
public int deleteByPrimaryKey(long id) throws SQLException {
return sqlMapClient.delete("T_A_LOGIN_LOG.sacoolbuildergenerated_deleteByPrimaryKey", id);
} | [
"public List getSysLoginLogs(SysLoginLog sysLoginLog);",
"public boolean Loginlog(LoginRecordTO lr) {\n\t\ttry {\n\t\t\tfinal boolean loglogin = Auditprocess.Loginlog(lr);\n\t\t\tSystem.out.println(\"entered into login services\");\n\t\t\t\n\t\t} catch (final Exception e) {\n\t\t\te.printStackTrace(); \n\t\t\t\n\... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Adds the passed travel port to the port list. | void add(TravelPort port); | [
"public void addPortIp(int port, String ip) {\r\n PLCConnection con = new UDPConnection(port, ip);\r\n\r\n IDeployable deploy = new Greenhouse(con);\r\n deployArray.add(deploy);\r\n deploy.setDeployNumber(deployArray.size());\r\n\r\n }",
"public static void add(int port, String remo... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Is user clicks on "Keep editing" option, dismiss the dialog and continue editing item | @Override
public void onClick(DialogInterface dialog, int which) {
if (dialog != null) {
dialog.dismiss();
}
} | [
"public void cancelEdit() {\n if(just_created) {\n hidePopup();\n } else {\n // go back & dont persist changes\n content.getChildren().remove(ta);\n message.setVisible(true);\n // maintain proper content\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Generates Quartz properties from the default Quartz properties distributed with the library. | private Properties getSampleQuartzProperties() throws IOException
{
final Properties properties = new Properties();
properties.load(getClass().getClassLoader().getResourceAsStream(
"org/quartz/quartz.properties"));
properties.put("org.quartz.jobStore.tablePrefix", "PSX_Q");
return... | [
"public static Properties getDetaultQuartzProperty() {\n\t\tProperties quartzDefaultProperties = new Properties();\n\t\tquartzDefaultProperties.setProperty(\"org.quartz.scheduler.instanceName\", ClusterWorkerConstants.CW_QUARTZ_SCHEDULLER_NAME);\n\t\tquartzDefaultProperties.setProperty(\"org.quartz.scheduler.instan... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
use set enumeration tree search the candidate space by depthfirst method | private void setEnumerationTree(NaivePattern pattern) {
/** append a new element **/
for(Element next : ceList){
/** skip elements in 'forbidden' **/
if(forbidden.contains(next)){
continue;
}
if( pattern == null){
int a = 1;
a = a + 1;
}
else{
if(pattern.getLength() == 1){
int... | [
"private void depthSearch() {\n\t\t// TODO\n\t}",
"private void findNodeSetforNodes(Integer level, Path path, Collection<Node> input,\n\t\t\tMap<Class<?>, Set<Node>> result) {\n\t\tif (level > 1000)\n\t\t\tthrow new TinyNetException(\"Search level beyond 1000, this may caused by a circular reference path chain.\"... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
TODO Autogenerated method stub | public static void main(String[] args) {
try {
ObjectInputStream ois = new ObjectInputStream(new BufferedInputStream(new FileInputStream("D:/STUDY/Java/sinhvien.dat")));
Object obj = ois.readObject();
SinhVien sv = (SinhVien) obj;
System.out.println(sv.getMa());
} catch (IOException e) {
// TODO Auto... | [
"@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"
]
]
}
} |
repeated uint32 authorization_account_id = 1; | public int getAuthorizationAccountId(int index) {
return authorizationAccountId_.get(index);
} | [
"long getAAccountid();",
"long getUAccountid();",
"private String generateAuthenticationToken(Account account) throws DatabaseInterfaceException\n\t{\n\t\tString authToken = UUID.randomUUID().toString();\n\t\t\n\t\tdbInterface.setAuth(account.getUsername(), authToken);\n\t\t\n\t\treturn authToken;\n\t}",
"pub... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Delete inventory item from table using id | public String deleteInventoryById(int inventoryId) {
inventoryRepository.deleteById(inventoryId);
return "deleted successfully";
} | [
"public void deleteItemById(int id){\n database.delete(\"items\", \"itemId = \"+id, null);\n }",
"public void deleteInventory(Long id) {\n\t\tinventoryRepository.delete(id);\r\n\t}",
"public void deleteInventory(String id) {\n Connection conn = null;\n Statement stmt = null;\n try... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Removes the given element from the ExposurePrices array. This is achieved by marking the element for removal. | @java.lang.Deprecated
public void removeFromExposurePrices(gw.pl.persistence.core.Key elementID); | [
"public void removeFromExposureMetricLimits(entity.ExposureMetricLimit element) {\n __getInternalInterface().removeArrayElement(EXPOSUREMETRICLIMITS_PROP.get(), element);\n }",
"public void removeFromExposureMetricLimits(entity.ExposureMetricLimit element) {\n __getInternalInterface().removeArrayElement(... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
TODO Autogenerated method stub | @Override
public DepartmentBudget findDepartmentBudgetById(String id) {
return budgetLogic.findDepartmentBudgetById(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"
]
]
}
} |
$ANTLR end "rule__XWhileExpression__Group__0" $ANTLR start "rule__XWhileExpression__Group__0__Impl" InternalProgramDsl.g:9832:1: rule__XWhileExpression__Group__0__Impl : ( () ) ; | public final void rule__XWhileExpression__Group__0__Impl() throws RecognitionException {
int stackSize = keepStackSize();
try {
// InternalProgramDsl.g:9836:1: ( ( () ) )
// InternalProgramDsl.g:9837:1: ( () )
{
// InternalProgramDsl.g:9837:1:... | [
"public final void rule__XWhileExpression__Group__0__Impl() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \t\n try {\n // InternalAle.g:11354:1: ( ( () ) )\n // InternalAle.g:11355:1: ( () )\n {\n // InternalAle.g:11355:1: (... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Reads the bitmap from disk in the background and waits until it's loaded by pano widget. | @Override
protected Boolean doInBackground(Pair<Uri, VrPanoramaView.Options>... fileInformation) {
VrPanoramaView.Options panoOptions = null; // It's safe to use null VrPanoramaView.Options.
InputStream istr = null;
if (fileInformation == null || fileInformat... | [
"@Override\r\n\t\tpublic void run() {\n\t\t\tGetImg();\r\n\t\t}",
"private void readFromDisk() {\n generateDrawable();\n }",
"private void loadPaper() {\n new LoadPaperService(progressSpinnerCallback).start();\n }",
"@Override\n\t\t\tpublic void run() {\n\t\t\t\tURL url;\n\t\t\t\ttry {\n\t... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
TODO Autogenerated method stub | @Override
public String getRAM() {
return this.RAM;
} | [
"@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 Device selectByDeviceToken(String device_token) {
return deviceMapper.selectByDeviceToken(device_token);
} | [
"@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"
]
]
}
} |
Creates a vehicle in this VM | public void createVehicle() {
final String id = new UUID().toString();
final AgentConfig vehicleConfig = AgentConfig
.decorate((ObjectNode) getConfig().get("vehicleConfig"));
vehicleConfig.setId(id);
vehicles.add(new Vehicle(vehicleConfig));
} | [
"public void create(Vehicle v)\t{\n\t\tentityManager.persist(v);\n\t}",
"private void crearVehiculos(){\n\n Vehicle vh = new Vehicle();\n vh.setDescription(\"Avion\");\n vh.setLicense(\"AXD-TYU\");\n vh.setSerialNumber(\"12333333\");\n vh.save();\n\n DeliveryRoute dr = ne... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Simple initialization and termination. | @Test
public void initAndTerminate() {
assertTrue(GraphicsSystem.init());
GraphicsSystem.terminate();
} | [
"private void init() { System.out.println(\"Initializing\"); }",
"public void initialize() throws TerminationException;",
"public static void init()\n {\n \t//Initialize stuff... N/A\n }",
"public static void init() {\n // Not yet needed\n }",
"public static void initialize() {\n\t\t\r\n\... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
This method was generated by MyBatis Generator. This method sets the value of the database column accounting_bill.total_fee | public void setTotalFee(Double totalFee) {
this.totalFee = totalFee;
} | [
"public void setTotal_fee(java.math.BigDecimal total_fee) {\n this.total_fee = total_fee;\n }",
"public void accountFee(double fee){\n this.money += fee;\n }",
"public void setFee(long fee) {\r\n\t\tthis.fee = fee;\r\n\t}",
"public void setTotalFeeAmount(BigDecimal totalFeeAmount) {\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
A shell function for listen for files | public static void fileslisten(DataBase database) throws InterruptedException {
Listener.fileslisten(database);
} | [
"public interface FileSystemListener extends EventListener {\n //void folderChanged(FileSystemEvent fse);\n //void folderDeleted(FileSystemEvent fse);\n //void folderAdded(FileSystemEvent fse);\n \n /**\n * This method is triggered when a file is modified. File modification is detected\n * ba... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Prints the top entries from sortedLists | private void printTop() {
sortLists();
for (int x = 0; x < n; x++) {
System.out.println("The top " + t + " " + (x+1) + "-grams:");
ArrayList<Map.Entry<String, Integer>> sortedList = sortedLists.get(x);
int count = 0;
for (Map.Entry<String, Integer> e : sor... | [
"public static void printTopCustomers(ArrayList<DLL.Customer> sorted) {\n System.out.println(\"Here is the information about the top 3 customers.\");\n System.out.println(sorted.get(0));\n System.out.println(sorted.get(1));\n System.out.println(sorted.get(2));\n }"... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Lee de la BD todos los medicamentos para un paciente en concreto | public ArrayList<InfoMedicamento> getMedicamentos(String p, Timestamp fecha) {
ArrayList<InfoMedicamento> med = new ArrayList<InfoMedicamento>();
try {
crearQuery();
resultado = query.executeQuery("SELECT * FROM Recetas WHERE Paciente='"+p+"' AND FechaVisita='"+fecha+"'");
int r = 0;
if (... | [
"public void getDatosInscripcion() {\r\n\t\ttry {\r\n\t\t\tConnection con = getConnection();\r\n\t\t\tPreparedStatement ps=con.prepareStatement(\"\");\t\r\n\t\t\t\r\n\t\t\tResultSet rs = ps.executeQuery();\t\t\r\n\t\t\t\r\n\t\t\twhile(rs.next()) {\r\n\t\t\t\t//Se creara una inscripcion y se aņadira a la clase que c... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Appends and returns a new empty "monitoring" element | public org.biocatalogue.x2009.xml.rest.Service.Monitoring addNewMonitoring()
{
synchronized (monitor())
{
check_orphaned();
org.biocatalogue.x2009.xml.rest.Service.Monitoring target = null;
target = (org.biocatalogue.x2009.xml.rest.Service.Monitoring)get_sto... | [
"public Builder clearMonitoring() { copyOnWrite();\n instance.clearMonitoring();\n return this;\n }",
"public void addNotify() {}",
"protected void addNotify() {\n //do nothing\n }",
"public Builder setMonitoring(com.google.api.Monitoring value) {\n copyOnWrite();\n instance.... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Dieses Interface wird in der MainController Klasse implementiert. Folgende Quelle diente als Hilfestellung: <a href=" | public interface AnimationFertigListener
{
/**
* Diese Methode wird ausgefuehrt, sobald der AnimationThread abgeschlossen ist.
* @param thread Thread, der nach seiner Beendigung den Listener ausloest
*/
void ausloesenAnimationFertig(final Thread thread);
} | [
"@Override\n public Navigation run() throws Exception {\n //cococ\n return forward(\"BackEndProgetti.jsp\");\n }",
"@RequestMapping(\"/\")\n\tpublic String showPage() {\n\t\t\n\t\treturn \"main-menu\";\n\t}",
"@RequestMapping(\"/\")\n\tpublic String showPage() {\n\t\treturn \"main-menu\"; \n... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
This is the constructor for the key listener | public KeyHandler(AppMain app) {
//initializes the app and words
this.app=app;
this.words=new Trie();
try {
//read from resource
BufferedReader reader=new BufferedReader(new InputStreamReader(new BufferedInputStream(getClass().getResourceAsStream("/suggestions.txt"))... | [
"void setKeyListener(KeyListener listener);",
"public KeyHandler(){\n\t\tClientHelper.registerKeyBinding(openEquipmentGUI);\n\t}",
"public Key() {}",
"public Key() {\n\n\t}",
"private void initKeyListener() {\n\t\tKeyboardFocusManager.getCurrentKeyboardFocusManager()\n\t\t .addKeyEventDispatcher(new KeyEve... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Gets the title of this moblima.view. | public String getTitle() {
return title;
} | [
"public String getTitle() {\r\n return title.get();\r\n }",
"public String getTitle () {\r\n\t\treturn title;\r\n\t}",
"public String getTitle() {\n return title;\n }",
"public String getTitle() {\n\t // Implement this method\n\t \treturn this.title;\n\t }",
"public Stri... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
subscribe to a stock for a user | public void adminSubscribe(){
System.out.println("Enter User ID");
String uID = scanner.nextLine();
System.out.println("Enter stock");
String stock = scanner.nextLine();
lists.addUserToStockAdvertList(uID, stock);
lists.addStockToUserProfile(uID, stock);
} | [
"public void subscribeTicker(String product) throws AlreadySubscribedException,\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t UserNotConnectedException,\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t InvalidConnectionIdException {\r\n\t\tUserCommandService.getInstance().subscribeTicker(userName, connectionId, product);\r\n\t}",
"public final... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
TODO Autogenerated method stub | @Override
Prop getp1() {
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"
]
]
}
} |
method called when user allow or deny from permission request dialog | @Override
public void onRequestPermissionsResult(int requestCode, @NonNull String[] permissions, @NonNull int[] grantResults) {
switch (requestCode){
case CAMERA_REQUEST_CODE:{
// PICKING FROM CAMERA, FIRST CHECK IF CAMERA AND STORAGE PERMISSIONS ALLOWED OR NOT
... | [
"private void showPermissionDialog() {\n if (!checkLocationPermission(this)) {\n requestLocationPermission();\n }\n if (!checkStoragePermission(this)) {\n requestStoragePermission();\n }\n }",
"@Override\n public void onPermissionDenied(Permi... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
repeated .hadoop.yarn.StringLongMapProto application_resource_usage_map = 12; | public Builder addApplicationResourceUsageMap(org.apache.hadoop.yarn.proto.YarnProtos.StringLongMapProto value) {
if (applicationResourceUsageMapBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureApplicationResourceUsageMapIsMutable();
... | [
"public interface TTConfig extends MRConfig {\n // Task-tracker configuration properties\n public static final String TT_HTTP_ADDRESS = \n \"skewtune.tasktracker.http.address\";\n\n public static final String TT_HOST_NAME =\n org.apache.hadoop.mapreduce.server.tasktracker.TTConfig.TT_HOST_NAM... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Returns the result of interpreting the object as an instance of 'Method2 Element'. This implementation returns null; returning a nonnull result will terminate the switch. | public T caseMethod2Element(Method2Element object) {
return null;
} | [
"public java.lang.String getMethod2()\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n org.apache.xmlbeans.SimpleValue target = null;\r\n target = (org.apache.xmlbeans.SimpleValue)get_store().find_attribute_user(METHOD2$2);\... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
A provider of services (an entity which has its own toplevel tag in the services.xml file). | public interface ServiceProvider {
} | [
"@SuppressWarnings(\"unchecked\")\n\tpublic List<Service> parseService() {\n\t\tList<Service> slist = new ArrayList<Service>();\n\n\t\tNode serviceRoot = root.selectSingleNode(\"//services\");\n\t\tList<Element> serviceList = serviceRoot.selectNodes(\"//service\");\n\n\t\tint i = 0;\n\t\tfor (Element serviceNode : ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Determines whether this button is enabled. An enabled component can respond to user input and generate events. Buttons are enabled initially by default. A component may be enabled or disabled by calling its setEnabled method. | public boolean isEnabled() {
return enabled;
} | [
"public boolean isInputEnabled()\r\n\t\t{ return(this.isEnableInput); }",
"public boolean isEnable () {\n\t\treturn enable;\n\t}",
"public final boolean isEnabled() {\n\t\t\treturn enabled;\n\t\t}",
"void areButtonsEnabled(boolean enabled);",
"@Override\n\tpublic boolean isEnabled() {\n\t\treturn enable;\n... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
optional bool is_following = 2 [default = false]; | public boolean hasIsFollowing() {
return ((bitField0_ & 0x00000002) == 0x00000002);
} | [
"boolean isFollowing();",
"boolean getFollow();",
"boolean hasFollow();",
"public boolean isFollowing() {\r\n\t\treturn following;\r\n\t}",
"public void setFollowup(boolean followup) {\n this.followup = followup;\n }",
"public boolean getFollow() {\n return follow_;\n }",
"void toggleF... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
TODO Autogenerated method stub | @Override
public Cart update(Cart cart) {
return cartDao.save(cart);
} | [
"@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 the raw input stream. | public ReadStream getRawInput()
{
return _rawRead;
} | [
"InputStream getBaseStream();",
"public InputStream getInputStream() throws IOException {\r\n \t\t\t\t\treturn input;\r\n \t\t\t\t}",
"public InputStream getInputStream() throws IOException {\n\t\treturn in;\n\t}",
"public InputStream getInputStream() {\r\n return _in;\r\n }",
"@Override\r\n\tpubl... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
check if arrival time is within the possible arrival times of the arc | @Override
public int getEdgeCost(TDArc a, int arrivalTime) {
if(arrivalTime >= a.costs.length) {
//the time interval is not within the bounds of this arc (so arc is not reachable)
return Integer.MAX_VALUE;
}
else {
if(a.getCostForTime(arrivalTime)<0) return Integer.MAX_VALUE;
//time interval i... | [
"public boolean isDeliveryTime() {\n/* 111 */ return (Village.isTimeOfDay(this.world, (WORK_START_TIME - 2000), WORK_END_TIME, this.sleepOffset) && !this.world.isRaining());\n/* */ }",
"public boolean isArrival(FlgtSgmt sgmt);",
"private boolean verifyPathCompletion(double time, double distance) {\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
TODO Autogenerated method stub | @Override
public double popNextPressurePsiValue() {
return fakeValue;
} | [
"@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 method was generated by MyBatis Generator. This method sets the value of the database column TFSDOC_DOCUMENTS_TEMP.CURRENCY_CODE | public void setCURRENCY_CODE(BigDecimal CURRENCY_CODE) {
this.CURRENCY_CODE = CURRENCY_CODE;
} | [
"public void setPreferredCurrency(typekey.Currency value);",
"public void setCurrencycode1(java.lang.Integer newCurrencycode1) {\n\tcurrencycode1 = newCurrencycode1;\n}",
"public void setReinsuranceCurrency(typekey.Currency value);",
"public void setMsrpCurrency(String tmp) {\r\n this.msrpCurrency = Intege... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
add a component to a fluid. If component already exists, it will be added to the component | @Override
public void addComponent(String name) {
addComponent(name, 0.0);
} | [
"@Override\n\tpublic void addComponent(Component c) {\n\t\t\n\t}",
"public void addComponent(String name);",
"public void addComponent(ComponentInterface inComponent);",
"@Override\r\n\tpublic void add(Component component) {\n\t\tchlidren.add(component);\r\n\t\t\r\n\t}",
"protected void addToContainer() {\n... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Gets the listsForeground property descriptor. | public java.beans.PropertyDescriptor listsForegroundPropertyDescriptor() {
java.beans.PropertyDescriptor aDescriptor = null;
try {
try {
/* Using methods via getMethod is the faster way to create the listsForeground property descriptor. */
java.lang.reflect.Method aGetMethod = null;
try {
/* Att... | [
"public final Color getForeground() {\n return foreground;\n }",
"public Drawable getForeground() {\n\t\treturn mForeground;\n\t}",
"public com.commutestream.nativeads.protobuf.Csnmessages.ColorOrBuilder getForegroundOrBuilder() {\n if (foregroundBuilder_ != null) {\n return foregrou... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Gets the value of the rentalID property. | public long getRentalID() {
return rentalID;
} | [
"public int getRETAILERID() {\n return retailerid;\n }",
"public int getRETAILERID() {\n return retailerid;\n }",
"public long getRecid() {\n return _recid;\n }",
"public Integer getRepayid() {\r\n return repayid;\r\n... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
TODO Autogenerated method stub | @Override
public User findById(Integer userId) {
User pr=em.find(User.class, userId);
return pr;
} | [
"@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"
]
]
}
} |
User cancelled the dialog | public void onClick(DialogInterface dialog, int id) {
dialog.cancel();
} | [
"protected void cancelDialog() {\n userInput = null;\n closeDialog();\n }",
"@Override\n\t\t\tpublic void cancel() {\n\t\t\t\tdialog.dismiss();\n\t\t\t}",
"public void cancel () {\n\t\tdialogObject.doCallback(null);\n\t}",
"void cancelButtonPressed()\n\t{\n\t\tcloseDlg();\n\t}",
"@Override\... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
To stop a service. | public void stop(Service svc); | [
"public void stopService() {\n stopService(new Intent(getBaseContext(), MyService.class));\n }",
"public void onClickStopService(View V)\n\t{\n\t\t//Stop the running service from here//eegService is your service class name\n\t\t//Service will only stop if it is already running.\n\t\tstopService(new Inte... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Returns the char spacing at char 0. | public float getCharSpacing() { return getXString().getRun(0).getCharSpacing(); } | [
"private String spaces(int x) {\n if (x==0) {\n return \"\";\n }else {\n return String.format(\"%0\"+x+\"d\", 0).replace(\"0\",\" \");\n }\n }",
"public float getLetterSpacing() { throw new RuntimeException(\"Stub!\"); }",
"String getSpace(int x, int y);",
"public double getSpacing() { re... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Return the resource locator for this item provider's resources. | @Override
public ResourceLocator getResourceLocator() {
return CityGMLEditPlugin.INSTANCE;
} | [
"public String getResourceLocator() {\r\n\t\treturn resourceLocator;\r\n\t}",
"public ResourceLocator getResourceLocator() {\n \t\treturn J2EEPlugin.getDefault();\n \t}",
"@Override\r\n\tpublic ResourceLocator getResourceLocator()\r\n\t{\r\n\t\treturn ((IChildCreationExtender) adapterFactory).getResourceLocator... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Loads the contact to the id. | Contact get(String id); | [
"Contact retrieveContact(long id) throws PersistenceException, AssociationException;",
"public static Contact loadContact(Activity activity) {\n\t\tlong id = extractIdFromActivity(activity);\n\t\tContact contact = null;\n\t\tif (id != NEW_CONTACT_ID) {\n\t\t\tCursor cursor = activity.getContentResolver().query(\n... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
This method can be called in any thread, and if it is not called in the main thread, it will be automatically distributed to the main thread. | @Override
public void loadUrl(String url) {
Message msg = mainThreadHandler.obtainMessage(LOAD_URL, url);
mainThreadHandler.sendMessage(msg);
} | [
"@Override\n public synchronized void run() {\n }",
"@Override\n synchronized public void run() {\n }",
"@Override\n public void run() {\n\n }",
"public void run() {\n \t\n }",
"@Override\r\n public void run() {\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Returns the location of an entity's texture. Doesn't seem to be called unless you call Render.bindEntityTexture. | protected ResourceLocation getEntityTexture(EntityMagmaCube p_110775_1_) {
return magmaCubeTextures;
} | [
"public ResourceLocation getEntityTexture(BeeEntity entity) {\n if (entity.func_233678_J__()) {\n return entity.hasNectar() ? field_229041_g_ : field_229040_a_;\n } else {\n return entity.hasNectar() ? field_229043_i_ : field_229042_h_;\n }\n }",
"protected ResourceLocation getEnt... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Will cancel the listening socket, and cause the thread to finish | public void cancel() {
try {
mServerSocket.close();
} catch (IOException e) { }
} | [
"public void cancel() {\n Log.d(TAG, \"cancel: Canceling AcceptThread.\");\n try {\n mmServerSocket.close();\n } catch (IOException e) {\n Log.e(TAG, \"cancel: Close of AcceptThread ServerSocket failed. \" + e.getMessage() );\n }\n }",... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Set user corrected activity. | public void setUserCorrectedActivity(Activity activity) {
this.userCorrectedActivity = activity;
this.description = this.userCorrectedActivity.toString();
} | [
"void updateActivity(User user) throws DaoException;",
"public void setActionUser(java.lang.String param){\r\n \r\n if (param != null){\r\n //update the setting tracker\r\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
auths not ready at this time The purpose of Dao method is to perform delete operation of Iostesting noun from database based on given noun id | @Transactional
public String delete_iostesting(long id, IoUser user) throws Exception {
log.setLevel(Level.INFO);
log.info("delete_iostesting Dao started operation!");
try{
Query query = entityManager
.createNativeQuery(delete_Iostesting)
.setParameter("id", id);
query.executeUpdate();
... | [
"int deleteByPrimaryKey(Integer hiArticleid);",
"void deleteArticle(int noArticle) throws DALException;",
"int deleteByPrimaryKey(String odldId);",
"@Delete({\n \"delete from NATION\",\n \"where NATIONID = #{nationid,jdbcType=VARCHAR}\"\n })\n int deleteByPrimaryKey(String nationid);",
"... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Register user to the system | public void registerUser() {
// configure new database
database = new Database();
// Take the data from fields from GUI
String firstname = firstnameTextField.getText();
String lastname = lastnameTextField.getText();
String address = addressTextField.getText();
String ... | [
"private void register() {\n List<? extends View> fields = Arrays.asList(mEditTextFirstName, mEditTextLastName,\n mEditTextCellPhone, mEditTextEmail, mEditTextPassword, mEditTextConfirmPassword, mCkTerms);\n\n boolean formIsValid = AppUtil.validForm(fields, RegisterUserActivity.this);\n... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
/ Method name: sortestWordDistance Description: This method will help to find the shortest distance between two word Method name: mostConsecutiveNum | public static int mostConsecutiveNum(int [] arr) {
int count = 0;
int currCount = 1;
for (int i = 0; i < arr.length - 1; i++) {
if (arr[i] == arr[i + 1]) {
currCount++;
if (currCount > count) {
count = currCount;
}
} else {
currCount = 1;
}
}
return count;
} | [
"public static int minDistance1DBottomUp(String word1, String word2) {\n if(word1.length()<word2.length()){\n String temp =word1;\n word1 = word2;\n word2= temp;\n }\n int m = word1.length(), n = word2.length();\n int prev[] = new int[n+1];\t\n for (int j = 0; j <... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Created by Mam Mam on 12/12/2016. | public interface ILogin {
public void login(boolean isSuc,String notif);
} | [
"@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\r\n\tpublic void hablar() {\n\t\t\r\n\t}",
"public void mo1857d() {\n }",
"public voi... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Create a new thread to render the image. This requires a studio, which contains the scene to be rendered, lights and camera as well as some user interface elements that should be kept up to date. | public RaytraceWorker(Studio studio, RenderPanel renderPanel, StatusIndicator statusIndicator)
{
this(
studio, renderPanel, statusIndicator,
true // traceRaysWithTrajectory
);
} | [
"public void renderImage() {\n //trow exception if one of the fields was not set yet\n try {\n if (_imageWriter == null) {\n throw new MissingResourceException(\"missing resource value\", ImageWriter.class.getName(), \"\");\n }\n\n if (_rayTracer == null... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
the paintBackground property defines wether or not the background will be filled before drawing the text in the paint method. | public void setPaintBackground(boolean paintBackground) {
this.paintBackground = paintBackground;
} | [
"private void paintBackground(Graphics g)\n {\n \n }",
"private void drawBackground() {\n }",
"private void paintBackground() {\n //operationToPerform does not really need to be documented here. only for paintEditor methods that deal with the mouse and motion. \n guiToEdit.frame.ge... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
This constructs the fifth room of the dungeon with other puzzle | public Room5() {
this.drawWalls();
this.drawDoors();
this.drawFloor();
this.drawArrow();
this.drawCharacter(1690, 470);
this.drawRoom();
this.drawLockedDoor();
this.drawHealth(full);
this.drawSwitchs();
this.drawCursor();
} | [
"public void createRoom() {\n String direc = randomDir();\n System.out.println(widthOfRoom);\n for (int i = 0; i < lengthOfRoom; i++) {\n if (lengthOfRoom > 1 && lengthPos - i > 0 && widthPos - i > 0\n && lengthPos + i < MAX_W - 1\n && widthPos +... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
This method removes an item from the existing items to be packed in the parcel | public void removeItem(int number)
{
items.remove(number-1);
} | [
"public void removeItem(Item item){\n storedItems.remove(item);\n }",
"public void removeItem() {\r\n item = null;\r\n itemDescription = \"\";\r\n }",
"public void removeItem() {\n\t\titem = null;\n\t\titemTexture = null;\n\t\tfull = false;\n\t\tonRemoveItem();\n\t}",
"public void... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
TODO Autogenerated method stub | @Override
public void beforeTextChanged(CharSequence s, int start, int count,
int after) {
} | [
"@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"
]
]
}
} |
String sessId = args[0]; int id = Integer.parseInt(sessId); System.out.println("Deleting session: " + id); | public static void main(String[] args) {
DbUtil.loadDbDriver();
Connection conn = null;
try {
conn = DbUtil.getAConnection("rose.cs.umass.edu");
DbSession.deleteSession(conn,52056);
System.out.println("Deleted stale sessions");
} catch (SQLExcep... | [
"public static void main(String[] args) {\n\t\tScanner s=new Scanner(System.in);\n System.out.println(\"Enter sid whose record u want to delete :\");\n int sid=s.nextInt();\n \n try{\n \t//loading of driver...\n Class.forName(\"com.mysql.jdbc.Driver\");\n \n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Reload object Create/Update case | private void reloadObject( RDFObject o ){
RDFObject removed = objects.get(o.getFullName());
if(groupPriority.get("") == null){
groupPriority.put("", new LinkedList<>());
}
if(groupPriority.get(o.getGroup()) == null){
groupPriority.put(o.getGroup(), new LinkedList<... | [
"public Object reload();",
"public void refreshEntity(Object obj);",
"void Reload(TemplateInfo obj) throws SQLException;",
"public void reload() {}",
"void reload(T entity);",
"@Transactional\n\t@RequestMapping(API_RELOAD)\n\tpublic ResponseEntity reload() {\n\n\t\tservice.clearDatabase();\n\t\tservice.lo... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
new DataBase(); HashMap request = new HashMap(); DataBase.searchOutput(request); | @Test
public void searchOutput() {
} | [
"@Override\r\n\tpublic void search(String query) {\n\r\n\t}",
"private void DoMySearch(String query) {\n\t\t\n\t}",
"QueryInfo queryInfo();",
"public void search(){\n\t\tSystem.out.println(\"0 params\");\n\t}",
"List<SearchResult> getAllSearchedQueries();",
"List<PatientResultDet> search(String query);",
... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
added by Zhouchao, 2011/8/26 | public Dot3Onu2CtcEtherPortTable(ISnmpProxy aSnmpProxy) {
super(aSnmpProxy);
init();
} | [
"private static void EX5() {\n\t\t\r\n\t}",
"@Override\n\t\t\t\tpublic void pintate() {\n\t\t\t\t\t\n\t\t\t\t}",
"@Override\n }",
"protected void method_5557() {}",
"@Override\n public void extornar() {\n \n }",
"@Override\n\t\tpublic void kayit1() {\n\t\t\t\n\t\t}",
"protected v... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Return the JMenuItemPublish property value. | private javax.swing.JMenuItem getJMenuItemPermission() {
if (ivjJMenuItemPermission == null) {
try {
ivjJMenuItemPermission = new javax.swing.JMenuItem();
ivjJMenuItemPermission.setName("JMenuItemPermission");
ivjJMenuItemPermission.setMnemonic('p');
ivjJMenuItemPermission.setText("Permissions...")... | [
"@ApiModelProperty(required = true, value = \"Whether to publish the item or not\")\n public Boolean getPublish() {\n return publish;\n }",
"public IotTopicPublishAction getIotTopicPublish() {\n return this.iotTopicPublish;\n }",
"public java.util.Properties getValue() {\n java.util.Properties... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Helper for locking the temp state map lock. | @CheckReturnValue
private boolean lockStateMap() {
return tempStateMapLock.compareAndSet(false, true);
} | [
"public void lockWhileInUse() {\n lock.lock();\n }",
"void \nreadLockNormalCache()\n{\n if (SoVertexShapeP.normalcachemutex != null) {\n SoVertexShapeP.normalcachemutex.readLock();\n }\n}",
"@Test\n\tpublic void testLock() {\n\t\tSystem.out.println(\"lock\");\n\t\tinstance.lock();\n\t\tState[] st... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Prepares a new Cluster object. | public Cluster() {
/* do nothing */
} | [
"public Cluster(){\n super();\n this.id = clusterID++;\n }",
"public Cluster() {\n this.elements = Sets.newTreeSet();\n }",
"public ModifyCacheClusterRequest() {}",
"public Clusterer() {\n\t}",
"public Cluster(ClusterManager clusterManager, String clusterName)\r\n\t{\r\n\t\tthis.n... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
trim_ws ==================================================================== Decrypt the string if it contains a password. | public static String decrypt(String value) {
if (value.length() > 2 && value.substring(0, 2).equals("@@")) {
final String key = "achievingMoreTogether";
StringBuffer sb = new StringBuffer();
String str = value.substring(2);
final byte r = (byte) ((str.charAt(0)) -... | [
"public String decryptString(String inp,String pwd) throws Exception{\n\t\t//Convert HexString to ByteArray and Decrypt input bytes \n\t\treturn new String (decryptBytes(hexStringToByteArray(inp),pwd));\n\t}",
"private String getPassWord(String m)\n{\n String l=m.substring(0,1);// first char provides the l... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Initialize a proxy using context (recommended). This context will be used for security checking when the get and setmethods without context parameters are called. The get and setmethods with context parameter should be used when for instance sudo access is necessary (IContext.createSudoClone() can be used to obtain sud... | public static masterdata.proxies.Map initialize(com.mendix.systemwideinterfaces.core.IContext context, com.mendix.systemwideinterfaces.core.IMendixObject mendixObject)
{
return new masterdata.proxies.Map(context, mendixObject);
} | [
"protected void initVelocityContext(VelocityContext context) {\n context.put(\"datetool\", new DateTool());\n context.put(\"numtool\", new NumberTool());\n\n ResourceTool rt = new ResourceTool();\n HashMap<String, String> args = new HashMap<String, String>();\n args.put(ResourceTool.BUNDLES_KEY, \"TT... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
assert x != null; | @SuppressWarnings("Duplicates")
E unlink(Node<E> x) {
final E element = x.item;
final Node<E> next = x.next;
final Node<E> prev = x.prev;
if (prev == null) {
/**
* 如果要删除的是第一个节点
* 直接把它挂载到头指针上
*/
first = next;
} el... | [
"@Theory\n public void reflexiveTest(Object x){\n \tassumeTrue(x != null);\n assertTrue(x.equals(x));\n }",
"@Test\n public void check_null() {\n }",
"private static void assertNullReference_isFalse(Object x) {\n Assert.assertFalse(\"Passing null to equals should return false\", x.equal... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Notifies all listeners of the given event | protected void fireEvent(int type, Object sourceEvent, Object target) {
if ( listeners != null ) {
ControllerEvent event = new ControllerEvent(type, this, sourceEvent, target);
for ( ControllerListener listener : listeners ) {
listener.handleControllerEvent(event);
}
}
} | [
"public void notifyEventListeners(Event event) {\r\n\t\tsynchronized (listeners) {\r\n\t\t\tfor (EventListener listener : listeners) {\r\n\t\t\t\tlistener.event(event);\r\n\t\t\t}\r\n\t\t}\r\n\t}",
"private void notifyListeners(String event) {\n\t\tfor (ControllerListener listener : mListeners) {\n\t\t\tif (event... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Displays date on xaxis as MMM yyyy format | IAxisValueFormatter createDateFormatter() {
return new IAxisValueFormatter() {
@Override
public String getFormattedValue(float value, AxisBase axis) {
Date date = new Date((long) value);
SimpleDateFormat fmt;
fmt = new SimpleDateFormat("MM... | [
"public void updateLabel() {\n String myFormat = \"dd - MMM - yyyy\"; //In which you need put here\n SimpleDateFormat sdf = new SimpleDateFormat(myFormat, Locale.UK);\n mStartdateEdt.setText(sdf.format(mStartDateCalender.getTime()));\n mEnddateEdt.setText(sdf.format(mEnddateCalender.getT... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
No assertions. Just write out the graph for convenience. | @Test
public void shouldWriteClassicGraphNormalizedAsGraphSONV2() throws IOException {
final OutputStream os = new FileOutputStream(new File(tempPath, "tinkerpop-classic-normalized-v2.json"));
GraphSONWriter.build().mapper(GraphSONMapper.build().version(GraphSONVersion.V2_0).typeInfo(TypeInfo.NO_TYP... | [
"public void writeGraph(Graph g, OutputStream os) throws IOException;",
"public void exportGraphFlat() {\n\t\tfor(Integer v : this.vertices.keySet()) {\n\t\t\tif(getNeighbors(v).size()==0) {\n\t\t\t\tSystem.out.println(v);\n\t\t\t} else {\n\t\t\t\tfor(Integer n : getNeighbors(v)) {\n\t\t\t\t\tSystem.out.println(v... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Creates a DConsole Window with default title. | public DConsole(int width, int height) {
this(null, width, height, true);
} | [
"public static void createWindow() {\n JFrameWindow d1 = new JFrameWindow();\n\n }",
"private void createSShell() {\n\t\tsShell = new Shell();\n\t\tsShell.setText(\"Shell\");\n\t\tcreateFrmDespesa();\n\t\tsShell.setSize(new Point(750, 651));\n\t\tsShell.setLayout(null);\n\t}",
"public static JFrame cr... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Transform the query result to an CTM string. | public String toCTM() throws UnsupportedOperationException; | [
"public String build() {\n String statement = String.format(RESULT_SET_FORMAT, propertyName, resultSetType);\n if(converter != null && !converter.isEmpty()) {\n statement = String.format(RESULT_SET_CUSTOMER_CONVERTER_FORMAT,\n propertyName,\n converter,... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
TODO Autogenerated method stub | public void mousePressed(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"
]
]
}
} |
Writes the name string to the stream. | public static void serialize(
SerializationStreamWriter rWriter,
PropertyName<?> rPropertyName) throws SerializationException
{
rWriter.writeString(rPropertyName.getName());
} | [
"protected String writeName(){\n return this.name;\n }",
"@Override\n\t\tpublic void write(String s) {\n\t\t\ttry {\n\t\t\t\twriter.write(s);\n\t\t\t\twriter.flush();\n\t\t\t} catch (IOException e) {\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\n\t\t}",
"public void writeString(String s);",
"@Override\n pu... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Gets final values for message. | String getValue(); | [
"public final Object[] getMessageValues()\n\t{\n\t\treturn rMessageValues;\n\t}",
"public String getValue() {\n return _msg;\n }",
"public String getMessage(){\n readByColumn();\n orderMessage();\n return finalMessage;\n }",
"public String getData_final() {\n return data_fin... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Sets up the window | protected void init()
{
height = (int) Toolkit.getDefaultToolkit().getScreenSize().getHeight()-100;
width = (int) Toolkit.getDefaultToolkit().getScreenSize().getWidth()-100;
String[] consoles = query.querySingleListReturnColumn(Queries.CONSOLES);
String[] companies = query.querySingleListReturnColumn(Queries.C... | [
"private static void initializeWindow()\n\t{\n\t\tw = new MyWindow(\"Circles\"); \n\t}",
"private void setUpWindow() {\n\n this.windowSize = Toolkit.getDefaultToolkit().getScreenSize();\n this.setSize(this.windowSize);\n this.setResizable(false);\n this.setTitle(\"XtraVision\");\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
/ / / / / / / / / / / / / / / / / | public static short CONST(short v) {
/* 890 */ return v;
/* */ } | [
"private void calculatePaths() {\n\n\n }",
"protected int snapBits(){return 9;}",
"private static void EX5() {\n\t\t\r\n\t}",
"public int getSize() { return 3+length;}",
"@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"
]
]
}
} |
This method returns a boolean indicating if the state have been visited or not Pre: The state must not be null | public boolean getVisited(){
return visited;
} | [
"public boolean hasVisited() {\n\t\t\treturn this.visited;\n\t\t}",
"public boolean wasVisited() { \n if (this.type == CFGType.LOOP)\n return this.visited == 2;\n return this.visited == 1;\n }",
"public Boolean isVisited()\n\t{\n\t\treturn this.visited;\t\t\n\t}",
"public boolean ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
This constructor is needed for call when we want to use this class for threads and hence avoid some things done in the other constructor. | public MandelbrotSet(int width, int height, int num_threads, int pixelPositionCounter, PixelWriter aPixelWriter) {
this.width = width;
this.height = height;
this.num_threads = num_threads;
this.pixelPositionCounter = pixelPositionCounter;
this.aPixelWriter = aPixelWriter;
} | [
"private Threads() {\n }",
"@SuppressWarnings(\"unused\")\n private Thread() {\n }",
"public MyThreadManager() { this(5); }",
"private Threads() {\n // Emtpy.\n }",
"private Utils()\n {\n super();\n }",
"public ThreadRunner() {\r\n\t\tthis(\"\", 0,0);\r\n\t}",
"protected Communic... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
/ access modifiers changed from: packageprivate | public int getIntValue(Keyframe<Integer> keyframe, float f) {
Integer num;
if (keyframe.startValue == null || keyframe.endValue == null) {
throw new IllegalStateException("Missing values for keyframe.");
} else if (this.valueCallback == null || (num = (Integer) this.valueCallback... | [
"protected void method_5557() {}",
"@Override\n }",
"@Override\n public void extornar() {\n \n }",
"public void mo28221a() {\n }",
"protected void mo4791d() {\n }",
"protected void method_2117() {\n }",
"@Override\r\n public void publicando() {\n }",
"private ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
TODO Autogenerated method stub | @Override
public void actionPerformed(ActionEvent e) {
JComboBox cb = (JComboBox)e.getSource();
int i = cb.getSelectedIndex();
if(i == 0){
code = buildCode;
tfAssetID.setEnabled(true);
rdbtnDefault.setEnabled(true);
rdbtnLocal.setEnabled(true);
rdbtnLocalSSH.setEnabled(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"
]
]
}
} |
checks for the existence of an entity with the provided ID. | boolean contains(I identity); | [
"public boolean hasEntity(ID id) {\n return hasEntity(ID + \"=?\", new String[]{String.valueOf(id)});\n }",
"@Override\r\n\t\tpublic boolean existsById(Long id) {\n\t\t\treturn false;\r\n\t\t}",
"@Override\n\tpublic boolean existById(int id) {\n\t\treturn false;\n\t}",
"@Override\n\tpublic boolean e... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Fetch the Playlists from the Hatchet API and store it in the local db. | public void fetchPlaylists() {
if (DatabaseHelper.get().getLoggedOpsCount() == 0) {
Log.d(TAG, "Hatchet sync - fetching playlists");
User.getSelf().done(new DoneCallback<User>() {
@Override
public void onDone(User user) {
String request... | [
"protected void queryPlaylists() {\n ParseQuery<Playlist> query = ParseQuery.getQuery(Playlist.class);\n // include data referred by user key\n query.include(Playlist.KEY_USER);\n // order playlists by creation date (newest first)\n query.addDescendingOrder(\"createdAt\");\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
This method was generated by MyBatis Generator. This method corresponds to the database table course | public boolean isDistinct() {
return distinct;
} | [
"Course selectByCourseId(String courseId);",
"@ManyToOne\n @JoinColumn(name = \"COURSE_ID\", referencedColumnName = \"ID\")\n public Course getCourse() {\n return course;\n }",
"public ResultSet courses(){\r\n try {\r\n String courtliest = \"select course_name from course\";\r\... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
/ 17: / 18: | public EnumDirection b()
/* 19: */ {
/* 20:147 */ return this.b;
/* 21: */ } | [
"@Override\r\n\tpublic String Excercise() {\n\t\treturn \"Run 5km for 1 hr\";\r\n\t}",
"public void mo1857d() {\n }",
"String mo19482h();",
"public void mo25169t() {\n }",
"public void mo17751g() {\n }",
"public static void Elyazi_53() {\n\t\t\n\t}",
"private static void printDateHypens... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Returns the result of interpreting the object as an instance of 'Technical Room'. This implementation returns null; returning a nonnull result will terminate the switch. | public T caseTechnicalRoom(TechnicalRoom object) {
return null;
} | [
"public Room getRoom() {return room;}",
"@Override\n\tpublic String getRoom() {\n\t\treturn roomCode;\n\t}",
"@Override public Room getRoom() {\n return room;\n }",
"java.lang.String getRoomDesc();",
"public String getRoom() {\n\t\treturn Room;\n\t}",
"public Room getRoom() {\n\treturn this.room... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |