query
stringlengths
7
33.1k
document
stringlengths
7
335k
metadata
dict
negatives
listlengths
3
101
negative_scores
listlengths
3
101
document_score
stringlengths
3
10
document_rank
stringclasses
102 values
Intent intent = new Intent(); intent.setAction("com.htcp.taxinear.ACTION_REQUEST"); getContext().sendBroadcast(intent);
public void createServiceRequest() { getMainActivity().startService(new Intent(getMainActivity(), RequestService.class)); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void onClick(View view) {\n Intent intent = new Intent(getApplicationContext(), StartActivityReceiver.class);\n intent.putExtra(\"zjf\", \"123\");\n sendBroadcast(intent);\n }", "public static void sendBroadcast(){\n Intent intent = new Intent(CUSTOM_BROADCAST_ACTION);\n context.sendBroadcast(intent);\n }", "public void onButtonMyReceiverIntent(View view) {\n\n Intent myCustomIntent = new Intent(this, CustomIntent.class);\n startActivity(myCustomIntent);\n\n\n }", "public void broadcastIntent(View view) {\n Intent intent = new Intent();\n intent.setAction(\"nathansass.com.helloworld.CUSTOM_INTENT\");\n sendBroadcast(intent);\n }", "public void broadcastIntent(View view) {\n\t\tLocalBroadcastManager localBroadcastManager = LocalBroadcastManager.getInstance(this);\n\t\tTestBroadcastReceiver testBroadcastReceiver = new TestBroadcastReceiver();\n\t\tIntentFilter intentFilter = new IntentFilter();\n\t\tintentFilter.addAction(\"com.example.volleyball.score.CUSTOM_INTENT\");\n\t\tlocalBroadcastManager.registerReceiver(testBroadcastReceiver, intentFilter);\n\n\t\tSystem.out.println(\"Hit broadcastIntent!!!\");\n\t\tIntent intent = new Intent(); \n\t\tintent.setAction(\"com.example.volleyball.score.CUSTOM_INTENT\"); \n\t\tboolean result = localBroadcastManager.sendBroadcast(intent);//这种方法发出的广播只能被app自身广播接收器接收\n\t\tSystem.out.println(\"使用LocalBroadcastManager发送广播结果:\" + result);\n\t\tlocalBroadcastManager.unregisterReceiver(testBroadcastReceiver);\n//\t\tsendBroadcast(intent);\n\t\ttry {\n//\t\t\tstartActivity(intent);\n\t\t} catch (Exception e) {\n\t\t\t// \n\t\t\te.printStackTrace();\n\t\t}\n\t}", "public void broadcastActivity(String param)\n {\n Intent intent = new Intent(BROADCAST_ACTION);\n intent.putExtra(PARAM, param);\n LocalBroadcastManager bm = LocalBroadcastManager.getInstance(this);\n bm.sendBroadcast(intent);\n }", "@Override\n public void onReceive(Context context, Intent intent) {\n\n gerarNotificacaoTomarRemedio(context, new Intent(context , MainActivity.class));\n }", "void mChapie(){\n Intent i = new Intent(context,Peminjaman.class);\n context.startActivity(i);\n\n }", "@Override\n public void onReceive(Context context, Intent intent) {\n }", "@Override\n public void onReceive(Context context, Intent intent) {\n }", "public void sendToSearch(View view) {\n // Do something in response to button\n\n\n// open when created SendSearchActivity class\n// Intent intent = new Intent(this, SendSearchActivity.class);\n// startActivity(intent);\n\n }", "public void onClick(View v) {\n\n\n\n startActivity(myIntent);\n }", "public void sendnotification(View v){\r\n\t\tRequest req=(Request)v.getTag();\r\n\t\tLog.d(\"selected\", req.getPassenger().getId().toString());\r\n\t\t\r\n//\t\trideresponse=\r\n\t\t\t\trideStart(req, new LatLng(req.getLocation().getLatitude(), req.getLocation().getLongitude()),(Location)this.getIntent().getSerializableExtra(\"mylocation\"));\r\n\t\t\r\n//\t\tIntent intent = new Intent(this, RideStartActivity.class);\r\n// \t \tintent.putExtra(\"ride\", rideresponse);\r\n// \t \tstartActivity(intent);\r\n// \t \tfinish();\r\n\t\t}", "public void submitOrder(View view) {\n\n displayQuantity(myQuantity);\n int total = calculatePrice(myPrice,myQuantity);\n String orderMessage = displayOrder(total);\n Context context = getApplicationContext();\n Toast myToast = Toast.makeText(context,\"Thanks:\" + myName,Toast.LENGTH_SHORT);\n myToast.show();\n // intent to maps\n //Intent myIntent = new Intent(Intent.ACTION_VIEW);\n //myIntent.setData(Uri.parse(\"geo:47.6, -122.3\"));\n Intent myIntent = new Intent(Intent.ACTION_SENDTO);\n myIntent.setData(Uri.parse(\"mailto:\"));\n myIntent.putExtra(Intent.EXTRA_EMAIL, \"[email protected]\");\n myIntent.putExtra(Intent.EXTRA_SUBJECT,\"Java Order\");\n myIntent.putExtra(Intent.EXTRA_TEXT,orderMessage);\n if(myIntent.resolveActivity(getPackageManager())!= null) {startActivity(myIntent);}\n\n }", "private void sendMyBroadCast(String s)\n {\n try\n {\n Intent broadCastIntent = new Intent();\n broadCastIntent.setAction(MainActivity.BROADCAST_ACTION);\n\n // uncomment this line if you want to send data\n broadCastIntent.putExtra(\"data\", s);\n\n sendBroadcast(broadCastIntent);\n\n }\n catch (Exception ex)\n {\n ex.printStackTrace();\n }\n }", "@Override\n\tpublic void starctActivity(Context context) {\n\t\t\n\t}", "void mstrange(){\n Intent i = new Intent(context,Pengembalian.class);\n context.startActivity(i);\n }", "@Override\n\t\t\tpublic void onClick(View v){\n\t\t\t\tif (receiver==null) {\n\t\t\t\t\treceiver = new myReceiver();\n\t\t\t\t\tIntentFilter filter=new IntentFilter();\n\t\t\t\t\tfilter.addAction(\"com.chris.hadoop v\");\n\t\t\t\t\tmActivity.registerReceiver(receiver, filter);\n\t\t\t\t}\n\t\t\t\tIntent intent=new Intent(getActivity(),trafficMonitorService.class);\n\t\t\t\tmActivity.startService(intent);\n\t\t\t\tToast.makeText(mActivity,\" \",Toast.LENGTH_SHORT).show();\n\t\t\t}", "public void criaBroadcast(int valor, String tipo) {\n Intent dialogIntent = new Intent();\n dialogIntent.setAction(\"abc\");\n dialogIntent.putExtra(\"mensagem\", tipo);\n dialogIntent.putExtra(\"valor\", valor + \"\");\n sendBroadcast(dialogIntent);\n }", "@Override\n public void onReceive(Context context, Intent intent) {\n switch (intent.getAction() ) {\n case \"com.example.android.a1nba\":\n Toast.makeText(context, \"A2 nba \", Toast.LENGTH_LONG).show();\n break;\n case \"com.example.android.a1mlb\":\n Toast.makeText(context, \"A2 mlb \", Toast.LENGTH_LONG).show();\n break;\n }\n }", "@Override\n\tpublic void starctActivity(Context context) {\n\n\t}", "@Override\n public void onClick(View view) {\n sendRequest();\n }", "private void sendBroadcast(){\n if (temp != -1){\n Intent intent = new Intent(\"com.example.brdcst_rec.toast\");\n intent.putExtra(\"com.example.brdcst_rec.text\", temp);\n sendOrderedBroadcast(intent, null);\n }\n else{\n Toast.makeText(this, \"No Option Selected!\", Toast.LENGTH_SHORT).show();\n }\n }", "@Override\n public void onReceive(Context context, Intent intent) {\n Toast.makeText(context,\"静态广播:\"+intent.getAction()+\":\"+intent.getStringExtra(\"tv\"),\n Toast.LENGTH_LONG).show();\n System.out.println(intent.getStringExtra(\"tv\"));\n }", "@Override\n public void onReceive(Context context, Intent intent) {\n String action = intent.getAction();\n String message=\"\";\n\n if (action.equals(\"yes\")) message = \"yes\";\n else if (action.equals(\"no\")) message = \"no\";\n\n Toast.makeText(context, message, Toast.LENGTH_SHORT).show();\n }", "public void sendToActivity(String message){\n //In questo metodo \"avviso\" l'app che è arrivato un nuovo dato dal raspberry.\n\n Intent intent = new Intent(\"NOTIFY_ACTIVITY\");\n\n if(message != null){\n intent.putExtra(\"CURRENT_ACTIVITY\",message);\n }\n\n //invio messaggio tramite broadcaster\n broadcast.sendBroadcast(intent);\n\n }", "private void sendIntent(Alarm alarm, String intentType) {\n // intent1 to send to AlarmReceiver\n Intent intent1 = new Intent(AlarmsetActivity.this, AlarmReceiver.class);\n // put intent type Constants.ADD_INTENT or Constants.OFF_INTENT\n intent1.putExtra(\"intentType\", intentType);\n // put alarm'id to compare with pendingIntent'id in AlarmService\n intent1.putExtra(\"AlarmId\", (int) alarm.getId());\n intent1.putExtra(\"task\", alarm.getAlarm_Name());\n // this sent broadCast right a way\n sendBroadcast(intent1);\n }", "@Override\r\n\t\t\tpublic void onClick(View v) {\n\t\t\t\tTestReceiver tr = new TestReceiver();\r\n\t\t\t\tIntent intent = new Intent();\r\n\t\t\t\tintent.setAction(Intent.ACTION_EDIT);\r\n\t\t\t\tMainActivity.this.sendBroadcast(intent);\r\n\t\t\t\t\r\n\t\t\t}", "@Override\r\n\tpublic void onReceive(Context context, Intent intent) {\r\n\t}", "@Override\r\n\t\t\tpublic void onClick(View v) {\n\t\t\t\tsmsReceiver = new SMSReceiver();\r\n\t\t\t\tIntentFilter filter = new IntentFilter();\r\n\t\t\t\tfilter.addAction(SMS_ACTION);\r\n\t\t\t\tMainActivity.this.registerReceiver(smsReceiver, filter);\r\n\t\t\t}", "@Override\n public void onReceive(Context context, Intent intent) {\n // TODO Auto-generated method stub\n Log.d(TAG, \"got it\");\n }", "void intentHasBeenReceivedThroughTheBroadCast(Intent intent);", "@Override\n public void onClick(View v) {\n Intent intent=new Intent(Intent.ACTION_CALL_BUTTON);\n //intent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK);\n startActivity(intent);\n }", "public void registrarDatos(Context context){\n Intent intent= new Intent(context, RegistroActivity.class);\n intent.putExtra(\"registro\",\"vacio\");\n intent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK);\n context.startActivity(intent);\n }", "@Override\n public void onClick(DialogInterface dialog,\n\n int which) {\n\n Intent i = new Intent(getApplicationContext(), MainActivity.class);\n i.putExtra(\"from_value\", \"enquiry\");\n startActivity(i);\n\n }", "@Override\n public void onReceive(Context context, Intent intent) {\n }", "@Override\n public void onReceive(Context context, Intent intent) {\n }", "@Override\n public void onReceive(Context context, Intent intent) {\n }", "@Override\n public void onReceive(Context context, Intent intent) {\n String action=intent.getAction();\n switch (action){\n case Intent.ACTION_POWER_CONNECTED:\n Toast.makeText(context, \"Action_power_connected\", Toast.LENGTH_SHORT).show();\n break;\n case Intent.ACTION_POWER_DISCONNECTED:\n break;\n case Intent.ACTION_AIRPLANE_MODE_CHANGED:\n Toast.makeText(context, \"Action_airplane_mode_changed\", Toast.LENGTH_SHORT).show();\n break;\n case MainActivity.CUSTOM_RECEIVER:\n Toast.makeText(context, \"this is my custom receiver\", Toast.LENGTH_SHORT).show();\n\n\n }\n }", "public void startTransactionActivity (String tripName) {\n\n Intent intent = new Intent (MainActivity.this, TransactionsActivity.class);\n intent.putExtra(\"tripName\", tripName);\n startActivity(intent);\n\n\n\n\n\n }", "public void onClickDiscovery(View view) {\n Intent i = new Intent(this, TestActivity.class);\n i.putExtra(\"providerType\", ProviderType.DISCOVERY);\n startActivity(i);\n }", "public void onReceive(Context context, Intent intent) {\n // Intent intentPanel = new Intent(context.getApplicationContext(), GlobalPanelUI.class);\n // intentPanel.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK);\n // context.startActivity(intentPanel);\n }", "private void m5312e() {\n Intent intent = new Intent(\"data.receiver\");\n intent.putExtra(\"isReLoginHK\", true);\n BaseApplication.m4925a().sendBroadcast(intent);\n }", "private void sendRequest() {\n\t\tloading = ProgressDialog.show(this, \"Loading\", \"Please wait...\");\n\n\t\tUri.Builder uri = new Uri.Builder();\n\t\turi.authority(DatabaseContract.PROVIDER_NAME);\n\t\turi.path(Integer.toString(Constants.LOADREQUESTSCMD));\n\t\turi.scheme(\"content\");\n\n\t\tIntent intent = new Intent(this, MyService.class);\n\t\tintent.putExtra(\"ACTION\", \"QUERY\");\n\t\tintent.setData(uri.build());\n\n\t\trequestid = new Date().getTime();\n\t\tintent.putExtra(\"requestid\", requestid);\n\t\tstartService(intent);\n\t}", "@Override\n public void onClick(View view) {\n Intent myIntent = new Intent(MainActivity.this, ATM_Activity.class);\n myIntent.putExtra(\"Latitude\", latitude);\n myIntent.putExtra(\"Longitude\", longitude);\n startActivity(myIntent);\n }", "@Override\n public void onReceive(Context context, Intent intent) {\n if(\"com.example.brdcst_rec.toast\".equals(intent.getAction())){\n Integer received = intent.getIntExtra(\"com.example.brdcst_rec.text\", -1);\n Intent in = new Intent(context, BrowserActivity.class);\n in.putExtra(\"number\", received);\n context.startActivity(in);\n }\n }", "public void onClick(DialogInterface dialog, int id) {\n Intent intent = new Intent(DestinationReachedReceiver.DESTINATION_REACHED_FILTER_TAG);\n LocalBroadcastManager.getInstance(getApplicationContext()).sendBroadcast(intent);\n }", "protected void startBroadcastLocation() {\n AlarmManager manager = (AlarmManager) getSystemService(Context.ALARM_SERVICE);\n int interval = 5000;\n\n manager.setInexactRepeating(AlarmManager.RTC_WAKEUP, System.currentTimeMillis(), interval, pendingIntent);\n Toast.makeText(this, \"Alarm Set\", Toast.LENGTH_SHORT).show();\n }", "public void sendDelivery(View view) {\n Intent intent = new Intent(android.content.Intent.ACTION_VIEW,\n Uri.parse(\"http://maps.google.com/maps?saddr=enter your location&daadr=enter your destination\"));\n startActivity(intent);\n }", "protected void onNewIntent(android.content.Intent intent) {\n java.lang.String referrer = intent.getStringExtra(\"referrer\");\n android.util.Log.d(\"TRACKING\", \"Reffff: \" + referrer);\n android.content.Intent i = new android.content.Intent();\n i.setAction(\"RRR_AAA_FFF\");\n i.putExtra(\"r\", referrer);\n this.context.sendBroadcast(i);\n super.onNewIntent(intent);\n }", "public void prepare_intent(int requestCode, long invoking_id){\n Intent intent = new Intent(BilansView.this, BilansAdd.class);\n\n if (invoking_id > 0) {\n HashMap<String, String> map = GetItem(invoking_id);\n intent.putExtra(\"item_id\", invoking_id);\n String timestamp[] = map.get(\"data\").split(\" \");\n intent.putExtra(\"data\", timestamp[0]);\n intent.putExtra(\"time\", timestamp[1]);\n intent.putExtra(\"tytul\", map.get(\"tytul\"));\n } else {\n intent.putExtra(\"data\", Utils.datenow());\n intent.putExtra(\"time\", Utils.timenow());\n intent.putExtra(\"amount\", \"\");\n }\n startActivityForResult(intent, requestCode);\n }", "@Override\n\t\tpublic void onReceive(Context context, Intent intent) {\n\t\t}", "void mo21580A(Intent intent);", "void startNewActivity(Intent intent);", "@Override\r\n\tpublic void onReceive(Context arg0, Intent arg1) {\n\t\t\r\n\t}", "@Override\n public void onClick(View v) {\n Intent intent = new Intent(getActivity(), ANQ.class);\n startActivity(intent);\n\n }", "public void LocateClick(View view){\n startActivity(new Intent(this,locateKNUST.class));\n\n }", "@Override\n public void onReceive(Context context, Intent i) {\n String textReceived = i.getStringExtra(\"text\");\n String amtReceived = i.getStringExtra(\"num\");\n\n if(i.getAction().equals(\"Preeti.custom.intent.response\")) {\n MainActivity.setCcy(textReceived, amtReceived);\n }\n }", "public void broadcast(String intentAction) {\n LocalBroadcastManager.getInstance(this).sendBroadcast(\n new Intent(intentAction));\n }", "@Override\n public void onClick(View v) {\n try {\n Intent callIntent = new Intent(Intent.ACTION_CALL);\n callIntent.setData(Uri.parse(\"tel:\" + books.getBuy()));\n context.startActivity(callIntent);\n\n } catch (ActivityNotFoundException e) {\n Log.e(\"helloandroid dialing \", \"Call failed\", e);\n }\n }", "@Override\n\tpublic void onReceive(Context arg0, Intent arg1) {\n\n\t}", "@Override\n public void onReceive(Context context, Intent intent) {\n Uri data = intent.getData();\n String type = intent.getStringExtra(EXTRA_LIFEFORM_NAME);\n double lat = intent.getDoubleExtra(EXTRA_LATITUDE, 0);\n double lng = intent.getDoubleExtra(EXTRA_LONGITUDE, 0);\n Location loc = new Location(\"gps\");\n loc.setLatitude(lat);\n loc.setLongitude(lng);\n if (type.equals(\"facehugger\")) {\n Intent startIntent = new Intent(ACTION_BURN, data);\n startIntent.putExtra(EXTRA_LATITUDE, lat);\n startIntent.putExtra(EXTRA_LONGITUDE, lng);\n\n context.startService(startIntent);\n }\n }", "@Override\n public void onClick(View view) {\n try {\n if (ol_Data.getEnglish().equals(\"Courses\")) {\n\n Intent cour = new Intent(ctx, AllCourses.class);\n cour.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK);\n ctx.startActivity(cour);\n } else if (ol_Data.getEnglish().equals(\"Hijri Calender\")) {\n Intent nq = new Intent(ctx, CaldroidSampleActivity.class);\n nq.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK);\n ctx.startActivity(nq);\n }else if (ol_Data.getEnglish().equals(\"Namaz Alarm\")) {\n Intent nq = new Intent(ctx, Muazzin.class);\n nq.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK);\n ctx.startActivity(nq);\n }else if (ol_Data.getEnglish().equals(\"General Knowledge\")) {\n Intent nq = new Intent(ctx, GK.class);\n nq.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK);\n ctx.startActivity(nq);\n }\n } catch (Exception e) {\n Toast.makeText(ctx, \"Error \" + e.getMessage(), Toast.LENGTH_LONG).show();\n }\n\n }", "void openActivity() {\n Intent intent = new Intent(\"myaction\");\n Bundle bundle = new Bundle();\n bundle.putString(\"name\", \"hui\");\n intent.putExtras(bundle);\n startActivityForResult(intent, 1);\n }", "public static void startActivity(Context context) {\n Intent homeIntent = new Intent(context, RequestActivity.class);\n context.startActivity(homeIntent);\n }", "@Override\n public void onClick(View view) {\n Intent myIntent = new Intent(MainActivity.this, WC_Activity.class);\n myIntent.putExtra(\"Latitude\", latitude);\n myIntent.putExtra(\"Longitude\", longitude);\n startActivity(myIntent);\n }", "@Override\n\t\t\tpublic void onLocationChanged(Location location)\n\t\t\t{\n\t\t\t\t{\n\t\t\t\t\tIntent intent = new Intent();\n\t\t\t\t\tBundle bundle = new Bundle();\n\t\t\t\t\tbundle.putParcelable(LocationManager.KEY_LOCATION_CHANGED, location);\n\t\t\t\t\tbundle.putString(\"type\", getResources().getString(R.string.implicit));\n\t\t\t\t\tintent.putExtras(bundle).setAction(ACTION);\n\t\t\t\t\tMainActivity.this.sendBroadcast(intent);\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t// Send an explicit broadcast\n\t\t\t\t/*\n\t\t\t\t{\n\t\t\t\t\tIntent intent = new Intent();\n\t\t\t\t\tintent.setClass(MainActivity.this, MyBroadcastReceiver.class);\n\t\t\t\t\tBundle bundle = new Bundle();\n\t\t\t\t\tbundle.putParcelable(LocationManager.KEY_LOCATION_CHANGED, location);\n\t\t\t\t\tbundle.putString(\"type\", getResources().getString(R.string.explicit));\n\t\t\t\t\tintent.putExtras(bundle);\n\t\t\t\t\tMainActivity.this.sendBroadcast(intent);\n\t\t\t\t}*/\n\t\t\t\t/*\n\t\t\t\t{\n\t\t\t\t\tIntent intent = new Intent();\n\t\t\t\t\tintent.setClassName(MainActivity.this, \"com.test.leakviabroadcast.MyBroadcastReceiver\");\n\t\t\t\t\tBundle bundle = new Bundle();\n\t\t\t\t\tbundle.putParcelable(LocationManager.KEY_LOCATION_CHANGED, location);\n\t\t\t\t\tbundle.putString(\"type\", getResources().getString(R.string.explicit));\n\t\t\t\t\tintent.putExtras(bundle);\n\t\t\t\t\tMainActivity.this.sendBroadcast(intent);\n\t\t\t\t}*/\n\t\t\t\t/*\n\t\t\t\t{\n\t\t\t\t\tIntent intent = new Intent();\n\t\t\t\t\tintent.setComponent(new ComponentName(MainActivity.this, \"com.test.leakviabroadcast.MyBroadcastReceiver\"));\n\t\t\t\t\tBundle bundle = new Bundle();\n\t\t\t\t\tbundle.putParcelable(LocationManager.KEY_LOCATION_CHANGED, location);\n\t\t\t\t\tbundle.putString(\"type\", getResources().getString(R.string.explicit));\n\t\t\t\t\tintent.putExtras(bundle);\n\t\t\t\t\tMainActivity.this.sendBroadcast(intent);\n\t\t\t\t}*/\n\t\t\t}", "private void registerBroadcastReceiver(){\n final IntentFilter hceNotificationsFilter = new IntentFilter();\n hceNotificationsFilter.addAction(\"unitap.action.NOTIFY_MAIN_DATA\");\n activity.registerReceiver(hceNotificationsReceiver, hceNotificationsFilter);\n Log.v(\"Registering Receiver\", \"MAIN Receiver\");\n }", "public void Volgende(Intent intent){\r\n\r\n startActivity(intent);\r\n\r\n }", "private void initializeBroadcastReceiver() {\n mIntentFilterForMainActivity = new IntentFilter();\n mIntentFilterForMainActivity.addAction(\"action.intent.action.MYRECEIVER\");\n mLocalReceiverForMainActivity = new BroadcastReceiver() {\n @Override\n public void onReceive(Context context, Intent intent) {\n Intent i = new Intent();\n i.setClass(context, MainActivity.class);\n i.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK);\n context.startActivity(i);\n }\n };\n registerReceiver(mLocalReceiverForMainActivity, mIntentFilterForMainActivity);\n\n }", "@Override\r\n public void onReceive(Context context, Intent intent) {\n Log.d(TAG, \"onReceive: -->\");\r\n String str = intent.getDataString();\r\n Toast.makeText(context, \"Got brocastcast\" + intent.getStringExtra(\"Extra\"), Toast.LENGTH_SHORT).show();\r\n }", "@Override\n public void onClick(View v) {\n Context context = v.getContext();\n Intent intent = new Intent(context, FuelEntryListActivity.class);\n\n startActivity(intent);\n\n }", "IntentFilter findFilter(Intent intent);", "public void startAlarm(Context context){\n Intent intent = new Intent(this,MonthlyReminderService.class);\n int received = intent.getIntExtra(\"recieved\", 0);\n intent.putExtra(\"received\", received);\n //int type = intent.getIntExtra(\"type\", 0);\n //Log.e(\"SurveyType\", Integer.toString(type));\n //intent.putExtra(\"type\", type);\n //intent.putExtra(\"date\", surveyDate);\n //intent.putExtra(\"type\", \"Health Literacy\");\n //Calendar now = Calendar.getInstance();\n //intent.putExtra(\"dayofYear\",now.get(Calendar.DAY_OF_YEAR));\n startService(intent);\n }", "void addFilter(IntentFilter filter);", "private void regFliter() {\n\t\tIntentFilter filter = new IntentFilter();\r\n\t\tfilter.addAction(OsConstants.JSH.ADD_DEVICES_SUCCES);\r\n\t\tfilter.addAction(OsConstants.JSH.SETTIING_WIFI_SUCCESS);\r\n\t\tregisterReceiver(mReceiver, filter);\r\n\t}", "@Override\n public void onClick(View v) {\n Intent allRoomsIntent = new Intent(getApplicationContext(), AllRoomsActivity.class);\n /*allRooms.putExtra(\"action\",\"place\");\n startActivity(allRooms);*/\n allRoomsIntent.putExtra(\"AddItemRequest\", ADD_ITEM_REQUEST_CODE);\n startActivityForResult(allRoomsIntent, ADD_ITEM_REQUEST_CODE);\n\n }", "@Override\n public void performAction(View view) {\n startActivity(new Intent(MainActivity.this, MyInfoActivity.class));\n// QPManager.startRecordActivity(MainActivity.this);\n }", "@Override\n public void onReceive(Context context, Intent intent) {\n\n MainActivity activity = (MainActivity) context;\n\n\n String action = intent.getAction();\n if (BluetoothDevice.ACTION_FOUND.equals(action));\n {\n\n Log.d(\"receive\",\"action found\");\n try {\n\n // rssi = intent.getShortExtra(BluetoothDevice.EXTRA_RSSI, Short.MIN_VALUE);\n\n\n BluetoothDevice bluetoothDevice = intent.getParcelableExtra(BluetoothDevice.EXTRA_DEVICE);\n Short rssi = intent.getShortExtra(BluetoothDevice.EXTRA_RSSI,Short.MIN_VALUE);\n\n activity.setDisciveredDevice(bluetoothDevice,rssi);\n\n Log.d(\"receive\", \" Name = \"+bluetoothDevice.getName() );\n Log.d(\"receive\", \" Address = \"+bluetoothDevice.getAddress() );\n\n Toast.makeText(context,\"action found\",Toast.LENGTH_SHORT).show();\n\n }\n catch (Exception e)\n {\n e.printStackTrace();\n }\n\n }\n\n }", "private void setupGeneralBroadcastReceiver() {\n generalBroadcastReceiver = new BroadcastReceiver() {\n @Override\n public void onReceive(Context context, Intent intent) {\n if (\"com.example.loravisual.GENERAL_BROADCAST\".equals(intent.getAction())) {\n int status = intent.getIntExtra(\"com.example.loravisual.GENERAL\", 0);\n if (status == -2) {\n Toast.makeText(context, \"Sender device ready\", Toast.LENGTH_SHORT).show();\n getSupportActionBar().setSubtitle(getString(R.string.connected));\n }\n }\n }\n };\n IntentFilter filter = new IntentFilter(\"com.example.loravisual.GENERAL_BROADCAST\");\n registerReceiver(generalBroadcastReceiver, filter);\n }", "@Override\n\t\tpublic void onReceive(Context context, Intent intent) {\n\t\t\tSystem.out.println(\"instakk\");\n\t\t}", "@Override\n public void run() {\n Intent intent = new Intent(ACTION);\n intent.putExtra(\"result\", \"baz\");\n mLocalBroadcastManager.sendBroadcast(intent);\n // If desired, stop the service\n// stopSelf();\n }", "void requestLocClick() {\n isRequest = true;\n mHasLocationData = false;\n if (mLocationClient != null && mLocationClient.isStarted()) {\n mLocationClient.requestLocation();\n Toast.makeText(getActivity(), \"Locating...\", Toast.LENGTH_SHORT).show();\n } else {\n Log.d(TAG, \"Location Client is not started...\");\n }\n }", "@Override\n public void onClick(View view)\n {\n Intent intent = new Intent(BoilerRoom.this, ScanQR.class);\n //intent.putExtra( \"id\", tvmechID.getText().toString() );\n startActivity(intent);\n }", "@Override\r\n public void onReceive(Context context, Intent intent) {\n Log.e(\"BROADCAST GOT\", intent.toString());\r\n\r\n Intent startLoginScreen = new Intent(context, MainActivity.class);\r\n Bundle b = intent.getExtras();\r\n if (b != null && !b.isEmpty())\r\n startLoginScreen.putExtras(b);\r\n\r\n startLoginScreen.putExtra(\"request\", intent.getAction());\r\n\r\n context.startActivity(startLoginScreen);\r\n\r\n }", "private void startPopup(Context context, Long id) {\n\n //Intent emaIntent = new Intent(context, VoiceRecognitionActivity.class); //The activity you want to start.\n //Intent emaIntent = new Intent(context, PopupActivity.class); //The activity you want to start.\n //Log.d(\"Alarm receiver\", \"received intent\");\n Random random = new Random();\n int value = random.nextInt(1);\n Intent emaIntent = new Intent(context, PopupActivity.class);\n emaIntent.putExtra(\"pos\", id);\n\n\n\n// if (value == 1) {\n// emaIntent = new Intent(context, PopupActivity.class); //The activity you want to start.\n// } else {\n// emaIntent = new Intent(context, VoiceRecognitionActivity.class);\n// }\n\n\n\n emaIntent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK);\n context.startActivity(emaIntent);\n }", "@Override\n public void onClick(View view) {\n Intent Getintent = new Intent(Intent.ACTION_VIEW, Uri.parse(\"http://feedback.avriant.com\"));\n startActivity(Getintent);\n }", "public void mantItinerario(View view){\n Intent intent = new Intent(this, mant_itinerario.class);\n startActivity(intent);\n }", "public void mo1401a(Intent intent) {\n }", "public void startAlarm(Context context) {\n\n System.out.println(\"startAlarm\");\n\n\n\n //creates Object of AlarmManager\n AlarmManager alarmManager = (AlarmManager) context.getSystemService(Context.ALARM_SERVICE);\n\n //passing the Alarm to AlertReceiver Class\n Intent intent = new Intent(context, AlertReceiver.class);\n final int id = (int) System.currentTimeMillis();\n PendingIntent pendingIntent = PendingIntent.getBroadcast(context, id, intent, 0);\n\n //Compares the chosen time with the real time\n if (c.before(Calendar.getInstance())) {\n c.add(Calendar.DATE, 1);\n }\n\n alarmManager.setExact(AlarmManager.RTC_WAKEUP, c.getTimeInMillis(), pendingIntent);\n\n\n }", "public void active(View v){\n Intent intent = new Intent(DevicePolicyManager.ACTION_ADD_DEVICE_ADMIN);\n\n ComponentName mDeviceAdminSample = new ComponentName(this,MyDeviceAdminReceiver.class);\n intent.putExtra(DevicePolicyManager.EXTRA_DEVICE_ADMIN,mDeviceAdminSample );\n intent.putExtra(DevicePolicyManager.EXTRA_ADD_EXPLANATION,\n \"hello,kitty\");\n startActivityForResult(intent, 100);\n\n }", "public void registerForEvents(Context context)\n {\n LocalBroadcastManager.getInstance(context).registerReceiver(\n mMessageReceiver, new IntentFilter(\"tts-event\"));\n }", "@Override\n public void onClick(View v) {\n CustomToast.show(getContext(),\"Service will be available Soon\");\n }", "@Override\n public void onEnabled(Context context, Intent intent) {\n new EventBusUtils().send(1);\n// Toast.makeText(context, \"激活ok====\", Toast.LENGTH_SHORT).show();\n//\n }", "public void newAlarmManager(long time, Intent intent, int requestCode){\n\n PendingIntent pendingIntent = PendingIntent.getBroadcast(getApplicationContext(),\n requestCode, intent, PendingIntent.FLAG_UPDATE_CURRENT);\n AlarmManager startAlarmManager = (AlarmManager) getApplicationContext()\n .getSystemService(Context.ALARM_SERVICE);\n startAlarmManager.setExact(AlarmManager.RTC_WAKEUP, time, pendingIntent);\n }", "@Override\n\t\tpublic void onReceive(Context arg0, Intent arg1) {\n\t\t\tSystem.out.println(\"ALARM CALLED\");\n\t\t\tsendPostRequest();\n\t\t}", "private PendingIntent getPendingSelfIntent(Context context, String action) {\n Intent intent = new Intent(context, getClass());\n intent.setAction(action);\n return PendingIntent.getBroadcast(context, 0, intent, 0);\n }", "@Override\n public void onReceive(Context context, Intent intent) {\n Log.d(\"AlarmCustomerReceiver\", \"zyf onReceive: AlarmCustomerReceiver\");\n }", "@Override\n public void onClick(View view) {\n Intent searchIntent = SearchActivity.newIntent(getApplicationContext());\n startActivity(searchIntent);\n }", "@Override\n\t public void onClick(View v) {\n\t \t SendReqToPebble();\n\t }", "public void onClickSearch (View v)\n{\n startActivity (new Intent(getApplicationContext(), SearchActivity.class));\n}" ]
[ "0.6952104", "0.6922103", "0.6709119", "0.6491547", "0.64187586", "0.6360514", "0.6269979", "0.61103505", "0.60874057", "0.60874057", "0.6083545", "0.6070041", "0.6069342", "0.6052907", "0.60437685", "0.6038829", "0.6015985", "0.60112727", "0.6005652", "0.600535", "0.5991901", "0.5991171", "0.59774494", "0.5963418", "0.5957006", "0.59567016", "0.59481144", "0.59392345", "0.5936096", "0.592717", "0.59093916", "0.587694", "0.58730334", "0.58672243", "0.58654255", "0.5861336", "0.5861336", "0.5861336", "0.5844909", "0.58445704", "0.5843694", "0.5841118", "0.58168256", "0.5807949", "0.5805344", "0.5781204", "0.57803005", "0.5766179", "0.57634115", "0.5763064", "0.5747559", "0.57429767", "0.57355213", "0.57270336", "0.57249475", "0.57153225", "0.571247", "0.5709205", "0.57079756", "0.5696223", "0.56944263", "0.5694371", "0.5692092", "0.5688782", "0.5688107", "0.56753314", "0.56703436", "0.56618917", "0.5661396", "0.5659106", "0.5658191", "0.5655828", "0.56522375", "0.564595", "0.5645501", "0.56447244", "0.56441844", "0.5642922", "0.5642159", "0.56419283", "0.56379193", "0.5637579", "0.5635109", "0.56287915", "0.5626408", "0.56226623", "0.5616435", "0.56102175", "0.56093955", "0.56068486", "0.56038725", "0.5599448", "0.5595534", "0.5595146", "0.5587952", "0.55863017", "0.55827117", "0.55801415", "0.55800843", "0.55797845", "0.55784595" ]
0.0
-1
===================== SETUP AUTO COMPLETE ADDRESS =====================
public void setStartMarker() { if (startLocation != null) { preferencesManager.putStringValue("STARTLATITUDE", startLocation.latitude + ""); preferencesManager.putStringValue("STARTLONGITUDE", startLocation.longitude + ""); if (mMarkerStartLocation != null) { mMarkerStartLocation.remove(); } iconMarker = BitmapFactory.decodeResource( mainActivity.getResources(), R.drawable.ic_position_a); iconMarker = Bitmap.createScaledBitmap(iconMarker, iconMarker.getWidth(), iconMarker.getHeight(), false); mMarkerStartLocation = mMap.addMarker(new MarkerOptions().position( startLocation).icon( BitmapDescriptorFactory.fromBitmap(iconMarker))); showDirection(); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void changeBTAddress() {\n\t\t\n\t\t// if ( this.beacon.getAppType() == AppType.APPLE_GOOGLE_CONTACT_TRACING ) {\n\t\tif ( this.useRandomAddr()) {\n\t\t\t// try to change the BT address\n\t\t\t\n\t\t\t// the address is LSB..MSB and bits 47:46 are 0 i.e. bits 0 & 1 of right-most byte are 0.\n\t\t\tbyte btRandomAddr[] = getBTRandomNonResolvableAddress();\n\t\t\t\n\t\t\t// generate the hcitool command string\n\t\t\tString hciCmd = getSetRandomBTAddrCmd( btRandomAddr);\n\t\t\t\n\t\t\tlogger.info( \"SetRandomBTAddrCmd: \" + hciCmd);\n\t\t\t\n\t\t\t// do the right thing...\n\t\t\tfinal String envVars[] = { \n\t\t\t\t\"SET_RAND_ADDR_CMD=\" + hciCmd\n\t\t\t};\n\t\t\t\t\t\t\n\t\t\tfinal String cmd = \"./scripts/set_random_addr\";\n\t\t\t\n\t\t\tboolean status = runScript( cmd, envVars, this, null);\n\t\t}\n\t\t\t\n\t}", "public void setAddress(String adrs) {\n address = adrs;\n }", "public void setInternalAddress(String address);", "public void setAddress(String address);", "public void setAddress(String address);", "public void setAddress(String address);", "public void setAddress(String address);", "void setAdress(String generator, String address);", "public void setAddress(String address) { this.address = address; }", "public void setAddress(String s) {\r\n\t\t// Still deciding how to do the address to incorporate apartments\r\n\t\taddress = s;\t\t\r\n\t}", "Builder setAddress(String address);", "public void setExternalAddress(String address);", "public void setAddress(String _address){\n address = _address;\n }", "public void setBillingAddressInCart(Address addr);", "public void setAddress2(String address2);", "public void setAddress(String address) {\n this.address = address;\n }", "public void setBaseAddress(int targetAddress, int baseAddress);", "private void setPrefAddress( String addr ) {\n\t\tmPreferences.edit().putString( PREF_ADDR, addr ).commit();\n\t}", "Address createAddress();", "public void setAddress(Address address) {\n this.address = address;\n }", "public void setAddress(Address address) {\n this.address = address;\n }", "public void setAddress(Address address) {\n this.address = address;\n }", "private void checkAddress() {\n\t\t// if \"Set Address\" has not been performed then give the message to set\n\t\t// it first\n\t\tif (null == oscPort) {\n\t\t\tshowError(\"Please set an address first\");\n\t\t}\n\t}", "public void setAdress(Adress adr) {\r\n // Bouml preserved body begin 00040F82\r\n\t this.adress = adr;\r\n // Bouml preserved body end 00040F82\r\n }", "public void setAddress(java.lang.String newAddress) {\n\taddress = newAddress;\n}", "public void setAddress(java.lang.String newAddress) {\n\taddress = newAddress;\n}", "public final void setAddress(final String addressNew) {\n this.address = addressNew;\n }", "public void setAddress(String newAddress) {\r\n\t\tthis.address = newAddress;\r\n\t}", "public void setAddress(String address) {\r\n this.address = address;\r\n }", "public void setAddress(String address) {\r\n this.address = address;\r\n }", "public void setAddress(String address) {\r\n this.address = address;\r\n }", "public void setAddress(String address)\n {\n this.address = address;\n }", "public static void fillUpAddAddress() throws Exception {\n\t\tString fName = Generic.ReadRandomCellData(\"Names\");\n\t\tString lName = Generic.ReadRandomCellData(\"Names\");\n\n\t\tString email = Generic.ReadFromExcel(\"Email\", \"LoginDetails\", 1);\n\t\tString mobileNum = Generic.ReadFromExcel(\"GCashNum\", \"LoginDetails\", 1);\n\t\ttry {\n\n\t\t\tsendKeys(\"CreateAccount\", \"FirstName\", fName);\n\n\t\t\tclickByLocation(\"42,783,1038,954\");\n\t\t\tenterTextByKeyCodeEvent(lName);\n\n//\t\t\tsendKeys(\"CreateAccount\", \"UnitNo\", Generic.ReadFromExcel(\"UnitNo\", \"LoginDetails\", 1));\n//\t\t\tsendKeys(\"CreateAccount\", \"StreetNo\", Generic.ReadFromExcel(\"StreetName\", \"LoginDetails\", 1));\n\t\t\tAddAddress(1);\n\t\t\tThread.sleep(2000);\n\t\t\tsendKeys(\"CreateAccount\", \"Email\", email);\n\t\t\tThread.sleep(2000);\n\t\t\tsendKeys(\"CreateAccount\", \"MobileNumber\", mobileNum);\n\t\t\tControl.takeScreenshot();\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n\n\t}", "public void setAddress(final String address){\n this.address=address;\n }", "public void setAddress(String address) {\n this.address = address;\n }", "public void setAddress(String address) {\n this.address = address;\n }", "public void createBillingAddress() throws Exception{\n\t\t\n\t\ttype(firstNameTextBox,\"bob\");\n\t\ttype(lastNameTextBox,\"test\");\n\t\ttype(addressLine1TextBox,\"2716 Ocean Park Blvd Suite 1030\");\n\t\ttype(addressLine2TextBox,\"test house\");\n\t\ttype(cityTextBox,\"Santa Monica\");\n\t\ttype(zipcodeTextBox,\"90405\");\n\t\tselect(stateSelectBox,8);\n\t\ttype(phoneTextField,\"6666654686\");\n\t\ttype(companyTextField,\"test company\");\n\t\n\t}", "public void setAddress(String address){\n\t\tthis.address = address;\n\t}", "public void setAddress(String address){\n\t\tthis.address = address;\n\t}", "public void setAddress(java.lang.String param) {\r\n localAddressTracker = param != null;\r\n\r\n this.localAddress = param;\r\n }", "void setAddress(long address) throws Exception {\n if (address < 0x10000) {\n Scales.sendByte((byte) 'A');\n Scales.sendByte((byte) (address >> 8));\n Scales.sendByte((byte) address);\n } else {\n Scales.sendByte((byte) 'H');\n Scales.sendByte((byte) (address >> 16));\n Scales.sendByte((byte) (address >> 8));\n Scales.sendByte((byte) address);\n }\n\n\t /* Should return CR */\n if (Scales.getByte() != '\\r') {\n throw new Exception(\"Setting address for programming operations failed! \" + \"Programmer did not return CR after 'A'-command.\");\n }\n }", "public Builder setAddress(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n address_ = value;\n onChanged();\n return this;\n }", "public Builder setAddress(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000008;\n address_ = value;\n onChanged();\n return this;\n }", "public void setAddress(String address) {\n this.address = address;\n }", "public void setAddress(String address) {\n this.address = address;\n }", "public void setAddress(String address) {\n this.address = address;\n }", "public void setAddress(String address) {\n this.address = address;\n }", "public void setAddress(String address) {\n this.address = address;\n }", "public void setAddress(String address) {\n this.address = address;\n }", "public void setAddress(String address) {\n this.address = address;\n }", "public void setAddress(String address) {\n this.address = address;\n }", "public void setAddress(String address) {\n this.address = address;\n }", "public void setAddress(String address) {\n this.address = address;\n }", "public void setAddress(String address) {\n this.address = address;\n }", "public void setAddress(String address) {\n this.address = address;\n }", "public void setAddress(String address) {\n this.address = address;\n }", "public void setAddress(String address) {\n this.address = address;\n }", "public void setAddress(String address) {\n this.address = address;\n }", "public void setAddress(String address) {\n this.address = address;\n }", "public void setAddress(String address) {\n this.address = address;\n }", "Restaurant setRestaurantAddress(Address address);", "public void setAddress(String string) {\n\t\tthis.address = string;\n\t}", "public Builder setAddress(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n address_ = value;\n onChanged();\n return this;\n }", "public Builder setAddress(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n address_ = value;\n onChanged();\n return this;\n }", "public abstract String associatePredefinedAddress(NodeMetadata node, String ip);", "private void populateAddressInfo(){\n userNameLabel.setText(userAccount.getUsername());\n address1Label.setText(userAccount.getPerson().getAddress().getAddressLine1());\n address2Label.setText(userAccount.getPerson().getAddress().getAddressLine2());\n cityLabel.setText(userAccount.getPerson().getAddress().getCity());\n stateLabel.setText(userAccount.getPerson().getAddress().getState());\n nationLabel.setText(userAccount.getPerson().getAddress().getCountry());\n zipLabel.setText(userAccount.getPerson().getAddress().getZipcode());\n emailLabel.setText(userAccount.getPerson().getEmail());\n }", "public Address() {\n\t\tsuper();\n\n\t}", "public void setAddress(final String address) {\n\t\tthis.address = address;\n\t}", "public Builder setAddress(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n address_ = value;\n onChanged();\n return this;\n }", "public Builder setAddress(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n address_ = value;\n onChanged();\n return this;\n }", "public abstract void setAddressLine1(String sValue);", "public static void inspectionBuildAddress(Inspections inspect, TextView textview, boolean useAbbreviatedBoro) {\n useAbbreviatedBoro = false;\n\n textview.setText(inspect.getBuilding() + \" \" + inspect.getStreet()\n + (inspect.getBoro() == null ? \"\" : \",\" + (useAbbreviatedBoro ? AppUtility.getAbbreviatedBoro(inspect.getBoro()) : inspect.getBoro()))\n + (inspect.getZipcode() == null ? \"\" : \",\" + inspect.getZipcode()));\n }", "public void setAddress(java.lang.String address) {\r\n this.address = address;\r\n }", "public void setLocationAddress(final BwString val) {\n locationAddress = val;\n }", "public void setAddress(String address) {\n\t\tthis.address = address;\n\t}", "public void setAddress(String address) {\n\t\tthis.address = address;\n\t}", "public void setAddress(String address) {\n\t\tthis.address = address;\n\t}", "public void setAddress(String address) {\n\t\tthis.address = address;\n\t}", "public void setAddress(String address) {\n\t\tthis.address = address;\n\t}", "public boolean setupOwnAddress() {\n\t\tboolean success = false;\n\t\ttry {\n\t\t\tthis.ownAddress = NetworkLayer.getOwnAddress(); // TODO replace by discover?\n\t\t\tthis.showNamedMessage(\"Client listing on: \" + this.ownAddress);\n\t\t\tthis.showNamedMessage(\"NOTE: depending on detection method,\"\n\t\t\t\t\t+ \" this may NOT be the actual interface used\");\n\t\t\tthis.showNamedMessage(\"Discovered preferred local address: \" \n\t\t\t\t\t+ NetworkLayer.discoverLocalAddress());\n\t\t\tsuccess = true;\n\t\t} catch (UnknownHostException e) {\n\t\t\tthis.showNamedMessage(\"Could not determine own address: \" + e.getLocalizedMessage());\n\t\t} \n\t\treturn success;\n\t}", "public Address() {\n\t\tthis.street = \"\";\n\t\tthis.city = \"\";\n\t\tthis.state= \"\";\n\t\tthis.zipCode = \"\";\n\t}", "abstract public Address createAddress(String addr);", "private void setValueForEditAddrss() {\n ServiceCaller serviceCaller = new ServiceCaller(context);\n serviceCaller.callGetAllAddressByIdService(addressid, new IAsyncWorkCompletedCallback() {\n @Override\n public void onDone(String workName, boolean isComplete) {\n if (isComplete) {\n if (!workName.trim().equalsIgnoreCase(\"no\") && !workName.equalsIgnoreCase(\"\")) {\n ContentDataAsArray contentDataAsArray = new Gson().fromJson(workName, ContentDataAsArray.class);\n for (Data data : contentDataAsArray.getData()) {\n if (data != null) {\n edt_name.setText(data.getName());\n edt_phone.setText(data.getPhone());\n edt_landmark.setText(data.getLandmark());\n edt_address.setText(data.getAddress());\n edt_city.setText(data.getCity());\n edt_state.setText(data.getState());\n }\n }\n }\n }\n }\n });\n\n }", "public Address() {\r\n\t\tsuper();\r\n\t}", "private LispSimpleAddressStringifier() {\n }", "public Builder setAddress(\n java.lang.String value) {\n if (value == null) { throw new NullPointerException(); }\n address_ = value;\n bitField0_ |= 0x00000020;\n onChanged();\n return this;\n }", "public void setUpdipaddr(String updipaddr) {\r\n this.updipaddr = updipaddr;\r\n }", "public void setAddress(String address) {\n\t\tthis.address = StringUtils.trimString( address );\n\t}", "private static void promptAddress() {\n\t\tSystem.out.print(\"Please enter an address: \");\n\t}", "public void setAddress (java.lang.String address) {\n\t\tthis.address = address;\n\t}", "public abstract void setAddressLine2(String sValue);", "public final void setAddress(java.lang.String r1, android.net.Uri r2, int r3) {\n /*\n // Can't load method instructions: Load method exception: bogus opcode: 00e8 in method: android.telecom.ConnectionServiceAdapterServant.2.setAddress(java.lang.String, android.net.Uri, int):void, dex: \n */\n throw new UnsupportedOperationException(\"Method not decompiled: android.telecom.ConnectionServiceAdapterServant.2.setAddress(java.lang.String, android.net.Uri, int):void\");\n }", "Adresse createAdresse();", "public void setAddress(final String address) {\n this._address = address;\n }", "public void setAddr(String addr) {\n this.addr = addr;\n }", "void clearAddress() {\n mAddress = HdmiCec.ADDR_UNREGISTERED;\n }", "public void setAddress(int address)\n {\n this.address = address;\n }", "boolean hasAddressCreationStrategy();", "@Override\n\tpublic void setOnAddress(String onAddress) {\n\t\tthis.onAddress = onAddress;\n\t}", "public Address() {\n \t\n }", "java.lang.String getAddress();" ]
[ "0.65069276", "0.6393255", "0.62979937", "0.62128645", "0.62128645", "0.62128645", "0.62128645", "0.6149296", "0.6141274", "0.61329114", "0.6119398", "0.61004996", "0.6078713", "0.5948459", "0.59325516", "0.59184414", "0.59060544", "0.5903969", "0.5903902", "0.5894703", "0.5894703", "0.5894703", "0.5894627", "0.58876026", "0.58859575", "0.58859575", "0.5840351", "0.5839861", "0.58364743", "0.58364743", "0.58364743", "0.5834919", "0.58314365", "0.5827801", "0.5819371", "0.5819371", "0.5816437", "0.5815271", "0.5815271", "0.57843274", "0.57598966", "0.5754175", "0.5728818", "0.5704288", "0.5704288", "0.5704288", "0.5704288", "0.5704288", "0.5704288", "0.5704288", "0.5704288", "0.5704288", "0.5704288", "0.5704288", "0.5704288", "0.5704288", "0.5704288", "0.5704288", "0.5704288", "0.5704288", "0.57028806", "0.56999457", "0.5694169", "0.5694169", "0.5684495", "0.56548595", "0.56464136", "0.5645736", "0.5642337", "0.5642337", "0.5634209", "0.5633932", "0.5632895", "0.5604307", "0.55990225", "0.55990225", "0.55990225", "0.55990225", "0.55990225", "0.5589129", "0.5573434", "0.5562358", "0.5562342", "0.5558515", "0.55563223", "0.55514604", "0.55513006", "0.55371726", "0.55211407", "0.5518224", "0.5496299", "0.54902595", "0.54823834", "0.54722273", "0.5462672", "0.54617363", "0.5453881", "0.54512566", "0.5445592", "0.5440587", "0.5437423" ]
0.0
-1
Click on map to get latitude and longitude.
public void setUpMapOnClick() { mMap.setOnMapClickListener(new OnMapClickListener() { @Override public void onMapClick(LatLng loc) { // Hiding the keyboard when tab on map. // new MapsUtil.GetAddressByLatLng(new IMaps() { // @Override // public void processFinished(Object obj) { // String address = (String) obj; // if (!address.isEmpty()) { // // Set marker's title // if (txtFromIsSelected) { // txtFrom.setText(address); // } else { // if (txtToIsSelected) { // txtTo.setText(address); // } // } // } // } // }).execute(loc); if (txtFromIsSelected) { txtFrom.setText(getCompleteAddressString(loc.latitude, loc.longitude)); } else { if (txtToIsSelected) { txtTo.setText(getCompleteAddressString(loc.latitude, loc.longitude)); } } closeKeyboard(); selectFromMap = true; if (txtFromIsSelected) { if (circle != null) { circle.remove(); // mMap.clear(); } startLocation = loc; setStartMarker(); circle = mMap.addCircle(new CircleOptions() .center(startLocation) .radius(3000) .strokeWidth(0.5f) .strokeColor(Color.rgb(0, 136, 255)) .fillColor(Color.argb(20, 0, 136, 255))); txtFrom.setDropDownHeight(0); } else { if (txtToIsSelected) { endLocation = loc; setEndMarker(); txtTo.setDropDownHeight(0); } } // Get address by latlng async } }); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void onMapClick(LatLng latLng) {\n Log.i(TAG, \"receive google maps's onMapClick\");\n OnMapClick(latLng.latitude, latLng.longitude);\n\n }", "@OnClick({R.id.address_img, R.id.address})\n void OnClickMap() {\n // Open location on map\n Intent mapIntent=new Intent(Intent.ACTION_VIEW);\n mapIntent.setData(Uri.parse(\"geo:0,0?q=\" + getString(R.string.latitude) + \",\"\n + getString(R.string.longitude)));\n if (mapIntent.resolveActivity(getPackageManager()) != null) {\n startActivity(mapIntent);\n }\n }", "@Override\n public void onMapClick(LatLng latLng) {\n }", "@Override\n public void onMapClick(LatLng latLng) {\n }", "@Override\n public void onMapClick(LatLng point) {\n double lati = point.latitude;\n\n\n // Getting longitude of the current location\n double longi = point.longitude;\n\n\n i = new Intent(MapsActivity.this, addtasks.class);\n\n\n Bundle b = new Bundle();\n b.putDouble(\"latitude\", lati);\n b.putDouble(\"longitude\", longi);\n i.putExtras(b);\n\n startActivity(i);\n\n }", "@Override\n public void onMapReady(GoogleMap googleMap) {\n mMap = googleMap;\n\n /*To find map coordinates for database\n mMap.setOnMapClickListener(new GoogleMap.OnMapClickListener() {\n @Override\n public void onMapClick(LatLng latLng) {\n Log.i(\"MAP\", latLng.latitude + \", \" + latLng.longitude);\n }\n });\n */\n\n\n styleMap();\n populateMap();\n setUpDirectionIntegration();\n\n Intent intent = getIntent();\n String location = intent.getStringExtra(\"Location\");\n if (location != null) {\n showSelectedLocation(location);\n } else {\n //showCurrentLocation();\n showCurrentLocation();\n }\n\n\n }", "@Override\r\n public void onMapClick(LatLng latLng) {\n geocoder1 = new Geocoder(getApplicationContext(), Locale.getDefault());\r\n String State = null;\r\n String City = null;\r\n String Country = null;\r\n try {\r\n\r\n List<Address> Addresses = geocoder1.getFromLocation(latLng.latitude, latLng.longitude, 1);\r\n if (Addresses != null && Addresses.size() > 0) {\r\n\r\n City = Addresses.get(0).getAddressLine(0);\r\n State = Addresses.get(0).getAddressLine(1);\r\n Country = Addresses.get(0).getAddressLine(2);\r\n\r\n }\r\n } catch (IOException e) {\r\n e.printStackTrace();\r\n }\r\n // Clears the previously touched position\r\n googleMap.clear();\r\n\r\n TextView tvLocation = (TextView) findViewById(R.id.tv_location);\r\n\r\n\r\n // Animating to the touched position\r\n googleMap.animateCamera(CameraUpdateFactory.newLatLngZoom(latLng, 16.0f));\r\n\r\n // Placing a marker on the touched position\r\n googleMap.addMarker(new MarkerOptions().position(latLng).title(City + \",\" + State + \",\" + Country));\r\n\r\n tvLocation.setText(\"Latitude:\" + latitude + \", Longitude:\" + longitude + \"\\n\" + City + \",\" + State + \",\\n\" + Country);\r\n\r\n }", "@Override\n public void onMapLongClick(LatLng latLng) {\n Toast.makeText(this, getString(R.string.coordenadas)+\":\"+latLng, Toast.LENGTH_SHORT).show();\n }", "@Override\n public void onMapClick(LatLng latLng) {\n showMarkerButtons(false);\n current_number=\"\";\n markerClickflag=false;\n }", "@Override\n public void onMapClick( LatLng latLng ) {\n googleMap.clear();\n Log.d( \"LAT/LONG\", latLng.toString() );\n googleMap.addCircle( new CircleOptions()\n .center( latLng )\n .radius( 10000 )\n .strokeColor( ContextCompat.getColor( Objects.requireNonNull( getContext() ), R.color.colorLightPurple ) )\n .fillColor( ContextCompat.getColor( Objects.requireNonNull( getContext() ), R.color.transparentcolorLightPurple ) ) );\n\n googleMap.addMarker( new MarkerOptions().position( latLng )\n .icon( BitmapDescriptorFactory.defaultMarker( BitmapDescriptorFactory.HUE_VIOLET ) ) );\n googleMap.moveCamera( CameraUpdateFactory.newLatLngZoom( latLng, 10.0f ) );\n cLocate = latLng;\n }", "void mo5802a(LatLng latLng);", "@Override\n public void onMapClick(LatLng arg0) {\n try {\n Geocoder geo = new Geocoder(MapsActivity.this, Locale.getDefault());\n List<Address> add = geo.getFromLocation(arg0.latitude, arg0.longitude, 1);\n String selectedCountry;\n if (add.size() > 0) {\n selectedCountry = add.get(0).getCountryName();\n selectedStateOrCountry = selectedCountry;\n\n //Log.d(\"country\", selectedCountry);\n //For usa go with states . All other countries - it gives the capital\n if (selectedCountry.equalsIgnoreCase(\"United States\") ||\n selectedCountry.equalsIgnoreCase(\"US\")) {\n selectedStateOrCountry = add.get(0).getAdminArea();\n }\n //Log.d(\"state\", selectedStateOrCountry);\n ConvertTextToSpeech();\n }\n } catch (Exception e) {\n //Log.e(TAG, \"Failed to initialize map\", e);\n }\n }", "public void onMapClick (LatLng point) {\n\t\tmap.clear();\n\t\tdouble lat1 = point.latitude;\n\t\tdouble lng1 = point.longitude;\n\t\tlat=String.valueOf(lat1);\n\t\tlongi=String.valueOf(lng1);\n\t\tGeocoder gcd = new Geocoder(Home.this, Locale.getDefault());\n\t\tList<Address> addresses;\n\t\ttry {\n\t\t\taddresses = gcd.getFromLocation(lat1, lng1, 1);\n\t\t\tif (addresses.size() > 0) \n\t\t\t\t\n\t\t\t\theading.setText(addresses.get(0).getSubAdminArea());\n\t\t\tToast.makeText(Home.this, addresses.get(0).getLocality(),Toast.LENGTH_SHORT).show();\t\t\t\n\t\t\tMarkerOptions options = new MarkerOptions();\n\t\t\toptions.position(point);\n\t\t\tBitmap icon = BitmapFactory.decodeResource(Home.this.getResources(),\n\t\t\t\t\tR.drawable.pin);\n\t\t\tBitmap bhalfsize=Bitmap.createScaledBitmap(icon, icon.getWidth()/5,icon.getHeight()/5, false);\n\t\t\toptions.icon(BitmapDescriptorFactory.fromBitmap(bhalfsize));\n\t\t\toptions.title(addresses.get(0).getLocality());\t\t\n\t\t\tmap.addMarker(options);\n\t\t} catch (IOException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\n\t}", "@Override\r\n public boolean onTap(GeoPoint arg0, MapView arg1) {\n if(getMyLocation()!=null){\r\n int size = 30;\r\n Point out=new Point();\r\n mMapView.getProjection().toPixels(getMyLocation(), out); \r\n Rect rect = new Rect(out.x-size,out.y-size,out.x+size,out.y+size);\r\n mMapView.getProjection().toPixels(arg0, out);\r\n if(rect.contains(out.x, out.y)){\r\n //Log.e(\"MyLocation\", \"click my location \");\r\n mPopView.setVisibility(View.GONE);\r\n MapView.LayoutParams params = (MapView.LayoutParams) mPopView.getLayoutParams();\r\n params.x = 0;// Y轴偏移\r\n params.y = -5;// Y轴偏移\r\n GeoPoint point = getMyLocation().e();\r\n params.point = point;\r\n //mMapCtrl.animateTo(point);\r\n mMapView.updateViewLayout(mPopView, params);\r\n mPopView.setVisibility(View.VISIBLE);\r\n }else{\r\n mPopView.setVisibility(View.GONE) ; \r\n }\r\n }\r\n return super.onTap(arg0, arg1);\r\n }", "@Override\n public void onMapLongClick(LatLng latLng) {\n OnMapLongClick(latLng.latitude, latLng.longitude);\n }", "@Override\n public void onMapClick(LatLng latLng) {\n System.out.println(\"The map was clicked\");\n if(lineSelected == true) {\n resetInfoBox();\n }\n }", "@Override\n\t\t\t\tpublic void onMapClick(LatLng point) {\n\t\t\t\t\tLog.d(\"数据测试\", \"\");\n\t\t\t\t\t\n\t\t\t\t}", "public void onClick(View v) {\n double latitude = 51.52;\n double longitude = -13.03;\n Intent intentBundle = new Intent(MainActivity.this, NetMap.class);\n Bundle bundle = new Bundle();\n bundle.putDouble(\"lat\", latitude);\n bundle.putDouble(\"long\", longitude);\n intentBundle.putExtras(bundle);\n startActivity(intentBundle);\n }", "@Override\n public boolean onMapClick(@NonNull LatLng mapClickPoint) {\n // Update the map click point circle's location\n mapboxMap.getStyle(new Style.OnStyleLoaded() {\n @Override\n public void onStyleLoaded(@NonNull Style style) {\n lastMapClickPoint = Point.fromLngLat(mapClickPoint.getLongitude(), mapClickPoint.getLatitude());\n\n GeoJsonSource deviceLocationSource = style.getSourceAs(MAP_CLICK_CIRCLE_LAYER_SOURCE_ID);\n if (deviceLocationSource != null) {\n deviceLocationSource.setGeoJson(Point.fromLngLat(\n mapClickPoint.getLongitude(), mapClickPoint.getLatitude()));\n }\n queryWifiSpotsWithTilequeryApi(mapClickPoint);\n }\n });\n return true;\n }", "public int getLat();", "@Override\n public void onClick(View v) {\n Uri gmmIntentUri = Uri.parse(\"geo:37.7749,-122.4194\");\n Intent mapIntent = new Intent(Intent.ACTION_VIEW, gmmIntentUri);\n mapIntent.setPackage(\"com.google.android.apps.maps\");\n startActivity(mapIntent);\n }", "@Override\n public void onMapLongClick(@NonNull LatLng point) {\n latitude = String.valueOf(point.getLatitude());\n longitude = String.valueOf(point.getLongitude());\n mapboxMap.addMarker(new MarkerOptions()\n .position(point)\n .title(\"New Maintenance Form\")\n .snippet(\"Click to add site\")\n );\n\n\n }", "private void getMyLocation() {\n LatLng latLng = new LatLng(latitude, longitude);\n CameraUpdate cameraUpdate = CameraUpdateFactory.newLatLngZoom(latLng, 18);\n googleMap.animateCamera(cameraUpdate);\n }", "@Override\n public void onClick(View v) {\n pickPointOnMap();\n }", "@Override\n\t\t\tpublic void onMapClick(LatLng arg0) {\n\t\t\t\tfinal LatLng location = arg0;\n \tAlertDialog builder = new AlertDialog.Builder(MainActivity.this)\n\t .setMessage(\"Do you want to add your location here?\")\n\t .setPositiveButton(\"Yes\", new DialogInterface.OnClickListener() {\n\t public void onClick(DialogInterface dialog, int id) {\n\t \t setFlag = true;\n\t \t myLocation = location;\n\t \t //use this flag to indicate that we want to see the path from current location or a set point\n\t \t Log.d(\"my location:\", \"\"+myLocation.latitude + myLocation.longitude);\n\t \t if(setFlag == true){\n\t \t\t if(myMarker != null){\n\t\t \t\t myMarker.remove();\n\t\t \t }\n\t\t \t myMarker = mMap.addMarker(new MarkerOptions().position(myLocation).title(\"myLocation\").draggable(true)\n\t\t \t\t\t\t\t\t.icon(BitmapDescriptorFactory.defaultMarker(BitmapDescriptorFactory.HUE_BLUE)));\n\t\t \t\t\t\t landmarks.addMarker(\"myLocation\", myMarker);\n\t \t } \n\t }\n\t })\n\t .setNegativeButton(\"Not now\", new DialogInterface.OnClickListener() {\n\t public void onClick(DialogInterface dialog, int id) {\n\t // User cancelled the dialog\n\t }\n\t }).create();\n \tbuilder.show();\n\t\t\t}", "public void onClick(View v){\n \t\ttry {\r\n \t\t\tEditText textLocation = (EditText)findViewById(R.id.edtLocation);\r\n \t\t\tmapLocation = textLocation.getText().toString();\r\n \t\t\t\r\n \t\t\tEditText textDetails = (EditText)findViewById(R.id.edtDetails);\r\n \t\t\tmapSnipper = textDetails.getText().toString();\r\n \t\t\t\r\n \t\t\t\r\n \t\t\tEditText floatLongitude = (EditText)findViewById(R.id.edtLong);\r\n \t\t\tlon = Float.valueOf(floatLongitude.getText().toString());\r\n \t\t\t\r\n \t\t\tEditText floatLatitude = (EditText)findViewById(R.id.edtLat);\r\n \t\t\tlat = Float.valueOf(floatLatitude.getText().toString());\r\n \t\t\t\r\n \t\t\t//Only Lon and Lat between -90 and 90 are allowed\r\n \t\t\tif (lat >=-90 && lat <=90 && lon >=-90 && lon <=90) {\r\n \t\t\tfinal GoogleMap mMap;\r\n \t\t\tmMap = ((MapFragment) getFragmentManager().findFragmentById(R.id.map)).getMap();\r\n \t\t\tmMap.addMarker(new MarkerOptions()\r\n \t\t\t .position(new LatLng(lat,lon))\r\n \t\t\t .title(mapLocation)\r\n \t\t\t .snippet(mapSnipper));\r\n \t\t\t}\r\n \t\t\telse\r\n \t\t\t{\r\n \t\t\t\tToast.makeText(getBaseContext(), \"Lonitude and Latitude can only be numbers bewteen -90 to 90 e.g 3.148\", Toast.LENGTH_LONG).show();\r\n \t\t\t}\r\n \t}\r\n \tcatch (Exception e)\r\n \t{\r\n \t\tToast.makeText(getBaseContext(), \"Lonitude and Latitude can only be numbers bewteen -90 to 90 e.g 3.148\", Toast.LENGTH_LONG).show();\r\n \t}\r\n \t}", "@Override\n public void onMapClick(LatLng latLng) {\n MarkerOptions markerOptions = new MarkerOptions();\n markerOptions.position(latLng);\n\n String address = getMarkerAddress(latLng);\n //if there is a valid address associated with marker\n if (address != null) {\n markerOptions.title(address);\n }\n mMap.clear();\n mMap.animateCamera(CameraUpdateFactory.newLatLngZoom(latLng, 15));\n mMap.addMarker(markerOptions);\n markerPlaced = true;\n lat = latLng.latitude;\n lon = latLng.longitude;\n }", "@Override\n public void onTouch() {\n mScrollView.requestDisallowInterceptTouchEvent(true);\n\n\n map.setOnMapClickListener(new GoogleMap.OnMapClickListener() {\n @Override\n public void onMapClick(LatLng location) {\n\n\n Toast.makeText(DoctorRegistration.this, \"\"+location, Toast.LENGTH_SHORT).show();\n if(marker!=null)\n {\n marker.remove();\n map.clear();\n }\n marker=map.addMarker(new MarkerOptions().position(location));\n\n new_lat=location.latitude;\n new_log=location.longitude;\n }\n });\n\n }", "public void onClick(View v) {\n double latitude = Double.parseDouble(editLat.getText().toString());\n double longitude = Double.parseDouble(editLong.getText().toString());\n Intent intentBundle = new Intent(MainActivity.this, NetMap.class);\n Bundle bundle = new Bundle();\n bundle.putDouble(\"lat\", latitude);\n bundle.putDouble(\"long\", longitude);\n intentBundle.putExtras(bundle);\n startActivity(intentBundle);\n }", "@Override\n public void onMapLongClick(LatLng latLng) {\n\n alertWebsiteIntent();\n\n }", "@Override\n public void onClick(View view) {\n String geoUri = \"http://maps.google.com/maps?q=loc:\" + 18.5155346 + \",\" + 73.7836165 + \" (\" + \"Manyavar\" + \")\";\n Intent intent = new Intent(Intent.ACTION_VIEW, Uri.parse(geoUri));\n mcontext.startActivity(intent);\n\n }", "@Override\n public void onMapClick(LatLng point) {\n mMap.clear();\n\n // Add marker on clicked point\n mMap.addMarker(new MarkerOptions().position(point)\n .icon(BitmapDescriptorFactory\n .defaultMarker(BitmapDescriptorFactory.HUE_RED)))\n .setTag(true);\n\n // Set global lat and lng\n lat = point.latitude;\n lng = point.longitude;\n\n // Hide detail view\n hideDetails();\n }", "@Override\n public void onMapReady(GoogleMap googleMap) {\n mMap = googleMap;\n\n // Add a marker in Sydney and move the camera\n\n if (displayGpsStatus()) {\n\n Log.v(TAG, \"onClick\");\n\n\n locationListener = new MyLocationListener();\n\n if (ActivityCompat.checkSelfPermission(this, android.Manifest.permission.ACCESS_FINE_LOCATION) == PackageManager.PERMISSION_GRANTED ) {\n locationMangaer.requestLocationUpdates(LocationManager.NETWORK_PROVIDER, 0, 0, locationListener);\n\n }\n else{\n Toast.makeText(this,\"Kindly Provide Location Acces\",Toast.LENGTH_SHORT).show();\n }\n\n Log.v(TAG,latitudeUsers +\" , \"+longitudeUsers);\n\n } else {\n Toast.makeText(this,\"GPS not available!!\",Toast.LENGTH_SHORT).show();\n }\n\n }", "@Override\n public void onMapClick(LatLng latLng) {\n map.addMarker(new MarkerOptions().position(latLng));\n }", "@Override\n \tpublic void onMapClick(final LatLng point) \n \t{\n \t\t\n \t\t AlertDialog.Builder builder = new AlertDialog.Builder(CrearIncidenteGPS.this);\n \t\t builder.setMessage(\"Desea agregar un incidente en este lugar?\")\n \t\t .setCancelable(false)\n \t\t .setPositiveButton(\"Si\", new DialogInterface.OnClickListener() \n \t\t {\n \t\t public void onClick(DialogInterface dialog, int id) \n \t\t {\n \t\t \t//Agregar el incidente\n// \t\t \tlstLatLngs.add(point);\n \t\t \tinsertarIncidente(point);\n// \t\t \tgMap.addMarker(new MarkerOptions().position(point));\n \t\t }\n \t\t })\n \t\t .setNegativeButton(\"No\", new DialogInterface.OnClickListener() \n \t\t {\n \t\t public void onClick(DialogInterface dialog, int id) \n \t\t {\n \t\t dialog.cancel();\n \t\t }\n \t\t });\n \t\t AlertDialog alert = builder.create();\n \t\t alert.show();\n \t\t\n \t}", "com.google.type.LatLng getLatLng();", "public void setGoogleMapClickable(GoogleMap mMap){\n mMap.setOnMapClickListener(new GoogleMap.OnMapClickListener() {\n @Override\n public void onMapClick(LatLng latLng) {\n locationSelectorPresenter.handleOnGoogleMapClick(mMap, latLng);\n locationSelectorPresenter.updateSelectedLocation(latLng);\n }\n });\n }", "public void myLocationClick() {\n\n //Set the initial camera position to the current location\n GridPoint gridPoint = myGridPoint();\n float mpp = 1;\n\n if (gridPoint != null) {\n\n CameraPosition cameraPosition = new CameraPosition(gridPoint, mpp);\n mMap.moveCamera(cameraPosition, true);\n\n } else {\n\n //If GPS is off, notify the user to turn it on\n Toast.makeText(MainActivity.this,\"Turn on GPS.\",Toast.LENGTH_SHORT).show();\n\n }\n\n }", "private void setUpDirectionIntegration() {\n mMap.setOnMapClickListener(new GoogleMap.OnMapClickListener() {\n @Override\n public void onMapClick(final LatLng latLng) {\n new AlertDialog.Builder(ScavengerHunt.this)\n .setTitle(\"Open Google Maps?\")\n .setMessage(\"Get directions to your selected location.\")\n .setPositiveButton(\"Continue\", new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialogInterface, int i) {\n String uri = \"http://maps.google.com/maps?daddr=\" + latLng.latitude + \",\" + latLng.longitude + \" (\" + \"Where the party is at\" + \")\";\n Intent intent = new Intent(Intent.ACTION_VIEW, Uri.parse(uri));\n intent.setPackage(\"com.google.android.apps.maps\");\n startActivity(intent);\n }\n })\n .setNegativeButton(\"Cancel\", new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialogInterface, int i) {\n // Do nothing\n }\n })\n .show();\n\n Log.i(\"MAP\", latLng.latitude + \", \" + latLng.longitude);\n }\n });\n }", "@Override\n public void onMapReady(GoogleMap googleMap) {\n googleMap.setOnMapClickListener(new OnMapClickListener() {\n\n @Override\n public void onMapClick(LatLng arg0) {\n\n\n // TODO Auto-generated method stub\n try {\n Geocoder geo = new Geocoder(MapsActivity.this, Locale.getDefault());\n List<Address> add = geo.getFromLocation(arg0.latitude, arg0.longitude, 1);\n String selectedCountry;\n if (add.size() > 0) {\n selectedCountry = add.get(0).getCountryName();\n selectedStateOrCountry = selectedCountry;\n\n //Log.d(\"country\", selectedCountry);\n //For usa go with states . All other countries - it gives the capital\n if (selectedCountry.equalsIgnoreCase(\"United States\") ||\n selectedCountry.equalsIgnoreCase(\"US\")) {\n selectedStateOrCountry = add.get(0).getAdminArea();\n }\n //Log.d(\"state\", selectedStateOrCountry);\n ConvertTextToSpeech();\n }\n } catch (Exception e) {\n //Log.e(TAG, \"Failed to initialize map\", e);\n }\n }\n });\n mMap = googleMap;\n\n // Add a marker in California and move the camera\n LatLng californiaMarker = new LatLng(37, -122);\n mMap.addMarker(new MarkerOptions().position(californiaMarker).title(\"Click anywhere to get more info\"));\n mMap.moveCamera(CameraUpdateFactory.newLatLng(californiaMarker));\n }", "public void mapIsClicked(View view) {\n Controller.viewMappa();\n }", "public void onClick(double lat, double lon)\n/* 60: */ {\n/* 61: 98 */ TileGIS self = this;\n/* 62: */ }", "@Override\n public void onMapClick(LatLng latLng) {\n if(findViewById(R.id.marker_window).getVisibility() == View.VISIBLE){\n findViewById(R.id.marker_window).setVisibility(View.INVISIBLE);\n setIconListVisibility(true);\n }else{\n if (!firstMapTouch) {\n Toast.makeText(getApplicationContext(), R.string.maps_onmapclick, Toast.LENGTH_SHORT).show();\n firstMapTouch = true;\n }\n }\n }", "@Override\r\n\t\t\tpublic void onClick(final View v) {\n\t\t\t\tIntent intent = new Intent(mContext, GoogleMapsView.class);\r\n\t\t\t\tBundle b = new Bundle();\r\n\t\t\t\tb.putDouble(\"LATITUDE\", data.getLatitude());\r\n\t\t\t\tb.putDouble(\"LONGITUDE\", data.getLongitude());\r\n\t\t\t\tintent.putExtras(b);\r\n\t\t\t\t((Activity) mContext).startActivityForResult(intent, Globals.ACTIVITY_GOOGLE_MAPS);\r\n\t\t\t}", "private void setMapLongClick(final GoogleMap map){\n map.setOnMapLongClickListener(new GoogleMap.OnMapLongClickListener() {\n @Override\n public void onMapLongClick(LatLng latLng) {\n map.clear();\n radiusBar.setProgress(0);\n map.addMarker(new MarkerOptions().position(latLng)\n .icon(BitmapDescriptorFactory.defaultMarker(BitmapDescriptorFactory.HUE_BLUE)));\n myPosition = latLng;\n map.animateCamera(CameraUpdateFactory.newLatLngZoom(myPosition, 12));\n if(isTracking){\n Position.stopTrackingPosition(fusedLocationClient, locationCallback);\n isTracking = false;\n }\n }\n });\n\n }", "@Override\n public void onClick(View view) {\n Uri gmmIntentUri = Uri.parse(\"geo:0,0?q=\" + selected_location);\n Intent mapIntent = new Intent(Intent.ACTION_VIEW, gmmIntentUri);\n mapIntent.setPackage(\"com.google.android.apps.maps\");\n if (mapIntent.resolveActivity(getActivity().getPackageManager()) != null) {\n startActivity(mapIntent);\n }\n }", "@Override\n public void onMapReady(GoogleMap googleMap) {\n mMap = googleMap;\n\n MarkerOptions m= new MarkerOptions().position(new LatLng(28.7041,77.1025)).icon(BitmapDescriptorFactory.defaultMarker(BitmapDescriptorFactory.HUE_AZURE)).title(\"tap to get the alerts\");\n n= mMap.addMarker(m);\n\n mMap.setOnMapClickListener(new GoogleMap.OnMapClickListener() {\n @Override\n public void onMapClick(LatLng latLng) {\n\n if (!lati.equals(\"false\") && !longi.equals(\"false\")) {\n Double la = Double.parseDouble(lati);\n Double lo = Double.parseDouble(longi);\n // Add a marker in Sydney and move the camera\n n.setPosition(new LatLng(la,lo));\n n.setTitle(level);\n if(level.equals(\"hard\")){\n n.setIcon(BitmapDescriptorFactory.defaultMarker(BitmapDescriptorFactory.HUE_MAGENTA));}\n else\n {\n n.setIcon(BitmapDescriptorFactory.defaultMarker(BitmapDescriptorFactory.HUE_GREEN));}\n LatLng posi = new LatLng(la, lo);\n mMap.moveCamera(CameraUpdateFactory.newLatLng(posi));\n }\n\n\n }\n });\n\n\n\n }", "@Override\n public void onMapReady(GoogleMap googleMap) {\n mMap = googleMap;\n\n mMap.setOnMarkerClickListener(this);\n\n\n // Add a marker in Sydney and move the camera\n\n getData(All_urls.values.mapData);\n\n\n\n\n }", "private void inicMapComponent() {\n\t\tmapView = ((MapFragment) getFragmentManager()\n\t\t\t\t.findFragmentById(R.id.map)).getMap();\n\t\t\n\n\t\tlocationService = new LocationService(MapPage.this);\n\t\tlocationService.getLocation();\n\t\t\n\t\tmapView.setMyLocationEnabled(true);\n\n\t Location location = mapView.getMyLocation();\n\t LatLng myLocation = null; //new LatLng(44.8167d, 20.4667d);\n\t \n\t\tif (location != null) {\n\t myLocation = new LatLng(location.getLatitude(),\n\t location.getLongitude());\n\t } else {\n\t \tLocationManager service = (LocationManager) getSystemService(LOCATION_SERVICE);\n\t\t\tCriteria criteria = new Criteria();\n\t\t\tString provider = service.getBestProvider(criteria, false);\n\t\t\tLocation lastKnownLocation = service.getLastKnownLocation(provider);\n\t\t\tmyLocation = new LatLng(lastKnownLocation.getLatitude(),lastKnownLocation.getLongitude());\n\t }\n\t\t\n\t\tmapView.animateCamera(CameraUpdateFactory.newLatLngZoom(myLocation, 13));\n\t\t\n\t\tmapView.setPadding(0, 0, 0, 80);\n\t\t\n\t\tmapView.setOnInfoWindowClickListener(new GoogleMap.OnInfoWindowClickListener() {\n\t\t\t\n\t\t\t@Override\n\t\t\tpublic void onInfoWindowClick(Marker marker) {\n\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\t//onMapWindwosClick(marker.getId(),marker.getTitle());\n\t\t\t}\n\t\t});\n\t\t\n\t\t\n\t\t\n\t}", "@Override\n public void onMapReady(final GoogleMap googleMap) {\n mMap = googleMap;\n if (ActivityCompat.checkSelfPermission(this, Manifest.permission.ACCESS_FINE_LOCATION) != PackageManager.PERMISSION_GRANTED && ActivityCompat.checkSelfPermission(this, Manifest.permission.ACCESS_COARSE_LOCATION) != PackageManager.PERMISSION_GRANTED) {\n // TODO: Consider calling\n // ActivityCompat#requestPermissions\n // here to request the missing permissions, and then overriding\n // public void onRequestPermissionsResult(int requestCode, String[] permissions,\n // int[] grantResults)\n // to handle the case where the user grants the permission. See the documentation\n // for ActivityCompat#requestPermissions for more details.\n return;\n }\n\n\n // Add a marker in Sydney and move the camera\n final LatLng sementeryo = new LatLng(7.063907, 125.585014);\n\n\n\n mMap.setOnMapClickListener(new GoogleMap.OnMapClickListener() {\n\n\n @Override\n public void onMapClick(LatLng point) {\n\n if(destinationMarker != null) {\n\n destinationMarker.remove();\n\n }\n marker = new MarkerOptions().position(new LatLng(point.latitude, point.longitude)).title(\"Grave Location\");\n\n marker.icon(BitmapDescriptorFactory.fromResource(R.mipmap.grave_ic1));\n destinationMarker = mMap.addMarker(marker);\n\n\n System.out.println(point.latitude + \"---\" + point.longitude);\n\n // Toast.makeText(add_map.this, (point.latitude + \"---\" + point.longitude), Toast.LENGTH_LONG).show();\n\n Button button = (Button) findViewById(R.id.addlatlang);\n\n button.setBackgroundResource(R.drawable.blue_btn);\n button.setEnabled(true);\n\n lat=point.latitude;\n lang=point.longitude;\n\n\n }\n });\n\n Location locationf;\n locationManager = (LocationManager) this.getSystemService(Context.LOCATION_SERVICE);\n if (ActivityCompat.checkSelfPermission(this, Manifest.permission.ACCESS_FINE_LOCATION) != PackageManager.PERMISSION_GRANTED && ActivityCompat.checkSelfPermission(this, Manifest.permission.ACCESS_COARSE_LOCATION) != PackageManager.PERMISSION_GRANTED) {\n // TODO: Consider calling\n // ActivityCompat#requestPermissions\n // here to request the missing permissions, and then overriding\n // public void onRequestPermissionsResult(int requestCode, String[] permissions,\n // int[] grantResults)\n // to handle the case where the user grants the permission. See the documentation\n // for ActivityCompat#requestPermissions for more details.\n return;\n }\n locationf = locationManager.getLastKnownLocation(LocationManager.NETWORK_PROVIDER);\n\n double latitude = locationf.getLatitude();\n double longitude = locationf.getLongitude();\n\n final LatLng coordinate = new LatLng(latitude, longitude); //Store these lat lng values somewhere. These should be constant.\n CameraUpdate location = CameraUpdateFactory.newLatLngZoom(\n coordinate, 15);\n googleMap.animateCamera(location);\n\n googleMap.moveCamera(CameraUpdateFactory.newLatLngZoom(coordinate,18));\n\n new Handler().postDelayed(new Runnable() {\n\n @Override\n public void run() {\n\n\n CameraUpdate location = CameraUpdateFactory.newLatLngZoom(\n sementeryo, 17);\n googleMap.animateCamera(location);\n\n }\n }, 5000);\n\n\n\n }", "@Override\n\tpublic void mouseClicked(MouseEvent e)\n\t{\n\t\tSystem.out.println(e.getX()+\",\"+e.getY());\n\t\t\n\t\t//On envoie au controller les coordonnées selectionnées:\n\t\tcontroller.clicOnMap(e.getX(), e.getY());\n\t}", "@Override\n public void onMapClick(LatLng latLng) {\n if(isJoinNode){\n return;\n }\n if(isAddMarker){\n commandManager.doCommand(\n new AddOnePointCommand(\n this,\n mDbHelper,\n latLng,\n PATH_CATEGORY));\n isAddMarker = false;\n fab_add_marker.setSelected(false);\n }\n else if(isEditNode && !isJoinNode){\n if(selectedPosition == null){\n SnackbarUtil.showSnackBar(root_map, snackbar,\"Pilih point terlebih dahulu.\", Snackbar.LENGTH_LONG);\n } else{\n commandManager.doCommand(\n new AddPointCommand(\n this,\n mDbHelper,\n selectedPosition,\n latLng,\n PATH_CATEGORY));\n\n }\n } else if(isEditPolyline){\n long id = (long)selectedPolyline.getTag();\n Path selectedPath = null;\n for (Path path : paths){\n if(path.getId() == id){\n selectedPath = path;\n }\n }\n commandManager.doCommand(\n new AddPointBetweenPathCommand(\n this,\n mDbHelper,\n selectedPath,\n latLng,\n PATH_CATEGORY));\n }\n\n }", "@Override\n public void onItemClick(View view, int position) {\n Log.e(\"You Clicked\", mapRecyclerAdapter.getItem(position).getLocationName());\n }", "long getLatitude();", "@Override\n public void onMapReady(GoogleMap googleMap) {\n mMap = googleMap;\n enableMyLocation();\n // Add a marker in Sydney and move the camera\n LatLng sydney = new LatLng(-34, 151);\n mMap.addMarker(new MarkerOptions().position(sydney).title(\"Marker in Sydney\"));\n mMap.moveCamera(CameraUpdateFactory.newLatLng(sydney));\n mMap.setOnMapLongClickListener(this);\n\n Button loca = (Button) findViewById(R.id.btnlocali);\n Button car = (Button) findViewById(R.id.btncar);\n\n loca.setOnClickListener(this);\n car.setOnClickListener(this);\n\n loca.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n miPosicion();\n }\n });\n\n }", "public void getCoord(MouseEvent me){\n if(mapImage.getImage()!=null) {\n double xPos = me.getX();\n double yPos = me.getY();\n Main.ps.setTitle(xPos + \" \" + yPos);\n }\n }", "@Override\n public void onMapClick(LatLng arg0) {\n mBaiduMap.hideInfoWindow();\n if (window != null) {\n window.showAtLocation(search, Gravity.BOTTOM, 0, 0);\n }\n }", "private void onOpenMapButtonClicked() {\n\n // Create a new intent to start an map activity\n Intent mapIntent =\n new Intent(DetailActivity.this, MapsActivity.class);\n if (mMapDestination != null && mMapDestination.getLocation() != null &&\n mMapDestination.getRadius() >= 0) {\n MapDestination mapDestination =\n new MapDestination(mMapDestination.getLatitude(),\n mMapDestination.getLongitude(), mMapDestination.getLocation(),\n mMapDestination.getRadius());\n mapIntent.putExtra(Constants.EXTRA_ALARM_DESTINATION, mapDestination);\n }\n startActivityForResult(mapIntent, MAP_REQUEST_CODE);\n\n }", "@Override\n public void onClick(View v) {\n switch (v.getId()) {\n case R.id.map_minus_rl:\n mAMap.moveCamera(CameraUpdateFactory.zoomOut());\n break;\n case R.id.map_plus_rl:\n mAMap.moveCamera(CameraUpdateFactory.zoomIn());\n break;\n case R.id.locate_current_rl:\n mLocation = AllOnlineApp.getCurrentLocation();\n if (false/*mLocation != null*/) {\n LatLng cenpt = new LatLng(mLocation.getLatitude(), mLocation.getLongitude());\n mAMap.moveCamera(CameraUpdateFactory.changeLatLng(cenpt));\n } else {\n LatLng cenpt = new LatLng(GlobalParam.getInstance().get_lat(), GlobalParam.getInstance().get_lng());\n mAMap.moveCamera(CameraUpdateFactory.changeLatLng(cenpt));\n }\n break;\n default:\n break;\n }\n }", "@Override\n public void onClick(View view) {\n Uri gmmIntentUri = Uri.parse(\"geo:0, 0?q=Animal+Shelter+near+me\");\n Intent mapIntent = new Intent(Intent.ACTION_VIEW, gmmIntentUri);\n mapIntent.setPackage(\"com.google.android.apps.maps\");\n startActivity(mapIntent);\n }", "@Override\n public void onLocationChanged(Location location) {\n if(location != null){\n originLocation = location;\n setCameraPosition(location);\n\n LatLng point = new LatLng();\n point.setLongitude(finalLon);\n point.setLatitude(finalLat);\n onMapClick(point);\n\n startButton.setVisibility(View.VISIBLE);\n\n\n }\n }", "@Override\n\t\t\t\tpublic void onMapClick(LatLng arg0) {\n\t\t\t\t\tgoogleMap.clear();\n\n\t\t\t\t\t// Creating an instance of MarkerOptions to set position\n\t\t\t\t\t// MarkerOptions markerOptions = new MarkerOptions();\n\n\t\t\t\t\t// Setting position on the MarkerOptions\n\t\t\t\t\tmarker.position(arg0);\n\n\t\t\t\t\t// Animating to the currently touched position\n\t\t\t\t\tgoogleMap.animateCamera(CameraUpdateFactory.newLatLng(arg0));\n\n\t\t\t\t\t// Adding marker on the GoogleMap\n\t\t\t\t\tMarker marker1 = googleMap.addMarker(marker);\n\n\t\t\t\t\t// Showing InfoWindow on the GoogleMap\n\t\t\t\t\tmarker1.showInfoWindow();\n\t\t\t\t}", "@Override\n public void onMapReady(GoogleMap googleMap) {\n mMap = googleMap;\n\n // Add a marker in Sydney and move the camera\n LatLng wroclaw = new LatLng(51.110, 17.034);\n mMap.addMarker(new MarkerOptions().position(wroclaw));\n mMap.moveCamera(CameraUpdateFactory.newLatLngZoom(wroclaw, 12));\n mMap.clear();\n // Setting a click event handler for the map\n mMap.setOnMapClickListener(new GoogleMap.OnMapClickListener() {\n\n @Override\n public void onMapClick(LatLng latLng) {\n bSelect.setEnabled(true);\n // Creating a marker\n MarkerOptions markerOptions = new MarkerOptions();\n\n // Setting the position for the marker\n markerOptions.position(latLng);\n\n // Setting the title for the marker.\n // This will be displayed on taping the marker\n markerOptions.title(\"NOWY: \" + latLng.latitude + \" : \" + latLng.longitude);\n\n markerOptions.alpha(0.6f);\n // Clears the previously touched position\n mMap.clear();\n\n // Animating to the touched position\n mMap.animateCamera(CameraUpdateFactory.newLatLng(latLng));\n\n // Placing a marker on the touched position\n mMap.addMarker(markerOptions);\n\n location = latLng.latitude + \" \" + latLng.longitude;\n\n setupMarker();\n }\n });\n }", "double getLatitude();", "@Override\n public void onMapReady(GoogleMap googleMap) {\n\n getLat g = new getLat();\n g.execute(tid);\n\n mMap = googleMap;\n\n // Add a marker in Sydney and move the camera\n\n }", "@Override\n public void onMapLongClick(LatLng latLng) {\n localizacaoAtual = latLng;\n this.setMarker(localizacaoAtual, false);\n Util.showMsgToastShort(CaronaOferecerActivity.this, getString(R.string.msg_ponto_adicionado));\n }", "public void gotoMap(double lat, double lng) {\n if (map == null)\n return;\n\n //do not animate if already there\n if (!(lat == targetLat && lng == targetLng)) {\n targetLat = lat;\n targetLng = lng;\n\n //convert to LatLng\n LatLng coordinate = new LatLng(lat, lng);\n\n // Save current zoom\n float originalZoom = map.getCameraPosition().zoom;\n\n // Move temporarily camera zoom\n map.moveCamera(CameraUpdateFactory.zoomTo(13));\n\n //get display height\n Display display = getActivity().getWindowManager().getDefaultDisplay();\n Point size = new Point();\n display.getSize(size);\n\n //offset\n Point pointInScreen = map.getProjection().toScreenLocation(coordinate);\n Point newPoint = new Point();\n newPoint.x = pointInScreen.x;\n newPoint.y = pointInScreen.y + (int) (size.y / 4.5f);\n LatLng newCenterLatLng = map.getProjection().fromScreenLocation(newPoint);\n\n // Restore original zoom\n map.moveCamera(CameraUpdateFactory.zoomTo(originalZoom));\n\n //animate\n map.animateCamera(CameraUpdateFactory.newLatLngZoom(newCenterLatLng, 13));\n }\n }", "@Override\n public void onClick(View v) {\n String label = response.body().getEventList().get(0).getEventName();\n String strUri = \"http://maps.google.com/maps?q=loc:\" + response.body().getEventList().get(0).getEventLatitude() + \",\" + response.body().getEventList().get(0).getEventLongitude() + \" (\" + label + \")\";\n Intent intent = new Intent(Intent.ACTION_VIEW, Uri.parse(strUri));\n\n intent.setClassName(\"com.google.android.apps.maps\", \"com.google.android.maps.MapsActivity\");\n\n startActivity(intent);\n\n\n }", "public void getCoordinates(){\n\t\t\n\t\t // check if GPS enabled\n GPSTracker gpsTracker = new GPSTracker(this);\n \n if (gpsTracker.canGetLocation())\n {\n latitude = gpsTracker.latitude;\n\n longitude = gpsTracker.longitude;\n }\n else\n {\n // can't get location\n // GPS or Network is not enabled\n // Ask user to enable GPS/network in settings\n gpsTracker.showSettingsAlert();\n }\n\t}", "@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\tIntent intent = null,chooser = null;\n\t\t\t\tintent = new Intent(android.content.Intent.ACTION_VIEW);\n\t \t\t//For any Action\n\t \t\tintent.setData(Uri.parse(\"geo:27.961429,76.402788\"));\n\t \t\tchooser = Intent.createChooser(intent,\"MAPS Launch\");\n\t \t\tstartActivity(chooser);\n\t\t\t}", "@Override\n public void onMapReady(GoogleMap googleMap) {\n mMap = googleMap;\n mMap.setOnMapLongClickListener(this);\n if(ContextCompat.checkSelfPermission(this, ACCESS_FINE_LOCATION) == PackageManager.PERMISSION_GRANTED){\n //Adds a center on me button to map\n mMap.setMyLocationEnabled(true);\n Location location = locationManager.getLastKnownLocation(LocationManager.GPS_PROVIDER);\n if(location != null){\n LatLng myLatLng = new LatLng(location.getLatitude(), location.getLongitude());\n routePoints.add(myLatLng);\n mMap.moveCamera(CameraUpdateFactory.newLatLngZoom(myLatLng, 15.5f));\n }\n }\n }", "public void getLoco(double lat, double lon){\n cords.setText(lat + \" \"+lon);\n\n // String dress = getCompleteAddressString(lat,lon);\n\n // latt = lat;\n // longg = lon;\n\n //Toast.makeText(getContext(), add, Toast.LENGTH_SHORT).show();\n\n //LocationAddress locationAddress = new LocationAddress();\n //locationAddress.getAddressFromLocation(38.898748, -77.037684\n // , getContext(), new GeocoderHandler());\n\n //String add = getAddressString(lat,lon);\n //Toast.makeText(getContext(), add, Toast.LENGTH_LONG);\n //info.setText(add);\n\n check.setVisibility(View.VISIBLE);\n\n\n\n\n\n\n\n }", "@Override\n public boolean onMapClick(@NonNull LatLng point) {\n if (doceLugares()) {\n Toast.makeText(navegacionOptimizada.this,\"solo 12\", Toast.LENGTH_LONG).show();\n } else {\n style = mapboxMap.getStyle();\n if (style != null) {\n anadirLugar(style, intermedi3);\n anadirPunto(intermedi3);\n obtenerROptimi(style, stops);\n\n }\n }\n return true;\n }", "@Override\n\t\t\tpublic void onClick(View arg0) {\n\t\t\t\tIntent intent = new Intent(MainActivity.this, MapActivity.class);\n\t\t\t\tintent.putExtra(\"Choice\", 1);\n\t\t\t\tintent.putExtra(\"latb\", 12.9716);\n\t\t\t\tintent.putExtra(\"lngb\", 77.5946);\n\t\t\t\tstartActivity(intent);\n\n\t\t\t}", "@Override\n public void onClick(View view) {\n Intent myIntent = new Intent(MainActivity.this, Tambal_banActivity.class);\n myIntent.putExtra(\"Latitude\", latitude);\n myIntent.putExtra(\"Longitude\", longitude);\n startActivity(myIntent);\n }", "@Override\n public void onClick(View v) {\n if (mPlaceSelected != null) {\n // Open up map fragment.\n FragmentManager manager = getSupportFragmentManager();\n MapDialogFragment mapDialog = new MapDialogFragment();\n mapDialog.setArguments(coordinatesBundle);\n mapDialog.show(manager, MapDialogkey);\n }\n }", "Double getLatitude();", "Double getLatitude();", "@Override\n public void onMapLongClick(LatLng latLng) {\n mMap.clear();\n\n //Adding a new marker to the current pressed position we are also making the draggable true\n mMap.addMarker(new MarkerOptions()\n .position(latLng)\n .draggable(true).icon(BitmapDescriptorFactory.defaultMarker(BitmapDescriptorFactory.HUE_RED)));\n\n// Toast.makeText(this, \"longitude=\" + latLng.longitude + \"latitude=\" + latLng.latitude, Toast.LENGTH_LONG).show();\n String msg = latLng.longitude + \", \" + latLng.latitude;\n// marker_address_tv.setText(msg);\n setAddressInTVFromLatlong(latLng.latitude, latLng.longitude);\n\n }", "@Override\n public void onMapClick(LatLng latLng) {\n MarkerOptions markerOptions = new MarkerOptions();\n\n //Set position of market\n\n\n //markerOptions.position(latLng);\n markerOptions.position(defaultLocation);\n //set title marker\n markerOptions.title(defaultLocation.latitude + \": \" + defaultLocation.longitude);\n\n //removeall markers\n // googleMap.clear();\n //Animating to zoom the marker\n googleMap.animateCamera(CameraUpdateFactory.newLatLngZoom(\n defaultLocation, 10\n ));\n //Add marker on map\n googleMap.addMarker(markerOptions);\n\n\n\n }", "@Override\n public void onMapReady(GoogleMap googleMap) {\n mMap = googleMap;\n\n // Add a marker in Sydney and move the camera\n LatLng sydney = new LatLng(-34, 151);\n mMap.addMarker(new MarkerOptions().position(sydney).title(\"Marker in Sydney\"));\n mMap.moveCamera(CameraUpdateFactory.newLatLng(sydney));\n\n mMap.setOnMapLongClickListener(new GoogleMap.OnMapLongClickListener() {\n @Override\n public void onMapLongClick(LatLng latLng) {\n mMap.addMarker(new MarkerOptions()\n .icon(BitmapDescriptorFactory.fromResource(R.drawable.ic_cast_dark))\n .anchor(0.0f, 1.0f)\n .position(latLng));\n\n }\n });\n\n mMap.setOnMarkerClickListener(new GoogleMap.OnMarkerClickListener() {\n @Override\n public boolean onMarkerClick(Marker marker) {\n Toast.makeText(getApplicationContext(), \"Has pulsado una marca\", Toast.LENGTH_LONG).show();\n return false;\n }\n });\n\n\n\n }", "double getLongitude();", "@Override\n public void onMapReady(MapboxMap mapboxMap) {\n map = mapboxMap;\n map.addOnMapClickListener(this);\n enableLocation();\n //LatLng point = null;\n //setRoute(point);\n\n }", "public void onClickToMap(View view){\n startActivity(new Intent(MainActivity.this, MapsActivity.class));\n }", "@Override\n public void onMapReady(GoogleMap googleMap) {\n mMap=googleMap;\n Toast.makeText(this,\"Map is Ready\", Toast.LENGTH_SHORT).show();\n Log.d(TAG, \"onMapReady: map is ready\");\n getLocationPermission();\ngetDeviceLocation();\nupdateLocationUI();\n\n addressButton.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n passAddress( );\n }\n });\n }", "int getLatitude();", "@Override\n public void onMapReady(GoogleMap map) {\n mGoogleMap = map;\n\n // get the runner's path (serialized)\n String latLng = getIntent().getStringExtra(Session.LAT_LNG_EXTRA);\n List<LatLng> path = Session.getPathLatLng(latLng);\n\n if (path.size() < 2) {\n return;\n }\n\n addMarkers(path);\n addPolyLines(path);\n\n // set the center map fab here\n mCenterMapFab.setOnClickListener(view -> positionMapAtStart(path));\n\n positionMapAtStart(path);\n }", "@Override\n\t\t\tpublic void onClick(View arg0) {\n\t\t\t\tIntent intent = new Intent(MainActivity.this, MapActivity.class);\n\t\t\t\tintent.putExtra(\"Choice\", 2);\n\t\t\t\tintent.putExtra(\"latc\", 13.0827);\n\t\t\t\tintent.putExtra(\"lngc\", 80.2707);\n\t\t\t\tstartActivity(intent);\n\n\t\t\t}", "@Override\n public void onMapReady(GoogleMap googleMap) {\n DecimalFormat formater = new DecimalFormat(\"#.####\");\n gMap = googleMap;\n LatLng userCoords = new LatLng(myLatitude, myLongitude);\n gMap.addMarker(new MarkerOptions()\n .position(userCoords)\n .title(\"Your Coordinates: \" + formater.format(myLatitude) + \"° N\" + \", \" + formater.format(myLongitude) + \"° W\"));\n gMap.animateCamera(CameraUpdateFactory.newLatLngZoom(userCoords, 15));\n }", "@Override\n public void onMapClick(LatLng latLng) {\n AlertDialog.Builder builder = new AlertDialog.Builder(MapsActivity.this);\n //Set the title of the dialog.\n builder.setTitle(\"Create a new Marker\");\n\n final LatLng markerPoint = latLng;\n\n // Set up the input\n final EditText input = new EditText(MapsActivity.this);\n // Specify the type of input expected; this, for example, sets the input as a password, and will mask the text\n input.setInputType(InputType.TYPE_CLASS_TEXT);\n builder.setView(input);\n\n // Set up the buttons\n builder.setPositiveButton(\"Create\", new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialog, int which) {\n //Create a new marker with the Latitude and Longitude of the click event.\n MarkerOptions marker = new MarkerOptions().position(\n new LatLng(markerPoint.latitude, markerPoint.longitude)).title(input.getText().toString());\n mMap.addMarker(marker);\n }\n });\n builder.setNegativeButton(\"Cancel\", new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialog, int which) {\n //Cancel\n dialog.cancel();\n }\n });\n\n builder.show();\n\n }", "@Override\n public void handleMapClick(GoogleMap googleMap) {\n this.setGoogleMapClickable(googleMap);\n }", "public double getLat() {\n return lat;\n }", "public double getLat() {\n return lat;\n }", "public double getLat() {\n return lat;\n }", "@Override\n public void onClick( View v ) {\n SharedPreferences sp = Objects.requireNonNull( getActivity() )\n .getSharedPreferences( Weather_Preference, 0 );\n SharedPreferences.Editor e = sp.edit();\n float curLat;\n float curLon;\n if ( cLocate != null ) {\n curLat = ( float ) cLocate.latitude;\n curLon = ( float ) cLocate.longitude;\n e.putString( MAP_LAT_KEY, String.valueOf( curLat ) );\n e.putString( MAP_LON_KEY, String.valueOf( curLon ) );\n Toast.makeText( mMaster, \"Latitude: \"\n .concat( String.valueOf( curLat ) )\n .concat( \" and Longitude: \" )\n .concat( String.valueOf( curLon ) )\n .concat( \" have been applied\" ),\n Toast.LENGTH_SHORT )\n .show();\n } else {\n /*Toast.makeText( mMaster, \"Error setting the location, check your GPS settings and permissions\", Toast.LENGTH_SHORT ).show();*/\n Toast.makeText( mMaster, \"Error setting the location; tap a location to drop a pin\", Toast.LENGTH_LONG ).show();\n }\n e.apply();\n }", "@Override\n\t\t\t\tpublic boolean onMarkerClick(Marker arg0) {\n\t\t\t\t\t\n\t\t\t\t\tfor(final PoiInfo poiInfo:AppContext.listmap){\n\t\t\t\t\t\tif(poiInfo.location.latitude==arg0.getPosition().latitude&&poiInfo.location.longitude==arg0.getPosition().longitude){\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tView mView = LayoutInflater.from(ZhouBianYaodian.this).inflate(R.layout.map_massage_data, null);\n\t\t\t\t\t\t\tTextView dataname=(TextView) mView.findViewById(R.id.txt_map_name);\n\t\t\t\t\t\t\tTextView address=(TextView)mView. findViewById(R.id.txt_map_address);\n\t\t\t\t\t\t\tImageView imageView=(ImageView)mView. findViewById(R.id.map_image_call); \n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\tdataname.setText(poiInfo.name==null?\"\":poiInfo.name);\n\t\t\t\t\t\t\t\taddress.setText(poiInfo.address==null?\"\":poiInfo.address);\n\t\t\t\t\t\t\t\tif(poiInfo.phoneNum!=null&&!poiInfo.phoneNum.equals(\"\")){\n\t\t\t\t\t\t\t\t\timageView.setVisibility(ImageView.VISIBLE);\n\t\t\t\t\t\t\t\t\timageView.setOnClickListener(new OnClickListener() {\n\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t@Override\n\t\t\t\t\t\t\t\t\t\tpublic void onClick(View v) {\n\t\t\t\t\t\t\t\t\t\t\tIntent intent = new Intent(Intent.ACTION_DIAL, Uri\n\t\t\t\t\t\t\t\t\t\t\t\t\t.parse(\"tel:\" + poiInfo.phoneNum));\n\t\t\t\t\t\t\t\t\t\t\tLog.d(\"测试数据\", poiInfo.phoneNum);\n\t\t\t\t\t\t\t\t\t\t\tstartActivity(intent);\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t});\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tmInfoWindow= new InfoWindow(mView,arg0.getPosition(), -47);\n\t\t\t\t\t\t\tmBaiduMap.showInfoWindow(mInfoWindow);\n\t\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t}\n\t\t\t\t\treturn false;\n\t\t\t\t}", "@Override\r\n public void onMapReady(GoogleMap googleMap) {\r\n mMap = googleMap;\r\n\r\n // Add a marker in Sydney and move the camera\r\n LatLng charlotte = new LatLng(35.22, -80.84);\r\n //currentMarker = mMap.addMarker(new MarkerOptions().position(charlotte).title(\"Charlotte, NC\"));\r\n mMap.moveCamera(CameraUpdateFactory.newLatLng(charlotte));\r\n //currentMarker.setTag(0);\r\n\r\n mMap.setOnMapLongClickListener(this);\r\n\r\n\r\n if (ActivityCompat.checkSelfPermission(this, Manifest.permission.ACCESS_FINE_LOCATION) != PackageManager.PERMISSION_GRANTED\r\n //&& ActivityCompat.checkSelfPermission(this, Manifest.permission.ACCESS_COARSE_LOCATION) != PackageManager.PERMISSION_GRANTED\r\n ) {\r\n // TODO: Consider calling\r\n\r\n return;\r\n }\r\n mMap.setMyLocationEnabled(true);\r\n mMap.setOnMyLocationButtonClickListener(new GoogleMap.OnMyLocationButtonClickListener() {\r\n @Override\r\n public boolean onMyLocationButtonClick() {\r\n Log.d(\"maps\", \"On my location button click\");\r\n return false;\r\n }\r\n });\r\n }", "int getLongitude();", "@Override\n public void onItemClick(AdapterView<?> parent, View view, int position, long id) {\n Uri gmmIntentUri = Uri.parse(\"geo:0,0?q=\" + location.get(position).getAddress() + \", Madrid, Spain\");\n Intent mapIntent = new Intent(Intent.ACTION_VIEW, gmmIntentUri);\n mapIntent.setPackage(\"com.google.android.apps.maps\");\n startActivity(mapIntent);\n }", "private void retrieveLocationClicked() {\n locationClikedId = getIntent().getIntExtra(GeneralConstants.EDIT_LOCATION_DETAILS_KEY, 0);\n }" ]
[ "0.7036787", "0.69214106", "0.69186443", "0.69186443", "0.67823726", "0.669044", "0.6592516", "0.6581388", "0.6520054", "0.6473973", "0.64368564", "0.6412558", "0.6365377", "0.6357343", "0.63375795", "0.63354963", "0.63307047", "0.6325018", "0.6299001", "0.627899", "0.62784517", "0.62691087", "0.6243349", "0.6186851", "0.6186726", "0.61233956", "0.6119628", "0.6086506", "0.6078617", "0.60667014", "0.6063279", "0.60553044", "0.60495704", "0.604077", "0.60222405", "0.60195714", "0.6019068", "0.601324", "0.5997416", "0.5990374", "0.598876", "0.5982609", "0.59736514", "0.5972226", "0.59685314", "0.5967884", "0.5954562", "0.59463835", "0.5945153", "0.59260494", "0.59198534", "0.5888277", "0.58807313", "0.58717924", "0.5865082", "0.58639824", "0.5862248", "0.583936", "0.5836704", "0.58318174", "0.58203655", "0.58069557", "0.5801337", "0.57927954", "0.57891154", "0.5773511", "0.57708454", "0.57705486", "0.57660013", "0.57624584", "0.5758305", "0.5753804", "0.57414734", "0.57320327", "0.5731397", "0.57282984", "0.572482", "0.572482", "0.5719554", "0.5707329", "0.5692839", "0.5683191", "0.56822854", "0.56811893", "0.56802523", "0.5679764", "0.56780624", "0.5674604", "0.567123", "0.56691045", "0.5664564", "0.5661621", "0.5661621", "0.5661621", "0.566125", "0.56602675", "0.5651693", "0.56452537", "0.5645064", "0.5642959" ]
0.62018806
23
returns to the main window after pressing the goBack button
public void GoBack(ActionEvent actionEvent) throws IOException { Main.backToMain(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected void goBack() {\r\n\t\tfinish();\r\n\t}", "public static void goBack() {\n\t\tif (touchGUI.getTouchModel().getGuiModel().isDialogShown()) {\n\t\t\ttouchGUI.getTouchModel().getGuiModel().closeActiveDialog();\n\t\t} else {\n\t\t\t// else go to last view in history\n\t\t\tif (!appWidget.goBack()) {\n\t\t\t\t// if history is empty -> close app\n\t\t\t\tphoneGap.exitApp();\n\t\t\t}\n\t\t}\n\n\t\tlaf.updateUndoSaveButtons();\n\t\ttouchGUI.updateViewSizes();\n\t}", "public void back() {\n Views.goBack();\n }", "private void back(ActionEvent e){\r\n window.close();\r\n }", "@Override\r\n\tpublic void onBackPressed() {\n\t\tfinish();\r\n\t}", "@Override\r\n\tpublic void onBackPressed() {\n\t\tfinish();\r\n\t}", "private void backToMain() {\n // https://stackoverflow.com/questions/5446565\n // Checks to see if they are still on this activity\n if (getWindow().getDecorView().getRootView().isShown()) {\n onBackPressed();\n }\n }", "@Override\n\tpublic void onBackPressed() {\n\t\texitApplication().onClick(null);\n\t\tsuper.onBackPressed();\n\t}", "@Override\n public void onBackPressed() {\n confirmExit();\n }", "@Override\n\tpublic void onBackPressed() {\n\t\tsuper.onBackPressed();\n\t\tthis.finish();\n\t}", "@Override\n\tpublic void onBackPressed() {\n\t\tthis.finish();\n\t\tsuper.onBackPressed();\n\t}", "@Override\n public void onBackPressed() {\n this.finish();\n }", "@Override\n\tpublic void onBackPressed() {\n\t\tfinish();\n\t\tsuper.onBackPressed();\n\t}", "@Override\n\tpublic void onBackPressed() {\n\t\tfinish();\n\t\tsuper.onBackPressed();\n\t}", "@Override\n public void onBackPressed() {\n showQuitDialog();\n }", "public void goBack() {\n goBackBtn();\n }", "@Override\n\tpublic void onBackPressed() {\n\t\tsuper.onBackPressed();\n\t\tfinish();\n\t}", "@Override\n\tpublic void onBackPressed() {\n\t\tsuper.onBackPressed();\n\t\tfinish();\n\t}", "@Override\n\tpublic void onBackPressed() {\n\t\tsuper.onBackPressed();\n\t\tfinish();\n\t}", "private void backButton() {\n navigate.goPrev(this.getClass(), stage);\n }", "@Override\n public void onBackPressed() {\n \tshowDialog(DLG_BUTTONS);\n }", "@Override\n\tpublic void goToBack() {\n\t\tif(uiHomePrestamo!=null){\n\t\tuiHomePrestamo.getHeader().getLblTitulo().setText(constants.prestamos());\n\t\tuiHomePrestamo.getHeader().setVisibleBtnMenu(true);\n\t\tuiHomePrestamo.getContainer().showWidget(1);\n\t\t}else if(uiHomeCobrador!=null){\t\t\t\t\t\t\t\t\t\t\t\n\t\t\tuiHomeCobrador.getContainer().showWidget(2);\n\t\t\tuiHomeCobrador.getUiClienteImpl().cargarClientesAsignados();\n\t\t\tuiHomeCobrador.getUiClienteImpl().reloadTitleCobrador();\n\t\t}\n\t}", "public void back()\n\t{\n\t\tdriver.findElementById(OR.getProperty(\"BackButton\")).click();\n\t}", "@Override\n\tpublic void onBackPressed() {\n\t\tBack();\n\t}", "@Override\n public void onBackPressed() {\n super.onBackPressed();\n this.finish();\n }", "@Override\n public void onBackPressed() {\n super.onBackPressed();\n this.finish();\n }", "@Override\n\tpublic void onBackPressed() {\n\t\tsuper.onBackPressed();\n\t\t finish();\n\t}", "@FXML\n void goBack(ActionEvent event) throws IOException{\n loadMain(event, session);\n }", "@Override\n\tpublic void onBackPressed()\n\t\t{\n\t\tbackPressed();\n\t\t}", "@Override\n public void onBackPressed() {\n\n finish();\n }", "@Override\n\tpublic void onBackPressed() {\n\treturn;\n\t}", "@Override\n public void onBackPressed() {\n leaveDialog(this);\n }", "@Override\n\tpublic void onBackPressed() {\n\t\treturn;\n\t}", "@Override\n public void onBackPressed() {\n gameAlertDialog.show(\"EXIT\");\n exitAlertVisible = true;\n }", "@Override\n public void onBackPressed() {\n exitReveal();\n\n super.onBackPressed();\n }", "void onGoBackButtonClick();", "public void back() {\n\t\tstate.back();\n\t}", "@Override\r\n\tpublic void backButton() {\n\t\t\r\n\t}", "@Override\n\tpublic void onBackPressed() {\n\n\t\tnavigatetoAppointmentsListingScreen(\"false\");\n\t}", "@Override\n public void onBackPressed() {\n finish();\n }", "@Override\n public void onBackPressed() {\n finish();\n }", "@Override\n public void onBackPressed() {\n finish();\n }", "@Override\n public void onBackPressed() {\n finish();\n }", "@Override\n public void onBackPressed() {\n finish();\n }", "@Override\n public void onBackPressed() {\n finish();\n }", "@Override\n public void onBackPressed() {\n finish();\n }", "@FXML\n void goBack(ActionEvent event) {\n \tWindowManager.goBack();\n }", "public void returnToPrev(){\r\n Stage stage = (Stage) exitButton.getScene().getWindow();\r\n stage.close();\r\n }", "@Override\r\n\tpublic void onBackPressed() {\n\t\tbackButtonHandler();\r\n\t\treturn;\r\n\t}", "@Override\r\n\tpublic void onBackPressed() {\n\t\tIntent i = new Intent(this, MainActivity.class);\r\n\t\tstartActivity(i);\r\n\t}", "@Override\n\tpublic void onBackPressed() {\n\t\tsuper.onBackPressed();\n\t\treturn;\n\t}", "@Override\n public void onBackPressed() {\n super.onBackPressed();\n finish();\n }", "public void Exit() {\r\n \tsuper.onBackPressed();\r\n }", "@Override\r\n public void onBackPressed() {\r\n \t// Handle the back button click event such that if user \r\n \t// is performing an IMCI or CCM assessment then a confirmation dialog \r\n \t// will be displayed to confirm that the user wishes to exit the \r\n \t// patient assessment\r\n \texitAssessmentDialogHandler();\r\n }", "@Override\r\n\tpublic void onBackPressed() {\n\t\tsuper.onBackPressed();\r\n\t\tdoBack();\r\n\t}", "public void GoBack(){\n if (prev_hostgui != null){\n this.setVisible(false);\n prev_hostgui.setVisible(true);\n } else{\n this.setVisible(false);\n prev_guestgui.setVisible(true);\n }\n }", "@Override\n public void goBack() {\n\n }", "@Override\n public void onBackPressed() {\n finish();\n\n }", "public void navigateToBack() {\n WebDriverManager.getDriver().navigate().back();\n }", "private void goBack() {\n View.clearViews();\n View.cambiar(\"operador.cliente\", new RegistrarClientes(operador));\n }", "public void backbutton(ActionEvent event) throws Exception{\n\t\t\n\t\tcustomermainpage main = new customermainpage();\n\t\tmain.setgui();\n\t}", "@Override\n\tpublic void onBackPressed() {\n\t\t\n\t}", "private void backButtonAction() {\n CurrentUI.changeScene(SceneNames.LOGIN);\n }", "@Override\n public void onBackPressed() {\n logBackPressed();\n finishOk();\n }", "@Override\r\n public void onBackPressed() {\n setResult(Activity.RESULT_OK);\r\n this.finish();\r\n super.onBackPressed();\r\n }", "private void returnBack()\n {\n getActivity().onBackPressed();\n }", "@Override\r\n\tpublic void onBackPressed() {\n\t\tsuper.onBackPressed();\r\n\t}", "@Override\r\n\tpublic void onBackPressed() {\n\t\tsuper.onBackPressed();\r\n\t}", "public void onBackPressed() {\n backbutton();\n }", "public void goBack() {\n setEditor(currentEditor.getParentEditor());\n }", "@Override\n public void onBackPressed() {\n return;\n }", "@Override\n public void onBackPressed() {\n return;\n }", "@Override\n public void onBackPressed() {\n return;\n }", "@Override\n public void onBackPressed() {\n return;\n }", "@Override\n\tpublic void onBackPressed() {\n\t\tIntent intent = new Intent(Intent.ACTION_MAIN);\n intent.addCategory(Intent.CATEGORY_HOME);\n intent.setFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP);\n startActivity(intent);\n finish();\n System.exit(0);\n\t}", "@Override\n public void onBackPressed() {\n showEndShiftDialog();\n }", "@Override\n public void onBackPressed() {\n backToHome();\n }", "private void backActionPerformed(ActionEvent e) {\r\n ctr_pres.principal();\r\n setVisible(false);\r\n }", "public void onBackPressed() {\n C0486WU wu = this.f2780c;\n if (wu != null) {\n wu.mo1418b();\n }\n finish();\n Share_IP.super.onBackPressed();\n setResult(0, new Intent());\n }", "@Override\n\tpublic void onBackPressed() {\n\t\tmoveTaskToBack(false);\n\t}", "protected void exitByBackKey() {\n AlertDialog.Builder builder = new AlertDialog.Builder(MainActivity.this);\n builder.setTitle(\"EXIT\");\n builder.setMessage(\"ARE YOU SURE?\");\n builder.setPositiveButton(\"EXIT\", new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialog, int which) {\n finish();\n }\n });\n\n builder.setNegativeButton(\"CANCEL\", new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialog, int which) {\n return;\n }\n });\n builder.show();\n\n }", "@Override\n\tpublic void onBackPressed()\n\t{\n\t}", "public void goBack() throws IOException { DashboardController.dbc.loadHomeScene(); }", "public void onBackPressed(){\n finish();\n }", "public void back(){\n\t\tIntent mainIntent = new Intent().setClass(DatosAuto.this, BuscaPlacaTexto.class);\n\t\tstartActivity(mainIntent);\n\t\tpager=null;\n\t\tDatosAuto.this.finish();\n\t\tDialogos.Toast(DatosAuto.this, getResources().getString(R.string.mapa_inicio_de_viaje_no_tomado), Toast.LENGTH_LONG);\n\t\tsuper.onBackPressed();\n\t}", "@Override\n public void backPressed(){\n }", "public void back() {\n //noinspection ResultOfMethodCallIgnored\n previous();\n }", "@Override\n\tpublic void backButton() {\n\n\t}", "public void goBack(ActionEvent event) {\n\t\ttry {\n\t\t\tFXMLLoader loader = new FXMLLoader(getClass().getResource(\"/application/walkin/BasicInfoPrompt.fxml\"));\n\t\t\tParent root = (Parent) loader.load();\n\t\t\t\n\t\t\tGenerateReportController reportVariables = loader.getController();\n\t\t\treportVariables.getReport(newReport2);\n\t\t\t\n\t\t\tStage stage = (Stage)((Node)event.getSource()).getScene().getWindow();\n\t\t\tstage.setScene(new Scene(root));\n\t\t\tstage.show();\n\t\t} \n\t\tcatch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "@Override\n public void onBackPressed() {\n showUnsavedChangesDialog();\n }", "@Override\n public void onBackPressed() {\n super.onBackPressed();\n finish();\n startActivity(new Intent(getApplicationContext(), MainActivity.class));\n }", "@Override\n\tpublic void onBackPressed() {\n\t\tsuper.onBackPressed();\n\t}", "@Override\n\tpublic void onBackPressed() {\n\t\tsuper.onBackPressed();\n\t}", "@Override\n\tpublic void onBackPressed() {\n\t\tsuper.onBackPressed();\n\t}", "@Override\n\tpublic void onBackPressed() {\n\t\tsuper.onBackPressed();\n\t}", "@Override\n\tpublic void onBackPressed() {\n\t\tsuper.onBackPressed();\n\t}", "@Override\n\tpublic void onBackPressed() {\n\t\tsuper.onBackPressed();\n\t}", "@Override\n\tpublic void onBackPressed() {\n\t\tsuper.onBackPressed();\n\t}", "@Override\n\tpublic void onBackPressed() {\n\t\tsuper.onBackPressed();\n\t}", "@FXML\r\n\t\tpublic void back(ActionEvent event) {\r\n\t\t\tGuiBasedApp.launchHomeScreenScene();\r\n\t\t}" ]
[ "0.83861405", "0.8352866", "0.831213", "0.8193562", "0.8040172", "0.8040172", "0.80289704", "0.8014975", "0.7925476", "0.7879068", "0.78746617", "0.78674734", "0.78578323", "0.78578323", "0.7855014", "0.78536224", "0.7850714", "0.7850714", "0.7850714", "0.78456813", "0.7826981", "0.7813559", "0.78108275", "0.780257", "0.7776182", "0.7776182", "0.7746015", "0.7739535", "0.7694483", "0.7688998", "0.7682329", "0.76796865", "0.76771563", "0.7662558", "0.76372707", "0.76348925", "0.76312757", "0.762958", "0.7622297", "0.76221186", "0.76221186", "0.76221186", "0.76221186", "0.76221186", "0.76221186", "0.76221186", "0.76207507", "0.7600041", "0.758429", "0.75687045", "0.75542724", "0.7539339", "0.75356483", "0.7521778", "0.75149935", "0.7511323", "0.7511022", "0.7499406", "0.74858654", "0.748557", "0.74748254", "0.7470627", "0.74703294", "0.7463404", "0.74584526", "0.74567634", "0.74507064", "0.74507064", "0.74420047", "0.744014", "0.7439886", "0.7439886", "0.7439886", "0.7439886", "0.7439882", "0.74380904", "0.7437336", "0.74317205", "0.74302477", "0.7417449", "0.7414581", "0.7414166", "0.7413881", "0.74131304", "0.74113876", "0.74057746", "0.7405118", "0.74046546", "0.7404337", "0.740327", "0.74007773", "0.73883176", "0.73883176", "0.73883176", "0.73883176", "0.73883176", "0.73883176", "0.73883176", "0.73883176", "0.73868567" ]
0.7931264
8
sends the user to the Wikipedia site after clicking on the white circle next to MyMazeGenerator The link is an explanation of the Prim algorithm used to create the mazes
public void PrimInfo(ActionEvent actionEvent) { try { Desktop.getDesktop().browse(new URL("https://en.wikipedia.org/wiki/Prim%27s_algorithm").toURI()); } catch (IOException e) { e.printStackTrace(); } catch (URISyntaxException e) { e.printStackTrace(); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void MakeMaze() {\n\n\t\t// ints for random x , y and direction\n\t\tint rx = 0;\n\t\tint ry = 0;\n\t\tint rd = 0;\n\t\tgenMaze = true;\n\n\t\t// c used to count tries, if there are too many the main loop jumps to\n\t\t// the end of the function\n\t\tint c = 0;\n\n\t\t// fill the map with walls\n\t\tfor (int ix = 0; ix < max_x; ix++) {\n\t\t\tfor (int iy = 0; iy < max_y; iy++) {\n\t\t\t\tmap[ix][iy] = 1;\n\t\t\t}\n\t\t}\n\n\t\t// fill the cell array with unvisited cells\n\t\tfor (int ix = 0; ix < maxCells_x; ix++) {\n\t\t\tfor (int iy = 0; iy < maxCells_y; iy++) {\n\t\t\t\tcell[ix][iy] = 0;\n\t\t\t}\n\t\t}\n\n\t\t// choose a \"random\" x,y pair. centre of screen used here instead\n\t\trx = maxCells_x / 2;\n\t\try = maxCells_y / 2;\n\n\t\t// mark cell visited\n\t\tcell[rx][ry] = 1;\n\n\t\t// count cells\n\t\tcountCells();\n\n\t\t// start main generator loop\n\t\twhile (visitedCells < totalCells) {\n\n\t\t\tc++;\n\n\t\t\tif (c > magicNumber) {\n\t\t\t\tgenMaze = false;\n\t\t\t\tbreak;\n\t\t\t}\n\n\t\t\trd = rand.nextInt(4);\n\n\t\t\t// dig tunnels\n\n\t\t\t// up\n\n\t\t\tif (genMaze) {\n\t\t\t\tif (rd == 0) { // up\n\t\t\t\t\tif (inRange(rx * CELL_RAD, ry * CELL_RAD - 1) == 1\n\t\t\t\t\t\t\t&& (cell[rx][ry - 1]) == 0 || rand.nextInt(7) == 7) {\n\t\t\t\t\t\tclink(rx * CELL_RAD, ry * CELL_RAD, rx * CELL_RAD,\n\t\t\t\t\t\t\t\t(ry - 1) * CELL_RAD);\n\t\t\t\t\t\try--;\n\t\t\t\t\t} else {\n\t\t\t\t\t\twhile (true) {\n\t\t\t\t\t\t\trx = rand.nextInt(maxCells_x);\n\t\t\t\t\t\t\try = rand.nextInt(maxCells_y);\n\t\t\t\t\t\t\tif (cell[rx][ry] == 1) {\n\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t} else if (rd == 1) { // down\n\t\t\t\t\tif (inRange(rx + CELL_RAD, ry * CELL_RAD + 1) == 1\n\t\t\t\t\t\t\t&& (cell[rx][ry + 1] == 0 || rand.nextInt(7) == 7)) {\n\t\t\t\t\t\tclink(rx * CELL_RAD, (ry) * CELL_RAD, rx * CELL_RAD,\n\t\t\t\t\t\t\t\t(ry + 1) * CELL_RAD);\n\t\t\t\t\t\try++;\n\t\t\t\t\t} else {\n\t\t\t\t\t\twhile (true) {\n\t\t\t\t\t\t\trx = rand.nextInt(maxCells_x);\n\t\t\t\t\t\t\try = rand.nextInt(maxCells_y);\n\t\t\t\t\t\t\tif (cell[rx][ry] == 1) {\n\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t} else if (rd == 2) { // left\n\t\t\t\t\tif (inRange((rx * CELL_RAD) - 1, ry * CELL_RAD) == 1\n\t\t\t\t\t\t\t&& (cell[rx - 1][ry] == 0 || rand.nextInt(7) == 7)) {\n\t\t\t\t\t\tclink(rx * CELL_RAD, ry * CELL_RAD,\n\t\t\t\t\t\t\t\t(rx - 1) * CELL_RAD, ry * CELL_RAD);\n\t\t\t\t\t\trx--;\n\t\t\t\t\t} else {\n\t\t\t\t\t\twhile (true) {\n\t\t\t\t\t\t\trx = rand.nextInt(maxCells_x);\n\t\t\t\t\t\t\try = rand.nextInt(maxCells_y);\n\t\t\t\t\t\t\tif (cell[rx][ry] == 1) {\n\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\n\t\t\t\t} else if (rd == 3) { // right\n\t\t\t\t\tif (inRange(rx * CELL_RAD + 1, ry * CELL_RAD) == 1\n\t\t\t\t\t\t\t&& (cell[rx + 1][ry]) == 0 || rand.nextInt(7) == 7) {\n\t\t\t\t\t\tclink((rx) * CELL_RAD, ry * CELL_RAD, (rx + 1)\n\t\t\t\t\t\t\t\t* CELL_RAD, ry * CELL_RAD);\n\t\t\t\t\t\trx++;\n\t\t\t\t\t} else {\n\t\t\t\t\t\twhile (true) {\n\t\t\t\t\t\t\trx = rand.nextInt(maxCells_x);\n\t\t\t\t\t\t\try = rand.nextInt(maxCells_y);\n\t\t\t\t\t\t\tif (cell[rx][ry] == 1) {\n\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\t// mark the cell as visited\n\n\t\t\t\tcell[rx][ry] = 1;\n\n\t\t\t\t// place a \"floor\" tile on the map where the maze cell should be\n\t\t\t\tmap[rx * CELL_RAD][ry * CELL_RAD] = 0;\n\n\t\t\t\t// count the cells to establish how many have been visited\n\t\t\t\tcountCells();\n\t\t\t}\n\t\t}\n\n\t\tfor (int ix = 0; ix < maxCells_x; ix++) {\n\t\t\tfor (int iy = 0; iy < maxCells_y; iy++) {\n\t\t\t\tif (cell[ix][iy] == 1) {\n\t\t\t\t\tmap[ix * CELL_RAD][iy * CELL_RAD] = 0;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "public static void Welcome (){ //this method outputs welcome information and possibly other relevant information to user\r\n System.out.println(\"Welcome to the Maze Pathfinder Program! \\n\\nThis program can either create a random maze or accept input from a file to create one. Then the program will find a path from the start point to the end point in the maze.\\nEnjoy! \");\r\n System.out.println(\"\\n\");\r\n }", "public void showGenerate3dMaze(String message);", "public void showSaveMaze(String message);", "public void showLoadMaze(String message);", "Maze makeMaze();", "public void showSolveMaze(String message);", "public void newMaze()\n {\n NewMazeDialog dialog;\n String result;\n dialog = new NewMazeDialog(Main.getPrimaryFrameInstance());\n if ( (result = dialog.showDialog()) == null)\n return;\n\n MazeInfoModel mim = Main.getPrimaryFrameInstance().getMazeInfoModel();\n\n if (result.equals(NewMazeDialog.MAZ))\n {\n MazeInfo newMi = mim.createNew(\"New Maze \" + mLastNew, false);\n if (newMi == null)\n {\n JOptionPane.showMessageDialog(MazeEditorPage.this,\n \"Unable to create new maze\",\n \"Maze Creation Error\",\n JOptionPane.OK_OPTION);\n return;\n }\n mLastNew++;\n }\n else if (result.equals(NewMazeDialog.MZ2))\n {\n MazeInfo newMi = mim.createNew(dialog.getText(), true);\n if (newMi == null)\n {\n JOptionPane.showMessageDialog(MazeEditorPage.this,\n \"Unable to create new maze\",\n \"Maze Creation Error\",\n JOptionPane.OK_OPTION);\n return;\n }\n MazeModel mm = newMi.getModel();\n mm.setSize(dialog.getMazeSize());\n }\n }", "public static void main(String[] args) {\n char [][] strtMaze = new char[][]{\n {'#', '#', '#', '#', '#', '#', '#', '#', '#', '#', '#', '#'},\n {'#', '.', '.', '.', '#', '.', '.', '.', '.', '.', '.', '#'},\n {'.', '.', '#', '.', '#', '.', '#', '#', '#', '#', '.', '#'},\n {'#', '#', '#', '.', '#', '.', '.', '.', '.', '#', '.', '#'},\n {'#', '.', '.', '.', '.', '#', '#', '#', '.', '#', '.', '#'},\n {'#', '#', '#', '#', '.', '#', 'F', '#', '.', '#', '.', '#'},\n {'#', '.', '.', '#', '.', '#', '.', '#', '.', '#', '.', '#'},\n {'#', '#', '.', '#', '.', '#', '.', '#', '.', '#', '.', '#'},\n {'#', '.', '.', '.', '.', '.', '.', '.', '.', '#', '.', '#'},\n {'#', '#', '#', '#', '#', '#', '.', '#', '#', '#', '.', '#'},\n {'#', '.', '.', '.', '.', '.', '.', '#', '.', '.', '.', '#'},\n {'#', '#', '#', '#', '#', '#', '#', '#', '#', '#', '#', '#'},\n };\n //Get start position of person\n int pstartx = 2;\n int pstarty = 0;\n //Get start position of hand\n int hstartx = 3; //If same as pstart(facing north south)\n int hstarty = 0;//If same as pstart (facing east west)\n RecursionOutLab maze1 = new RecursionOutLab();\n maze1.maze(strtMaze, pstartx, pstarty, hstartx, hstarty);\n }", "public void generateMaze(View view){\n\t\tLog.v(LOG_TAG, \"Start button clicked\");\n\t\tIntent intent = new Intent(this, GeneratingActivity.class);\n\t\tintent.putExtra(\"loadMaze\", false);\n\t\tint mazeLevel = seekBar.getProgress();\n\t\tintent.putExtra(\"level\", mazeLevel);\n\t\tMazeDataHolder.setSkill(mazeLevel);\n\t\tString generationAlgorithm = spinner.getSelectedItem().toString();\n\t\tMazeDataHolder.setGenerationAlgorithm(generationAlgorithm);\n\t\tintent.putExtra(\"generationAlgorithm\", generationAlgorithm);\n\t\treleasePlayer();\n\t\tstartActivity(intent);\n\t\tfinish();\n\t}", "void maze(char[][] mz, int p_row, int p_col, int h_row, int h_col){\n \n if (mz[p_row][p_col] == 'F'){\n //Base case -End maze\n printMaze(mz);\n System.out.println(\"Maze Successfully Completed!\");\n } else {\n if (h_row-1 == p_row){\n //If facing East\n if(mz[h_row][h_col] != '#'){ //If right turn available\n //Update player\n mz[p_row][p_col] = 'X'; \n p_row += 1;\n p_col += 0;\n if (mz[p_row][p_col] == 'F'){\n mz[p_row][p_col] = 'F';\n } else {\n mz[p_row][p_col] = 'O';\n }\n //Update hand\n h_row += 0;\n h_col -= 1;\n printMaze(mz); \n } else { \n //If hand position is a wall check in front of player\n if(mz[p_row][p_col+1] != '#'){\n //Update player\n mz[p_row][p_col] = 'X';\n p_row += 0;\n p_col += 1;\n if (mz[p_row][p_col] == 'F'){\n mz[p_row][p_col] = 'F';\n } else {\n mz[p_row][p_col] = 'O';\n }\n //Update hand\n h_row += 0;\n h_col += 1;\n printMaze(mz);\n } else if (mz[p_row-1][p_col] != '#'){\n //Turn left 90 and if not a wall move up\n //Update player\n mz[p_row][p_col] = 'X';\n p_row -= 1;\n p_col += 0;\n if (mz[p_row][p_col] == 'F'){\n mz[p_row][p_col] = 'F';\n } else {\n mz[p_row][p_col] = 'O';\n }\n //Update hand\n h_row -= 2;\n h_col += 1;\n printMaze(mz);\n } else {\n //Turn around\n //Update player\n mz[p_row][p_col] = 'X';\n p_row += 0;\n p_col -= 1;\n if (mz[p_row][p_col] == 'F'){\n mz[p_row][p_col] = 'F';\n } else {\n mz[p_row][p_col] = 'O';\n }\n //Update hand\n h_row -= 2;\n h_col -= 1;\n printMaze(mz);\n }\n }\n } else if (h_row+1 == p_row){\n //If facing West\n if(mz[h_row][h_col] != '#'){\n //Look right\n mz[p_row][p_col] = 'X'; \n p_row -= 1;\n p_col += 0;\n if (mz[p_row][p_col] == 'F'){\n mz[p_row][p_col] = 'F';\n } else {\n mz[p_row][p_col] = 'O';\n }\n //Update hand\n h_row -= 0;\n h_col += 1;\n printMaze(mz);\n } else { \n //If hand position is a wall check in front of player\n if(mz[p_row][p_col-1] != '#'){\n //Update player\n mz[p_row][p_col] = 'X';\n p_row += 0;\n p_col -= 1;\n if (mz[p_row][p_col] == 'F'){\n mz[p_row][p_col] = 'F';\n } else {\n mz[p_row][p_col] = 'O';\n }\n //Update hand\n h_row += 0;\n h_col -= 1;\n printMaze(mz);\n } else if (mz[p_row+1][p_col] != '#'){\n //Turn left 90 and if not a wall move up\n //Update player\n mz[p_row][p_col] = 'X';\n p_row += 1;\n p_col -= 0;\n if (mz[p_row][p_col] == 'F'){\n mz[p_row][p_col] = 'F';\n } else {\n mz[p_row][p_col] = 'O';\n }\n //Update hand\n h_row += 2;\n h_col -= 1;\n printMaze(mz);\n } else {\n //Turn around\n //Update player\n mz[p_row][p_col] = 'X';\n p_row -= 0;\n p_col += 1;\n if (mz[p_row][p_col] == 'F'){\n mz[p_row][p_col] = 'F';\n } else {\n mz[p_row][p_col] = 'O';\n }\n //Update hand\n h_row += 2;\n h_col += 1;\n printMaze(mz);\n }\n }\n \n } else if (h_col -1 == p_col){\n //If facing North\n if(mz[h_row][h_col] != '#'){ \n //Take right if available\n //Update player\n mz[p_row][p_col] = 'X'; \n p_row += 0;\n p_col += 1;\n if (mz[p_row][p_col] == 'F'){\n mz[p_row][p_col] = 'F';\n } else {\n mz[p_row][p_col] = 'O';\n }\n //Update hand\n h_row += 1;\n h_col -= 0;\n printMaze(mz); \n } else {\n //If hand position is a wall check in front of player\n if(mz[p_row-1][p_col] != '#'){\n //Update player\n mz[p_row][p_col] = 'X';\n p_row -= 1;\n p_col += 0;\n if (mz[p_row][p_col] == 'F'){\n mz[p_row][p_col] = 'F';\n } else {\n mz[p_row][p_col] = 'O';\n }\n //Update hand\n h_row -= 1;\n h_col += 0;\n printMaze(mz);\n } else if (mz[p_row][p_col-1] != '#'){\n //Turn left 90 and if not a wall move up\n //Update player\n mz[p_row][p_col] = 'X';\n p_row -= 0;\n p_col -= 1;\n if (mz[p_row][p_col] == 'F'){\n mz[p_row][p_col] = 'F';\n } else {\n mz[p_row][p_col] = 'O';\n }\n //Update hand\n h_row -= 1;\n h_col -= 2;\n printMaze(mz);\n } else {\n //Turn around\n //Update player\n mz[p_row][p_col] = 'X';\n p_row -= 1;\n p_col += 0;\n if (mz[p_row][p_col] == 'F'){\n mz[p_row][p_col] = 'F';\n } else {\n mz[p_row][p_col] = 'O';\n }\n //Update hand\n h_row += 1;\n h_col -= 2;\n printMaze(mz);\n }\n }\n } else if (h_col+1 == p_col){\n //If facing South\n if(mz[h_row][h_col] != '#'){\n //Look right\n mz[p_row][p_col] = 'X'; \n p_row -= 0;\n p_col -= 1;\n if (mz[p_row][p_col] == 'F'){\n mz[p_row][p_col] = 'F';\n } else {\n mz[p_row][p_col] = 'O';\n }\n //Update hand\n h_row -= 1;\n h_col += 0;\n printMaze(mz);\n } else { \n //If hand position is a wall check in front of player\n if(mz[p_row+1][p_col] != '#'){\n //Update player\n mz[p_row][p_col] = 'X';\n p_row += 1;\n p_col += 0;\n if (mz[p_row][p_col] == 'F'){\n mz[p_row][p_col] = 'F';\n } else {\n mz[p_row][p_col] = 'O';\n }\n //Update hand\n h_row += 1;\n h_col += 0;\n printMaze(mz);\n } else if (mz[p_row][p_col+1] != '#'){\n //Turn left 90 and if not a wall move up\n //Update player\n mz[p_row][p_col] = 'X';\n p_row += 0;\n p_col += 1;\n if (mz[p_row][p_col] == 'F'){\n mz[p_row][p_col] = 'F';\n } else {\n mz[p_row][p_col] = 'O';\n }\n //Update hand\n h_row += 1;\n h_col += 2;\n printMaze(mz);\n } else {\n //Turn around\n //Update player\n mz[p_row][p_col] = 'X';\n p_row -= 0;\n p_col += 1;\n if (mz[p_row][p_col] == 'F'){\n mz[p_row][p_col] = 'F';\n } else {\n mz[p_row][p_col] = 'O';\n }\n //Update hand\n h_row += 2;\n h_col += 1;\n printMaze(mz);\n }\n }\n \n }\n maze(mz, p_row, p_col, h_row, h_col); \n }\n }", "private void showWebResultForNode(IndexNode node)\n {\n if(node == null) return;\n \n final int MAX_CHARS = 25; \n JPanel panel = new JPanel(new GridLayout(7, 2));\n \n panel.add(new JLabel(\"URL\"));\n panel.add(new JLabel(limitString(node.getURL(), MAX_CHARS)));\n panel.add(new JLabel(\"Parent URL\"));\n panel.add(new JLabel(limitString(node.getParent(), MAX_CHARS)));\n panel.add(new JLabel(\"Title\"));\n panel.add(new JLabel(limitString(node.getTitle(), MAX_CHARS)));\n panel.add(new JLabel(\"Description\"));\n panel.add(new JLabel(limitString(node.getDescription(), MAX_CHARS + 10)));\n panel.add(new JLabel(\"Last updated\"));\n panel.add(new JLabel(limitString(node.getLastUpdated().toString(), MAX_CHARS + 10)));\n panel.add(new JLabel(\"Page rank\"));\n panel.add(new JLabel(limitString(\"\" + node.getRank(), 12)));\n \n JButton openInBrowser = new JButton(\"Open in browser\");\n JButton copyClipboard = new JButton(\"Copy to clipboard\");\n openInBrowser.setIcon(new ImageIcon(webIconImage));\n copyClipboard.setIcon(new ImageIcon(clipboardImage));\n panel.add(openInBrowser);\n panel.add(copyClipboard);\n \n ActionListener listener = (ActionEvent e) -> \n {\n Object src = e.getSource();\n \n //Open page at URL\n if(src == openInBrowser)\n openPage(node.getURL());\n \n //Copy URL to clipboard\n else if(src == copyClipboard)\n copyToClipboard(node.getURL());\n };\n \n openInBrowser.addActionListener(listener);\n copyClipboard.addActionListener(listener);\n \n\n \n panel.setBorder(BorderFactory.createEmptyBorder(15, 15, 15, 15));\n JDialog modal = new JDialog(frame);\n modal.getContentPane().add(panel);\n modal.setLocation(frame.getWidth() - panel.getSize().width, frame.getHeight() / 2 - panel.getSize().height);\n modal.setTitle(\"Address Data\");\n modal.pack();\n \n modal.addWindowListener(new WindowAdapter()\n {\n @Override\n public void windowClosing(WindowEvent e)\n {\n resultsTable.clearSelection();\n modalOpen = false;\n }\n });\n \n modal.setVisible(true);\n }", "private void viewPage(String club) throws JSONException, InterruptedException {\r\n logger.log(Level.INFO, \"Would you like to view the \" + \r\n club + \" clubpage? (y/n)\");\r\n \r\n // if yes, go to club page\r\n // else return to display prompt\r\n if(\"y\".equalsIgnoreCase(in.nextLine())) {\r\n \t Club clubToView = new Club(club);\r\n \t clubToView.printClubPromptsAndInfo(PolyClubsConsole.user instanceof ClubAdmin);\r\n }\r\n \r\n else \r\n displaySearch(); \r\n }", "public void run()\r\n {\n\ttopLevelSearch=FIND_TOP_LEVEL_PAGES;\r\n\ttopLevelPages=new Vector();\r\n\tnextLevelPages=new Vector();\r\n \r\n\t// Check to see if a proxy is being used. If so then we use IP Address rather than host name.\r\n\tproxyDetected=detectProxyServer();\r\n\t \r\n\tstartSearch();\r\n \r\n\tapp.enableButtons();\r\n\tapp.abort.disable();\r\n \r\n\tif(hitsFound == 0 && pageOpened == true)\r\n\t app.statusArea.setText(\"No Matches Found\");\r\n else if(hitsFound==1)\r\n\t app.statusArea.setText(hitsFound+\" Match Found\");\r\n else app.statusArea.setText(hitsFound+\" Matches Found\");\r\n }", "private void createMaze(Tile currentTile) {\n\n while (numberOfCellsVisited < CAST_WIDTH * CAST_HEIGHT) {\n\n // Get coordinates of current tile and set as visited\n int currentX = currentTile.getPosition().getX();\n int currentY = currentTile.getPosition().getY();\n tempMap[currentY][currentX].setVisited(true);\n\n // Begin neighbourhood scan\n ArrayList<Integer> neighbours = new ArrayList<>();\n\n // If a neighbour is not visited and its projected position is within bounds, add it to the list of valid neighbours\n // North neighbour\n if (currentY - 1 >= 0) {\n if (!tempMap[currentY - 1][currentX].isVisited()) //Northern neighbour unvisited\n neighbours.add(0);\n }\n //Southern neighbour\n if (currentY + 1 < CAST_HEIGHT) { //y index if increased is not greater than height of the chamber\n if (!tempMap[currentY + 1][currentX].isVisited()) //Northern neighbour unvisited\n neighbours.add(1);\n }\n //Eastern neighbour\n if (currentX + 1 < CAST_WIDTH) { //check edge case\n if (!tempMap[currentY][currentX + 1].isVisited()) { //check if visited\n neighbours.add(2);\n }\n }\n //Western neighbour\n if (currentX - 1 >= 0) {\n if (!tempMap[currentY][currentX - 1].isVisited()) {\n neighbours.add(3);\n }\n }\n if (!neighbours.isEmpty()) {\n\n //generate random number between 0 and 3 for direction\n Random rand = new Random();\n boolean randomizer;\n int myDirection;\n do {\n myDirection = rand.nextInt(4);\n randomizer = neighbours.contains(myDirection);\n } while (!randomizer);\n\n //knock down wall\n switch (myDirection) {\n case 0 -> { // North\n tempMap[currentY][currentX].getPathDirection()[0] = true;\n currentTile = tempMap[currentY - 1][currentX];\n }\n case 1 -> { // South\n tempMap[currentY][currentX].getPathDirection()[1] = true;\n currentTile = tempMap[currentY + 1][currentX];\n }\n case 2 -> { // East\n tempMap[currentY][currentX].getPathDirection()[2] = true;\n currentTile = tempMap[currentY][currentX + 1];\n }\n case 3 -> { // West\n tempMap[currentY][currentX].getPathDirection()[3] = true;\n currentTile = tempMap[currentY][currentX - 1];\n }\n }\n\n mapStack.push(currentTile);\n numberOfCellsVisited++;\n } else {\n currentTile = mapStack.pop(); //backtrack\n }\n }\n\n castMaze(tempMap[0][0], -1);\n }", "public static void intro(){\n System.out.println(\"Welcome to Maze Runner!\");\n System.out.println(\"Here is your current position:\");\n myMap.printMap();\n\n }", "public void drawMainWindow(){\n\n p.pushMatrix();\n p.translate(0,0);// translate whole window if necessary\n\n // window stuff\n // show name and draw\n p.stroke(0);\n p.strokeWeight(2);\n p.textSize(30);\n p.fill(0);\n p.text(\"Work space\",15,35);\n p.rectMode(CORNER);\n p.fill(219, 216, 206);\n p.rect(-285,40,1000,700);\n p.rectMode(CENTER);\n\n // show \"pause\" text\n if(pause) {\n p.fill(0);\n p.textSize(20);\n p.text(\"PAUSE\", 20, 60);\n p.textSize(12);\n }\n\n // draw coordinates lines\n drawCoordinateSystem();\n showRouteAsked();\n calculatePointer();\n\n // main mainManipulator\n manipulator.showManipulator(false);\n manipulator.route(true);\n\n if(routeAsked.size()>0) {\n if(!pause) manipulator.moveManally(routeAsked.get(0).copy());\n\n if (manipulator.segment_2_end.dist(routeAsked.get(0)) < 1) {\n routeAsked.remove(0);\n }\n\n // if you want to make it work with nn:\n\n// p.circle(routeAsked.get(0).x,routeAsked.get(0).y,15);\n// manipulator.setTarget(routeAsked.get(0));\n// manipulator.route(true);\n// if (!pause) manipulator.update();\n// manipulator.showManipulator(true);\n//\n// if (manipulator.targetDistFromAgent < 10) {\n// routeAsked.remove(0);\n// }\n }\n\n\n // pointer\n // show pointer and line to the pointer\n p.stroke(2);\n p.stroke(133, 168, 13,100);\n p.line(BASE_POS.x,BASE_POS.y,p.cos(pointerAngle)*pointerDist+BASE_POS.x,p.sin(pointerAngle)*pointerDist+BASE_POS.y);\n p.fill(207, 95, 43);\n p.noStroke();\n p.ellipse(pointerPos.x,pointerPos.y,15,15);\n\n p.popMatrix();\n }", "private void nextStep(){\n if(vMaze == null)\n mainMessage.setText(\"You must load a maze first!\");\n else try{\n vMaze.step();\n tileBox.getChildren().clear();\n tileBox.getChildren().add(vMaze.getTiles());\n\n mainMessage.setText(\"You took one step.\");\n if(vMaze.getRouteFinder().isFinished())\n mainMessage.setText(\"You reached the end!\");\n } catch (NoRouteFoundException e){\n mainMessage.setText(e.getMessage());\n }\n }", "@Test\n public void testGivenMaze() {\n try {\n //link row 1\n largeMaze.linkPillars(Maze.position(0, 0), Maze.position(1, 0));\n largeMaze.linkPillars(Maze.position(1, 0), Maze.position(2, 0));\n largeMaze.linkPillars(Maze.position(2, 0), Maze.position(3, 0));\n largeMaze.linkPillars(Maze.position(3, 0), Maze.position(4, 0));\n largeMaze.linkPillars(Maze.position(1, 0), Maze.position(1, 1));\n\n //link row 2\n largeMaze.linkPillars(Maze.position(1, 1), Maze.position(2, 1));\n largeMaze.linkPillars(Maze.position(1, 1), Maze.position(1, 2));\n largeMaze.linkPillars(Maze.position(3, 1), Maze.position(4, 1));\n\n //link row 3\n largeMaze.linkPillars(Maze.position(1, 2), Maze.position(1, 3));\n largeMaze.linkPillars(Maze.position(1, 2), Maze.position(2, 2));\n\n //link row 4\n largeMaze.linkPillars(Maze.position(1, 3), Maze.position(0, 3));\n largeMaze.linkPillars(Maze.position(1, 3), Maze.position(2, 3));\n largeMaze.linkPillars(Maze.position(3, 3), Maze.position(4, 3));\n largeMaze.linkPillars(Maze.position(0, 3), Maze.position(0, 4));\n\n //link row 5\n largeMaze.linkPillars(Maze.position(0, 4), Maze.position(1, 4));\n largeMaze.linkPillars(Maze.position(1, 4), Maze.position(2, 4));\n largeMaze.linkPillars(Maze.position(2, 4), Maze.position(3, 4));\n largeMaze.linkPillars(Maze.position(3, 4), Maze.position(4, 4));\n\n //set beginning and end\n largeMaze.setBegin(Maze.position(0, 0));\n largeMaze.setEnd(Maze.position(4, 4));\n shortestPath = MazeSolver.pStar(largeMaze, 25);\n\n assertEquals(\"<0, 0>\", shortestPath.get(0).getCoordinateString());\n assertEquals(\"<1, 0>\", shortestPath.get(1).getCoordinateString());\n assertEquals(\"<1, 1>\", shortestPath.get(2).getCoordinateString());\n assertEquals(\"<1, 2>\", shortestPath.get(3).getCoordinateString());\n assertEquals(\"<1, 3>\", shortestPath.get(4).getCoordinateString());\n assertEquals(\"<1, 4>\", shortestPath.get(5).getCoordinateString());\n assertEquals(\"<2, 4>\", shortestPath.get(6).getCoordinateString());\n assertEquals(\"<3, 4>\", shortestPath.get(7).getCoordinateString());\n assertEquals(\"<4, 4>\", shortestPath.get(8).getCoordinateString());\n\n assertEquals(9, shortestPath.size());\n\n } catch (Exception e) {\n fail(\"Unexpected exception was thrown while linking pillars.\");\n }\n }", "public static void main(String[] args) throws IOException {\n\t\t\n ArrayList<String> visited = new ArrayList<String>();\n\n\t\tString start = \"https://en.wikipedia.org/wiki/Java_(programming_language)\";\n String finish = \"https://en.wikipedia.org/wiki/Philosophy\";\n String url = start;\n\n for (int i = 0; i < 15; i++) {\n\n if (visited.contains(url)) {\n return;\n }\n else {\n visited.add(url); \n }\n\n Elements paragraphs = fetcher.fetchWikipedia(url);\n Element link = searchPage(paragraphs);\n\n if (link == null) {\n System.err.println(\"No links on this page...\");\n return;\n }\n\n url = link.attr(\"abs:href\");\n System.out.println(\"currently on: \" + url);\n \n if (url.equals(finish)) {\n System.out.println(\"found it!\");\n break;\n }\n }\n\t}", "public static void main(String[] args) throws IOException {\r\n\t\t\r\n // some example code to get you started\r\n\r\n\t\tString url = \"https://en.wikipedia.org/wiki/Java_(programming_language)\";\r\n\t\tElements paragraphs = wf.fetchWikipedia(url);\r\n\t\tString baseUrl = \"https://en.wikipedia.org\";\r\n\t\tString location = \"\";\r\n\t\tList<String> visited = new ArrayList<>();\r\n\t\tElement firstPara = paragraphs.get(0);\r\n\t\tboolean notFound = true;\r\n\t\tboolean first = false;\r\n\t\tint i = 0;\r\n\t\tIterable<Node> iter = new WikiNodeIterable(firstPara);\r\n\t\tvisited.add(url);\r\n\t\twhile (notFound && i < 7) {\r\n\t\t\tfor (Node node: iter) {\r\n\t\t\t\tif (node instanceof Element) {\r\n\t\t\t\t\tElement e2 = (Element) node;\r\n\t\t\t\t\tString e2txt = e2.text();\r\n\t\t\t\t\tElements e = e2.children();\r\n\t\t\t\t\tfor (Node n : e) {\r\n\t\t\t\t\t\tif (n instanceof Element) {\r\n\t\t\t\t\t\t\tElement e3 = (Element) n;\r\n\t\t\t\t\t\t\tif (!first) {\r\n\t\t\t\t\t\t\t\tif (e3.tag().toString().equals(\"a\")) {\r\n\t\t\t\t\t\t\t\t\tif (e2txt.indexOf(\"(\") < e2txt.indexOf(e3.text()) && e2txt.indexOf(\")\") > e2txt.indexOf(e3.text())) {\r\n\r\n\t\t\t\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\t\t\t\tfirst = true;\r\n\t\t\t\t\t\t\t\t\t\tString str = e3.toString();\r\n\t\t\t\t\t\t\t\t\t\tString[] arr = str.split(\" \");\r\n\t\t\t\t\t\t\t\t\t\tlocation = arr[1].substring(6, arr[1].length() - 1);\r\n\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t\tif (!first) {\r\n\t\t\t\t\t\tSystem.out.println(\"No links found, exiting.\");\r\n\t\t\t\t\t\treturn;\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tparagraphs = wf.fetchWikipedia(baseUrl + location);\r\n\t\t\titer = new WikiNodeIterable(paragraphs.get(0));\r\n\t\t\tfirst = false;\r\n\t\t\tif (visited.contains(baseUrl + location)) {\r\n\t\t\t\tSystem.out.println(\"Links go in a loop, exiting\");\r\n\t\t\t\treturn;\r\n\t\t\t}\r\n\t\t\tvisited.add(baseUrl + location);\r\n\t\t\ti++;\r\n\t\t\tif (location.substring(6).equals(\"Philosophy\")) {\r\n\t\t\t\tnotFound = false;\r\n\t\t\t\tSystem.out.println(\"Philosophy found in \" + i + \" jumps\");\r\n\t\t\t}\r\n }\r\n System.out.println(visited);\r\n\t}", "public void draw() {\t\n \t\t// Draw the centre of the maze\n \t\tPoint2D.Double centrePoint = GetCentrePoint();\n \t\t// if size is a factor of 10, this will be a multiple of 2\n \t\tint centreSize = getCentreSize();\n \t\tStdDraw.setPenColor(StdDraw.BOOK_LIGHT_BLUE);\n \t\tStdDraw.filledSquare(centrePoint.getX(), centrePoint.getY(), (centreSize / 2)-0.05);\n \t\t//Draw all the power switches\n \t\tdrawPowerSwitch(switches[0].x, switches[0].y);\n \t\tdrawPowerSwitch(switches[1].x, switches[1].y);\n \t\tdrawPowerSwitch(switches[2].x, switches[2].y);\n \t\tdrawPowerSwitch(switches[3].x, switches[3].y);\n \t\t\n \t\t\n \t\t// Get the data from the maze\n \t\tboolean south[][] = getSouth();\n \t\tboolean north[][] = getNorth();\n \t\tboolean east[][] = getEast();\n \t\tboolean west[][] = getWest();\n \t\tboolean sensor[][] = ms.getMotionSensors();\n \n \t\t//Draw the maze and motion sensors\n \t\tfor (int x = 1; x <= size; x++) {\n \t\t\tfor (int y = 1; y <= size; y++) {\n \t\t\t\tStdDraw.setPenColor(StdDraw.BLACK);\n \t\t\t\tif (south[x][y]) {\n \t\t\t\t\tStdDraw.line(x, y, x + 1, y);\n \t\t\t\t}\n \t\t\t\tif (north[x][y]) {\n \t\t\t\t\tStdDraw.line(x, y + 1, x + 1, y + 1);\n \t\t\t\t}\n \t\t\t\tif (west[x][y]) {\n \t\t\t\t\tStdDraw.line(x, y, x, y + 1);\n \t\t\t\t}\n \t\t\t\tif (east[x][y]) {\n \t\t\t\t\tStdDraw.line(x + 1, y, x + 1, y + 1);\n \t\t\t\t}\n \t\t\t\tif (sensor[x][y]) {\n \t\t\t\t\tStdDraw.setPenColor(StdDraw.MAGENTA);\n \t\t\t\t\tStdDraw.filledTriangle(x + 0.5, y + 0.4, 0.5);\n \t\t\t\t}\n \t\t\t}\n \t\t}\n \t}", "public NewcommunityPage submitKo() {\n driver.findElement(nextLocator).click();\r\n\r\n // Return a new page object representing the destination. Should the login page ever\r\n // go somewhere else (for example, a legal disclaimer) then changing the method signature\r\n // for this method will mean that all tests that rely on this behaviour won't compile.\r\n return new NewcommunityPage(driver); \r\n\t}", "HtmlPage clickLink();", "@Override\n\tpublic void run() {\n\t\tfinal MapOptions options = MapOptions.create(); //Dhmiourgeia antikeimenou me Factory (xwris constructor)\n\t\t//Default na fenetai xarths apo doruforo (Hybrid)\n\t\toptions.setMapTypeId(MapTypeId.HYBRID);\n\t\toptions.setZoom(Map.GOOGLE_MAPS_ZOOM);\n\t\t//Dhmiourgei ton xarth me tis panw ruthmiseis kai to vazei sto mapDiv\n\t\tgoogleMap = GoogleMap.create(map, options);\n\t\t//Otan o xrhsths kanei click epanw ston xarth\n\t\tfinal MarkerOptions markerOptions = MarkerOptions.create();\n\t\tmarkerOptions.setMap(googleMap);\n\t\tmarker = Marker.create(markerOptions);\n\t\t//psaxnei antikeimeno gia na kentrarei o xarths kai na fortwsei h forma\n\t\tfinal String id = Window.Location.getParameter(\"id\");\n\t\tif (id == null) {\n\t\t\tWindow.alert(MOBILE_MEDIA_SHARE_MESSAGES.errorRetrievingMedium(\n\t\t\t\t\tMOBILE_MEDIA_SHARE_CONSTANTS.noMediaIdSpecified()));\n\t\t\t//redirect sto map\n\t\t\tWindow.Location.assign(MOBILE_MEDIA_SHARE_URLS.map(GWT.getHostPageBaseURL(), URL.encodeQueryString(\n\t\t\t\t\t//me to antistoixo locale \n\t\t\t\t\tLocaleInfo.getCurrentLocale().getLocaleName())));\n\t\t} else {\n\t\t\t//Klhsh tou MEDIA_SERVICE gia na paroume to antikeimeno (metadedomena)\n\t\t\tMEDIA_SERVICE.getMedia(id, new AsyncCallback<Media>() {\n\t\t\t\t@Override\n\t\t\t\tpublic void onFailure(final Throwable throwable) {\n\t\t\t\t\tWindow.alert(MOBILE_MEDIA_SHARE_MESSAGES.errorRetrievingMedium(throwable.getMessage()));\n\t\t\t\t\t//redirect sto map\n\t\t\t\t\tWindow.Location.assign(MOBILE_MEDIA_SHARE_URLS.map(GWT.getHostPageBaseURL(), URL.encodeQueryString(\n\t\t\t\t\t\t\t//me to antistoixo locale \n\t\t\t\t\t\t\tLocaleInfo.getCurrentLocale().getLocaleName())));\n\t\t\t\t}\n\n\t\t\t\t@Override\n\t\t\t\tpublic void onSuccess(final Media media) {\n\t\t\t\t\tif (media == null) {\n\t\t\t\t\t\tWindow.alert(MOBILE_MEDIA_SHARE_MESSAGES.errorViewingMedia(\n\t\t\t\t\t\t\t\tMOBILE_MEDIA_SHARE_CONSTANTS.mediaNotFound()));\n\t\t\t\t\t\t//redirect sto map\n\t\t\t\t\t\tWindow.Location.assign(MOBILE_MEDIA_SHARE_URLS.map(GWT.getHostPageBaseURL(), URL.encodeQueryString(\n\t\t\t\t\t\t\t\t//me to antistoixo locale \n\t\t\t\t\t\t\t\tLocaleInfo.getCurrentLocale().getLocaleName())));\n\t\t\t\t\t//o xrhsths vlepei to media giati einai diko tou 'h einai diaxeirisths 'h to media einai public\n\t\t\t\t\t} else if (currentUser.equals(media.getUser()) || (currentUser.getStatus() == UserStatus.ADMIN) || media.isPublic()) {\n\t\t\t\t\t\t//Gemisma tou div content analoga ton tupo\n\t\t\t\t\t\tswitch (MediaType.getMediaType(media.getType())) {\n\t\t\t\t\t\tcase APPLICATION:\n\t\t\t\t\t\t\tfinal ImageElement application = Document.get().createImageElement();\n\t\t\t\t\t\t\tapplication.setSrc(MOBILE_MEDIA_SHARE_URLS.selectedImage(GWT.getHostPageBaseURL(), MediaType.APPLICATION.name().toLowerCase()));\n\t\t\t\t\t\t\tapplication.setAlt(media.getTitle());\n\t\t\t\t\t\t\tapplication.getStyle().setWidth(CONTENT_WIDTH, Style.Unit.PX);\n\t\t\t\t\t\t\tapplication.getStyle().setHeight(CONTENT_HEIGHT, Style.Unit.PX);\n\t\t\t\t\t\t\tcontent.appendChild(application);\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\tcase AUDIO:\n\t\t\t\t\t\t\tfinal AudioElement audio = Document.get().createAudioElement();\n\t\t\t\t\t\t\taudio.setControls(true);\n\t\t\t\t\t\t\taudio.setPreload(AudioElement.PRELOAD_AUTO);\n\t\t\t\t\t\t\t//url sto opoio vriskontai ta dedomena tou antikeimenou. Ta travaei o browser\n\t\t\t\t\t\t\t//me xrhsh tou media servlet\n\t\t\t\t\t\t\tfinal SourceElement audioSource = Document.get().createSourceElement();\n\t\t\t\t\t\t\taudioSource.setSrc(MOBILE_MEDIA_SHARE_URLS.download(GWT.getHostPageBaseURL(), media.getId()));\n\t\t\t\t\t\t\taudioSource.setType(media.getType());\n\t\t\t\t\t\t\taudio.appendChild(audioSource);\n\t\t\t\t\t\t\tcontent.appendChild(audio);\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\tcase IMAGE:\n\t\t\t\t\t\t\tfinal ImageElement image = Document.get().createImageElement();\n\t\t\t\t\t\t\timage.setSrc(MOBILE_MEDIA_SHARE_URLS.download(GWT.getHostPageBaseURL(), media.getId()));\n\t\t\t\t\t\t\timage.setAlt(media.getTitle());\n\t\t\t\t\t\t\timage.getStyle().setWidth(CONTENT_WIDTH, Style.Unit.PX);\n\t\t\t\t\t\t\timage.getStyle().setHeight(CONTENT_HEIGHT, Style.Unit.PX);\n\t\t\t\t\t\t\tcontent.appendChild(image);\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\tcase TEXT:\n\t\t\t\t\t\t\t/**\n\t\t\t\t\t\t\t * @see http://www.gwtproject.org/doc/latest/tutorial/JSON.html#http\n\t\t\t\t\t\t\t */\n\t\t\t\t\t\t\tfinal ParagraphElement text = Document.get().createPElement();\n\t\t\t\t\t\t\ttext.getStyle().setWidth(CONTENT_WIDTH, Style.Unit.PX);\n\t\t\t\t\t\t\ttext.getStyle().setHeight(CONTENT_HEIGHT, Style.Unit.PX);\n\t\t\t\t\t\t\t//scrollbar gia to text\n\t\t\t\t\t\t\ttext.getStyle().setOverflow(Style.Overflow.SCROLL);\n\t\t\t\t\t\t\tcontent.appendChild(text);\n\t\t\t\t\t\t\t//Zhtaei asugxrona to periexomeno enos url\n\t\t\t\t\t\t\tfinal RequestBuilder requestBuilder = new RequestBuilder(RequestBuilder.GET,\n\t\t\t\t\t\t\t\t\tMOBILE_MEDIA_SHARE_URLS.download(GWT.getHostPageBaseURL(), media.getId()));\n\t\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\t\trequestBuilder.sendRequest(null, new RequestCallback() {\n\t\t\t\t\t\t\t\t\t@Override\n\t\t\t\t\t\t\t\t\tpublic void onError(final Request request, final Throwable throwable) {\n\t\t\t\t\t\t\t\t\t\tWindow.alert(MOBILE_MEDIA_SHARE_MESSAGES.errorViewingMedia(throwable.getMessage()));\n\t\t\t\t\t\t\t\t\t\t//redirect sto map\n\t\t\t\t\t\t\t\t\t\tWindow.Location.assign(MOBILE_MEDIA_SHARE_URLS.map(GWT.getHostPageBaseURL(), URL.encodeQueryString(\n\t\t\t\t\t\t\t\t\t\t\t\t//me to antistoixo locale \n\t\t\t\t\t\t\t\t\t\t\t\tLocaleInfo.getCurrentLocale().getLocaleName())));\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t@Override\n\t\t\t\t\t\t\t\t\tpublic void onResponseReceived(final Request request, final Response response) {\n\t\t\t\t\t\t\t\t\t\tif (response.getStatusCode() == Response.SC_OK) {\n\t\t\t\t\t\t\t\t\t\t\t//selida pou fernei to response se me to keimeno pros anazhthsh\n\t\t\t\t\t\t\t\t\t\t\ttext.setInnerText(response.getText());\n\t\t\t\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t\t\t\t//selida pou efere to response se periptwsh sfalmatos (getText())\n\t\t\t\t\t\t\t\t\t\t\tWindow.alert(MOBILE_MEDIA_SHARE_MESSAGES.errorViewingMedia(response.getText()));\n\t\t\t\t\t\t\t\t\t\t\t//redirect sto map\n\t\t\t\t\t\t\t\t\t\t\tWindow.Location.assign(MOBILE_MEDIA_SHARE_URLS.map(GWT.getHostPageBaseURL(), URL.encodeQueryString(\n\t\t\t\t\t\t\t\t\t\t\t\t\t//me to antistoixo locale \n\t\t\t\t\t\t\t\t\t\t\t\t\tLocaleInfo.getCurrentLocale().getLocaleName())));\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t});\n\t\t\t\t\t\t\t} catch (final RequestException e) {\n\t\t\t\t\t\t\t\tWindow.alert(MOBILE_MEDIA_SHARE_MESSAGES.errorViewingMedia(e.getMessage()));\n\t\t\t\t\t\t\t\t//redirect sto map\n\t\t\t\t\t\t\t\tWindow.Location.assign(MOBILE_MEDIA_SHARE_URLS.map(GWT.getHostPageBaseURL(), URL.encodeQueryString(\n\t\t\t\t\t\t\t\t\t\t//me to antistoixo locale \n\t\t\t\t\t\t\t\t\t\tLocaleInfo.getCurrentLocale().getLocaleName())));\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\tcase VIDEO:\n\t\t\t\t\t\t\tfinal VideoElement video = Document.get().createVideoElement();\n\t\t\t\t\t\t\tvideo.setPoster(MOBILE_MEDIA_SHARE_URLS.selectedImage(GWT.getHostPageBaseURL(), MediaType.VIDEO.name().toLowerCase()));\n\t\t\t\t\t\t\tvideo.setControls(true);\n\t\t\t\t\t\t\tvideo.setPreload(VideoElement.PRELOAD_AUTO);\n\t\t\t\t\t\t\tvideo.setWidth(Double.valueOf(CONTENT_WIDTH).intValue());\n\t\t\t\t\t\t\tvideo.setHeight(Double.valueOf(CONTENT_HEIGHT).intValue());\n\t\t\t\t\t\t\tfinal SourceElement videoSource = Document.get().createSourceElement();\n\t\t\t\t\t\t\tvideoSource.setSrc(MOBILE_MEDIA_SHARE_URLS.download(GWT.getHostPageBaseURL(), media.getId()));\n\t\t\t\t\t\t\tvideoSource.setType(media.getType());\n\t\t\t\t\t\t\tvideo.appendChild(videoSource);\n\t\t\t\t\t\t\tcontent.appendChild(video);\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t}\n\t\t\t\t\t\t//O current user peirazei to media an einai diko tou 'h an einai diaxeirisths\n\t\t\t\t\t\tif (currentUser.equals(media.getUser()) || (currentUser.getStatus() == UserStatus.ADMIN)) {\n\t\t\t\t\t\t\tedit.setEnabled(true);\n\t\t\t\t\t\t\tdelete.setEnabled(true);\n\t\t\t\t\t\t}\n\t\t\t\t\t\ttitle.setText(media.getTitle());\n\t\t\t\t\t\t//prosthikh html (keimeno kai eikona) stin selida\n\t\t\t\t\t\ttype.setHTML(List.TYPE.getValue(media));\n\t\t\t\t\t\t//analoga ton tupo dialegetai to katallhlo eikonidio\n\t\t\t\t\t\tmarker.setIcon(MarkerImage.create(MOBILE_MEDIA_SHARE_URLS.selectedImage(GWT.getHostPageBaseURL(), \n\t\t\t\t\t\t\t\tMediaType.getMediaType(media.getType()).name().toLowerCase())));\n\t\t\t\t\t\tsize.setText(List.SIZE.getValue(media));\n\t\t\t\t\t\tduration.setText(List.DURATION.getValue(media));\n\t\t\t\t\t\tuser.setText(List.USER.getValue(media));\n\t\t\t\t\t\tcreated.setText(List.CREATED.getValue(media));\n\t\t\t\t\t\tedited.setText(List.EDITED.getValue(media));\n\t\t\t\t\t\tpublik.setHTML(List.PUBLIC.getValue(media));\n\t\t\t\t\t\tlatitudeLongitude.setText(\"(\" + List.LATITUDE.getValue(media) + \", \" + List.LONGITUDE.getValue(media) + \")\");\n\t\t\t\t\t\tfinal LatLng latLng = LatLng.create(media.getLatitude().doubleValue(), media.getLongitude().doubleValue());\n\t\t\t\t\t\tgoogleMap.setCenter(latLng);\n\t\t\t\t\t\tmarker.setPosition(latLng);\n\t\t\t\t\t} else { //Vrethike to media alla einai private allounou\n\t\t\t\t\t\tWindow.alert(MOBILE_MEDIA_SHARE_MESSAGES.errorViewingMedia(\n\t\t\t\t\t\t\t\tMOBILE_MEDIA_SHARE_CONSTANTS.accessDenied()));\n\t\t\t\t\t\t//redirect sto map\n\t\t\t\t\t\tWindow.Location.assign(MOBILE_MEDIA_SHARE_URLS.map(GWT.getHostPageBaseURL(), \n\t\t\t\t\t\t\t\tURL.encodeQueryString(LocaleInfo.getCurrentLocale().getLocaleName())));\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t});\n\t\t}\n\t}", "protected void jumpPage() {\n\t\tAlertDialog.Builder builder = new AlertDialog.Builder(this);\n\t\tbuilder.setTitle(getString(R.string.txtjump));\n\t\tfinal SeekBar seek = new SeekBar(this);\n\t\tseek.setOnSeekBarChangeListener(this);\n\t\tseek.setMax(100);\n\t\tint p = (int) (BookPageFactory.sPercent * 100);\n\t\tseek.setProgress(p);\n\t\tbuilder.setView(seek);\n\t\tbuilder.setPositiveButton(getString(R.string.yes),\n\t\t\t\tnew OnClickListener() {\n\t\t\t\t\tpublic void onClick(DialogInterface dialog, int which) {\n\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\tint per = seek.getProgress();\n\t\t\t\t\t\t\tif (per >= 0.0 && per <= 100.0) {\n\t\t\t\t\t\t\t\tmPagefactory.jumpPage(per);\n\t\t\t\t\t\t\t\tdialog.dismiss();\n\t\t\t\t\t\t\t\tmPagefactory.onDraw(mCurPageCanvas);\n\t\t\t\t\t\t\t\tmPageWidget.setBitmaps(mCurPageBitmap,\n\t\t\t\t\t\t\t\t\t\tmNextPageBitmap);\n\t\t\t\t\t\t\t\tmPageWidget.startAnimation(1000);\n\t\t\t\t\t\t\t\tToast.makeText(ArchermindReaderActivity.this,\n\t\t\t\t\t\t\t\t\t\tgetString(R.string.successjump),\n\t\t\t\t\t\t\t\t\t\tToast.LENGTH_SHORT).show();\n\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\tToast.makeText(ArchermindReaderActivity.this,\n\t\t\t\t\t\t\t\t\t\tgetString(R.string.hintjunp),\n\t\t\t\t\t\t\t\t\t\tToast.LENGTH_SHORT).show();\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t} catch (Exception e) {\n\t\t\t\t\t\t\te.printStackTrace();\n\t\t\t\t\t\t\tToast.makeText(ArchermindReaderActivity.this,\n\t\t\t\t\t\t\t\t\tgetString(R.string.hintjunp),\n\t\t\t\t\t\t\t\t\tToast.LENGTH_SHORT).show();\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t});\n\t\tbuilder.setNegativeButton(getString(R.string.no),\n\t\t\t\tnew OnClickListener() {\n\t\t\t\t\t// @Override\n\t\t\t\t\tpublic void onClick(DialogInterface dialog, int which) {\n\t\t\t\t\t\tdialog.dismiss();\n\t\t\t\t\t}\n\t\t\t\t});\n\t\tbuilder.show();\n\t}", "private void generateMaze(int x, int y) {generateMaze(getCell(x, y)); // gerar a partir da celula\r\n }", "@Override\r\n public void run() {\n ax.browserPane.setTitleAt(0,ax.browser.getTitle());\r\n String stringToken1 = null; \r\n try {\r\n stringToken1 = (\"<Navigate Home>::\" + getHome());\r\n } catch (IOException ex) {\r\n Logger.getLogger(AxBrowser.class.getName()).log(Level.SEVERE, null, ex);\r\n }\r\n ax.consoleTextArea.setText(stringToken1);\r\n //Put the current html address in the addressbar\r\n ax.addressBar.setText(ax.browser.getCurrentLocation());\r\n \r\n }", "@Test\n public void testAttemptLinks() {\n try {\n //link row 1\n largeMaze.linkPillars(Maze.position(0, 0), Maze.position(1, 0));\n largeMaze.linkPillars(Maze.position(1, 0), Maze.position(2, 0));\n largeMaze.linkPillars(Maze.position(2, 0), Maze.position(3, 0));\n largeMaze.linkPillars(Maze.position(3, 0), Maze.position(4, 0));\n largeMaze.linkPillars(Maze.position(1, 0), Maze.position(1, 1));\n\n //link row 2\n largeMaze.linkPillars(Maze.position(1, 1), Maze.position(2, 1));\n largeMaze.linkPillars(Maze.position(1, 1), Maze.position(1, 2));\n largeMaze.linkPillars(Maze.position(3, 1), Maze.position(4, 1));\n\n //link row 3\n largeMaze.linkPillars(Maze.position(1, 2), Maze.position(1, 3));\n largeMaze.linkPillars(Maze.position(1, 2), Maze.position(2, 2));\n\n //link row 4\n largeMaze.linkPillars(Maze.position(1, 3), Maze.position(0, 3));\n largeMaze.linkPillars(Maze.position(1, 3), Maze.position(2, 3));\n largeMaze.linkPillars(Maze.position(3, 3), Maze.position(4, 3));\n largeMaze.linkPillars(Maze.position(0, 3), Maze.position(0, 4));\n\n //link row 5\n largeMaze.linkPillars(Maze.position(0, 4), Maze.position(1, 4));\n largeMaze.linkPillars(Maze.position(1, 4), Maze.position(2, 4));\n largeMaze.linkPillars(Maze.position(2, 4), Maze.position(3, 4));\n largeMaze.linkPillars(Maze.position(3, 4), Maze.position(4, 4));\n\n //set beginning and end\n largeMaze.setBegin(Maze.position(0, 0));\n largeMaze.setEnd(Maze.position(4, 4));\n } catch (Exception e) {\n fail(\"Unexpected exception was thrown while linking pillars.\");\n }\n\n //invoke attemptLinks\n try {\n testPillars = largeMaze.getPillars();\n testPillar = testPillars.get(Maze.position(3,3));\n testPillar.setPlanksLeft(1);\n attemptLinks.invoke(solver.getClass(), testPillar, largeMaze.getEnd(), testESet, testNQueue);\n } catch (Exception e) {\n fail(\"Unexpectedly could not invoke attemptLinks().\");\n }\n\n assertEquals(3, testESet.size());\n assertEquals(3, testNQueue.size());\n }", "public void goTo() { // Navigate to home page\n\t\tBrowser.goTo(url);\n\t}", "@Override\n public void generateMaze() {\n //Opens up the entrance to the maze\n MazeCell current=maze[0][0];\n current.openWall(Directions.North.getBValue());\n\n //A list of sets. The sets contain the cells which can be accessed from one another.\n List<List<MazeCell>> sets=new LinkedList<>();\n //All the walls in the maze\n List<InnerWall> wallList=new LinkedList<>();\n //Initially create a set for each cell\n //Also add the walls to the list\n for(int row=0;row< maze.length;row++){\n for(int column=0;column<maze[0].length;column++){\n sets.add(Arrays.asList(maze[row][column]));\n List<MazeCell> valid=returnValidNeighbours(maze[row][column].getX(), maze[row][column].getY());\n for(int i=0;i<valid.size();i++){\n wallList.add(new InnerWall(maze[row][column], valid.get(i)));\n }\n }\n }\n //Now we have as many wall sets as maze cells, each containing four walls.\n\n Random rnd=new Random();\n int idx;\n //Loops until only one set remains, meaning all cells can be reached from any cell\n while(sets.size()!=1){\n //Select a random wall\n idx=wallList.size()>1 ? rnd.nextInt(wallList.size()) : 0;\n InnerWall w= wallList.get(idx);\n //The two neighbouring cells\n MazeCell c1=w.parent;\n MazeCell c2=w.connected;\n\n //Their relative directions\n Directions d=Directions.getOffsetDirection(c1.getX(),c1.getY(),c2.getX(),c2.getY());\n\n //Check if the two cells are already connected\n if((c1.getOpenWalls() % d.getBValue())==d.getBValue())\n continue;\n\n //Two new sets\n List<MazeCell> set1=null;\n List<MazeCell> set2=null;\n //We get the sets\n boolean b1,b2;\n b1=b2=false;\n //We loop through the set of sets looking for the two which contains the two cells\n for(List<MazeCell> list : sets) {\n if(list.contains(c1)){\n set1=list;\n b1=true;\n }\n if(list.contains(c2)) {\n set2=list;\n b2=true;\n }\n if(b1 && b2)\n break;\n }\n //If the two sets are disjoint then we join them together\n if(set1!=null && set2!=null && !set1.equals(set2)){\n\n //We connect the two cells\n c1.openWall(d.getBValue());\n c2.openOppositeWall(d.getBValue());\n\n if(sleepDrawTime>0) {\n try {\n Thread.sleep(sleepDrawTime);\n mf.repaint();\n } catch (InterruptedException e) {\n e.printStackTrace();\n }\n }\n\n //Join the two sets\n List<MazeCell> temp= Stream.concat(set1.stream(), set2.stream())\n .collect(Collectors.toList());\n sets.remove(set2);\n sets.remove(set1);\n sets.add(temp);\n }\n //We remove the wall from the list\n wallList.remove(w);\n //As the walls are double-sided, two cells share a wall, we have to find the opposite cell's wall in the list\n InnerWall oppositeWall=wallList.stream().filter((x)->x.parent==w.connected).findFirst().orElse(null);\n wallList.remove(oppositeWall);\n\n\n }\n //We open an exit in the last row.\n maze[maze.length-1][rnd.nextInt(maze[0].length)].openWall(Directions.South.getBValue());\n\n }", "public void bestInfo(ActionEvent actionEvent)\n {\n try {\n Desktop.getDesktop().browse(new URL(\"https://en.wikipedia.org/wiki/Best-first_search\").toURI());\n } catch (IOException e) {\n e.printStackTrace();\n } catch (URISyntaxException e)\n {\n e.printStackTrace();\n }\n }", "@Override\n\tpublic void actionPerformed (ActionEvent e)\n\t{\n\t\n\t\ttry\n\t\t{\n\t\t\t//Browser.init();\n\t\t\t//Browser.displayURL(mUrl);\n\t\t\tDesktop.getDesktop().browse(new URI(mUrl));\n\n\t\t}\n\t\tcatch (IOException exc)\n\t\t{\n\t\t\texc.printStackTrace();\n\t\t} catch (URISyntaxException e1) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te1.printStackTrace();\n\t\t}\n\t\n\t\n\t}", "protected abstract void draw(Maze maze);", "public void ClickSearchOnline() throws InterruptedException {\n\n searchOnline.click();\n //sameOriginAndDestination();\n\n\n }", "private void constructMaze() {\r\n\t\t\r\n\t\t// manual code to construct a sample maze going cell by cell\r\n\t\tgridSheet[0][0].breakSouthWall();\r\n\t\tgridSheet[1][0].breakEastWall();\r\n\t\tgridSheet[1][1].breakSouthWall();\r\n\t\tgridSheet[2][1].breakWestWall();\r\n\t\tgridSheet[2][0].breakSouthWall();\r\n\t\tgridSheet[2][1].breakEastWall();\r\n\t\tgridSheet[2][2].breakSouthWall();\r\n\t\tgridSheet[3][2].breakSouthWall();\r\n\t\tgridSheet[4][2].breakWestWall();\r\n\t\tgridSheet[4][1].breakNorthWall();\r\n\t\tgridSheet[4][1].breakWestWall();\r\n\t\tgridSheet[2][2].breakEastWall();\r\n\t\tgridSheet[2][3].breakNorthWall();\r\n\t\tgridSheet[1][3].breakWestWall();\r\n\t\tgridSheet[1][3].breakNorthWall();\r\n\t\tgridSheet[0][3].breakWestWall();\r\n\t\tgridSheet[0][2].breakWestWall();\r\n\t\tgridSheet[0][3].breakEastWall();\r\n\t\tgridSheet[0][4].breakSouthWall();\r\n\t\tgridSheet[1][4].breakSouthWall();\r\n\t\tgridSheet[2][4].breakSouthWall();\r\n\t\tgridSheet[3][4].breakWestWall();\r\n\t\tgridSheet[3][4].breakSouthWall();\r\n\t\tgridSheet[4][4].breakWestWall();\r\n\t\t\r\n\t}", "public interface View {\r\n\t/**\r\n\t * starting the user interface\r\n\t */\r\n\tpublic void start();\r\n\t/**\r\n\t * returning the command that the user entered\r\n\t * @return string with the command that user entered\r\n\t */\r\n\tpublic String getUserCommand();\r\n\t/**\r\n\t * display the error in the commands that the client wrote\r\n\t * @param message string telling what is the error\r\n\t */\r\n\tpublic void showError(String error);\r\n\t/**\r\n\t * display the outcome of command:dir <path>\r\n\t * displaying the files and directories of the specified path\r\n\t * @param dirArray string's array with the names of files and directories in the specified path\r\n\t */\r\n\tpublic void showDirPath(String[] list);\r\n\t/**\r\n\t * display the message that the maze is ready\r\n\t * @param message string with the massege:maze is ready\r\n\t */\r\n\tpublic void showGenerate3dMaze(String message);\r\n\t/**\r\n\t * displaying the specified maze\r\n\t * @param byteArr byte array representing the maze\r\n\t */\r\n\tpublic void showDisplayName(byte[] byteArr);\r\n\t/**\r\n\t * displaying the cross section which the client asked for\r\n\t * @param crossSection 2d array with the cross section asked\r\n\t */\r\n\tpublic void showDisplayCrossSectionBy(int[][] crossSection);\r\n\t/**\r\n\t * displaying the string:the maze has been saved\r\n\t * @param str string with the word:maze has been saved\r\n\t */\r\n\tpublic void showSaveMaze(String message);\r\n\t/**\r\n\t * displaying the string:the maze has been loaded\r\n\t * @param str string with the word:maze has been loaded\r\n\t */\r\n\tpublic void showLoadMaze(String message);\r\n\t/**\r\n\t * display the maze size in memory(bytes)\r\n\t * @param size the size of the maze in bytes\r\n\t */\r\n\tpublic void showMazeSize(int size);\r\n\t/**\r\n\t * display the maze size in file(bytes)\r\n\t * @param length the size of the maze in file\r\n\t */\r\n\tpublic void showFileSize(long size);\r\n\t/**\r\n\t * displaying the string:solution for maze is ready\r\n\t * @param message string with the words:solution for maze is ready\r\n\t */\r\n\tpublic void showSolveMaze(String message);\r\n\t/**\r\n\t * displaying the solution of the specified maze\r\n\t * @param sol the solution of the maze\r\n\t */\r\n\tpublic void showDisplaySolution(Solution<Position> solution);\r\n\t/**\r\n\t * a command that only gui has:solve from <name> <algorithm> <x> <y> <z>\r\n\t * showing the outcome of this command,in other wards display the solution from specific point in the maze\r\n\t * @param message message that the solution is ready\r\n\t */\r\n\tpublic void showSolveFrom(String message);\r\n\t/**\r\n\t * a command that only gui has:display half solution <name>\r\n\t * displaying a solution for the specified maze\r\n\t * @param solution solution that was calculated in the model\r\n\t */\r\n\tpublic void showDisplayHalfSolution(Solution<Position> solution);\r\n\t/**\r\n\t * display a message about some error\r\n\t */\r\n\tpublic void showExit();\r\n\t/**\r\n\t * displaying help,which shows the commands the client can write\r\n\t */\r\n\tpublic void showHelp();\r\n\t/**\r\n\t * a command that only gui have: load xml\r\n\t * @param p properties object that was loaded by the xml file\r\n\t */\r\n\tpublic void showLoadXML(Properties p);\r\n}", "String printMaze(boolean showBarriers);", "public void act(){\n if(mainMenu!=null){\n if((Greenfoot.mouseClicked(callMenu.getCallMenu()))) {\n Greenfoot.setWorld(mainMenu); \n }\n }\n if(pauseMenu!=null){\n if((Greenfoot.mouseClicked(callMenu.getCallMenu()))) {\n Greenfoot.setWorld(pauseMenu); \n }\n }\n if(choiceMenu!=null){\n if((Greenfoot.mouseClicked(callMenu.getCallMenu()))) {\n Greenfoot.setWorld(choiceMenu); \n }\n }\n if(actual == 1){\n prePage.setImage(new GreenfootImage(\"\", 0, null, null));\n nextPage.setImagine(\"sipka1\");\n if((Greenfoot.mouseClicked(nextPage.getLabel()))) {\n setBackground(\"images/manual2.png\");\n actual = 2;\n }\n }\n else if(actual == 2){\n nextPage.setImagine(\"sipka1\");\n prePage.setImagine(\"sipka0\");\n if((Greenfoot.mouseClicked(nextPage.getLabel()))) {\n setBackground(\"images/manual3.png\");\n actual = 3;\n }\n if((Greenfoot.mouseClicked(prePage.getLabel()))) {\n setBackground(\"images/manual1.png\");\n actual = 1;\n }\n }\n else if(actual == 3){\n nextPage.setImagine(\"sipka1\");\n if((Greenfoot.mouseClicked(nextPage.getLabel()))) {\n setBackground(\"images/manual4.png\");\n actual = 4;\n }\n if((Greenfoot.mouseClicked(prePage.getLabel()))) {\n setBackground(\"images/manual2.png\");\n actual = 2;\n }\n }\n else if(actual == 4){\n nextPage.setImagine(\"sipka1\");\n if((Greenfoot.mouseClicked(nextPage.getLabel()))) {\n setBackground(\"images/manual5.png\");\n actual = 5;\n }\n if((Greenfoot.mouseClicked(prePage.getLabel()))) {\n setBackground(\"images/manual3.png\");\n actual = 3;\n }\n }\n else if(actual == 5){\n nextPage.setImage(new GreenfootImage(\"\", 0, null, null));\n if((Greenfoot.mouseClicked(prePage.getLabel()))) {\n setBackground(\"images/manual4.png\");\n actual = 4;\n }\n }\n }", "public void proceedToLetsGo() {\n\t\tBrowser.click(\"xpath=.//*[@id='DisplayNavigatorBrokerLandingPage']/div/div/div/div/div/div/div/div/div[5]/a/img\");\n\t}", "public void printMiniMap() \n { \n /* this.miniMapFrame(); */\n }", "private static void returnDoMove(String playerName, int kord1,int kord2,HttpServletResponse response, String url) throws IOException {\n GameOptions game = GamesSingleton.games.get(url);\n game.MakeStep(playerName,kord1,kord2);\n response.sendRedirect(url);\n\n }", "@Override\r\n\tpublic void generateMaze(Maze maze) {\n\t\tif (maze.type == 1) {\r\n\t\t\t// Normal Maze\r\n\t\t\tcreateNodesNormal(maze);\r\n\t\t} else {\r\n\t\t\t// Tunnel Maze\r\n\t\t\tcreateNodesTunnel(maze);\r\n\t\t}\r\n\r\n\t\t// create a new edge for each connected cells\r\n\t\tcreateEdge(maze);\r\n\r\n\t\t// loop through all the listed edges in random order and determine if the\r\n\t\t// cell is already connected or not, if not create a new connection.\r\n\t\twhile (!edge.isEmpty()) {\r\n\t\t\tRandom randomObj = new Random();\r\n\t\t\tx = randomObj.nextInt(edge.size());\r\n\t\t\tj = edge.get(x).getTargetDirection();\r\n\t\t\tHashMapConnectedNodes from = null;\r\n\t\t\tHashMapConnectedNodes to = null;\r\n\t\t\tHashMapConnectedNodes obj = new HashMapConnectedNodes();\r\n\t\t\tHashMapConnectedNodes toSet = null;\r\n\t\t\tboolean loop = true;\r\n\t\t\t// validateConnection method returns true if a connection is found\r\n\t\t\tstatus = validateConnection(edge.get(x).getNodeFrom(), edge.get(x).getNodeTo());\r\n\t\t\tif (status == false) {\r\n\t\t\t\t// Calls addConnectedEdge method and add to arryConnectedEdges for both of the\r\n\t\t\t\t// nodes\r\n\t\t\t\taddConnectedEdge();\r\n\r\n\t\t\t\t// Search hshMConnectedNodes for the current node to the target node\r\n\t\t\t\tfor (int counter = 0; counter < hshMConnectedNodes.size(); counter++) {\r\n\t\t\t\t\tif (hshMConnectedNodes.get(counter).searchNode(edge.get(x).getNodeFrom()))\r\n\t\t\t\t\t\tfrom = hshMConnectedNodes.get(counter);\r\n\t\t\t\t\tif (hshMConnectedNodes.get(counter).searchNode(edge.get(x).getNodeTo()))\r\n\t\t\t\t\t\tto = hshMConnectedNodes.get(counter);\r\n\t\t\t\t}\r\n\t\t\t\t// If both don't have any connection, create a new hshMConnectedNodes and add\r\n\t\t\t\t// both\r\n\t\t\t\t// node to the list.\r\n\r\n\t\t\t\tif (from == null && to == null) {\r\n\t\t\t\t\tobj.hmConnectedNodesObj.put(edge.get(x).getNodeFrom().getIndex(), edge.get(x).getNodeFrom());\r\n\t\t\t\t\tobj.hmConnectedNodesObj.put(edge.get(x).getNodeTo().getIndex(), edge.get(x).getNodeTo());\r\n\t\t\t\t\thshMConnectedNodes.add(obj);\r\n\t\t\t\t}\r\n\t\t\t\t// If only one of them have connection, combine and merge it.\r\n\t\t\t\telse if (from == null)\r\n\t\t\t\t\tto.hmConnectedNodesObj.put(edge.get(x).getNodeFrom().getIndex(), edge.get(x).getNodeFrom());\r\n\t\t\t\telse\r\n\t\t\t\t\tfrom.hmConnectedNodesObj.put(edge.get(x).getNodeTo().getIndex(), edge.get(x).getNodeTo());\r\n\t\t\t}\r\n\t\t\t/*\r\n\t\t\t * If both nodes have connection, check for a loop by calling isLoop function.\r\n\t\t\t */\r\n\t\t\telse {\r\n\t\t\t\t// check if there is a loop in the current node\r\n\t\t\t\tfor (int counter = 0; counter < hshMConnectedNodes.size(); counter++) {\r\n\t\t\t\t\tif (hshMConnectedNodes.get(counter).searchNode(edge.get(x).getNodeTo()))\r\n\t\t\t\t\t\ttoSet = hshMConnectedNodes.get(counter);\r\n\t\t\t\t}\r\n\t\t\t\tif (toSet.hmConnectedNodesObj.containsValue(edge.get(x).getNodeFrom())) {\r\n\t\t\t\t\tloop = true;\r\n\t\t\t\t} else\r\n\t\t\t\t\tloop = false;\r\n\t\t\t\t\r\n\t\t\t\t// if no calls addConnectedEdge method and add to arryConnectedEdges for both of\r\n\t\t\t\t// the nodes\r\n\t\t\t\tif (loop == false) {\r\n\t\t\t\t\taddConnectedEdge();\r\n\t\t\t\t\tfor (int counter = 0; counter < hshMConnectedNodes.size(); counter++) {\r\n\t\t\t\t\t\tif (hshMConnectedNodes.get(counter).searchNode(edge.get(x).getNodeFrom()))\r\n\t\t\t\t\t\t\tfrom = hshMConnectedNodes.get(counter);\r\n\t\t\t\t\t\tif (hshMConnectedNodes.get(counter).searchNode(edge.get(x).getNodeTo()))\r\n\t\t\t\t\t\t\tto = hshMConnectedNodes.get(counter);\r\n\t\t\t\t\t\t;\r\n\t\t\t\t\t}\r\n\r\n\t\t\t\t\tobj.hmConnectedNodesObj.putAll(to.hmConnectedNodesObj);\r\n\t\t\t\t\tobj.hmConnectedNodesObj.putAll(from.hmConnectedNodesObj);\r\n\t\t\t\t\thshMConnectedNodes.remove(to);\r\n\t\t\t\t\thshMConnectedNodes.remove(from);\r\n\t\t\t\t\thshMConnectedNodes.add(obj);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tedge.remove(x);\r\n\t\t}\r\n\t}", "public void run(){\r\n // compute primes larger than minPrime\r\n // Ler os dados do GPS\r\n \r\n while (Thread.currentThread() == runner) {\r\n pos=Integer.valueOf(edPos.getText()); // Posi‹o do Arquivo\r\n BurroPost(pos);\r\n //Mostra.setText(Mostra.getText()+\"\\n\\nMERDADDDDDD\");\r\n //Mostra.setCaretPosition(Mostra.getText().length() ); // new URL() failed\r\n \r\n try {\r\n \r\n Long tempo= Long.parseLong(edTempo.getText());\r\n //Mostra.setText(Mostra.getText()+\"\\n\\nMERDADDDDDD\"+String.valueOf(tempo));\r\n //Mostra.setCaretPosition(Mostra.getText().length() ); // new URL() failed\r\n \r\n Thread.sleep(tempo);\r\n \r\n } catch (InterruptedException e) {\r\n } // try sleep\r\n \r\n \r\n }// while\r\n \r\n }", "public void generate_maze()\n\t{\n\t\tint i, j, r, c;\n\n\t\t// choose a cell at random and make it the current cell\n\t\tRandom rand = new Random(666);\n\t\tr = (int)(rand.nextFloat() * (ROWS - 1));\n\t\tc = (int)(rand.nextFloat() * (COLS - 1));\n\t\tint[] curr = {r,c}; // current search location\n\t\tint visited = 1;\n\t\tint total = ROWS*COLS;\n\t\tint tos = 0; // index for top of cell stack \n\n\t\t// arrays of single step movements between cells\n\t\t// north east south west\n\t\tint[][] move = {{-1, 0}, {0, 1}, {1, 0}, {0,-1}};\n\t\tint[][] next = {{0, 0}, {0, 0}, {0, 0}, {0, 0}};\n\n\t\twhile (visited < total)\n\t\t{\n\t\t\t// find all neighbors of current cell with all walls intact\n\t\t\tj = 0;\n\t\t\tfor (i = 0; i < 4; i++)\n\t\t\t{\n\t\t\t\tr = curr[0] + move[i][0];\n\t\t\t\tc = curr[1] + move[i][1];\n\n\t\t\t\t// check for valid next cell\n\t\t\t\tif ((0 <= r) && (r < ROWS) && (0 <= c) && (c < COLS))\n\t\t\t\t{\n\t\t\t\t\t// check if previously visited\n\t\t\t\t\tif ((Maze[r][c] == 15))//N) && (Maze[r][c] == E) && (Maze[r][c] == S) && (Maze[r][c] == W))\n\t\t\t\t\t{\n\t\t\t\t\t\t// not visited, so add to possible next cells\n\t\t\t\t\t\tnext[j][0] = r;\n\t\t\t\t\t\tnext[j][1] = c;\n\t\t\t\t\t\tj++;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tif (j > 0)\n\t\t\t{\n\t\t\t\t// current cell has one or more unvisited neighbors, so choose one at random \n\t\t\t\t// and knock down the wall between it and the current cell\n\t\t\t\ti = (int)(rand.nextFloat() * (j-1));\n\n\t\t\t\tif ((next[i][0] - curr[0]) == 0) // next on same row\n\t\t\t\t{\n\t\t\t\t\tr = next[i][0];\n\t\t\t\t\tif (next[i][1] > curr[1]) // move east\n\t\t\t\t\t{\n\t\t\t\t\t\tc = curr[1];\n\t\t\t\t\t\tMaze[r][c] &= ~E; // clear E wall\n\t\t\t\t\t\tc = next[i][1];\n\t\t\t\t\t\tMaze[r][c] &= ~W; // clear W wall\n\t\t\t\t\t}\n\t\t\t\t\telse // move west\n\t\t\t\t\t{\n\t\t\t\t\t\tc = curr[1];\n\t\t\t\t\t\tMaze[r][c] &= ~W; // clear W wall\n\t\t\t\t\t\tc = next[i][1];\n\t\t\t\t\t\tMaze[r][c] &= ~E; // clear E wall\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\telse // next on same column\n\t\t\t\t{\n\t\t\t\t\tc = next[i][1];\n\t\t\t\t\t if (next[i][0] > curr[0]) // move south \n\t\t\t\t\t {\n\t\t\t\t\t \tr = curr[0];\n\t\t\t\t\t \tMaze[r][c] &= ~S; // clear S wall\n\t\t\t\t\t \tr = next[i][0];\n\t\t\t\t\t \tMaze[r][c] &= ~N; // clear N wall\n\t\t\t\t\t }\n\t\t\t\t\t else // move north\n\t\t\t\t\t {\n\t\t\t\t\t \tr = curr[0];\n\t\t\t\t\t \tMaze[r][c] &= ~N; // clear N wall\n\t\t\t\t\t \tr = next[i][0];\n\t\t\t\t\t \tMaze[r][c] &= ~S; // clear S wall\n\t\t\t\t\t }\n\t\t\t\t}\n\n\t\t\t\ttos++; // push current cell location\n\t\t\t\tstack.elementAt(tos)[0] = curr[0];\n\t\t\t\tstack.elementAt(tos)[1] = curr[1];\n\n\t\t\t\tcurr[0] = next[i][0]; // make next cell the current cell\n\t\t\t\tcurr[1] = next[i][1];\n\n\t\t\t\tvisited++; // increment count of visited cells\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\t// reached dead end, backtrack\n\t\t\t\t// pop the most recent cell from the cell stack \n\t\t\t\t// and make it the current cell\n\t\t\t\tcurr[0] = stack.elementAt(tos)[0];\n\t\t\t\tcurr[1] = stack.elementAt(tos)[1];\n\t\t\t\ttos--;\n\t\t\t}\n\t\t}\n\t}", "private void printMovieMiniMenu() throws IOException{\n\t\tprintMiniMenu(\"2.Back to Movie Menu\");\n\t\t//if we passed the printMiniMenu() call, we know the user chose to search again rather than going back to the login menu\n\t\tsearchMovies();\t\n\t}", "@Override\n public void next(){\n balls.translate();\n majGui();\n }", "public void showMazeSize(int size);", "public void generateMaze() {\n if (this.stateOfTheMaze != 0)\n throw new IllegalArgumentException(\"To generate the maze the state of it must be \\\"untouched grid\\\".\");\n Stack<Box> stack = new Stack<>();\n Random random = new Random();\n int randomRow = random.nextInt(this.grid.length);\n int randomColumn = random.nextInt(this.grid[randomRow].length);\n Box startBox = this.grid[randomRow][randomColumn];\n startBox.use();\n stack.push(startBox);\n while (!stack.isEmpty()) {\n Box aux = stack.peek();\n if (allAdjacentUsed(aux))\n stack.pop();\n else\n stack.push(movement(aux));\n }\n this.stateOfTheMaze++;\n }", "public static void main(String[] args) throws IOException, InterruptedException { HttpGet getIndex = new HttpGet(\"http://www.moswar.ru/\");\n//\n// HttpResponse indexResponse = client.execute(getIndex);\n//\n// System.out.println(indexResponse.getStatusLine());\n// System.out.println(indexResponse.toString());\n//\n//\n\n JSONObject data;\n\n login(\"[email protected]\",\"`1\");\n\n index();\n\n blackJackIndex();\n\n data = newBet(Bet.random());\n\n\n String mySumm = null;\n String myHand = getMyHand(data);\n if (!myHand.contains(\"A\"))\n mySumm = getMySumm(data);\n String dealerHand = getDealerHand(data);\n\n int i = 0;\n\n all:\n while(i < 100){\n //TODO if \"check\" right or left winner or looser - new game - alternative - check if > 21 then new game\n if (mySumm != null && Integer.parseInt(mySumm) > 17){\n ++i;\n if (Integer.parseInt(mySumm) <= 21)\n endGame(stand());\n else System.out.println(\"Dealer WIN\");\n data = newBet(Bet.random());\n myHand = getMyHand(data);\n mySumm = null;\n if (!myHand.contains(\"A\"))\n mySumm = getMySumm(data);\n dealerHand = getDealerHand(data);\n }\n else{\n switch (Answer.getTurn(myHand, dealerHand)){\n case \"S\": //STAND\n ++i;\n endGame(stand());\n\n// break all;\n data = newBet(Bet.random());\n myHand = getMyHand(data);\n mySumm = null;\n if (!myHand.contains(\"A\"))\n mySumm = getMySumm(data);\n dealerHand = getDealerHand(data);\n break;\n case \"H\": //HIT\n data = more();\n mySumm = getMyNextSumm(data);\n myHand = mySumm;\n break;\n case \"D\": //DOUBLE\n //TODO check if can double\n if (checkDouble(data)){\n data = doubleBet();\n mySumm = getMyNextSumm(data);\n myHand = mySumm;\n }else{\n data = more();\n mySumm = getMyNextSumm(data);\n myHand = mySumm;\n }\n break;\n case \"P\": //SPLIT\n data = more();\n mySumm = getMyNextSumm(data);\n myHand = mySumm;\n break;\n default:\n break;\n }\n\n }\n }\n\n client.getConnectionManager().shutdown();\n out.close();\n }", "public static void main(String[] args) throws IOException {\n Deque<String> urlsToVisit = new ArrayDeque<String>();\n // Keep track of which URLs we have visited, so we don't get ourselves stuck in a loop.\n List<String> visitedUrls = new ArrayList<String>();\n // Keep track of how we got to each page, so that we can find our trace back to the BEGIN_URL.\n Hashtable<String, String> referrers = new Hashtable<String, String>();\n boolean pathFound = false;\n\n // Begin with the BEGIN_URL\n urlsToVisit.push(BEGIN_URL);\n\n while(!urlsToVisit.isEmpty() && !pathFound) {\n String currentUrl = urlsToVisit.pop();\n visitedUrls.add(currentUrl);\n\n Elements paragraphs = wf.fetchWikipedia(BASE_URL + currentUrl);\n List<String> pageUrls = new ArrayList<String>();\n\n for (Element p : paragraphs) {\n pageUrls.addAll(getLinksFromParagraph(p));\n }\n\n // Reverse the order of all page urls so that when we're done pushing all the URLS\n // to the stack, the first URL in the page will be the first URL in the current page.\n Collections.reverse(pageUrls);\n\n // Add all the URLs to the list of URLs to visit.\n for (String newUrl : pageUrls) {\n if(!visitedUrls.contains(newUrl)) {\n urlsToVisit.push(newUrl);\n // Record how we ended up at newUrl.\n referrers.put(newUrl, currentUrl);\n\n // Check if one of the links in this page is the END_URL; which means we'll be done!\n if (newUrl.equals(END_URL)) {\n pathFound = true;\n }\n }\n }\n }\n\n if (pathFound) {\n System.out.println(\"=================\");\n System.out.println(\"Path found!\");\n System.out.println(\"=================\");\n\n // Back trace how we ended up at END_URL.\n String backtraceUrl = END_URL;\n System.out.println(backtraceUrl);\n while(backtraceUrl != BEGIN_URL) {\n String referrerUrl = referrers.get(backtraceUrl);\n System.out.println(referrerUrl);\n backtraceUrl = referrerUrl;\n }\n } else {\n System.out.println(\"=================\");\n System.out.println(\"No path found :(\");\n System.out.println(\"=================\");\n }\n }", "String nextLink();", "public void display() {\n float dRadial = reactionRadialMax - reactionRadial;\n if(dRadial != 0){\n noStroke();\n reactionRadial += abs(dRadial) * radialEasing;\n fill(255,255,255,150-reactionRadial*(255/reactionRadialMax));\n ellipse(location.x, location.y, reactionRadial, reactionRadial);\n }\n \n // grow text from point of origin\n float dText = textSizeMax - textSize;\n if(dText != 0){\n noStroke();\n textSize += abs(dText) * surfaceEasing;\n textSize(textSize);\n }\n \n // draw agent (point)\n fill(255);\n pushMatrix();\n translate(location.x, location.y);\n float r = 3;\n ellipse(0, 0, r, r);\n popMatrix();\n noFill(); \n \n // draw text \n textSize(txtSize);\n float lifeline = map(leftToLive, 0, lifespan, 25, 255);\n if(mouseOver()){\n stroke(229,28,35);\n fill(229,28,35);\n }\n else {\n stroke(255);\n fill(255);\n }\n \n text(word, location.x, location.y);\n \n // draw connections to neighboars\n gaze();\n }", "public abstract void clickHelp(FloodItWorld w, ACell topLeft);", "public void mazeChanged(Maze maze);", "HtmlPage clickSiteLink();", "public void startPoemGenerator(){\n PoemWindow win = new PoemWindow();\n System.out.println(\"\\nYou found a Secret Poem Generator.\");\n System.out.println(\"Welcome, Friend!\");\n System.out.println(\"\\n **************************************\");\n System.out.println();\n readPoemFiles();\n askPoets();\n try{\n fetchVerseLines();\n }catch(Exception e){\n System.out.println(\"Invalid input. Please, try again!\");\n }\n }", "public static void main(String[] args) {\n\t\tString url=\"http://www.zhihu.com/explore/recommendations\";\n\t\tDraw draw=new Draw();\n\t\tSpider spider=new Spider();\n\t\t//获取地址集\n\t\tArrayList<WebEntity> retList=new ArrayList<WebEntity>();\n\t\tretList.addAll(spider.getWebList(url));\n\t\t\n\t\tint len=retList.size();\n\t\t\n\t\tPageRankEntity page=new PageRankEntity(len+1);\n\t\t\n\t\t//生成对应矩阵\n\t\tint j=0;\n\t\tfor(int i=0;i<len;i++){\n\t\t\tSystem.out.println(retList.get(i).Url);\n\t\t\tfor(String s:retList.get(i).outUrl){\n\t\t\t\tj=spider.webUrlContain(retList, s);\n\t\t\t\tif(j!=-1){\n\t\t\t\t\t//System.out.println(\"get page\");\n\t\t\t\t\tpage.num[i][j]=(double)1;\n\t\t\t\t}\n\t\t\t\t\t\n\t\t\t}\n\t\t}\n\t\t\n\t\tpage.PageRank();\n\t\tdraw.drawPic(len, page);\n\t\tpage.show_V(retList);\n\t\t\n\t\tSystem.out.println(\"PROGRAM END\");\n\n\t}", "public static void talk() {\r\n\t\t\r\n\t\tif (ths.page == 3) {\r\n\t\t\tths.page++;\r\n\t\t}\r\n\t}", "void setMaze(IMaze maze);", "@Test\n public void testSolveGivenMazeTwice() {\n try {\n //link row 1\n largeMaze.linkPillars(Maze.position(0, 0), Maze.position(1, 0));\n largeMaze.linkPillars(Maze.position(1, 0), Maze.position(2, 0));\n largeMaze.linkPillars(Maze.position(2, 0), Maze.position(3, 0));\n largeMaze.linkPillars(Maze.position(3, 0), Maze.position(4, 0));\n largeMaze.linkPillars(Maze.position(1, 0), Maze.position(1, 1));\n\n //link row 2\n largeMaze.linkPillars(Maze.position(1, 1), Maze.position(2, 1));\n largeMaze.linkPillars(Maze.position(1, 1), Maze.position(1, 2));\n largeMaze.linkPillars(Maze.position(3, 1), Maze.position(4, 1));\n\n //link row 3\n largeMaze.linkPillars(Maze.position(1, 2), Maze.position(1, 3));\n largeMaze.linkPillars(Maze.position(1, 2), Maze.position(2, 2));\n\n //link row 4\n largeMaze.linkPillars(Maze.position(1, 3), Maze.position(0, 3));\n largeMaze.linkPillars(Maze.position(1, 3), Maze.position(2, 3));\n largeMaze.linkPillars(Maze.position(3, 3), Maze.position(4, 3));\n largeMaze.linkPillars(Maze.position(0, 3), Maze.position(0, 4));\n\n //link row 5\n largeMaze.linkPillars(Maze.position(0, 4), Maze.position(1, 4));\n largeMaze.linkPillars(Maze.position(1, 4), Maze.position(2, 4));\n largeMaze.linkPillars(Maze.position(2, 4), Maze.position(3, 4));\n largeMaze.linkPillars(Maze.position(3, 4), Maze.position(4, 4));\n\n //set beginning and end\n largeMaze.setBegin(Maze.position(0, 0));\n largeMaze.setEnd(Maze.position(4, 4));\n shortestPath = MazeSolver.pStar(largeMaze, 25);\n shortestPath2 = MazeSolver.pStar(largeMaze, 25);\n\n assertEquals(9, shortestPath.size());\n\n assertEquals(shortestPath.size(), shortestPath2.size());\n\n assertEquals(\"<0, 0>\", shortestPath.get(0).getCoordinateString());\n assertEquals(\"<1, 0>\", shortestPath.get(1).getCoordinateString());\n assertEquals(\"<1, 1>\", shortestPath.get(2).getCoordinateString());\n assertEquals(\"<1, 2>\", shortestPath.get(3).getCoordinateString());\n assertEquals(\"<1, 3>\", shortestPath.get(4).getCoordinateString());\n assertEquals(\"<1, 4>\", shortestPath.get(5).getCoordinateString());\n assertEquals(\"<2, 4>\", shortestPath.get(6).getCoordinateString());\n assertEquals(\"<3, 4>\", shortestPath.get(7).getCoordinateString());\n assertEquals(\"<4, 4>\", shortestPath.get(8).getCoordinateString());\n\n assertEquals(\"<0, 0>\", shortestPath2.get(0).getCoordinateString());\n assertEquals(\"<0, 1>\", shortestPath2.get(1).getCoordinateString());\n assertEquals(\"<0, 2>\", shortestPath2.get(2).getCoordinateString());\n assertEquals(\"<0, 3>\", shortestPath2.get(3).getCoordinateString());\n assertEquals(\"<0, 4>\", shortestPath2.get(4).getCoordinateString());\n assertEquals(\"<1, 4>\", shortestPath2.get(5).getCoordinateString());\n assertEquals(\"<2, 4>\", shortestPath2.get(6).getCoordinateString());\n assertEquals(\"<3, 4>\", shortestPath2.get(7).getCoordinateString());\n assertEquals(\"<4, 4>\", shortestPath2.get(8).getCoordinateString());\n\n } catch (Exception e) {\n fail(\"Unexpected exception was thrown while linking pillars.\");\n }\n }", "private void generateMaze(int x, int y) {\r\n\t\t\t\tgenerateMaze(getCell(x, y)); // Gerar a partir da celula\r\n\t\t\t}", "public void testGUI(){\n \tFile xml = new File(testData,\"html/htmlsidekick.html\");\n \t\n \tTestUtils.openFile(xml.getPath());\n\t\t\n \t// wait for end of parsing\n \tdoInBetween(new Runnable(){\n \t\t\tpublic void run(){\n \t\t\t\taction(\"sidekick-parse\",1);\n \t\t}}, \n \t\tmessageOfClassCondition(sidekick.SideKickUpdate.class),\n \t\t10000);\n\t\t\n \tTestUtils.view().getTextArea().scrollTo(3319,false);\n\t\tfinal java.awt.Point hrefP = TestUtils.view().getTextArea().offsetToXY(3319);\n\t\threfP.translate(30, 10);\n\t\tfinal JEditTextAreaFixture tf = new JEditTextAreaFixture(TestUtils.robot(),TestUtils.view().getTextArea()); \n\n\t\t// doesn't work: the hyperlink is not triggered...\n\t\ttf.robot.moveMouse(tf.target,hrefP);\n\t\ttf.robot.pressModifiers(InputEvent.CTRL_DOWN_MASK);\n\t\tPause.pause(2000);\n\t\threfP.translate(10,4);\n\t\ttf.robot.moveMouse(tf.target,hrefP);\n\t\tPause.pause(4000);\n\t\ttf.robot.click(tf.target, MouseButton.LEFT_BUTTON);\n\t\ttf.robot.releaseModifiers(InputEvent.CTRL_DOWN_MASK);\n\t}", "private void forwardPage()\n {\n page++;\n open();\n }", "public static void main(String[] args) {\n\t\tSystem.out.println(\"This is a 10 * 10 map, x axis and y axis start from 0 - 9.\");\n\t\tSystem.out.println(\"There are totally \"+MINE_NUMBER+\" mines, and your task is to find all the mines.\");\n\n\t\t// generate 10*10 grid\n\t\t/*\n\t\t * 0: not mine 1: mine 2: mine found 3: not mine shot\n\t\t * \n\t\t */\n\t\tint[][] map = new int[10][10];\n\t\t// repeated at least 5 times generate 5 mines\n\t\tint i = 0;\n\t\twhile (i < MINE_NUMBER) {\n\t\t\t// generate mines generally\n\t\t\tint x = (int) (Math.random() * 10); // 0-9\n\t\t\tint y = (int) (Math.random() * 10); // 0-9\n\t\t\tif (map[x][y] == 1) {\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\tmap[x][y] = 1;\n\t\t\ti++;\n\t\t}\n\n\t\t// ready to accept user input\n\t\tScanner input = new Scanner(System.in);\n\t\t// how many mines been found\n\t\tint find = 0;\n\n\t\t// start to accept user input\n\t\twhile (find < MINE_NUMBER) {\n\t\t\tint clickX, clickY;\n\t\t\tSystem.out.println(\"please enter the x axis of mine\");\n\t\t\tclickX = input.nextInt();\n\t\t\tSystem.out.println(\"please enter the y axis of mine \");\n\t\t\tclickY = input.nextInt();\n\n\t\t\tif (map[clickX][clickY] == 1) {\n\t\t\t\tmap[clickX][clickY] = 2;\n\t\t\t\tfind++;\n\t\t\t\tSystem.out.println(\"You find a mine! Now you found \" + find + \" mines and \" + (MINE_NUMBER - find) + \" left!\");\n\n\t\t\t} else if (map[clickX][clickY] == 2) {\n\t\t\t\tSystem.out.println(\"You have found this target, try again!\");\n\t\t\t} else {\n\t\t\t\tmap[clickX][clickY] = 3;\n\t\t\t\tSystem.out.println(\"You miss!\");\n\t\t\t\thint(map, clickX, clickY);\n\t\t\t}\n\t\t}\n\n\t\tSystem.out.println(\"You found all the mines! You win!\");\n\t\tinput.close();\n\t}", "private void howToPlay() {\n\n String s = \"You are presented with a grid of tiles, some of which contain mines.\\n\"\n + \"The aim of Minesweeper is to reveal all tiles in the grid which do not contain mines.\\n\"\n + \"To reveal a tile, click on it. If the tile you reveal is a mine, you lose the game.\\n\"\n + \"If the tile you reveal is empty, all surrounding tiles will be revealed, \\n\"\n + \"and if those are also empty, their surrounding tiles will be revealed too.\\n\"\n + \"Tiles containing numbers indicate how many mines there are surrounding that tile.\\n\"\n + \"If you think a tile contains a mine, right click on it to mark it as a mine.\\n\"\n + \"You win the game once either you mark all mines, or reveal all tiles which are not mines.\";\n\n JFrame helpframe = new JFrame(\"How to play\");\n JPanel helppanel = new JPanel();\n JButton close = new JButton(\"Got it!\");\n JTextArea text = new JTextArea(s);\n\n close.addActionListener((ActionEvent ev) -> {\n helpframe.dispose();\n });\n\n text.setEditable(false);\n text.setOpaque(false);\n text.setWrapStyleWord(true);\n helppanel.add(text);\n helppanel.add(close);\n helpframe.add(helppanel);\n helpframe.setLocationRelativeTo(null);\n helpframe.setSize(560, 200);\n helpframe.setVisible(true);\n helpframe.setResizable(false);\n }", "private void goGuide() {\n }", "public void onMouseClick(Location point) {\n\t Thread t6 = new MoveMouth(0, 0, canvas);\n t6.start(); \n }", "public void BFSInfo(ActionEvent actionEvent)\n {\n try {\n Desktop.getDesktop().browse(new URL(\"https://en.wikipedia.org/wiki/Breadth-first_search\").toURI());\n } catch (IOException e) {\n e.printStackTrace();\n } catch (URISyntaxException e)\n {\n e.printStackTrace();\n }\n }", "public DashBoardPage NavigateToMittICA()\n{\n\tif(Action.IsVisible(Master_Guest_Mitt_ICA_Link))\n\tAction.Click(Master_Guest_Mitt_ICA_Link);\n\telse\n\t\tAction.Click(Master_SignIN_Mitt_ICA_Link);\n\treturn this;\n}", "public RouteFinder(Maze m) {\n maze = m;\n }", "public static void main(String[] args) {\n\t\tint Height=101;\n\t\tint Width=101;\n\t\tMaze[] sample=new Maze[50];\n\t\tfor(int i=0;i<50;i++){\n\t\t\tMaze maze=new Maze(Height,Width);\n\t\t\tmaze.generateMaze();\n\t\t\tmaze.generateStartGoal();\n\t\t\tsample[i]=maze;\n\t\t\tSystem.out.println(\"Maze \"+i);\n\t\t\tSystem.out.print(\"Larger G \");\n\t\t\tmaze.fAStarSearch(false);\n\t\t\tSystem.out.print(\"Smaller G \");\n\t\t\tmaze.fAStarSearch(true);\n\t\t}\n\t}", "public static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\tint m = sc.nextInt();\n\t\tint n = sc.nextInt();\n char [] [] maze = new char[m][n];\n for(int i=0; i<m; i++) {\n \t String str = sc.next();\n \t for(int j=0; j<str.length(); j++) {\n \t\t maze[i][j]=str.charAt(j);\n \t }\n }\n int [][] ans = new int [m][n];\n blocked_Maze_path(maze, 0, 0, n-1, m-1,ans );\n \n\t}", "@Override\n\t\t\tpublic void run() \n\t\t\t{\n\t\t\t\tif(!(mazeCollection.containsKey(paramArray[0])))\n\t\t\t\t{\n\t\t\t\t\tc.passError(\"Maze doesn't exist\");\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t\t/*\n\t\t\t\t//if solution for this maze exists\n\t\t\t\tif(mazeSolutions.containsKey(mazeCollection.get(paramArray[0])))\n\t\t\t\t{\n\t\t\t\t\tc.passSolve(\"Solution for \"+paramArray[0]+ \" is ready\");\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t*/\n\t\t\t\t\n\t\t\t\tif(paramArray[1].toString().equals(\"bfs\"))\n\t\t\t\t{\n\t\t\t\t\tMazeAdapter ms=new MazeAdapter(mazeCollection.get(paramArray[0]));\n\t\t\t\t\t\n\t\t\t\t\tSearcher<Position> bfs=new BFS<Position>();\n\t\t\t\t\tSolution<Position> sol=bfs.search(ms);\n\t\t\t\t\t\n\t\t\t\t\t//check if solution for the maze already exists, if so, replace it with the new one\n\t\t\t\t\tif(mazeSolutions.containsKey(mazeCollection.get(paramArray[0]))) {\n\t\t\t\t\t\tmazeSolutions.remove(mazeCollection.get(paramArray[0]));\n\t\t\t\t\t\tmazeSolutions.put(mazeCollection.get(paramArray[0]), sol);\n\t\t\t\t\t}\n\t\t\t\t\telse {\n\t\t\t\t\t\tmazeSolutions.put(mazeCollection.get(paramArray[0]), sol);\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\tc.passSolve(\"Solution for \"+paramArray[0]+ \" is ready\");\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t\telse if(paramArray[1].toString().equals(\"dfs\"))\n\t\t\t\t{\n\t\t\t\t\tMazeAdapter ms=new MazeAdapter(mazeCollection.get(paramArray[0]));\n\t\t\t\t\t\n\t\t\t\t\tSearcher<Position> dfs=new DFS<Position>();\n\t\t\t\t\tSolution<Position> sol=dfs.search(ms);\n\t\t\t\t\t\n\t\t\t\t\t//check if solution for the maze already exists, if so, replace it with the new one\n\t\t\t\t\tif(mazeSolutions.containsKey(mazeCollection.get(paramArray[0]))) {\n\t\t\t\t\t\tmazeSolutions.remove(mazeCollection.get(paramArray[0]));\n\t\t\t\t\t\tmazeSolutions.put(mazeCollection.get(paramArray[0]), sol);\n\t\t\t\t\t}\n\t\t\t\t\telse {\n\t\t\t\t\t\tmazeSolutions.put(mazeCollection.get(paramArray[0]), sol);\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\tc.passSolve(\"Solution for \"+paramArray[0]+ \" is ready\");\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\tc.passError(\"Invalid algorithm\");\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t}", "@Override\n\tpublic void sendPacket() {\n\t\t\n\t\tAbstract_StepPage currentPage = (Abstract_StepPage) core.currentScreen;\n\t\t\n\t\tStringBuilder theURL = new StringBuilder();\n\t\t\n\t\ttheURL.append(core.modelCore.targetURL);\n\t\ttheURL.append(\"michael/updateevent.php?\");\n\t\ttheURL.append(\"page=\" + \"four\" +\"&\"); //page = \"three\"&\n\t\ttheURL.append(\"name=\" + core.modelCore.selectedEvent.eventName +\"&\");\n\t\ttheURL.append(\"answer=\" + yesBox.isChecked() +\"&\");\n\t\ttheURL.append(\"user=\" + core.modelCore.username);\n\t\t\n\t\tSystem.out.println( theURL.toString() );\n\t\t\n\t\tLogic_PHP.getResponseFromURL(core, theURL.toString());\n\t}", "public static void main (String[] args) {\n\n Maze labyrinth = new Maze();\n \n labyrinth.print_maze();\n\n if (labyrinth.solve(0, 0)) {\n \t System.out.println (\"Maze solved!\");\n \t labyrinth.print_maze();\n \t }\n else\n System.out.println (\"No solution.\");\n\n }", "public static void main( String [ ] args )\r\n {\r\n \r\n \t\r\n \t\r\n \tint maze_row=0;\r\n \tint maze_column=0;\r\n \t\r\n\t\t\r\n\t\tScanner type = new Scanner(System.in);\r\n\t\t\r\n\t\t\r\n\t\tdo\r\n\t\t\t{\r\n\t\t\ttry \r\n\t\t\t\r\n\t\t\t{\r\n\t\t\t\tSystem.out.print(\"Please enter number of row between 1 and 20: \");\r\n\t\t\t\tmaze_row = Integer.valueOf(type.next());\r\n\t\t\t}\r\n\t\t\tcatch (NumberFormatException e)\r\n\t\t\t{\r\n\t\t\t\t//System.out.println(\"Input didn't match with the requirement: Try Again\");\r\n\t\t\t\tmaze_row=21;\r\n\t\t\t\t\r\n\t\t\t}\r\n\t\t\t}\r\n\t\twhile(maze_row>20 || maze_row<1);\r\n\t\tdo\r\n\t\t{\r\n\t\ttry \r\n\t\t\r\n\t\t{\r\n\t\t\tSystem.out.print(\"Please enter number of column between 1 and 20: \");\r\n\t\t\tmaze_column = Integer.valueOf(type.next());\r\n\t\t}\r\n\t\tcatch (NumberFormatException e)\r\n\t\t{\r\n\t\t\t//System.out.println(\"Input didn't match with the requirement: Try Again\");\r\n\t\t\tmaze_column=21;\r\n\t\t\t\t\r\n\t\t}\r\n\t\t}\r\n\twhile(maze_column>20 ||maze_column<1);\r\n\t\t\r\n\t\ttype.close();\r\n\t\tSystem.out.println();\r\n \tcreateMaze(maze_row,maze_column);\r\n \tshowMaze();\r\n \t\r\n \t\r\n \t\r\n \t\r\n \t\r\n \t\r\n \t\r\n \t\r\n \t/* int NumElements = 128;\r\n int NumInSameSet = 16;\r\n\r\n DisjSets ds = new DisjSets( NumElements );\r\n int set1, set2;\r\n\r\n for( int k = 1; k < NumInSameSet; k *= 2 )\r\n {\r\n for( int j = 0; j + k < NumElements; j += 2 * k )\r\n {\r\n set1 = ds.find( j );\r\n set2 = ds.find( j + k );\r\n ds.union( set1, set2 );\r\n }\r\n }\r\n\r\n for( int i = 0; i < NumElements; i++ )\r\n {\r\n System.out.print( ds.find( i )+ \"*\" );\r\n if( i % NumInSameSet == NumInSameSet - 1 )\r\n System.out.println( );\r\n }\r\n System.out.println( );*/\r\n }", "static void Door2challenge() {\n System.out.println(\"Ready! 3...2...1...GO!\");\n System.out.println(\"Where do you want to go? Left, Right, or Straight\");\n direction = next.nextLine();\n //this is where the player will decide where to go\n //the rest of the maze will branch off from this decision. These choices will have the same outcome.\n \n if(direction.contains(\"left\")) {\n door2challenge_leftpath();\n //player enters the left branch maze\n \n }else if(direction.contains(\"right\")){\n door2challenge_rightpath();\n //player enters the right branch of the maze\n \n }else if(direction.contains(\"straight\")){\n door2challenge_straightpath();\n //player enters the straight branch of the maze\n }else{\n System.out.println(\"I don't understand...type it correctly!!!\");\n Door2challenge();\n }\n \n }", "public static void Display(AnalysisController pController, String pstrTitle) {\n \n Stage stgAboutMeerkatDialog = new Stage();\n stgAboutMeerkatDialog.initModality(Modality.APPLICATION_MODAL);\n \n //Label lblAboutMeerkat = new Label(strAboutMeerkat);\n \n String aboutMeerkat = \"Meerkat is a social network analysis tool developed at AMII, Department of Computing Science, University of Alberta, \"\n + \"under the leadership of Dr. Osmar Zaïane.\";\n \n String meerkatURL = \"https://www.amii.ca/meerkat\";\n \n Hyperlink link = new Hyperlink(meerkatURL);\n link.setBorder(Border.EMPTY);\n link.setPadding(new Insets(0, 0, 0, 0));\n link.setOnAction(new EventHandler<ActionEvent>() {\n @Override\n public void handle(ActionEvent e) {\n try{\n if( Desktop.isDesktopSupported() )\n {\n new Thread(() -> {\n try {\n Desktop.getDesktop().browse( new URI( meerkatURL ) );\n } catch (Exception et) {\n System.out.println(\"Exception in hyperlink click in AboutMeerkat:Disply()\");\n }\n }).start();\n }\n stgAboutMeerkatDialog.close();\n }catch(Exception exp){\n System.out.println(\"Exception in hyperlink click in AboutMeerkat:Disply()\");\n }\n }\n });\n \n \n \n String meerkatEmail = \"[email protected] \";\n\n String details = \"For more details please visit us online at: \";\n String emailDetails = \" or email us at: [email protected]\";\n \n String meerkatVersion = \"Meerkat Version: \"+MeerkatSoftwareValidator.getMeerkatVersion();\n String meerkatReleaseDate = \"Version Release Date: 2018 February 02\";\n\n String meerkatcurrentDevs = \"Current Developers : Sankalp Prabhakar, Talat Iqbal Syed\";\n \n String meerkatPastDevs = \"Past and Present Team Members (alphabetically): Abhimanyu Panwar, Ali Yadollahi, Afra Abnar, Amin Travelsi, Eric Verbeek, Farzad Sangi, Justin Fagnan, \\n\" +\n \"Jiyang Chen, Matt Gallivan, Mansoureh Takaffoli, Reihaneh Rabbany, Sankalp Prabhakar, Shiva Zamani Gharaghooshi, \"\n + \"Talat Iqbal Syed, Xiaoxiao Li.\";\n\n \n VBox labels = new VBox();\n Label label1 = new Label(aboutMeerkat);\n Label label2 = new Label(details);\n Label label3 = new Label(emailDetails);\n \n HBox hbox = new HBox();\n hbox.getChildren().addAll(label2, link, label3);\n \n Label version = new Label(meerkatVersion);\n Label releaseDate = new Label(meerkatReleaseDate);\n Label currDevs = new Label(meerkatcurrentDevs);\n Label pastDevs = new Label(meerkatPastDevs);\n \n labels.getChildren().addAll(label1,hbox,version,releaseDate,currDevs,pastDevs);\n labels.setPadding(new Insets(5, 10, 5, 10));\n labels.setSpacing(10);\n \n // Build a VBox\n Button btnOK = new Button(LangConfig.GENERAL_OK);\n VBox vboxRows = new VBox(5);\n vboxRows.setPadding(new Insets(5,10,5,10)); \n vboxRows.getChildren().addAll(labels, btnOK);\n vboxRows.setAlignment(Pos.CENTER);\n \n Scene scnAboutMeerkatDialog = new Scene(vboxRows);\n scnAboutMeerkatDialog.addEventFilter(KeyEvent.KEY_PRESSED, (KeyEvent evt) -> {\n if (evt.getCode().equals(KeyCode.ESCAPE)) {\n stgAboutMeerkatDialog.close();\n pController.updateStatusBar(false, StatusMsgsConfig.WINDOW_CLOSED);\n }\n });\n \n //stgAboutMeerkatDialog.initModality(Modality.WINDOW_MODAL);\n stgAboutMeerkatDialog.setTitle(pstrTitle); \n stgAboutMeerkatDialog.setResizable(false);\n \n \n // Events \n btnOK.setOnAction((ActionEvent e) -> {\n // Close the dialog box\n stgAboutMeerkatDialog.close();\n \n // Update the Status bar\n pController.updateStatusBar(false, StatusMsgsConfig.ABOUT_CLOSED);\n });\n \n stgAboutMeerkatDialog.setScene(scnAboutMeerkatDialog);\n stgAboutMeerkatDialog.show();\n \n // Update the status bar\n pController.updateStatusBar(true, StatusMsgsConfig.ABOUT_SHOW);\n }", "public void Onwin(){\r\n xPos=0;\r\n yPos=0;\r\n indice = rand.nextInt(11);\r\n if(indice==12){indice2= indice-1;}\r\n else{indice2= indice+1;};\r\n\r\n\r\n texto.setText(\"\");\r\n texto.append(expressions[indice]);\r\n texto1.setText(\"\");\r\n texto1.append(expressions[indice2]);\r\n\r\n matrix=generateMatrix(Alphat,expressions[indice]);\r\n textoG.setText(\"\");\r\n for(int i=0;i<matrix.length;i++){\r\n textoG.append(matrix[i]+\"\\n\");\r\n }\r\n\r\n }", "public void Onwin2(){\r\n xPos=0;\r\n yPos=0;\r\n indice = rand.nextInt(11);\r\n if(indice==12){indice2= indice-1;}\r\n else{indice2= indice+1;};\r\n\r\n\r\n texto.setText(\"\");\r\n texto.append(expressions[indice2]);\r\n texto1.setText(\"\");\r\n texto1.append(expressions[indice]);\r\n\r\n matrix=generateMatrix(Alphat,expressions[indice]);\r\n textoG.setText(\"\");\r\n for(int i=0;i<matrix.length;i++){\r\n textoG.append(matrix[i]+\"\\n\");\r\n }\r\n\r\n }", "public void DFSInfo(ActionEvent actionEvent)\n {\n try {\n Desktop.getDesktop().browse(new URL(\"https://en.wikipedia.org/wiki/Depth-first_search\").toURI());\n } catch (IOException e) {\n e.printStackTrace();\n } catch (URISyntaxException e)\n {\n e.printStackTrace();\n }\n }", "public void showBreach();", "public void navigateToWeb() throws Exception {\n\n server.setCurrentItem(1, HOME_URL);\n\n // Navegate to HOME_URL address\n browser.navigate(HOME_URL);\n\n //Tihis command is uses to make visible in the desktop the page (IExplore issue)\n if (browserType.equals(\"IE\")) {\n client.clickOnCenter();\n client.pause(3000);\n }\n\n By lName = By.xpath(\"/html/body/div/div/div[1]/form/table/tbody/tr[1]/td/div/input\");\n By dob = By.xpath(\"/html/body/div/div/div[1]/form/table/tbody/tr[2]/td/div/input\");\n By accNumber = By.xpath(\"/html/body/div/div/div[1]/form/table/tbody/tr[3]/td/div/input\");\n By sortCd = By.xpath(\"/html/body/div/div/div[1]/form/table/tbody/tr[4]/td/div/input\");\n By pCode = By.xpath(\"/html/body/div/div/div[1]/form/table/tbody/tr[5]/td/div/input\");\n browser.textFieldSet(lName,lastName,true);\n browser.textFieldSet(dob,dateOfBirth,true);\n browser.textFieldSet(accNumber,accountNumber,true);\n browser.textFieldSet(sortCd,sortCode,true);\n browser.textFieldSet(pCode,postCode,true);\n\n browser.clickOnElement(By.xpath(\"/html/body/div/div/div[1]/form/div/input\"));\n\n By message = By.id(\"message\");\n\n boolean isMessageExists = browser.existsElement(message);\n\n if(!isMessageExists) {\n\n By tableId = By.id(\"customer\");\n WebElement table = browser.getElement(tableId);\n\n List<WebElement> th = table.findElements(By.tagName(\"th\"));\n\n int lastNamePos = 0;\n int postCodePos = 0;\n int dobPos = 0;\n int accountNoPos = 0;\n int sortCodePos = 0;\n\n for (int i = 0; i < th.size(); i++) {\n if (\"Last Name\".equalsIgnoreCase(th.get(i).getText())) {\n lastNamePos = i + 1;\n } else if (\"Date of Birth\".equalsIgnoreCase(th.get(i).getText())) {\n dobPos = i + 1;\n } else if (\"Account Number\".equalsIgnoreCase(th.get(i).getText())) {\n accountNoPos = i + 1;\n } else if (\"Sort Code\".equalsIgnoreCase(th.get(i).getText())) {\n sortCodePos = i + 1;\n } else if (\"Post Code\".equalsIgnoreCase(th.get(i).getText())) {\n postCodePos = i + 1;\n }\n }\n\n List<WebElement> lastNameElements = table.findElements(By.xpath(\"//tr/td[\" + lastNamePos + \"]\"));\n List<WebElement> dobElements = table.findElements(By.xpath(\"//tr/td[\" + dobPos + \"]\"));\n List<WebElement> accountElements = table.findElements(By.xpath(\"//tr/td[\" + accountNoPos + \"]\"));\n List<WebElement> sortCodeElements = table.findElements(By.xpath(\"//tr/td[\" + sortCodePos + \"]\"));\n List<WebElement> postCodeElements = table.findElements(By.xpath(\"//tr/td[\" + postCodePos + \"]\"));\n\n for (int i = 0; i < lastNameElements.size(); i++) {\n WebElement e = lastNameElements.get(i);\n if (e.getText().trim().equalsIgnoreCase(lastName)) {\n if (dobElements.get(i).getText().trim().equalsIgnoreCase(dateOfBirth)\n && accountElements.get(i).getText().trim().equalsIgnoreCase(accountNumber)\n && sortCodeElements.get(i).getText().trim().equalsIgnoreCase(sortCode)\n && postCodeElements.get(i).getText().trim().equalsIgnoreCase(postCode)) {\n resultMap.put(\"matchFound\", \"true\");\n break;\n }\n }\n }\n } else\n resultMap.put(\"matchFound\", \"false\");\n\n\n }", "public static void main(String[] args) {\n\topenBrowser(\"Firefox\");\n\tdriver.get(\"https://www.myntra.com/\");\n\t//move the mouse to home and living menu item\\\n\n\t//1.create the object of actions class\n\n\tActions myActions = new Actions(driver);\n\tmyActions.moveToElement(driver.findElement(By.xpath(\"//a[text()='Home & Living' and @class = 'desktop-main']\")));\n\tmyActions.pause(5000);\n\tmyActions.moveToElement(driver.findElement(By.xpath(\"//a[text()='Men' and @class = 'desktop-main']\")));\n\n\n\t//2. Create the object of Action class and build the actions\n\torg.openqa.selenium.interactions.Action myAction = myActions.build();\n\n\t//3. perform the action\n\tmyAction.perform();\n\t\t}", "Point onPage();", "public static void main(String[] args) {\n DrawMaze maze = new DrawMaze(20, 20);\n createMazeMinus(maze);\n maze.display();\n }", "@Override\r\n\tpublic void run()\r\n\t{\r\n\t\twhile(true)\r\n\t\t{\r\n\t\t\t//System.out.println(\"beginning of Parser code\");\r\n\t\t\t\r\n\t\t\t//pull a page from the page que\r\n\t\t\ttry \r\n\t\t\t{\r\n\t\t\t\tpageText = SharedPage.getNextPage();\r\n\t\t\t\t//System.out.println(\"Parser Page Pulled\");\r\n\t\t\t} \r\n\t\t\tcatch (InterruptedException e) \r\n\t\t\t{\r\n\t\t\t\t//do nothing\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t//search the page for all links in anchor (<a href=\"\") elements\r\n\t\t\t\r\n\t\t\t//Regex\r\n\t\t\t//loop will execute for each link found\r\n\t\t\tPattern pattern = Pattern.compile(\"href=\\\"(http:.*?)\\\"\");\r\n\t\t\tMatcher matcher = null;\r\n\t\t\t\r\n\t\t\t//Some pages are returning null values\r\n\t\t\tif(pageText != null)\r\n\t\t\t{\r\n\t\t\t\tmatcher = pattern.matcher(pageText);\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t//add each link found to the link queue\r\n\t\t\t\r\n\t\t\t//sometimes matcher is returning null values\r\n\t\t\twhile(matcher != null && matcher.find())\r\n\t\t\t{\r\n\t\t\t\tString link = matcher.group(1);\r\n\t\t\t\r\n\t\t\t\ttry \r\n\t\t\t\t{\r\n\t\t\t\t\tSharedLink.addLink(link);\r\n\t\t\t\t} \r\n\t\t\t\tcatch (InterruptedException e) \r\n\t\t\t\t{\r\n\t\t\t\t\t//do nothing\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t//search the page for keywords specified by the user of the webcrawler\r\n\t\t\tArrayList<String> keywords = WebCrawlerConsole.getKeywords();\r\n\t\t\t\r\n\t\t\t\tfor(String word : keywords)\r\n\t\t\t\t{\r\n\t\t\t\t\t//cannot split pageText if it is null\r\n\t\t\t\t\tif(pageText != null)\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tString[] keywordSearch = pageText.split(word);\r\n\t\t\t\t\t\tfor(int i=0; i < keywordSearch.length; i++)\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tWebCrawlerConsole.keywordHit();\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\r\n\t\t\t//System.out.println(\"end of Parser code\");\r\n\t\t}\r\n\t}", "public GenerateMazeInputDialog(Shell parent) {\r\n\t\tsuper(parent);\r\n\t setText(\"Generate maze\");\r\n\t}", "public void generateSolution() {\n if (this.stateOfTheMaze != 1)\n throw new IllegalArgumentException(\"To generate the maze the state of it must be \\\"generated maze\\\".\");\n Queue<Box> queue = new LinkedList<>();\n queue.add(this.startBox);\n boolean notFinished = true;\n while (notFinished) {\n Box aux = queue.peek();\n LinkedList<Box> movements = movementWithWalls(aux);\n movements.remove(aux.getPrevious());\n for (Box box : movements) {\n box.setPrevious(aux);\n queue.add(box);\n if (box.equals(this.endBox))\n notFinished = false;\n }\n queue.remove();\n }\n Box anotherAux = this.endBox;\n while (!anotherAux.equals(this.startBox)) {\n anotherAux.setAsSolution();\n anotherAux = anotherAux.getPrevious();\n }\n this.stateOfTheMaze++;\n }", "public void run() {\n getPage(page + 1, false);\n }", "private void setCharacters() {\n\n for (Node node : gameState.getMazeState().getMaze().getNodes()) {\n if (pacmanPoint != null) {\n Pacman pacman = new Pacman();\n// if (gameState.getPacman().getDirection() == Direction.LEFT) {\n if (Math.abs(node.getX() - pacmanPoint.x + 2) < 3\n && Math.abs(node.getY() - pacmanPoint.y) < 3) {\n// gameState.getPacman().setCurrentNode(node);\n pacman.setMaze(Maze.A);\n pacman.setCurrentNode(node);\n gameState.setPacman(pacman);\n }\n// } else {\n// if (Math.abs(node.getX() - pacmanPoint.x) < 3\n// && Math.abs(node.getY() - pacmanPoint.y) < 3) {\n\n// }\n// }\n }\n// if (blinkyPoint != null) {\n// if (Math.abs(node.getX() - blinkyPoint.x) < 3\n// && Math.abs(node.getY() - blinkyPoint.y) < 3) {\n// blinkyGhost.setCurrentNode(node);\n// ghs.remove(blinkyGhost);\n// }\n// }\n// if (pinkyPoint != null) {\n// if (Math.abs(node.getX() - pinkyPoint.x) < 3\n// && Math.abs(node.getY() - pinkyPoint.y) < 3) {\n// pinkyGhost.setCurrentNode(node);\n// ghs.remove(pinkyGhost);\n// }\n// }\n// if (inkyPoint != null) {\n// if (Math.abs(node.getX() - inkyPoint.x) < 3\n// && Math.abs(node.getY() - inkyPoint.y) < 3) {\n// inkyGhost.setCurrentNode(node);\n// ghs.remove(inkyGhost);\n// }\n// }\n// if (suePoint != null) {\n// if (Math.abs(node.getX() - suePoint.x) < 3\n// && Math.abs(node.getY() - suePoint.y) < 3) {\n// sueGhost.setCurrentNode(node);\n// ghs.remove(sueGhost);\n// }\n// }\n// if (ghostsPoints.size() > 0) {\n// for (Point ghostPoint : ghostsPoints) {\n// if (Math.abs(node.getX() - ghostPoint.x) < 3\n// && Math.abs(node.getY() - ghostPoint.y) < 3) {\n// if (ghs.size() > 0) {\n// Ghost edibleGhost = ghs.get(0);\n// edibleGhost.setCurrentNode(node);\n// edibleGhost.setEdibleTime(100);\n// ghs.remove(0);\n// }\n// }\n// }\n// }\n }\n }", "@Test\n public void testSolveBackwardMaze(){\n try {\n //link row 1\n largeMaze.linkPillars(Maze.position(0, 0), Maze.position(1, 0));\n largeMaze.linkPillars(Maze.position(1, 0), Maze.position(2, 0));\n largeMaze.linkPillars(Maze.position(2, 0), Maze.position(3, 0));\n largeMaze.linkPillars(Maze.position(3, 0), Maze.position(4, 0));\n largeMaze.linkPillars(Maze.position(1, 0), Maze.position(1, 1));\n\n //link row 2\n largeMaze.linkPillars(Maze.position(1, 1), Maze.position(2, 1));\n largeMaze.linkPillars(Maze.position(1, 1), Maze.position(1, 2));\n largeMaze.linkPillars(Maze.position(3, 1), Maze.position(4, 1));\n\n //link row 3\n largeMaze.linkPillars(Maze.position(1, 2), Maze.position(1, 3));\n largeMaze.linkPillars(Maze.position(1, 2), Maze.position(2, 2));\n\n //link row 4\n largeMaze.linkPillars(Maze.position(1, 3), Maze.position(0, 3));\n largeMaze.linkPillars(Maze.position(1, 3), Maze.position(2, 3));\n largeMaze.linkPillars(Maze.position(3, 3), Maze.position(4, 3));\n largeMaze.linkPillars(Maze.position(0, 3), Maze.position(0, 4));\n\n //link row 5\n largeMaze.linkPillars(Maze.position(0, 4), Maze.position(1, 4));\n largeMaze.linkPillars(Maze.position(1, 4), Maze.position(2, 4));\n largeMaze.linkPillars(Maze.position(2, 4), Maze.position(3, 4));\n largeMaze.linkPillars(Maze.position(3, 4), Maze.position(4, 4));\n\n //set beginning and end\n largeMaze.setBegin(Maze.position(3, 4));\n largeMaze.setEnd(Maze.position(1, 0));\n shortestPath = MazeSolver.pStar(largeMaze, 25);\n\n assertEquals(null, shortestPath);\n\n } catch (Exception e) {\n fail(\"Unexpected exception was thrown while linking pillars.\");\n }\n }", "public SampleMaze() {\r\n\t\twidth = 5;\r\n\t\theight = 5;\r\n\t\tgrid = new Grid(width,height);\r\n\t\tgridSheet = grid.getGrid();\r\n\t\t\r\n\t\tconstructMaze(); // construct the maze\r\n\t\t\r\n\t\t// construct the graph of the maze and get the complexity, traversal length, \r\n\t\t// intersections, and dead ends of the maze.\r\n\t\tgraph = new Graph(grid);\r\n\t\tmazeComplexity = graph.mazeComplexity();\r\n\t\ttravelLength = graph.traversalLength();\r\n\t\tdeadEndCount = graph.numberOfDeadEnds();\r\n\t\tiCount = graph.numberOfIntersections();\r\n\t}", "@FXML\n public void goToMult(ActionEvent event) throws IOException, SQLException { //NEXT SCENE\n \tdoChecking();\n \t\n \ttry {\n\t \tif(checkIntPos && checkFloatPos && checkIntPosMatl && checkFloatPosMatl) {\n\t \t\t//store the values\n\t \t\tstoreValues();\n\t \t\t\n\t \t\tFXMLLoader loader = new FXMLLoader(getClass().getResource(\"Mult.fxml\"));\n\t \t\tParent root = loader.load();\n\t \t\t\n\t \t\tMultController multCont = loader.getController(); //Get the next page's controller\n\t \t\tmultCont.showInfo(); //Set the values of the page \n\t \t\tScene multScene = new Scene(root);\n\t \t\tStage mainWindow = (Stage)((Node)event.getSource()).getScene().getWindow();\n\t \t\tmainWindow.setScene(multScene);\n\t \t\tmainWindow.show();\n\t \t}\n \t}catch(Exception e) {\n\t\t\tValues.showError();\n\t\t}\n }", "private void mainScene(){\n // create maze load and route load/save buttons\n Button loadMazeButton = new Button(\"Load Maze\");\n loadMazeButton.setStyle(buttonStyle);\n loadMazeButton.setMinHeight(50);\n loadMazeButton.setMinWidth(170);\n Button loadRouteButton = new Button(\"Load Route\");\n loadRouteButton.setStyle(buttonStyle);\n loadRouteButton.setMinHeight(50);\n loadRouteButton.setMinWidth(170);\n Button saveRouteButton = new Button(\"Save Route\");\n saveRouteButton.setStyle(buttonStyle);\n saveRouteButton.setMinHeight(50);\n saveRouteButton.setMinWidth(170);\n\n // organise them in a HBox\n HBox routeBox = new HBox();\n routeBox.setAlignment(Pos.CENTER);\n routeBox.setSpacing(10);\n routeBox.setPadding(new Insets(10.0));\n routeBox.getChildren().addAll(\n loadMazeButton, loadRouteButton, saveRouteButton\n );\n\n // create maze display and display it in a VBox\n vMaze = null;\n tileBox = new VBox();\n tileBox.setAlignment(Pos.CENTER);\n tileBox.setBackground(new Background(\n new BackgroundFill(\n Color.rgb(176,188,60),\n CornerRadii.EMPTY,\n Insets.EMPTY\n )\n ));\n\n // which further goes into a HBox\n // this creates two layers of background: the interior\n // of the maze and the exterior to the left and right\n HBox tileBackground = new HBox();\n tileBackground.setAlignment(Pos.CENTER);\n tileBackground.setMinHeight(VisualMaze.DISPLAY_HEIGHT);\n tileBackground.setMinWidth(VisualMaze.DISPLAY_WIDTH);\n tileBackground.getChildren().add(tileBox);\n\n // create step button and label for messages\n Button stepButton = new Button(\"Next Step\");\n stepButton.setMinHeight(50);\n stepButton.setMinWidth(80);\n stepButton.setStyle(buttonStyle);\n mainMessage = new Label();\n mainMessage.setFont(new Font(\"Arial\", 30));\n mainMessage.setTextFill(Color.web(\"#c4bd52\"));\n mainMessage.setContentDisplay(ContentDisplay.CENTER);\n\n // and organise them on a borderpane\n BorderPane stepBox = new BorderPane();\n stepBox.setPadding(new Insets(10.0));\n stepBox.setRight(stepButton);\n stepBox.setLeft(mainMessage);\n\n // load all containers on a root container\n VBox root = new VBox();\n root.setAlignment(Pos.CENTER);\n root.setBackground(new Background(\n new BackgroundFill(\n Color.rgb(80,76,76),\n CornerRadii.EMPTY,\n Insets.EMPTY\n )\n ));\n root.getChildren().addAll(routeBox, tileBackground, stepBox);\n \n // set the main scene\n main = new Scene(root);\n\n // set the button events\n stepButton.setOnAction(e->{nextStep();});\n loadMazeButton.setOnAction(e->{requestInput(RequestType.MAZE);});\n loadRouteButton.setOnAction(e->{requestInput(RequestType.LROUTE);});\n saveRouteButton.setOnAction(e->{requestInput(RequestType.SROUTE);});\n }", "@Test\n public void testInvalidAttemptLinks() {\n try {\n //link row 1\n largeMaze.linkPillars(Maze.position(0, 0), Maze.position(1, 0));\n largeMaze.linkPillars(Maze.position(1, 0), Maze.position(2, 0));\n largeMaze.linkPillars(Maze.position(2, 0), Maze.position(3, 0));\n largeMaze.linkPillars(Maze.position(3, 0), Maze.position(4, 0));\n largeMaze.linkPillars(Maze.position(1, 0), Maze.position(1, 1));\n\n //link row 2\n largeMaze.linkPillars(Maze.position(1, 1), Maze.position(2, 1));\n largeMaze.linkPillars(Maze.position(1, 1), Maze.position(1, 2));\n largeMaze.linkPillars(Maze.position(3, 1), Maze.position(4, 1));\n\n //link row 3\n largeMaze.linkPillars(Maze.position(1, 2), Maze.position(1, 3));\n largeMaze.linkPillars(Maze.position(1, 2), Maze.position(2, 2));\n\n //link row 4\n largeMaze.linkPillars(Maze.position(1, 3), Maze.position(0, 3));\n largeMaze.linkPillars(Maze.position(1, 3), Maze.position(2, 3));\n largeMaze.linkPillars(Maze.position(3, 3), Maze.position(4, 3));\n largeMaze.linkPillars(Maze.position(0, 3), Maze.position(0, 4));\n\n //link row 5\n largeMaze.linkPillars(Maze.position(0, 4), Maze.position(1, 4));\n largeMaze.linkPillars(Maze.position(1, 4), Maze.position(2, 4));\n largeMaze.linkPillars(Maze.position(2, 4), Maze.position(3, 4));\n largeMaze.linkPillars(Maze.position(3, 4), Maze.position(4, 4));\n\n //set beginning and end\n largeMaze.setBegin(Maze.position(0, 0));\n largeMaze.setEnd(Maze.position(4, 4));\n } catch (Exception e) {\n fail(\"Unexpected exception was thrown while linking pillars.\");\n }\n\n //invoke attemptLinks\n try {\n testPillars = largeMaze.getPillars();\n testPillar = testPillars.get(Maze.position(3,3));\n testPillar.setPlanksLeft(0);\n attemptLinks.invoke(solver.getClass(), testPillar, largeMaze.getEnd(), testESet, testNQueue);\n } catch (Exception e) {\n fail(\"Unexpectedly could not invoke attemptLinks().\");\n }\n\n assertEquals(0, testESet.size());\n assertEquals(0, testNQueue.size());\n }", "public void GenerateMaze(int x, int y){\r\n visited[x][y] = true;\r\n\r\n while(!visited[x][y+1]|| !visited[x+1][y] || !visited[x][y-1] || !visited[x-1][y]) {\r\n\r\n while(true){\r\n Random rand = new Random();\r\n int n = rand.nextInt(4);\r\n if ( n == 0 && !visited[x][y+1]){\r\n this.board[x][y].southwall = false;\r\n this.board[x][y+1].northwall = false;\r\n GenerateMaze(x, y+1);\r\n break;\r\n }\r\n else if ( n == 1 && !visited[x+1][y]){\r\n this.board[x][y].eastwall = false;\r\n this.board[x+1][y].westwall = false;\r\n GenerateMaze(x+1, y);\r\n break;\r\n }\r\n else if ( n == 2 && !visited[x][y-1]){\r\n this.board[x][y].northwall = false;\r\n this.board[x][y-1].southwall = false;\r\n GenerateMaze(x, y-1);\r\n break;\r\n }\r\n else if( n == 3 && !visited[x-1][y]){\r\n this.board[x][y].westwall = false;\r\n this.board[x-1][y].eastwall = false;\r\n GenerateMaze(x-1, y);\r\n break;\r\n }\r\n }\r\n }\r\n }", "public static void main(String[] args) throws IOException {\n\t\tCrawlMethods cm = new CrawlMethods();\n\t\tString url = cm.getURL();\n\t\tint pageNumber;\n\t\tint eachPageNumber = 2;\n\t\tBoolean isOver = false;\n\t\t\n\t\ttry {\n\t\t\tcm.loopPost(url);\n\t\t\twhile (true) {\n\t\t\t\tisOver = cm.enterPost();\n\t\t\t\tif (isOver) {\n\t\t\t\t\tSystem.out.println(\"끝\");\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\tpageNumber = cm.getPageNumber();\n\t\t\t\tif (pageNumber % 10 == 0) {\n\t\t\t\t\tif (pageNumber == 10) {\n\t\t\t\t\t\tcm.TenNext();\n\t\t\t\t\t\teachPageNumber = 2;\n\t\t\t\t\t\tcontinue;\n\t\t\t\t\t} else {\n\t\t\t\t\t\tcm.afterTenNext();\n\t\t\t\t\t\teachPageNumber = 2;\n\t\t\t\t\t\tcontinue;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t// 만약 10페이지 미만이면\n\t\t\t\tif (pageNumber < 10) {\n\t\t\t\t\tcm.beforeTenClickNext(eachPageNumber);\n\t\t\t\t\teachPageNumber++;\n\t\t\t\t\tThread.sleep(2500);\n\t\t\t\t} else {\n\t\t\t\t\tcm.afterTenClickNext(eachPageNumber);\n\t\t\t\t\teachPageNumber++;\n\t\t\t\t\tThread.sleep(2500);\n\t\t\t\t}\n\n\t\t\t}\n\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\t\n\t\ttry {\n\t\t\tparsePDF pp = new parsePDF();\n\t\t\tpp.parseData(pp.readFilesFromDirectory());\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n\n\t}", "public void actionPerformed(ActionEvent e) {\r\n\t\t// create an instance of NewPage\r\n\t\tNewPage newPage = new NewPage(canvas);\r\n\t\t// create new WhiteBoard Page\r\n\t\tnewPage.createNewWbPage();\r\n\t\t// create an instance PresentationInfoListData object to \r\n\t\t//add to PresentationList.\r\n\t\tPresentationInfoListData data =\r\n\t\t\tnew PresentationInfoListData(0, false, newPage.getKey());\r\n\t\tpresentationInfo.add(data);\r\n\t\t// notify all the participants that a new WhiteBoard has been opened\r\n\t\t// and selected\r\n\t\tDataEvent.notifySender(\r\n\t\t\tcanvas.getApplicationType(),\r\n\t\t\tpresentationInfo.getListModel().getSize(),\r\n\t\t\tnewPage.getKey(),\r\n\t\t\tgetToolString());\r\n\t\t\t\r\n\t\t// select the current new WhiteBoard\r\n\t\tpresentationInfo.getPresentationList().setSelectedValue(data, true);\r\n\r\n\t}" ]
[ "0.58455616", "0.58431137", "0.5788204", "0.57825077", "0.5703584", "0.56637096", "0.5623228", "0.5615895", "0.5606724", "0.55127734", "0.54263955", "0.5331907", "0.53257024", "0.5291036", "0.5278551", "0.52474046", "0.52427137", "0.520333", "0.51802117", "0.5170479", "0.51648563", "0.5157715", "0.5116159", "0.5104739", "0.50940037", "0.5076836", "0.5056726", "0.5047731", "0.5043606", "0.5032097", "0.50184697", "0.49811268", "0.49739033", "0.49697003", "0.49679473", "0.4964273", "0.49597237", "0.49569076", "0.49341995", "0.49294534", "0.49215326", "0.49151453", "0.49070615", "0.49067447", "0.4901541", "0.48975843", "0.48913032", "0.48901954", "0.48885715", "0.488855", "0.48880664", "0.48735738", "0.4865559", "0.4856973", "0.48533538", "0.4850404", "0.484803", "0.4840315", "0.48371953", "0.4834713", "0.48327562", "0.48253953", "0.4808398", "0.47989625", "0.47981092", "0.47936535", "0.47856975", "0.47853965", "0.47845978", "0.47842252", "0.4780814", "0.47748494", "0.47711015", "0.47680408", "0.47667298", "0.47639775", "0.47614077", "0.4759469", "0.47573787", "0.4755285", "0.47542733", "0.474905", "0.47461215", "0.47452462", "0.47442374", "0.47421083", "0.47368294", "0.47298598", "0.47257006", "0.4725326", "0.47171885", "0.47167185", "0.47156948", "0.4714225", "0.4710071", "0.47093123", "0.47086507", "0.47085518", "0.46986473", "0.4697957" ]
0.6014329
0
sends the user to the Wikipedia site after clicking on the white circle next to DepthFirstSearch The link is an information about the DFS algorithm that can be used to solve the maze
public void DFSInfo(ActionEvent actionEvent) { try { Desktop.getDesktop().browse(new URL("https://en.wikipedia.org/wiki/Depth-first_search").toURI()); } catch (IOException e) { e.printStackTrace(); } catch (URISyntaxException e) { e.printStackTrace(); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void BFSInfo(ActionEvent actionEvent)\n {\n try {\n Desktop.getDesktop().browse(new URL(\"https://en.wikipedia.org/wiki/Breadth-first_search\").toURI());\n } catch (IOException e) {\n e.printStackTrace();\n } catch (URISyntaxException e)\n {\n e.printStackTrace();\n }\n }", "private void showWebResultForNode(IndexNode node)\n {\n if(node == null) return;\n \n final int MAX_CHARS = 25; \n JPanel panel = new JPanel(new GridLayout(7, 2));\n \n panel.add(new JLabel(\"URL\"));\n panel.add(new JLabel(limitString(node.getURL(), MAX_CHARS)));\n panel.add(new JLabel(\"Parent URL\"));\n panel.add(new JLabel(limitString(node.getParent(), MAX_CHARS)));\n panel.add(new JLabel(\"Title\"));\n panel.add(new JLabel(limitString(node.getTitle(), MAX_CHARS)));\n panel.add(new JLabel(\"Description\"));\n panel.add(new JLabel(limitString(node.getDescription(), MAX_CHARS + 10)));\n panel.add(new JLabel(\"Last updated\"));\n panel.add(new JLabel(limitString(node.getLastUpdated().toString(), MAX_CHARS + 10)));\n panel.add(new JLabel(\"Page rank\"));\n panel.add(new JLabel(limitString(\"\" + node.getRank(), 12)));\n \n JButton openInBrowser = new JButton(\"Open in browser\");\n JButton copyClipboard = new JButton(\"Copy to clipboard\");\n openInBrowser.setIcon(new ImageIcon(webIconImage));\n copyClipboard.setIcon(new ImageIcon(clipboardImage));\n panel.add(openInBrowser);\n panel.add(copyClipboard);\n \n ActionListener listener = (ActionEvent e) -> \n {\n Object src = e.getSource();\n \n //Open page at URL\n if(src == openInBrowser)\n openPage(node.getURL());\n \n //Copy URL to clipboard\n else if(src == copyClipboard)\n copyToClipboard(node.getURL());\n };\n \n openInBrowser.addActionListener(listener);\n copyClipboard.addActionListener(listener);\n \n\n \n panel.setBorder(BorderFactory.createEmptyBorder(15, 15, 15, 15));\n JDialog modal = new JDialog(frame);\n modal.getContentPane().add(panel);\n modal.setLocation(frame.getWidth() - panel.getSize().width, frame.getHeight() / 2 - panel.getSize().height);\n modal.setTitle(\"Address Data\");\n modal.pack();\n \n modal.addWindowListener(new WindowAdapter()\n {\n @Override\n public void windowClosing(WindowEvent e)\n {\n resultsTable.clearSelection();\n modalOpen = false;\n }\n });\n \n modal.setVisible(true);\n }", "public void actionPerformed(ActionEvent e) {\r\n mode = InputMode.DFS;\r\n instr.setText(\"Click one node to start Depth First Traversal from it.\");\r\n }", "public static void main(String[] args) throws IOException {\r\n\t\t\r\n // some example code to get you started\r\n\r\n\t\tString url = \"https://en.wikipedia.org/wiki/Java_(programming_language)\";\r\n\t\tElements paragraphs = wf.fetchWikipedia(url);\r\n\t\tString baseUrl = \"https://en.wikipedia.org\";\r\n\t\tString location = \"\";\r\n\t\tList<String> visited = new ArrayList<>();\r\n\t\tElement firstPara = paragraphs.get(0);\r\n\t\tboolean notFound = true;\r\n\t\tboolean first = false;\r\n\t\tint i = 0;\r\n\t\tIterable<Node> iter = new WikiNodeIterable(firstPara);\r\n\t\tvisited.add(url);\r\n\t\twhile (notFound && i < 7) {\r\n\t\t\tfor (Node node: iter) {\r\n\t\t\t\tif (node instanceof Element) {\r\n\t\t\t\t\tElement e2 = (Element) node;\r\n\t\t\t\t\tString e2txt = e2.text();\r\n\t\t\t\t\tElements e = e2.children();\r\n\t\t\t\t\tfor (Node n : e) {\r\n\t\t\t\t\t\tif (n instanceof Element) {\r\n\t\t\t\t\t\t\tElement e3 = (Element) n;\r\n\t\t\t\t\t\t\tif (!first) {\r\n\t\t\t\t\t\t\t\tif (e3.tag().toString().equals(\"a\")) {\r\n\t\t\t\t\t\t\t\t\tif (e2txt.indexOf(\"(\") < e2txt.indexOf(e3.text()) && e2txt.indexOf(\")\") > e2txt.indexOf(e3.text())) {\r\n\r\n\t\t\t\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\t\t\t\tfirst = true;\r\n\t\t\t\t\t\t\t\t\t\tString str = e3.toString();\r\n\t\t\t\t\t\t\t\t\t\tString[] arr = str.split(\" \");\r\n\t\t\t\t\t\t\t\t\t\tlocation = arr[1].substring(6, arr[1].length() - 1);\r\n\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t\tif (!first) {\r\n\t\t\t\t\t\tSystem.out.println(\"No links found, exiting.\");\r\n\t\t\t\t\t\treturn;\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tparagraphs = wf.fetchWikipedia(baseUrl + location);\r\n\t\t\titer = new WikiNodeIterable(paragraphs.get(0));\r\n\t\t\tfirst = false;\r\n\t\t\tif (visited.contains(baseUrl + location)) {\r\n\t\t\t\tSystem.out.println(\"Links go in a loop, exiting\");\r\n\t\t\t\treturn;\r\n\t\t\t}\r\n\t\t\tvisited.add(baseUrl + location);\r\n\t\t\ti++;\r\n\t\t\tif (location.substring(6).equals(\"Philosophy\")) {\r\n\t\t\t\tnotFound = false;\r\n\t\t\t\tSystem.out.println(\"Philosophy found in \" + i + \" jumps\");\r\n\t\t\t}\r\n }\r\n System.out.println(visited);\r\n\t}", "public static void liveDemo() {\n Scanner in = new Scanner( System.in );\n float srcTank1, srcTank2, destTank;\n int alternetPaths;\n Graph mnfld = new Graph();\n boolean runSearch = true;\n\n //might need to limit query results, too large maybe?\n //newnodes = JDBC.graphInformation(); //returns arraylist of nodes\n //mnfld.setPipes(newnodes); //set nodes to the manifold\n //JDBC.insertConnections(mnfld);\n\n//\t\t /*\n//\t\t\tfor (int i = 0; i < newnodes.length(); i++) { //length might be wrong\n//\t\t\t\t//need to look for way to add edges by looking for neighbor nodes i think\n//\t\t\t\t//loop through nodes and create Edges\n//\t\t\t\t//might need new query\n//\t\t\t\tnewedges.addEdge(node1,node2,cost);\n//\t\t\t}\n//\n//\t\t\tmnfld.setConnections(newedges);\n//\n//\t\t\tup to this point, graph should be global to Dijkstra and unused.\n//\t\t\tloop until user leaves page\n//\t\t\tget input from user for tanks to transfer\n//\t\t\tfind shortest path between both tanks\n//\t\t\tend loop\n//\t\t\tthis will change depending how html works so not spending any time now on it\n//\t\t*/\n //shortestPath.runTest();\n\n shortestPath.loadGraph( mnfld );\n while (runSearch) {\n // Gets user input\n System.out.print( \"First Source Tank: \" );\n srcTank1 = in.nextFloat();\n System.out.print( \"Second Source Tank: \" );\n srcTank2 = in.nextFloat();\n System.out.print( \"Destination Tank: \" );\n destTank = in.nextFloat();\n System.out.print( \"Desired Number of Alternate Paths: \" );\n alternetPaths = in.nextInt();\n\n // Prints outputs\n Dijkstra.resetCosts( mnfld );\n System.out.println( \"True shortest with alt paths\" );\n Dijkstra.findAltPaths( mnfld, alternetPaths, srcTank1, destTank );\n mnfld.restoreDroppedConnections();\n\n Dijkstra.resetCosts( mnfld );\n System.out.println( \"Lineup Considering used connections\" );\n Dijkstra.findMinPaths( mnfld, mnfld.getPipe( srcTank1 ), true );\n mnfld.getPipe( destTank ).printLine();\n mnfld.restoreDroppedConnections();\n\n Dijkstra.resetCosts( mnfld );\n System.out.println( \"Lineup Considering only open connections\" );\n Dijkstra.findMinPaths( mnfld, mnfld.getPipe( srcTank1 ), false );\n mnfld.getPipe( destTank ).printLine();\n mnfld.restoreDroppedConnections();\n\n Dijkstra.resetCosts( mnfld );\n System.out.println( \"Merge Lineup\" );\n Dijkstra.findMinPaths( mnfld, mnfld.getPipe( srcTank1 ) );\n System.out.println( \"\\t Original Lineup: \" );\n mnfld.getPipe( destTank ).printLine();\n System.out.println( \"\\t Merged Lineup: \" );\n Dijkstra.mergePaths( mnfld, srcTank2, mnfld.getPipe( destTank ).getPath(), mnfld.getPipe( destTank ) );\n System.out.print( \"\\nRun another search [1:Yes, 0:No] :: \" );\n if (in.nextInt() == 0) runSearch = false;\n else System.out.println( \"\\n\\n\\n\" );\n }\n\n\n }", "public static void main(String[] args) throws IOException {\n Deque<String> urlsToVisit = new ArrayDeque<String>();\n // Keep track of which URLs we have visited, so we don't get ourselves stuck in a loop.\n List<String> visitedUrls = new ArrayList<String>();\n // Keep track of how we got to each page, so that we can find our trace back to the BEGIN_URL.\n Hashtable<String, String> referrers = new Hashtable<String, String>();\n boolean pathFound = false;\n\n // Begin with the BEGIN_URL\n urlsToVisit.push(BEGIN_URL);\n\n while(!urlsToVisit.isEmpty() && !pathFound) {\n String currentUrl = urlsToVisit.pop();\n visitedUrls.add(currentUrl);\n\n Elements paragraphs = wf.fetchWikipedia(BASE_URL + currentUrl);\n List<String> pageUrls = new ArrayList<String>();\n\n for (Element p : paragraphs) {\n pageUrls.addAll(getLinksFromParagraph(p));\n }\n\n // Reverse the order of all page urls so that when we're done pushing all the URLS\n // to the stack, the first URL in the page will be the first URL in the current page.\n Collections.reverse(pageUrls);\n\n // Add all the URLs to the list of URLs to visit.\n for (String newUrl : pageUrls) {\n if(!visitedUrls.contains(newUrl)) {\n urlsToVisit.push(newUrl);\n // Record how we ended up at newUrl.\n referrers.put(newUrl, currentUrl);\n\n // Check if one of the links in this page is the END_URL; which means we'll be done!\n if (newUrl.equals(END_URL)) {\n pathFound = true;\n }\n }\n }\n }\n\n if (pathFound) {\n System.out.println(\"=================\");\n System.out.println(\"Path found!\");\n System.out.println(\"=================\");\n\n // Back trace how we ended up at END_URL.\n String backtraceUrl = END_URL;\n System.out.println(backtraceUrl);\n while(backtraceUrl != BEGIN_URL) {\n String referrerUrl = referrers.get(backtraceUrl);\n System.out.println(referrerUrl);\n backtraceUrl = referrerUrl;\n }\n } else {\n System.out.println(\"=================\");\n System.out.println(\"No path found :(\");\n System.out.println(\"=================\");\n }\n }", "public void ClickSearchOnline() throws InterruptedException {\n\n searchOnline.click();\n //sameOriginAndDestination();\n\n\n }", "void dfs(){\n // start from the index 0\n for (int vertex=0; vertex<v; vertex++){\n // check visited or not\n if (visited[vertex]==false){\n Explore(vertex);\n }\n }\n }", "@Override\n public void crawl() throws IOException {\n final String seedURL = url;\n Queue<String> currentDepthQueue = new LinkedList<>();\n currentDepthQueue.add(seedURL);\n crawl(visitedURL, 1, currentDepthQueue);\n customObjectWriter.flush();\n }", "public void bestInfo(ActionEvent actionEvent)\n {\n try {\n Desktop.getDesktop().browse(new URL(\"https://en.wikipedia.org/wiki/Best-first_search\").toURI());\n } catch (IOException e) {\n e.printStackTrace();\n } catch (URISyntaxException e)\n {\n e.printStackTrace();\n }\n }", "public static void main(String[] args) {\n\n BDNode a = new BDNode(\"A\");\n BDNode b = new BDNode(\"B\");\n BDNode c = new BDNode(\"C\");\n BDNode d = new BDNode(\"D\");\n BDNode e = new BDNode(\"E\");\n\n a.link(b);\n a.link(d);\n b.link(a);\n b.link(c);\n b.link(e);\n c.link(b);\n c.link(d);\n d.link(a);\n d.link(c);\n d.link(e);\n e.link(b);\n e.link(d);\n\n BDNode target = e;\n\n/*\n // BFS\n Queue<BDNode> queue = new LinkedList<>();\n queue.offer(a);\n\n while(!queue.isEmpty()) {\n BDNode n = queue.poll();\n n.visit();\n System.out.println(n); // 찾는 여정 출력\n\n if(n.equals(target)) {\n System.out.println(\"BFS Found! \" + n);\n break;\n }\n\n for (BDNode l : n.links) {\n if(l.isVisited()) continue;\n if (queue.contains(l)) continue;\n queue.offer(l);\n }\n\n // 위랑 같은 표현\n// n.links.stream()\n// .filter(l -> !queue.contains(l))\n// .forEach(queue::offer);\n }\n*/\n\n // DFS\n Stack<BDNode> stack = new Stack<>();\n stack.push(a);\n\n while(!stack.isEmpty()) {\n BDNode n = stack.pop();\n n.visit();\n System.out.println(n); // 찾는 여정 출력\n\n if (n.equals(target)) {\n System.out.println(\"DFS Found! \" + n);\n break;\n }\n\n for (BDNode l : n.links) {\n if (l.isVisited()) continue;\n if (stack.contains(l)) continue;\n\n stack.push(l);\n }\n }\n\n\n }", "@SuppressWarnings(\"unchecked\")\r\n public void mouseClicked(MouseEvent e) {\r\n Graph<NodeData,EdgeData>.Node nearbyNode = findNearbyNode(e.getX(),e.getY());\r\n boolean work = false;\r\n switch (mode) {\r\n case ADD_NODES:\r\n if (nearbyNode==null){\r\n char c = (char)(canvas.graph.numNodes()%26+65);\r\n canvas.graph.addNode(new NodeData(e.getPoint(),Character.toString(c)));\r\n canvas.repaint();\r\n work = true;\r\n }\r\n if (!work){\r\n Toolkit.getDefaultToolkit().beep();\r\n }\r\n break;\r\n case RMV_NODES:\r\n if (nearbyNode!=null){\r\n canvas.graph.removeNode(nearbyNode);\r\n canvas.repaint();\r\n work = true;\r\n }\r\n if (!work){\r\n Toolkit.getDefaultToolkit().beep();\r\n }\r\n break;\r\n case BFS:\r\n if (nearbyNode!=null){\r\n (new TraversalThread(canvas.graph.BFS(nearbyNode))).execute();\r\n work = true;\r\n }\r\n if (!work){\r\n Toolkit.getDefaultToolkit().beep();\r\n }\r\n break;\r\n case DFS:\r\n if (nearbyNode!=null) {\r\n (new TraversalThread(canvas.graph.DFS(nearbyNode))).execute();\r\n work = true;\r\n }\r\n if (!work) {\r\n Toolkit.getDefaultToolkit().beep();\r\n }\r\n break;\r\n case CHG_TEXT:\r\n if (nearbyNode!=null) {\r\n while (!work) {\r\n try {\r\n JFrame frame = new JFrame(\"Enter a text\");\r\n String text = JOptionPane.showInputDialog(frame, \"Please enter the text on this node.\");\r\n if (text != null) {\r\n nearbyNode.getData().setText(text);\r\n canvas.repaint();\r\n work = true;\r\n } else {\r\n Toolkit.getDefaultToolkit().beep();\r\n }\r\n } catch (Exception exception){\r\n //do nothing\r\n }\r\n }\r\n }\r\n }\r\n }", "HtmlPage clickLink();", "HtmlPage clickSiteLink();", "private void searchNext(CrawlingSession executor, Link link) {\n HTMLLinkExtractor htmlLinkExtractor = HTMLLinkExtractor.getInstance();\n// htmlLinkExtractor.setWorking(link);\n \n Source source = CrawlingSources.getInstance().getSource(link.getSourceFullName());\n if(source == null) return;\n \n SessionStore store = SessionStores.getStore(source.getCodeName());\n if(store == null) return;\n\n List<Link> collection = htmlLinkExtractor.getLinks(link, /*link.getSource(),*/ pagePaths);\n// List<Link> collection = htmlLinkExtractor.getLinks(srResource);\n List<Link> nextLinks = createNextLink(link, collection);\n if(nextLinks.size() < 1) return;\n if(userPaths == null && contentPaths == null) {\n executor.addElement(nextLinks, link.getSourceFullName());\n return;\n }\n \n \n if(nextLinks.size() < 2) {\n executor.addElement(nextLinks, link.getSourceFullName());\n }\n \n// long start = System.currentTimeMillis();\n \n int [] posts = new int[nextLinks.size()];\n for(int i = 0; i < nextLinks.size(); i++) {\n try {\n posts[i] = PageDownloadedTracker.searchCode(nextLinks.get(i), true);\n } catch (Throwable e) {\n posts[i] = -1;\n LogService.getInstance().setThrowable(link.getSourceFullName(), e);\n// executor.abortSession();\n// return;\n }\n }\n \n int max = 1;\n for(int i = 0; i < posts.length; i++) {\n if(posts[i] > max) max = posts[i];\n }\n \n// System.out.println(\" thay max post la \"+ max);\n \n List<Link> updateLinks = new ArrayList<Link>();\n for(int i = 0; i < posts.length; i++) {\n if(posts[i] >= max) continue;\n updateLinks.add(nextLinks.get(i));\n }\n \n// long end = System.currentTimeMillis();\n// System.out.println(\"step. 4 \"+ link.getUrl()+ \" xu ly cai ni mat \" + (end - start));\n \n executor.addElement(updateLinks, link.getSourceFullName());\n \n /*int minPost = -1;\n Link minLink = null;\n List<Link> updateLinks = new ArrayList<Link>();\n for(int i = 0; i < nextLinks.size(); i++) {\n Link ele = nextLinks.get(i);\n int post = 0;\n try {\n post = PostForumTrackerService2.getInstance().read(ele.getAddressCode());\n } catch (Exception e) {\n LogService.getInstance().setThrowable(link.getSource(), e);\n }\n if(post < 1) {\n updateLinks.add(ele);\n continue;\n } \n\n if(minPost < 0 || post < minPost){\n minLink = ele;\n minPost = post; \n } \n }\n\n if(minLink != null) updateLinks.add(minLink);\n executor.addElement(updateLinks, link.getSource());*/\n }", "static void dfs(int u) { // DFS for normal usage: as graph traversal\r\n\t\t\t\t\t\t\t\t// algorithm\r\n\t\tSystem.out.printf(\" %d\", u); // this vertex is visited\r\n\t\tdfs_num[u] = DFS_BLACK; // important step: we mark this vertex as\r\n\t\t\t\t\t\t\t\t// visited\r\n\t\tfor (int j = 0; j < AdjList[u].size(); j++) {\r\n\t\t\tEdge v = AdjList[u].get(j); // v is a (neighbor,\r\n\t\t\t\t\t\t\t\t\t\t// weight) pair\r\n\t\t\tif (dfs_num[v.to] == DFS_WHITE) // important check to avoid\r\n\t\t\t\t\t\t\t\t\t\t\t// cycle\r\n\t\t\t\tdfs(v.to); // recursively visits unvisited neighbors v of\r\n\t\t\t\t\t\t\t// vertex u\r\n\t\t}\r\n\t}", "private void dfsVisit(Node node) {\n\t\tStack<Node>stack = new Stack<>();\r\n\t\tstack.push(node); //add source node to queue\r\n\t\twhile(!stack.isEmpty()) {\r\n\t\t\tNode presentNode = stack.pop();\r\n\t\t\tpresentNode.setVisited(true);\r\n\t\t\tSystem.out.print(presentNode.getName()+\" \");\r\n\t\t\tfor(Node neighbor: presentNode.getNeighbors()) { //for each neighbor of present node\r\n\t\t\t\tif(!neighbor.isVisited()) { //if neighbor is not visited then add it to queue\r\n\t\t\t\t\tstack.push(neighbor);\r\n\t\t\t\t\tneighbor.setVisited(true);\r\n\t\t\t\t}\r\n\t\t\t}//end of for loop\r\n\t\t}//end of while loop\r\n\t\t\r\n\t}", "public void dfs(Webpage currentPage) {\n if (currentPage != null) {\n //System.out.println(currentPage.toString());\n linkDatabase.add(currentPage.getUrl());\n webpageDatabase.add(currentPage);\n\n for (String link : currentPage.getLinks()) {\n if (!linkDatabase.contains(link)) {\n dfs(webpageScraper.fetchWebpage(link));\n }\n }\n }\n }", "public void actionPerformed(ActionEvent e) {\r\n mode = InputMode.BFS;\r\n instr.setText(\"Click one node to start Breath First Traversal from it.\");\r\n }", "public void crawlAndIndex(String url) throws Exception {\r\n\t\t// TODO : Add code here\r\n\t\tQueue<String> queue=new LinkedList<>();\r\n\t\tqueue.add(url);\r\n\t\twhile (!queue.isEmpty()){\r\n\t\t\tString currentUrl=queue.poll();\r\n\t\t\tif(internet.getVisited(currentUrl)){\r\n\t\t\t\tcontinue;\r\n\t\t\t}\r\n\t\t\tArrayList<String> urls = parser.getLinks(currentUrl);\r\n\t\t\tArrayList<String> contents = parser.getContent(currentUrl);\r\n\t\t\tupdateWordIndex(contents,currentUrl);\r\n\t\t\tinternet.addVertex(currentUrl);\r\n\t\t\tinternet.setVisited(currentUrl,true);\r\n\t\t\tfor(String u:urls){\r\n\t\t\t\tinternet.addVertex(u);\r\n\t\t\t\tinternet.addEdge(currentUrl,u);\r\n\t\t\t\tqueue.add(u);\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t}", "@Override\n\tpublic void pathFinderVisited(int x, int y) {\n\t}", "public static void main(String[] args){\n Graph g = new Graph(13);\n //add vortexes and edges to construct the graph\n g.addEdge(0,1);\n g.addEdge(0,2);\n g.addEdge(0,6);\n g.addEdge(0,5);\n g.addEdge(6,4);\n g.addEdge(4,3);\n g.addEdge(4,5);\n g.addEdge(3,5);\n g.addEdge(7,8);\n g.addEdge(9,10);\n g.addEdge(9,11);\n g.addEdge(9,12);\n g.addEdge(11,12);\n\n //create a DepthFirstSearch object\n BreadthFirstSearch DFS = new BreadthFirstSearch(g,0);\n\n System.out.println(\"7 and 0 is connected: \"+ DFS.marked(7));\n System.out.println(\"10 and 0 is connected: \"+ DFS.marked(10));\n System.out.println(\"6 and 0 is connected: \"+ DFS.marked(6));\n System.out.println(\"4 and 0 is connected: \"+ DFS.marked(0));\n System.out.println(\"12 and 0 is connected: \"+ DFS.marked(12));\n\n System.out.println(DFS.count()+\" vortexes connect with the vortex 0.\");\n\n }", "public static void main(String[] args) {\n Graph graph = new Graph();\n graph.addEdge(0, 1);\n graph.addEdge(0, 4);\n\n graph.addEdge(1,0);\n graph.addEdge(1,5);\n graph.addEdge(1,2);\n graph.addEdge(2,1);\n graph.addEdge(2,6);\n graph.addEdge(2,3);\n\n graph.addEdge(3,2);\n graph.addEdge(3,7);\n\n graph.addEdge(7,3);\n graph.addEdge(7,6);\n graph.addEdge(7,11);\n\n graph.addEdge(5,1);\n graph.addEdge(5,9);\n graph.addEdge(5,6);\n graph.addEdge(5,4);\n\n graph.addEdge(9,8);\n graph.addEdge(9,5);\n graph.addEdge(9,13);\n graph.addEdge(9,10);\n\n graph.addEdge(13,17);\n graph.addEdge(13,14);\n graph.addEdge(13,9);\n graph.addEdge(13,12);\n\n graph.addEdge(4,0);\n graph.addEdge(4,5);\n graph.addEdge(4,8);\n graph.addEdge(8,4);\n graph.addEdge(8,12);\n graph.addEdge(8,9);\n graph.addEdge(12,8);\n graph.addEdge(12,16);\n graph.addEdge(12,13);\n graph.addEdge(16,12);\n graph.addEdge(16,17);\n graph.addEdge(17,13);\n graph.addEdge(17,16);\n graph.addEdge(17,18);\n\n graph.addEdge(18,17);\n graph.addEdge(18,14);\n graph.addEdge(18,19);\n\n graph.addEdge(19,18);\n graph.addEdge(19,15);\n LinkedList<Integer> visited = new LinkedList();\n List<ArrayList<Integer>> paths = new ArrayList<ArrayList<Integer>>();\n int currentNode = START;\n visited.add(START);\n new searchEasy().findAllPaths(graph, visited, paths, currentNode);\n for(ArrayList<Integer> path : paths){\n for (Integer node : path) {\n System.out.print(node);\n System.out.print(\" \");\n }\n System.out.println();\n }\n }", "public static String findPath(Maze maze) {\n \tint m = maze.getNumRows();\n \tint n = maze.getNumCols();\n\n \t//define a visited matrix\n \tboolean[][] visited = new boolean[m][n];\n \tsetvisited(false, visited);\n\n \t//define a direction matrix\n \tint[][] dir_mtr = new int[m][n];\n \tinit_dir(-1,dir_mtr);\n\n\n\n \t//define a stack\n \tStack<MazeLocation> s;\n \ts = new StackRefBased<MazeLocation>();\n\n \tMazeLocation entry = maze.getEntry();\n \tMazeLocation exit = maze.getExit();\n \t// System.out.println(entry.toString());\n \ts.push(entry);\n\n\t\tMazeLocation temp; \n\t\tString result = \"\"; \t\n\n\t\ttry{\n\t\t\tint x,y;\n\n\n\t\t\twhile(!s.isEmpty()){\n\n \t\ttemp = s.peek();\n \t\tx = temp.getRow();\n \t\ty = temp.getCol();\n \t\tdir_mtr[x][y]+=1;\n\n \t\tif(temp.toString().equals(exit.toString())){\n \t\t\tSystem.out.println(\"find the path\");\n \t\t\tbreak;\n\n \t\t}\n\n \t\tif(dir_mtr[x][y]==0){ \n \t\t\t//checking the up direction\n \t\t\tif(x-1>=0 && !maze.isWall(x-1,y) && !visited[x-1][y]){\n \t\t\t\tMazeLocation testnode = new MazeLocation(x-1,y,maze.isWall(x-1,y));\n \t\t\t\tvisited[x-1][y] = true;\n \t\t\t\ts.push(testnode);\n\n \t\t\t}\n\n \t\t}else if(dir_mtr[x][y]==1){\n \t\t\t//checking the left direction\n \t\t\tif(y-1>=0 && !maze.isWall(x,y-1) && !visited[x][y-1]){\n \t\t\t\tMazeLocation testnode = new MazeLocation(x,y-1,maze.isWall(x,y-1));\n \t\t\t\tvisited[x][y-1] = true;\n \t\t\t\ts.push(testnode);\n\n \t\t\t}\n\n \t\t}else if(dir_mtr[x][y]==2){\n \t\t\t//checking the down direction\n \t\t\tif(x+1<m && !maze.isWall(x+1,y) && !visited[x+1][y]){\n \t\t\t\tMazeLocation testnode = new MazeLocation(x+1,y,maze.isWall(x+1,y));\n \t\t\t\tvisited[x+1][y] = true;\n \t\t\t\ts.push(testnode);\n\n \t\t\t}\n \t\t\t\n \t\t}else if(dir_mtr[x][y]==3){\n \t\t\t//checking the right direction\n \t\t\tif(y+1<n && !maze.isWall(x,y+1) && !visited[x][y+1]){\n \t\t\t\tMazeLocation testnode = new MazeLocation(x,y+1,maze.isWall(x,y+1));\n \t\t\t\tvisited[x][y+1] = true;\n \t\t\t\ts.push(testnode);\n\n \t\t\t}\n \t\t\t\n \t\t}else{\n \t\t\tvisited[x][y] = false;\n \t\t\ts.pop();\n \t\t}\n\n\n\n \t\t\n \t}\n\n \t//reverse the stack\n \tStack<MazeLocation> reverse;\n \treverse = new StackRefBased<MazeLocation>();\n \twhile(!s.isEmpty()){\n\t\t\t reverse.push(s.pop()); \t//push the node to the reverse stack\n\t\t\t }\n\n\n \t//if the stack is not empty, then we find the path\n\t\tif(!reverse.isEmpty()){\n\t\t\tresult = reverse.toString();\n\n\t\t}\n\n \t\n \n\n\t\t}\n\t\tcatch (StackEmptyException see) {\n \n }\n\n\n \treturn result;\n\n\n }", "public static void main(String[] args) {\n\t\tVector<Edge> edges = GraphReader.readFromFile(\"/tmp/tinyG.txt\",2);\r\n\t\tGraph G = new Graph(edges);\r\n int s = Integer.parseInt(\"1\");\r\n DepthFirstSearch search = new DepthFirstSearch(G.getNodeNum());\r\n Path res = search.dfs(G, s);\r\n res.packetToJson();\r\n //System.out.print(\"success!\");\r\n }", "public static void userSelection_SolveMaze(int userInputN){\n\n\t\tint[] S = new int[(int) Math.pow(userInputN, 2)];\n\t\tgNode[] G = new gNode[S.length];\n\n\t\tboolean [] visited = new boolean[S.length];\t\t//Initialize\n\t\tfor(int i=0; i<visited.length;i++)\n\t\t\tvisited[i] = false;\n\n\t\tint [] path = new int[S.length];\t\t//Initialize \n\t\tfor(int i=0; i<path.length; i++)\n\t\t\tpath[i]=-1;\n\n\t\tScanner input = new Scanner(System.in);\n\t\tSystem.out.println(\"How would you like to solve the maze?\\n\"\n\t\t\t\t+ \"1.\\tBreadth-First Search\\n\"\n\t\t\t\t+ \"2.\\tDepth-First Search\\n\"\n\t\t\t\t+ \"3.\\tDepth-First Search with Recursion\");\n\t\t\n\t\tint ur = input.nextInt();\n\t\t\n\t\tif(ur==1)\t//Breadth-First Search\t\t\\///gNode && start @ position 0\n\t\t\tbfs(G, visited, path, 0);\n\t\telse if(ur==2)\t//Depth-First Search\n\t\t\tdfs_Stack(G, visited, path, 0);\n\t\telse if(ur==3)\t//Depth-First Search w/recursion\t\n\t\t\tdfsRecursion(G, visited, path, 0);\t\n\t\telse{\n\t\t\tSystem.out.println(\"Invalid option. Please enter the appropriate integer value\");\n\t\t\tuserSelection_SolveMaze(userInputN);\n\t\t}\n\t\t\n\t\tinput.close();\n\t}", "void DFS() {\n \t\n \t// Mark all the vertices as not visited(set as false by default in java) \n \tboolean visited[] = new boolean[V];\n \t\n \t// Call the recursive helper function to print DFS traversal \n // starting from all vertices one by one \n \tfor (int i=0; i<V; i++) { \n \t\t if (visited[i] == false)\n \t\t\t DFSUtil(i, visited);\n \t}\n }", "public void depthFirstSearch(Node vertex){\n vertex.visited = true;\n if(vertex.row == row_size-1 && vertex.col == col_size-1){\n while(!dfs_stack.isEmpty()){\n exitPath +=dfs_stack.peek(); \n dfs_stack.pop();\n } \n }\n if(vertex.north!=null && vertex.north.visited==false){\n dfs_stack.push(\"N\");\n vertex.depthFirstSearch(vertex.north);\n }\n if(vertex.south!=null && vertex.south.visited==false){\n dfs_stack.push(\"S\");\n vertex.depthFirstSearch(vertex.south);\n }\n if(vertex.west !=null && vertex.west.visited ==false){\n dfs_stack.push(\"W\");\n vertex.depthFirstSearch(vertex.west);\n }\n if(vertex.east !=null && vertex.east.visited==false){\n dfs_stack.push(\"E\");\n vertex.depthFirstSearch(vertex.east);\n }\n if (!dfs_stack.isEmpty()){\n dfs_stack.pop();\n }\n return;\n }", "public abstract void clickHelp(FloodItWorld w, ACell topLeft);", "public void setVisited()\n {\n visited = true;\n }", "private void goThroughLinks() throws IOException {\n for (URL link :links) {\n pagesVisited++;\n Node node;\n if (link.toString().contains(\"?id=1\") && !books.contains(link)) {\n node = populateNode(link);\n depth = 2;\n books.add(node);\n } else if (link.toString().contains(\"?id=2\") && !movies.contains(link)) {\n node = populateNode(link);\n depth = 2;\n movies.add(node);\n } else if (link.toString().contains(\"?id=3\") && !music.contains(link)) {\n node = populateNode(link);\n depth = 2;\n music.add(node);\n }\n }\n }", "public void dfs (int start) {\n vertexList[start].wasVisited = true; // mark it\n print(start); stack.push(start);\n while (!stack.isEmpty()) {\n int b = getNextUnvisitedNeighbor(stack.peek());\n if (b==-1) stack.pop(); // no unvisited neighbor;\n else {\n vertexList[b].wasVisited = true;\n print(b); stack.push(b);\n }\n }\n // clear wasVisited marks\n }", "public static void main(String[] args) throws FileNotFoundException, IOException {\r\n\r\n //Creating an instance object of the class PathBetweenNodes\r\n PathBetweenNodes x = new PathBetweenNodes();\r\n x.graph = new PathBetweenNodes();\r\n x.readMaze(); // reading the maze from the file\r\n LinkedList<String> visited = new LinkedList<String>(); // creating an array called visited to store visited nodes\r\n System.out.println(\"Enter the source node:\");//asking user to enter the start node\r\n Scanner sc = new Scanner(System.in); // Scanner to input the start node into the system\r\n START = sc.next();\r\n System.out.println(\"Enter the destination node:\");// asking user to input the destination node\r\n END = sc.next(); //scan the destination node into the system\r\n mode(option);\r\n startTimer = System.nanoTime();\r\n visited.add(START);// adding the start node to array visited\r\n new PathBetweenNodes().breadthFirst(x.graph, visited); // implementing the breath first search for graph x and array visited\r\n sc.close(); // scanner must be closed\r\n if (x.graph.flag) {\r\n System.out.println(\"There is existing path between \" + START + \" and \" + END + \" as above.\");\r\n }\r\n if (!x.graph.flag) {\r\n System.out.println(\"No path was found between \" + START + \" and \" + END + \".\");\r\n }\r\n endTimer = System.nanoTime();\r\n long TimeElapsed = endTimer - startTimer;\r\n System.out.println(\"Time taken to solve the maze = \" + TimeElapsed + \" Nano seconds.\");\r\n }", "public static void main(String[] args) throws IOException {\n\t\t\n ArrayList<String> visited = new ArrayList<String>();\n\n\t\tString start = \"https://en.wikipedia.org/wiki/Java_(programming_language)\";\n String finish = \"https://en.wikipedia.org/wiki/Philosophy\";\n String url = start;\n\n for (int i = 0; i < 15; i++) {\n\n if (visited.contains(url)) {\n return;\n }\n else {\n visited.add(url); \n }\n\n Elements paragraphs = fetcher.fetchWikipedia(url);\n Element link = searchPage(paragraphs);\n\n if (link == null) {\n System.err.println(\"No links on this page...\");\n return;\n }\n\n url = link.attr(\"abs:href\");\n System.out.println(\"currently on: \" + url);\n \n if (url.equals(finish)) {\n System.out.println(\"found it!\");\n break;\n }\n }\n\t}", "public static void main(String[] args) {\n\n /*\n * Given below directed graph, show the DFS and BFS traversal and print the paths\n * it took throughout the traversal of the graph\n *\n * (D)--(F)\n * /\n * (B)--(E)\n * /\n * (A)\n * \\\n * (C)--(G)\n *\n * Do Breadth First Search and Depth First Search, conclude on the trade offs\n * between the two traversal\n */\n\n // Initialize the graph here and its edges\n Graphs graph = new Graphs();\n graph.addNode('A', new Node('A'));\n graph.addNode('B', new Node('B'));\n graph.addNode('C', new Node('C'));\n graph.addNode('D', new Node('D'));\n graph.addNode('E', new Node('E'));\n graph.addNode('F', new Node('F'));\n graph.addNode('G', new Node('G'));\n\n graph.addEdge('A','B');\n graph.addEdge('B','D');\n graph.addEdge('D','F');\n graph.addEdge('B','E');\n graph.addEdge('A','C');\n graph.addEdge('C','G');\n\n // Initialize the list of paths\n ArrayList<String> traversedNodes;\n // Do a DFS on the graph\n traversedNodes = graph.depthFirstSearch('A','G');\n System.out.println(\"Traversal in DFS:\");\n // Print all of the paths\n for(String path : traversedNodes) {\n System.out.println(path);\n }\n\n // Do a BFS on the graph\n traversedNodes = graph.breadthFirstSearch('A','G');\n System.out.println(\"\\nTraversal in BFS:\");\n // Print all of the paths\n for(String path : traversedNodes) {\n System.out.println(path);\n }\n\n }", "public void visit() {\n\t\tvisited = true;\n\t}", "String nextLink();", "public void DFS() {\r\n\t\tSet<Vertex> visited = new HashSet<Vertex>();\r\n\r\n\t\t// Create a stack for DFS\r\n\t\tStack<Vertex> stack = new Stack<Vertex>();\r\n\r\n\t\tDFS(this.vertices[3], visited, stack); // DFS starting with 40\r\n\r\n\t\t// Call the helper function to print DFS traversal\r\n\t\t// starting from all vertices one by one\r\n\t\tfor (int i = 0; i < N; ++i)\r\n\t\t\tif (!visited.contains(this.vertices[i]))\r\n\t\t\t\tDFS(this.vertices[i], visited, stack);\r\n\t}", "public static void Welcome (){ //this method outputs welcome information and possibly other relevant information to user\r\n System.out.println(\"Welcome to the Maze Pathfinder Program! \\n\\nThis program can either create a random maze or accept input from a file to create one. Then the program will find a path from the start point to the end point in the maze.\\nEnjoy! \");\r\n System.out.println(\"\\n\");\r\n }", "public void run()\r\n {\n\ttopLevelSearch=FIND_TOP_LEVEL_PAGES;\r\n\ttopLevelPages=new Vector();\r\n\tnextLevelPages=new Vector();\r\n \r\n\t// Check to see if a proxy is being used. If so then we use IP Address rather than host name.\r\n\tproxyDetected=detectProxyServer();\r\n\t \r\n\tstartSearch();\r\n \r\n\tapp.enableButtons();\r\n\tapp.abort.disable();\r\n \r\n\tif(hitsFound == 0 && pageOpened == true)\r\n\t app.statusArea.setText(\"No Matches Found\");\r\n else if(hitsFound==1)\r\n\t app.statusArea.setText(hitsFound+\" Match Found\");\r\n else app.statusArea.setText(hitsFound+\" Matches Found\");\r\n }", "public static void main(String[] args) {\n\t\tDeepFirstSearchGraph main = new DeepFirstSearchGraph();\n\t\tGraph g = main.new Graph(4);\n\t\tg.addEdge(0, 1);\n\t\tg.addEdge(0, 2);\n\t\tg.addEdge(1, 2);\n\t\tg.addEdge(2, 0);\n\t\tg.addEdge(2, 3);\n\t\tg.addEdge(3, 3);\n\t\t\n\t\tint vertexToBegin = 2;\n\t\tSystem.out.println(\"Doing DFS starting from vertex: \"+vertexToBegin);\n\t\tg.DFS(vertexToBegin);\n\t}", "@Override\r\n public void actionPerformed(ActionEvent e)\r\n {\n toggleButtons(false);\r\n if (breadthFirstButton.isSelected())\r\n {\r\n DequeAdder tailAdder = new DequeAdder()\r\n {\r\n @Override\r\n public void add(Vertex vertex, Deque<Vertex> deque)\r\n {\r\n deque.addLast(vertex);\r\n }\r\n };\r\n problem.search((Vertex) problem.getCurrentState(),\r\n tailAdder);\r\n } else if (depthFirstButton.isSelected())\r\n {\r\n DequeAdder headAdder = new DequeAdder()\r\n {\r\n @Override\r\n public void add(Vertex vertex, Deque<Vertex> deque)\r\n {\r\n deque.addFirst(vertex);\r\n }\r\n };\r\n problem.search((Vertex) problem.getCurrentState(),\r\n headAdder);\r\n } else if (AStarButton.isSelected())\r\n {\r\n problem.searchAStar((Vertex) problem.getCurrentState());\r\n }\r\n else if (enhancedAStarButton.isSelected())\r\n {\r\n problem.enhancedAStarSearch((Vertex) problem.getCurrentState());\r\n }\r\n setStats();\r\n showNxtMvBtn.setEnabled(true);\r\n showAllMoves.setEnabled(true);\r\n }", "void changeVisited(){\n\t \t\tthis.isVisited = true;}", "private void DepthFirstSearch(Node current){\n helperDFS( current );\n }", "protected void onJunctionLinkClicked(AjaxRequestTarget target, TreeNode node)\n\t{\n\t}", "public void solve() {\n // TODO\n // This function should use next. You should also create and use any\n // other helper fuctions you find helpful here.\n \t// get start position \t\n \tSquare s = sea.getStart();\n \texploreList.add(s);\n \twhile(this.exploreList.size() != 0) {\n \t\tSquare c = step();\n \t\tif(c.hasNemo()) {\n \t\t\tsetPath(c);\n \t\t\tfoundNemo = true;\n \t\t\tbreak;\n \t\t}\n \t}\n }", "private void DFS() {\n\t\tfor(Node node: nodeList) {\r\n\t\t\tif(!node.isVisited())\r\n\t\t\t\tdfsVisit(node);\r\n\t\t}\r\n\t}", "public void depthFirstSearch() {\n List<Vertex> visited = new ArrayList<Vertex>();\r\n // start the recursive depth first search on the current vertex\r\n this.dfs(visited);\r\n }", "static void graphCheck(int u) {\n\t\tdfs_num[u] = DFS_GRAY; // color this as DFS_GRAY (temp)\r\n\t\tfor (int j = 0; j < (int) AdjList[u].size(); j++) {\r\n\t\t\tEdge v = AdjList[u].get(j);\r\n\t\t\tif (dfs_num[v.to] == DFS_WHITE) { // Tree Edge, DFS_GRAY to\r\n\t\t\t\t\t\t\t\t\t\t\t\t// DFS_WHITE\r\n\t\t\t\tdfs_parent[v.to] = u; // parent of this children is me\r\n\t\t\t\tgraphCheck(v.to);\r\n\t\t\t} else if (dfs_num[v.to] == DFS_GRAY) { // DFS_GRAY to DFS_GRAY\r\n\t\t\t\tif (v.to == dfs_parent[u]) // to differentiate these two\r\n\t\t\t\t\t\t\t\t\t\t\t// cases\r\n\t\t\t\t\tSystem.out.printf(\" Bidirectional (%d, %d) - (%d, %d)\\n\",\r\n\t\t\t\t\t\t\tu, v.to, v.to, u);\r\n\t\t\t\telse\r\n\t\t\t\t\t// la mas usada pillar si tiene un ciclo\r\n\t\t\t\t\tSystem.out.printf(\" Back Edge (%d, %d) (Cycle)\\n\", u, v.to);\r\n\t\t\t} else if (dfs_num[v.to] == DFS_BLACK) // DFS_GRAY to DFS_BLACK\r\n\t\t\t\tSystem.out.printf(\" Forward/Cross Edge (%d, %d)\\n\", u, v.to);\r\n\t\t}\r\n\t\tdfs_num[u] = DFS_BLACK; // despues de la recursion DFS_BLACK (DONE)\r\n\t}", "public void showSolveMaze(String message);", "private void dfs(String source) {\n visited.add(source);\n\n System.out.println(source);\n\n for (Object vertex : graph.get(source)) {\n if (!visited.contains(vertex))\n dfs((String) vertex);\n }\n }", "@Override\n\t\t\tpublic void run() \n\t\t\t{\n\t\t\t\tif(!(mazeCollection.containsKey(paramArray[0])))\n\t\t\t\t{\n\t\t\t\t\tc.passError(\"Maze doesn't exist\");\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t\t/*\n\t\t\t\t//if solution for this maze exists\n\t\t\t\tif(mazeSolutions.containsKey(mazeCollection.get(paramArray[0])))\n\t\t\t\t{\n\t\t\t\t\tc.passSolve(\"Solution for \"+paramArray[0]+ \" is ready\");\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t*/\n\t\t\t\t\n\t\t\t\tif(paramArray[1].toString().equals(\"bfs\"))\n\t\t\t\t{\n\t\t\t\t\tMazeAdapter ms=new MazeAdapter(mazeCollection.get(paramArray[0]));\n\t\t\t\t\t\n\t\t\t\t\tSearcher<Position> bfs=new BFS<Position>();\n\t\t\t\t\tSolution<Position> sol=bfs.search(ms);\n\t\t\t\t\t\n\t\t\t\t\t//check if solution for the maze already exists, if so, replace it with the new one\n\t\t\t\t\tif(mazeSolutions.containsKey(mazeCollection.get(paramArray[0]))) {\n\t\t\t\t\t\tmazeSolutions.remove(mazeCollection.get(paramArray[0]));\n\t\t\t\t\t\tmazeSolutions.put(mazeCollection.get(paramArray[0]), sol);\n\t\t\t\t\t}\n\t\t\t\t\telse {\n\t\t\t\t\t\tmazeSolutions.put(mazeCollection.get(paramArray[0]), sol);\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\tc.passSolve(\"Solution for \"+paramArray[0]+ \" is ready\");\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t\telse if(paramArray[1].toString().equals(\"dfs\"))\n\t\t\t\t{\n\t\t\t\t\tMazeAdapter ms=new MazeAdapter(mazeCollection.get(paramArray[0]));\n\t\t\t\t\t\n\t\t\t\t\tSearcher<Position> dfs=new DFS<Position>();\n\t\t\t\t\tSolution<Position> sol=dfs.search(ms);\n\t\t\t\t\t\n\t\t\t\t\t//check if solution for the maze already exists, if so, replace it with the new one\n\t\t\t\t\tif(mazeSolutions.containsKey(mazeCollection.get(paramArray[0]))) {\n\t\t\t\t\t\tmazeSolutions.remove(mazeCollection.get(paramArray[0]));\n\t\t\t\t\t\tmazeSolutions.put(mazeCollection.get(paramArray[0]), sol);\n\t\t\t\t\t}\n\t\t\t\t\telse {\n\t\t\t\t\t\tmazeSolutions.put(mazeCollection.get(paramArray[0]), sol);\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\tc.passSolve(\"Solution for \"+paramArray[0]+ \" is ready\");\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\tc.passError(\"Invalid algorithm\");\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t}", "public void setVisited(boolean value){this.visited = value;}", "public void run() {\n BFS();\n printBFS();\n shortestPathList();\n printShortestPath();\n printPath();\n }", "private void solve(int x, int y, boolean draw) {\n \t\t// these are the walls of the maze, maze solver should not go beyond\n \t\t// walls\n \t\t// if (x == 0 || y == 0 || x == N + 1 || y == N + 1) {\n \t\t// return;\n \t\t// }\n \n \t\t// if we have already visited this position\n \t\t// or if deep levels of the recursion have found the target\n \t\tif (foundTarget || visited[x][y])\n \t\t\treturn;\n \n \t\t// this position is new, mark it as visited\n \t\tvisited[x][y] = true;\n \n \t\tif (draw) {\n \t\t\t// Draw a blue dot to show we have been here\n \t\t\tStdDraw.setPenColor(StdDraw.BLUE);\n \t\t\tStdDraw.filledCircle(x + 0.5, y + 0.5, 0.25);\n \t\t\tStdDraw.show(SOLVER_SPEED);\n \t\t}\n \n \t\t// if we have reached the maze solve target\n \t\tif (x == target.x && y == target.y) {\n \t\t\tfoundTarget = true;\n \t\t}\n \n \t\t// Try go another place\n \t\tif (!north[x][y])\n \t\t\tsolve(x, y + 1, draw);\n \t\tif (!east[x][y])\n \t\t\tsolve(x + 1, y, draw);\n \t\tif (!south[x][y])\n \t\t\tsolve(x, y - 1, draw);\n \t\tif (!west[x][y])\n \t\t\tsolve(x - 1, y, draw);\n \n \t\tif (foundTarget)\n \t\t\treturn;\n \n \t\tif (draw) {\n \t\t\t// Draw a grey dot to show we have backtracked\n \t\t\tStdDraw.setPenColor(StdDraw.GRAY);\n \t\t\tStdDraw.filledCircle(x + 0.5, y + 0.5, 0.25);\n \t\t\tStdDraw.show(SOLVER_SPEED);\n \t\t}\n \t}", "public static void main(String[] args){\n GraphDFS graphDFS = new GraphDFS(20);\n graphDFS.addNode('A');\n graphDFS.addNode('B');\n graphDFS.addNode('D');\n graphDFS.addNode('C');\n graphDFS.addNode('E');\n graphDFS.addNode('F');\n\n graphDFS.addEdge(0, 1);\n graphDFS.addEdge(1, 2);\n graphDFS.addEdge(0, 3);\n graphDFS.addEdge(3, 4);\n graphDFS.addEdge(4, 5);\n graphDFS.addEdge(1, 5);\n\n graphDFS.dfsTraversal();\n }", "public void startSearch() {\n if (solving) {\n Alg.Dijkstra();\n }\n pause(); //pause state\n }", "public void showSaveMaze(String message);", "public void clickNederlands(){\r\n\t\tclass Local {};\r\n\t\tReporter.log(\"TestStepComponent\"+Local.class.getEnclosingMethod().getName());\r\n\t\tReporter.log(\"TestStepInput:-\"+\"NA\");\r\n\t\tReporter.log(\"TestStepOutput:-\"+\"NA\");\r\n\t\tReporter.log(\"TestStepExpectedResult:- Nederalnds link should be clicked\");\r\n\t\ttry{\r\n\r\n\t\t\tclick(locator_split(\"lnkNederland\"));\r\n\t\t\tReporter.log(\"PASS_MESSAGE:- Nederalnds link is clicked\");\r\n\r\n\t\t}\r\n\t\tcatch(Exception e){\r\n\t\t\tReporter.log(\"FAIL_MESSAGE:- Nederalnds link is not clicked\");\r\n\t\t\tthrow new NoSuchElementException(\"The element with\"\r\n\t\t\t\t\t+ elementProperties.getProperty(\"lnkNederland\")\r\n\t\t\t\t\t+ \" not found\");\r\n\r\n\t\t}\r\n\r\n\t}", "@Override\n public void traverse()\n {\n System.out.print(\"DFS Tree: \");\n DFSHelper(root);\n System.out.println();\n }", "public static void main(String[] args) throws IOException{\n\t\tSite site=new Site(\"E:\\\\Eclipse\\\\New folder\\\\Proiect_01_RIW\\\\stackoverflow/\", \"https://stackoverflow.com/\");\r\n\t\tSystem.out.print(\"Creare index direct...\\n\");\r\n\t\t\r\n\t\tHashMap<String, HashMap<String, Integer>> directIndex = TF_IDF.directIndex(site);\r\n\t\tSystem.out.print(\"-------------------------------------------------------------------------\\n\");\r\n\t\tSystem.out.print(\"Creare index indirect...\\n\\n\");\r\n TreeMap<String, HashMap<String, Integer>> indirectIndex = TF_IDF.indirectIndex(site);\r\n System.out.print(\"-------------------------------------------------------------------------\\n\");\r\n\t\tSystem.out.print(\"Incarcare index indirect din memorie...\\n\");\r\n\t\tindirectIndex=TF_IDF.Incarca(true, site.getSiteFolder()+\"indirectindex.json\");\r\n\t\tSystem.out.print(\"-------------------------------------------------------------------------\\n\");\r\n\t\t\r\n System.out.print(\"Aplicare cautare booleana\\nIntroduceti ce vreti sa cautati:\\n\");\r\n Scanner b=new Scanner(System.in);\r\n String interog_booleana=b.nextLine();\r\n System.out.print(\"-------------------------------------------------------------------------\\n\");\r\n System.out.println(\"Incepe cautarea.\");\r\n Set<String>rez_boolean=Cautare_Booleana.Cautare_booleana(interog_booleana, indirectIndex);\r\n if(rez_boolean==null)\r\n {\r\n \tSystem.out.println(\"Nu s-a gasit niciun rezultat\\n\");\r\n }\r\n else\r\n {\r\n \tSystem.out.println(\"Rezultatele gasite din cautarea booleana sunt:\\n\");\r\n \tfor(String doc:rez_boolean)\r\n \t{\r\n \t\tSystem.out.print(\"\\t\"+doc+\"\\n\");\r\n \t}\r\n }\r\n System.out.print(\"-------------------------------------------------------------------------\\n\");\r\n\t\tSystem.out.print(\"Se creeaza vectorii asociati elementelor html...\\n\");\r\n\t\tSystem.out.print(\"-------------------------------------------------------------------------\\n\");\r\n\t\tHashMap<String,TreeMap<String,Double>>Vectori=CautareVectoriala.Documente(site);\r\n\t\tSystem.out.print(\"-------------------------------------------------------------------------\\n\");\r\n\t\tSystem.out.print(\"Incarca vectorii asociati elementelor html...\\n\");\r\n\t\tSystem.out.print(\"-------------------------------------------------------------------------\\n\");\r\n\t\tVectori=CautareVectoriala.Incarca_Vector(site);\r\n\t\tSortedSet<HashMap.Entry<String,Double>>rezCautareVectoriala;\r\n\t\tSystem.out.print(\"Aplicare cautare vectoriala\\nIntroduceti ce vreti sa cautati:\\n\");\r\n Scanner v=new Scanner(System.in);\r\n String interog=v.nextLine();\r\n System.out.print(\"-------------------------------------------------------------------------\\n\");\r\n System.out.println(\"Incepe cautarea.\");\r\n rezCautareVectoriala=CautareVectoriala.Cauta(interog, site, Vectori);\r\n if(rezCautareVectoriala==null)\r\n {\r\n \tSystem.out.println(\"Nu s-a gasit niciun rezultat\\n\");\r\n }\r\n else\r\n {\r\n \tSystem.out.println(\"Rezultatele gasite din cautarea vectoriala sunt:\\n\");\r\n \tfor(Map.Entry<String,Double>doc:rezCautareVectoriala)\r\n \t{\r\n \t\tSystem.out.print(\"\\t\"+doc+\"\\n\");\r\n \t}\r\n }\r\n\r\n\t}", "public DepthFirst(Graph g,JTextArea output) {\n\t\tsuper();\n\t\tthis.g=g;\n\t\tthis.output=output;\n\t\tthis.output.setText(\"\");\n\n\t}", "private void drawGraphInfo(Graphics2D g2d, RenderContext myrc, Set<String> sel) {\n if (sel.size() == 1) { // Draw distances to... probably less than 4 to be useful\n // Make sure the selection equals a node in the graph\n String node = sel.iterator().next(); if (entity_to_wxy.containsKey(node) == false) return;\n\n // Run the algorithm\n DijkstraSingleSourceShortestPath ssp;\n if (last_ssp != null && node.equals(last_ssp_source)) ssp = last_ssp;\n else ssp = new DijkstraSingleSourceShortestPath(graph, graph.getEntityIndex(node));\n\n // Draw a number next to those numbers that are within 4 edges (arbitrary number...)\n for (int i=0;i<graph.getNumberOfEntities();i++) {\n int dist = (int) ssp.getDistanceTo(i);\n if (dist > 0 && dist <= 4) {\n\t Color color;\n\t switch (dist) {\n\t case 1: color = RTColorManager.getColor(\"linknode\", \"nbor\");\n\t case 2: color = RTColorManager.getColor(\"linknode\", \"nbor+\");\n\t case 3: color = RTColorManager.getColor(\"linknode\", \"nbor++\");\n\t case 4: \n\t default: color = RTColorManager.getColor(\"linknode\", \"nbor+++\");\n\t }\n String entity = graph.getEntityDescription(i);\n\t int x = entity_to_sx.get(entity),\n\t y = entity_to_sy.get(entity);\n String str = \"\" + dist;\n clearStr(g2d, str, x - Utils.txtW(g2d,str)/2, y + Utils.txtH(g2d,str)/2, color, RTColorManager.getColor(\"label\", \"defaultbg\"));\n\t}\n }\n\n // Cache the results so that repaints are faster... need to worry about tears\n last_ssp = ssp; last_ssp_source = node;\n } else if (sel.size() == 2) { // Draw shortest path between two nodes\n // Make sure the selection equals a node in the graph\n String node0,node1;\n Iterator<String> it = sel.iterator(); node0 = it.next(); node1 = it.next();\n if (entity_to_wxy.containsKey(node0) == false || entity_to_wxy.containsKey(node1) == false) return;\n\n // Run the algorithm\n DijkstraSingleSourceShortestPath ssp;\n if (last_ssp != null && last_ssp_source.equals(node0)) { ssp = last_ssp; }\n else if (last_ssp != null && last_ssp_source.equals(node1)) { ssp = last_ssp; String tmp = node0; node0 = node1; node1 = tmp; }\n else ssp = new DijkstraSingleSourceShortestPath(graph, graph.getEntityIndex(node0));\n\n // Get the path\n int path[] = ssp.getPathTo(graph.getEntityIndex(node1));\n if (path != null && path.length > 1) {\n Stroke orig_stroke = g2d.getStroke(); g2d.setColor(RTColorManager.getColor(\"annotate\", \"cursor\")); g2d.setStroke(new BasicStroke(3.0f));\n for (int i=0;i<path.length-1;i++) {\n String graph_linkref = graph.getLinkRef(path[i],path[i+1]),\n\t graph_linkref2 = graph.getLinkRef(path[i+1],path[i]);\n\t String gui_linkref = myrc.graphedgeref_to_link.get(graph_linkref),\n\t gui_linkref2 = myrc.graphedgeref_to_link.get(graph_linkref2);\n\t Line2D line = myrc.link_to_line.get(gui_linkref),\n\t line2 = myrc.link_to_line.get(gui_linkref2);\n\t if (line != null) g2d.draw(line); \n\t else if (line2 != null) g2d.draw(line2);\n\t else System.err.println(\"No Line Between \\\"\" + graph.getEntityDescription(path[i]) + \"\\\" and \\\"\" + graph.getEntityDescription(path[i+1]) + \"\\\"\");\n\t}\n\tg2d.setStroke(orig_stroke);\n }\n\n // Cache the results so that repaints are faster... need to worry about tears\n last_ssp = ssp; last_ssp_source = node0;\n } else if (sel.size() >= 3) { // Draw common neighbors\n }\n }", "void dfs(SimpleVertex simpleVertex) {\n\n\t\twhile (true) {\n\t\t\tif (simpleVertex.isVisited == false) {\n\t\t\t\tsimpleVertex.isVisited = true;\n\t\t\t\tSystem.out.print(simpleVertex.Vertexname + \" \");\n\t\t\t\tfor (int i = 0; i < simpleVertex.neighborhood.size(); i++) {\n\t\t\t\t\tSimpleEdge node = simpleVertex.neighborhood.get(i);\n\n\t\t\t\t\tdfs(node.two);\n\t\t\t\t}\n\n\t\t\t}\n\t\t\tbreak;\n\t\t}\n\n\t}", "public static void main(String[] args) {\n\t\tint[][] edges = {{0,1},{1,2},{1,3},{4,5}};\n\t\tGraph graph = createAdjacencyList(edges, true);\n\t\tSystem.out.println(\"Number of connected graphs(Adjacency List) unDirected : \"+getNumberOfConnectedComponents(graph));\n\t\tSystem.out.println(\"Number of connected graphs(Adjacency List) Directed: \"+getNumberOfConnectedComponents(createAdjacencyList(edges, false)));\n\t\t\n\t\t//Shortest Distance & path\n\t\tint[][] edgesW = {{0,1,1},{1,2,4},{2,3,1},{0,3,3},{0,4,1},{4,3,1}};\n\t\tgraph = createAdjacencyList(edgesW, true);\n\t\tSystem.out.println(\"Shortest distance : \"+ getShortestDistance(graph, 0, 3));\n\t\t\n\t\t//Graph represented in Adjacency Matrix\n\t\tint[][] adjacencyMatrix = {{0,1,0,0,1,0},{1,0,1,1,0,0},{0,1,0,1,0,0},{0,1,0,0,0,0},{0,0,0,0,0,0},{0,0,0,0,0,0}};\n\t\t\n\t\t// Connected components or Friends circle\n\t\tSystem.out.println(\"Number of connected graphs(Adjacency Matrix) unDirected Recursive: \"+getNumberOfConnectedComponents(adjacencyMatrix));\n\t\tSystem.out.println(\"Number of connected graphs(Adjacency Matrix) unDirected Iterative: \"+getNumberOfConnectedComponents(adjacencyMatrix));\n\n\t\tSystem.out.println(\"Shortest distance : \"+ getShortestDistance(adjacencyMatrix, 0, 3));\n\t\t\n\t\t// Number of Islands\n\t\tint[][] islandGrid = {{1,1,0,1},{0,1,0,0},{0,0,1,1},{0,1,1,0}};\n\t\tSystem.out.println(\"Number of islands Recursive: \"+ getNumberOfIslands(islandGrid));\n\t\t// re-initialize\n\t\tint[][] islandGridIterative = {{1,1,0,0},{0,1,0,0},{0,0,1,1},{0,1,1,0}};\n\t\tSystem.out.println(\"Number of islands Iterative: \"+ getNumberOfIslandsIterative(islandGridIterative));\n\n\n\t}", "public static void main(String[] args) {\n Graph graph = new Graph(16);\n graph.addEdge(0,1);\n graph.addEdge(1,2);\n graph.addEdge(2,3);\n graph.addEdge(3,4);\n graph.addEdge(4,5);\n graph.addEdge(5,6);\n graph.addEdge(6,7);\n graph.addEdge(8,9);\n graph.addEdge(9,10);\n graph.addEdge(10,11);\n graph.addEdge(11,12);\n graph.addEdge(13,14);\n graph.addEdge(14,15);\n graph.addEdge(15,0);\n graph.addEdge(0,8);\n graph.addEdge(1,10);\n graph.addEdge(2,9);\n graph.addEdge(3,11);\n graph.addEdge(3,14);\n graph.addEdge(4,7);\n graph.addEdge(4,13);\n graph.addEdge(5,8);\n graph.addEdge(5,15);\n graph.printGraph();\n System.out.println(\"DFS Traversal\");\n graph.DFS(3);\n System.out.println();\n System.out.println(\"BFS Traversal\");\n graph.BFS(3);\n// System.out.println();\n// for (int i=0; i<graph.vertices; i++)\n// {\n// if(graph.visited[i]!=true)\n// {\n// graph.DFS(i);\n// }\n// }\n\n }", "public void dfs (Node node) {\r\n\t\t\r\n\t\tSystem.out.print(node.data+\" \");\r\n\t\tList<Node> adding = node.getPartners();\r\n\t\tnode.visited = true;\r\n\t\t\tfor(int loop=0; loop<adding.size(); loop++) {\r\n\t\t\t\tNode n = adding.get(loop);\r\n\t\t\t\t\tif (n!=null && !n.visited) {\r\n\t\t\t\t\t\tdfs(n);\r\n\t\t\t\t\t} // if loop ends here\r\n\t\t\t\t\t\r\n\t\t\t} // for loop ends here\r\n\t\t\r\n\t}", "@Override\r\n public void visit(Page page) {\r\n String url = page.getWebURL().getURL();\r\n System.out.println(\"URL: \" + url);\r\n\r\n if (page.getParseData() instanceof HtmlParseData) {\r\n HtmlParseData htmlParseData = (HtmlParseData) page.getParseData();\r\n String text = htmlParseData.getText();\r\n String html = htmlParseData.getHtml();\r\n List<WebURL> links = htmlParseData.getOutgoingUrls();\r\n\r\n System.out.println(\"Text length: \" + text.length());\r\n System.out.println(\"Html length: \" + html.length());\r\n System.out.println(\"Number of outgoing links: \" + links.size());\r\n\r\n try {\r\n Configuration config = new Configuration();\r\n System.setProperty(\"HADOOP_USER_NAME\", \"admin\");\r\n FileSystem fileSystem = FileSystem.get(new URI(\"hdfs://192.168.51.116:8022/\"), config);\r\n FSDataOutputStream outStream = fileSystem.append(new Path(\"/user/admin/crawler-results.txt\"));\r\n\r\n IOUtils.write(text.replace('\\n', ' '), outStream);\r\n outStream.flush();\r\n IOUtils.closeQuietly(outStream);\r\n } catch (Exception ex) {\r\n ex.printStackTrace();\r\n throw new RuntimeException(ex);\r\n }\r\n }\r\n }", "public static void main (String[] args) {\n CampusGraph<String, String> cg = MarvelParser.buildGraph(\"marvel.tsv\");\n System.out.println(\"Hi! Welcome to Marvel Universe!\");\n System.out.println();\n System.out.println(\"You can find the closest path between any two heroes in all marvel comic books!\");\n System.out.println(\"Pleases type your heroes: \");\n Scanner input = new Scanner(System.in);\n\n boolean searched = false;\n while (!searched) {\n boolean firstSuccess = false;\n boolean secondSuccess = false;\n String hero1 = \"\";\n String hero2 = \"\";\n while (!firstSuccess) {\n System.out.println(\"Type your first hero: \");\n hero1 = input.nextLine();\n if (!cg.hasNode(hero1)) {\n System.out.println(\"Oops! It seems like your first hero is not a Marvel Hero :( \");\n System.out.println(\"Please type it again: \");\n } else {\n firstSuccess = true;\n }\n }\n if (firstSuccess) {\n while (!secondSuccess) {\n System.out.println(\"Type your second hero: \");\n hero2 = input.nextLine();\n if (!cg.hasNode(hero2)) {\n System.out.println(\"Oops! It seems like your second hero is not a Marvel Hero :( \");\n System.out.println(\"Please type it again: \");\n } else {\n secondSuccess = true;\n }\n }\n if (secondSuccess) {\n List<CampusGraph.Edges<String, String>> path = findPath(cg, hero1, hero2);\n System.out.println(\"Correct Heroes!\\n\");\n System.out.println(\"The shortest path from \" + hero1 + \" to \" + hero2 + \":\");\n if (path == null) {\n System.out.println(\"There is no connection between these two heroes.\");\n } else {\n String lastStart = hero1;\n for (CampusGraph.Edges<String, String> e : path) {\n System.out.println(lastStart + \" to \" + e.getEndTag() + \" via \" + e.getEdgeLabel());\n lastStart = e.getEndTag(); // update the last start each time\n }\n }\n searched = true;\n }\n }\n System.out.println();\n System.out.println(\"END. Thank you.\");\n }\n }", "private void QueryDirections() {\n\t\tshowProgress(true, \"正在搜索导航路线...\");\n\t\t// Spawn the request off in a new thread to keep UI responsive\n\t\tfor (final FloorInfo floorInfo : floorList) {\n\t\t\tif (floorInfo.getPoints() != null\n\t\t\t\t\t&& floorInfo.getPoints().length >= 2) {\n\n\t\t\t\tThread t = new Thread() {\n\t\t\t\t\t@Override\n\t\t\t\t\tpublic void run() {\n\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\t// Start building up routing parameters\n\t\t\t\t\t\t\tRouteTask routeTask = RouteTask\n\t\t\t\t\t\t\t\t\t.createOnlineRouteTask(\n\t\t\t\t\t\t\t\t\t\t\tfloorInfo.getRouteServerPath(),\n\t\t\t\t\t\t\t\t\t\t\tnull);\n\n\t\t\t\t\t\t\tRouteParameters rp = routeTask\n\t\t\t\t\t\t\t\t\t.retrieveDefaultRouteTaskParameters();\n\t\t\t\t\t\t\tNAFeaturesAsFeature rfaf = new NAFeaturesAsFeature();\n\t\t\t\t\t\t\t// Convert point to EGS (decimal degrees)\n\t\t\t\t\t\t\t// Create the stop points (start at our location, go\n\t\t\t\t\t\t\t// to pressed location)\n\t\t\t\t\t\t\t// StopGraphic point1 = new StopGraphic(mLocation);\n\t\t\t\t\t\t\t// StopGraphic point2 = new StopGraphic(p);\n\t\t\t\t\t\t\trfaf.setFeatures(floorInfo.getPoints());\n\t\t\t\t\t\t\trfaf.setCompressedRequest(true);\n\t\t\t\t\t\t\trp.setStops(rfaf);\n\n\t\t\t\t\t\t\t// Set the routing service output SR to our map\n\t\t\t\t\t\t\t// service's SR\n\t\t\t\t\t\t\trp.setOutSpatialReference(wm);\n\t\t\t\t\t\t\trp.setFindBestSequence(true);\n\t\t\t\t\t\t\trp.setPreserveFirstStop(true);\n\t\t\t\t\t\t\tif (floorInfo.getEndPoint() != null) {\n\t\t\t\t\t\t\t\trp.setPreserveLastStop(true);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t// Solve the route and use the results to update UI\n\t\t\t\t\t\t\t// when received\n\t\t\t\t\t\t\tfloorInfo.setRouteResult(routeTask.solve(rp));\n\n\t\t\t\t\t\t} catch (Exception e) {\n\t\t\t\t\t\t\tmException = e;\n\t\t\t\t\t\t\t// mHandler.post(mUpdateResults);\n\t\t\t\t\t\t}\n\t\t\t\t\t\trouteIndex++;\n\t\t\t\t\t\tif (routeIndex >= routeCount) {\n\t\t\t\t\t\t\tmHandler.post(mSetCheckMap);\n\t\t\t\t\t\t\tmHandler.post(mUpdateResults);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t};\n\t\t\t\t// Start the operation\n\t\t\t\tt.start();\n\t\t\t}\n\t\t}\n\n\t}", "private void goSearch() {\n\t\tThread t = new Thread(this);\n\t\tt.start();\n\t}", "boolean isVisited();", "boolean isVisited();", "private void viewPage(String club) throws JSONException, InterruptedException {\r\n logger.log(Level.INFO, \"Would you like to view the \" + \r\n club + \" clubpage? (y/n)\");\r\n \r\n // if yes, go to club page\r\n // else return to display prompt\r\n if(\"y\".equalsIgnoreCase(in.nextLine())) {\r\n \t Club clubToView = new Club(club);\r\n \t clubToView.printClubPromptsAndInfo(PolyClubsConsole.user instanceof ClubAdmin);\r\n }\r\n \r\n else \r\n displaySearch(); \r\n }", "private static void shortestPathFinder(Graph graph, Character userCity, int algoNum) {\n\n // Finds and stores the City that corresponds to the cityName input\n City currentCity = graph.cityOf(userCity);\n\n // Array List to store every City that was visited by the current one\n ArrayList<Character> citiesVisited = new ArrayList<>();\n\n // Adds the cityName of the input userCity\n citiesVisited.add(userCity);\n\n // Creates a Stack to store and manage all Cities visited\n Stack<City> visitingCities = new Stack<>();\n\n // Loops over each City object in the graph until currentCity becomes the final destinantion Z.\n while (!(currentCity.equals(graph.cityOf('Z')))) {\n // As long as we startCity did not reach the final destination, it means it has visited the\n // previous City object, therefore:\n\n // Adds currentCity to the stack\n visitingCities.add(currentCity);\n\n // Sets true to setCitiesVisited() as it has been visited\n currentCity.setCitiesVisited(true);\n\n // It will also be included to the shortest path\n currentCity.setItIsTheShortest(true);\n\n // Gets all the edges that are connected to the current City we are on\n ArrayList<Edge> cityEdges = currentCity.getCityEdges();\n\n // Temporary City object to update currentCity\n City nextCity = null;\n\n // Integer to track the shortest distance (weight + direct distance) for heuristic algorithm 2\n int weightDistanceTotal = Integer.MAX_VALUE;\n\n // Loop to keep track of currentCity as it advances to the final destination\n // It iterates over edges of currentCity and chooses among its edges Cities that have not been\n // visited yet, using either algorithm 1 or algorithm 2 based on the method input above.\n // the loop terminates if the final currentCity becomes the final destination Z\n // It also terminates after iterating over all edges and choosing the one with the City that\n // has the shortest direct distance to final destination Z\n for (Edge edge: cityEdges) {\n\n // Checks if City of this edge was visited. If so, it continues to check the next edge\n if (edge.getAdjacentCity().getCitiesVisited()) {\n\n // Continues to the next edge\n continue;\n }\n\n // 2. assign the next City to the destination\n if (nextCity == null) {\n\n // Updates nextCity to be adjacent City\n nextCity = edge.getAdjacentCity();\n\n } else {\n\n // Checks which algorithm is being called, and executes the right one\n if (algoNum == 1) {\n if (nextCity.getCityToDestination() > edge.getAdjacentCity().getCityToDestination()) {\n nextCity = edge.getAdjacentCity();\n }\n\n // if algorithm 1 was not chosen, it executes algorithm 2 in the else block bellow\n } else {\n weightDistanceTotalCity cityWithWeightDistanceTotal =\n weightPlusDistanceAlgorithm(nextCity, edge, weightDistanceTotal);\n nextCity = cityWithWeightDistanceTotal.city;\n weightDistanceTotal = cityWithWeightDistanceTotal.weightDistanceTotal;\n }\n }\n }\n\n // If nextCity is still null, it means that its edge was skipped in the for loop above,\n // because it has already been visited by checking if getCitiesVisited() returns true\n if (nextCity == null) {\n\n // Pops off the City we just visited, and flag it to be not the shortest distant City\n visitingCities.pop().setItIsTheShortest(false);\n\n // Sets the next City to the previous one\n nextCity = visitingCities.pop();\n }\n\n // Adds the City name that was visited to keep track of the path\n citiesVisited.add(nextCity.getName());\n\n // CurrentCity is updated to be the next City\n currentCity = nextCity;\n\n // When visiting the last City mark z in the shortest path found\n if (currentCity.getName() == 'Z') {\n currentCity.setItIsTheShortest(true);\n }\n }\n\n // Tracks the path visited and adds up all the weights of the path found\n int pathCounter = 0;\n\n // Constructs the shortest path found\n ArrayList<City> shortestPath = new ArrayList<>();\n\n for (Character tempCity: citiesVisited) {\n // Gets the City of cityVisitor\n City city = graph.cityOf(tempCity);\n\n // Adds to the shortest path found\n if (city.getItIsTheShortest() && !shortestPath.contains(city)) {\n shortestPath.add(city);\n }\n }\n\n // Prints out the shortest path found\n for (int i = 0; i < shortestPath.size() - 1; i++) {\n currentCity = shortestPath.get(i);\n City nextCity = shortestPath.get(i + 1);\n\n // find the weight of that City\n int weight = currentCity.findWeight(nextCity);\n pathCounter += weight;\n }\n\n // Constructs the final output\n String fullPathSequence = \"\";\n String citiesVisitedAsString = \"\";\n\n for (int i = 0; i < citiesVisited.size(); i++) {\n if (i != citiesVisited.size() - 1) {\n fullPathSequence += citiesVisited.get(i) + \" -> \";\n }\n }\n\n // Constructs a string to store all cityNames\n fullPathSequence += citiesVisited.get(citiesVisited.size() - 1);\n\n for (int i = 0; i < shortestPath.size(); i++) {\n if (i != shortestPath.size() - 1) {\n citiesVisitedAsString += shortestPath.get(i).getName() + \" -> \";\n }\n }\n\n if (currentCity.getName() == 'Z') {\n citiesVisitedAsString += \"Z\";\n } else {\n citiesVisitedAsString += shortestPath.get(shortestPath.size() - 1).getName();\n }\n\n // Prints out the String results.\n System.out.println(\"Algorithm \" + algoNum + \":\\nSequence of all Cities: \" + fullPathSequence\n + \"\\nShortest path: \" + citiesVisitedAsString + \"\\nShortest path length: \" + pathCounter + \"\\n\");\n }", "public void solve() {\n /** To solve the traveling salesman problem:\n * Set up the graph, choose a starting node, then call the recursive backtracking method and pass it the starting node.\n */\n\n // We need to pass a starting node to recursive backtracking method\n Node startNode = null;\n\n // Grab a node, any node...\n for( Node n : graph.nodes() ) {\n startNode = n;\n break;\n }\n\n // Visit the first node\n startNode.visit();\n\n // Add first node to the route\n this.route[0] = startNode;\n\n // Pass the number of choices made\n int nchoices = 1;\n\n // Recursive backtracking\n explore(startNode, nchoices );\n\n\n }", "public void viePage(URL link) throws IOException\n {\n this.mainEditorPane.setPage(link);\n }", "public void showBreach();", "public static void main(String[] args) throws IOException {\n if (args.length != 1) {\n System.err.println(\"java linkstate <file name>\");\n System.exit(0);\n }\n\n // read from file\n String filename = args[0].replaceAll(\"\\\\s+\", \"\");\n String fileContents = new String(Files.readAllBytes(Paths.get(filename))).replaceAll(\"\\\\s+\", \"\");\n String[] fileSplit = fileContents.trim().split(\"\\\\.\");\n\n // find size of 2d array\n amtOfNodes = fileSplit.length - 1;\n // System.out.println(\"amt of nodes: \" + amtOfNodes);\n\n // put the values into a 2d array of strings\n String[][] nodeStrings = new String[amtOfNodes][amtOfNodes];\n for (int i = 0; i < amtOfNodes; i++) {\n nodeStrings[i] = fileSplit[i].split(\"\\\\,\");\n }\n\n // convert the strings to integers\n int[][] nodeInts = new int[amtOfNodes][amtOfNodes];\n for (int i = 0; i < amtOfNodes; i++) {\n for (int j = 0; j < amtOfNodes; j++) {\n if (nodeStrings[i][j].equals(\"N\")) {\n nodeInts[i][j] = infiniti;\n } else {\n nodeInts[i][j] = Integer.parseInt(nodeStrings[i][j]);\n }\n }\n }\n\n dijkstra(nodeInts);\n\n }", "public static void main(String[] args) {\n System.out.println(\"-------------------------\");\n //maze.print();\n // int count= obj.getnonVisits();\n // int percent=obj.getSizeTotal();\n // System.out.println(\"Cells: \"+percent+ \" Unvisited:\"+count);\n //if(count>0)\n // System.out.println(\"Percent unvisited: \"+((count*100)/percent)+\"%\");\n }", "void DFSUtil(int v, boolean visited[]) {\n \t// Mark the current node as visited and print it \n visited[v] = true; \n System.out.print(v + \" \"); \n \n for(int w: adj[v]) \n \tif (!visited[w]) { \n \t\tDFSUtil(w, visited);\n \t}\n }", "private void dfs(int y, int x, boolean[][] visited, Set<String> results, BoggleBoard board,\n\t\t\tTST.BacktrackTraverser<Integer> bt) {\n\t\tif (bt.hasValue()) {\n\t\t\tString word = appendU(bt.getWord());\n\t\t\tif (bt.getValue() > 0) {\n\t\t\t\tresults.add(word);\n\t\t\t}\n\t\t}\n\n\t\t// Check every unused nearby grid.\n\t\t// Only continue on grid if there's some word down the TST.\n\t\tfor (int[] dir : directions) {\n\t\t\tint[] moved = move(y, x, dir);\n\t\t\tif (!inBound(moved, board)) {\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\tif (visited[moved[0]][moved[1]]) {\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\tchar singleLetter = board.getLetter(moved[0], moved[1]);\n\t\t\tif (!bt.hasDown(singleLetter)) {\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\tvisited[moved[0]][moved[1]] = true;\n\t\t\tbt.down(singleLetter);\n\t\t\tdfs(moved[0], moved[1], visited, results, board, bt);\n\t\t\tbt.up();\n\t\t\tvisited[moved[0]][moved[1]] = false;\n\t\t}\n\t}", "public void findTour( int x, int y, int moves )\n {\n delay(50); //slow it down enough to be followable\n if (solved) System.exit(0);\n\n //primary base case: tour completed\n if (moves == (sideLength * sideLength)) {\n solved = true;\n }\n //other base case: stepped off board or onto visited cell\n if ( board[x][y] != 0 ) {\n return;\n }\n //otherwise, mark current location\n //and recursively generate tour possibilities from current pos\n else {\n board[x][y] = moves;\n System.out.println(this);\n delay(10); //uncomment to slow down enough to view\n\n /*======================================\n Recursively try to solve (find tour) from\n each of knight's available moves.\n . e . d .\n f . . . c\n . . @ . .\n g . . . b\n . h . a .\n ======================================*/\n // right and down\n findTour(x + 1, y + 2, moves + 1);\n // left and down\n findTour(x - 1, y + 2, moves + 1);\n // down and right\n findTour(x + 2, y + 1, moves + 1);\n // up and left\n findTour(x - 2, y - 1, moves + 1);\n // right and up\n findTour(x + 1, y - 2, moves + 1);\n // left and up\n findTour(x - 1, y - 2, moves + 1);\n // up and right\n findTour(x + 2, y - 1, moves + 1);\n // down and left\n findTour(x - 2, y + 1, moves + 1);\n\n //If made it this far, path did not lead to tour, so back up.\n board[x][y] = 0;\n System.out.println(this);\n }\n }", "public void changingNeighbor() {\n }", "public void DFS() {\r\n for (int i = 0; i < vertexNum; i++) {\r\n DFS(i);\r\n }\r\n }", "static void dfs(Node current, Set<Node> visited) {\n System.out.print(\"Node \" + current.val + \", \");\n\n // adds the current node to the set of already visited nodes\n visited.add(current);\n\n // loops over the neighbours of the current node\n for (Node neighbour: current.neighbours) {\n\n // if the neighbour has not been already visited\n if (! visited.contains(neighbour)) {\n\n // recursively processes the neighbour\n dfs(neighbour, visited);\n }\n }\n }", "private void hitURL(String URL){\n Log.v(\".hitURL\", \" now crawling at: \" + URL);\n String refinedURL = NetworkUtils.makeURL(URL).toString();\n visitedLinks.add(refinedURL);\n browser.loadUrl(refinedURL);\n\n\n // OR, you can also load from an HTML string:\n// String summary = \"<html><body>You scored <b>192</b> points.</body></html>\";\n// webview.loadData(summary, \"text/html\", null);\n // ... although note that there are restrictions on what this HTML can do.\n // See the JavaDocs for loadData() and loadDataWithBaseURL() for more info.\n }", "public static void search(String[][] grid, String strategy, boolean visualize) {\n\t\tint counter = 1;\n\t\tSaveWestros problem = new SaveWestros(dragonGlassCapacity, numberOfWhiteWalkers, grid);\n\t\tNode node = generalSearchProcedure(problem, strategy);\n\t\tStack<Operators> stack = new Stack<>();\n\t\tif (node == null) {\n\t\t\tSystem.out.println(\"No Solution Could Be Reached In This Grid !!!\");\n\t\t\treturn;\n\t\t}\n\t\twhile (node.parentNode != null) {\n\t\t\tstack.add(node.operator);\n\t\t\tnode = node.parentNode;\n\n\t\t}\n\t\tSystem.out.println();\n\t\twhile (!stack.isEmpty()) {\n\t\t\tOperators action = stack.pop();\n\t\t\tSystem.out.print(\"Action \" + counter++ + \": \");\n\t\t\tSystem.out.println(action);\n\n\t\t\tif (visualize) {\n\t\t\t\tgrid = Visualize(grid, action.toString());\n\t\t\t\tprintGrid(grid);\n\t\t\t\tSystem.out.println(new String(new char[40]).replace(\"\\0\", \"_\"));\n\t\t\t\tSystem.out.println();\n\t\t\t}\n\n\t\t}\n\t\tSystem.out.println(String.format(\"Number of expanded nodes: %d \",\n\t\t\t\tproblem.expandedNodes));\n\t\tSystem.out.println();\n\t\tSystem.out.println(new String(new char[40]).replace(\"\\0\", \"_\"));\n\t\tSystem.out.println(\"★★★★★★★★★★★ All The White Walkers Have Been Killed ★★★★★★★★★★★\");\n\n\t}", "public void search(String url, String searchWord)\n {\n while(this.pagesVisited.size() < MAX_PAGES_TO_SEARCH)\n {\n String currentUrl;\n SpiderLeg leg = new SpiderLeg();\n if(this.pagesToVisit.isEmpty())\n {\n currentUrl = url;\n this.pagesVisited.add(url);\n }\n else\n {\n currentUrl = this.nextUrl();\n }\n leg.crawl(currentUrl); // Lots of stuff happening here. Look at the crawl method in\n // SpiderLeg\n boolean success = leg.searchForWord(searchWord);\n if(success)\n {\n System.out.println(String.format(\"**Success** Word %s found at %s\", searchWord, currentUrl));\n break;\n }\n this.pagesToVisit.addAll(leg.getLinks());\n }\n System.out.println(\"\\n**Done** Visited \" + this.pagesVisited.size() + \" web page(s)\");\n }", "public void clickLink(String link){\n\t\tSystem.out.println(\"CONTROLLER: LINK WAS CLICKED: \" + link);\n\t\tURL url_ = null;\n\t\ttry{\n\t\t\turl_ = new URL(new URL(this.url), link);\n\t\t\tthis.content = BrowsrDocumentValidator.assertIsValidBrowsrDocument(url_);\n\t\t\tthis.url = url_.toString();\n\t\t\tSystem.out.println(\"URL CONTROLLER:\" + this.url);\n\t\t} catch (Exception exception){\n\t\t\tthis.content = new Text(exception.toString());\n\t\t}\n\n\t}", "public void travel();", "public void showLiaisonByClick()\t{\r\n \tSystem.out.print(\"Cliquez votre route: \");\r\n \tif (dessin.waitClick()) {\r\n \t float lon = dessin.getClickLon() ;\r\n \t float lat = dessin.getClickLat() ;\r\n \t \r\n \t float minDist = Float.MAX_VALUE ;\r\n \t Liaison chosen = null;\r\n \t \r\n \t for(Liaison liaison: this.routes)\t{\r\n \t \tfloat londiff = liaison.getLongitude() - lon;\r\n \t \tfloat latdiff = liaison.getLatitude() - lat;\r\n \t \tfloat dist = londiff*londiff + latdiff*latdiff ;\r\n \t \tif(dist < minDist)\t{\r\n \t \t\tchosen = liaison;\r\n \t \t\tminDist = dist;\r\n \t \t}\r\n \t }\r\n \t \r\n\t \tchosen.dessiner(dessin, this.numzone, Color.red);\r\n\t \tthis.dessin.putText(chosen.getLongitude(), chosen.getLatitude(), chosen.toString());\r\n\t \tSystem.out.println(chosen);\r\n\r\n \t}\r\n }", "final void searchPage(DataInputStream dis,String url)\r\n {\r\n try\r\n\t{\r\n String input; // Raw line read in.\r\n\t String upperCaseInput; // Upper case version of the above\r\n\t String link; // HTML link found\r\n\t String temp; \r\n\t String title=\"\"; // Page Title;\r\n\r\n\t // Read a line at a time.\r\n\t while((input=dis.readLine())!=null)\r\n\t {\r\n\t // Convert to Upper case (makes comparisions easier)\r\n\t\tupperCaseInput=input.toUpperCase();\r\n\t\t// Check for document title\r\n\t\ttemp=parseForTitle(input,upperCaseInput,dis);\r\n\t\t// If a title has been found then remember it. So, that it can displayed on the list box.\r\n\t\tif(temp!=null && temp.length()>0)\r\n\t\t title=temp;\r\n\t //Check for match after title has been found (Don't bother Searching the title though)\r\n\t\tif(title.length()>0 && temp==null)\r\n\t\t checkMatch(input,url,title);\r\n \r\n\t\t// Check to see if this line contains a link\r\n\t\tlink=parseForLink(upperCaseInput,input);\r\n\t\tif(link!=null)\r\n\t\t{\r\n\t\t // Check if the maximum number of pages to search has been reached.\r\n\t\t if(app.getTotalPages()>=maxPages)\r\n\t\t return;\r\n if(topLevelSearch==FIND_TOP_LEVEL_PAGES)\r\n\t\t topLevelPages.addElement(link);\r\n else if(topLevelSearch==SEARCH_TOP_LEVEL_PAGES)\r\n\t\t nextLevelPages.addElement(link);\r\n\t\t else checkLink(link);\t \r\n\t\t}\r\n\t }\r\n }\r\n\tcatch(IOException e){ }\r\n }", "public void dfs() {\n int currentVertexIndex = 0;\r\n dfsStack.push(0);\r\n vertexList[0].wasVisited = true;\r\n System.out.println(vertexList[dfsStack.peek()]);\r\n while (dfsStack.top != -1) {\r\n\r\n\r\n currentVertexIndex = this.getAdjUnvisitedVert(dfsStack.peek());\r\n if (currentVertexIndex != -1) {\r\n dfsStack.push(currentVertexIndex);\r\n vertexList[currentVertexIndex].wasVisited = true;\r\n System.out.println(vertexList[dfsStack.peek()]);\r\n\r\n\r\n } else {\r\n currentVertexIndex = dfsStack.pop();\r\n\r\n }\r\n }\r\n// reset wasVisted\r\n for (Vertex x : vertexList) {\r\n x.wasVisited = false;\r\n }\r\n }", "public void visit (String site) {\r\n backHistory.add(current);\r\n current = site;\r\n forwardHistory.clear();\r\n\r\n }", "public void BFS() {\n visitedCells = 1;\n\n // Initialize the vertices\n for (int j = 0; j < maze.getGrid().length; j++) {\n for (int k = 0; k < maze.getGrid().length; k++) {\n Cell cell = maze.getGrid()[j][k];\n cell.setColor(\"WHITE\");\n cell.setDistance(0);\n cell.setParent(null);\n }\n }\n\n Cell sourceCell = maze.getGrid()[0][0];\n Cell neighbor = null;\n Cell currentCell;\n int distance = 0;\n\n // Initialize the source node\n sourceCell.setColor(\"GREY\");\n sourceCell.setDistance(0);\n sourceCell.setParent(null);\n\n queue.add(sourceCell);\n\n // Visits each cell until the queue is empty\n while (!queue.isEmpty()) {\n currentCell = queue.remove();\n\n for (int i = 0; i < currentCell.mazeNeighbors.size(); i++) {\n neighbor = currentCell.mazeNeighbors.get(i);\n\n // Stop the search if you reach the final cell\n if (neighbor.x == r - 1 && neighbor.y == r - 1) {\n distance++;\n if (distance == 10)\n distance = 0;\n neighbor.setDistance(distance);\n neighbor.setParent(currentCell);\n neighbor.visited = true;\n visitedCells++;\n break;\n }\n\n // Checks each neighbor and adds it to the queue if its color is white\n if (neighbor.getColor().equalsIgnoreCase(\"WHITE\")) {\n distance++;\n if (distance == 10)\n distance = 0;\n neighbor.setColor(\"GREY\");\n neighbor.setDistance(distance);\n neighbor.setParent(currentCell);\n neighbor.visited = true;\n queue.add(neighbor);\n visitedCells++;\n }\n }\n // Stop the search if you reach the final cell\n if (neighbor.x == r - 1 && neighbor.y == r - 1)\n break;\n\n currentCell.setColor(\"BLACK\");\n }\n }", "@Override\n\tpublic void actionPerformed (ActionEvent e)\n\t{\n\t\n\t\ttry\n\t\t{\n\t\t\t//Browser.init();\n\t\t\t//Browser.displayURL(mUrl);\n\t\t\tDesktop.getDesktop().browse(new URI(mUrl));\n\n\t\t}\n\t\tcatch (IOException exc)\n\t\t{\n\t\t\texc.printStackTrace();\n\t\t} catch (URISyntaxException e1) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te1.printStackTrace();\n\t\t}\n\t\n\t\n\t}", "private void drunkenWalk(int x, int y) {\n\t\tRoom r = rooms[y][x];\n\t\tr.visited = true;\n\t\tUtil.shuffleArray(r.doors);\n\t\tfor(int i = 0; i < r.doors.length; i++) {\n\t\t\tDoor d = r.doors[i];\n\t\t\tboolean outOfBounds = false;\n\t\t\tRoom neighbor;\n\t\t\tDirection oppositeDir;\n\t\t\tint neighborX = x;\n\t\t\tint neighborY = y;\n\t\t\tswitch(d.dir) {\n\t\t\tcase LEFT:\n\t\t\t\toppositeDir = Direction.RIGHT;\n\t\t\t\tneighborX--;\n\t\t\t\tif (neighborX < 0) {\n\t\t\t\t\toutOfBounds = true;\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\tcase RIGHT:\n\t\t\t\toppositeDir = Direction.LEFT;\n\t\t\t\tneighborX++;\n\t\t\t\tif (neighborX >= cols) {\n\t\t\t\t\toutOfBounds = true;\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\tcase UP:\n\t\t\t\toppositeDir = Direction.DOWN;\n\t\t\t\tneighborY--;\n\t\t\t\tif (neighborY < 0) {\n\t\t\t\t\toutOfBounds = true;\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\tcase DOWN:\n\t\t\t\toppositeDir = Direction.UP;\n\t\t\t\tneighborY++;\n\t\t\t\tif (neighborY >= rows) {\n\t\t\t\t\toutOfBounds = true;\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\tdefault:\n\t\t\t\toppositeDir = Direction.UP;\n\t\t\t\toutOfBounds = true;\n\t\t\t\tbreak;\n\t\t\t\n\t\t\t}\n\t\t\t\n\n\t\t\t\n\t\t\tif (outOfBounds) {\n\t\t\t\td.isWall = true;\n\t\t\t} else {\n\t\t\t\tneighbor = rooms[neighborY][neighborX];\n\t\t\t\tif (!neighbor.visited) {\n\t\t\t\t\td.isWall = false;\n\t\t\t\t\tdrunkenWalk(neighborX, neighborY);\n\t\t\t\t} else {\n\t\t\t\t\td.isWall = connectionType(oppositeDir, neighbor);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t\n\t}", "public void dfs (String input)\r\n\t {\r\n\t\t \tNode root_dfs = new Node (input);\r\n\t\t \tNode current = new Node(root_dfs.getState());\r\n\t\t \t\r\n\t\t\tArrayList<String> visited = new ArrayList<String>();\r\n\t\t\tArrayList<String> children = new ArrayList<String>();\r\n\t\t\tStack<Node> stack_dfs = new Stack<Node>();\r\n\t\t\t\r\n\t\t\tint nodes_popped = 0;\r\n\t\t\tint stack_max_size = 0;\r\n\t\t\tint stack_size = 0;\r\n\t\t\tcurrent.cost = 0;\r\n\t\t\t\r\n\t\t\tgoal_dfs = isGoal(current.getState());\r\n\t\t\t\r\n\t\t\twhile(!goal_dfs)\r\n\t\t\t{\r\n\t\t\t\tvisited.add(current.getState());\r\n\t\t\t\tchildren = Successor.findChildren(current.getState());\r\n\t\t\t\t\r\n\t\t\t\tfor (String a : children)\r\n\t\t\t\t{\r\n\t\t\t\t\t\r\n\t\t\t\t\tif (visited.contains(a))\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tcontinue;\r\n\t\t\t\t\t}\r\n\t\t\t\t\t\r\n\t\t\t\t\t\tNode nino = new Node(a);\r\n\t\t\t\t\t\tcurrent.children_nodes.add(nino);\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\tint cost = isCost(current.getState(), nino.getState());\r\n\t\t\t\t\t\tnino.cost = cost;\r\n\t\t\t\t\t\tnino.parent = current;\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t// Repeated state check\r\n\t\t\t\t\t\tif (!stack_dfs.contains(nino))\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tstack_dfs.add(nino);\r\n\t\t\t\t\t\t\tstack_size++;\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\t// Popping off the stack. LIFO architecture\r\n\t\t\t\tcurrent = stack_dfs.pop();\r\n\t\t\t\tnodes_popped++;\r\n\t\t\t\t\r\n\t\t\t\tif (stack_size > stack_max_size)\r\n\t\t\t\t{\r\n\t\t\t\t\tstack_max_size = stack_size;\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\tstack_size--;\r\n\t\t\t\tgoal_dfs = isGoal(current.getState());\r\n\t\t\t\t\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tgoal_dfs = false;\r\n\t\t\tSystem.out.println(\"DFS Solved!!\");\r\n\t\t\tSolution.performSolution(current, root_dfs, nodes_popped, stack_max_size);\r\n\t }", "@Test\n public void testAttemptLinks() {\n try {\n //link row 1\n largeMaze.linkPillars(Maze.position(0, 0), Maze.position(1, 0));\n largeMaze.linkPillars(Maze.position(1, 0), Maze.position(2, 0));\n largeMaze.linkPillars(Maze.position(2, 0), Maze.position(3, 0));\n largeMaze.linkPillars(Maze.position(3, 0), Maze.position(4, 0));\n largeMaze.linkPillars(Maze.position(1, 0), Maze.position(1, 1));\n\n //link row 2\n largeMaze.linkPillars(Maze.position(1, 1), Maze.position(2, 1));\n largeMaze.linkPillars(Maze.position(1, 1), Maze.position(1, 2));\n largeMaze.linkPillars(Maze.position(3, 1), Maze.position(4, 1));\n\n //link row 3\n largeMaze.linkPillars(Maze.position(1, 2), Maze.position(1, 3));\n largeMaze.linkPillars(Maze.position(1, 2), Maze.position(2, 2));\n\n //link row 4\n largeMaze.linkPillars(Maze.position(1, 3), Maze.position(0, 3));\n largeMaze.linkPillars(Maze.position(1, 3), Maze.position(2, 3));\n largeMaze.linkPillars(Maze.position(3, 3), Maze.position(4, 3));\n largeMaze.linkPillars(Maze.position(0, 3), Maze.position(0, 4));\n\n //link row 5\n largeMaze.linkPillars(Maze.position(0, 4), Maze.position(1, 4));\n largeMaze.linkPillars(Maze.position(1, 4), Maze.position(2, 4));\n largeMaze.linkPillars(Maze.position(2, 4), Maze.position(3, 4));\n largeMaze.linkPillars(Maze.position(3, 4), Maze.position(4, 4));\n\n //set beginning and end\n largeMaze.setBegin(Maze.position(0, 0));\n largeMaze.setEnd(Maze.position(4, 4));\n } catch (Exception e) {\n fail(\"Unexpected exception was thrown while linking pillars.\");\n }\n\n //invoke attemptLinks\n try {\n testPillars = largeMaze.getPillars();\n testPillar = testPillars.get(Maze.position(3,3));\n testPillar.setPlanksLeft(1);\n attemptLinks.invoke(solver.getClass(), testPillar, largeMaze.getEnd(), testESet, testNQueue);\n } catch (Exception e) {\n fail(\"Unexpectedly could not invoke attemptLinks().\");\n }\n\n assertEquals(3, testESet.size());\n assertEquals(3, testNQueue.size());\n }" ]
[ "0.60178214", "0.5927061", "0.5775893", "0.565942", "0.56152546", "0.5501384", "0.54703546", "0.5401407", "0.53442925", "0.53272116", "0.52683115", "0.5253782", "0.5252733", "0.5239505", "0.5227072", "0.52230495", "0.52163035", "0.52161026", "0.5193444", "0.5138374", "0.5138032", "0.51282823", "0.51117426", "0.510599", "0.5099135", "0.50960535", "0.5090702", "0.5083936", "0.5048823", "0.5036139", "0.50286746", "0.5026189", "0.5023309", "0.502289", "0.50211626", "0.5008842", "0.4998085", "0.49976358", "0.49937844", "0.49923155", "0.4981161", "0.49781564", "0.49736008", "0.49705103", "0.4968013", "0.4960805", "0.4958986", "0.49440643", "0.4939998", "0.49396992", "0.4937575", "0.49245128", "0.49231815", "0.491803", "0.49147856", "0.4903103", "0.48941508", "0.48926935", "0.4888873", "0.488465", "0.488167", "0.4866", "0.4865863", "0.48617488", "0.48518965", "0.48488674", "0.48459455", "0.48459038", "0.4840585", "0.48402783", "0.48330054", "0.48300186", "0.48300186", "0.4829479", "0.4821967", "0.48187196", "0.48119876", "0.4809383", "0.47910285", "0.47710192", "0.47704563", "0.47665036", "0.47647905", "0.4760761", "0.47593522", "0.4758299", "0.47574982", "0.4754844", "0.474235", "0.47407877", "0.47333765", "0.47307366", "0.47302496", "0.4725491", "0.4724279", "0.47224542", "0.47209623", "0.47203088", "0.47201318", "0.4719704" ]
0.6776658
0
sends the user to the Wikipedia site after clicking on the white circle next to BreadthFirstSearch The link is an information about the BFS algorithm that can be used to solve the maze
public void BFSInfo(ActionEvent actionEvent) { try { Desktop.getDesktop().browse(new URL("https://en.wikipedia.org/wiki/Breadth-first_search").toURI()); } catch (IOException e) { e.printStackTrace(); } catch (URISyntaxException e) { e.printStackTrace(); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void BFS() {\n visitedCells = 1;\n\n // Initialize the vertices\n for (int j = 0; j < maze.getGrid().length; j++) {\n for (int k = 0; k < maze.getGrid().length; k++) {\n Cell cell = maze.getGrid()[j][k];\n cell.setColor(\"WHITE\");\n cell.setDistance(0);\n cell.setParent(null);\n }\n }\n\n Cell sourceCell = maze.getGrid()[0][0];\n Cell neighbor = null;\n Cell currentCell;\n int distance = 0;\n\n // Initialize the source node\n sourceCell.setColor(\"GREY\");\n sourceCell.setDistance(0);\n sourceCell.setParent(null);\n\n queue.add(sourceCell);\n\n // Visits each cell until the queue is empty\n while (!queue.isEmpty()) {\n currentCell = queue.remove();\n\n for (int i = 0; i < currentCell.mazeNeighbors.size(); i++) {\n neighbor = currentCell.mazeNeighbors.get(i);\n\n // Stop the search if you reach the final cell\n if (neighbor.x == r - 1 && neighbor.y == r - 1) {\n distance++;\n if (distance == 10)\n distance = 0;\n neighbor.setDistance(distance);\n neighbor.setParent(currentCell);\n neighbor.visited = true;\n visitedCells++;\n break;\n }\n\n // Checks each neighbor and adds it to the queue if its color is white\n if (neighbor.getColor().equalsIgnoreCase(\"WHITE\")) {\n distance++;\n if (distance == 10)\n distance = 0;\n neighbor.setColor(\"GREY\");\n neighbor.setDistance(distance);\n neighbor.setParent(currentCell);\n neighbor.visited = true;\n queue.add(neighbor);\n visitedCells++;\n }\n }\n // Stop the search if you reach the final cell\n if (neighbor.x == r - 1 && neighbor.y == r - 1)\n break;\n\n currentCell.setColor(\"BLACK\");\n }\n }", "public void actionPerformed(ActionEvent e) {\r\n mode = InputMode.BFS;\r\n instr.setText(\"Click one node to start Breath First Traversal from it.\");\r\n }", "public void DFSInfo(ActionEvent actionEvent)\n {\n try {\n Desktop.getDesktop().browse(new URL(\"https://en.wikipedia.org/wiki/Depth-first_search\").toURI());\n } catch (IOException e) {\n e.printStackTrace();\n } catch (URISyntaxException e)\n {\n e.printStackTrace();\n }\n }", "public static void main(String[] args) throws IOException {\n Deque<String> urlsToVisit = new ArrayDeque<String>();\n // Keep track of which URLs we have visited, so we don't get ourselves stuck in a loop.\n List<String> visitedUrls = new ArrayList<String>();\n // Keep track of how we got to each page, so that we can find our trace back to the BEGIN_URL.\n Hashtable<String, String> referrers = new Hashtable<String, String>();\n boolean pathFound = false;\n\n // Begin with the BEGIN_URL\n urlsToVisit.push(BEGIN_URL);\n\n while(!urlsToVisit.isEmpty() && !pathFound) {\n String currentUrl = urlsToVisit.pop();\n visitedUrls.add(currentUrl);\n\n Elements paragraphs = wf.fetchWikipedia(BASE_URL + currentUrl);\n List<String> pageUrls = new ArrayList<String>();\n\n for (Element p : paragraphs) {\n pageUrls.addAll(getLinksFromParagraph(p));\n }\n\n // Reverse the order of all page urls so that when we're done pushing all the URLS\n // to the stack, the first URL in the page will be the first URL in the current page.\n Collections.reverse(pageUrls);\n\n // Add all the URLs to the list of URLs to visit.\n for (String newUrl : pageUrls) {\n if(!visitedUrls.contains(newUrl)) {\n urlsToVisit.push(newUrl);\n // Record how we ended up at newUrl.\n referrers.put(newUrl, currentUrl);\n\n // Check if one of the links in this page is the END_URL; which means we'll be done!\n if (newUrl.equals(END_URL)) {\n pathFound = true;\n }\n }\n }\n }\n\n if (pathFound) {\n System.out.println(\"=================\");\n System.out.println(\"Path found!\");\n System.out.println(\"=================\");\n\n // Back trace how we ended up at END_URL.\n String backtraceUrl = END_URL;\n System.out.println(backtraceUrl);\n while(backtraceUrl != BEGIN_URL) {\n String referrerUrl = referrers.get(backtraceUrl);\n System.out.println(referrerUrl);\n backtraceUrl = referrerUrl;\n }\n } else {\n System.out.println(\"=================\");\n System.out.println(\"No path found :(\");\n System.out.println(\"=================\");\n }\n }", "private void showWebResultForNode(IndexNode node)\n {\n if(node == null) return;\n \n final int MAX_CHARS = 25; \n JPanel panel = new JPanel(new GridLayout(7, 2));\n \n panel.add(new JLabel(\"URL\"));\n panel.add(new JLabel(limitString(node.getURL(), MAX_CHARS)));\n panel.add(new JLabel(\"Parent URL\"));\n panel.add(new JLabel(limitString(node.getParent(), MAX_CHARS)));\n panel.add(new JLabel(\"Title\"));\n panel.add(new JLabel(limitString(node.getTitle(), MAX_CHARS)));\n panel.add(new JLabel(\"Description\"));\n panel.add(new JLabel(limitString(node.getDescription(), MAX_CHARS + 10)));\n panel.add(new JLabel(\"Last updated\"));\n panel.add(new JLabel(limitString(node.getLastUpdated().toString(), MAX_CHARS + 10)));\n panel.add(new JLabel(\"Page rank\"));\n panel.add(new JLabel(limitString(\"\" + node.getRank(), 12)));\n \n JButton openInBrowser = new JButton(\"Open in browser\");\n JButton copyClipboard = new JButton(\"Copy to clipboard\");\n openInBrowser.setIcon(new ImageIcon(webIconImage));\n copyClipboard.setIcon(new ImageIcon(clipboardImage));\n panel.add(openInBrowser);\n panel.add(copyClipboard);\n \n ActionListener listener = (ActionEvent e) -> \n {\n Object src = e.getSource();\n \n //Open page at URL\n if(src == openInBrowser)\n openPage(node.getURL());\n \n //Copy URL to clipboard\n else if(src == copyClipboard)\n copyToClipboard(node.getURL());\n };\n \n openInBrowser.addActionListener(listener);\n copyClipboard.addActionListener(listener);\n \n\n \n panel.setBorder(BorderFactory.createEmptyBorder(15, 15, 15, 15));\n JDialog modal = new JDialog(frame);\n modal.getContentPane().add(panel);\n modal.setLocation(frame.getWidth() - panel.getSize().width, frame.getHeight() / 2 - panel.getSize().height);\n modal.setTitle(\"Address Data\");\n modal.pack();\n \n modal.addWindowListener(new WindowAdapter()\n {\n @Override\n public void windowClosing(WindowEvent e)\n {\n resultsTable.clearSelection();\n modalOpen = false;\n }\n });\n \n modal.setVisible(true);\n }", "public void BFS() {\r\n\t\tSet<Vertex> visited = new HashSet<Vertex>();\r\n\r\n\t\t// Create a queue for BFS\r\n\t\tQueue<Vertex> queue = new LinkedList<Vertex>();\r\n\r\n\t\tBFS(this.vertices[3], visited, queue); // BFS starting with 40\r\n\r\n\t\t// Call the helper function to print BFS traversal\r\n\t\t// starting from all vertices one by one\r\n\t\tfor (int i = 0; i < N; ++i)\r\n\t\t\tif (!visited.contains(this.vertices[i]))\r\n\t\t\t\tBFS(this.vertices[i], visited, queue);\r\n\t}", "public static void liveDemo() {\n Scanner in = new Scanner( System.in );\n float srcTank1, srcTank2, destTank;\n int alternetPaths;\n Graph mnfld = new Graph();\n boolean runSearch = true;\n\n //might need to limit query results, too large maybe?\n //newnodes = JDBC.graphInformation(); //returns arraylist of nodes\n //mnfld.setPipes(newnodes); //set nodes to the manifold\n //JDBC.insertConnections(mnfld);\n\n//\t\t /*\n//\t\t\tfor (int i = 0; i < newnodes.length(); i++) { //length might be wrong\n//\t\t\t\t//need to look for way to add edges by looking for neighbor nodes i think\n//\t\t\t\t//loop through nodes and create Edges\n//\t\t\t\t//might need new query\n//\t\t\t\tnewedges.addEdge(node1,node2,cost);\n//\t\t\t}\n//\n//\t\t\tmnfld.setConnections(newedges);\n//\n//\t\t\tup to this point, graph should be global to Dijkstra and unused.\n//\t\t\tloop until user leaves page\n//\t\t\tget input from user for tanks to transfer\n//\t\t\tfind shortest path between both tanks\n//\t\t\tend loop\n//\t\t\tthis will change depending how html works so not spending any time now on it\n//\t\t*/\n //shortestPath.runTest();\n\n shortestPath.loadGraph( mnfld );\n while (runSearch) {\n // Gets user input\n System.out.print( \"First Source Tank: \" );\n srcTank1 = in.nextFloat();\n System.out.print( \"Second Source Tank: \" );\n srcTank2 = in.nextFloat();\n System.out.print( \"Destination Tank: \" );\n destTank = in.nextFloat();\n System.out.print( \"Desired Number of Alternate Paths: \" );\n alternetPaths = in.nextInt();\n\n // Prints outputs\n Dijkstra.resetCosts( mnfld );\n System.out.println( \"True shortest with alt paths\" );\n Dijkstra.findAltPaths( mnfld, alternetPaths, srcTank1, destTank );\n mnfld.restoreDroppedConnections();\n\n Dijkstra.resetCosts( mnfld );\n System.out.println( \"Lineup Considering used connections\" );\n Dijkstra.findMinPaths( mnfld, mnfld.getPipe( srcTank1 ), true );\n mnfld.getPipe( destTank ).printLine();\n mnfld.restoreDroppedConnections();\n\n Dijkstra.resetCosts( mnfld );\n System.out.println( \"Lineup Considering only open connections\" );\n Dijkstra.findMinPaths( mnfld, mnfld.getPipe( srcTank1 ), false );\n mnfld.getPipe( destTank ).printLine();\n mnfld.restoreDroppedConnections();\n\n Dijkstra.resetCosts( mnfld );\n System.out.println( \"Merge Lineup\" );\n Dijkstra.findMinPaths( mnfld, mnfld.getPipe( srcTank1 ) );\n System.out.println( \"\\t Original Lineup: \" );\n mnfld.getPipe( destTank ).printLine();\n System.out.println( \"\\t Merged Lineup: \" );\n Dijkstra.mergePaths( mnfld, srcTank2, mnfld.getPipe( destTank ).getPath(), mnfld.getPipe( destTank ) );\n System.out.print( \"\\nRun another search [1:Yes, 0:No] :: \" );\n if (in.nextInt() == 0) runSearch = false;\n else System.out.println( \"\\n\\n\\n\" );\n }\n\n\n }", "public static void main(String[] args) throws FileNotFoundException, IOException {\r\n\r\n //Creating an instance object of the class PathBetweenNodes\r\n PathBetweenNodes x = new PathBetweenNodes();\r\n x.graph = new PathBetweenNodes();\r\n x.readMaze(); // reading the maze from the file\r\n LinkedList<String> visited = new LinkedList<String>(); // creating an array called visited to store visited nodes\r\n System.out.println(\"Enter the source node:\");//asking user to enter the start node\r\n Scanner sc = new Scanner(System.in); // Scanner to input the start node into the system\r\n START = sc.next();\r\n System.out.println(\"Enter the destination node:\");// asking user to input the destination node\r\n END = sc.next(); //scan the destination node into the system\r\n mode(option);\r\n startTimer = System.nanoTime();\r\n visited.add(START);// adding the start node to array visited\r\n new PathBetweenNodes().breadthFirst(x.graph, visited); // implementing the breath first search for graph x and array visited\r\n sc.close(); // scanner must be closed\r\n if (x.graph.flag) {\r\n System.out.println(\"There is existing path between \" + START + \" and \" + END + \" as above.\");\r\n }\r\n if (!x.graph.flag) {\r\n System.out.println(\"No path was found between \" + START + \" and \" + END + \".\");\r\n }\r\n endTimer = System.nanoTime();\r\n long TimeElapsed = endTimer - startTimer;\r\n System.out.println(\"Time taken to solve the maze = \" + TimeElapsed + \" Nano seconds.\");\r\n }", "public static void main(String[] args) {\n\n BDNode a = new BDNode(\"A\");\n BDNode b = new BDNode(\"B\");\n BDNode c = new BDNode(\"C\");\n BDNode d = new BDNode(\"D\");\n BDNode e = new BDNode(\"E\");\n\n a.link(b);\n a.link(d);\n b.link(a);\n b.link(c);\n b.link(e);\n c.link(b);\n c.link(d);\n d.link(a);\n d.link(c);\n d.link(e);\n e.link(b);\n e.link(d);\n\n BDNode target = e;\n\n/*\n // BFS\n Queue<BDNode> queue = new LinkedList<>();\n queue.offer(a);\n\n while(!queue.isEmpty()) {\n BDNode n = queue.poll();\n n.visit();\n System.out.println(n); // 찾는 여정 출력\n\n if(n.equals(target)) {\n System.out.println(\"BFS Found! \" + n);\n break;\n }\n\n for (BDNode l : n.links) {\n if(l.isVisited()) continue;\n if (queue.contains(l)) continue;\n queue.offer(l);\n }\n\n // 위랑 같은 표현\n// n.links.stream()\n// .filter(l -> !queue.contains(l))\n// .forEach(queue::offer);\n }\n*/\n\n // DFS\n Stack<BDNode> stack = new Stack<>();\n stack.push(a);\n\n while(!stack.isEmpty()) {\n BDNode n = stack.pop();\n n.visit();\n System.out.println(n); // 찾는 여정 출력\n\n if (n.equals(target)) {\n System.out.println(\"DFS Found! \" + n);\n break;\n }\n\n for (BDNode l : n.links) {\n if (l.isVisited()) continue;\n if (stack.contains(l)) continue;\n\n stack.push(l);\n }\n }\n\n\n }", "public static void main(String[] args) throws IOException {\r\n\t\t\r\n // some example code to get you started\r\n\r\n\t\tString url = \"https://en.wikipedia.org/wiki/Java_(programming_language)\";\r\n\t\tElements paragraphs = wf.fetchWikipedia(url);\r\n\t\tString baseUrl = \"https://en.wikipedia.org\";\r\n\t\tString location = \"\";\r\n\t\tList<String> visited = new ArrayList<>();\r\n\t\tElement firstPara = paragraphs.get(0);\r\n\t\tboolean notFound = true;\r\n\t\tboolean first = false;\r\n\t\tint i = 0;\r\n\t\tIterable<Node> iter = new WikiNodeIterable(firstPara);\r\n\t\tvisited.add(url);\r\n\t\twhile (notFound && i < 7) {\r\n\t\t\tfor (Node node: iter) {\r\n\t\t\t\tif (node instanceof Element) {\r\n\t\t\t\t\tElement e2 = (Element) node;\r\n\t\t\t\t\tString e2txt = e2.text();\r\n\t\t\t\t\tElements e = e2.children();\r\n\t\t\t\t\tfor (Node n : e) {\r\n\t\t\t\t\t\tif (n instanceof Element) {\r\n\t\t\t\t\t\t\tElement e3 = (Element) n;\r\n\t\t\t\t\t\t\tif (!first) {\r\n\t\t\t\t\t\t\t\tif (e3.tag().toString().equals(\"a\")) {\r\n\t\t\t\t\t\t\t\t\tif (e2txt.indexOf(\"(\") < e2txt.indexOf(e3.text()) && e2txt.indexOf(\")\") > e2txt.indexOf(e3.text())) {\r\n\r\n\t\t\t\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\t\t\t\tfirst = true;\r\n\t\t\t\t\t\t\t\t\t\tString str = e3.toString();\r\n\t\t\t\t\t\t\t\t\t\tString[] arr = str.split(\" \");\r\n\t\t\t\t\t\t\t\t\t\tlocation = arr[1].substring(6, arr[1].length() - 1);\r\n\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t\tif (!first) {\r\n\t\t\t\t\t\tSystem.out.println(\"No links found, exiting.\");\r\n\t\t\t\t\t\treturn;\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tparagraphs = wf.fetchWikipedia(baseUrl + location);\r\n\t\t\titer = new WikiNodeIterable(paragraphs.get(0));\r\n\t\t\tfirst = false;\r\n\t\t\tif (visited.contains(baseUrl + location)) {\r\n\t\t\t\tSystem.out.println(\"Links go in a loop, exiting\");\r\n\t\t\t\treturn;\r\n\t\t\t}\r\n\t\t\tvisited.add(baseUrl + location);\r\n\t\t\ti++;\r\n\t\t\tif (location.substring(6).equals(\"Philosophy\")) {\r\n\t\t\t\tnotFound = false;\r\n\t\t\t\tSystem.out.println(\"Philosophy found in \" + i + \" jumps\");\r\n\t\t\t}\r\n }\r\n System.out.println(visited);\r\n\t}", "public void breadthFirstTraversal() {\n beginAnimation();\n treeBreadthFirstTraversal();\n stopAnimation();\n\n }", "public void breadthFirstTraverse() {\n\t\t// track whether vertex was visited\n\t\tHashMap<Integer, Boolean> visited = buildVisited();\n\t\t// store neighbors\n\t\tQueue<Integer> queue = new LinkedList<Integer>();\n\n\t\t// arbitrarily add first element\n\t\tInteger current = (Integer) edges.keySet().toArray()[0];\n\t\tqueue.add(current);\n\n\t\twhile (queue.peek() != null) {\n\n\t\t\tcurrent = queue.remove();\n\t\t\tSystem.out.println(\"current: \" + current);\n\t\t\tvisited.put(current, true);\n\n\t\t\tfor (Integer neighbor: edges.get(current)) {\n\t\t\t\tif (!visited.get(neighbor)) {\n\t\t\t\t\tqueue.add(neighbor);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "int main()\n{\n // Create a graph given in the above diagram\n Graph g(4);\n g.addEdge(0, 1);\n g.addEdge(0, 2);\n g.addEdge(1, 2);\n g.addEdge(2, 0);\n g.addEdge(2, 3);\n g.addEdge(3, 3);\n \n cout << \"Following is Breadth First Traversal \"\n << \"(starting from vertex 2) n\";\n g.BFS(2);\n \n return 0;\n}", "void BFS(String start){\n\t\tint iStart = index(start);\n\t\t\n\t\tFronta f = new Fronta(pocetVrcholu*2);\n\t\t\n\t\tvrchP[iStart].barva = 'S';\n\t\tvrchP[iStart].vzdalenost = 0;\n\t\t\n\t\tf.vloz(start);\n\t\t\n\t\twhile(!f.jePrazdna()){\n\t\t\tString u = f.vyber();\n\t\t\tint indexU = index(u);\n\t\t\tint pom = 0;\n\t\t\t\n\t\t\tfor(int i = 1;i<= vrchP[indexU].pocetSousedu;i++){\n\t\t\t\twhile(matice[indexU][pom] == 0){\n\t\t\t\t\tpom++;\n\t\t\t\t\t\n\t\t\t\t}\n\t\t\t\tint a = pom++;\n\t\t\t\t\n\t\t\t\t\n\t\t\t\tif(vrchP[a].barva =='B'){\n\t\t\t\t\tvrchP[a].barva = 'S';\n\t\t\t\t\tvrchP[a].vzdalenost = vrchP[indexU].vzdalenost + 1;\n\t\t\t\t\tvrchP[a].predchudce = u;\n\t\t\t\t\tf.vloz(vrchP[a].klic);\n\t\t\t\t}\n\t\t\t}\n\t\t\tvrchP[indexU].barva = 'C';\n\t\t\tpole.add(vrchP[indexU].klic);\n\t\t}\n\t\t\n\t\t\n\t}", "void breach();", "public void bestInfo(ActionEvent actionEvent)\n {\n try {\n Desktop.getDesktop().browse(new URL(\"https://en.wikipedia.org/wiki/Best-first_search\").toURI());\n } catch (IOException e) {\n e.printStackTrace();\n } catch (URISyntaxException e)\n {\n e.printStackTrace();\n }\n }", "void BFS(int s);", "public static void main(String[] args) {\n\n /*\n * Given below directed graph, show the DFS and BFS traversal and print the paths\n * it took throughout the traversal of the graph\n *\n * (D)--(F)\n * /\n * (B)--(E)\n * /\n * (A)\n * \\\n * (C)--(G)\n *\n * Do Breadth First Search and Depth First Search, conclude on the trade offs\n * between the two traversal\n */\n\n // Initialize the graph here and its edges\n Graphs graph = new Graphs();\n graph.addNode('A', new Node('A'));\n graph.addNode('B', new Node('B'));\n graph.addNode('C', new Node('C'));\n graph.addNode('D', new Node('D'));\n graph.addNode('E', new Node('E'));\n graph.addNode('F', new Node('F'));\n graph.addNode('G', new Node('G'));\n\n graph.addEdge('A','B');\n graph.addEdge('B','D');\n graph.addEdge('D','F');\n graph.addEdge('B','E');\n graph.addEdge('A','C');\n graph.addEdge('C','G');\n\n // Initialize the list of paths\n ArrayList<String> traversedNodes;\n // Do a DFS on the graph\n traversedNodes = graph.depthFirstSearch('A','G');\n System.out.println(\"Traversal in DFS:\");\n // Print all of the paths\n for(String path : traversedNodes) {\n System.out.println(path);\n }\n\n // Do a BFS on the graph\n traversedNodes = graph.breadthFirstSearch('A','G');\n System.out.println(\"\\nTraversal in BFS:\");\n // Print all of the paths\n for(String path : traversedNodes) {\n System.out.println(path);\n }\n\n }", "private void searchNext(CrawlingSession executor, Link link) {\n HTMLLinkExtractor htmlLinkExtractor = HTMLLinkExtractor.getInstance();\n// htmlLinkExtractor.setWorking(link);\n \n Source source = CrawlingSources.getInstance().getSource(link.getSourceFullName());\n if(source == null) return;\n \n SessionStore store = SessionStores.getStore(source.getCodeName());\n if(store == null) return;\n\n List<Link> collection = htmlLinkExtractor.getLinks(link, /*link.getSource(),*/ pagePaths);\n// List<Link> collection = htmlLinkExtractor.getLinks(srResource);\n List<Link> nextLinks = createNextLink(link, collection);\n if(nextLinks.size() < 1) return;\n if(userPaths == null && contentPaths == null) {\n executor.addElement(nextLinks, link.getSourceFullName());\n return;\n }\n \n \n if(nextLinks.size() < 2) {\n executor.addElement(nextLinks, link.getSourceFullName());\n }\n \n// long start = System.currentTimeMillis();\n \n int [] posts = new int[nextLinks.size()];\n for(int i = 0; i < nextLinks.size(); i++) {\n try {\n posts[i] = PageDownloadedTracker.searchCode(nextLinks.get(i), true);\n } catch (Throwable e) {\n posts[i] = -1;\n LogService.getInstance().setThrowable(link.getSourceFullName(), e);\n// executor.abortSession();\n// return;\n }\n }\n \n int max = 1;\n for(int i = 0; i < posts.length; i++) {\n if(posts[i] > max) max = posts[i];\n }\n \n// System.out.println(\" thay max post la \"+ max);\n \n List<Link> updateLinks = new ArrayList<Link>();\n for(int i = 0; i < posts.length; i++) {\n if(posts[i] >= max) continue;\n updateLinks.add(nextLinks.get(i));\n }\n \n// long end = System.currentTimeMillis();\n// System.out.println(\"step. 4 \"+ link.getUrl()+ \" xu ly cai ni mat \" + (end - start));\n \n executor.addElement(updateLinks, link.getSourceFullName());\n \n /*int minPost = -1;\n Link minLink = null;\n List<Link> updateLinks = new ArrayList<Link>();\n for(int i = 0; i < nextLinks.size(); i++) {\n Link ele = nextLinks.get(i);\n int post = 0;\n try {\n post = PostForumTrackerService2.getInstance().read(ele.getAddressCode());\n } catch (Exception e) {\n LogService.getInstance().setThrowable(link.getSource(), e);\n }\n if(post < 1) {\n updateLinks.add(ele);\n continue;\n } \n\n if(minPost < 0 || post < minPost){\n minLink = ele;\n minPost = post; \n } \n }\n\n if(minLink != null) updateLinks.add(minLink);\n executor.addElement(updateLinks, link.getSource());*/\n }", "public static void bfs (String input)\r\n\t{\r\n\t\tNode root_bfs = new Node (input);\r\n\t\tNode current = new Node(root_bfs.getState());\r\n\t\t\r\n\t\tArrayList<String> visited = new ArrayList<String>();\r\n\t\tArrayList<String> children = new ArrayList<String>();\r\n\t\tQueue<Node> queue_bfs = new LinkedList<Node>();\r\n\t\t\r\n\t\tint nodes_popped = 0;\r\n\t\tint queue_max_size = 0;\r\n\t\tint queue_size = 0;\r\n\t\tcurrent.cost = 0;\r\n\t\t\r\n\t\t// Initial check for goal state\r\n\t\tgoal_bfs = isGoal(current.getState());\r\n\t\t\r\n\t\twhile(!goal_bfs)\r\n\t\t{\r\n\t\t\t// Add the current node to the visited array\r\n\t\t\tvisited.add(current.getState());\r\n\t\t\t// Get the nodes children from the successor function\r\n\t\t\tchildren = Successor.findChildren(current.getState());\r\n\t\t\t\r\n\t\t\tfor (String a : children)\r\n\t\t\t{\r\n\t\t\t\t// State checking, don't add already visited nodes to the queue\r\n\t\t\t\tif (visited.contains(a))\r\n\t\t\t\t{\r\n\t\t\t\t\tcontinue;\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\t\t// Create child node from the children array and add it to the current node\r\n\t\t\t\t\tNode nino = new Node(a);\r\n\t\t\t\t\tcurrent.children_nodes.add(nino);\r\n\t\t\t\t\t\r\n\t\t\t\t\t// Obtaining the path cost\r\n\t\t\t\t\tint cost = isCost(current.getState(), nino.getState());\r\n\t\t\t\t\tnino.cost = cost;\r\n\t\t\t\t\tnino.parent = current;\r\n\t\t\t\t\t\r\n\t\t\t\t\t// State check and adding the child to the queue. Increasing size counter\r\n\t\t\t\t\tif (!queue_bfs.contains(nino))\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tqueue_bfs.add(nino);\r\n\t\t\t\t\t\tqueue_size++;\r\n\t\t\t\t\t}\r\n\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t// Pop a node off the queue\r\n\t\t\tcurrent = queue_bfs.poll();\r\n\t\t\tnodes_popped++;\r\n\t\t\t\r\n\t\t\t// Added this because my queue size variable was always one off based on where my goal check is\r\n\t\t\tif (queue_size > queue_max_size)\r\n\t\t\t{\r\n\t\t\t\tqueue_max_size = queue_size;\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t// Decrease queue size because a node has been popped and check for goal state\r\n\t\t\tqueue_size--;\r\n\t\t\tgoal_bfs = isGoal(current.getState());\r\n\t\t\t\r\n\t\t}\r\n\t\t\r\n\t\t// Now that a solution has been found, set the boolean back to false for another run\r\n\t\tgoal_bfs = false;\r\n\t\tSystem.out.println(\"BFS Solved!!\");\r\n\t\t\r\n\t\t// Send metrics to be printed to the console\r\n\t\tSolution.performSolution(current, root_bfs, nodes_popped, queue_max_size);\r\n\t\t\t\r\n\t}", "public void showBreach();", "private void bfs(Dungeon d, Site s) {\n\t\t\n\t\t// use a queue to do BFS, and initialize instance variables\n\t\tQueue<Site> q = new LinkedList<Site>();\n\t\tfor (int x = 0; x < d.size(); x++)\n\t\t\tfor (int y = 0; y < d.size(); y++)\n\t\t\t\tdistTo[x][y] = INFINITY; \n\t\tdistTo[s.getX()][s.getY()] = 0;\n\t\tmarked[s.getX()][s.getY()] = true;\n\t\t\n\t\t// pop site from queue until it's empty\n\t\tq.offer(s);\n\t\twhile (!q.isEmpty()) {\n\t\t\t\n\t\t\t// pop the next site in the queue\n\t\t\tSite v = q.poll(); \t \n\t\t\tint x = v.getX();\n\t\t\tint y = v.getY();\n\n\t\t\t// 4 adjacent sites\n\t\t\tSite east = new Site(x + 1, y);\n\t\t\tSite west = new Site(x - 1, y);\n\t\t\tSite north = new Site(x, y - 1);\n\t\t\tSite south = new Site(x, y + 1);\n\n\t\t\t// BFS the rest of the dungeon\n\t\t\tif (d.isLegalMove(v, east) && !marked[east.getX()][east.getY()]) {\n\t\t\t\tedgeTo[east.getX()][east.getY()] = v;\n\t\t\t\tdistTo[east.getX()][east.getY()] = distTo[x][y] + 1;\n\t\t\t\tmarked[east.getX()][east.getY()] = true;\n\t\t\t\tq.offer(east);\n\t\t\t}\n\t\t\tif (d.isLegalMove(v, west) && !marked[west.getX()][west.getY()]) {\n\t\t\t\tedgeTo[west.getX()][west.getY()] = v;\n\t\t\t\tdistTo[west.getX()][west.getY()] = distTo[x][y] + 1;\n\t\t\t\tmarked[west.getX()][west.getY()] = true;\n\t\t\t\tq.offer(west);\n\t\t\t}\n\t\t\tif (d.isLegalMove(v, north) && !marked[north.getX()][north.getY()]) {\n\t\t\t\tedgeTo[north.getX()][north.getY()] = v;\n\t\t\t\tdistTo[north.getX()][north.getY()] = distTo[x][y] + 1;\n\t\t\t\tmarked[north.getX()][north.getY()] = true;\n\t\t\t\tq.offer(north);\n\t\t\t}\n\t\t\tif (d.isLegalMove(v, south) && !marked[south.getX()][south.getY()]) {\n\t\t\t\tedgeTo[south.getX()][south.getY()] = v;\n\t\t\t\tdistTo[south.getX()][south.getY()] = distTo[x][y] + 1;\n\t\t\t\tmarked[south.getX()][south.getY()] = true;\n\t\t\t\tq.offer(south);\n\t\t\t}\n\n\t\t}\n\n\t}", "@Override\r\n public void actionPerformed(ActionEvent e)\r\n {\n toggleButtons(false);\r\n if (breadthFirstButton.isSelected())\r\n {\r\n DequeAdder tailAdder = new DequeAdder()\r\n {\r\n @Override\r\n public void add(Vertex vertex, Deque<Vertex> deque)\r\n {\r\n deque.addLast(vertex);\r\n }\r\n };\r\n problem.search((Vertex) problem.getCurrentState(),\r\n tailAdder);\r\n } else if (depthFirstButton.isSelected())\r\n {\r\n DequeAdder headAdder = new DequeAdder()\r\n {\r\n @Override\r\n public void add(Vertex vertex, Deque<Vertex> deque)\r\n {\r\n deque.addFirst(vertex);\r\n }\r\n };\r\n problem.search((Vertex) problem.getCurrentState(),\r\n headAdder);\r\n } else if (AStarButton.isSelected())\r\n {\r\n problem.searchAStar((Vertex) problem.getCurrentState());\r\n }\r\n else if (enhancedAStarButton.isSelected())\r\n {\r\n problem.enhancedAStarSearch((Vertex) problem.getCurrentState());\r\n }\r\n setStats();\r\n showNxtMvBtn.setEnabled(true);\r\n showAllMoves.setEnabled(true);\r\n }", "public static void main(String[] args) {\n\t\tint[][] m= { {197,130,139,188},{20,24,167,182},{108,78,169,193},{184,65,83,41} };\r\n\t\tint[][] m2= {{149,77,42,136},\r\n\t\t\t\t{145,155,45,0},\r\n\t\t\t\t{136,102,182,87},\r\n\t\t\t\t{178,183,143,60}};\r\n\t\tfor (int[] is : m2) {\r\n\t\t\tfor (int is2 : is) {\r\n\t\t\t\tSystem.out.print(is2+\",\");\r\n\t\t\t\t\r\n\t\t\t}\r\n\t\t\tSystem.out.println(\"\\n\");\r\n\t\t}\r\n\t\tSearchable matrix=new Matrix(m2,new MatrixState(\"0,0\"),new MatrixState(\"3,3\"));\r\n\t\tSearcher<String> sol=new BFS<>();\r\n\t\tSystem.out.println(sol.search(matrix));\r\n\t}", "public static void bfs(int a, int b) {\n\t\t\r\n\t\tQueue<Node> q = new LinkedList<>();\r\n\t\t\r\n\t\tq.add(new Node(a,b));\r\n\t\t\r\n\t\twhile(!q.isEmpty()) {\r\n\t\t\t\r\n\t\t\tNode n = q.remove();\r\n\t\t\t\r\n\t\t\tint x = n.x;\r\n\t\t\tint y = n.y;\r\n\t\t\t\r\n\t\t\tif(x+1 <= N && map[x+1][y] > map[x][y]) {\r\n\t\t\t\tif(visited[x+1][y] != 1) {\r\n\t\t\t\t\tq.add(new Node(x+1,y));\r\n\t\t\t\t\tvisited[x+1][y] = cnt;\r\n\t\t\t\t\t\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t}\r\n\t\t\tif(x-1 > 0 && map[x-1][y] > map[x][y]) {\r\n\t\t\t\tif(visited[x-1][y] != 1) {\r\n\t\t\t\t\tq.add(new Node(x-1,y));\r\n\t\t\t\t\tvisited[x-1][y] = cnt;\r\n\t\t\t\t\t\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t}\r\n\t\t\tif(y-1 > 0 && map[x][y-1] > map[x][y]) {\r\n\t\t\t\tif(visited[x][y-1] != 1) {\r\n\t\t\t\t\tq.add(new Node(x,y-1));\r\n\t\t\t\t\tvisited[x][y-1] = cnt;\r\n\t\t\t\t\t\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t}\r\n\t\t\tif(y+1 <=N && map[x][y+1] > map[x][y]) {\r\n\t\t\t\tif(visited[x][y+1] != 1) {\r\n\t\t\t\t\tq.add(new Node(x,y+1));\r\n\t\t\t\t\tvisited[x][y+1] = cnt;\r\n\t\t\t\t\t\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t}\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t}", "public void ClickSearchOnline() throws InterruptedException {\n\n searchOnline.click();\n //sameOriginAndDestination();\n\n\n }", "public void crawlAndIndex(String url) throws Exception {\r\n\t\t// TODO : Add code here\r\n\t\tQueue<String> queue=new LinkedList<>();\r\n\t\tqueue.add(url);\r\n\t\twhile (!queue.isEmpty()){\r\n\t\t\tString currentUrl=queue.poll();\r\n\t\t\tif(internet.getVisited(currentUrl)){\r\n\t\t\t\tcontinue;\r\n\t\t\t}\r\n\t\t\tArrayList<String> urls = parser.getLinks(currentUrl);\r\n\t\t\tArrayList<String> contents = parser.getContent(currentUrl);\r\n\t\t\tupdateWordIndex(contents,currentUrl);\r\n\t\t\tinternet.addVertex(currentUrl);\r\n\t\t\tinternet.setVisited(currentUrl,true);\r\n\t\t\tfor(String u:urls){\r\n\t\t\t\tinternet.addVertex(u);\r\n\t\t\t\tinternet.addEdge(currentUrl,u);\r\n\t\t\t\tqueue.add(u);\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t}", "@Override\n\t\t\tpublic void run() \n\t\t\t{\n\t\t\t\tif(!(mazeCollection.containsKey(paramArray[0])))\n\t\t\t\t{\n\t\t\t\t\tc.passError(\"Maze doesn't exist\");\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t\t/*\n\t\t\t\t//if solution for this maze exists\n\t\t\t\tif(mazeSolutions.containsKey(mazeCollection.get(paramArray[0])))\n\t\t\t\t{\n\t\t\t\t\tc.passSolve(\"Solution for \"+paramArray[0]+ \" is ready\");\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t*/\n\t\t\t\t\n\t\t\t\tif(paramArray[1].toString().equals(\"bfs\"))\n\t\t\t\t{\n\t\t\t\t\tMazeAdapter ms=new MazeAdapter(mazeCollection.get(paramArray[0]));\n\t\t\t\t\t\n\t\t\t\t\tSearcher<Position> bfs=new BFS<Position>();\n\t\t\t\t\tSolution<Position> sol=bfs.search(ms);\n\t\t\t\t\t\n\t\t\t\t\t//check if solution for the maze already exists, if so, replace it with the new one\n\t\t\t\t\tif(mazeSolutions.containsKey(mazeCollection.get(paramArray[0]))) {\n\t\t\t\t\t\tmazeSolutions.remove(mazeCollection.get(paramArray[0]));\n\t\t\t\t\t\tmazeSolutions.put(mazeCollection.get(paramArray[0]), sol);\n\t\t\t\t\t}\n\t\t\t\t\telse {\n\t\t\t\t\t\tmazeSolutions.put(mazeCollection.get(paramArray[0]), sol);\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\tc.passSolve(\"Solution for \"+paramArray[0]+ \" is ready\");\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t\telse if(paramArray[1].toString().equals(\"dfs\"))\n\t\t\t\t{\n\t\t\t\t\tMazeAdapter ms=new MazeAdapter(mazeCollection.get(paramArray[0]));\n\t\t\t\t\t\n\t\t\t\t\tSearcher<Position> dfs=new DFS<Position>();\n\t\t\t\t\tSolution<Position> sol=dfs.search(ms);\n\t\t\t\t\t\n\t\t\t\t\t//check if solution for the maze already exists, if so, replace it with the new one\n\t\t\t\t\tif(mazeSolutions.containsKey(mazeCollection.get(paramArray[0]))) {\n\t\t\t\t\t\tmazeSolutions.remove(mazeCollection.get(paramArray[0]));\n\t\t\t\t\t\tmazeSolutions.put(mazeCollection.get(paramArray[0]), sol);\n\t\t\t\t\t}\n\t\t\t\t\telse {\n\t\t\t\t\t\tmazeSolutions.put(mazeCollection.get(paramArray[0]), sol);\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\tc.passSolve(\"Solution for \"+paramArray[0]+ \" is ready\");\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\tc.passError(\"Invalid algorithm\");\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t}", "private static void BFS(int[][] adjacencyMatrix) {\n\t\tint n = adjacencyMatrix.length;\n\t\tboolean visited[] = new boolean[n];\n\t\tfor(int i=0;i<n;i++) {\n\t\t\tif(!visited[i]) {\n\t\t\tprintBFS(adjacencyMatrix,i,visited);\n\t\t\t}\n\t\t}\n\t\t\t\n\t\t\n\t}", "private void bfs(int x, int y, Node p) {\n if (p == null) {\n // TODO\n return;\n }\n char c = board[x][y];\n\n if (p.next(c) == null) {\n // TODO not found\n return;\n }\n\n Node node = p.next(c);\n\n // if node is leaf, found a word\n if (node.word != null) {\n if (!results.contains(node.word)) {\n results.add(node.word);\n }\n }\n\n mark[x][y] = true;\n for (int[] dir: dirs) {\n int newX = x + dir[0];\n int newY = y + dir[1];\n if (newX < 0 || n <= newX\n || newY < 0 || m <= newY) {\n continue;\n }\n\n if (mark[newX][newY]) {\n continue;\n }\n\n bfs(newX, newY, node);\n }\n mark[x][y] = false;\n }", "public static void main(String[] args) {\n BreadthFirstSearch g = new BreadthFirstSearch(4);\n\n /* Add edges in graph */\n g.addEdge(0, 0);\n g.addEdge(0,1);\n g.addEdge(0, 2);\n g.addEdge(1, 2);\n g.addEdge(2, 0);\n g.addEdge(2, 3);\n\n System.out.println(\"Traverse graph with BFS...\");\n System.out.println(\"Starting Vertex: 2\");\n\n g.BFS(2);\n }", "public void run() {\n BFS();\n printBFS();\n shortestPathList();\n printShortestPath();\n printPath();\n }", "private void breadthFirst(PathBetweenNodes graph, LinkedList<String> visited) {\r\n\r\n LinkedList<String> nodes = graph.adjacentNodes(visited.getLast());\r\n for (String node : nodes)\r\n {\r\n if (visited.contains(node))\r\n {\r\n continue;\r\n }\r\n if (node.equals(END))\r\n {\r\n \tif (mode1 && mode){\r\n visited.add(node);\r\n printPath(visited); \r\n graph.flag=false;\r\n mode=false;\r\n visited.removeLast();\r\n \t} else if(mode2){\r\n visited.add(node);\r\n printPath(visited); \r\n flag=mode2; \r\n visited.removeLast();\r\n \t} \r\n } \r\n }\r\n\r\n for (String node : nodes) { // implementing a for loop to call each node in the array nodes\r\n if (visited.contains(node) || node.equals(END)) { // if statement to see if node is already visited or it is the end node\r\n continue;\r\n }\r\n flag=true;\r\n visited.addLast(node); //adding the last node to visited array\r\n breadthFirst(graph, visited); // implementing the breath first search\r\n visited.removeLast(); // removing the last node from array visited\r\n }\r\n if (flag == false) {\r\n System.out.println(\"No path Exists between \" + START + \" and \" + END);\r\n flag = true;\r\n }\r\n }", "public String outputBreadthFirstSearch() {\n\n String output = \"\";\n\n // create a queue for BFS \n LinkedList<TrieNode> queue = new LinkedList<>();\n\n queue.add(root);\n\n while (queue.size() != 0) {\n // dequeue a node from queue and append to the output\n TrieNode s = queue.poll();\n\n // append to the output\n output += s;\n\n // get all children nodes of the dequeued node s\n TrieNode[] children = s.offsprings;\n for (int i = 0; i < 26; i++) {\n TrieNode next = children[i];\n if (next != null) {\n queue.add(next);\n }\n\n }\n }\n return output;\n }", "public void BFS() {\r\n\t\tQueue queue = new Queue();\r\n\t\tqueue.enqueue(this.currentVertex);\r\n\t\tcurrentVertex.printVertex();\r\n\t\tcurrentVertex.visited = true;\r\n\t\twhile (!queue.isEmpty()) {\r\n\t\t\tVertex vertex = (Vertex) queue.dequeue();\r\n\t\t\tVertex child = null;\r\n\t\t\twhile ((child = getUnvisitedChildVertex(vertex)) != null) {\r\n\t\t\t\tchild.visited = true;\r\n\t\t\t\tchild.printVertex();\r\n\t\t\t\tqueue.enqueue(child);\r\n\t\t\t}\r\n\t\t}\r\n\t\tclearVertexNodes();\r\n\t\tprintLine();\r\n\t}", "public static void breadthFirstSearch(ArrayList<Node> graph) {\n\t\tSystem.out.println(\"BFS:\");\n\t\tif(graph.size() == 0) {\n\t\t\treturn;\n\t\t}\n\t\t\n\t\tGraphUtils.cleanGraph(graph);\n\n\t\tQueue<Node> queue = new LinkedList<Node>();\n\t\tfor(Node node : graph) {\n\t\t\tif(node.state != Node.State.UNDISCOVERED) {\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\tnode.state = Node.State.DISCOVERED;\n\t\t\tqueue.add(node);\n\t\t\t\n\t\t\twhile(!queue.isEmpty()) {\n\t\t\t\tnode = queue.remove();\n\t\t\t\t\n\t\t\t\t//process node\n\t\t\t\tSystem.out.print(node.name + \" -> \");\n\t\t\t\t\n\t\t\t\tfor(Edge e : node.edges) {\n\t\t\t\t\t//process edge\n\t\t\t\t\tNode neighbor = e.getNeighbor(node);\n\t\t\t\t\t\n\t\t\t\t\t//first time we see this node it gets added to the queue for later processing\n\t\t\t\t\tif(neighbor.state == Node.State.UNDISCOVERED) {\n\t\t\t\t\t\tneighbor.state = Node.State.DISCOVERED;\n\t\t\t\t\t\tqueue.add(neighbor);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t//finished with this node\n\t\t\t\tnode.state = Node.State.COMPLETE;\n\t\t\t}\n\t\t}\n\n\t\tSystem.out.println();\n\t\tGraphUtils.cleanGraph(graph);\n\t}", "private int bfs(String source, String destination, Map<String, List<String>> graph) {\n\n class Node {\n String word;\n int distance = 0;\n\n public Node(String word, int distance) {\n this.word = word;\n this.distance = distance;\n }\n }\n\n final Queue<Node> queue = new LinkedList<>();\n Set<String> visited = new HashSet<>();\n queue.offer(new Node(source, 0)); //distance of source to source is 0\n visited.add(source);\n\n while (!queue.isEmpty()) {\n\n final Node node = queue.poll();\n final int distance = node.distance;\n\n //if we reached the destination node\n if (node.word.equals(destination)) {\n return distance + 1;\n }\n\n //try all word which is 1 weight away\n for (String neighbour : graph.getOrDefault(node.word, new ArrayList<>())) {\n if (!visited.contains(neighbour)) {\n visited.add(neighbour);\n queue.offer(new Node(neighbour, distance + 1));\n }\n }\n\n\n }\n return 0;\n }", "@Override\n\t//loc1 is the start location,loc2 is the destination\n\tpublic ArrayList<MapCoordinate> bfsSearch(MapCoordinate loc1, MapCoordinate loc2, Map m) {\n\t\tSystem.out.println(\"come into bfsSearch\");\n\t\tif(m.isAgentHasAxe() && m.isAgentHasKey()){\n\t\t\tLinkedList<State> queue=new LinkedList<State>();\n\t\t\tArrayList<MapCoordinate> Visited=new ArrayList<MapCoordinate>();\n\t\t\t\n\t\t\t//Visited.add(loc1);\n\t\t\tState s1=new State(loc1,m.getAgentHasNStones(),null);\n\t\t\tqueue.add(s1);\n\t\t\t\n\t\t\twhile(!queue.isEmpty()){\n\t\t\t\tState s=queue.remove();\n\t\t\t\tMapCoordinate currentLocation=s.getLocation();\n\t\t\t\tVisited.add(s.getLocation()); //add to visited every loop\n\t\t\t\tif(loc2.equals(currentLocation)){\n\t\t\t\t\t//means could reach loc2 from loc1\n\t\t\t\t\tArrayList<MapCoordinate> route=new ArrayList<MapCoordinate>();\n\t\t\t\t\twhile(s.getPrevState()!=null){\n\t\t\t\t\t\troute.add(0,s.getLocation()); //add to head\n\t\t\t\t\t\ts=s.getPrevState();\n\t\t\t\t\t}\n\t\t\t\t\treturn route;\n\t\t\t\t}\n\t\t\t\tMapCoordinate temp=new MapCoordinate(currentLocation.getX()+1,currentLocation.getY());\n\t\t\t\tif(m.hasCoordinate(temp)){//state move east\n\t\t\t\t\tif(s.getPrevState()!=null&&!temp.equals(s.getPrevState().getLocation())){\n\t\t\t\t\t\tchar cTemp=m.getSymbol(temp);\n\t\t\t\t\t\tif(!Visited.contains(temp)&&cTemp!='*' ){\n\t\t\t\t\t\t\tif(cTemp=='~' && s.getStoneNumber()>0){//at least has 1 stone\n\t\t\t\t\t\t\t\tState newState=new State(new MapCoordinate(temp),s.getStoneNumber()-1,s);\n\t\t\t\t\t\t\t\tqueue.addLast(newState);\n\t\t\t\t\t\t\t}else if(cTemp!='~'){ //this is important else if(cTemp!='~'), not barely else,\n\t\t\t\t\t\t\t\tState newState=new State(new MapCoordinate(temp),s.getStoneNumber(),s);\n\t\t\t\t\t\t\t\tqueue.addFirst(newState);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}else if(s.getPrevState()==null){ //for initial state\n\t\t\t\t\t\tchar cTemp=m.getSymbol(temp);\n\t\t\t\t\t\t//System.out.println(\"2 if lalala\");\n\t\t\t\t\t\tif(cTemp!='*' ){\n\t\t\t\t\t\t\t//System.out.println(\"3 iflalala\");\n\t\t\t\t\t\t\tif(cTemp=='~' && s.getStoneNumber()>0){\n\t\t\t\t\t\t\t\t//System.out.println(\"4 iflalala\");\n\t\t\t\t\t\t\t\tState newState=new State(new MapCoordinate(temp),s.getStoneNumber()-1,s);\n\t\t\t\t\t\t\t\tqueue.addLast(newState);\n\t\t\t\t\t\t\t}else if(cTemp!='~'){\n\t\t\t\t\t\t\t\t//System.out.println(\"4 elselalala\");\n\t\t\t\t\t\t\t\tState newState=new State(new MapCoordinate(temp),s.getStoneNumber(),s);\n\t\t\t\t\t\t\t\tqueue.addFirst(newState);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\ttemp=new MapCoordinate(currentLocation.getX()-1,currentLocation.getY());\n\t\t\t\tif(m.hasCoordinate(temp)){//state move south\n\t\t\t\t\tif(s.getPrevState()!=null&&!temp.equals(s.getPrevState().getLocation())){\n\t\t\t\t\t\tchar cTemp=m.getSymbol(temp);\n\t\t\t\t\t\tif(!Visited.contains(temp)&&cTemp!='*' ){\n\t\t\t\t\t\t\tif(cTemp=='~' && s.getStoneNumber()>0){//at least has 1 stone\n\t\t\t\t\t\t\t\tState newState=new State(new MapCoordinate(temp),s.getStoneNumber()-1,s);\n\t\t\t\t\t\t\t\tqueue.addLast(newState);\n\t\t\t\t\t\t\t}else if(cTemp!='~'){\n\t\t\t\t\t\t\t\tState newState=new State(new MapCoordinate(temp),s.getStoneNumber(),s);\n\t\t\t\t\t\t\t\tqueue.addFirst(newState);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}else if(s.getPrevState()==null){ //for initial state\n\t\t\t\t\t\tchar cTemp=m.getSymbol(temp);\n\t\t\t\t\t\t//System.out.println(\"2 if lalala\");\n\t\t\t\t\t\tif(cTemp!='*' ){\n\t\t\t\t\t\t\t//System.out.println(\"3 iflalala\");\n\t\t\t\t\t\t\tif(cTemp=='~' && s.getStoneNumber()>0){\n\t\t\t\t\t\t\t\t//System.out.println(\"4 iflalala\");\n\t\t\t\t\t\t\t\tState newState=new State(new MapCoordinate(temp),s.getStoneNumber()-1,s);\n\t\t\t\t\t\t\t\tqueue.addLast(newState);\n\t\t\t\t\t\t\t}else if(cTemp!='~'){\n\t\t\t\t\t\t\t\t//System.out.println(\"4 elselalala\");\n\t\t\t\t\t\t\t\tState newState=new State(new MapCoordinate(temp),s.getStoneNumber(),s);\n\t\t\t\t\t\t\t\tqueue.addFirst(newState);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\ttemp=new MapCoordinate(currentLocation.getX(),currentLocation.getY()+1);\n\t\t\t\tif(m.hasCoordinate(temp)){//state move north\n\t\t\t\t\tif(s.getPrevState()!=null&&!temp.equals(s.getPrevState().getLocation())){\n\t\t\t\t\t\tchar cTemp=m.getSymbol(temp);\n\t\t\t\t\t\tif(!Visited.contains(temp)&&cTemp!='*' ){\n\t\t\t\t\t\t\tif(cTemp=='~' && s.getStoneNumber()>0){//at least has 1 stone\n\t\t\t\t\t\t\t\tState newState=new State(new MapCoordinate(temp),s.getStoneNumber()-1,s);\n\t\t\t\t\t\t\t\tqueue.addLast(newState);\n\t\t\t\t\t\t\t}else if(cTemp!='~'){\n\t\t\t\t\t\t\t\tState newState=new State(new MapCoordinate(temp),s.getStoneNumber(),s);\n\t\t\t\t\t\t\t\tqueue.addFirst(newState);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}else if(s.getPrevState()==null){ //for initial state\n\t\t\t\t\t\tchar cTemp=m.getSymbol(temp);\n\t\t\t\t\t\t//System.out.println(\"2 if lalala\");\n\t\t\t\t\t\tif(cTemp!='*' ){\n\t\t\t\t\t\t\t//System.out.println(\"3 iflalala\");\n\t\t\t\t\t\t\tif(cTemp=='~' && s.getStoneNumber()>0){\n\t\t\t\t\t\t\t\t//System.out.println(\"4 iflalala\");\n\t\t\t\t\t\t\t\tState newState=new State(new MapCoordinate(temp),s.getStoneNumber()-1,s);\n\t\t\t\t\t\t\t\tqueue.addLast(newState);\n\t\t\t\t\t\t\t}else if(cTemp!='~'){\n\t\t\t\t\t\t\t\t//System.out.println(\"4 elselalala\");\n\t\t\t\t\t\t\t\tState newState=new State(new MapCoordinate(temp),s.getStoneNumber(),s);\n\t\t\t\t\t\t\t\tqueue.addFirst(newState);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\ttemp=new MapCoordinate(currentLocation.getX(),currentLocation.getY()-1);\n\t\t\t\tif(m.hasCoordinate(temp)){//state move south\n\t\t\t\t\tif(s.getPrevState()!=null&&!temp.equals(s.getPrevState().getLocation())){\n\t\t\t\t\t\tchar cTemp=m.getSymbol(temp);\n\t\t\t\t\t\tif(!Visited.contains(temp)&&cTemp!='*' ){\n\t\t\t\t\t\t\tif(cTemp=='~' &&s.getStoneNumber()>0){//at least has 1 stone\n\t\t\t\t\t\t\t\tState newState=new State(new MapCoordinate(temp),s.getStoneNumber()-1,s);\n\t\t\t\t\t\t\t\tqueue.addLast(newState);\n\t\t\t\t\t\t\t}else if(cTemp!='~'){\n\t\t\t\t\t\t\t\tState newState=new State(new MapCoordinate(temp),s.getStoneNumber(),s);\n\t\t\t\t\t\t\t\tqueue.addFirst(newState);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}else if(s.getPrevState()==null){ //for initial state\n\t\t\t\t\t\tchar cTemp=m.getSymbol(temp);\n\t\t\t\t\t\t//System.out.println(\"2 if lalala\");\n\t\t\t\t\t\tif(cTemp!='*' ){\n\t\t\t\t\t\t\t//System.out.println(\"3 iflalala\");\n\t\t\t\t\t\t\tif(cTemp=='~' && s.getStoneNumber()>0){\n\t\t\t\t\t\t\t\t//System.out.println(\"4 iflalala\");\n\t\t\t\t\t\t\t\tState newState=new State(new MapCoordinate(temp),s.getStoneNumber()-1,s);\n\t\t\t\t\t\t\t\tqueue.addLast(newState);\n\t\t\t\t\t\t\t}else if(cTemp!='~'){\n\t\t\t\t\t\t\t\t//System.out.println(\"4 elselalala\");\n\t\t\t\t\t\t\t\tState newState=new State(new MapCoordinate(temp),s.getStoneNumber(),s);\n\t\t\t\t\t\t\t\tqueue.addFirst(newState);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\t\n\t\t\t}\n\t\t\treturn null;\n\t\t}else if(m.isAgentHasAxe()){ //only have axe\n\t\t\tLinkedList<State> queue=new LinkedList<State>();\n\t\t\tArrayList<MapCoordinate> Visited=new ArrayList<MapCoordinate>();\n\t\t\t\n\t\t\t//Visited.add(loc1);\n\t\t\tState s1=new State(loc1,m.getAgentHasNStones(),null);\n\t\t\tqueue.add(s1);\n\t\t\t\n\t\t\twhile(!queue.isEmpty()){\n\t\t\t\tState s=queue.remove();\n\t\t\t\tMapCoordinate currentLocation=s.getLocation();\n\t\t\t\tVisited.add(s.getLocation()); //add visited every loop\n\t\t\t\tif(loc2.equals(currentLocation)){\n\t\t\t\t\t//means could reach loc2 from loc1\n\t\t\t\t\tArrayList<MapCoordinate> route=new ArrayList<MapCoordinate>();\n\t\t\t\t\twhile(s.getPrevState()!=null){\n\t\t\t\t\t\troute.add(0,s.getLocation()); //add to head\n\t\t\t\t\t\ts=s.getPrevState();\n\t\t\t\t\t}\n\t\t\t\t\treturn route;\n\t\t\t\t}\n\t\t\t\tMapCoordinate temp=new MapCoordinate(currentLocation.getX()+1,currentLocation.getY());\n\t\t\t\tif(m.hasCoordinate(temp)){//state move south\n\t\t\t\t\tif(s.getPrevState()!=null&&!temp.equals(s.getPrevState().getLocation())){\n\t\t\t\t\t\tchar cTemp=m.getSymbol(temp);\n\t\t\t\t\t\tif(!Visited.contains(temp)&&cTemp!='*' &&cTemp!='-' ){\n\t\t\t\t\t\t\tif(cTemp=='~' && s.getStoneNumber()>0){//at least has 1 stone\n\t\t\t\t\t\t\t\tState newState=new State(new MapCoordinate(temp),s.getStoneNumber()-1,s);\n\t\t\t\t\t\t\t\tqueue.addLast(newState);\n\t\t\t\t\t\t\t}else if(cTemp!='~'){\n\t\t\t\t\t\t\t\tState newState=new State(new MapCoordinate(temp),s.getStoneNumber(),s);\n\t\t\t\t\t\t\t\tqueue.addFirst(newState);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}else if(s.getPrevState()==null){ //for initial state\n\t\t\t\t\t\tchar cTemp=m.getSymbol(temp);\n\t\t\t\t\t\t//System.out.println(\"2 if lalala\");\n\t\t\t\t\t\tif(cTemp!='*' &&cTemp!='-' ){\n\t\t\t\t\t\t\t//System.out.println(\"3 iflalala\");\n\t\t\t\t\t\t\tif(cTemp=='~' && s.getStoneNumber()>0){\n\t\t\t\t\t\t\t\t//System.out.println(\"4 iflalala\");\n\t\t\t\t\t\t\t\tState newState=new State(new MapCoordinate(temp),s.getStoneNumber()-1,s);\n\t\t\t\t\t\t\t\tqueue.addLast(newState);\n\t\t\t\t\t\t\t}else if(cTemp!='~'){\n\t\t\t\t\t\t\t\t//System.out.println(\"4 elselalala\");\n\t\t\t\t\t\t\t\tState newState=new State(new MapCoordinate(temp),s.getStoneNumber(),s);\n\t\t\t\t\t\t\t\tqueue.addFirst(newState);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\ttemp=new MapCoordinate(currentLocation.getX()-1,currentLocation.getY());\n\t\t\t\tif(m.hasCoordinate(temp)){//state move south\n\t\t\t\t\tif(s.getPrevState()!=null&&!temp.equals(s.getPrevState().getLocation())){\n\t\t\t\t\t\tchar cTemp=m.getSymbol(temp);\n\t\t\t\t\t\tif(!Visited.contains(temp)&&cTemp!='*' &&cTemp!='-' ){\n\t\t\t\t\t\t\tif(cTemp=='~' && s.getStoneNumber()>0){//at least has 1 stone\n\t\t\t\t\t\t\t\tState newState=new State(new MapCoordinate(temp),s.getStoneNumber()-1,s);\n\t\t\t\t\t\t\t\tqueue.addLast(newState);\n\t\t\t\t\t\t\t}else if(cTemp!='~'){\n\t\t\t\t\t\t\t\tState newState=new State(new MapCoordinate(temp),s.getStoneNumber(),s);\n\t\t\t\t\t\t\t\tqueue.addFirst(newState);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}else if(s.getPrevState()==null){ //for initial state\n\t\t\t\t\t\tchar cTemp=m.getSymbol(temp);\n\t\t\t\t\t\t//System.out.println(\"2 if lalala\");\n\t\t\t\t\t\tif(cTemp!='*' &&cTemp!='-' ){\n\t\t\t\t\t\t\t//System.out.println(\"3 iflalala\");\n\t\t\t\t\t\t\tif(cTemp=='~' && s.getStoneNumber()>0){\n\t\t\t\t\t\t\t\t//System.out.println(\"4 iflalala\");\n\t\t\t\t\t\t\t\tState newState=new State(new MapCoordinate(temp),s.getStoneNumber()-1,s);\n\t\t\t\t\t\t\t\tqueue.addLast(newState);\n\t\t\t\t\t\t\t}else if(cTemp!='~'){\n\t\t\t\t\t\t\t\t//System.out.println(\"4 elselalala\");\n\t\t\t\t\t\t\t\tState newState=new State(new MapCoordinate(temp),s.getStoneNumber(),s);\n\t\t\t\t\t\t\t\tqueue.addFirst(newState);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\ttemp=new MapCoordinate(currentLocation.getX(),currentLocation.getY()+1);\n\t\t\t\tif(m.hasCoordinate(temp)){//state move north\n\t\t\t\t\tif(s.getPrevState()!=null&&!temp.equals(s.getPrevState().getLocation())){\n\t\t\t\t\t\tchar cTemp=m.getSymbol(temp);\n\t\t\t\t\t\tif(!Visited.contains(temp)&&cTemp!='*' &&cTemp!='-' ){\n\t\t\t\t\t\t\tif(cTemp=='~' && s.getStoneNumber()>0){//at least has 1 stone\n\t\t\t\t\t\t\t\tState newState=new State(new MapCoordinate(temp),s.getStoneNumber()-1,s);\n\t\t\t\t\t\t\t\tqueue.addLast(newState);\n\t\t\t\t\t\t\t}else if(cTemp!='~'){\n\t\t\t\t\t\t\t\tState newState=new State(new MapCoordinate(temp),s.getStoneNumber(),s);\n\t\t\t\t\t\t\t\tqueue.addFirst(newState);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}else if(s.getPrevState()==null){ //for initial state\n\t\t\t\t\t\tchar cTemp=m.getSymbol(temp);\n\t\t\t\t\t\t//System.out.println(\"2 if lalala\");\n\t\t\t\t\t\tif(cTemp!='*' &&cTemp!='-' ){\n\t\t\t\t\t\t\t//System.out.println(\"3 iflalala\");\n\t\t\t\t\t\t\tif(cTemp=='~' && s.getStoneNumber()>0){\n\t\t\t\t\t\t\t\t//System.out.println(\"4 iflalala\");\n\t\t\t\t\t\t\t\tState newState=new State(new MapCoordinate(temp),s.getStoneNumber()-1,s);\n\t\t\t\t\t\t\t\tqueue.addLast(newState);\n\t\t\t\t\t\t\t}else if(cTemp!='~'){\n\t\t\t\t\t\t\t\t//System.out.println(\"4 elselalala\");\n\t\t\t\t\t\t\t\tState newState=new State(new MapCoordinate(temp),s.getStoneNumber(),s);\n\t\t\t\t\t\t\t\tqueue.addFirst(newState);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\ttemp=new MapCoordinate(currentLocation.getX(),currentLocation.getY()-1);\n\t\t\t\tif(m.hasCoordinate(temp)){//state move south\n\t\t\t\t\tif(s.getPrevState()!=null&&!temp.equals(s.getPrevState().getLocation())){\n\t\t\t\t\t\tchar cTemp=m.getSymbol(temp);\n\t\t\t\t\t\tif(!Visited.contains(temp)&&cTemp!='*' &&cTemp!='-' ){\n\t\t\t\t\t\t\tif(cTemp=='~' && s.getStoneNumber()>0){//at least has 1 stone\n\t\t\t\t\t\t\t\tState newState=new State(new MapCoordinate(temp),s.getStoneNumber()-1,s);\n\t\t\t\t\t\t\t\tqueue.addLast(newState);\n\t\t\t\t\t\t\t}else if(cTemp!='~'){\n\t\t\t\t\t\t\t\tState newState=new State(new MapCoordinate(temp),s.getStoneNumber(),s);\n\t\t\t\t\t\t\t\tqueue.addFirst(newState);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}else if(s.getPrevState()==null){ //for initial state\n\t\t\t\t\t\tchar cTemp=m.getSymbol(temp);\n\t\t\t\t\t\t//System.out.println(\"2 if lalala\");\n\t\t\t\t\t\tif(cTemp!='*' &&cTemp!='-' ){\n\t\t\t\t\t\t\t//System.out.println(\"3 iflalala\");\n\t\t\t\t\t\t\tif(cTemp=='~' && s.getStoneNumber()>0){\n\t\t\t\t\t\t\t\t//System.out.println(\"4 iflalala\");\n\t\t\t\t\t\t\t\tState newState=new State(new MapCoordinate(temp),s.getStoneNumber()-1,s);\n\t\t\t\t\t\t\t\tqueue.addLast(newState);\n\t\t\t\t\t\t\t}else if(cTemp!='~'){\n\t\t\t\t\t\t\t\t//System.out.println(\"4 elselalala\");\n\t\t\t\t\t\t\t\tState newState=new State(new MapCoordinate(temp),s.getStoneNumber(),s);\n\t\t\t\t\t\t\t\tqueue.addFirst(newState);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\treturn null;\n\t\t}else if(m.isAgentHasKey()){ //only have key\n\t\t\tLinkedList<State> queue=new LinkedList<State>();\n\t\t\tArrayList<MapCoordinate> Visited=new ArrayList<MapCoordinate>();\n\t\t\t\n\t\t\t//Visited.add(loc1);\n\t\t\tState s1=new State(loc1,m.getAgentHasNStones(),null);\n\t\t\tqueue.add(s1);\n\t\t\t\n\t\t\twhile(!queue.isEmpty()){\n\t\t\t\tState s=queue.remove();\n\t\t\t\tMapCoordinate currentLocation=s.getLocation();\n\t\t\t\tVisited.add(s.getLocation());\n\t\t\t\tif(loc2.equals(currentLocation)){\n\t\t\t\t\t//means could reach loc2 from loc1\n\t\t\t\t\tArrayList<MapCoordinate> route=new ArrayList<MapCoordinate>();\n\t\t\t\t\twhile(s.getPrevState()!=null){\n\t\t\t\t\t\troute.add(0, s.getLocation()); //add to head,in this fashion, return the right order of route\n\t\t\t\t\t\ts=s.getPrevState();\n\t\t\t\t\t}\n\t\t\t\t\treturn route;\n\t\t\t\t}\n\t\t\t\tMapCoordinate temp=new MapCoordinate(currentLocation.getX()+1,currentLocation.getY()); \n\t\t\t\tif(m.hasCoordinate(temp)){//state move east\n\t\t\t\t\tif(s.getPrevState()!=null&&!temp.equals(s.getPrevState().getLocation())){\n\t\t\t\t\t\tchar cTemp=m.getSymbol(temp);\n\t\t\t\t\t\tif(!Visited.contains(temp)&&cTemp!='*' &&cTemp!='T' ){\n\t\t\t\t\t\t\tif(cTemp=='~' && s.getStoneNumber()>0){//at least has 1 stone\n\t\t\t\t\t\t\t\tState newState=new State(new MapCoordinate(temp),s.getStoneNumber()-1,s);\n\t\t\t\t\t\t\t\tqueue.addLast(newState);\n\t\t\t\t\t\t\t}else if(cTemp!='~'){\n\t\t\t\t\t\t\t\tState newState=new State(new MapCoordinate(temp),s.getStoneNumber(),s);\n\t\t\t\t\t\t\t\tqueue.addFirst(newState);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}else if(s.getPrevState()==null){ //for initial state\n\t\t\t\t\t\tchar cTemp=m.getSymbol(temp);\n\t\t\t\t\t\t//System.out.println(\"2 if lalala\");\n\t\t\t\t\t\tif(cTemp!='*' &&cTemp!='T' ){\n\t\t\t\t\t\t\t//System.out.println(\"3 iflalala\");\n\t\t\t\t\t\t\tif(cTemp=='~' && s.getStoneNumber()>0){\n\t\t\t\t\t\t\t\t//System.out.println(\"4 iflalala\");\n\t\t\t\t\t\t\t\tState newState=new State(new MapCoordinate(temp),s.getStoneNumber()-1,s);\n\t\t\t\t\t\t\t\tqueue.addLast(newState);\n\t\t\t\t\t\t\t}else if(cTemp!='~'){\n\t\t\t\t\t\t\t\t//System.out.println(\"4 elselalala\");\n\t\t\t\t\t\t\t\tState newState=new State(new MapCoordinate(temp),s.getStoneNumber(),s);\n\t\t\t\t\t\t\t\tqueue.addFirst(newState);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\ttemp=new MapCoordinate(currentLocation.getX()-1,currentLocation.getY()); //state that move west\n\t\t\t\tif(m.hasCoordinate(temp)){\n\t\t\t\t\tif(s.getPrevState()!=null&&!temp.equals(s.getPrevState().getLocation())){\n\t\t\t\t\t\tchar cTemp=m.getSymbol(temp);\n\t\t\t\t\t\tif(!Visited.contains(temp)&&cTemp!='*' &&cTemp!='T' ){\n\t\t\t\t\t\t\tif(cTemp=='~' && s.getStoneNumber()>0){//at least has 1 stone\n\t\t\t\t\t\t\t\tState newState=new State(new MapCoordinate(temp),s.getStoneNumber()-1,s);\n\t\t\t\t\t\t\t\tqueue.addLast(newState);\n\t\t\t\t\t\t\t}else if(cTemp!='~'){\n\t\t\t\t\t\t\t\tState newState=new State(new MapCoordinate(temp),s.getStoneNumber(),s);\n\t\t\t\t\t\t\t\tqueue.addFirst(newState);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}else if(s.getPrevState()==null){ //for initial state\n\t\t\t\t\t\tchar cTemp=m.getSymbol(temp);\n\t\t\t\t\t\t//System.out.println(\"2 if lalala\");\n\t\t\t\t\t\tif(cTemp!='*' &&cTemp!='T' ){\n\t\t\t\t\t\t\t//System.out.println(\"3 iflalala\");\n\t\t\t\t\t\t\tif(cTemp=='~' && s.getStoneNumber()>0){\n\t\t\t\t\t\t\t\t//System.out.println(\"4 iflalala\");\n\t\t\t\t\t\t\t\tState newState=new State(new MapCoordinate(temp),s.getStoneNumber()-1,s);\n\t\t\t\t\t\t\t\tqueue.addLast(newState);\n\t\t\t\t\t\t\t}else if(cTemp!='~'){\n\t\t\t\t\t\t\t\t//System.out.println(\"4 elselalala\");\n\t\t\t\t\t\t\t\tState newState=new State(new MapCoordinate(temp),s.getStoneNumber(),s);\n\t\t\t\t\t\t\t\tqueue.addFirst(newState);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\ttemp=new MapCoordinate(currentLocation.getX(),currentLocation.getY()+1); //state move north\n\t\t\t\tif(m.hasCoordinate(temp)){\n\t\t\t\t\tif(s.getPrevState()!=null&&!temp.equals(s.getPrevState().getLocation())){\n\t\t\t\t\t\tchar cTemp=m.getSymbol(temp);\n\t\t\t\t\t\tif(!Visited.contains(temp)&&cTemp!='*' &&cTemp!='T' ){\n\t\t\t\t\t\t\tif(cTemp=='~' && s.getStoneNumber()>0){//at least has 1 stone\n\t\t\t\t\t\t\t\tState newState=new State(new MapCoordinate(temp),s.getStoneNumber()-1,s);\n\t\t\t\t\t\t\t\tqueue.addLast(newState);\n\t\t\t\t\t\t\t}else if(cTemp!='~'){\n\t\t\t\t\t\t\t\tState newState=new State(new MapCoordinate(temp),s.getStoneNumber(),s);\n\t\t\t\t\t\t\t\tqueue.addFirst(newState);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}else if(s.getPrevState()==null){ //for initial state\n\t\t\t\t\t\tchar cTemp=m.getSymbol(temp);\n\t\t\t\t\t\t//System.out.println(\"2 if lalala\");\n\t\t\t\t\t\tif(cTemp!='*' &&cTemp!='T' ){\n\t\t\t\t\t\t\t//System.out.println(\"3 iflalala\");\n\t\t\t\t\t\t\tif(cTemp=='~' && s.getStoneNumber()>0){\n\t\t\t\t\t\t\t\t//System.out.println(\"4 iflalala\");\n\t\t\t\t\t\t\t\tState newState=new State(new MapCoordinate(temp),s.getStoneNumber()-1,s);\n\t\t\t\t\t\t\t\tqueue.addLast(newState);\n\t\t\t\t\t\t\t}else if(cTemp!='~'){\n\t\t\t\t\t\t\t\t//System.out.println(\"4 elselalala\");\n\t\t\t\t\t\t\t\tState newState=new State(new MapCoordinate(temp),s.getStoneNumber(),s);\n\t\t\t\t\t\t\t\tqueue.addFirst(newState);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\ttemp=new MapCoordinate(currentLocation.getX(),currentLocation.getY()-1); //state move south\n\t\t\t\tif(m.hasCoordinate(temp)){\n\t\t\t\t\tif(s.getPrevState()!=null&&!temp.equals(s.getPrevState().getLocation())){\n\t\t\t\t\t\tchar cTemp=m.getSymbol(temp);\n\t\t\t\t\t\tif(!Visited.contains(temp)&&cTemp!='*' &&cTemp!='T' ){\n\t\t\t\t\t\t\tif(cTemp=='~' && s.getStoneNumber()>0){//at least has 1 stone\n\t\t\t\t\t\t\t\tState newState=new State(new MapCoordinate(temp),s.getStoneNumber()-1,s);\n\t\t\t\t\t\t\t\tqueue.addLast(newState);\n\t\t\t\t\t\t\t}else if(cTemp!='~'){\n\t\t\t\t\t\t\t\tState newState=new State(new MapCoordinate(temp),s.getStoneNumber(),s);\n\t\t\t\t\t\t\t\tqueue.addFirst(newState);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}else if(s.getPrevState()==null){ //for initial state\n\t\t\t\t\t\tchar cTemp=m.getSymbol(temp);\n\t\t\t\t\t\t//System.out.println(\"2 if lalala\");\n\t\t\t\t\t\tif(cTemp!='*' &&cTemp!='T' ){\n\t\t\t\t\t\t\t//System.out.println(\"3 iflalala\");\n\t\t\t\t\t\t\tif(cTemp=='~' && s.getStoneNumber()>0){\n\t\t\t\t\t\t\t\t//System.out.println(\"4 iflalala\");\n\t\t\t\t\t\t\t\tState newState=new State(new MapCoordinate(temp),s.getStoneNumber()-1,s);\n\t\t\t\t\t\t\t\tqueue.addLast(newState);\n\t\t\t\t\t\t\t}else if(cTemp!='~'){\n\t\t\t\t\t\t\t\t//System.out.println(\"4 elselalala\");\n\t\t\t\t\t\t\t\tState newState=new State(new MapCoordinate(temp),s.getStoneNumber(),s);\n\t\t\t\t\t\t\t\tqueue.addFirst(newState);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\treturn null;\n\t\t}\n\t\t\n\t\t\n\t\t/*\n\t\t * \n\t\t **/\t\t\n\t\telse{ //have no key and axe\n\t\t\tSystem.out.println(\"come into the last elas clause\");\n\t\t\tLinkedList<State> queue=new LinkedList<State>();\n\t\t\tArrayList<MapCoordinate> Visited=new ArrayList<MapCoordinate>();\n\t\t\t\n\t\t\tVisited.add(loc1);\n\t\t\tState s1=new State(loc1,m.getAgentHasNStones(),null);\n\t\t\tqueue.add(s1);\n\t\t\t\n\t\t\t//int i=0;\n\t\t\twhile(!queue.isEmpty()){\n\t\t\t\t//i++;\n\t\t\t\t//System.out.println(\"come into while: \"+i);\n\t\t\t\tState s=queue.remove();\n\t\t\t\tMapCoordinate currentLocation=s.getLocation();\n\t\t\t\tVisited.add(s.getLocation()); //add visited, let program won't stuck in \n\t\t\t\tif(loc2.equals(currentLocation)){\n\t\t\t\t\t//means could reach loc2 from loc1\n\t\t\t\t\tSystem.out.println(\"return computed route\");\n\t\t\t\t\tArrayList<MapCoordinate> route=new ArrayList<MapCoordinate>();\n\t\t\t\t\twhile(s.getPrevState()!=null){\n\t\t\t\t\t\troute.add(0, s.getLocation()); //add to head\n\t\t\t\t\t\ts=s.getPrevState();\n\t\t\t\t\t}\n\t\t\t\t\tfor(MapCoordinate mc:route){\n\t\t\t\t\t\t//System.out.println(\"print returned route in bfssearch\");\n\t\t\t\t\t\tSystem.out.print(\"mc:\"+mc.getX()+\" \"+mc.getY()+\"->\");\n\t\t\t\t\t\t\n\t\t\t\t\t}\n\t\t\t\t\treturn route;\n\t\t\t\t}\n\t\t\t\tMapCoordinate temp=new MapCoordinate(currentLocation.getX()+1,currentLocation.getY());\n\t\t\t\tif(m.hasCoordinate(temp)){\n\t\t\t\t\t//System.out.println(\"1 if\");\n\t\t\t\t\tif(s.getPrevState()!=null &&!temp.equals(s.getPrevState().getLocation())){\n\t\t\t\t\t\tchar cTemp=m.getSymbol(temp);\n\t\t\t\t\t\t//System.out.println(\"2 if\");\n\t\t\t\t\t\tif(!Visited.contains(temp)&&cTemp!='*' &&cTemp!='T'&&cTemp!='-' ){\n\t\t\t\t\t\t\t//System.out.println(\"3 if\");\n\t\t\t\t\t\t\tif(cTemp=='~' && s.getStoneNumber()>0){\n\t\t\t\t\t\t\t\t//System.out.println(\"4 if\");\n\t\t\t\t\t\t\t\tState newState=new State(new MapCoordinate(temp),s.getStoneNumber()-1,s);\n\t\t\t\t\t\t\t\tqueue.addLast(newState);\n\t\t\t\t\t\t\t}else if(cTemp!='~'){\n\t\t\t\t\t\t\t\t//System.out.println(\"4 else\");\n\t\t\t\t\t\t\t\tState newState=new State(new MapCoordinate(temp),s.getStoneNumber(),s);\n\t\t\t\t\t\t\t\tqueue.addFirst(newState);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}else if(s.getPrevState()==null){ //for the initial state \n\t\t\t\t\t\tchar cTemp=m.getSymbol(temp);\n\t\t\t\t\t\t//System.out.println(\"2 if lalala\");\n\t\t\t\t\t\tif(cTemp!='*' &&cTemp!='T'&&cTemp!='-' ){\n\t\t\t\t\t\t\t//System.out.println(\"3 iflalala\");\n\t\t\t\t\t\t\tif(cTemp=='~' && s.getStoneNumber()>0){\n\t\t\t\t\t\t\t\t//System.out.println(\"4 iflalala\");\n\t\t\t\t\t\t\t\tState newState=new State(new MapCoordinate(temp),s.getStoneNumber()-1,s);\n\t\t\t\t\t\t\t\tqueue.addLast(newState);\n\t\t\t\t\t\t\t}else if(cTemp!='~'){\n\t\t\t\t\t\t\t\t//System.out.println(\"4 elselalala\");\n\t\t\t\t\t\t\t\tState newState=new State(new MapCoordinate(temp),s.getStoneNumber(),s);\n\t\t\t\t\t\t\t\tqueue.addFirst(newState);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\ttemp=new MapCoordinate(currentLocation.getX()-1,currentLocation.getY());\n\t\t\t\tif(m.hasCoordinate(temp)){\n\t\t\t\t\tif(s.getPrevState()!=null&&!temp.equals(s.getPrevState().getLocation())){\n\t\t\t\t\t\tchar cTemp=m.getSymbol(temp);\n\t\t\t\t\t\tif(!Visited.contains(temp)&&cTemp!='*' &&cTemp!='T'&&cTemp!='-' ){\n\t\t\t\t\t\t\tif(cTemp=='~' && s.getStoneNumber()>0){\n\t\t\t\t\t\t\t\tState newState=new State(new MapCoordinate(temp),s.getStoneNumber()-1,s);\n\t\t\t\t\t\t\t\tqueue.addLast(newState);\n\t\t\t\t\t\t\t}else if(cTemp!='~'){\n\t\t\t\t\t\t\t\tState newState=new State(new MapCoordinate(temp),s.getStoneNumber(),s);\n\t\t\t\t\t\t\t\tqueue.add(newState);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}else if(s.getPrevState()==null){ //for the initial state \n\t\t\t\t\t\tchar cTemp=m.getSymbol(temp);\n\t\t\t\t\t\t//System.out.println(\"2 if lalala\");\n\t\t\t\t\t\tif(cTemp!='*' &&cTemp!='T'&&cTemp!='-' ){\n\t\t\t\t\t\t\t//System.out.println(\"3 iflalala\");\n\t\t\t\t\t\t\tif(cTemp=='~' && s.getStoneNumber()>0){\n\t\t\t\t\t\t\t\tSystem.out.println(\"4 iflalala\");\n\t\t\t\t\t\t\t\tState newState=new State(new MapCoordinate(temp),s.getStoneNumber()-1,s);\n\t\t\t\t\t\t\t\tqueue.addLast(newState);\n\t\t\t\t\t\t\t}else if(cTemp!='~'){\n\t\t\t\t\t\t\t\t//System.out.println(\"4 elselalala\");\n\t\t\t\t\t\t\t\tState newState=new State(new MapCoordinate(temp),s.getStoneNumber(),s);\n\t\t\t\t\t\t\t\tqueue.addFirst(newState);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\ttemp=new MapCoordinate(currentLocation.getX(),currentLocation.getY()+1);\n\t\t\t\tif(m.hasCoordinate(temp)){\n\t\t\t\t\tif(s.getPrevState()!=null&&!temp.equals(s.getPrevState().getLocation())){\n\t\t\t\t\t\tchar cTemp=m.getSymbol(temp);\n\t\t\t\t\t\tif(!Visited.contains(temp)&&cTemp!='*'&&cTemp!='T'&&cTemp!='-' ){\n\t\t\t\t\t\t\tif(cTemp=='~' && s.getStoneNumber()>0){\n\t\t\t\t\t\t\t\tState newState=new State(new MapCoordinate(temp),s.getStoneNumber()-1,s);\n\t\t\t\t\t\t\t\tqueue.addLast(newState);\n\t\t\t\t\t\t\t}else if(cTemp!='~'){\n\t\t\t\t\t\t\t\tState newState=new State(new MapCoordinate(temp),s.getStoneNumber(),s);\n\t\t\t\t\t\t\t\tqueue.addFirst(newState);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}else if(s.getPrevState()==null){ //for the initial state \n\t\t\t\t\t\tchar cTemp=m.getSymbol(temp);\n\t\t\t\t\t\t//System.out.println(\"2 if lalala\");\n\t\t\t\t\t\tif(cTemp!='*' &&cTemp!='T'&&cTemp!='-' ){\n\t\t\t\t\t\t\t//System.out.println(\"3 iflalala\");\n\t\t\t\t\t\t\tif(cTemp=='~' && s.getStoneNumber()>0){\n\t\t\t\t\t\t\t\t//System.out.println(\"4 iflalala\");\n\t\t\t\t\t\t\t\tState newState=new State(new MapCoordinate(temp),s.getStoneNumber()-1,s);\n\t\t\t\t\t\t\t\tqueue.addLast(newState);\n\t\t\t\t\t\t\t}else if(cTemp!='~'){\n\t\t\t\t\t\t\t\t//System.out.println(\"4 elselalala\");\n\t\t\t\t\t\t\t\tState newState=new State(new MapCoordinate(temp),s.getStoneNumber(),s);\n\t\t\t\t\t\t\t\tqueue.addFirst(newState);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\ttemp=new MapCoordinate(currentLocation.getX(),currentLocation.getY()-1);\n\t\t\t\tif(m.hasCoordinate(temp)){\n\t\t\t\t\tif(s.getPrevState()!=null&&!temp.equals(s.getPrevState().getLocation())){\n\t\t\t\t\t\tchar cTemp=m.getSymbol(temp);\n\t\t\t\t\t\tif(!Visited.contains(temp)&&cTemp!='*' &&cTemp!='T' &&cTemp!='-' ){\n\t\t\t\t\t\t\tif(cTemp=='~' && s.getStoneNumber()>0){\n\t\t\t\t\t\t\t\tState newState=new State(new MapCoordinate(temp),s.getStoneNumber()-1,s);\n\t\t\t\t\t\t\t\tqueue.addLast(newState);\n\t\t\t\t\t\t\t}else if(cTemp!='~'){\n\t\t\t\t\t\t\t\tState newState=new State(new MapCoordinate(temp),s.getStoneNumber(),s);\n\t\t\t\t\t\t\t\tqueue.addFirst(newState);\n\t\t\t\t\t\t\t}//do not do any action for not enough stones situation\n\t\t\t\t\t\t}\n\t\t\t\t\t}else if(s.getPrevState()==null){ //for the initial state \n\t\t\t\t\t\tchar cTemp=m.getSymbol(temp);\n\t\t\t\t\t\t//System.out.println(\"2 if lalala\");\n\t\t\t\t\t\tif(cTemp!='*' &&cTemp!='T'&&cTemp!='-' ){\n\t\t\t\t\t\t\t//System.out.println(\"3 iflalala\");\n\t\t\t\t\t\t\tif(cTemp=='~' && s.getStoneNumber()>0){\n\t\t\t\t\t\t\t\t//System.out.println(\"4 iflalala\");\n\t\t\t\t\t\t\t\tState newState=new State(new MapCoordinate(temp),s.getStoneNumber()-1,s);\n\t\t\t\t\t\t\t\tqueue.addLast(newState);\n\t\t\t\t\t\t\t}else if(cTemp!='~'){\n\t\t\t\t\t\t\t\t//System.out.println(\"4 elselalala\");\n\t\t\t\t\t\t\t\tState newState=new State(new MapCoordinate(temp),s.getStoneNumber(),s);\n\t\t\t\t\t\t\t\tqueue.addFirst(newState);\n\t\t\t\t\t\t\t}//do not do any action for not enough stones situation\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\treturn null;\n\t\t}\n\t}", "private int BFS() {\n adjList.cleanNodeFields();\n\n //Queue for storing current shortest path\n Queue<Node<Integer, Integer>> q = new LinkedList<>();\n\n //Set source node value to 0\n q.add(adjList.getNode(startNode));\n q.peek().key = 0;\n q.peek().d = 0;\n q.peek().visited = true;\n\n //Helper variables\n LinkedList<Pair<Node<Integer, Integer>, Integer>> neighbors;//Array of pairs <neighborKey, edgeWeight>\n Node<Integer, Integer> neighbor, u;\n long speed = (long) (cellSideLength * 1.20);\n\n while (!isCancelled() && q.size() != 0) {\n u = q.poll();\n\n //Marks node as checked\n checkedNodesGC.fillRect((u.value >> 16) * cellSideLength + 0.5f,\n (u.value & 0x0000FFFF) * cellSideLength + 0.5f,\n (int) cellSideLength - 1, (int) cellSideLength - 1);\n\n //endNode found\n if (u.value == endNode) {\n //Draws shortest path\n Node<Integer, Integer> current = u, prev = u;\n\n while ((current = current.prev) != null) {\n shortestPathGC.strokeLine((prev.value >> 16) * cellSideLength + cellSideLength / 2,\n (prev.value & 0x0000FFFF) * cellSideLength + cellSideLength / 2,\n (current.value >> 16) * cellSideLength + cellSideLength / 2,\n (current.value & 0x0000FFFF) * cellSideLength + cellSideLength / 2);\n prev = current;\n }\n return u.d;\n }\n\n //Wait after checking node\n try {\n Thread.sleep(speed);\n } catch (InterruptedException interrupted) {\n if (isCancelled())\n break;\n }\n\n //Checking Neighbors\n neighbors = adjList.getNeighbors(u.value);\n for (Pair<Node<Integer, Integer>, Integer> neighborKeyValuePair : neighbors) {\n neighbor = neighborKeyValuePair.getKey();\n //Relaxation step\n //Checks if neighbor hasn't been checked, if so the assign the shortest path\n if (!neighbor.visited) {\n //Adds checked neighbor to queue\n neighbor.key = u.d + 1;\n neighbor.d = u.d + 1; //Assign shorter path found to neighbor\n neighbor.prev = u;\n neighbor.visited = true;\n q.add(neighbor);\n }\n }\n }\n return Integer.MAX_VALUE;\n }", "public void bfs(Pair<Integer, Integer> current, Pair<Integer, Integer> goal) {\n var visited = new HashSet<Pair<Integer, Integer>>(300);\n var queue = new LinkedList<Pair<Integer, Integer>>();\n \n visited.add(current);\n queue.add(current);\n \n while (!queue.isEmpty()) {\n var toVisit = queue.poll();\n if (goal.equals(toVisit)) {\n goal.setParent(toVisit);\n toVisit.setChild(goal);\n break;\n }\n var neighbors = Utils.getNeighbors(toVisit);\n neighbors.forEach(p -> {\n // only move through SAFE tiles!\n // unless the neighbor is goal node!\n if (p.equals(goal) ||\n (!visited.contains(p) &&\n grid[p.getA()][p.getB()].getTileTypes().contains(Tile.SAFE)))\n {\n visited.add(p);\n p.setParent(toVisit);\n toVisit.setChild(p);\n queue.add(p);\n }\n });\n }\n }", "static void bfs(String label) {\n\n /* Add a graph node to the queue. */\n queue.addLast(label);\n graphVisited.put(label, true);\n\n while (!queue.isEmpty()) {\n\n /* Take a node out of the queue and add it to the list of visited nodes. */\n if (!graphVisited.containsKey(queue.getFirst()))\n graphVisited.put(queue.getFirst(), true);\n\n String str = queue.removeFirst();\n\n /*\n For each unvisited vertex from the list of the adjacent vertices,\n add the vertex to the queue.\n */\n for (String lab : silhouette.get(str)) {\n if (!graphVisited.containsKey(lab) && lab != null && !queue.contains(lab))\n queue.addLast(lab);\n }\n }\n }", "void BFS(int s)\n {\n /* List of visited vertices; all false in the beginning) */\n boolean visited[] = new boolean[V];\n\n /* Queue data structure is used for BFS */\n LinkedList<Integer> queue = new LinkedList<>();\n\n /* Mark starting node s as visited and enqueue it */\n visited[s]=true;\n queue.add(s);\n\n /* Until queue is empty, dequeue a single node in queue and look for it's neighboring vertices.\n * If an adjecent node hasn't been visited yet, set it as visited and enqueue this node. s*/\n while (queue.size() != 0)\n {\n /* Dequeue */\n s = queue.poll();\n System.out.print( s + \" \");\n\n /* Get all adjacent vertices */\n Iterator<Integer> i = adj[s].listIterator();\n while (i.hasNext())\n {\n int n = i.next();\n if (!visited[n])\n {\n visited[n] = true;\n queue.add(n);\n }\n }\n }\n }", "void BFS(int s, int d) \r\n { \r\n int source = s;\r\n int destination = d;\r\n boolean visited[] = new boolean[V];\r\n int parent[] = new int[V];\r\n \r\n // Create a queue for BFS \r\n LinkedList<Integer> queue = new LinkedList<Integer>(); \r\n \r\n // Mark the current node as visited and enqueue it \r\n \r\n visited[s]=true; \r\n queue.add(s); \r\n System.out.println(\"Search Nodes: \");\r\n while (queue.size() != 0) \r\n { \r\n int index = 0;\r\n \r\n // Dequeue a vertex from queue and print it \r\n \r\n s = queue.poll();\r\n \r\n System.out.print(convert2(s)); \r\n \r\n if(s == destination)\r\n {\r\n break;\r\n }\r\n \r\n System.out.print(\" -> \");\r\n while(index < adj[s].size()) \r\n { \r\n \r\n \r\n int n = adj[s].get(index); \r\n if (!visited[n]) \r\n { \r\n visited[n] = true;\r\n parent[n] = s;\r\n queue.add(n); \r\n }\r\n index = index+ 2;\r\n \r\n \r\n }\r\n \r\n \r\n \r\n }\r\n int check = destination;\r\n int cost = 0, first, second = 0;\r\n String string = \"\" + convert2(check);\r\n while(check!=source)\r\n {\r\n \r\n first = parent[check];\r\n string = convert2(first) + \" -> \" + string;\r\n while(adj[first].get(second) != check)\r\n {\r\n second++;\r\n }\r\n cost = cost + adj[first].get(second +1);\r\n check = first;\r\n second = 0;\r\n \r\n }\r\n \r\n System.out.println(\"\\n\\nPathway: \");\r\n \r\n System.out.println(string);\r\n \r\n \r\n System.out.println(\"\\nTotal cost: \" + cost);\r\n }", "public String breadthFirstSearch( AnyType start_vertex ) throws VertexException {\n \n StringBuffer buffer = new StringBuffer();\n \n // ----------------------------\n // TODO: Add your code here\n // ----------------------------\n boolean exists = false;\n Vertex<AnyType> S = new Vertex<AnyType>(start_vertex);\n int counter = 1;\n //make new vertex to check if its in list\n //make queue to hold vertices\n SemiConstantTimeQueue<Vertex<AnyType>> queue = new SemiConstantTimeQueue<Vertex<AnyType>>();\n //loop through and set not visited\n for( int i = 0; i < vertex_adjacency_list.size(); i++){\n vertex_adjacency_list.get(i).setVisited(-1);\n //if it's in list then set exists to true\n //and set visited \n if(vertex_adjacency_list.get(i).compareTo(S) == 0){\n exists = true;\n vertex_adjacency_list.get(i).setVisited(counter);\n counter = i;\n }\n } \n //if doesn't exist then throw the exception\n if(exists == false){\n throw new VertexException(\"Start Vertex does not exist\");\n }\n //make new queue\n queue.add(vertex_adjacency_list.get(counter));\n vertex_adjacency_list.get(counter).setVisited(1);\n counter = 1;\n int k=0;\n Vertex<AnyType>e;\n //while the queue isn't empty\n while(queue.peek() !=null){\n //make e the top of the queue \n e = queue.peek(); \n //go through the list and if you reach the begining it exits loop\n for( k = 0; k < vertex_adjacency_list.size()-1; k++){\n if(vertex_adjacency_list.get(k).compareTo(e)==0){\n break;\n }\n } \n //go through loop and check if visited, if not then add it to queue, set visited\n for( int j = 0; j< vertex_adjacency_list.get(k).numberOfAdjacentVertices(); j++){\n if(vertex_adjacency_list.get(k).getAdjacentVertex(j).hasBeenVisited()==false){\n counter++;\n queue.add(vertex_adjacency_list.get(k).getAdjacentVertex(j));\n vertex_adjacency_list.get(k).getAdjacentVertex(j).setVisited(counter);\n }\n }\n //remove from queue when through loop once\n k++;\n queue.remove();\n }\n //loop through list and print vertex and when it was visited\n for(int o = 0; o< vertex_adjacency_list.size(); o++){\n buffer.append(vertex_adjacency_list.get(o) + \":\" + vertex_adjacency_list.get(o).getVisited()+ \"\\n\");\n }\n return buffer.toString();\n }", "public void breadthFirst() {\n\t\tQueue<Node> queue = new ArrayDeque<>();\n\t\tqueue.add(root);\n\t\twhile(!queue.isEmpty()) {\n\t\t\tif(queue.peek().left!=null)\n\t\t\t\tqueue.add(queue.peek().left);\n\t\t\tif(queue.peek().right!=null)\n\t\t\t\tqueue.add(queue.peek().right);\n\t\t\tSystem.out.println(queue.poll().data);\n\t\t}\n\t}", "private static void showBFS(TreeNode root) {\r\n\t\tQueue<TreeNode> queue = new LinkedList<TreeNode>();\r\n\t\tqueue.add(root);\r\n\t\twhile (!queue.isEmpty()) {\r\n\t\t\tTreeNode node = queue.remove();\r\n\t\t\tSystem.out.print(node + \" \");\r\n\t\t\tif (node.left != null) queue.add(node.left);\r\n\t\t\tif (node.right != null) queue.add(node.right);\r\n\t\t}\r\n\t}", "public void run()\r\n {\n\ttopLevelSearch=FIND_TOP_LEVEL_PAGES;\r\n\ttopLevelPages=new Vector();\r\n\tnextLevelPages=new Vector();\r\n \r\n\t// Check to see if a proxy is being used. If so then we use IP Address rather than host name.\r\n\tproxyDetected=detectProxyServer();\r\n\t \r\n\tstartSearch();\r\n \r\n\tapp.enableButtons();\r\n\tapp.abort.disable();\r\n \r\n\tif(hitsFound == 0 && pageOpened == true)\r\n\t app.statusArea.setText(\"No Matches Found\");\r\n else if(hitsFound==1)\r\n\t app.statusArea.setText(hitsFound+\" Match Found\");\r\n else app.statusArea.setText(hitsFound+\" Matches Found\");\r\n }", "public static Vector<int []> BFS(int[] startPosition,int[] unexploreNode, mapNode[][] nodes){\n\t\t\r\n\t\tVector<int []> shortestPath;\r\n\t\t\r\n\t\t//initial all nodes' status to UN-visited\r\n\t\tfor(int i = 0; i < nodes.length; i++)\r\n\t\t{\r\n\t\t\tfor(int j = 0; j < nodes[i].length;j++)\r\n\t\t\t{\r\n\t\t\t\tnodes[i][j].setTotDistance(999999999);//set the initial distance to INF\r\n\t\t\t\tnodes[i][j].gridPosition[0] = i;//save current node x position\r\n\t\t\t\tnodes[i][j].gridPosition[1] = j;//save current node y position\r\n\t\t\t\tnodes[i][j].setNodeVistied(false);//set all nodes are not visited yet\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\t//create start node and add it into the execution queue\r\n\t\tmapNode tempNode = new mapNode();\r\n\t\ttempNode = nodes[startPosition[0]][startPosition[1]];\r\n\t\tVector<mapNode> tempQueue = new Vector<mapNode>();\r\n\t\ttempQueue.add(tempNode);\r\n\t\t//main loop: check all nodes on the map\r\n\t\twhile(tempQueue.size() != 0)\r\n\t\t{\r\n\t\t\t//create four nearby nodes\r\n\t\t\tmapNode tempTopNode = new mapNode();\r\n\t\t\tmapNode tempBottomNode = new mapNode();\r\n\t\t\tmapNode tempLeftNode = new mapNode();\r\n\t\t\tmapNode tempRightNode = new mapNode();\r\n\t\t\t\t\r\n\t\t\t//update Top node information from original nodes matrix\r\n\t\t\tif(tempQueue.get(0).topNode != null)\r\n\t\t\t{\r\n\t\t\t\ttempTopNode = nodes[tempQueue.get(0).topNode.gridPosition[0]][tempQueue.get(0).topNode.gridPosition[1]];\r\n\t\t\t}\r\n\t\t\telse\r\n\t\t\t{\r\n\t\t\t\ttempTopNode = null;\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t//update Bottom node information from original nodes matrix\r\n\t\t\tif(tempQueue.get(0).bottomNode != null)\r\n\t\t\t{\r\n\t\t\t\ttempBottomNode = nodes[tempQueue.get(0).bottomNode.gridPosition[0]][tempQueue.get(0).bottomNode.gridPosition[1]];\r\n\t\t\t}\r\n\t\t\telse\r\n\t\t\t{\r\n\t\t\t\ttempBottomNode = null;\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t//update Left node information from original nodes matrix\r\n\t\t\tif(tempQueue.get(0).leftNode != null)\r\n\t\t\t{\r\n\t\t\t\ttempLeftNode = nodes[tempQueue.get(0).leftNode.gridPosition[0]][tempQueue.get(0).leftNode.gridPosition[1]];\r\n\t\t\t}\r\n\t\t\telse\r\n\t\t\t{\r\n\t\t\t\ttempLeftNode = null;\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t//update Right node information from original nodes matrix\r\n\t\t\tif(tempQueue.get(0).rightNode != null)\r\n\t\t\t{\r\n\t\t\t\ttempRightNode = nodes[tempQueue.get(0).rightNode.gridPosition[0]][tempQueue.get(0).rightNode.gridPosition[1]];\r\n\t\t\t}\r\n\t\t\telse\r\n\t\t\t{\r\n\t\t\t\ttempRightNode = null;\r\n\t\t\t}\r\n\t\t\t\t\r\n\t\t\t//start re-calculate distance of each node\r\n\t\t\t//check the top node and update new distance\r\n\t\t\tif(tempTopNode != null)\r\n\t\t\t{\r\n\t\t\t\tif(tempTopNode.getNodeVisited() == false && tempTopNode.getOwnElevation() != 999999999 && tempTopNode.getStatus() != Status.EXPLORED )\r\n\t\t\t\t{\r\n\t\t\t\t\tVector<int[]> tempPath = new Vector<int[]>();\r\n\t\t\t\t\t//record the path\r\n\t\t\t\t\tfor(int m = 0; m < tempQueue.get(0).getTotPath().size(); m++)\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tint[] tempXY = new int[2];\r\n\t\t\t\t\t\ttempXY = tempQueue.get(0).getTotPath().get(m);\r\n\t\t\t\t\t\ttempPath.add(tempXY);\r\n\t\t\t\t\t}\r\n\t\t\t\t\t//check new node to see if exists in path\r\n\t\t\t\t\tif(checkPositionInPath(tempPath, tempQueue.get(0).gridPosition[0], tempQueue.get(0).gridPosition[1]) == false)\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tint[] tempXY2 = new int[2];\r\n\t\t\t\t\t\ttempXY2 = tempQueue.get(0).gridPosition;\r\n\t\t\t\t\t\ttempPath.add(tempXY2);\r\n\t\t\t\t\t}\r\n\t\t\t\t\t//assign new path to the node\r\n\t\t\t\t\ttempTopNode.setTotPath(tempPath);\r\n\t\t\t\t\t//update data back to original matrix\r\n\t\t\t\t\ttempTopNode.setStatus(Status.EXPLORED);\r\n\t\t\t\t\tnodes[tempTopNode.gridPosition[0]][tempTopNode.gridPosition[1]] = tempTopNode;\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\tif(tempTopNode.gridPosition[0] == unexploreNode[0] && tempTopNode.gridPosition[1] == unexploreNode[1]){\r\n\t\t\t\t\t//print out the end node\r\n\t\t\t\t\t//print out the total distance between two points\r\n\t\t\t\t\t//print out the total number node of path\r\n\t\t\t\t\t//System.out.println(\"End Point: \"+(nodes[unexploreNode[0]][unexploreNode[1]].gridPosition[0]+1)+\" \"+(nodes[unexploreNode[0]][unexploreNode[1]].gridPosition[1]+1));\r\n\t\t\t\t\t//System.out.println(\"Total Distance: \"+nodes[unexploreNode[0]][unexploreNode[1]].getTotDistance());\r\n\t\t\t\t\t//System.out.println(\"Total number of nodes: \"+nodes[unexploreNode[0]][unexploreNode[1]].getTotPath().size());\r\n\t\t\t\t\tshortestPath = nodes[unexploreNode[0]][unexploreNode[1]].getTotPath();\r\n\t\t\t\t\tshortestPath.add(unexploreNode);\r\n\t\t\t\t\treturn shortestPath;\t\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\tif(nodes[tempTopNode.gridPosition[0]][tempTopNode.gridPosition[1]].getNodeVisited()== false && checkNodeInQueue(tempQueue, tempTopNode.gridPosition[0], tempTopNode.gridPosition[1]) == false && tempTopNode.getOwnElevation() != 999999999)\r\n\t\t\t\t{\r\n\t\t\t\t\t//check un-visited nodes and add new node into execution queue\r\n\t\t\t\t\ttempQueue.add(tempTopNode);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t//check the bottom node and update new distance\r\n\t\t\tif(tempBottomNode != null)\r\n\t\t\t{\r\n\t\t\t\tif(tempBottomNode.getNodeVisited() == false && tempBottomNode.getOwnElevation() != 999999999 && tempBottomNode.getStatus() != Status.EXPLORED)\r\n\t\t\t\t{\r\n\t\t\t\t\tVector<int[]> tempPath = new Vector<int[]>();\r\n\t\t\t\t\t//record the path\r\n\t\t\t\t\tfor(int m = 0; m < tempQueue.get(0).getTotPath().size(); m++)\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tint[] tempXY = new int[2];\r\n\t\t\t\t\t\ttempXY = tempQueue.get(0).getTotPath().get(m);\r\n\t\t\t\t\t\ttempPath.add(tempXY);\r\n\t\t\t\t\t}\r\n\t\t\t\t\t//check new node to see if it exists in path\r\n\t\t\t\t\tif(checkPositionInPath(tempPath, tempQueue.get(0).gridPosition[0], tempQueue.get(0).gridPosition[1]) == false)\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tint[] tempXY2 = new int[2];\r\n\t\t\t\t\t\ttempXY2 = tempQueue.get(0).gridPosition;\r\n\t\t\t\t\t\ttempPath.add(tempXY2);\r\n\t\t\t\t\t}\t\t\t\t\r\n\t\t\t\t\t//assign new path to the node\r\n\t\t\t\t\ttempBottomNode.setTotPath(tempPath);\r\n\t\t\t\t\ttempBottomNode.setStatus(Status.EXPLORED);\r\n\t\t\t\t\t//update data back to original matrix\r\n\t\t\t\t\tnodes[tempQueue.get(0).bottomNode.gridPosition[0]][tempQueue.get(0).bottomNode.gridPosition[1]] = tempBottomNode;\r\n\t\t\t\t}\r\n\t\t\t\tif(tempBottomNode.gridPosition[0] == unexploreNode[0] && tempBottomNode.gridPosition[1] == unexploreNode[1]){\r\n\t\t\t\t\t//System.out.println(\"End Point: \"+(nodes[unexploreNode[0]][unexploreNode[1]].gridPosition[0]+1)+\" \"+(nodes[unexploreNode[0]][unexploreNode[1]].gridPosition[1]+1));\r\n\t\t\t\t\t//System.out.println(\"Total Distance: \"+nodes[unexploreNode[0]][unexploreNode[1]].getTotDistance());\r\n\t\t\t\t\t//System.out.println(\"Total number of nodes: \"+nodes[unexploreNode[0]][unexploreNode[1]].getTotPath().size());\r\n\t\t\t\t\tshortestPath = nodes[unexploreNode[0]][unexploreNode[1]].getTotPath();\r\n\t\t\t\t\tshortestPath.add(unexploreNode);\r\n\t\t\t\t\treturn shortestPath;\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\tif(nodes[tempBottomNode.gridPosition[0]][tempBottomNode.gridPosition[1]].getNodeVisited()== false && checkNodeInQueue(tempQueue, tempBottomNode.gridPosition[0], tempBottomNode.gridPosition[1]) == false && tempBottomNode.getOwnElevation() != 999999999)\r\n\t\t\t\t{\r\n\t\t\t\t\t//check un-visited nodes and add new node into execution queue\r\n\t\t\t\t\ttempQueue.add(tempBottomNode);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t//check the left node and update new distance\r\n\t\t\tif(tempLeftNode != null)\r\n\t\t\t{\r\n\t\t\t\tif(tempLeftNode.getNodeVisited() == false && tempLeftNode.getOwnElevation() != 999999999 && tempLeftNode.getStatus() != Status.EXPLORED)\r\n\t\t\t\t{\r\n\t\t\t\t\tVector<int[]> tempPath = new Vector<int[]>();\r\n\t\t\t\t\t//record the path\r\n\t\t\t\t\tfor(int m = 0; m < tempQueue.get(0).getTotPath().size(); m++)\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tint[] tempXY = new int[2];\r\n\t\t\t\t\t\ttempXY = tempQueue.get(0).getTotPath().get(m);\r\n\t\t\t\t\t\ttempPath.add(tempXY);\r\n\t\t\t\t\t}\r\n\t\t\t\t\t//check new node to see if it exists in path\r\n\t\t\t\t\tif(checkPositionInPath(tempPath, tempQueue.get(0).gridPosition[0], tempQueue.get(0).gridPosition[1]) == false)\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tint[] tempXY2 = new int[2];\r\n\t\t\t\t\t\ttempXY2 = tempQueue.get(0).gridPosition;\r\n\t\t\t\t\t\ttempPath.add(tempXY2);\r\n\t\t\t\t\t}\t\t\t\t\r\n\t\t\t\t\t//assign new path to the node\r\n\t\t\t\t\ttempLeftNode.setTotPath(tempPath);\r\n\t\t\t\t\ttempLeftNode.setStatus(Status.EXPLORED);\r\n\t\t\t\t\t//update data back to original matrix\r\n\t\t\t\t\tnodes[tempQueue.get(0).leftNode.gridPosition[0]][tempQueue.get(0).leftNode.gridPosition[1]] = tempLeftNode;\r\n\t\t\t\t}\r\n\t\t\t\tif(tempLeftNode.gridPosition[0] == unexploreNode[0] && tempLeftNode.gridPosition[1] == unexploreNode[1]){\r\n\t\t\t\t\t//System.out.println(\"End Point: \"+(nodes[unexploreNode[0]][unexploreNode[1]].gridPosition[0]+1)+\" \"+(nodes[unexploreNode[0]][unexploreNode[1]].gridPosition[1]+1));\r\n\t\t\t\t\t//System.out.println(\"Total Distance: \"+nodes[unexploreNode[0]][unexploreNode[1]].getTotDistance());\r\n\t\t\t\t\t//System.out.println(\"Total number of nodes: \"+nodes[unexploreNode[0]][unexploreNode[1]].getTotPath().size());\r\n\t\t\t\t\tshortestPath = nodes[unexploreNode[0]][unexploreNode[1]].getTotPath();\r\n\t\t\t\t\tshortestPath.add(unexploreNode);\r\n\t\t\t\t\treturn shortestPath;\t\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\tif(nodes[tempLeftNode.gridPosition[0]][tempLeftNode.gridPosition[1]].getNodeVisited()== false && checkNodeInQueue(tempQueue, tempLeftNode.gridPosition[0], tempLeftNode.gridPosition[1]) == false && tempLeftNode.getOwnElevation() != 999999999)\r\n\t\t\t\t{\r\n\t\t\t\t\t//check un-visited nodes and add new node into execution queue\r\n\t\t\t\t\ttempQueue.add(tempLeftNode);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t//check the right node and update new distance\r\n\t\t\tif(tempRightNode != null)\r\n\t\t\t{\r\n\t\t\t\tif(tempRightNode.getNodeVisited() == false && tempRightNode.getOwnElevation() != 999999999 && tempRightNode.getStatus() != Status.EXPLORED)\r\n\t\t\t\t{\r\n\t\t\t\t\tVector<int[]> tempPath = new Vector<int[]>();\r\n\t\t\t\t\t//record the path\r\n\t\t\t\t\tfor(int m = 0; m < tempQueue.get(0).getTotPath().size(); m++)\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tint[] tempXY = new int[2];\r\n\t\t\t\t\t\ttempXY = tempQueue.get(0).getTotPath().get(m);\r\n\t\t\t\t\t\ttempPath.add(tempXY);\r\n\t\t\t\t\t}\r\n\t\t\t\t\t//check to see if new node existed in path\r\n\t\t\t\t\tif(checkPositionInPath(tempPath, tempQueue.get(0).gridPosition[0], tempQueue.get(0).gridPosition[1]) == false)\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tint[] tempXY2 = new int[2];\r\n\t\t\t\t\t\ttempXY2 = tempQueue.get(0).gridPosition;\r\n\t\t\t\t\t\ttempPath.add(tempXY2);\r\n\t\t\t\t\t}\r\n\t\t\t\t\t//assign new path to the node\r\n\t\t\t\t\ttempRightNode.setTotPath(tempPath);\r\n\t\t\t\t\ttempRightNode.setStatus(Status.EXPLORED);\r\n\t\t\t\t\t//update data back to original matrix\r\n\t\t\t\t\tnodes[tempQueue.get(0).rightNode.gridPosition[0]][tempQueue.get(0).rightNode.gridPosition[1]] = tempRightNode;\r\n\t\t\t\t}\r\n\t\t\t\tif(tempRightNode.gridPosition[0] == unexploreNode[0] && tempRightNode.gridPosition[1] == unexploreNode[1]){\r\n\t\t\t\t\t//System.out.println(\"End Point: \"+(nodes[unexploreNode[0]][unexploreNode[1]].gridPosition[0]+1)+\" \"+(nodes[unexploreNode[0]][unexploreNode[1]].gridPosition[1]+1));\r\n\t\t\t\t\t//System.out.println(\"Total Distance: \"+nodes[unexploreNode[0]][unexploreNode[1]].getTotDistance());\r\n\t\t\t\t\t//System.out.println(\"Total number of nodes: \"+nodes[unexploreNode[0]][unexploreNode[1]].getTotPath().size());\r\n\t\t\t\t\tshortestPath = nodes[unexploreNode[0]][unexploreNode[1]].getTotPath();\r\n\t\t\t\t\tshortestPath.add(unexploreNode);\r\n\t\t\t\t\treturn shortestPath;\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\tif(nodes[tempRightNode.gridPosition[0]][tempRightNode.gridPosition[1]].getNodeVisited()== false && checkNodeInQueue(tempQueue, tempRightNode.gridPosition[0], tempRightNode.gridPosition[1]) == false && tempRightNode.getOwnElevation() != 999999999)\r\n\t\t\t\t{\r\n\t\t\t\t\t//check un-visited nodes and add new node into execution queue\r\n\t\t\t\t\ttempQueue.add(tempRightNode);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\t//set current node to visited node and\r\n\t\t\t//remove current node from execution queue\r\n\t\t\ttempQueue.get(0).setNodeVistied(true);\r\n\t\t\tnodes[tempQueue.get(0).gridPosition[0]][tempQueue.get(0).gridPosition[1]].setNodeVistied(true);\r\n\t\t\ttempQueue.remove(0);\t\r\n\t\t}\r\n\t\t//print out the end node\r\n\t\t//print out the total distance between two points\r\n\t\t//print out the total number node of path\r\n\t\tSystem.out.println(\"End 5 Point: \"+(nodes[unexploreNode[0]][unexploreNode[1]].gridPosition[0]+1)+\" \"+(nodes[unexploreNode[0]][unexploreNode[1]].gridPosition[1]+1));\r\n\t\tSystem.out.println(\"Total Distance: \"+nodes[unexploreNode[0]][unexploreNode[1]].getTotDistance());\r\n\t\tSystem.out.println(\"Total number of nodes: \"+nodes[unexploreNode[0]][unexploreNode[1]].getTotPath().size());\r\n\t\tshortestPath = nodes[unexploreNode[0]][unexploreNode[1]].getTotPath();\r\n\t\tshortestPath.add(unexploreNode);\r\n\t\treturn shortestPath;\t\t\r\n\t}", "static void bfs(int[][] G){\n\t\tQueue<Integer> q = new LinkedList<Integer>();\t\t\n\t\tfor (int ver_start = 0; ver_start < N; ver_start ++){\n\t\t\tif (visited[ver_start]) continue;\n\t\t\tq.add(ver_start);\n\t\t\tvisited[ver_start] = true;\n\n\t\t\twhile(!q.isEmpty()){\n\t\t\t\tint vertex = q.remove();\n\t\t\t\tSystem.out.print((vertex+1) + \" \");\n\t\t\t\tfor (int i=0; i<N; i++){\n\t\t\t\t\tif (G[vertex][i] == 1 && !visited[i]){\n\t\t\t\t\t\t// find neigbor of current vertex and not visited\n\t\t\t\t\t\t// add into the queue\n\t\t\t\t\t\tq.add(i);\n\t\t\t\t\t\tvisited[i] = true;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\tSystem.out.println(\"--\");\t\t\t\n\t\t}\n\t}", "private void CreatingBeautyContentTopK() {\n\t\t\tConstraintsPlacement objConstraints= new ConstraintsPlacement(this);\r\n\t\t\t//Creating array with states\r\n\t\t\tArrayList<BlockNode> states = new ArrayList<BlockNode>();\r\n\t\t\t//Building the graph in a deph way\r\n\t \tGraphBuilder objGrapB= new GraphBuilder(1);\r\n\t \tint numElements=objElem.getNumberObjects();\r\n\t \tint numEnemies=objElem.getNumberObjectsEnemies();\r\n\t \tint globalControlSearch=0;\r\n\t \t//Beststates=objGrapB.basicDepthSearch(mediumStraight,height,numElements,numElements,states,objConstraints, objElem.getFinalList(),objElem);\r\n\t \tbestBranches=objGrapB.relativePositionDepthSearchTopK(mediumStraight,height,numElements-numEnemies,numElements-numEnemies,states,objConstraints, objElem.getFinalList(),objElem,-mediumStraight+1,mediumStraight-1,floorTileHeight,0,0,maxScreens,numEnemies,random,globalControlSearch);\r\n\t \t//Beststates=objGrapB.relativeTransPositionDepthSearch(mediumStraight,height,numElements,numElements,states,objConstraints, objElem.getFinalList(),objElem,-mediumStraight+1,mediumStraight-1,floorTileHeight,0,0,currentState,hTable);\r\n\t \r\n\t \tBranch objBranch=new Branch();\r\n\t \t//bestBranches=objBranch.sortBranches(bestBranches);\r\n\t \t\r\n\t \t//System.out.print( \"CounterStates\"+objGrapB.getCounterIDs() );\r\n\t \r\n\t //imprimiendo los estados visitados\r\n\t /*\r\n\t Iterator<BlockNode> nombreIterator = states.iterator();\r\n\t while(nombreIterator.hasNext()){\r\n\t \tBlockNode elemento = nombreIterator.next();\r\n\t \tSystem.out.print(elemento.getID()+\" / \");\r\n\t }*/\r\n\t \r\n\t //here we are painting as the best branches foundeded\r\n\t \r\n\t Iterator<Branch> nombreIterator = bestBranches.iterator();\r\n\t while(nombreIterator.hasNext()){\r\n\t \tBranch elemento = nombreIterator.next();\r\n\t \t//System.out.print(elemento.getHeuristicValue()+ \" / \");\r\n\t }\r\n\t \r\n\t \r\n\t //Here we will put the elements on the tile\r\n\t \t//Just here to implement the n screens!\r\n\t for(int i=0;i<maxScreens;i++)\r\n\t {//block from Lelis and Reis (>class GeradorDeFasses)\r\n/*\t \ttry {\r\n\t \t\tLevel levelScreen=PaintElements(((Branch)bestBranches.get(i)).getStates(),this.clone());\t\t\t\t\t\r\n\t\t\t\t\tScreen objScreen=new Screen();\r\n\t\t\t\t\tobjScreen.SaveScreen(levelScreen,odds,objElem);\r\n\t \t\tInformacoesTelas info = new InformacoesTelas();\r\n\t\t\t CopiaArquivos copiador = new CopiaArquivos();\r\n\t\t\t \r\n\t\t\t info = info.carregaInfoTela(\"infoTela\");\r\n\t\t\t\t\tinfo.setOutrasVariaveis(0, 0); // Salva outras informacoes da Tela\r\n\t\t\t\t\tinfo.salvaInfoTela(\"infoTela\", info);\t\t\t\t\t\r\n\t\t\t\t\tcopiador.copy(\"\" + i, \"Screens/\");\r\n\t\t\t\t\t\r\n\t\t\t\t} catch (CloneNotSupportedException e) {\r\n\t\t\t\t\t// TODO Auto-generated catch block\r\n\t\t\t\t\te.printStackTrace();\r\n\t\t\t\t} catch (ClassNotFoundException e) {\r\n\t\t\t\t\t// TODO Auto-generated catch block\r\n\t\t\t\t\te.printStackTrace();\r\n\t\t\t\t} catch (IOException e) {\r\n\t\t\t\t\t// TODO Auto-generated catch block\r\n\t\t\t\t\te.printStackTrace();\r\n\t\t\t\t}*/\r\n\t }\r\n\t \r\n\t\t\t\r\n\t\t}", "public static void main(String[] args) {\n\t\tBFS breadFirstSearch = new BFS();\n\n\t\t// creating an object of class DFS\n\t\tDFS depthFirstSearch = new DFS();\n\n\t\tchar choice, opt;\n\t\tScanner in = new Scanner(System.in);\n\n\t\tdo {\n\t\t\tSystem.out.println(\"Enter your choice of search\");\n\t\t\tSystem.out.println(\"Press 'b' for breadth first search\");\n\t\t\tSystem.out.println(\"Press 'd' for depth first search\");\n\t\t\tchoice = Character.toLowerCase(in.next().charAt(0));\n\n\t\t\t// creating a set of vertices\n\t\t\tVertex vertex1 = new Vertex(1);\n\t\t\tVertex vertex2 = new Vertex(2);\n\t\t\tVertex vertex3 = new Vertex(3);\n\t\t\tVertex vertex4 = new Vertex(4);\n\t\t\tVertex vertex5 = new Vertex(5);\n\n\t\t\t// connecting the vertices to each other to make the graph\n\t\t\tvertex1.addNeighbourVertex(vertex2);\n\t\t\tvertex1.addNeighbourVertex(vertex4);\n\t\t\tvertex4.addNeighbourVertex(vertex5);\n\t\t\tvertex2.addNeighbourVertex(vertex3);\n\n\n\t\t\tswitch (choice) {\n\t\t\tcase 'd' : \n\t\t\t\t// start the depth first search starting from vertex1\n\t\t\t\tdepthFirstSearch.iterativeDFS(vertex1); break;\n\n\t\t\tcase 'b':\n\t\t\t\t// start the breadth first search starting from vertex1\n\t\t\t\tbreadFirstSearch.bfs(vertex1); break;\n\n\t\t\tdefault: System.out.println(\"wrong input\");\n\t\t\t}\n\n\t\t\tSystem.out.println(\"Want to continue (y/n)\");\n\t\t\topt = Character.toLowerCase(in.next().charAt(0));\n\t\t} while (opt == 'y');\n\t\tin.close();\n\t}", "public void next() {\n Solver<ArrayList<Integer>> mySolver =\n new Solver<ArrayList<Integer>>();\n ArrayList<ArrayList<Integer>> Solution =\n mySolver.SolveBFS(this);\n\n //Reset 'tried' to none\n tried = new HashSet<ArrayList<Integer>>();\n\n //Set up the nextState\n ArrayList<Integer> nextState = new ArrayList<Integer>();\n\n if(Solution.size() == 0) {\n //No Solution\n } else if (Solution.size() == 1) {\n nextState = Solution.get(0);\n curBoard = nextState;\n } else {\n nextState = Solution.get(1);\n curBoard = nextState;\n moveCount++;\n }\n clearStack();\n\n\tsetChanged();\n\tnotifyObservers();\n }", "public void breadthFirstTraversal(NodeVisitor action)\n\t{\n\t\tQueue queue = new Queue();\n\t\tqueue.enqueue(this);\n\t\twhile( ! queue.isEmpty() )\n\t\t{\n\t\t\tBinaryTree tree = (BinaryTree)queue.dequeue();\n\t\t\tif ( ! tree.isEmpty() )\n {\n \t\t\taction.visit(tree.getElement());\n \t\t\tqueue.enqueue(tree.leftTree());\n \t\t\tqueue.enqueue(tree.rightTree());\n }\n\t\t}\n\t}", "public void startSearch() {\n if (solving) {\n Alg.Dijkstra();\n }\n pause(); //pause state\n }", "public static void main(String[] args) {\n\t\t//new BFS\n\t\tBFS mybfs = new BFS();\n\t\tmybfs.loadFile(\"maze-1\");\n\t\t// need to retrace the path\n\t\tif(mybfs.solve()){\n\t\t\tSystem.out.println(\"The shortest path is:\");\n\t\t\tmybfs.retrace();\n\t\t}\n\t\telse System.out.println(\"There are no paths to the destination.\");\n\t}", "public static void main(String[] args) {\n Graph graph = new Graph(16);\n graph.addEdge(0,1);\n graph.addEdge(1,2);\n graph.addEdge(2,3);\n graph.addEdge(3,4);\n graph.addEdge(4,5);\n graph.addEdge(5,6);\n graph.addEdge(6,7);\n graph.addEdge(8,9);\n graph.addEdge(9,10);\n graph.addEdge(10,11);\n graph.addEdge(11,12);\n graph.addEdge(13,14);\n graph.addEdge(14,15);\n graph.addEdge(15,0);\n graph.addEdge(0,8);\n graph.addEdge(1,10);\n graph.addEdge(2,9);\n graph.addEdge(3,11);\n graph.addEdge(3,14);\n graph.addEdge(4,7);\n graph.addEdge(4,13);\n graph.addEdge(5,8);\n graph.addEdge(5,15);\n graph.printGraph();\n System.out.println(\"DFS Traversal\");\n graph.DFS(3);\n System.out.println();\n System.out.println(\"BFS Traversal\");\n graph.BFS(3);\n// System.out.println();\n// for (int i=0; i<graph.vertices; i++)\n// {\n// if(graph.visited[i]!=true)\n// {\n// graph.DFS(i);\n// }\n// }\n\n }", "public void breadthFirstSearch(){\n Deque<Node> q = new ArrayDeque<>(); // In an interview just write Queue ? Issue is java 8 only has priority queue, \n // meaning I have to pass it a COMPARABLE for the Node class\n if (this.root == null){\n return;\n }\n \n q.add(this.root);\n while(q.isEmpty() == false){\n Node n = (Node) q.remove();\n System.out.print(n.val + \", \");\n if (n.left != null){\n q.add(n.left);\n }\n if (n.right != null){\n q.add(n.right);\n }\n }\n }", "public static void main(String[] args) {\n TreeNode root = new TreeNode(20, null, null);\n TreeNode lvl2Node1 = insertTreeNode(true, 10, root);\n TreeNode lvl2Node2 = insertTreeNode(false, 1, root);\n TreeNode lvl3Node1 = insertTreeNode(true, 25, lvl2Node1);\n TreeNode lvl3Node2 = insertTreeNode(false, 26, lvl2Node1);\n TreeNode lvl3Node3 = insertTreeNode(true, 32, lvl2Node2);\n TreeNode lvl3Node4 = insertTreeNode(false, 37, lvl2Node2);\n insertTreeNode(true, 5, lvl3Node1);\n insertTreeNode(false, 6, lvl3Node2);\n insertTreeNode(false, 8, lvl3Node3);\n insertTreeNode(true, 10, lvl3Node4);\n\n\n breadthFirstSearchPrintTree(root);\n\n }", "private void treeBreadthFirstTraversal() {\n Node currNode = root;\n java.util.LinkedList<Node> queue = new java.util.LinkedList<Node>();\n\n // Highlights the first Node.\n queueNodeSelectAnimation(currNode, \"Exploring \" + currNode.key,\n AnimationParameters.ANIM_TIME);\n\n // Explores Nodes until the queue is empty.\n while (true) {\n\n // Marks that this Node's children should be explored.\n for (int i = 0; i < getNumChildren(); ++i) {\n if (currNode.children[i] != null) {\n queue.addLast(currNode.children[i]);\n queueQueueAddAnimation(currNode.children[i],\n \"Queueing \" + currNode.children[i].key,\n AnimationParameters.ANIM_TIME);\n\n }\n }\n\n // Pops the next Node from the queue.\n if (!queue.isEmpty()) {\n currNode = queue.pop();\n queueListPopAnimation(\"Popped \" + currNode.key,\n AnimationParameters.ANIM_TIME);\n queueNodeSelectAnimation(currNode, \"Exploring \" + currNode.key,\n AnimationParameters.ANIM_TIME);\n\n }\n // If the queue is empty, breaks.\n else break;\n\n }\n }", "private void bfs() {\n\t\tQueue<Node> q = new ArrayDeque<>();\n\t\tq.add(treeNodes.get(0));\n\t\twhile (!q.isEmpty()) {\n\t\t\tint size = q.size();\n\t\t\tfor (int i = 0; i < size; i++) {\n\t\t\t\tNode curr = q.poll();\n\t\t\t\ttime += curr.informTime;\n\t\t\t\tSet<Node> nextNodes = curr.nextNodes;\n\t\t\t\tif (nextNodes == null || curr.id == treeNodes.get(0).id)\n\t\t\t\t\tcontinue;\n\t\t\t\tfor (Node node : nextNodes) {\n\t\t\t\t\tq.add(node);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t}", "private static void demo_bfWalk(RoWordNet rown) throws Exception {\n Synset source = rown.getSynsetsFromLiteral(new Literal(\"miere\")).get(0);\n if (source == null)\n throw new Exception(\"Synset not found!\");\n BFWalk bf = new BFWalk(rown, source.getId());\n IO.outln(\"Starting BFWalk on all relations with source synset:\\n\" + source\n .toString());\n\n int cnt = 0;\n while (bf.hasMoreSynsets()) {\n IO.outln(\"\\n** STEP \" + (++cnt));\n Synset step = rown.getSynsetById(bf.nextSynset());\n IO.outln(step.toString());\n if (cnt > 6) {\n IO.outln(\"\\n Stopping BFWalk and returning.\");\n break;\n }\n }\n }", "public void run() {\n\t\t\tString html = \"\";\n\t\t\ttry {\n\t\t\t\thtml = HTTPFetcher.fetchHTML(this.url);\n\t\t\t} catch (UnknownHostException e) {\n\t\t\t\tSystem.out.println(\"Unknown host\");\n\t\t\t} catch (MalformedURLException e) {\n\t\t\t\tSystem.out.println(\"MalformedURL\");\n\t\t\t} catch (IOException e) {\n\t\t\t\tSystem.out.println(\"IOException\");\n\t\t\t}\n\t\t\ttry {\n\t\t\t\tif(html != null) {\n\t\t\t\t\tthis.newLinks = LinkParser.listLinks(new URL(this.url), html);\n\t\t\t\t}\n\t\t\t} catch (MalformedURLException e) {\n\t\t\t\tSystem.out.println(\"MalformedURL\");\n\t\t\t}\n\t\t\tif(newLinks != null) {\n\t\t\t\tfor(URL theURL : newLinks) {\n\t\t\t\t\tif(!(urls.contains(theURL))) {\n\t\t\t\t\t\tsynchronized(urls) {\n\t\t\t\t\t\t\turls.add(theURL);\n\t\t\t\t\t\t}\n\t\t\t\t\t\tinnerCrawl(theURL, limit);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tInvertedIndex local = new InvertedIndex();\n\t\t\t\tString no_html = HTMLCleaner.stripHTML(html.toString());\n\t\t\t\tString[] the_words = WordParser.parseWords(no_html);\n\t\t\t\tlocal.addAll(the_words, this.url);\n\t\t\t\tindex.addAll(local);\n\t\t\t}\n\t\t}", "public void actionPerformed(ActionEvent e) {\r\n mode = InputMode.DFS;\r\n instr.setText(\"Click one node to start Depth First Traversal from it.\");\r\n }", "public String crawl() throws IOException {\n // FILL THIS IN!\n if(queue.isEmpty()){\n \treturn null;\n }\n String url = queue.remove();\n \tSystem.out.println(\"crawling \"+url);\n Elements paragraphs;\n \tif(index.isIndexed(url))\n \t{\n \t\tSystem.out.println(url+\" is already indexed\");\n \t\treturn null;\n \t}\n \tparagraphs = wf.fetchWikipedia(url);\n index.indexPage(url,paragraphs);\n queueInternalLinks(paragraphs);\t \n\t\treturn url;\n\t}", "private void dfs(int y, int x, boolean[][] visited, Set<String> results, BoggleBoard board,\n\t\t\tTST.BacktrackTraverser<Integer> bt) {\n\t\tif (bt.hasValue()) {\n\t\t\tString word = appendU(bt.getWord());\n\t\t\tif (bt.getValue() > 0) {\n\t\t\t\tresults.add(word);\n\t\t\t}\n\t\t}\n\n\t\t// Check every unused nearby grid.\n\t\t// Only continue on grid if there's some word down the TST.\n\t\tfor (int[] dir : directions) {\n\t\t\tint[] moved = move(y, x, dir);\n\t\t\tif (!inBound(moved, board)) {\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\tif (visited[moved[0]][moved[1]]) {\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\tchar singleLetter = board.getLetter(moved[0], moved[1]);\n\t\t\tif (!bt.hasDown(singleLetter)) {\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\tvisited[moved[0]][moved[1]] = true;\n\t\t\tbt.down(singleLetter);\n\t\t\tdfs(moved[0], moved[1], visited, results, board, bt);\n\t\t\tbt.up();\n\t\t\tvisited[moved[0]][moved[1]] = false;\n\t\t}\n\t}", "public static void main(String[] args) {\n Graph graph = new Graph();\n graph.addEdge(0, 1);\n graph.addEdge(0, 4);\n\n graph.addEdge(1,0);\n graph.addEdge(1,5);\n graph.addEdge(1,2);\n graph.addEdge(2,1);\n graph.addEdge(2,6);\n graph.addEdge(2,3);\n\n graph.addEdge(3,2);\n graph.addEdge(3,7);\n\n graph.addEdge(7,3);\n graph.addEdge(7,6);\n graph.addEdge(7,11);\n\n graph.addEdge(5,1);\n graph.addEdge(5,9);\n graph.addEdge(5,6);\n graph.addEdge(5,4);\n\n graph.addEdge(9,8);\n graph.addEdge(9,5);\n graph.addEdge(9,13);\n graph.addEdge(9,10);\n\n graph.addEdge(13,17);\n graph.addEdge(13,14);\n graph.addEdge(13,9);\n graph.addEdge(13,12);\n\n graph.addEdge(4,0);\n graph.addEdge(4,5);\n graph.addEdge(4,8);\n graph.addEdge(8,4);\n graph.addEdge(8,12);\n graph.addEdge(8,9);\n graph.addEdge(12,8);\n graph.addEdge(12,16);\n graph.addEdge(12,13);\n graph.addEdge(16,12);\n graph.addEdge(16,17);\n graph.addEdge(17,13);\n graph.addEdge(17,16);\n graph.addEdge(17,18);\n\n graph.addEdge(18,17);\n graph.addEdge(18,14);\n graph.addEdge(18,19);\n\n graph.addEdge(19,18);\n graph.addEdge(19,15);\n LinkedList<Integer> visited = new LinkedList();\n List<ArrayList<Integer>> paths = new ArrayList<ArrayList<Integer>>();\n int currentNode = START;\n visited.add(START);\n new searchEasy().findAllPaths(graph, visited, paths, currentNode);\n for(ArrayList<Integer> path : paths){\n for (Integer node : path) {\n System.out.print(node);\n System.out.print(\" \");\n }\n System.out.println();\n }\n }", "private static void printBFS(int[][] adjacencyMatrix, int sv, boolean[] visited) {\n\t\tint n= adjacencyMatrix.length;\n\t\tvisited[sv]= true;\n\t\tQueue<Integer> queue = new LinkedList<Integer>();\n\t\tqueue.add(sv);\n\t\twhile(!queue.isEmpty()) {\n\t\t\tint frontnode = queue.poll();\n\t\t\tSystem.out.print(frontnode+\" \");\n\t\t\tfor(int i=0;i<n;i++) {\n\t\t\t\tif(adjacencyMatrix[frontnode][i] == 1 && !visited[i]) {\n\t\t\t\t\tvisited[i]= true;\n\t\t\t\t\tqueue.add(i);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t\t\t\n\t}", "void execute(String link) throws CrawlerWorkerException;", "public static void main(String[] args) {\n\t\tint[] a = {2,6,5,8,3,4,7,9,0};\n\t\tBinaryTree b = new BinaryTree();\n\t\tfor(int i=0;i<a.length;i++) {\n\t\t\tb.add(a[i],i);\n\t\t}\n\t\t//System.out.println(b.search(9));\n\t\t\n\t\t//b.preordertravel(b.root);\n\t\t//b.midordertravel(b.root);\n\t\t//b.postordertravel(b.root);\n\t\t\n\t\t//System.out.println(b.depth());\n\t\tb.BFS();\n\t}", "public static void main(String[] args) {\n boolean run = true;\r\n Movie movie = null;\r\n ActorGraph graph = new ActorGraph();\r\n Scanner sc = new Scanner(System.in);\r\n String input;\r\n while(run){\r\n System.out.println(\"Welcome to the Kevin Bacon Calculator \\n\" +\r\n \"I)Import a Movie\\n\" + \r\n \"A)Print all actors\\n\" +\r\n \"M)Print all movies\\n\"+\r\n \"P)Print the shortest path between two actors\\n\"+\r\n \"B)Print the BFS from a given actor\\n\"+\r\n \"L) Lookup Actor By Name \\n\"\r\n + \"Q) Quit.\\n\");\r\n input=sc.nextLine();\r\n \r\n if(input.equalsIgnoreCase(\"I\")){\r\n System.out.println(\"Enter the movie title: \");\r\n input= sc.nextLine();\r\n try{\r\n movie = new Movie(input);\r\n }\r\n catch(Exception e){\r\n System.out.println(e.getMessage());\r\n }\r\n graph.addMoviesByTitle(movie);\r\n for(int i = 0; i< movie.getActors().size();i++)\r\n graph.addActorsByName(movie.getActors().get(i));\r\n \r\n } \r\n else if(input.equalsIgnoreCase(\"A\")){ \r\n graph.printActors();\r\n }\r\n \r\n\r\n else if(input.equalsIgnoreCase(\"M\")){\r\n graph.printMovies();\r\n }\r\n \r\n \r\n else if(input.equalsIgnoreCase(\"P\")){\r\n System.out.println(\"Enter a Starting Actor: \");\r\n input = sc.nextLine();\r\n System.out.println(\"Enter Second Actor: \");\r\n String input2 =sc.nextLine();\r\n \r\n \r\n }\r\n \r\n \r\n else if(input.equalsIgnoreCase(\"B\")){\r\n System.out.println(\"Enter a Starting Actor: \");\r\n input = sc.nextLine();\r\n LinkedList<String> temp =graph.bfs(input);\r\n System.out.println(temp.toString());\r\n }\r\n \r\n \r\n else if(input.equalsIgnoreCase(\"L\")){ \r\n System.out.println(\"Enter a Actor: \");\r\n input= sc.nextLine();\r\n graph.lookUpActor(input);\r\n \r\n }\r\n \r\n \r\n else if(input.equalsIgnoreCase(\"Q\")){\r\n System.out.println(\"Goodbye\"); \r\n run =false;\r\n System.exit(0);\r\n \r\n }\r\n \r\n}\r\n \r\n \r\n }", "private void resolverBFS() {\n\t\tQueue<Integer> cola = new LinkedList<Integer>();\n\t\tint[] vecDistancia = new int[nodos.size()];\n\t\tfor (int i = 0; i < vecDistancia.length; i++) {\n\t\t\tvecDistancia[i] = -1;\n\t\t\trecorrido[i] = 0;\n\t\t}\n\t\tint nodoActual = 0;\n\t\tcola.add(nodoActual);\n\t\tvecDistancia[nodoActual] = 0;\n\t\trecorrido[nodoActual] = -1;\n\t\twhile (!cola.isEmpty()) {\n\t\t\tif (tieneAdyacencia(nodoActual, vecDistancia)) {\n\t\t\t\tfor (int i = 1; i < matrizAdyacencia.length; i++) {\n\t\t\t\t\tif (matrizAdyacencia[nodoActual][i] != 99 && vecDistancia[i] == -1) {\n\t\t\t\t\t\tcola.add(i);\n\t\t\t\t\t\tvecDistancia[i] = vecDistancia[nodoActual] + 1;\n\t\t\t\t\t\trecorrido[i] = nodoActual;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\tcola.poll();\n\t\t\t\tif (!cola.isEmpty()) {\n\t\t\t\t\tnodoActual = cola.peek();\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "void BFS(int s) {\n // Mark all the vertices as not visited(By default\n // set as false)\n boolean visited[] = new boolean[V];\n\n // Create a queue for BFS\n LinkedList<Integer> queue = new LinkedList<Integer>();\n\n // Mark the current node as visited and enqueue it\n visited [s] = true;\n queue.add(s);\n\n while (queue.size() != 0) {\n // Dequeue a vertex from queue and print it\n s = queue.poll();\n System.out.print(s + \" \");\n\n // Get all adjacent vertices of the dequeued vertex s\n // If a adjacent has not been visited, then mark it\n // visited and enqueue it\n Iterator<Integer> i = adj [s].listIterator();\n while (i.hasNext()) {\n int n = i.next();\n if (!visited [n]) {\n visited [n] = true;\n queue.add(n);\n }\n }\n }\n }", "private static void breadthFirstSearch(int source, ArrayList<ArrayList<Integer>> nodes) {\n\t\tArrayList<ArrayList<Integer>> neighbours = nodes;\n\t\tQueue<Integer> queue= new LinkedList<Integer>();\n\t\t\n\t\tboolean[] visited = new boolean[nodes.size()];\n\t\t\n\t\tqueue.add(source);\n\t\tvisited[source]=true;\n\t\t\n\t\twhile(!queue.isEmpty()) {\n\t\t\tint k =queue.remove();\n\t\t\tSystem.out.println(k);\n\t\t\tfor(int p : nodes.get(k)) {\n\t\t\t\tif(!visited[p]) {\n\t\t\t\t\tqueue.add(p);\n\t\t\t\t\tvisited[p]=true;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t}\n\t\t}\n\t\t\n\t\t\n\t}", "public void performSearch() {\n final String url = String.format(BING_SEARCH_URL, Words.getRandomWord(), Words.getRandomWord());\n\n //open page with custom data\n openWebPage(url, \"Search url: \" + url);\n }", "private void goSearch() {\n\t\tThread t = new Thread(this);\n\t\tt.start();\n\t}", "public static void main(String[] args) throws IOException {\n if (args.length != 1) {\n System.err.println(\"java linkstate <file name>\");\n System.exit(0);\n }\n\n // read from file\n String filename = args[0].replaceAll(\"\\\\s+\", \"\");\n String fileContents = new String(Files.readAllBytes(Paths.get(filename))).replaceAll(\"\\\\s+\", \"\");\n String[] fileSplit = fileContents.trim().split(\"\\\\.\");\n\n // find size of 2d array\n amtOfNodes = fileSplit.length - 1;\n // System.out.println(\"amt of nodes: \" + amtOfNodes);\n\n // put the values into a 2d array of strings\n String[][] nodeStrings = new String[amtOfNodes][amtOfNodes];\n for (int i = 0; i < amtOfNodes; i++) {\n nodeStrings[i] = fileSplit[i].split(\"\\\\,\");\n }\n\n // convert the strings to integers\n int[][] nodeInts = new int[amtOfNodes][amtOfNodes];\n for (int i = 0; i < amtOfNodes; i++) {\n for (int j = 0; j < amtOfNodes; j++) {\n if (nodeStrings[i][j].equals(\"N\")) {\n nodeInts[i][j] = infiniti;\n } else {\n nodeInts[i][j] = Integer.parseInt(nodeStrings[i][j]);\n }\n }\n }\n\n dijkstra(nodeInts);\n\n }", "public static void userSelection_SolveMaze(int userInputN){\n\n\t\tint[] S = new int[(int) Math.pow(userInputN, 2)];\n\t\tgNode[] G = new gNode[S.length];\n\n\t\tboolean [] visited = new boolean[S.length];\t\t//Initialize\n\t\tfor(int i=0; i<visited.length;i++)\n\t\t\tvisited[i] = false;\n\n\t\tint [] path = new int[S.length];\t\t//Initialize \n\t\tfor(int i=0; i<path.length; i++)\n\t\t\tpath[i]=-1;\n\n\t\tScanner input = new Scanner(System.in);\n\t\tSystem.out.println(\"How would you like to solve the maze?\\n\"\n\t\t\t\t+ \"1.\\tBreadth-First Search\\n\"\n\t\t\t\t+ \"2.\\tDepth-First Search\\n\"\n\t\t\t\t+ \"3.\\tDepth-First Search with Recursion\");\n\t\t\n\t\tint ur = input.nextInt();\n\t\t\n\t\tif(ur==1)\t//Breadth-First Search\t\t\\///gNode && start @ position 0\n\t\t\tbfs(G, visited, path, 0);\n\t\telse if(ur==2)\t//Depth-First Search\n\t\t\tdfs_Stack(G, visited, path, 0);\n\t\telse if(ur==3)\t//Depth-First Search w/recursion\t\n\t\t\tdfsRecursion(G, visited, path, 0);\t\n\t\telse{\n\t\t\tSystem.out.println(\"Invalid option. Please enter the appropriate integer value\");\n\t\t\tuserSelection_SolveMaze(userInputN);\n\t\t}\n\t\t\n\t\tinput.close();\n\t}", "@Override\n public void crawl() throws IOException {\n final String seedURL = url;\n Queue<String> currentDepthQueue = new LinkedList<>();\n currentDepthQueue.add(seedURL);\n crawl(visitedURL, 1, currentDepthQueue);\n customObjectWriter.flush();\n }", "public void bfs(Queue<Integer> queue, int visited[]) {\n if (queue.isEmpty()) {\n return;\n }\n\n int root = queue.poll();\n\n if (visited[root] == 1) {\n bfs(queue, visited);\n return;//alreadu into consideration\n }\n\n\n System.out.printf(\"Exploring of node %d has started\\n\", root);\n visited[root] = 1;\n\n\n for (int i = 0; i < adjMatrix[root].size(); i++) {\n if (visited[adjMatrix[root].get(i)] == 1 || visited[adjMatrix[root].get(i)] == 2) {\n continue;\n }\n queue.add(adjMatrix[root].get(i));\n }\n bfs(queue, visited);\n System.out.printf(\"Exploring of node %d has end\\n\", root);\n visited[root] = 2;\n }", "private int bfs(String source, String destination, final Set<String> uniqueWords) {\n\n class Node {\n String word;\n int distance;\n\n public Node(String word, int distance) {\n this.word = word;\n this.distance = distance;\n }\n }\n\n final Queue<Node> queue = new LinkedList<>();\n Set<String> visited = new HashSet<>();\n queue.offer(new Node(source, 0)); //distance of source to source is 0\n visited.add(source);\n\n while (!queue.isEmpty()) {\n\n final Node node = queue.poll();\n final int distance = node.distance;\n\n //if we reached the destination node\n if (node.word.equals(destination))\n return distance + 1;\n\n //try all word which is 1 weight away\n for (String neighbour : getNeighbour(node.word, uniqueWords)) {\n if (!visited.contains(neighbour)) {\n visited.add(neighbour);\n queue.offer(new Node(neighbour, distance + 1));\n }\n }\n\n\n }\n return 0;\n }", "public void visit (String site) {\r\n backHistory.add(current);\r\n current = site;\r\n forwardHistory.clear();\r\n\r\n }", "private void QueryDirections() {\n\t\tshowProgress(true, \"正在搜索导航路线...\");\n\t\t// Spawn the request off in a new thread to keep UI responsive\n\t\tfor (final FloorInfo floorInfo : floorList) {\n\t\t\tif (floorInfo.getPoints() != null\n\t\t\t\t\t&& floorInfo.getPoints().length >= 2) {\n\n\t\t\t\tThread t = new Thread() {\n\t\t\t\t\t@Override\n\t\t\t\t\tpublic void run() {\n\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\t// Start building up routing parameters\n\t\t\t\t\t\t\tRouteTask routeTask = RouteTask\n\t\t\t\t\t\t\t\t\t.createOnlineRouteTask(\n\t\t\t\t\t\t\t\t\t\t\tfloorInfo.getRouteServerPath(),\n\t\t\t\t\t\t\t\t\t\t\tnull);\n\n\t\t\t\t\t\t\tRouteParameters rp = routeTask\n\t\t\t\t\t\t\t\t\t.retrieveDefaultRouteTaskParameters();\n\t\t\t\t\t\t\tNAFeaturesAsFeature rfaf = new NAFeaturesAsFeature();\n\t\t\t\t\t\t\t// Convert point to EGS (decimal degrees)\n\t\t\t\t\t\t\t// Create the stop points (start at our location, go\n\t\t\t\t\t\t\t// to pressed location)\n\t\t\t\t\t\t\t// StopGraphic point1 = new StopGraphic(mLocation);\n\t\t\t\t\t\t\t// StopGraphic point2 = new StopGraphic(p);\n\t\t\t\t\t\t\trfaf.setFeatures(floorInfo.getPoints());\n\t\t\t\t\t\t\trfaf.setCompressedRequest(true);\n\t\t\t\t\t\t\trp.setStops(rfaf);\n\n\t\t\t\t\t\t\t// Set the routing service output SR to our map\n\t\t\t\t\t\t\t// service's SR\n\t\t\t\t\t\t\trp.setOutSpatialReference(wm);\n\t\t\t\t\t\t\trp.setFindBestSequence(true);\n\t\t\t\t\t\t\trp.setPreserveFirstStop(true);\n\t\t\t\t\t\t\tif (floorInfo.getEndPoint() != null) {\n\t\t\t\t\t\t\t\trp.setPreserveLastStop(true);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t// Solve the route and use the results to update UI\n\t\t\t\t\t\t\t// when received\n\t\t\t\t\t\t\tfloorInfo.setRouteResult(routeTask.solve(rp));\n\n\t\t\t\t\t\t} catch (Exception e) {\n\t\t\t\t\t\t\tmException = e;\n\t\t\t\t\t\t\t// mHandler.post(mUpdateResults);\n\t\t\t\t\t\t}\n\t\t\t\t\t\trouteIndex++;\n\t\t\t\t\t\tif (routeIndex >= routeCount) {\n\t\t\t\t\t\t\tmHandler.post(mSetCheckMap);\n\t\t\t\t\t\t\tmHandler.post(mUpdateResults);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t};\n\t\t\t\t// Start the operation\n\t\t\t\tt.start();\n\t\t\t}\n\t\t}\n\n\t}", "void Graph::BFS(int s)\n{\n bool *visited = new bool[V];\n for(int i = 0; i < V; i++)\n visited[i] = false;\n \n // Create a queue for BFS\n list<int> queue;\n \n // Mark the current node as visited and enqueue it\n visited[s] = true;\n queue.push_back(s);\n \n // 'i' will be used to get all adjacent vertices of a vertex\n list<int>::iterator i;\n \n while(!queue.empty())\n {\n // Dequeue a vertex from queue and print it\n s = queue.front();\n cout << s << \" \";\n queue.pop_front();\n \n // Get all adjacent vertices of the dequeued vertex s\n // If a adjacent has not been visited, then mark it visited\n // and enqueue it\n for(i = adj[s].begin(); i != adj[s].end(); ++i)\n {\n if(!visited[*i])\n {\n visited[*i] = true;\n queue.push_back(*i);\n }\n }\n }", "@SuppressWarnings(\"unchecked\")\n\tpublic Indexer crawl (int limit) \n\t{\n\t\n\t\t////////////////////////////////////////////////////////////////////\n\t // Write your Code here as part of Priority Based Spider assignment\n\t // \n\t ///////////////////////////////////////////////////////////////////\n\t\tPQueue q=new PQueue();\n \t\n\t\ttry\n \t{\n\t\t\t final String authUser = \"iiit-63\";\n\t\t\t\tfinal String authPassword = \"MSIT123\";\n\n\t\t\t\tSystem.setProperty(\"http.proxyHost\", \"proxy.iiit.ac.in\");\n\t\t\t\tSystem.setProperty(\"http.proxyPort\", \"8080\");\n\t\t\t\tSystem.setProperty(\"http.proxyUser\", authUser);\n\t\t\t\tSystem.setProperty(\"http.proxyPassword\", authPassword);\n\n\t\t\t\tAuthenticator.setDefault(\n\t\t\t\t new Authenticator() \n\t\t\t\t {\n\t\t\t\t public PasswordAuthentication getPasswordAuthentication()\n\t\t\t\t {\n\t\t\t\t return new PasswordAuthentication(authUser, authPassword.toCharArray());\n\t\t\t\t }\n\t\t\t\t }\n\t\t\t\t);\n\n\t\t\t\tSystem.setProperty(\"http.proxyUser\", authUser);\n\t\t\t\tSystem.setProperty(\"http.proxyPassword\", authPassword);\n \t\tURLTextReader in = new URLTextReader(u);\n \t\t// Parse the page into its elements\n \t\tPageLexer elts = new PageLexer(in, u);\t\t\n \t\tint count1=0;\n \t\t// Print out the tokens\n \t\tint count = 0;\n \t\t\n \t\twhile (elts.hasNext()) \n \t\t{\n \t\t\tcount++;\n \t\t\tPageElementInterface elt = (PageElementInterface)elts.next();\t\t\t \n \t\t\tif (elt instanceof PageHref)\n \t\t\tif(count1<limit)\n \t\t\t{\n \t\t\t\tif(q.isempty())\n \t\t\t\t{\n \t\t\t\t\tq.enqueue(elt.toString(),count);\n\t\t\t\t\t}\n \t\t\t\telse\n \t\t\t\t{\n \t\t\t\t\tif(q.search(elt.toString(),count))\n \t\t\t\t\t{\n \t\t\t\t\t\tq.enqueue(elt.toString(),count);\n \t\t\t\t\t}\n \t\t\t\t}\n \t\t\t\tcount1++;\n \t\t\t\tSystem.out.println(\"link: \"+elt);\n \t\t\t\t\n \t\t\t}\n \t\t}\n \t\tSystem.out.println(\"links retrieved: \"+count1);\n \t\tq.display();\n \t\twhile(limit !=0)\n \t\t{\n \t\t\tObject elt=q.dequeue();\n \t\t\tURL u1=new URL(elt.toString());\n \t\t\tURLTextReader in1= new URLTextReader(u1);\n \t\t\t// Parse the page into its elements\n \t\t\tPageLexer elt1 = new PageLexer(in1, u1);\n \t\t\twhile (elt1.hasNext()) \n \t\t\t{\n \t\t\t\tPageElementInterface elts2= (PageElementInterface)elt1.next();\n \t\t\t\tif (elts2 instanceof PageWord)\n \t\t\t\t{\n \t\t\t\t\tv.add(elts2);\n \t\t\t\t}\n \t\t\t\tSystem.out.println(\"words:\"+elts2);\n \t\t\t} \t\t\t\n\t\t\t\tObjectIterator OI=new ObjectIterator(v);\n\t\t\t\ti.addPage(u1,OI);\n\t\t\t\tfor(int j=0;j<v.size();j++);\n\t\t\t\t{\n\t\t\t\t\tSystem.out.println(\"hello\"+v.get(count));\n\t\t\t\t}\n\t\t\t\tlimit--;\n \t\t}\n \t\t\n \t}\n \tcatch (Exception e)\n \t{\n \t\tSystem.out.println(\"Bad file or URL specification\");\n \t}\n return i;\n\t}", "public void seekWalls() {\n\t\t for (int j=0; j<visited[0].length; j++){\n\t\t\tfor (int i=visited.length-1; i>=0; i--) {\t\t\t\n\t\t\t\tif (i!=0 && j!= visited[0].length-1) {//general position\n\t\t\t\t\tif (map.get(visited[i][j]) + map.get(visited[i-1][j]) == maxComb && !isFree(i,j,2)) {\n\t\t\t\t\t\twallRow = i+1;\n\t\t\t\t\t\twallCol = j+1;\n\t\t\t\t\t\twallSide = 'N';\n\t\t\t\t\t\treturn;//not break!!!!! return to exit !\n\t\t\t\t\t}\n\n\t\t\t\t\tif (map.get(visited[i][j]) + map.get(visited[i][j+1]) == maxComb && !isFree(i,j,4)) {\n\t\t\t\t\t\twallRow = i+1;\n\t\t\t\t\t\twallCol = j+1;\n\t\t\t\t\t\twallSide = 'E';\t\n\t\t\t\t\t\treturn;\t\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\telse if (i==0 && j!= visited[0].length-1) {\n\t\t\t\t\tif (map.get(visited[i][j]) + map.get(visited[i][j+1]) == maxComb && !isFree(i,j,4)) {\n\t\t\t\t\t\twallRow = i+1;\n\t\t\t\t\t\twallCol = j+1;\n\t\t\t\t\t\twallSide = 'E';\t\n\t\t\t\t\t\treturn;\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\telse if (i!=0 && j== visited[0].length-1) {\n\t\t\t\t\tif (map.get(visited[i][j]) + map.get(visited[i-1][j]) == maxComb && !isFree(i,j,2)) {\n\t\t\t\t\t\twallRow = i+1;\n\t\t\t\t\t\twallCol = j+1;\n\t\t\t\t\t\twallSide = 'N';\n\t\t\t\t\t\treturn;\n\t\t\t\t\t}\n\n\t\t\t\t}\n\t\t\t\telse {//if (i==0 && j== visited[0].length-1) {\n\t\t\t\t\t//no solution\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "public static void main(String[] args) {\n\r\n\t\tgraph g=new graph(5);\r\n\t\tg.addEdge(0, 1);\r\n\t\tg.addEdge(0, 2);\r\n\t\tg.addEdge(1, 3);\r\n\t\tg.addEdge(3, 4);\r\n\t\tg.addEdge(4, 2);\r\n\t\tg.print();\r\n\t\tg.BFS(2);\r\n\t}", "public static void main(String[] args) throws IOException {\n\t\t\n ArrayList<String> visited = new ArrayList<String>();\n\n\t\tString start = \"https://en.wikipedia.org/wiki/Java_(programming_language)\";\n String finish = \"https://en.wikipedia.org/wiki/Philosophy\";\n String url = start;\n\n for (int i = 0; i < 15; i++) {\n\n if (visited.contains(url)) {\n return;\n }\n else {\n visited.add(url); \n }\n\n Elements paragraphs = fetcher.fetchWikipedia(url);\n Element link = searchPage(paragraphs);\n\n if (link == null) {\n System.err.println(\"No links on this page...\");\n return;\n }\n\n url = link.attr(\"abs:href\");\n System.out.println(\"currently on: \" + url);\n \n if (url.equals(finish)) {\n System.out.println(\"found it!\");\n break;\n }\n }\n\t}", "HtmlPage clickLink();", "private Queue<Integer> breadthSearch(int i, int j, Queue<Integer> queue, Queue<Integer> path) {\n while(queue.size() != 0) {\n queue.poll();\n }//while\n return new LinkedList();\n }", "public void bfs(Vertex<T> start) {\n\t\t\t// BFS uses Queue data structure\n\t\t\tQueue<Vertex<T>> que = new LinkedList<Vertex<T>>();\n\t\t\tstart.visited = true;\n\t\t\tque.add(start);\n\t\t\tprintNode(start);\n\n\t\t\twhile (!que.isEmpty()) {\n\t\t\t\tVertex<T> n = (Vertex<T>) que.remove();\n\t\t\t\tVertex<T> child = null;\n\t\t\t\twhile ((child = getUnvisitedChildren(n)) != null) {\n\t\t\t\t\tchild.visited = true;\n\t\t\t\t\tque.add(child);\n\t\t\t\t\tprintNode(child);\n\t\t\t\t}\n\t\t\t}\n\t\t}", "public static void main(String[] args){\n Graph g = new Graph(13);\n //add vortexes and edges to construct the graph\n g.addEdge(0,1);\n g.addEdge(0,2);\n g.addEdge(0,6);\n g.addEdge(0,5);\n g.addEdge(6,4);\n g.addEdge(4,3);\n g.addEdge(4,5);\n g.addEdge(3,5);\n g.addEdge(7,8);\n g.addEdge(9,10);\n g.addEdge(9,11);\n g.addEdge(9,12);\n g.addEdge(11,12);\n\n //create a DepthFirstSearch object\n BreadthFirstSearch DFS = new BreadthFirstSearch(g,0);\n\n System.out.println(\"7 and 0 is connected: \"+ DFS.marked(7));\n System.out.println(\"10 and 0 is connected: \"+ DFS.marked(10));\n System.out.println(\"6 and 0 is connected: \"+ DFS.marked(6));\n System.out.println(\"4 and 0 is connected: \"+ DFS.marked(0));\n System.out.println(\"12 and 0 is connected: \"+ DFS.marked(12));\n\n System.out.println(DFS.count()+\" vortexes connect with the vortex 0.\");\n\n }", "private static void bellmanfordTest() {\n\t\t\n\t\tgraphs.objectorientedgraph.Graph<Integer> graph = new graphs.objectorientedgraph.Graph<Integer>();\n\t\t\n\t\tfor (int i = 0; i < 6; i++)\n\t\t\tgraph.addVertex(i, i);\n\t\t\n\t\tgraph.addDirectedEdge(0, 1, 0);\n\t\tgraph.addDirectedEdge(0, 2, 0);\n\t\tgraph.addDirectedEdge(0, 3, 0);\n\t\tgraph.addDirectedEdge(0, 4, 0);\n\t\tgraph.addDirectedEdge(0, 5, 0);\n\t\tgraph.addDirectedEdge(5, 1, -1);\n\t\tgraph.addDirectedEdge(5, 2, 1);\n\t\tgraph.addDirectedEdge(1, 4, 4);\n\t\tgraph.addDirectedEdge(1, 3, 5);\n\t\tgraph.addDirectedEdge(2, 1, 0);\n\t\tgraph.addDirectedEdge(3, 5, -3);\n\t\tgraph.addDirectedEdge(3, 4, -1);\n\t\tgraph.addDirectedEdge(4, 5, -3);\n\t\t\n\t\tBellmanFordAlgo<Integer> bellnBellmanFordAlgo = new BellmanFordAlgo(graph ,graph.vertexList.get(0));\n\t\t\n\t\tbellnBellmanFordAlgo.getSingleSourceShortestPath();\n\t\t\n\t\tbellnBellmanFordAlgo.printPath(graph.vertexList.get(3));\n\t\t\n\t}", "public void printBFS() {\n Cell[][] grid = maze.getGrid();\n\n for (int i = 0; i <= r; i++) {\n // Rows: This loop needs to iterate r times since there are r rows\n for (int j = 0; j < r; j++) {\n Cell currentCell;\n if (i == r) { // If it is on the last row, print the bottom row of the cells\n currentCell = grid[i - 1][j];\n System.out.print(currentCell.bottomRow());\n } else { // If it's not on the last row, print the top row of the cells\n currentCell = grid[i][j];\n System.out.print(currentCell.topRow());\n }\n }\n System.out.print(\"+\");\n System.out.println();\n\n // This loop only needs to iterate r-1 times since there is only r-1 \"|\" rows\n if (i != r) {\n for (int k = 0; k < r; k++) {\n Cell currentCell = grid[i][k];\n if ((i == 0 && k == 0))\n System.out.print(currentCell.zeroDistanceColumn());\n else\n System.out.print(currentCell.distanceColumn());\n }\n System.out.print(\"|\");\n System.out.println();\n }\n }\n }", "private void breadthFirstSearch (int start, int[] visited, int[] parent){\r\n Queue< Integer > theQueue = new LinkedList< Integer >();\r\n boolean[] identified = new boolean[getNumV()];\r\n identified[start] = true;\r\n theQueue.offer(start);\r\n while (!theQueue.isEmpty()) {\r\n int current = theQueue.remove();\r\n visited[current] = 1; //ziyaret edilmis vertexler queuedan cikarilan vertexlerdir\r\n Iterator < Edge > itr = edgeIterator(current);\r\n while (itr.hasNext()) {\r\n Edge edge = itr.next();\r\n int neighbor = edge.getDest();\r\n if (!identified[neighbor]) {\r\n identified[neighbor] = true;\r\n theQueue.offer(neighbor);\r\n parent[neighbor] = current;\r\n }\r\n }\r\n }\r\n }", "public static void breadthFirstSearch (HashMap<String, Zpair> stores,\n HashSet<Zpair> visited,\n List<Integer> sortedQueue) {\n List<String> q = new ArrayList<String>();\n q.add(\"Q\");\n // k=0\n //int k = 0;\n while(q.size() != 0) {\n //if(k == 21) {\n // System.exit(20);\n // }\n List<StringBuffer> path = new ArrayList<StringBuffer>(); // this is the return string\n List<String> q1 = new ArrayList<String>();\n int size = q.size();\n //System.out.println(k);\n for(int i = 0; i < size; i++) {\n //printList(q);\n path.add(ZMethods.stringPop(q));\n execute(path.get(i), stores, visited, q1, sortedQueue);\n }\n copyStringBuffer(q1,q);\n //k++;\n }\n }", "public boolean bfs(Node start, String elementToFind) {\r\n if (!graph.containsNode(start)) {\r\n return false;\r\n }\r\n if (start.getElement().equals(elementToFind)) {\r\n return true;\r\n }\r\n Queue<Node> toExplore = new LinkedList<Node>();\r\n marked.add(start);\r\n toExplore.add(start);\r\n while (!toExplore.isEmpty()) {\r\n Node current = toExplore.remove();\r\n for (Node neighbor : graph.getNodeNeighbors(current)) {\r\n if (!marked.contains(neighbor)) {\r\n if (neighbor.getElement().equals(elementToFind)) {\r\n return true;\r\n }\r\n marked.add(neighbor);\r\n toExplore.add(neighbor);\r\n }\r\n }\r\n }\r\n return false;\r\n }", "public static Node searchBFS(int mat[][], int i, int j, int x, int y) {\n\t\tfor (int n = 1; n < 30; n++) {\n\t\t\tfor (int p = 1; p < 30; p++) {\n\t\t\t\tvisited[n][p] = false;\n\t\t\t}\n\t\t}\n\n\t\t// create an empty queue\n\t\tQueue<Node> q = queue;\n\t\tq.clear();\n\t\t// mark source cell as visited and enqueue the source node\n\t\tvisited[j][i] = true;\n\t\tNode root = NodeFactory.createNode(i, j, 0, null, null);\n\t\tq.add(root);\n\n\t\t// stores length of longest path from source to destination\n\t\tint min_dist = Integer.MAX_VALUE;\n\t\tNode node = null;\n\n\t\t// run till queue is not empty\n\t\twhile (!q.isEmpty()) {\n\t\t\t// pop front node from queue and process it\n\n\t\t\tnode = q.poll();\n\t\t\ti = node.x;\n\t\t\tj = node.y;\n\t\t\tint dist = node.dist;\n\n\t\t\tif (i == x && j == y) {\n\t\t\t\tmin_dist = dist;\n\t\t\t\tbreak;\n\t\t\t}\n\n\t\t\tfor (Direction dir : DIRECTIONS) {\n\t\t\t\tint nx = i + dir.x;\n\t\t\t\tint ny = j + dir.y;\n\n\t\t\t\tif (isValid(mat, visited, nx, ny)) {\n\t\t\t\t\t// mark next cell as visited and enqueue it\n\n\t\t\t\t\tvisited[ny][nx] = true;\n\t\t\t\t\tint ndist = dist + 1;\n\n\t\t\t\t\tNode newNode = NodeFactory.createNode(nx, ny, ndist, dir,\n\t\t\t\t\t\t\tnode);\n\n\t\t\t\t\t// Node newNode =new Node(node, nx, ny, ndist, dir);\n\n\t\t\t\t\tq.add(newNode);\n\n\t\t\t\t}\n\t\t\t}\n\n\t\t}\n\n\t\tif (min_dist == Integer.MAX_VALUE){\n\t\t\treturn null;\n\t\t}\n\t\treturn node;\n\t}", "public void saveMaze(File file) throws IOException {\n PrintWriter outputFile = new PrintWriter(file);\n\n Cell[][] grid = maze.getGrid();\n\n outputFile.write(\"BFS\\n\");\n\n // Saves the original (not shortest) BFS path.\n for (int i = 0; i <= r; i++) {\n // Rows: This loop needs to iterate r times since there are r rows\n for (int j = 0; j < r; j++) {\n Cell currentCell;\n if (i == r) { // If it is on the last row, print the bottom row of the cells\n currentCell = grid[i - 1][j];\n outputFile.write(currentCell.bottomRow());\n } else { // If it's not on the last row, print the top row of the cells\n currentCell = grid[i][j];\n outputFile.write(currentCell.topRow());\n }\n }\n outputFile.write(\"+\");\n outputFile.write(\"\\n\");\n\n // This loop only needs to iterate r-1 times since there is only r-1 \"|\" rows\n if (i != r) {\n for (int k = 0; k < r; k++) {\n Cell currentCell = grid[i][k];\n if ((i == 0 && k == 0))\n outputFile.write(currentCell.zeroDistanceColumn());\n else\n outputFile.write(currentCell.distanceColumn());\n }\n outputFile.write(\"|\");\n outputFile.write(\"\\n\");\n }\n }\n\n // Saves the shortest BFS path.\n for (int i = 0; i <= r; i++) {\n // Rows: This loop needs to iterate r times since there are r rows\n for (int j = 0; j < r; j++) {\n Cell currentCell;\n if (i == r) { // If it is on the last row, print the bottom row of the cells\n currentCell = grid[i - 1][j];\n outputFile.write(currentCell.bottomRow());\n } else { // If it's not on the last row, print the top row of the cells\n currentCell = grid[i][j];\n outputFile.write(currentCell.topRow());\n }\n }\n outputFile.write(\"+\");\n outputFile.write(\"\\n\");\n\n // This loop only needs to iterate r-1 times since there is only r-1 \"|\" rows\n if (i != r) {\n for (int k = 0; k < r; k++) {\n Cell currentCell = grid[i][k];\n if ((i == 0 && k == 0))\n outputFile.write(currentCell.zeroDistanceColumn2());\n else if (parents.contains(currentCell))\n outputFile.write(currentCell.zeroDistanceColumn2());\n else\n outputFile.write(currentCell.distanceColumn2());\n }\n outputFile.write(\"|\");\n outputFile.write(\"\\n\");\n }\n }\n // Saves the shortest path, length, and visited cells.\n outputFile.write(\"Path:\");\n for (Cell currentCell : parents) {\n outputFile.write(\"(\" + currentCell.x + \",\" + currentCell.y + \") \");\n }\n outputFile.write(\"\\n\");\n outputFile.write(\"Visited Cells: \" + visitedCells + \"\\n\");\n outputFile.write(\"Length of Path: \" + parents.size() + \"\\n\");\n outputFile.close();\n\n }", "public static int runBFS(int[][]map, coordinate src1, coordinate src2){\n\t \n boolean visited[][] = new boolean[dim][dim]; //visited boolean 2d array that is the same size as 2d map\n coordinate visit1[][]=new coordinate[dim][dim]; // this is the one used to hold previous location\n coordinate visit2[][]=new coordinate[dim][dim]; // this is the one used to hold previous location\n\t \n\t visit1[0][0]=new coordinate(0,0); //same as BFS\n \n\t visit2[dim-1][dim-1] = new coordinate(dim-1,dim-1);\n\t //marked both the 0,0 and dim-1, dim-1 srcs as visited\n\t \n\t Queue<QueueNode> queue1 = new LinkedList<>(); //queue for src1\n\t Queue<QueueNode> queue2 = new LinkedList<>(); //queue for src2\n\t \n\t QueueNode sn1 = new QueueNode(src1, 0, src1); //src node 1 queue node\n\t QueueNode sn2 = new QueueNode(src2, 0, src2);\n\t \n\t ArrayList<coordinate> pathHold1 = new ArrayList<>(); //for first path\n\t ArrayList<coordinate> pathHold2 = new ArrayList<>(); //for second path \n\t \n\t visited[src1.x][src1.y] = true; //mark the start node as visited inside of the visited boolean 2d array for first src\n\t visited[src2.x][src2.y] = true; //mark the start node as visited inside of the visited boolean 2d array for second src\n\t \n\t System.out.println();\n\t \n\t queue1.add(sn1);\n\t queue2.add(sn2);\n\t //added the start nodes\n\t \n\t QueueNode current1 = null;\n\t QueueNode current2 = null;\n\t //to be used later to hold current node being looked at\n\t coordinate c1 = null;\n\t coordinate c2 = null;\n\t\t//coordinates to be examined\n\t \n\t while(!queue1.isEmpty()&&!queue2.isEmpty()){\n\t //keep iterating so long as queues have items -- but if one becomes empty, check at each iteration\n\t\t\t//to avoid null pointer so we are not dequeuing from empty queue\n int maxFringe = 0;\n\t\t//use this to check max fringe at each time we add to either queue\n if(queue1.size()>maxFringe || queue2.size()>0) {\n \t if(queue1.size()>maxFringe) {\n \t\t maxFringe=queue1.size();\n \t }else {\n \t\t maxFringe=queue2.size();\n \t }\n }\n\t \n\t \tif(!queue1.isEmpty()) { \n\t\t\t\t//while first queue is not empty, pop\n\t \t\t current1 = queue1.peek(); // this is n\n\t c1 = current1.point;\n\t \t\t visited[c1.x][c1.y]=true; //mark this node as visited, will check neighbors later\n\t boolean inFringe = false;\n\t inFringe = compareFringe(c1, queue2); //see if intersect or not\n\t \n\t \n\t // compare current point to the queue2 fringe. If not in fringe\n\t if(inFringe) {\n\t \t //we have found the duplicate \n\t \t System.out.println(\"duplicate\");\n\t \t intersect = c1;\n\t\t System.out.println(\"Intersect is :\"+c1.x+\",\"+c1.y);\n\t\t visit1[c1.x][c1.y]=current1.prev; //set prev node or where we came from\n\t\t \n\t\t System.out.println(\"We have reached our goal!\");\n\t\t \n\t\t if(current2 != null) {\n\t\t\t\t\t //so long as paths have values, add length and return\n\t\t return current1.pathTotal+current2.pathTotal;\n\t\t }else {\n\t\t\t\t\t //else return only one path \n\t\t \t return current1.pathTotal;\n\t\t }\n\t }\n\t\t\t\t//this is getting the neighbors, same as BFS\n\t \n\t int row1 = 0;\n\t int col1 = 0;\n\t \n\t for (int i = 0; i < 4; i++) { \n\t row1= c1.x + rowNum1[i]; \n\t col1 = c1.y + colNum1[i]; \n\t //grab neighbor of current\n\t if (cellValid(row1, col1) && map[row1][col1] == 1 && !visited[row1][col1]){ \n\t \t \n\t // mark cell as visited and enqueue it \n\t visited[row1][col1] = true; //we visited the node so mark it\n\t visit1[row1][col1] = new coordinate(c1.x, c1.y); //set prev as current coord\n\n\t QueueNode Adjcell = new QueueNode(new coordinate(row1, col1), current1.pathTotal + 1, new coordinate(row1-rowNum1[i], col1-colNum1[i])); \n\t queue1.add(Adjcell); //make it a queueNode to add to q1 for first path\n\t }else if(cellValid(row1, col1) && map[row1][col1] == 1 && (visited[row1][col1]&&visit2[row1][col1]!=null)){\n\t \t // System.out.println(\"already visited\"+row1+\",\"+col1); \n\t\t\t\t //check if already visited and valid (not off grid) and = 1 so we can take path -- \n\t\t\t\t //if so, this means we found intersect\n\t\t\t\t //make sure node has been visited in other path to guarantee it is intersect\n\t \t intersect=new coordinate(row1,col1); //set intersect\n\t \t visit1[intersect.x][intersect.y]=new coordinate(c1.x, c1.y); //set where we came from\n\t \t //current1.pathTotal++;\n\t \t printfin(visit1, visit2); //used to print final path -- set map\n \n int nodesExplored1 = 0;\n int nodesExplored2 = 0;\n for(coordinate coor : pathHold1){\n nodesExplored1++;\n }\n for(coordinate coor : pathHold2){\n nodesExplored2++;\n }\n\t\t\t\t \n\t\t\t\t //get number of nodes expanded in each path, add together\n\n int fin = nodesExplored1+nodesExplored2; //this is final explored nodes in each path\n System.out.println(\"Nodes explored: \" + fin);\n \n\t \t return pathsize; //return total pathsize\n\t \t //break;\n\t }\n\t \n\t \n\t } \n\t //once all of the neighbors have been visited, dequeue from queue 1 in path 1\n\t queue1.remove(); \n\t pathHold1.add(c1); //add to explored\n\t \n\t }\n\t \t//now to the same in path2 from (dim-1, dim-1) as src2\n\t \tif(!queue2.isEmpty()) {\n\t \t\t\n\t \t\t current2 = queue2.peek(); // this is n\n\t c2 = current2.point;\n\t \t\t visited[c2.x][c2.y]=true;\n\t boolean inFringe = false;\n\t inFringe = compareFringe(c2, queue1);\n\t \n\t // compare current point to the queue2 fringe. If not in fringe\n\t if(inFringe) {\n\t \t //we have found the duplicate \n\t \t System.out.println(\"duplicate\");\n\t \t intersect = c2;\n\t\t // System.out.println(\"Intersect is :\"+c2.x+\",\"+c2.y);\n\t\t visit2[c2.x][c2.y]=current2.prev;\n\t\t \n\t\t System.out.println(\"We have reached our goal!\");\n\t\t \n\t\t \n\t\t if(current1 != null) {\n\t\t\t return current1.pathTotal+current2.pathTotal;\n\t\t\t }else {\n\t\t\t \t return current2.pathTotal;\n\t\t\t }\n\t }\n\t \n\t \t// get neighbors\n\t int row2 = 0;\n\t int col2 = 0;\n\t \n\t for (int i = 0; i < 4; i++) { \n\t row2= c2.x + rowNum2[i]; \n\t col2 = c2.y + colNum2[i]; \n\t \n\t \n\t if (cellValid(row2, col2) && map[row2][col2] == 1 && !visited[row2][col2]){ \n\t \t \n\t // mark cell as visited and enqueue it \n\t visited[row2][col2] = true; \n\t visit2[row2][col2] = new coordinate(c2.x, c2.y);\n\n\t QueueNode Adjcell2 = new QueueNode(new coordinate(row2, col2), current2.pathTotal + 1, new coordinate(row2-rowNum2[i], col2-colNum2[i])); \n\t queue2.add(Adjcell2);\n\t }else if(cellValid(row2, col2) && map[row2][col2] == 1 && (visited[row2][col2]&&visit1[row2][col2]!=null)){\n\t \t \n\t \t intersect=new coordinate(row2,col2);\n\t \t \n\t \t visit2[intersect.x][intersect.y]=new coordinate(c2.x, c2.y);\n\t \n\t \n\t printfin(visit1, visit2);\n\t int nodesExplored1 = 0;\n int nodesExplored2 = 0;\n for(coordinate coor : pathHold1){\n nodesExplored1++;\n }\n for(coordinate coor : pathHold2){\n nodesExplored2++;\n }\n\n int fin = nodesExplored1+nodesExplored2;\n System.out.println(\"Nodes explored: \" + fin);\n\t \t return pathsize;\n\t \t \n\t }\n\t \n\t } \n\t //once all of the neighbors have been visited, dequeue \n\t queue2.remove(); \n\t pathHold2.add(c2);\n\t \t\t\n\t \t}\n\n\t }\n \n int nodesExplored1 = 0;\n int nodesExplored2 = 0;\n for(coordinate coor : pathHold1){\n nodesExplored1++;\n }\n for(coordinate coor : pathHold2){\n nodesExplored2++;\n }\n\n int fin = nodesExplored1+nodesExplored2;\n System.out.println(\"Nodes explored: \" + fin);\n\t //if here, means no path was found\n\t return -1;\n\t \n\t }", "public void breadthFirstSearch(int vertexIndex) {\n Queue<Integer> queue = new LinkedList<Integer>();\n vertexList[vertexIndex].wasVisited = true;\n displayVertex(vertexIndex);\n int unvisitedIndex;\n do {\n\n do {\n unvisitedIndex = getAdjacentUnvisitedVertexIndex(vertexIndex);\n if(unvisitedIndex != -1) {\n vertexList[unvisitedIndex].wasVisited = true;\n displayVertex(unvisitedIndex);\n queue.add(unvisitedIndex);\n\n }\n } while(unvisitedIndex != -1);\n if(!queue.isEmpty()) {\n vertexIndex = queue.remove();\n\n }\n\n } while(!queue.isEmpty());\n\n for (int i = 0; i < vertexCount; i++) {\n vertexList[i].wasVisited = false;\n\n }\n }" ]
[ "0.5818953", "0.5770357", "0.5750626", "0.57081795", "0.5704773", "0.5627888", "0.5601473", "0.5551523", "0.55490315", "0.5542918", "0.553044", "0.54596597", "0.5458822", "0.5423115", "0.5418548", "0.5401184", "0.5400057", "0.53891003", "0.5368308", "0.5367328", "0.5366148", "0.5363928", "0.533387", "0.532265", "0.530549", "0.5285511", "0.52801657", "0.5275433", "0.52753276", "0.52447474", "0.5217992", "0.5206521", "0.5196806", "0.5191457", "0.5189587", "0.51826024", "0.5182276", "0.51806384", "0.5178495", "0.51444364", "0.5144068", "0.51148474", "0.51080585", "0.5102762", "0.5094413", "0.5090466", "0.5077117", "0.5073863", "0.50665015", "0.50663865", "0.50662774", "0.50652975", "0.50597465", "0.50585705", "0.5057004", "0.50484943", "0.50480574", "0.5040236", "0.5018986", "0.5017906", "0.5015983", "0.5001682", "0.49974617", "0.49891847", "0.49884138", "0.49881217", "0.49827367", "0.49818397", "0.49818125", "0.4981723", "0.49778062", "0.4976012", "0.49744195", "0.49640894", "0.49587572", "0.49568388", "0.49516433", "0.49421987", "0.49410307", "0.4937216", "0.49368218", "0.49363872", "0.49261785", "0.49213928", "0.4918262", "0.49035457", "0.49006057", "0.489983", "0.48983812", "0.48967755", "0.48962143", "0.4893346", "0.48918882", "0.48894697", "0.4882519", "0.48815608", "0.48751104", "0.4865923", "0.48595873", "0.48573148" ]
0.6956993
0
sends the user to the Wikipedia site after clicking on the white circle next to BestFirstSearch The link is an information about the BestFirstSearch algorithm that can be used to solve the maze
public void bestInfo(ActionEvent actionEvent) { try { Desktop.getDesktop().browse(new URL("https://en.wikipedia.org/wiki/Best-first_search").toURI()); } catch (IOException e) { e.printStackTrace(); } catch (URISyntaxException e) { e.printStackTrace(); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void searchNext(CrawlingSession executor, Link link) {\n HTMLLinkExtractor htmlLinkExtractor = HTMLLinkExtractor.getInstance();\n// htmlLinkExtractor.setWorking(link);\n \n Source source = CrawlingSources.getInstance().getSource(link.getSourceFullName());\n if(source == null) return;\n \n SessionStore store = SessionStores.getStore(source.getCodeName());\n if(store == null) return;\n\n List<Link> collection = htmlLinkExtractor.getLinks(link, /*link.getSource(),*/ pagePaths);\n// List<Link> collection = htmlLinkExtractor.getLinks(srResource);\n List<Link> nextLinks = createNextLink(link, collection);\n if(nextLinks.size() < 1) return;\n if(userPaths == null && contentPaths == null) {\n executor.addElement(nextLinks, link.getSourceFullName());\n return;\n }\n \n \n if(nextLinks.size() < 2) {\n executor.addElement(nextLinks, link.getSourceFullName());\n }\n \n// long start = System.currentTimeMillis();\n \n int [] posts = new int[nextLinks.size()];\n for(int i = 0; i < nextLinks.size(); i++) {\n try {\n posts[i] = PageDownloadedTracker.searchCode(nextLinks.get(i), true);\n } catch (Throwable e) {\n posts[i] = -1;\n LogService.getInstance().setThrowable(link.getSourceFullName(), e);\n// executor.abortSession();\n// return;\n }\n }\n \n int max = 1;\n for(int i = 0; i < posts.length; i++) {\n if(posts[i] > max) max = posts[i];\n }\n \n// System.out.println(\" thay max post la \"+ max);\n \n List<Link> updateLinks = new ArrayList<Link>();\n for(int i = 0; i < posts.length; i++) {\n if(posts[i] >= max) continue;\n updateLinks.add(nextLinks.get(i));\n }\n \n// long end = System.currentTimeMillis();\n// System.out.println(\"step. 4 \"+ link.getUrl()+ \" xu ly cai ni mat \" + (end - start));\n \n executor.addElement(updateLinks, link.getSourceFullName());\n \n /*int minPost = -1;\n Link minLink = null;\n List<Link> updateLinks = new ArrayList<Link>();\n for(int i = 0; i < nextLinks.size(); i++) {\n Link ele = nextLinks.get(i);\n int post = 0;\n try {\n post = PostForumTrackerService2.getInstance().read(ele.getAddressCode());\n } catch (Exception e) {\n LogService.getInstance().setThrowable(link.getSource(), e);\n }\n if(post < 1) {\n updateLinks.add(ele);\n continue;\n } \n\n if(minPost < 0 || post < minPost){\n minLink = ele;\n minPost = post; \n } \n }\n\n if(minLink != null) updateLinks.add(minLink);\n executor.addElement(updateLinks, link.getSource());*/\n }", "public void ClickSearchOnline() throws InterruptedException {\n\n searchOnline.click();\n //sameOriginAndDestination();\n\n\n }", "public void BFSInfo(ActionEvent actionEvent)\n {\n try {\n Desktop.getDesktop().browse(new URL(\"https://en.wikipedia.org/wiki/Breadth-first_search\").toURI());\n } catch (IOException e) {\n e.printStackTrace();\n } catch (URISyntaxException e)\n {\n e.printStackTrace();\n }\n }", "private void showWebResultForNode(IndexNode node)\n {\n if(node == null) return;\n \n final int MAX_CHARS = 25; \n JPanel panel = new JPanel(new GridLayout(7, 2));\n \n panel.add(new JLabel(\"URL\"));\n panel.add(new JLabel(limitString(node.getURL(), MAX_CHARS)));\n panel.add(new JLabel(\"Parent URL\"));\n panel.add(new JLabel(limitString(node.getParent(), MAX_CHARS)));\n panel.add(new JLabel(\"Title\"));\n panel.add(new JLabel(limitString(node.getTitle(), MAX_CHARS)));\n panel.add(new JLabel(\"Description\"));\n panel.add(new JLabel(limitString(node.getDescription(), MAX_CHARS + 10)));\n panel.add(new JLabel(\"Last updated\"));\n panel.add(new JLabel(limitString(node.getLastUpdated().toString(), MAX_CHARS + 10)));\n panel.add(new JLabel(\"Page rank\"));\n panel.add(new JLabel(limitString(\"\" + node.getRank(), 12)));\n \n JButton openInBrowser = new JButton(\"Open in browser\");\n JButton copyClipboard = new JButton(\"Copy to clipboard\");\n openInBrowser.setIcon(new ImageIcon(webIconImage));\n copyClipboard.setIcon(new ImageIcon(clipboardImage));\n panel.add(openInBrowser);\n panel.add(copyClipboard);\n \n ActionListener listener = (ActionEvent e) -> \n {\n Object src = e.getSource();\n \n //Open page at URL\n if(src == openInBrowser)\n openPage(node.getURL());\n \n //Copy URL to clipboard\n else if(src == copyClipboard)\n copyToClipboard(node.getURL());\n };\n \n openInBrowser.addActionListener(listener);\n copyClipboard.addActionListener(listener);\n \n\n \n panel.setBorder(BorderFactory.createEmptyBorder(15, 15, 15, 15));\n JDialog modal = new JDialog(frame);\n modal.getContentPane().add(panel);\n modal.setLocation(frame.getWidth() - panel.getSize().width, frame.getHeight() / 2 - panel.getSize().height);\n modal.setTitle(\"Address Data\");\n modal.pack();\n \n modal.addWindowListener(new WindowAdapter()\n {\n @Override\n public void windowClosing(WindowEvent e)\n {\n resultsTable.clearSelection();\n modalOpen = false;\n }\n });\n \n modal.setVisible(true);\n }", "public static void main(String[] args) throws IOException {\r\n\t\t\r\n // some example code to get you started\r\n\r\n\t\tString url = \"https://en.wikipedia.org/wiki/Java_(programming_language)\";\r\n\t\tElements paragraphs = wf.fetchWikipedia(url);\r\n\t\tString baseUrl = \"https://en.wikipedia.org\";\r\n\t\tString location = \"\";\r\n\t\tList<String> visited = new ArrayList<>();\r\n\t\tElement firstPara = paragraphs.get(0);\r\n\t\tboolean notFound = true;\r\n\t\tboolean first = false;\r\n\t\tint i = 0;\r\n\t\tIterable<Node> iter = new WikiNodeIterable(firstPara);\r\n\t\tvisited.add(url);\r\n\t\twhile (notFound && i < 7) {\r\n\t\t\tfor (Node node: iter) {\r\n\t\t\t\tif (node instanceof Element) {\r\n\t\t\t\t\tElement e2 = (Element) node;\r\n\t\t\t\t\tString e2txt = e2.text();\r\n\t\t\t\t\tElements e = e2.children();\r\n\t\t\t\t\tfor (Node n : e) {\r\n\t\t\t\t\t\tif (n instanceof Element) {\r\n\t\t\t\t\t\t\tElement e3 = (Element) n;\r\n\t\t\t\t\t\t\tif (!first) {\r\n\t\t\t\t\t\t\t\tif (e3.tag().toString().equals(\"a\")) {\r\n\t\t\t\t\t\t\t\t\tif (e2txt.indexOf(\"(\") < e2txt.indexOf(e3.text()) && e2txt.indexOf(\")\") > e2txt.indexOf(e3.text())) {\r\n\r\n\t\t\t\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\t\t\t\tfirst = true;\r\n\t\t\t\t\t\t\t\t\t\tString str = e3.toString();\r\n\t\t\t\t\t\t\t\t\t\tString[] arr = str.split(\" \");\r\n\t\t\t\t\t\t\t\t\t\tlocation = arr[1].substring(6, arr[1].length() - 1);\r\n\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t\tif (!first) {\r\n\t\t\t\t\t\tSystem.out.println(\"No links found, exiting.\");\r\n\t\t\t\t\t\treturn;\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tparagraphs = wf.fetchWikipedia(baseUrl + location);\r\n\t\t\titer = new WikiNodeIterable(paragraphs.get(0));\r\n\t\t\tfirst = false;\r\n\t\t\tif (visited.contains(baseUrl + location)) {\r\n\t\t\t\tSystem.out.println(\"Links go in a loop, exiting\");\r\n\t\t\t\treturn;\r\n\t\t\t}\r\n\t\t\tvisited.add(baseUrl + location);\r\n\t\t\ti++;\r\n\t\t\tif (location.substring(6).equals(\"Philosophy\")) {\r\n\t\t\t\tnotFound = false;\r\n\t\t\t\tSystem.out.println(\"Philosophy found in \" + i + \" jumps\");\r\n\t\t\t}\r\n }\r\n System.out.println(visited);\r\n\t}", "@Test(priority = 1)\n\n public void test_Search_Appear_WikiLink() {\n\n resultsPage.clickWikiResult();\n\n // Go the next page\n// wikiPage = new WikiPage(driver);\n\n //Wait until QA Wikipedia page is loaded\n WebDriverWait wait = new WebDriverWait(driver, 10);\n wait.until(ExpectedConditions.elementToBeClickable(By.className(\"noprint\")));\n\n //Verify the URL is wiki URL\n String URL = driver.getCurrentUrl();\n Assert.assertEquals(URL, \"https://en.wikipedia.org/wiki/Quality_assurance\" );\n\n }", "public void performSearch() {\n final String url = String.format(BING_SEARCH_URL, Words.getRandomWord(), Words.getRandomWord());\n\n //open page with custom data\n openWebPage(url, \"Search url: \" + url);\n }", "public void DFSInfo(ActionEvent actionEvent)\n {\n try {\n Desktop.getDesktop().browse(new URL(\"https://en.wikipedia.org/wiki/Depth-first_search\").toURI());\n } catch (IOException e) {\n e.printStackTrace();\n } catch (URISyntaxException e)\n {\n e.printStackTrace();\n }\n }", "public static void main(String[] args) throws IOException {\n\t\t\n ArrayList<String> visited = new ArrayList<String>();\n\n\t\tString start = \"https://en.wikipedia.org/wiki/Java_(programming_language)\";\n String finish = \"https://en.wikipedia.org/wiki/Philosophy\";\n String url = start;\n\n for (int i = 0; i < 15; i++) {\n\n if (visited.contains(url)) {\n return;\n }\n else {\n visited.add(url); \n }\n\n Elements paragraphs = fetcher.fetchWikipedia(url);\n Element link = searchPage(paragraphs);\n\n if (link == null) {\n System.err.println(\"No links on this page...\");\n return;\n }\n\n url = link.attr(\"abs:href\");\n System.out.println(\"currently on: \" + url);\n \n if (url.equals(finish)) {\n System.out.println(\"found it!\");\n break;\n }\n }\n\t}", "HtmlPage clickSiteLink();", "public static void liveDemo() {\n Scanner in = new Scanner( System.in );\n float srcTank1, srcTank2, destTank;\n int alternetPaths;\n Graph mnfld = new Graph();\n boolean runSearch = true;\n\n //might need to limit query results, too large maybe?\n //newnodes = JDBC.graphInformation(); //returns arraylist of nodes\n //mnfld.setPipes(newnodes); //set nodes to the manifold\n //JDBC.insertConnections(mnfld);\n\n//\t\t /*\n//\t\t\tfor (int i = 0; i < newnodes.length(); i++) { //length might be wrong\n//\t\t\t\t//need to look for way to add edges by looking for neighbor nodes i think\n//\t\t\t\t//loop through nodes and create Edges\n//\t\t\t\t//might need new query\n//\t\t\t\tnewedges.addEdge(node1,node2,cost);\n//\t\t\t}\n//\n//\t\t\tmnfld.setConnections(newedges);\n//\n//\t\t\tup to this point, graph should be global to Dijkstra and unused.\n//\t\t\tloop until user leaves page\n//\t\t\tget input from user for tanks to transfer\n//\t\t\tfind shortest path between both tanks\n//\t\t\tend loop\n//\t\t\tthis will change depending how html works so not spending any time now on it\n//\t\t*/\n //shortestPath.runTest();\n\n shortestPath.loadGraph( mnfld );\n while (runSearch) {\n // Gets user input\n System.out.print( \"First Source Tank: \" );\n srcTank1 = in.nextFloat();\n System.out.print( \"Second Source Tank: \" );\n srcTank2 = in.nextFloat();\n System.out.print( \"Destination Tank: \" );\n destTank = in.nextFloat();\n System.out.print( \"Desired Number of Alternate Paths: \" );\n alternetPaths = in.nextInt();\n\n // Prints outputs\n Dijkstra.resetCosts( mnfld );\n System.out.println( \"True shortest with alt paths\" );\n Dijkstra.findAltPaths( mnfld, alternetPaths, srcTank1, destTank );\n mnfld.restoreDroppedConnections();\n\n Dijkstra.resetCosts( mnfld );\n System.out.println( \"Lineup Considering used connections\" );\n Dijkstra.findMinPaths( mnfld, mnfld.getPipe( srcTank1 ), true );\n mnfld.getPipe( destTank ).printLine();\n mnfld.restoreDroppedConnections();\n\n Dijkstra.resetCosts( mnfld );\n System.out.println( \"Lineup Considering only open connections\" );\n Dijkstra.findMinPaths( mnfld, mnfld.getPipe( srcTank1 ), false );\n mnfld.getPipe( destTank ).printLine();\n mnfld.restoreDroppedConnections();\n\n Dijkstra.resetCosts( mnfld );\n System.out.println( \"Merge Lineup\" );\n Dijkstra.findMinPaths( mnfld, mnfld.getPipe( srcTank1 ) );\n System.out.println( \"\\t Original Lineup: \" );\n mnfld.getPipe( destTank ).printLine();\n System.out.println( \"\\t Merged Lineup: \" );\n Dijkstra.mergePaths( mnfld, srcTank2, mnfld.getPipe( destTank ).getPath(), mnfld.getPipe( destTank ) );\n System.out.print( \"\\nRun another search [1:Yes, 0:No] :: \" );\n if (in.nextInt() == 0) runSearch = false;\n else System.out.println( \"\\n\\n\\n\" );\n }\n\n\n }", "private void searchWeb()\n {\n searchWeb = true;\n search();\n }", "HtmlPage clickLink();", "public static void main(String[] args) throws IOException {\n Deque<String> urlsToVisit = new ArrayDeque<String>();\n // Keep track of which URLs we have visited, so we don't get ourselves stuck in a loop.\n List<String> visitedUrls = new ArrayList<String>();\n // Keep track of how we got to each page, so that we can find our trace back to the BEGIN_URL.\n Hashtable<String, String> referrers = new Hashtable<String, String>();\n boolean pathFound = false;\n\n // Begin with the BEGIN_URL\n urlsToVisit.push(BEGIN_URL);\n\n while(!urlsToVisit.isEmpty() && !pathFound) {\n String currentUrl = urlsToVisit.pop();\n visitedUrls.add(currentUrl);\n\n Elements paragraphs = wf.fetchWikipedia(BASE_URL + currentUrl);\n List<String> pageUrls = new ArrayList<String>();\n\n for (Element p : paragraphs) {\n pageUrls.addAll(getLinksFromParagraph(p));\n }\n\n // Reverse the order of all page urls so that when we're done pushing all the URLS\n // to the stack, the first URL in the page will be the first URL in the current page.\n Collections.reverse(pageUrls);\n\n // Add all the URLs to the list of URLs to visit.\n for (String newUrl : pageUrls) {\n if(!visitedUrls.contains(newUrl)) {\n urlsToVisit.push(newUrl);\n // Record how we ended up at newUrl.\n referrers.put(newUrl, currentUrl);\n\n // Check if one of the links in this page is the END_URL; which means we'll be done!\n if (newUrl.equals(END_URL)) {\n pathFound = true;\n }\n }\n }\n }\n\n if (pathFound) {\n System.out.println(\"=================\");\n System.out.println(\"Path found!\");\n System.out.println(\"=================\");\n\n // Back trace how we ended up at END_URL.\n String backtraceUrl = END_URL;\n System.out.println(backtraceUrl);\n while(backtraceUrl != BEGIN_URL) {\n String referrerUrl = referrers.get(backtraceUrl);\n System.out.println(referrerUrl);\n backtraceUrl = referrerUrl;\n }\n } else {\n System.out.println(\"=================\");\n System.out.println(\"No path found :(\");\n System.out.println(\"=================\");\n }\n }", "String nextLink();", "public static void main(String[] args) {\nScanner keyboard= new Scanner(System.in);\r\nString link;\r\nString input;\r\nint count=0;\r\nint start;\r\nint finish;\r\n//href+6\r\n//html\r\nSystem.out.println(\"Enter a URL to read from (include the \\\"http://\\\" or \\\"https://\\\"), or type Q to quit.\");\r\ninput=keyboard.next();\r\nif (input.contains(\"q\")||input.contains(\"Q\")){\r\nSystem.out.println(\"Goodbye!\");\r\n\tSystem.exit(0);\r\n}\r\n//link=keyboard.next();\r\nString webpage=Fetch.fetchURL(input);\r\n//System.out.println(webpage);\r\n//if()\r\n\r\nwhile(input!=(\"1)\")){\r\n\t//index of\r\nSystem.out.println(\"Enter the type of link to look for (1-5)\\n1. Images (PNG, JPG, BMP, GIF)\\n2. Documents (DOC, TXT, PDF)\\n3. Hypertext(HTM, HTML)\\n4. All Links\\n5. Quit\");\r\nString inputTwo=keyboard.next();\r\n\r\nif(inputTwo.equals(\"5\")){\r\n\tSystem.out.print(\"Goodbye!\");\r\n\tSystem.exit(0);\r\n\t}\r\n\r\nif (inputTwo.equals(\"2\")){\r\n\r\n\tSystem.out.println(\"Searching \" + input);\r\n\tSystem.out.println(\"Searching for: documents\\n\");\r\n\tint runWhile=0;\r\n\t\r\n\twhile(runWhile==0)\r\n\t{\r\n\tstart=webpage.indexOf(\"href=\");\r\n\twebpage=webpage.substring(start+6);\r\n\tfinish=webpage.indexOf(\"\\\"\");\r\n\tlink=webpage.substring(0, finish);\r\n\t//System.out.println(link);\r\n\tif(link.contains(\".doc\")||link.contains(\".pdf\")||link.contains(\".txt\")){\r\n\t\tcount++;\r\n\tSystem.out.println(link);\r\n\t}\r\n\t\r\n\tif (webpage.contains(\"href=\"))\r\n\t\trunWhile=0;\r\n\t//count++;\r\n\t\r\n\telse\r\n\t\trunWhile=1;\r\n\t\r\n\t}\r\n\tSystem.out.println(\"\\nNumber of Links Found :\" + count);\r\n\t\r\n\tif (webpage.contains(\"href\"))\r\n\t\tSystem.out.println(webpage);\r\n\telse\r\n\t\t\tSystem.exit(0);\r\n\t\r\n\t}\r\nelse if (inputTwo.equals(\"1\")){\r\n\tSystem.out.println(\"Seaching \"+ input);\r\n\tSystem.out.println(\"Searching for: images\\n\");\r\n\t int runWhile=0;\r\n\t while (runWhile==0){\r\n\t\t start=webpage.indexOf(\"href=\");\r\n\t\t webpage=webpage.substring(start+6);\r\n\t\t finish=webpage.indexOf(\"\\\"\");\r\n\t\t link=webpage.substring(0,finish);\r\n\t\t if(link.contains(\".png\")||link.contains(\".jpg\")||link.contains(\".bmp\")||link.contains(\".gif\")){\r\n\t\t\t \tcount++;\r\n\t\t\t System.out.println(count + \". \" + link);\r\n\t\t }\r\n\t\t if (webpage.contains(\"href=\"))\r\n\t\t\t runWhile=0;\r\n\t\t else\r\n\t\t\t runWhile=1;\r\n\t }\r\n\t System.out.println(\"\\nNumber of Links Found: \" + count);\r\n\t if(webpage.contains(\"href\"))\r\n\t\t System.out.println(webpage);\r\n\t else\r\n\t\t System.exit(0);\r\n\r\n}\r\n\t else if (inputTwo.equals(\"3\")){\r\n\t\t System.out.println(\"Searching \"+ input);\r\n\t\t System.out.println(\"Searching for: hypertext\\n\");\r\nint runWhile=0;\r\nwhile (runWhile==0){\r\n\t\r\n\t\r\n\tstart=webpage.indexOf(\"href=\");\r\n\twebpage=webpage.substring(start+6);\r\n\tfinish=webpage.indexOf(\"\\\"\");\r\n\tlink=webpage.substring(0,finish);\r\n\tif(link.contains(\".htm\")||link.contains(\".html\")){\r\n\t\tcount++;\r\n\t\tSystem.out.println(count + \". \" + link);\r\n\t}\r\n\tif (webpage.contains(\"href=\"))\r\n\t\trunWhile=0;\r\n\t\telse\r\n\t\t\trunWhile=1;\r\n}\r\nSystem.out.println(\"\\n Number of links found: \" + count);\r\n\t }\r\n\t \r\n\t\t\r\n\t \r\n\t else if (inputTwo.equals(\"4\")){\r\n\tSystem.out.println(\"Searching \"+ input);\r\n\tSystem.out.println(\"Searcing for: all links\\n\");\r\n\tint runWhile=0;\r\n\twhile(runWhile==0){\r\n\t\tstart=webpage.indexOf(\"href=\");\r\n\t\twebpage=webpage.substring(start +6);\r\n\t\tfinish=webpage.indexOf(\"\\\"\");\r\n\t\tlink=webpage.substring(0,finish);\r\n\t\tif(link.contains(\".htm\")||link.contains(\".html\")||link.contains(\".gif\")||link.contains(\".jpg\")||link.contains(\".doc\")||link.contains(\".pdf\")||link.contains(\".bmp\")||link.contains(\".txt\")||link.contains(\".edu\")||link.contains(\".com\")||link.contains(\".gov\")||link.contains(\".net\")||link.contains(\".org\"))\r\n\t\t\tcount++;\r\n\t\t\tSystem.out.println(count + \". \" +link);\r\n\t\tif(webpage.contains(\"href=\"))\r\n\t\t\trunWhile=0;\r\n\t\telse\r\n\t\t\trunWhile=1;\r\n\t\t\r\n\t}\r\n\tSystem.out.println(\"Number of Links Found: \" +count);\r\n}\r\n\t else if (webpage.contains(\"$error$\"))\r\n\t\t System.out.println(webpage);\r\n\r\n\r\n\t\t\r\n\t}\r\n\r\n\t\r\n\r\n\r\n\t}", "private void search() {\n String result = \"<body bgcolor=\\\"black\\\"> \" +\n \"<font color=\\\"#009933\\\"\";\n gs.setQueryString(txtQueury.getText());\n try {\n gsr = gs.doSearch();\n txtCountRes.setText(\"\" + gsr.getEstimatedTotalResultsCount());\n gsre = gsr.getResultElements();\n\n for (int i = 0; i < gsre.length; i++) {\n if (googleTitle.isSelected()) {\n result +=\n \"<font color=\\\"red\\\"><u><b>Title: </u></b><a href=\\\"\" +\n gsre[i].getURL() + \"\\\">\"\n + gsre[i].getTitle() + \"</a><br>\" +\n \"<br><b>URL: \" +\n gsre[i].getHostName() + gsre[i].getURL() +\n \"</b></font><br>\";\n }\n if (googleSummary.isSelected()) {\n result += \"<u><b>Summary: </u></b>\" +\n gsre[i].getSummary() +\n \"<br>\";\n }\n if (googleSnippet.isSelected()) {\n result += \"<u><b>Snippet: </u></b>\" +\n gsre[i].getSnippet() +\n \"<br>\";\n }\n if (googleHostName.isSelected()) {\n result += \"<u><b>Host: </u></b>\" + gsre[i].getHostName() +\n \"<br>\";\n }\n if (googleDirectoryTitle.isSelected()) {\n result += \"<u><b>Directory Title: </u></b>\" +\n gsre[i].getDirectoryTitle() + \"<br>\";\n }\n if (googleCachedSize.isSelected()) {\n result += \"<u><>Cached Size: </u></b>\" +\n gsre[i].getCachedSize() + \"<br>\";\n }\n result += \"<br>\";\n }\n } catch (GoogleSearchFault e) {\n msg(\"Erreur d'exécution \" + e.getMessage(), \"Error\",\n JOptionPane.ERROR_MESSAGE);\n }\n\n //affichage de la recherche\n editor.setText(result);\n }", "private void goSearch() {\n\t\tThread t = new Thread(this);\n\t\tt.start();\n\t}", "public void startSearch() {\n if (solving) {\n Alg.Dijkstra();\n }\n pause(); //pause state\n }", "public void run()\r\n {\n\ttopLevelSearch=FIND_TOP_LEVEL_PAGES;\r\n\ttopLevelPages=new Vector();\r\n\tnextLevelPages=new Vector();\r\n \r\n\t// Check to see if a proxy is being used. If so then we use IP Address rather than host name.\r\n\tproxyDetected=detectProxyServer();\r\n\t \r\n\tstartSearch();\r\n \r\n\tapp.enableButtons();\r\n\tapp.abort.disable();\r\n \r\n\tif(hitsFound == 0 && pageOpened == true)\r\n\t app.statusArea.setText(\"No Matches Found\");\r\n else if(hitsFound==1)\r\n\t app.statusArea.setText(hitsFound+\" Match Found\");\r\n else app.statusArea.setText(hitsFound+\" Matches Found\");\r\n }", "public String crawl() throws IOException {\n // FILL THIS IN!\n if(queue.isEmpty()){\n \treturn null;\n }\n String url = queue.remove();\n \tSystem.out.println(\"crawling \"+url);\n Elements paragraphs;\n \tif(index.isIndexed(url))\n \t{\n \t\tSystem.out.println(url+\" is already indexed\");\n \t\treturn null;\n \t}\n \tparagraphs = wf.fetchWikipedia(url);\n index.indexPage(url,paragraphs);\n queueInternalLinks(paragraphs);\t \n\t\treturn url;\n\t}", "public static void main(String[] args) throws InterruptedException {\n\r\n\t\t\r\n\t\tSystem.setProperty(\"webdriver.chrome.driver\",\"F:\\\\Selenium\\\\chromedriver_win32\\\\chromedriver.exe\");\r\n\t\t\t\t\r\n\t\t\t\tWebDriver driver = new ChromeDriver();\r\n\t\tdriver.get(\"https://www.google.co.in/\");\r\n\t\tWebElement t = driver.findElement(By.cssSelector(\"#tsf > div:nth-child(2) > div > div.RNNXgb > div > div.a4bIc > input\"));\r\n\t\t\r\n\t\tt.sendKeys(\"yify\");\r\n\t\t\tThread.sleep(3000);\r\n\t\t\t\r\n\t\t\tList<WebElement>r = driver.findElements(By.xpath(\"//ul[@role='listbox']//li/descendant::div[@class='sbtc']\"));\r\n\t\t\t\tint y =r.size();\r\n\t\t\t\tSystem.out.println(\"No of suggestion is \" + y);\r\n\t\t\t\t\r\n\t\t\t\tfor (int i=0; i<y; i++)\r\n\t\t\t\t{\r\n\t\t\t\t\tString p = r.get(i).getText();\r\n\t\t\t\t\tSystem.out.println(p);\r\n\t\t\t\t\tif(p.contains(\"yify\"));\r\n\t\t\t\t\t{\r\n\t\t\t\t\t r.get(i).click();\r\n\t\t\t\t\t break;\r\n\t\t\t\t\t}\r\n\t\t\t\t\t\r\n\t\t\t\t}\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t\tList<WebElement> allLinkname = driver.findElements(By.tagName(\"h3\"));\r\n\t\t\r\n\t\r\n\t\t//Print the size of no of linkname present in alllinkname\r\n\t\t\r\n\t\tint size = allLinkname.size();\r\n\t\tSystem.out.println(size);\r\n\t\t\r\n\t\t//Printing there names in console\r\n\t\tfor (WebElement Link : allLinkname) {\r\n\t\t\t\r\n\t\t\tString value = Link.getText();\r\n\t\t\tSystem.out.println(value);\r\n\t\t}\r\n\t\t\r\n\t\tfor(int i =0; i<size; i++)\r\n\t\t{\r\n\t\t\t\r\n\t\t\tString value2 = allLinkname.get(i).getText();\r\n\t\t\tif (value2.equals(\"YTS: The Official Home of YIFY Movies Torrent Download\"))\r\n\t\t\t{\r\n\t\t\t\tallLinkname.get(i).click();\r\n\t\t\t\tbreak;\r\n\t\t\t}\r\n\t\t\t\t\t\r\n\t\t}\r\n\t\t\r\n\t\t//Printing name of yify window\r\n\t\tString yifywindow = driver.getWindowHandle();\r\n\t\tSystem.out.println(yifywindow);\r\n\t\t\r\n\t\t//Click on browse search box text box\r\n\t\tdriver.findElement(By.cssSelector(\"#quick-search-input\")).click();\r\n\t\t\r\n\t\t\r\n\t\t// Storing all tab or window value in allwindow variable\r\n\t\t\r\n\t\tSet<String> allwindow = driver.getWindowHandles();\r\n\t\t// Printing the no of window\r\n\t\tSystem.out.println(allwindow.size());\r\n\t\t\r\n\t\t//Proof that still first window has power\r\n\t\tSystem.out.println(driver.getCurrentUrl());\r\n\t\t\r\n\t\t//Printing the exact values of each window\r\n\t\tSystem.out.println(allwindow);\r\n\t\t\r\n\t\t//Switch to second window\r\n\t\tfor (String child : allwindow) {\r\n\t\t\tif(!child.equals(yifywindow))\r\n\t\t\t{\r\n\t\t\t\tdriver.switchTo().window(child);\r\n\t\t\t\tSystem.out.println(driver.getCurrentUrl());\r\n\t\t\t\tdriver.close();\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\t//Again switch to yify window\r\n\t\tdriver.switchTo().window(yifywindow);\r\n\t\tSystem.out.println(driver.getCurrentUrl());\r\n\t\t\r\n\t\t//closing unwanted popup\r\n\t\t//driver.findElement(By.cssSelector(\"#id5c2a23c1c4close-cross5c2a23c1c4\")).click();\r\n\t\t\r\n\t\t//Click on browse search box text box\r\n\t\tdriver.findElement(By.cssSelector(\"#quick-search-input\")).sendKeys(\"captain marvel\");\r\n\t\t\r\n\t\t\r\n\t\t//driver.findElement(By.cssSelector(\"#quick-search-input\")).click();\r\n\t// driver.findElement(By.cssSelector(\"#quick-search-input\")).sendKeys(Keys.ENTER);\r\n\t\t\r\n\t\r\n\t\t\r\n\t\t\r\n\t\r\n\r\n}", "private static void addSeedURL()\r\n\t{\r\n\t\tSystem.out.println(\"Enter a website to search for keywords.\");\r\n\t\tString userInput = input.nextLine();\r\n\t\t\r\n\t\tif(userInput.length() >= 7 && !(userInput.substring(0, 6).equals(\"https://\")))\r\n\t\t{\r\n\t\t\tuserInput = \"http://\" + userInput;\r\n\t\t\t\r\n\t\t\ttry \r\n\t\t\t{\r\n\t\t\t\tSharedLink.addLink(userInput);\r\n\t\t\t} \r\n\t\t\tcatch (InterruptedException e) \r\n\t\t\t{\r\n\t\t\t\t//do nothing\r\n\t\t\t}\r\n\t\t}\r\n\t}", "void execute(String link) throws CrawlerWorkerException;", "public void buttonClick() {\n\t\tdriver.get(\"https://es.wikipedia.org\");\n\t\tWebElement input = driver.findElement(By.id(\"searchInput\"));\n\t\tinput.sendKeys(\"React\");\n\t\tinput.clear();\n\t\tinput.sendKeys(\"Angular\");\n\t\t\n\t\tWebElement button = driver.findElement(By.id(\"searchButton\"));\n\t\tbutton.click();\n\t}", "@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tThread t = new Thread(){\n\t\t\t\t\tpublic void run(){\n\t\t\t\t\t\tString str = trans.traditionalized(text.getText());\n\t\t\t\t\t\tString searchString=\"\";\n\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\tsearchString = URLEncoder.encode(str,\"GB2312\");\n\t\t\t\t\t\t} catch (UnsupportedEncodingException e) {\n\t\t\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\t\t\te.printStackTrace();\n\t\t\t\t\t\t}\n\t\t\t\t\t\tThread connect = new SearchConnect(searchString,theview);\n\t\t\t\t\t\tconnect.start();\n\t\t\t\t\t}\n\t\t\t\t};\n\t\t\t\tt.start();\n\t\t\t}", "public abstract void clickHelp(FloodItWorld w, ACell topLeft);", "@Override\n\tpublic boolean startSearch() {\n\t\tString str = \"\";\n\t\t\n\t\tDimension d = view.getInit();\n\t\tif (d == null) {\n\t\t\tstr = str + \"Falta la posicion de inicio.\\n\";\n\t\t} else {\n\t\t\ty0 = (int) d.getHeight();\n\t\t\tx0 = (int) d.getWidth();\n\t\t}\n\t\t\n\t\td = view.getGoal();\n\t\tif (d == null) {\n\t\t\tstr = str + \"Falta la posicion de meta.\\n\";\n\t\t} else {\n\t\t\tyf = (int) d.getHeight();\n\t\t\txf = (int) d.getWidth();\n\t\t}\n\t\t\n\t\tif (view.isBreadth()) {\n\t\t\tstrategy = new Breadth();\n\t\t} else if (view.isDepth()) {\n\t\t\tstrategy = new Depth();\n\t\t} else if (view.isAStar()) {\n\t\t\tstrategy = new AStar();\n\t\t\tif (view.isH0()) {\n\t\t\t\theuristic = Horse.H0;\n\t\t\t} else if (view.isH1()) {\n\t\t\t\theuristic = Horse.H1;\n\t\t\t} else if (view.isH2()) {\n\t\t\t\theuristic = Horse.H2;\n\t\t\t} else\n\t\t\t\tstr = str + \"Falta por escoger el tipo de heur’stica.\\n\";\n\t\t} else\n\t\t\tstr = str + \"Falta la estrategia de bœsqueda.\\n\";\n\t\t\n\t\tboard = view.getBoard();\n\t\t\n\t\tif (str.equals(\"\")) {\n\t\t\trootNode = new Node(new Horse(x0,y0,xf,yf, board, heuristic));\n\t\t}\n\t\t\n\t\tif (view.isTree()) {\n\t\t\tif (str.equals(\"\"))\n\t\t\t\tsearch = new Tree(rootNode, strategy);\n\t\t} else if (view.isGraph()) {\n\t\t\tif (str.equals(\"\"))\n\t\t\t\tsearch = new Graph(rootNode, strategy);\n\t\t} else \n\t\t\tstr = str + \"Falta el algoritmo de bœsqueda.\\n\";\n\t\t\n\t\tif (!str.equals(\"\")) {\n\t\t\tview.showError(str);\n\t\t\treturn false;\n\t\t}\n\t\t\n\t\tgoSearch();\n\t\treturn true;\n\t}", "public static void searchAction(TextField input, String URL){\n\t\tString fileName = null;\n\t\ttry {\n\t\t\tfileName = input.getText();\n\t\t\tinput.clear();\n\t\t\tSystem.out.println(\"Fetching url...\");\n\t\t\tURL = FetchURL.fetchFinalURL(fileName);\n\t\t} catch (IOException er) {\n\t\t\tSystem.err.println(\"ERROR: Unable to access website to fetch FCKH and URL; website may be down...\");\n\t\t}\n\t\tfinalActivity(fileName, URL);\n\t}", "final void searchPage(DataInputStream dis,String url)\r\n {\r\n try\r\n\t{\r\n String input; // Raw line read in.\r\n\t String upperCaseInput; // Upper case version of the above\r\n\t String link; // HTML link found\r\n\t String temp; \r\n\t String title=\"\"; // Page Title;\r\n\r\n\t // Read a line at a time.\r\n\t while((input=dis.readLine())!=null)\r\n\t {\r\n\t // Convert to Upper case (makes comparisions easier)\r\n\t\tupperCaseInput=input.toUpperCase();\r\n\t\t// Check for document title\r\n\t\ttemp=parseForTitle(input,upperCaseInput,dis);\r\n\t\t// If a title has been found then remember it. So, that it can displayed on the list box.\r\n\t\tif(temp!=null && temp.length()>0)\r\n\t\t title=temp;\r\n\t //Check for match after title has been found (Don't bother Searching the title though)\r\n\t\tif(title.length()>0 && temp==null)\r\n\t\t checkMatch(input,url,title);\r\n \r\n\t\t// Check to see if this line contains a link\r\n\t\tlink=parseForLink(upperCaseInput,input);\r\n\t\tif(link!=null)\r\n\t\t{\r\n\t\t // Check if the maximum number of pages to search has been reached.\r\n\t\t if(app.getTotalPages()>=maxPages)\r\n\t\t return;\r\n if(topLevelSearch==FIND_TOP_LEVEL_PAGES)\r\n\t\t topLevelPages.addElement(link);\r\n else if(topLevelSearch==SEARCH_TOP_LEVEL_PAGES)\r\n\t\t nextLevelPages.addElement(link);\r\n\t\t else checkLink(link);\t \r\n\t\t}\r\n\t }\r\n }\r\n\tcatch(IOException e){ }\r\n }", "public void ClickSearch() {\r\n\t\tsearch.click();\r\n\t\t\tLog(\"Clicked the \\\"Search\\\" button on the GIS Locator page\");\r\n\t}", "@SuppressWarnings(\"unchecked\")\n\tpublic Indexer crawl (int limit) \n\t{\n\t\n\t\t////////////////////////////////////////////////////////////////////\n\t // Write your Code here as part of Priority Based Spider assignment\n\t // \n\t ///////////////////////////////////////////////////////////////////\n\t\tPQueue q=new PQueue();\n \t\n\t\ttry\n \t{\n\t\t\t final String authUser = \"iiit-63\";\n\t\t\t\tfinal String authPassword = \"MSIT123\";\n\n\t\t\t\tSystem.setProperty(\"http.proxyHost\", \"proxy.iiit.ac.in\");\n\t\t\t\tSystem.setProperty(\"http.proxyPort\", \"8080\");\n\t\t\t\tSystem.setProperty(\"http.proxyUser\", authUser);\n\t\t\t\tSystem.setProperty(\"http.proxyPassword\", authPassword);\n\n\t\t\t\tAuthenticator.setDefault(\n\t\t\t\t new Authenticator() \n\t\t\t\t {\n\t\t\t\t public PasswordAuthentication getPasswordAuthentication()\n\t\t\t\t {\n\t\t\t\t return new PasswordAuthentication(authUser, authPassword.toCharArray());\n\t\t\t\t }\n\t\t\t\t }\n\t\t\t\t);\n\n\t\t\t\tSystem.setProperty(\"http.proxyUser\", authUser);\n\t\t\t\tSystem.setProperty(\"http.proxyPassword\", authPassword);\n \t\tURLTextReader in = new URLTextReader(u);\n \t\t// Parse the page into its elements\n \t\tPageLexer elts = new PageLexer(in, u);\t\t\n \t\tint count1=0;\n \t\t// Print out the tokens\n \t\tint count = 0;\n \t\t\n \t\twhile (elts.hasNext()) \n \t\t{\n \t\t\tcount++;\n \t\t\tPageElementInterface elt = (PageElementInterface)elts.next();\t\t\t \n \t\t\tif (elt instanceof PageHref)\n \t\t\tif(count1<limit)\n \t\t\t{\n \t\t\t\tif(q.isempty())\n \t\t\t\t{\n \t\t\t\t\tq.enqueue(elt.toString(),count);\n\t\t\t\t\t}\n \t\t\t\telse\n \t\t\t\t{\n \t\t\t\t\tif(q.search(elt.toString(),count))\n \t\t\t\t\t{\n \t\t\t\t\t\tq.enqueue(elt.toString(),count);\n \t\t\t\t\t}\n \t\t\t\t}\n \t\t\t\tcount1++;\n \t\t\t\tSystem.out.println(\"link: \"+elt);\n \t\t\t\t\n \t\t\t}\n \t\t}\n \t\tSystem.out.println(\"links retrieved: \"+count1);\n \t\tq.display();\n \t\twhile(limit !=0)\n \t\t{\n \t\t\tObject elt=q.dequeue();\n \t\t\tURL u1=new URL(elt.toString());\n \t\t\tURLTextReader in1= new URLTextReader(u1);\n \t\t\t// Parse the page into its elements\n \t\t\tPageLexer elt1 = new PageLexer(in1, u1);\n \t\t\twhile (elt1.hasNext()) \n \t\t\t{\n \t\t\t\tPageElementInterface elts2= (PageElementInterface)elt1.next();\n \t\t\t\tif (elts2 instanceof PageWord)\n \t\t\t\t{\n \t\t\t\t\tv.add(elts2);\n \t\t\t\t}\n \t\t\t\tSystem.out.println(\"words:\"+elts2);\n \t\t\t} \t\t\t\n\t\t\t\tObjectIterator OI=new ObjectIterator(v);\n\t\t\t\ti.addPage(u1,OI);\n\t\t\t\tfor(int j=0;j<v.size();j++);\n\t\t\t\t{\n\t\t\t\t\tSystem.out.println(\"hello\"+v.get(count));\n\t\t\t\t}\n\t\t\t\tlimit--;\n \t\t}\n \t\t\n \t}\n \tcatch (Exception e)\n \t{\n \t\tSystem.out.println(\"Bad file or URL specification\");\n \t}\n return i;\n\t}", "private void displaySearch() throws JSONException, InterruptedException {\r\n logger.log(Level.INFO, \"\\nPlease enter the name of the club you would \" +\r\n \"like to search for or 'back' to return to initial prompt:\");\r\n \r\n // club name that user searches for\r\n String club = in.nextLine();\r\n \r\n // exit if user chooses to do so, otherwise search database\r\n if (\"back\".equalsIgnoreCase(club))\r\n displayOpen();\r\n else\r\n searchClub(club);\r\n }", "public void crawlAndIndex(String url) throws Exception {\r\n\t\t// TODO : Add code here\r\n\t\tQueue<String> queue=new LinkedList<>();\r\n\t\tqueue.add(url);\r\n\t\twhile (!queue.isEmpty()){\r\n\t\t\tString currentUrl=queue.poll();\r\n\t\t\tif(internet.getVisited(currentUrl)){\r\n\t\t\t\tcontinue;\r\n\t\t\t}\r\n\t\t\tArrayList<String> urls = parser.getLinks(currentUrl);\r\n\t\t\tArrayList<String> contents = parser.getContent(currentUrl);\r\n\t\t\tupdateWordIndex(contents,currentUrl);\r\n\t\t\tinternet.addVertex(currentUrl);\r\n\t\t\tinternet.setVisited(currentUrl,true);\r\n\t\t\tfor(String u:urls){\r\n\t\t\t\tinternet.addVertex(u);\r\n\t\t\t\tinternet.addEdge(currentUrl,u);\r\n\t\t\t\tqueue.add(u);\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t}", "public void search(String url, String searchWord)\n {\n while(this.pagesVisited.size() < MAX_PAGES_TO_SEARCH)\n {\n String currentUrl;\n SpiderLeg leg = new SpiderLeg();\n if(this.pagesToVisit.isEmpty())\n {\n currentUrl = url;\n this.pagesVisited.add(url);\n }\n else\n {\n currentUrl = this.nextUrl();\n }\n leg.crawl(currentUrl); // Lots of stuff happening here. Look at the crawl method in\n // SpiderLeg\n boolean success = leg.searchForWord(searchWord);\n if(success)\n {\n System.out.println(String.format(\"**Success** Word %s found at %s\", searchWord, currentUrl));\n break;\n }\n this.pagesToVisit.addAll(leg.getLinks());\n }\n System.out.println(\"\\n**Done** Visited \" + this.pagesVisited.size() + \" web page(s)\");\n }", "public void run() {\n\t\t\tString html = \"\";\n\t\t\ttry {\n\t\t\t\thtml = HTTPFetcher.fetchHTML(this.url);\n\t\t\t} catch (UnknownHostException e) {\n\t\t\t\tSystem.out.println(\"Unknown host\");\n\t\t\t} catch (MalformedURLException e) {\n\t\t\t\tSystem.out.println(\"MalformedURL\");\n\t\t\t} catch (IOException e) {\n\t\t\t\tSystem.out.println(\"IOException\");\n\t\t\t}\n\t\t\ttry {\n\t\t\t\tif(html != null) {\n\t\t\t\t\tthis.newLinks = LinkParser.listLinks(new URL(this.url), html);\n\t\t\t\t}\n\t\t\t} catch (MalformedURLException e) {\n\t\t\t\tSystem.out.println(\"MalformedURL\");\n\t\t\t}\n\t\t\tif(newLinks != null) {\n\t\t\t\tfor(URL theURL : newLinks) {\n\t\t\t\t\tif(!(urls.contains(theURL))) {\n\t\t\t\t\t\tsynchronized(urls) {\n\t\t\t\t\t\t\turls.add(theURL);\n\t\t\t\t\t\t}\n\t\t\t\t\t\tinnerCrawl(theURL, limit);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tInvertedIndex local = new InvertedIndex();\n\t\t\t\tString no_html = HTMLCleaner.stripHTML(html.toString());\n\t\t\t\tString[] the_words = WordParser.parseWords(no_html);\n\t\t\t\tlocal.addAll(the_words, this.url);\n\t\t\t\tindex.addAll(local);\n\t\t\t}\n\t\t}", "private void viewPage(String club) throws JSONException, InterruptedException {\r\n logger.log(Level.INFO, \"Would you like to view the \" + \r\n club + \" clubpage? (y/n)\");\r\n \r\n // if yes, go to club page\r\n // else return to display prompt\r\n if(\"y\".equalsIgnoreCase(in.nextLine())) {\r\n \t Club clubToView = new Club(club);\r\n \t clubToView.printClubPromptsAndInfo(PolyClubsConsole.user instanceof ClubAdmin);\r\n }\r\n \r\n else \r\n displaySearch(); \r\n }", "public void showBreach();", "public void myConnections(String search) throws Exception\r\n\t{\r\n\t\tCommonMethods.wait(driver,MyConnections);\r\n\t\tCommonMethods.click(MyConnections);\r\n\t\tCommonMethods.wait(driver,searchBox);\r\n\t\tCommonMethods.click(searchBox);\r\n\t\tCommonMethods.wait(driver,input);\r\n\t\tCommonMethods.enter(input, search);\r\n\t\tCommonMethods.wait(driver,searchElement2);\r\n\t\tCommonMethods.click(searchElement2);\r\n//\t\tCommonMethods.clickable(connect);\r\n\t}", "private static String getURL(String link) {\n\t\treturn \"https://en.wikipedia.org/wiki/\" + link;\n\t}", "public void PrimInfo(ActionEvent actionEvent)\n {\n try {\n Desktop.getDesktop().browse(new URL(\"https://en.wikipedia.org/wiki/Prim%27s_algorithm\").toURI());\n } catch (IOException e) {\n e.printStackTrace();\n } catch (URISyntaxException e)\n {\n e.printStackTrace();\n }\n }", "void searchFinished (Search search);", "private static void go2(){\n\t\tString concreateURL = \"http://www.yixinhealth.com/%E5%8C%96%E9%AA%8C%E5%92%8C%E6%A3%80%E6%9F%A5/%E5%BF%83%E7%94%B5%E5%9B%BE/\"; \n\t\tConnection c = Jsoup.connect(concreateURL); \n\t\tc.timeout(10000);\n\t\ttry {\n\t\t\tDocument doc = c.get();\n\t\t\t//System.out.println(doc.html()); \n\t\t\t//System.out.println(doc.getElementById(\"content_area\").html());\n\t\t\t//Element eles = doc.getElementById(\"content_area\");\n\t\t\t//System.out.println(eles.html());\n\t\t\t\n\t\t\t//Below code is for the multiple link page\n\t\t\t//Elements eles2 = eles.getElementsByAttributeValue(\"style\", \"text-align: center;\");\n\t\t\t//System.out.println(eles2.html());\n\t\t\t/*for(Element ele: eles2){\n\t\t\t\tElements link = ele.getElementsByTag(\"a\");\n\t\t\t\t//System.out.println(link.html());\n\t\t\t\tfor (int i=0;i<link.size();i++) {\n\t\t\t\t\tSystem.out.println(link.get(i).attr(\"href\"));\n\t\t\t\t}\n\t\t\t}*/\n\t\t\t\n\t\t\t\n\t\t\t//System.out.println(eles2.html());\n\t\t\tElement eles = doc.getElementById(\"content_area\");\n\t\t\tElements eles2 = eles.getElementsByTag(\"img\");\n\t\t\tfor(int i=0;i<eles2.size();i++){\n\t\t\t\teles2.get(i).parent().attr(\"style\", \"text-align:center\");\n\t\t\t\teles2.get(i).parent().parent().nextElementSibling().attr(\"style\", \"text-align:center\");\n\t\t\t\teles2.get(i).attr(\"style\", \"width:50%\");\n\t\t\t}\n\t\t\t\n\t\t\tElements eles3 = eles.getElementsByClass(\"j-header\");\n\t\t\tfor (Element ele : eles3) {\n\t\t\t\tElements eleHeader = ele.getElementsByTag(\"h2\");\n\t\t\t\teleHeader.attr(\"style\", \"text-align:center\");\n\t\t\t}\n\t\t\tSystem.out.println(eles.html());\n\t\t\t\n\t\t\t//Below code is help to clear out the share icon to like Sina weibo\n\t\t\tElements eles4 = eles.getElementsByClass(\"bshare-custom\");\n\t\t\t//eles4.remove();\n\t\t\t\n\t\t\t//Elements eles3 = eles.getElementsByClass(\"n*j-imageSubtitle\");\n\t\t\t//System.out.println(eles3.size());\n\t\t\t/*for(int i=0;i<eles3.size();i++){\n\t\t\t\teles3.get(i).attr(\"style\", \"text-align:center;width:50%\");\n\t\t\t}\n\t\t\tSystem.out.println(eles.html());*/\n\t\t\t//System.out.println(eles2.get(0).attr(\"src\"));\n\t\t\t/*Element eles = doc.getElementById(\"content_area\");\n\t\t\tElements eles2 = eles.getElementsByClass(\"j-header\");\n\t\t\tfor (Element ele : eles2) {\n\t\t\t\tElements eleHeader = ele.getElementsByTag(\"h2\");\n\t\t\t\tSystem.out.println(\"Title---->\"+eleHeader.html()); \n\t\t\t}\n\t\t\tElements elesBody = eles.getElementsByClass(\"j-text\");\n\t\t\tSystem.out.println(\"Body---->\"+elesBody.html()); */\n\t\t\t//System.out.println(eles2.html()); \n /*List<String> nameList = new ArrayList<String>(); \n for (Element ele : eles) {\n \tString text = ele.select(\"h*\").text();\n \tSystem.out.println(text); \n String text = ele.select(\"span\").first().text(); \n if (text.length() > 1 && text.startsWith(\"▲\")) { \n \n if (Integer.parseInt(text.substring(1)) > 30) { \n // 在这里.html()和.text()方法获得的内容是一样的 \n System.out.println(ele.select(\"a\").first().html()); \n nameList.add(ele.select(\"a\").first().text()); \n } \n } \n } */\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "public void clickLink(String link){\n\t\tSystem.out.println(\"CONTROLLER: LINK WAS CLICKED: \" + link);\n\t\tURL url_ = null;\n\t\ttry{\n\t\t\turl_ = new URL(new URL(this.url), link);\n\t\t\tthis.content = BrowsrDocumentValidator.assertIsValidBrowsrDocument(url_);\n\t\t\tthis.url = url_.toString();\n\t\t\tSystem.out.println(\"URL CONTROLLER:\" + this.url);\n\t\t} catch (Exception exception){\n\t\t\tthis.content = new Text(exception.toString());\n\t\t}\n\n\t}", "@Override\n\tpublic void actionPerformed (ActionEvent e)\n\t{\n\t\n\t\ttry\n\t\t{\n\t\t\t//Browser.init();\n\t\t\t//Browser.displayURL(mUrl);\n\t\t\tDesktop.getDesktop().browse(new URI(mUrl));\n\n\t\t}\n\t\tcatch (IOException exc)\n\t\t{\n\t\t\texc.printStackTrace();\n\t\t} catch (URISyntaxException e1) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te1.printStackTrace();\n\t\t}\n\t\n\t\n\t}", "public void goTo() { // Navigate to home page\n\t\tBrowser.goTo(url);\n\t}", "@Override\n public void onClick(View v) {\n if (!mTrackingLocation) {\n iniciarLocal();\n //Intent it = new Intent(Intent.ACTION_WEB_SEARCH);\n //it.putExtra(SearchManager.QUERY, \"Lojas Geek próximas \"+ lastAdress);\n //startActivity(it);\n } else {\n pararLocal();\n }\n }", "private void hitURL(String URL){\n Log.v(\".hitURL\", \" now crawling at: \" + URL);\n String refinedURL = NetworkUtils.makeURL(URL).toString();\n visitedLinks.add(refinedURL);\n browser.loadUrl(refinedURL);\n\n\n // OR, you can also load from an HTML string:\n// String summary = \"<html><body>You scored <b>192</b> points.</body></html>\";\n// webview.loadData(summary, \"text/html\", null);\n // ... although note that there are restrictions on what this HTML can do.\n // See the JavaDocs for loadData() and loadDataWithBaseURL() for more info.\n }", "@Override\n\t\t\t\t\tpublic void onClick(View arg0) {\n\t\t\t\t\t\tif(checkNetworkState()){\n\t\t\t\t\t\t\tSearchUtil.getInstance().setSearchtype(serchtype);\n\t\t\t\t\t\t\tSearchUtil.getInstance().setCallbacklabel(label2);\n\t\t\t\t\t\t\tIntent intent=new Intent(mContext,SearchResultActivity.class);\n\t\t\t\t\t\t\tmContext.startActivity(intent);\t\t\t\t\t\t\n\t\t\t\t\t\t\t((Activity) mContext).finish();\t\t\n\t\t\t\t\t\t}else{\n\t\t\t\t\t\t\tToast.makeText(mContext, mContext.getResources().getString(R.string.Broken_network_prompt), 0).show();\n\t\t\t\t\t\t}\n\t\t\t\t\t}", "public static void main(String[] args) throws IOException {\n Document doc = Jsoup.connect(\"http://www.gewara.com/movie/searchCinema.xhtml?countycode=310115\").userAgent(\"Mozilla\").get();\n\n\n System.out.println(doc);\n\n\n Elements links = doc.select(\"a[href^=/movie][target=_blank][class=color3]\");\n// Document doc = Jsoup.connect(\"http://example.com\")\n// .data(\"query\", \"Java\")\n// .userAgent(\"Mozilla\")\n// .cookie(\"auth\", \"token\")\n// .timeout(3000)\n// .post();\n\n {\n// Element link = doc.select(\"a\").first();\n// String relHref = link.attr(\"href\"); // == \"/\"\n// String absHref = link.attr(\"abs:href\"); // \"http://www.open-open.com/\"\n//\n// System.out.println(relHref);\n// System.out.println(absHref);\n }\n\n\n// Element element = doc.select(\"div.chooseOpi_body\").first();\n// Elements lis = element.select(\"li\");\n//\n//\n// for (Element li : lis) {\n//\n// Movie movie = new Movie();\n// movie.setStartTime(li.select(\"span.opitime\").first().child(0).text());\n// movie.setPrice(li.select(\"span.opiPrice\").first().child(0).text());\n//// if (li.select(\"span.opiSales\").first() != null){\n//// movie.setSale(li.select(\"span.opiSales\").first().tagName(\"b\").child(1).text() +li.select(\"span.opiSales\").first().tagName(\"b\").child(1).text());\n//// }\n// System.out.println(movie.toString());\n// }\n\n\n }", "private void QueryDirections() {\n\t\tshowProgress(true, \"正在搜索导航路线...\");\n\t\t// Spawn the request off in a new thread to keep UI responsive\n\t\tfor (final FloorInfo floorInfo : floorList) {\n\t\t\tif (floorInfo.getPoints() != null\n\t\t\t\t\t&& floorInfo.getPoints().length >= 2) {\n\n\t\t\t\tThread t = new Thread() {\n\t\t\t\t\t@Override\n\t\t\t\t\tpublic void run() {\n\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\t// Start building up routing parameters\n\t\t\t\t\t\t\tRouteTask routeTask = RouteTask\n\t\t\t\t\t\t\t\t\t.createOnlineRouteTask(\n\t\t\t\t\t\t\t\t\t\t\tfloorInfo.getRouteServerPath(),\n\t\t\t\t\t\t\t\t\t\t\tnull);\n\n\t\t\t\t\t\t\tRouteParameters rp = routeTask\n\t\t\t\t\t\t\t\t\t.retrieveDefaultRouteTaskParameters();\n\t\t\t\t\t\t\tNAFeaturesAsFeature rfaf = new NAFeaturesAsFeature();\n\t\t\t\t\t\t\t// Convert point to EGS (decimal degrees)\n\t\t\t\t\t\t\t// Create the stop points (start at our location, go\n\t\t\t\t\t\t\t// to pressed location)\n\t\t\t\t\t\t\t// StopGraphic point1 = new StopGraphic(mLocation);\n\t\t\t\t\t\t\t// StopGraphic point2 = new StopGraphic(p);\n\t\t\t\t\t\t\trfaf.setFeatures(floorInfo.getPoints());\n\t\t\t\t\t\t\trfaf.setCompressedRequest(true);\n\t\t\t\t\t\t\trp.setStops(rfaf);\n\n\t\t\t\t\t\t\t// Set the routing service output SR to our map\n\t\t\t\t\t\t\t// service's SR\n\t\t\t\t\t\t\trp.setOutSpatialReference(wm);\n\t\t\t\t\t\t\trp.setFindBestSequence(true);\n\t\t\t\t\t\t\trp.setPreserveFirstStop(true);\n\t\t\t\t\t\t\tif (floorInfo.getEndPoint() != null) {\n\t\t\t\t\t\t\t\trp.setPreserveLastStop(true);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t// Solve the route and use the results to update UI\n\t\t\t\t\t\t\t// when received\n\t\t\t\t\t\t\tfloorInfo.setRouteResult(routeTask.solve(rp));\n\n\t\t\t\t\t\t} catch (Exception e) {\n\t\t\t\t\t\t\tmException = e;\n\t\t\t\t\t\t\t// mHandler.post(mUpdateResults);\n\t\t\t\t\t\t}\n\t\t\t\t\t\trouteIndex++;\n\t\t\t\t\t\tif (routeIndex >= routeCount) {\n\t\t\t\t\t\t\tmHandler.post(mSetCheckMap);\n\t\t\t\t\t\t\tmHandler.post(mUpdateResults);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t};\n\t\t\t\t// Start the operation\n\t\t\t\tt.start();\n\t\t\t}\n\t\t}\n\n\t}", "public void startCrawl() throws IOException {\n\t\tElements paragraphs = wf.fetchWikipedia(source);\n\t\tqueueInternalLinks(paragraphs);\n\n\t\t// loop until we index a new page\n\t\tString res;\n\t\tdo {\n\t\t\tres = crawl();\n\n\t\t} while (res == null);\n\t}", "@Override\n\t\t\t\tpublic void onClick(View arg0) {\n\t\t\t\t\tif(checkNetworkState()){\n\t\t\t\t\t\tSearchUtil.getInstance().setSearchtype(serchtype);\n\t\t\t\t\t\tSearchUtil.getInstance().setCallbacklabel(label1);\n\t\t\t\t\t\tIntent intent=new Intent(mContext,SearchResultActivity.class);\n\t\t\t\t\t\tmContext.startActivity(intent);\n\t\t\t\t\t\t((Activity) mContext).finish();\n\t\t\t\t\t}else{\n\t\t\t\t\t\tToast.makeText(mContext, mContext.getResources().getString(R.string.Broken_network_prompt), 0).show();\n\t\t\t\t\t}\n\t\t\t\t\n\t\t\t\t}", "public String search() {\r\n\t\tgetNavigationPanel(3);\r\n\t\treturn SUCCESS;\r\n\t}", "public static void Goto()\n\t{\n\t\tUserLogin.Login();\n\t\t\t\t\n\t\t//Choose community\n\t\tWebElement Community= Driver.Instance.findElement(PageObjRef.CommunityTab);\n\t\tCommunity.click();\n\t\tWebElement CommunityToJoin= Driver.Instance.findElement(PageObjRef.CommunityToJoin);\n\t CommunityToJoin.click();\n\t\t\n\t}", "public static void main(String[] args) throws IOException \n\t{\n\t\tScanner sc = new Scanner(System.in);\n\t\tSystem.out.print(\"Please input the keyword: \");\n\t\tString keyword = sc.next();\n\t\tsc.close();\n\t\n\t\tKeywordList kLst = new KeywordList();\t\n\t\tSystem.out.println(\"-------------------------------------------------------\\nRelative Word List: \");\n\t\tkLst.printKeywordList(kLst.getKeywords());\n\t\tSystem.out.print(\"-------------------------------------------------------\\nValid Web Pages for Keyword [\" + keyword + \"]: \\n\");\n\t\tGoogleSearch google = new GoogleSearch(keyword);\n\t\tSystem.out.print(google.toString());\n\t\t\n\t\tArrayList<WebNode> wLst = new ArrayList<WebNode>();\t\n\t\t\n\t\ttry \n\t\t{\t\t\n\t\t\tfor(String title: google.query().keySet()) \n\t\t\t{\n\t\t\t\tString webUrl = google.query().get(title);\t\n\t\t\t\tWebPage rootPage = new WebPage(webUrl, title);\n\t\t\t\tWebTree tree = new WebTree(rootPage);\n\t\t\t\t\t\n\t\t\t\tChildPageQuery childQ = new ChildPageQuery(webUrl);\n\t\t\t\tint count = 0;\n\t\t\t\tif(childQ.query() != null) \n\t\t\t\t{\t\t\t\n\t\t\t\t\tfor(String childUrl: childQ.query()) \n\t\t\t\t\t{\t\t\t\n\t\t\t\t\t\tcount++;\t\t\t\t\t\t\t\n\t\t\t\t\t\ttree.root.addChild(new WebNode(new WebPage(childUrl, count + \"\")));\n\t\t\t\t\t}\n\t\t\t\t\t\t\n\t\t\t\t\ttree.setPostOrderScore(kLst.getKeywords());\n\t\t\t\t\twLst.add(tree.root);\n\t\t\t\t}\n\t\t\t}\t\n\t\t\t\n\t\t\tWebRating rating = new WebRating(wLst);\n\t\t\trating.sort();\n\t\t\tSystem.out.println(\"-------------------------------------------------------\\n★★★Rating★★★\\n(Title, Total Child Pages, Total Root Page Score)\");\n\t\t\tSystem.out.print(rating.output());\n\t\t} \n\n\t\tcatch(IOException e)\n\t\t{\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "public void solve() {\n // TODO\n // This function should use next. You should also create and use any\n // other helper fuctions you find helpful here.\n \t// get start position \t\n \tSquare s = sea.getStart();\n \texploreList.add(s);\n \twhile(this.exploreList.size() != 0) {\n \t\tSquare c = step();\n \t\tif(c.hasNemo()) {\n \t\t\tsetPath(c);\n \t\t\tfoundNemo = true;\n \t\t\tbreak;\n \t\t}\n \t}\n }", "void clickNextStation();", "private void find(boolean forward) {\n \tif (this.currentFindResultPage != null) {\n \t\t/* searching again */\n \t\tint nextResultNum = forward ? this.currentFindResultNumber + 1 : this.currentFindResultNumber - 1;\n \t\tif (nextResultNum >= 0 && nextResultNum < this.pagesView.getFindResults().size()) {\n \t\t\t/* no need to really find - just focus on given result and exit */\n \t\t\tthis.currentFindResultNumber = nextResultNum;\n \t\t\tthis.pagesView.scrollToFindResult(nextResultNum);\n \t\t\tthis.pagesView.invalidate();\n \t\t\treturn;\n \t\t}\n \t}\n\n \t/* finder handles next/prev and initial search by itself */\n \tFinder finder = new Finder(this, forward);\n \tThread finderThread = new Thread(finder);\n \tfinderThread.start();\n }", "public static void main(String[] args)throws Exception \n\t{\n\t\tScanner sc=new Scanner(System.in);\n\t\tSystem.out.println(\"enter a word to search\");\n\t\tString word=sc.nextLine();\n\t\tsc.close();\n\t\tSystem.setProperty(\"webdriver.chrome.driver\",\"chromedriver.exe\");\n\t\tChromeDriver driver=new ChromeDriver();\n\t\tdriver.get(\"http://www.google.co.in\");\n\t\tThread.sleep(5000);\n\t\tdriver.findElement(By.name(\"q\")).sendKeys(word,Keys.ENTER);\n\t\t//pagination on results pages\n\t\tint flag=0;\n\t\tint tpc=0;\n\t\twhile(2>1)\n\t\t{\n\t\t\ttpc++;\n\t\t\tString t=driver.getTitle();\n\t\t\tif(!t.contains(word))\n\t\t\t{\n\t\t\t\tflag=1;\n\t\t\t\tbreak;//terminate from loop when does not contains word\n\t\t\t\t\t\t\t\t\t\t\n\t\t\t}\n\t\t\t\n\t\t\ttry\n\t\t\t{\n\t\t\t\tdriver.findElement(By.xpath(\"//span[text()='Next']\")).click();\n\t\t\t\tThread.sleep(2000);\n\t\t\t}\n\t\t\tcatch(Exception ex)\n\t\t\t{\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\t\tif(flag==0)\n\t\t\t{\n\t\t\t\tSystem.out.println(\"title of \"+tpc+\" results pages is correct\");\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tSystem.out.println(tpc+\"of the results page is incorrect\");\n\t\t\t}\n\t\t\t//close site\n\t\t\tdriver.close();\n\t\t}", "@Override\n\t\t\t\tpublic void onClickOk() {\n\t\t\t\t\tnew BrowserWebsiteAsyncTask().execute(url,Boolean.FALSE.toString());\n\t\t\t\t}", "private Element traverse_search(Element element) {\n \ttry {\n\t \tString userid = profile.getAttributeValue(\"personal\", \"id\");\n\t \tString course = profile.getAttributeValue(\"personal\", \"course\");\n\t \tString context = WOWStatic.config.Get(\"CONTEXTPATH\");\n\n\t \tElement a = doc.createElement(\"a\");\n\t \ta.setAttribute(\"href\", context + \"/Get?wndName=Search\");\n\t \ta.setAttribute(\"target\", userid + \"$\" + course);\n\t \ta.appendChild(doc.createTextNode(\"Search\"));\n\t \treturn (Element)replaceNode(element, a);\n \t}\n \tcatch(Throwable e) {\n \t\te.printStackTrace();\n \t\treturn (Element)replaceNode(element, createErrorElement(\"Error!\"));\n \t}\n }", "public NewcommunityPage submitKo() {\n driver.findElement(nextLocator).click();\r\n\r\n // Return a new page object representing the destination. Should the login page ever\r\n // go somewhere else (for example, a legal disclaimer) then changing the method signature\r\n // for this method will mean that all tests that rely on this behaviour won't compile.\r\n return new NewcommunityPage(driver); \r\n\t}", "protected abstract T jump(T neighbor, T current, Set<T> goals);", "private void initialize() {\n\t\tframe = new JFrame();\n\t\tframe.setBounds(100, 100, 661, 454);\n\t\tframe.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n\t\tframe.getContentPane().setLayout(null);\n\t\t\n\t\tJLabel lblNewLabel = new JLabel(\"\\t\\t\\t\\t\\t\\t\\t\\t\\tWiki Crawler\");\n\t\tlblNewLabel.setFont(new Font(\"Tahoma\", Font.BOLD, 17));\n\t\tlblNewLabel.setHorizontalAlignment(SwingConstants.CENTER);\n\t\tlblNewLabel.setBounds(93, 0, 424, 45);\n\t\tframe.getContentPane().add(lblNewLabel);\n\t\t\n\t\ttextField = new JTextField();\n\t\ttextField.setBounds(10, 76, 438, 45);\n\t\tframe.getContentPane().add(textField);\n\t\ttextField.setColumns(10);\n\t\t\n\t\tJButton btnNewButton = new JButton(\"Search\\r\\n\");\n\t\tbtnNewButton.addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent arg0) {\n\t\t\t\tfinal String Url = textField.getText();\n\t\t\t\t//Url = textField.getText();\n\t\t\t\t//CrawlHyperlinks crawl = new CrawlHyperlinks();\n\t\t\t\t//WikiCrawlerUI crawl = new WikiCrawlerUI();\n\t\t\t\tt = new Thread(new Runnable(){\n\t\t\t\t\t@Override\n\t\t\t\t\tpublic void run(){\n\t\t\t\t\t\t//while(!t.interrupted())\n\t\t\t\t\t\tString countWord = textField_1.getText();\n\t\t\t\t\t\t\tDriverMain.mainThread(Url,countWord);\t\n\t\t\t\t\t\ttry {\n\t\t Thread.sleep(1000);\n\t\t } catch (InterruptedException e) {\n\t\t return;\n\t\t }\n\t\t\t\t\t}\n\t\t\t\t});\n\t\t\t\tt.start();\n\t\t\t\t//crawlPage(Url);\t\n\t\t\t}\n\t\t});\n\t\tbtnNewButton.setFont(new Font(\"Times New Roman\", Font.PLAIN, 15));\n\t\tbtnNewButton.setBounds(478, 75, 108, 45);\n\t\tframe.getContentPane().add(btnNewButton);\n\t\t//scroll = new JScrollPane (textArea, \n\t\t\t//\t JScrollPane.VERTICAL_SCROLLBAR_ALWAYS, JScrollPane.HORIZONTAL_SCROLLBAR_ALWAYS);\n\t\t//scroll.setBounds(0, 334, 605, -334);\n\t\t//scroll = new JScrollPane(textArea);\n\t\t//scroll.setBounds(0, 4, 13, -4);\n\t\t//scroll.setVerticalScrollBarPolicy(ScrollPaneConstants.VERTICAL_SCROLLBAR_ALWAYS);\n\t\t//frame.getContentPane().add(scroll);\n\t\t//frame.getContentPane().add(textArea);\n\t\ttextArea.setEditable(false);\n\t\ttextArea.setLineWrap(true);\n\t\tscrollPane = new JScrollPane(textArea);\n\t\tscrollPane.setBounds(10, 215, 412, 178);\n\t\tscrollPane.setVisible(true);\n\t\tframe.getContentPane().add(scrollPane);\n\t\t//textArea = new JTextArea();\n\t\t//frame.getContentPane().add(textArea);\n\t\t//textArea.setEditable(false);\n\t\t//textArea.setLineWrap(true);\n\t\t\n\t\tlblNewLabel_1 = new JLabel(\"Enter Word to Count\");\n\t\tlblNewLabel_1.setBounds(10, 146, 180, 32);\n\t\tframe.getContentPane().add(lblNewLabel_1);\n\t\t\n\t\ttextField_1 = new JTextField();\n\t\ttextField_1.setBounds(287, 146, 161, 32);\n\t\tframe.getContentPane().add(textField_1);\n\t\ttextField_1.setColumns(10);\n\t\t\n\t\tJLabel lblNewLabel_2 = new JLabel(\"Word Count\\r\\n\");\n\t\tlblNewLabel_2.setBounds(478, 226, 108, 32);\n\t\tframe.getContentPane().add(lblNewLabel_2);\n\t\t\n\t\ttextField_2 = new JTextField();\n\t\ttextField_2.setBounds(478, 280, 108, 32);\n\t\tframe.getContentPane().add(textField_2);\n\t\ttextField_2.setColumns(10);\n\t\t//frame.getContentPane().add(new JScrollPane(textArea));\n\t}", "public static void search(String[][] grid, String strategy, boolean visualize) {\n\t\tint counter = 1;\n\t\tSaveWestros problem = new SaveWestros(dragonGlassCapacity, numberOfWhiteWalkers, grid);\n\t\tNode node = generalSearchProcedure(problem, strategy);\n\t\tStack<Operators> stack = new Stack<>();\n\t\tif (node == null) {\n\t\t\tSystem.out.println(\"No Solution Could Be Reached In This Grid !!!\");\n\t\t\treturn;\n\t\t}\n\t\twhile (node.parentNode != null) {\n\t\t\tstack.add(node.operator);\n\t\t\tnode = node.parentNode;\n\n\t\t}\n\t\tSystem.out.println();\n\t\twhile (!stack.isEmpty()) {\n\t\t\tOperators action = stack.pop();\n\t\t\tSystem.out.print(\"Action \" + counter++ + \": \");\n\t\t\tSystem.out.println(action);\n\n\t\t\tif (visualize) {\n\t\t\t\tgrid = Visualize(grid, action.toString());\n\t\t\t\tprintGrid(grid);\n\t\t\t\tSystem.out.println(new String(new char[40]).replace(\"\\0\", \"_\"));\n\t\t\t\tSystem.out.println();\n\t\t\t}\n\n\t\t}\n\t\tSystem.out.println(String.format(\"Number of expanded nodes: %d \",\n\t\t\t\tproblem.expandedNodes));\n\t\tSystem.out.println();\n\t\tSystem.out.println(new String(new char[40]).replace(\"\\0\", \"_\"));\n\t\tSystem.out.println(\"★★★★★★★★★★★ All The White Walkers Have Been Killed ★★★★★★★★★★★\");\n\n\t}", "public static void main (String[] args) {\n CampusGraph<String, String> cg = MarvelParser.buildGraph(\"marvel.tsv\");\n System.out.println(\"Hi! Welcome to Marvel Universe!\");\n System.out.println();\n System.out.println(\"You can find the closest path between any two heroes in all marvel comic books!\");\n System.out.println(\"Pleases type your heroes: \");\n Scanner input = new Scanner(System.in);\n\n boolean searched = false;\n while (!searched) {\n boolean firstSuccess = false;\n boolean secondSuccess = false;\n String hero1 = \"\";\n String hero2 = \"\";\n while (!firstSuccess) {\n System.out.println(\"Type your first hero: \");\n hero1 = input.nextLine();\n if (!cg.hasNode(hero1)) {\n System.out.println(\"Oops! It seems like your first hero is not a Marvel Hero :( \");\n System.out.println(\"Please type it again: \");\n } else {\n firstSuccess = true;\n }\n }\n if (firstSuccess) {\n while (!secondSuccess) {\n System.out.println(\"Type your second hero: \");\n hero2 = input.nextLine();\n if (!cg.hasNode(hero2)) {\n System.out.println(\"Oops! It seems like your second hero is not a Marvel Hero :( \");\n System.out.println(\"Please type it again: \");\n } else {\n secondSuccess = true;\n }\n }\n if (secondSuccess) {\n List<CampusGraph.Edges<String, String>> path = findPath(cg, hero1, hero2);\n System.out.println(\"Correct Heroes!\\n\");\n System.out.println(\"The shortest path from \" + hero1 + \" to \" + hero2 + \":\");\n if (path == null) {\n System.out.println(\"There is no connection between these two heroes.\");\n } else {\n String lastStart = hero1;\n for (CampusGraph.Edges<String, String> e : path) {\n System.out.println(lastStart + \" to \" + e.getEndTag() + \" via \" + e.getEdgeLabel());\n lastStart = e.getEndTag(); // update the last start each time\n }\n }\n searched = true;\n }\n }\n System.out.println();\n System.out.println(\"END. Thank you.\");\n }\n }", "public String getWiki(String link) {\n String wikiText = \"\";\n try {\n wiki = Jsoup.connect(link + \"/+wiki\").get();\n } catch (IOException e) {\n e.printStackTrace();\n }\n Elements elements = wiki.getElementsByClass(\"wiki-content\");\n wikiText = elements.text();\n if (!wikiText.equals(\"\")) { //Check if there is a wiki\n if (wikiText.length() > 3500) //Check if message is not too long\n wikiText = wikiText.substring(0, 3500)\n + \" ...\\n\\n\"\n + getLink(link + \"/+wiki\", \"Continue on Last.fm\");\n\n } else wikiText = \"<i>Do you know any background info about this?</i>\\n\\n\"\n + getLink(link + \"/+wiki\", \"Start the wiki\");\n return wikiText;\n }", "public static void main(String[] args) {\n System.setProperty(\"webdriver.chrome.driver\", \"E:\\\\Downloads\\\\chromedriver_win32\\\\chromedriver.exe\");\r\n driver = new ChromeDriver();\r\n driver.manage().window().maximize(); \r\n driver.get(\"https://yandex.ru\");\r\n driver.findElement(By.linkText(\"Маркет\")).click(); \r\n driver.findElement(By.linkText(\"Электроника\")).click(); \r\n driver.findElement(By.linkText(\"Наушники и Bluetooth-гарнитуры\")).click(); \r\n driver.findElement(By.linkText(\"Перейти ко всем фильтрам\")).click(); \r\n driver.findElement(By.cssSelector(\"#glf-pricefrom-var\")).click();\r\n driver.findElement(By.cssSelector(\"#glf-pricefrom-var\")).sendKeys(\"5000\"); \r\n driver.findElement(By.linkText(\"Beats\")).click(); \r\n driver.findElement(By.xpath(\"//html/body/div[1]/div[4]/div/div[1]/div[5]/a[2]\")).click(); \r\n List<WebElement> linkElements = driver.findElements(By.className(\"n-snippet-cell2__title\"));\r\n System.out.println(\"Элементов на странице: \"+linkElements.size());\r\n WebElement FirstCell = linkElements.get(0);\r\n String FirstCell_name = FirstCell.getText();\r\n System.out.println(\"Первый элемент списка: \"+FirstCell_name); \r\n driver.findElement(By.cssSelector(\"#header-search\")).click();\r\n driver.findElement(By.cssSelector(\"#header-search\")).sendKeys(FirstCell_name); \r\n driver.findElement(By.cssSelector(\"#header-search\")).submit(); \r\n driver.manage().timeouts().implicitlyWait(10, TimeUnit.SECONDS);\r\n WebElement FirstCell_TS = driver.findElement(By.className(\"n-title__text\")); \r\n String FirstCell_TS_name = FirstCell_TS.getText(); \r\n System.out.println(\"Найденный элемент: \"+FirstCell_TS_name); \r\n if (FirstCell_name == null ? FirstCell_TS_name == null : FirstCell_name.equals(FirstCell_TS_name)) \r\n System.out.println(\"Название товара соответствует запомненному значению!\");\r\n else \r\n System.out.println(\"Название товара не соответствует запомненному значению!\");\r\n driver.close();\r\n }", "void breach();", "public static void leechCNN(Hdict dict)\r\n {\r\n WebDriver driver = new ChromeDriver();\r\n \r\n String baseUrl = \"https://www.cnn.com/\";\r\n driver.get(baseUrl);\r\n \r\n List<WebElement> links = driver.findElements(By.tagName(\"a\"));\r\n \r\n System.out.println(\"There is a total of \" + links.size() + \" frong page news detected on CNN\");\r\n \r\n Hdict titleDicts = new Hdict();\r\n \r\n for(int i = 0; i < links.size(); i++)\r\n {\r\n //get href links\r\n String url = links.get(i).getAttribute(\"href\");\r\n \r\n Words hUrl = new Words(url, 0);\r\n if(titleDicts.hdict_lookup(hUrl) != null) // if this page is already parsed\r\n {\r\n continue;\r\n }\r\n \r\n //if the page is not parsed\r\n titleDicts.hdict_insert(hUrl);\r\n \r\n for(int o = 0; o < 4; o++) // goes back 4 days\r\n {\r\n String urlname = \"\";\r\n if(month >= 10)\r\n urlname = \"https://www.cnn.com/\" + year + \"/\" + month;\r\n else\r\n urlname = \"https://www.cnn.com/\" + year + \"/0\" + month;\r\n \r\n if(day >= 10)\r\n urlname += \"/\" + (day - o) + \"/\";\r\n else\r\n urlname += \"/0\" + (day - o) + \"/\";\r\n \r\n String[] news = url.split(urlname);\r\n if(news.length > 1 && news[1].length() > 10) // if it is .html and has some other shish, shit solution but works\r\n {\r\n //WebDriver driver1 = new ChromeDriver();\r\n //driver1.get(url);\r\n \r\n //nytimes doesn't have viewers count, so default 2500 effectiveness on all posts\r\n \r\n int reactions = NYTIME_AVG;\r\n \r\n String directory = news[1];\r\n \r\n directory = directory.split(\".html\")[0]; // removes file name and directory\r\n String[] temp = directory.split(\"/\");\r\n String title = temp[temp.length-2]; // get file name, more concise, skip last for CNN, last is index\r\n String[] keys = title.split(\"-\");\r\n \r\n for(String key : keys)\r\n {\r\n if(key.contains(\".html\")) continue; // useless stuff\r\n \r\n boolean integercheck = true;\r\n try{\r\n Integer.parseInt(key);\r\n } catch(Exception e) \r\n {\r\n integercheck = false;\r\n };\r\n if(integercheck) continue; // useless numbers\r\n \r\n if(Arrays.binarySearch(JUNK_WORDS, key) >= 0) continue; // useless words\r\n \r\n Words wkey = new Words(key, reactions * CNN_WORTH);\r\n Words wkey_old = dict.hdict_lookup(wkey);\r\n if(wkey_old == null) dict.hdict_insert(wkey);\r\n else\r\n {\r\n wkey.setPopularity(wkey.getPopularity() + wkey_old.getPopularity());\r\n dict.hdict_insert(wkey);\r\n }\r\n }\r\n }\r\n }\r\n }\r\n //close Chrome\r\n driver.close();\r\n }", "@Test\n public void stage04_searchAndPage() {\n String keyWord = \"bilgisayar\";\n Integer pageNumber = 2;\n //Searching with parameters\n SearchKey searchKey = new SearchKey(driver);\n HomePage homePage = searchKey.search(keyWord, pageNumber);\n //Getting current url\n String currentUrl = homePage.getCurrentURL();\n //Testing if this is desired page\n assertEquals(currentUrl, \"https://www.gittigidiyor.com/arama/?k=bilgisayar&sf=2\");\n //logging\n if (currentUrl.equals(\"https://www.gittigidiyor.com/arama/?k=bilgisayar&sf=2\")) {\n logger.info(\"( stage02_testOpenLoginPage )Actual location : \" + currentUrl);\n } else {\n logger.error(\"( stage02_testOpenLoginPage )Actual location : \" + currentUrl);\n }\n }", "public void navigateToWeb() throws Exception {\n\n server.setCurrentItem(1, HOME_URL);\n\n // Navegate to HOME_URL address\n browser.navigate(HOME_URL);\n\n //Tihis command is uses to make visible in the desktop the page (IExplore issue)\n if (browserType.equals(\"IE\")) {\n client.clickOnCenter();\n client.pause(3000);\n }\n\n By lName = By.xpath(\"/html/body/div/div/div[1]/form/table/tbody/tr[1]/td/div/input\");\n By dob = By.xpath(\"/html/body/div/div/div[1]/form/table/tbody/tr[2]/td/div/input\");\n By accNumber = By.xpath(\"/html/body/div/div/div[1]/form/table/tbody/tr[3]/td/div/input\");\n By sortCd = By.xpath(\"/html/body/div/div/div[1]/form/table/tbody/tr[4]/td/div/input\");\n By pCode = By.xpath(\"/html/body/div/div/div[1]/form/table/tbody/tr[5]/td/div/input\");\n browser.textFieldSet(lName,lastName,true);\n browser.textFieldSet(dob,dateOfBirth,true);\n browser.textFieldSet(accNumber,accountNumber,true);\n browser.textFieldSet(sortCd,sortCode,true);\n browser.textFieldSet(pCode,postCode,true);\n\n browser.clickOnElement(By.xpath(\"/html/body/div/div/div[1]/form/div/input\"));\n\n By message = By.id(\"message\");\n\n boolean isMessageExists = browser.existsElement(message);\n\n if(!isMessageExists) {\n\n By tableId = By.id(\"customer\");\n WebElement table = browser.getElement(tableId);\n\n List<WebElement> th = table.findElements(By.tagName(\"th\"));\n\n int lastNamePos = 0;\n int postCodePos = 0;\n int dobPos = 0;\n int accountNoPos = 0;\n int sortCodePos = 0;\n\n for (int i = 0; i < th.size(); i++) {\n if (\"Last Name\".equalsIgnoreCase(th.get(i).getText())) {\n lastNamePos = i + 1;\n } else if (\"Date of Birth\".equalsIgnoreCase(th.get(i).getText())) {\n dobPos = i + 1;\n } else if (\"Account Number\".equalsIgnoreCase(th.get(i).getText())) {\n accountNoPos = i + 1;\n } else if (\"Sort Code\".equalsIgnoreCase(th.get(i).getText())) {\n sortCodePos = i + 1;\n } else if (\"Post Code\".equalsIgnoreCase(th.get(i).getText())) {\n postCodePos = i + 1;\n }\n }\n\n List<WebElement> lastNameElements = table.findElements(By.xpath(\"//tr/td[\" + lastNamePos + \"]\"));\n List<WebElement> dobElements = table.findElements(By.xpath(\"//tr/td[\" + dobPos + \"]\"));\n List<WebElement> accountElements = table.findElements(By.xpath(\"//tr/td[\" + accountNoPos + \"]\"));\n List<WebElement> sortCodeElements = table.findElements(By.xpath(\"//tr/td[\" + sortCodePos + \"]\"));\n List<WebElement> postCodeElements = table.findElements(By.xpath(\"//tr/td[\" + postCodePos + \"]\"));\n\n for (int i = 0; i < lastNameElements.size(); i++) {\n WebElement e = lastNameElements.get(i);\n if (e.getText().trim().equalsIgnoreCase(lastName)) {\n if (dobElements.get(i).getText().trim().equalsIgnoreCase(dateOfBirth)\n && accountElements.get(i).getText().trim().equalsIgnoreCase(accountNumber)\n && sortCodeElements.get(i).getText().trim().equalsIgnoreCase(sortCode)\n && postCodeElements.get(i).getText().trim().equalsIgnoreCase(postCode)) {\n resultMap.put(\"matchFound\", \"true\");\n break;\n }\n }\n }\n } else\n resultMap.put(\"matchFound\", \"false\");\n\n\n }", "public JFrame linkFrame()\n\t{\n\t\tJFrame frame = new JFrame();\n\t\tframe.setSize(400, 600);\n\t\tframe.setLayout(new GridLayout(3, 1));\n\t\tframe.setTitle(\"Web Page Links\");\n\n\t\tJPanel panelOne = new JPanel();\n\t\tJPanel panelTwo = new JPanel();\n\n\t\tenterURL = new JTextField(\"\", 20);\t//Text field that is displayed in the first panel.\n\t\tpanelOne.add(enterURL);\n\n\t\tdisplayLinks = new JButton(\"Display Links\");\t//Button that is displayed in the second panel.\n\n\t\tdisplayLinks.addActionListener(new ActionListener(){\t//Button gets the text from enterURL.\n\t\t\tpublic void actionPerformed(ActionEvent event)\n\t\t\t{\n\t\t\t\tgetText();\n\t\t\t\tsetString();\n\n\t\t\t}});\n\n\t\tpanelTwo.add(displayLinks);\n\n\t\tframe.add(panelOne);\n\t\tframe.add(panelTwo);\n\t\tframe.add(generateLinks());\t\t//Supposed to generate links based on user text in panelOne.\n\n\t\tframe.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n\t\tframe.setVisible(true);\n\t\treturn frame;\n\t}", "public void performSearch() {\n History.newItem(MyWebApp.SEARCH_RESULTS);\n getMessagePanel().clear();\n if (keywordsTextBox.getValue().isEmpty()) {\n getMessagePanel().displayMessage(\"Search term is required.\");\n return;\n }\n mywebapp.getResultsPanel().resetSearchParameters();\n //keyword search does not restrict to spots\n mywebapp.addCurrentLocation();\n if (markFilterCheckbox != null) {\n mywebapp.getResultsPanel().getSearchParameters().setLicensePlate(markFilterCheckbox.getValue());\n }\n if (contestFilterCheckbox != null) {\n mywebapp.getResultsPanel().getSearchParameters().setContests(contestFilterCheckbox.getValue());\n }\n if (geoFilterCheckbox != null) {\n mywebapp.getResultsPanel().getSearchParameters().setGeospatialOff(!geoFilterCheckbox.getValue());\n }\n if (plateFilterCheckbox != null) {\n mywebapp.getResultsPanel().getSearchParameters().setLicensePlate(plateFilterCheckbox.getValue());\n }\n if (spotFilterCheckbox != null) {\n mywebapp.getResultsPanel().getSearchParameters().setSpots(spotFilterCheckbox.getValue());\n }\n String color = getValue(colorsListBox);\n mywebapp.getResultsPanel().getSearchParameters().setColor(color);\n String manufacturer = getValue(manufacturersListBox);\n if (manufacturer != null) {\n Long id = new Long(manufacturer);\n mywebapp.getResultsPanel().getSearchParameters().setManufacturerId(id);\n }\n String vehicleType = getValue(vehicleTypeListBox);\n mywebapp.getResultsPanel().getSearchParameters().setVehicleType(vehicleType);\n// for (TagHolder tagHolder : tagHolders) {\n// mywebapp.getResultsPanel().getSearchParameters().getTags().add(tagHolder);\n// }\n mywebapp.getResultsPanel().getSearchParameters().setKeywords(keywordsTextBox.getValue());\n mywebapp.getMessagePanel().clear();\n mywebapp.getResultsPanel().performSearch();\n mywebapp.getTopMenuPanel().setTitleBar(\"Search\");\n //mywebapp.getResultsPanel().setImageResources(resources.search(), resources.searchMobile());\n }", "public void testGUI(){\n \tFile xml = new File(testData,\"html/htmlsidekick.html\");\n \t\n \tTestUtils.openFile(xml.getPath());\n\t\t\n \t// wait for end of parsing\n \tdoInBetween(new Runnable(){\n \t\t\tpublic void run(){\n \t\t\t\taction(\"sidekick-parse\",1);\n \t\t}}, \n \t\tmessageOfClassCondition(sidekick.SideKickUpdate.class),\n \t\t10000);\n\t\t\n \tTestUtils.view().getTextArea().scrollTo(3319,false);\n\t\tfinal java.awt.Point hrefP = TestUtils.view().getTextArea().offsetToXY(3319);\n\t\threfP.translate(30, 10);\n\t\tfinal JEditTextAreaFixture tf = new JEditTextAreaFixture(TestUtils.robot(),TestUtils.view().getTextArea()); \n\n\t\t// doesn't work: the hyperlink is not triggered...\n\t\ttf.robot.moveMouse(tf.target,hrefP);\n\t\ttf.robot.pressModifiers(InputEvent.CTRL_DOWN_MASK);\n\t\tPause.pause(2000);\n\t\threfP.translate(10,4);\n\t\ttf.robot.moveMouse(tf.target,hrefP);\n\t\tPause.pause(4000);\n\t\ttf.robot.click(tf.target, MouseButton.LEFT_BUTTON);\n\t\ttf.robot.releaseModifiers(InputEvent.CTRL_DOWN_MASK);\n\t}", "@Override\r\n public void actionPerformed(ActionEvent e)\r\n {\n toggleButtons(false);\r\n if (breadthFirstButton.isSelected())\r\n {\r\n DequeAdder tailAdder = new DequeAdder()\r\n {\r\n @Override\r\n public void add(Vertex vertex, Deque<Vertex> deque)\r\n {\r\n deque.addLast(vertex);\r\n }\r\n };\r\n problem.search((Vertex) problem.getCurrentState(),\r\n tailAdder);\r\n } else if (depthFirstButton.isSelected())\r\n {\r\n DequeAdder headAdder = new DequeAdder()\r\n {\r\n @Override\r\n public void add(Vertex vertex, Deque<Vertex> deque)\r\n {\r\n deque.addFirst(vertex);\r\n }\r\n };\r\n problem.search((Vertex) problem.getCurrentState(),\r\n headAdder);\r\n } else if (AStarButton.isSelected())\r\n {\r\n problem.searchAStar((Vertex) problem.getCurrentState());\r\n }\r\n else if (enhancedAStarButton.isSelected())\r\n {\r\n problem.enhancedAStarSearch((Vertex) problem.getCurrentState());\r\n }\r\n setStats();\r\n showNxtMvBtn.setEnabled(true);\r\n showAllMoves.setEnabled(true);\r\n }", "public boolean action(Event e,Object o)\r\n {\r\n String text; // Search text entered by the user.\r\n\tString searchText; // Lower case version of above.\r\n\tURL newURL=null;\r\n\r\n\t// Chech to see if the option menu has been selected.\r\n\r\n\tif(e.target instanceof Choice)\r\n\t{\r\n\t Choice c=(Choice)e.target;\r\n\t try\r\n\t {\r\n\t maxSearch=Integer.parseInt(c.getSelectedItem(),10);\r\n\t }\r\n\t catch(NumberFormatException ne)\r\n\t {\r\n\t maxSearch=MAX_NUMBER_PAGES;\r\n\t }\r\n\t}\r\n\r\n\t// Check to see if a check box has been pressed.\r\n\tif(e.target instanceof Checkbox)\r\n\t{\r\n\t if(caseSensitive.getState() == true)\r\n\t matchCase=true;\r\n else matchCase=false;\r\n\t if(matchWholeWord.getState() ==true)\r\n\t matchWord=true;\r\n else matchWord=false;\r\n\t}\r\n\r\n // A Button has been pressed - which determine.\r\n\tif(e.target instanceof Button)\r\n\t{\r\n\t if(e.target == search)\r\n\t {\r\n\t // Search button pressed - read in search text entered \r\n\t\ttext=inputArea.getText();\r\n\t\t// Make sure there's something to search for\r\n\t\tif(text.length()==0)\r\n\t\t return(false);\r\n\t\t// New Search so clear the GUI out\r\n\t\tif(resultsArea.countItems()>0)\r\n\t\t resultsArea.clear();\r\n disableButtons();\r\n\t\tabort.enable();\r\n\t\tstatusArea.setText(\"\");\r\n\t\t// Clear out previous search data\r\n\t\tpageNames.removeAllElements();\r\n\t\tpageMatch.removeAllElements();\r\n\t\t// We're off start the search thread\r\n\t\tcp=new SearchPages(this,hostName,text,maxSearch);\r\n\t\tcp.start();\r\n\t }\r\n\t else if(e.target == abort)\r\n\t {\r\n\t // Abort button Pressed - stop the thread.\r\n\t\tif(cp != null)\r\n\t\t cp.stop();\r\n\t\tcp=null;\r\n\t\t// Enable Button for another search.\r\n\t\tenableButtons();\r\n\t\tabort.disable();\r\n\t }\r\n\t else\r\n\t {\r\n\t // Clear Button Pressed - clear all the fields and return.\r\n\t\tinputArea.setText(\"\");\r\n\t\tstatusArea.setText(\"\");\r\n\r\n\t\t// Clear radio Buttons.\r\n\t\tcaseSensitive.setState(false);\r\n\t\tcaseInsensitive.setState(true);\r\n\t\tmatchWholeWord.setState(false);\r\n\r\n\t\t// Clear option menu.\r\n\t\tnumPagesChoice.select(0);\r\n\t\ttry\r\n\t\t{\r\n\t\t maxSearch=Integer.parseInt(numPagesChoice.getSelectedItem(),10);\r\n\t\t}\r\n\t\tcatch(NumberFormatException ex)\r\n\t\t{\r\n\t\t maxSearch=MAX_NUMBER_PAGES;\r\n\t\t}\r\n\t\t\r\n\t\tif(resultsArea.countItems()>0)\r\n\t\t resultsArea.clear();\r\n cp=null;\r\n\t }\r\n\t}\r\n\r\n\t// Selection made from the list of matches.\r\n\tif(e.target instanceof java.awt.List)\r\n\t{\r\n\t java.awt.List list=(java.awt.List)e.target;\r\n\t int index=list.getSelectedIndex();\r\n\r\n\t // Extract the page name from the list.\r\n\t if(index<pageMatch.size())\r\n\t {\r\n\t String URLSelected=(String)pageMatch.elementAt(index);\r\n\t\ttry\r\n\t\t{\r\n\t\t // If URL store then use it.\r\n\t\t if(URLSelected.startsWith(\"http:\") || URLSelected.startsWith(\"file:\"))\r\n\t\t newURL=new URL(URLSelected);\r\n else if(server==null)\r\n\t\t newURL=new URL(\"http://www.\"+hostName+\"/\"+URLSelected);\r\n else newURL=new URL(server+URLSelected);\r\n\t\t}\r\n\t\tcatch(MalformedURLException except){}\r\n\t\tgetAppletContext().showDocument(newURL,\"_self\");\r\n\t }\r\n\t}\r\n\treturn true; // We are done.\r\n }", "private static void BicingsimulatedAnnealingSearch(int num, int n_est, int nbicis, int nfurgo, int d1, int cas, String Cas, String H, String D, int s) {\n\n\n try {\n\n double MedT = 0;\n //double MedN = 0;\n //double MedB = 0;\n int iteraciones = 100;\n Estado Bicing = new Estado(n_est,nbicis,nfurgo,d1,s,1);\n Bicing.setList_cdesp(iteraciones);\n long StartTime = System.nanoTime();\n Problem problem = new Problem(Bicing, new sucesoresA(), new isGoal(), new Heuristic_Function());\n SimulatedAnnealingSearch search = new SimulatedAnnealingSearch(iteraciones, 1000, 125, 0.00001D);\n SearchAgent agent = new SearchAgent(problem, search);\n List L = search.getPathStates();\n Properties properties = agent.getInstrumentation();\n long EndTime = System.nanoTime();\n Estado E = (Estado) search.getGoalState();\n long time = ((EndTime - StartTime) / 1000000);\n MedT += time;\n //MedB += E.getganancia();\n // MedN += Integer.parseInt(properties.getProperty((String)properties.keySet().iterator().next()));\n // MedB /= num;\n // MedN /= num;\n // MedT /= num;\n //MedB = (Math.round(MedB*100.0)/100.0);\n Writer output;\n output = new BufferedWriter(new FileWriter(\"Estadisticas_\" + Cas + \"_D\" + D + \"_H\" + H + \"S.txt\", true));\n double [] vec = E.getearnings();\n for (int i = 0 ; i < iteraciones; ++i) {\n String S = \"\" + vec[i];\n S = S + '\\n';\n output.append(S);\n }\n output.close();\n\n /*for (int i = 0; i < E.getN_furgo(); ++i) {\n System.out.println(\"Recorrido por furgoneta \" + i + \" \" + E.getIFurgo(i).getLong_t());\n }*/\n //printEstado(E);\n //System.out.println();\n //System.out.println(E.getganancia());\n //printActions(agent.getActions());\n //printInstrumentation(agent.getInstrumentation());\n } catch (Exception var4) {\n var4.printStackTrace();\n }\n\n }", "public void clickSearch() {\n\t\twaitForDocumentReady(5);\n\t\tlog.debug(\"Clicking on search button\");\n\t\tclickOn(search_button, 20);\n\t\tlog.info(\"Clicked on search button\");\n\t\tlogger.log(Status.INFO, \"Search for cruise completed\");\n\t\t\n\t}", "public static void Welcome (){ //this method outputs welcome information and possibly other relevant information to user\r\n System.out.println(\"Welcome to the Maze Pathfinder Program! \\n\\nThis program can either create a random maze or accept input from a file to create one. Then the program will find a path from the start point to the end point in the maze.\\nEnjoy! \");\r\n System.out.println(\"\\n\");\r\n }", "@Override\n\tpublic void actionPerformed(ActionEvent e) {\n\t\tint number=0;\n\t\tObject source=e.getSource();\n\t\tfor(int i=0;i<titles.length;i++){\n\t\t\tif(titles[i]!=null){\n\t\t\t\tnumber=i+1;\n\t\t\t}\n\t\t}\n//\t\tif(source== test){\n//\t\t\tfor(int i=0; i<link.length;i++){\n//\t\t\t\tif(link[i]!=null)\n//\t\t\t\t\tSystem.out.println(link[i]);\n//\t\t\t}\n//\t\t}\n\t\tfor(int n=0;n<number;n++){\n\t\t\tif (source==titles[n]){\n\t\t\t\trunBrowser open=new runBrowser();\n\t\t\t\topen.runBrowser(link[n]);\n\t\t\t}\n\t\t}\n\t}", "public UndirectedSearch(boolean minimum) {\r\n\t\tsuper();\r\n\t\tthis.minimum = minimum;\r\n\t}", "@Override\r\n public void visit(Page page) {\r\n String url = page.getWebURL().getURL();\r\n System.out.println(\"URL: \" + url);\r\n\r\n if (page.getParseData() instanceof HtmlParseData) {\r\n HtmlParseData htmlParseData = (HtmlParseData) page.getParseData();\r\n String text = htmlParseData.getText();\r\n String html = htmlParseData.getHtml();\r\n List<WebURL> links = htmlParseData.getOutgoingUrls();\r\n\r\n System.out.println(\"Text length: \" + text.length());\r\n System.out.println(\"Html length: \" + html.length());\r\n System.out.println(\"Number of outgoing links: \" + links.size());\r\n\r\n try {\r\n Configuration config = new Configuration();\r\n System.setProperty(\"HADOOP_USER_NAME\", \"admin\");\r\n FileSystem fileSystem = FileSystem.get(new URI(\"hdfs://192.168.51.116:8022/\"), config);\r\n FSDataOutputStream outStream = fileSystem.append(new Path(\"/user/admin/crawler-results.txt\"));\r\n\r\n IOUtils.write(text.replace('\\n', ' '), outStream);\r\n outStream.flush();\r\n IOUtils.closeQuietly(outStream);\r\n } catch (Exception ex) {\r\n ex.printStackTrace();\r\n throw new RuntimeException(ex);\r\n }\r\n }\r\n }", "@Override\n public void run()\n {\n Document doc = null;\n try\n {\n // Politeness policy\n try\n {\n // Used so that we don't have multiple threads sleeping, instead the rest just wait on the\n // semaphore\n if (PolitenessPolicy()) return;\n\n doc = Jsoup.connect(threadVertex.getUrl()).get();\n }\n catch (InterruptedException e)\n {\n e.printStackTrace();\n return;\n }\n }\n catch (UnsupportedMimeTypeException e)\n {\n// System.out.println(\"--unsupported document type, do nothing\");\n return;\n }\n catch (HttpStatusException e)\n {\n// System.out.println(\"--invalid link, do nothing\");\n return;\n }\n catch (IOException e)\n {\n e.printStackTrace();\n return;\n }\n finally\n {\n politenessInteger.incrementAndGet();\n }\n\n Elements links = doc.select(\"a[href]\");\n for (Element link : links)\n {\n String v = link.attr(\"abs:href\");\n// System.out.println(\"Found: \" + v);\n\n// Document temp = null;\n if (!Util.ignoreLink(threadVertex.getUrl(), v))\n {\n // This was originally trying to catch invalid links before adding them to the graph\n // but I realized those are also valid notes, just leaf nodes.\n // This also greatly speeds up the execution of the program.\n// try\n// {\n// try\n// {\n// // Used so that we don't have multiple threads sleeping, instead the rest just wait on the\n// // semaphore\n// if (PolitenessPolicy()) return;\n//\n// temp = Jsoup.connect(v).get();\n// }\n// catch (InterruptedException e)\n// {\n// e.printStackTrace();\n// return;\n// }\n// }\n// catch (UnsupportedMimeTypeException e)\n// {\n// System.out.println(\"--unsupported document type, do nothing\");\n// return;\n// }\n// catch (HttpStatusException e)\n// {\n// System.out.println(\"--invalid link, do nothing\");\n// return;\n// }\n// catch (IOException e)\n// {\n// e.printStackTrace();\n// return;\n// }\n\n Vertex newVertex = new Vertex(v);\n\n // We need to synchronize the graph and the queue among each thread\n // This avoids dirty reads and dirty writes\n synchronized(graph)\n {\n synchronized(urlQueue)\n {\n if (!graph.containsKey(newVertex.getUrl()))\n {\n int newVertexDepth = threadVertex.getDepth() + 1;\n int currentPages = graph.size();\n\n if (currentPages < maxPages && newVertexDepth <= maxDepth)\n {\n // Set the new vertex's depth and add an ancestor\n newVertex.setDepth(newVertexDepth);\n newVertex.addAncestor(threadVertex);\n\n // Update the current vertex to have this one as a child\n threadVertex.addChild(newVertex);\n graph.put(threadVertex.getUrl(), threadVertex);\n\n // Place the new vertex in the discovered HashMap and place it in the queue\n graph.put(newVertex.getUrl(), newVertex);\n\n urlQueue.add(newVertex);\n }\n }\n else\n {\n // Done to update relationships of ancestors and children\n Vertex oldVertex = graph.get(newVertex.getUrl());\n\n oldVertex.addAncestor(threadVertex);\n threadVertex.addChild(oldVertex);\n\n graph.put(oldVertex.getUrl(), oldVertex);\n graph.put(threadVertex.getUrl(), threadVertex);\n }\n }\n }\n }\n else\n {\n// System.out.println(\"--ignore\");\n return;\n }\n }\n }", "public void viePage(URL link) throws IOException\n {\n this.mainEditorPane.setPage(link);\n }", "@Test\n public void test_method(){\n //Navigate to url\n driver.get(\"https://www.google.com\");\n\n //Searching for the search bar and sends string\n driver.findElement(By.name(\"q\")).sendKeys(\"PerfectoCode GitHub\");\n }", "public List<Element> monitorPage(String link){\n\t\tSystem.out.println(\"monitor Page \" + link);\n\t\tDocument document;\n\t\tList<Element> results = new ArrayList<Element>();\n\t\t// se connecte au site\n\t\tdocument = connectToPage(link);\n\t\t// liste tous les éléments de la classe inner-article (i.e. tout ce qu'il y a sur la page\n\t\tSystem.out.println(document.toString());\n\t\t/*List<Element> articlesGeneral = new ArrayList<Element>();\n\t\tfor (Element element : elements) {\n\t\t\t// extrait chaque link a des articles \n\t\t\tElement linkPage = element.select(\"a\").first();\n\t\t\tarticlesGeneral.add(linkPage);\n\t\t}\n\t\tresults = articlesGeneral;*/\t\t\n\n\t\treturn results;\n\n\t}", "public static void leechBBC(Hdict dict)\r\n {\r\n WebDriver driver = new ChromeDriver();\r\n \r\n String baseUrl = \"https://www.bbc.com/\";\r\n driver.get(baseUrl);\r\n \r\n List<WebElement> links = driver.findElements(By.tagName(\"a\"));\r\n \r\n System.out.println(\"There is a total of \" + links.size() + \" frong page news detected on BBC\");\r\n \r\n Hdict titleDicts = new Hdict();\r\n \r\n for(int i = 0; i < links.size(); i++)\r\n {\r\n //get href links\r\n String url = links.get(i).getAttribute(\"href\");\r\n \r\n Words hUrl = new Words(url, 0);\r\n if(titleDicts.hdict_lookup(hUrl) != null) // if this page is already parsed\r\n {\r\n continue;\r\n }\r\n \r\n //if the page is not parsed\r\n titleDicts.hdict_insert(hUrl);\r\n \r\n String urlname = \"https://www.bbc.com/news/\";\r\n \r\n String[] news = url.split(urlname);\r\n if(news.length > 1 && news[1].length() > 10) // if it is .html and has some other shish, shit solution but works\r\n {\r\n //WebDriver driver1 = new ChromeDriver();\r\n //driver1.get(url);\r\n \r\n String[] temp1 = news[1].split(\"-\");\r\n \r\n try{ // if the serial is not attached\r\n Integer.parseInt(temp1[temp1.length-1]);\r\n }\r\n catch(Exception e){ continue; };\r\n \r\n if(temp1.length < 2) // if it is not even a topic\r\n continue;\r\n \r\n //nytimes doesn't have viewers count, so default 2500 effectiveness on all posts\r\n \r\n int reactions = NYTIME_AVG;\r\n \r\n String directory = news[1];\r\n \r\n directory = directory.split(\".html\")[0]; // removes file name and directory\r\n String[] temp = directory.split(\"/\");\r\n String title = temp[temp.length-2]; // get file name, more concise, skip last for CNN, last is index\r\n String[] keys = title.split(\"-\");\r\n \r\n for(String key : keys)\r\n {\r\n if(key.contains(\".html\")) continue; // useless stuff\r\n \r\n boolean integercheck = true;\r\n try{\r\n Integer.parseInt(key);\r\n } catch(Exception e) \r\n {\r\n integercheck = false;\r\n };\r\n if(integercheck) continue; // useless numbers\r\n \r\n if(Arrays.binarySearch(JUNK_WORDS, key) >= 0) continue; // useless words\r\n \r\n Words wkey = new Words(key, reactions * BBC_WORTH);\r\n Words wkey_old = dict.hdict_lookup(wkey);\r\n if(wkey_old == null) dict.hdict_insert(wkey);\r\n else\r\n {\r\n wkey.setPopularity(wkey.getPopularity() + wkey_old.getPopularity());\r\n dict.hdict_insert(wkey);\r\n }\r\n }\r\n }\r\n }\r\n //close Chrome\r\n driver.close();\r\n }", "public static void main(String[] args) {\n\t\tString url=\"http://www.zhihu.com/explore/recommendations\";\n\t\tDraw draw=new Draw();\n\t\tSpider spider=new Spider();\n\t\t//获取地址集\n\t\tArrayList<WebEntity> retList=new ArrayList<WebEntity>();\n\t\tretList.addAll(spider.getWebList(url));\n\t\t\n\t\tint len=retList.size();\n\t\t\n\t\tPageRankEntity page=new PageRankEntity(len+1);\n\t\t\n\t\t//生成对应矩阵\n\t\tint j=0;\n\t\tfor(int i=0;i<len;i++){\n\t\t\tSystem.out.println(retList.get(i).Url);\n\t\t\tfor(String s:retList.get(i).outUrl){\n\t\t\t\tj=spider.webUrlContain(retList, s);\n\t\t\t\tif(j!=-1){\n\t\t\t\t\t//System.out.println(\"get page\");\n\t\t\t\t\tpage.num[i][j]=(double)1;\n\t\t\t\t}\n\t\t\t\t\t\n\t\t\t}\n\t\t}\n\t\t\n\t\tpage.PageRank();\n\t\tdraw.drawPic(len, page);\n\t\tpage.show_V(retList);\n\t\t\n\t\tSystem.out.println(\"PROGRAM END\");\n\n\t}", "public void actionPerformed(ActionEvent e) {\n displayInfoText(\" \");\n // Turn the search string into a Query\n String queryString = queryWindow.getText().toLowerCase().trim();\n query = new Query(queryString);\n // Take relevance feedback from the user into account (assignment 3)\n // Check which documents the user has marked as relevant.\n if (box != null) {\n boolean[] relevant = new boolean[box.length];\n for (int i = 0; i < box.length; i++) {\n if (box[i] != null)\n relevant[i] = box[i].isSelected();\n }\n query.relevanceFeedback(results, relevant, engine);\n }\n // Search and print results. Access to the index is synchronized since\n // we don't want to search at the same time we're indexing new files\n // (this might corrupt the index).\n long startTime = System.currentTimeMillis();\n synchronized (engine.indexLock) {\n results = engine.searcher.search(query, queryType, rankingType);\n }\n long elapsedTime = System.currentTimeMillis() - startTime;\n // Display the first few results + a button to see all results.\n //\n // We don't want to show all results directly since the displaying itself\n // might take a long time, if there are many results.\n if (results != null) {\n displayResults(MAX_RESULTS, elapsedTime / 1000.0);\n } else {\n displayInfoText(\"Found 0 matching document(s)\");\n\n if (engine.speller != null) {\n startTime = System.currentTimeMillis();\n SpellingOptionsDialog dialog = new SpellingOptionsDialog(50);\n String[] corrections = engine.speller.check(query, 10);\n elapsedTime = System.currentTimeMillis() - startTime;\n System.err.println(\"It took \" + elapsedTime / 1000.0 + \"s to check spelling\");\n if (corrections != null && corrections.length > 0) {\n String choice = dialog.show(corrections, corrections[0]);\n if (choice != null) {\n queryWindow.setText(choice);\n queryWindow.grabFocus();\n\n this.actionPerformed(e);\n }\n }\n }\n }\n }", "HtmlPage clickSiteName();", "@Override\n\t\t\tpublic void run() \n\t\t\t{\n\t\t\t\tif(!(mazeCollection.containsKey(paramArray[0])))\n\t\t\t\t{\n\t\t\t\t\tc.passError(\"Maze doesn't exist\");\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t\t/*\n\t\t\t\t//if solution for this maze exists\n\t\t\t\tif(mazeSolutions.containsKey(mazeCollection.get(paramArray[0])))\n\t\t\t\t{\n\t\t\t\t\tc.passSolve(\"Solution for \"+paramArray[0]+ \" is ready\");\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t*/\n\t\t\t\t\n\t\t\t\tif(paramArray[1].toString().equals(\"bfs\"))\n\t\t\t\t{\n\t\t\t\t\tMazeAdapter ms=new MazeAdapter(mazeCollection.get(paramArray[0]));\n\t\t\t\t\t\n\t\t\t\t\tSearcher<Position> bfs=new BFS<Position>();\n\t\t\t\t\tSolution<Position> sol=bfs.search(ms);\n\t\t\t\t\t\n\t\t\t\t\t//check if solution for the maze already exists, if so, replace it with the new one\n\t\t\t\t\tif(mazeSolutions.containsKey(mazeCollection.get(paramArray[0]))) {\n\t\t\t\t\t\tmazeSolutions.remove(mazeCollection.get(paramArray[0]));\n\t\t\t\t\t\tmazeSolutions.put(mazeCollection.get(paramArray[0]), sol);\n\t\t\t\t\t}\n\t\t\t\t\telse {\n\t\t\t\t\t\tmazeSolutions.put(mazeCollection.get(paramArray[0]), sol);\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\tc.passSolve(\"Solution for \"+paramArray[0]+ \" is ready\");\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t\telse if(paramArray[1].toString().equals(\"dfs\"))\n\t\t\t\t{\n\t\t\t\t\tMazeAdapter ms=new MazeAdapter(mazeCollection.get(paramArray[0]));\n\t\t\t\t\t\n\t\t\t\t\tSearcher<Position> dfs=new DFS<Position>();\n\t\t\t\t\tSolution<Position> sol=dfs.search(ms);\n\t\t\t\t\t\n\t\t\t\t\t//check if solution for the maze already exists, if so, replace it with the new one\n\t\t\t\t\tif(mazeSolutions.containsKey(mazeCollection.get(paramArray[0]))) {\n\t\t\t\t\t\tmazeSolutions.remove(mazeCollection.get(paramArray[0]));\n\t\t\t\t\t\tmazeSolutions.put(mazeCollection.get(paramArray[0]), sol);\n\t\t\t\t\t}\n\t\t\t\t\telse {\n\t\t\t\t\t\tmazeSolutions.put(mazeCollection.get(paramArray[0]), sol);\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\tc.passSolve(\"Solution for \"+paramArray[0]+ \" is ready\");\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\tc.passError(\"Invalid algorithm\");\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t}", "@Override\n\tpublic void onNextRoadClick() {\n\t\t\n\t}", "public WebCrawler() {\n setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n setSize(FRAME_SIZE_WIDTH, FRAME_SIZE_HEIGHT);\n setTitle(\"Simple Window\");\n\n\n JLabel l_URL = new JLabel();\n l_URL.setBounds(PADDING_LEFT,\n PADDING_TOP,\n LABEL_WIDTH, SINGLE_LINE_ELEMENT_HEIGHT);\n l_URL.setText(\"URL:\");\n\n JTextField tf_URL = new JTextField();\n tf_URL.setBounds(TF_PADDING, PADDING_TOP, TF_WIDTH, SINGLE_LINE_ELEMENT_HEIGHT);\n tf_URL.setName(\"UrlTextField\");\n\n\n JLabel l_tittle = new JLabel();\n l_tittle.setBounds(PADDING_LEFT,\n PADDING_TOP,\n LABEL_WIDTH, SINGLE_LINE_ELEMENT_HEIGHT);\n l_tittle.setText(\"URL:\");\n\n\n JLabel l_tittleContent = new JLabel();\n l_tittleContent.setBounds(PADDING_LEFT,\n PADDING_TOP * 2 + SINGLE_LINE_ELEMENT_HEIGHT,\n FRAME_SIZE_WIDTH - PADDING_LEFT * 3 - LABEL_WIDTH,\n SINGLE_LINE_ELEMENT_HEIGHT);\n l_tittleContent.setName(\"TitleLabel\");\n\n\n Object[] columnsHeader = new String[]{\"URL\", \"Title\"};\n\n\n final AtomicReference<DefaultTableModel> tModel = new AtomicReference<>(new DefaultTableModel(new Object[][]{}, columnsHeader));\n\n final JTable table = new JTable(tModel.get());\n table.setName(\"TitlesTable\");\n table.setEnabled(false);\n\n JScrollPane scrollPane = new JScrollPane(table);\n scrollPane.setBounds(PADDING_LEFT,\n PADDING_TOP * 3 + SINGLE_LINE_ELEMENT_HEIGHT * 2,\n SCROLL_PANE_WIDTH,\n SCROLL_PANE_HEIGHT);\n scrollPane.setVerticalScrollBarPolicy(JScrollPane.VERTICAL_SCROLLBAR_AS_NEEDED);\n scrollPane.setHorizontalScrollBarPolicy(JScrollPane.HORIZONTAL_SCROLLBAR_AS_NEEDED);\n\n\n //table[0].setFillsViewportHeight(true);\n\n\n JButton b_download = new JButton(\"Parse\");\n b_download.setBounds(BUTTON_PADDING,\n PADDING_TOP,\n BUTTON_WIDTH,\n SINGLE_LINE_ELEMENT_HEIGHT);\n b_download.setName(\"RunButton\");\n\n\n b_download.addActionListener(actionEvent -> {\n final String url = tf_URL.getText();\n CrawlerConnectionHelper connectionHelper = new CrawlerConnectionHelper(url);\n //final String siteText = connectionHelper.getHTMLCode();\n final String title = connectionHelper.getTitle();\n if (title != null) {\n l_tittleContent.setText(title);\n }\n\n Object[][] crawlResults = connectionHelper.getURLsAndTitles();\n while (tModel.get().getRowCount() > 0) {\n tModel.get().removeRow(0);\n }\n\n for (Object[] crawlResult : crawlResults) {\n tModel.get().addRow(crawlResult);\n }\n\n SwingUtilities.updateComponentTreeUI(WebCrawler.this);\n System.out.println(\"processing finished\");\n });\n\n\n JLabel l_export = new JLabel();\n l_export.setBounds(PADDING_LEFT,\n PADDING_TOP*4 + SINGLE_LINE_ELEMENT_HEIGHT*2 + SCROLL_PANE_HEIGHT,\n LABEL_WIDTH,\n SINGLE_LINE_ELEMENT_HEIGHT);\n l_export.setText(\"Export:\");\n\n JTextField tf_fileName = new JTextField();\n tf_fileName.setBounds(TF_PADDING,\n PADDING_TOP*4 + SINGLE_LINE_ELEMENT_HEIGHT*2 + SCROLL_PANE_HEIGHT,\n TF_WIDTH,\n SINGLE_LINE_ELEMENT_HEIGHT);\n tf_fileName.setName(\"ExportUrlTextField\");\n\n JButton b_saveData = new JButton(\"Save\");\n b_saveData.setBounds(BUTTON_PADDING,\n PADDING_TOP*4 + SINGLE_LINE_ELEMENT_HEIGHT*2 + SCROLL_PANE_HEIGHT,\n BUTTON_WIDTH,\n SINGLE_LINE_ELEMENT_HEIGHT);\n b_saveData.setName(\"ExportButton\");\n b_saveData.addActionListener(actionEvent -> {\n DataSaverToFile dstf = new DataSaverToFile(tf_fileName.getText(), tModel.get().getDataVector());\n dstf.save();\n });\n\n add(l_URL);\n add(tf_URL);\n add(l_tittle);\n add(l_tittleContent);\n add(b_download);\n add(scrollPane);\n\n add(l_export);\n add(tf_fileName);\n add(b_saveData);\n\n\n setLayout(null);\n setVisible(true);\n }", "@Override\n public void onClick(View v) {\n Uri uri = Uri.parse(\"https://www.google.com/?gws_rd=ssl#q=\" + mAnswer.getWord());\n Intent intent = new Intent(Intent.ACTION_VIEW, uri);\n startActivity(intent);\n }", "public static void searchWord(String URL, String wordToSearch){\n \tString curr_url = \"\";\n while(pagesVisited.size() < MAX_PAGES_TO_SEARCH){\n \t\tSpiderLeg leg = new SpiderLeg();\n\n \t\tif(pagesToVisit.isEmpty()){\n \t\t\tcurr_url = URL;\n \t\t\tpagesVisited.add(URL);\n \t\t}\n \t\telse{\n \t\t\tSystem.out.println(\"No such word found!!!\");\n \t\t}\n\n \t\tleg.crawl(curr_url);\n\n \t\tboolean success = leg.searchForWord(wordToSearch);\n\n \t\t//If we successfully find the word, print out ifo\n \t\tif(success){\n \t\t\tSystem.out.println(String.format(\"**Success** Word %s found at %s\", wordToSearch, curr_url));\n \t\t\tbreak;\n \t\t}\n\n \t\tpagesToVisit.addAll(leg.getLinks());\n \t}\n\n \tSystem.out.println(String.format(\"**Done** visiting %s\", curr_url));\n }", "void search();", "void search();", "public void searchNextPage() {\n if (!isPerformingQuery\n && isViewingRecipes\n && !isQueryExhausted().getValue()) {\n recipeRepository.searchNextPage();\n }\n }" ]
[ "0.5996992", "0.59895134", "0.5883461", "0.5833879", "0.5765127", "0.57466066", "0.56393707", "0.56137055", "0.55989283", "0.5584571", "0.55763024", "0.55734915", "0.55658525", "0.5538099", "0.5492685", "0.54006994", "0.5348234", "0.5333798", "0.53282887", "0.52828217", "0.526305", "0.5223757", "0.5197806", "0.5190732", "0.5189608", "0.51851785", "0.5174936", "0.5172117", "0.5158073", "0.5151837", "0.51510024", "0.51492155", "0.5147911", "0.51451445", "0.5137684", "0.5128528", "0.5074246", "0.5064403", "0.50539905", "0.5046935", "0.5016367", "0.50120246", "0.5008231", "0.50075835", "0.49974367", "0.49945995", "0.49819842", "0.49813706", "0.49732548", "0.49727613", "0.4961942", "0.494205", "0.49389374", "0.4935928", "0.493245", "0.49292055", "0.4926221", "0.4926137", "0.49184093", "0.49135622", "0.48964822", "0.48754206", "0.48750094", "0.48627818", "0.48611405", "0.4845707", "0.48448232", "0.48403642", "0.48390108", "0.48389566", "0.48224264", "0.48216087", "0.48086727", "0.47939762", "0.47900268", "0.4789425", "0.4779998", "0.47764674", "0.47760323", "0.4774447", "0.47707495", "0.4756627", "0.47499993", "0.4745507", "0.47443512", "0.47340336", "0.47322038", "0.4731275", "0.473124", "0.47217998", "0.47210875", "0.47210103", "0.47135156", "0.4713312", "0.47132862", "0.47115284", "0.47049645", "0.470216", "0.470216", "0.46957463" ]
0.65892416
0
Gives higher number in decimal.
static double getMax(double a, double b) { return (a > b) ? a : b; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "org.apache.xmlbeans.XmlDecimal xgetMaximum();", "java.math.BigDecimal getMaximum();", "org.apache.xmlbeans.XmlDecimal xgetWBMaximum();", "java.math.BigDecimal getWBMaximum();", "public int getMaxPayRaise ()\r\n {\r\n return maxPayRaise;\r\n }", "org.apache.xmlbeans.XmlDecimal xgetSingleBetMinimum();", "BigDecimal getHighPrice();", "Double getMaximumValue();", "private CDecimal getBestMultiplier(CDecimal x) {\n\t\tif ( x.compareTo(CDecimalBD.ZERO) <= 0 ) {\r\n\t\t\tthrow new IllegalArgumentException(\"Argument must be greater than zero but: \" + x);\r\n\t\t}\r\n\t\tBigDecimal f = x.toBigDecimal().remainder(BigDecimal.ONE);\r\n\t\tBigDecimal i = x.toBigDecimal().subtract(f);\r\n\t\tif ( i.compareTo(BigDecimal.ZERO) > 0 ) {\r\n\t\t\tString ps = i.toPlainString();\r\n\t\t\tint pp = ps.indexOf('.');\r\n\t\t\tif ( pp < 0 ) {\r\n\t\t\t\tpp = ps.length();\r\n\t\t\t}\r\n\t\t\tBigDecimal r = BigDecimal.TEN.pow(pp - 1);\r\n\t\t\treturn new CDecimalBD(r);\r\n\t\t} else {\r\n\t\t\tString ps = f.toPlainString();\r\n\t\t\tint pp = StringUtils.indexOfAny(ps, \"123456789\");\r\n\t\t\tif ( pp < 0 ) {\r\n\t\t\t\tthrow new IllegalStateException(\"Unable to find non-zero digits in fractional part: \" + f);\r\n\t\t\t}\r\n\t\t\tBigDecimal r = BigDecimal.ONE.divide(BigDecimal.TEN.pow(pp - 1));\r\n\t\t\treturn new CDecimalBD(r);\r\n\t\t}\r\n\t}", "java.math.BigDecimal getSingleBetMinimum();", "public BigDecimal getTradeMax() {\n return tradeMax;\n }", "public static int findDecimal(int currentDecimal, int previousNum, int lastDecimal) {\n if (previousNum > currentDecimal) {\n return lastDecimal - currentDecimal;\n //if if previous is greater than current then subtract that\n } else {\n return lastDecimal + currentDecimal;\n //if previous value is smaller than current then add current to total\n }\n}", "public int getLargestRoundNumber() {\n\t\tint result = -1;\n\t\ttry {\n\t\t\tthis.rs = smt.executeQuery(\"SELECT MAX(drawCnt) FROM tp.gamerecord\");\n\t\t\tif(this.rs.next())\n\t\t\t\tresult = this.rs.getInt(1);\n\t\t} catch (SQLException e) {\n\t\t\tSystem.err.println(\"Query is Failed!\");\n\t\t\te.printStackTrace();\n\t\t}\n\t\treturn result;\n\t}", "public double topInt(double tenths) {\n double rounded = Math.floor(tenths)+1.0;\n\n return rounded;\n}", "public int getMaxprice() {\n return maxprice;\n }", "public java.math.BigDecimal getHigh() {\n return high;\n }", "public long getPropertyBalanceMax();", "org.apache.xmlbeans.XmlDecimal xgetMultipleBetMinimum();", "BigDecimal getLowPrice();", "java.math.BigDecimal getFractionalMinimum();", "private float getLatestOvers() {\n // return 10.2 for simplicity\n return (float) 10.2;\n }", "float getGt();", "double getMax();", "double getMax();", "float getLt();", "int getMaxEXP();", "int getMaxEXP();", "public double getMaximumScore() {\n return 0.9; // TODO: parameter\n }", "java.math.BigDecimal getMultipleBetMinimum();", "public int nEigenOneOrGreater(){\n if(!this.pcaDone)this.pca();\n return this.greaterThanOneLimit;\n }", "public double getWitnessedMaxPrice() {\t\r\n\t\treturn witnessed_max_price;\r\n\t}", "public double maxValue() {\n return 1;\r\n }", "int getMaximum();", "public double lastNum() {\n // Variable of support.\n double supp = this.num;\n while (supp > 10) {\n supp = supp - 10;\n }\n return supp;\n }", "public BigDecimal maxPrice() {\n return this.maxPrice;\n }", "private static int getBonus(int sales) {\n if (sales > 5000) {\n\n return sales / 10;\n\n }\n return 0;\n }", "public int GetMaxVal();", "public double getMaximum() {\n return (max);\n }", "public int getMaxFloor();", "org.apache.xmlbeans.XmlDecimal xgetFractionalMinimum();", "private double limit(double num) {\n if (num > 1.0) {\n return 1.0;\n }\n if (num < 0) {\n return 0;\n }\n return num;\n }", "public float getMaxRatio();", "org.apache.xmlbeans.XmlDecimal xgetWagerMinimum();", "public int getMaxpower() {\n\t\treturn 0;\r\n\t}", "public int getBestValue() {\n return bestValue;\n }", "public double max(ArrayList<Double> x) {\n double round;\n round = Collections.max(x) * 100;\n round = Math.round(round);\n round /= 100;\n return round;\n\n }", "public long getPropertyBalanceMax()\n {\n return iPropertyBalanceMax.getValue();\n }", "double getMax() {\n\t\t\treturn value_max;\n\t\t}", "double getMaxAmountl() {\n\t\treturn MAX_AMOUNT;\n\t}", "static void getBiggestGain(long gain) {\n if (gain > biggestGain) {\n biggestGain = gain;\n }\n }", "public abstract int getMaximumValue();", "public float getMaxValue();", "public int best(){\n List<Integer> points = count();\n Integer max = 0;\n for (Integer p: points){\n if (p <= 21 && max < p){\n max = p;\n }\n }\n return max;\n }", "public int getMaxRound() {\n return maxRound;\n }", "public int getMaxAmount() {\n return _max;\n }", "private static int maxMp(int mp){\r\n int mMP = 0;\r\n mMP = mp + 5;\r\n return mMP;\r\n }", "public double getValue(){\n value*=100;\n value = Math.floor(value);\n value/=100;//returns to hundredths place\n return value;\n }", "public int getHigh()\t\n\t{\t//start of getHigh mehtod\n\t\treturn HIGH_NUM;\n\t}", "public double getMaximumValue() { return this.maximumValue; }", "public int determineHighestVal() {\n if (playerCards[0].value > playerCards[1].value) {\n return playerCards[0].value;\n }\n return playerCards[1].value;\n\n }", "public static void main(String[] args) {\n int min=100;\n int max=999;\n int random = (int) (min + Math.random() * (max - min));\n int a=random%10;\n int a1=(random/10)%10;\n int a2=(random/100)%10;\n System.out.println(\"Число = \" +random +\" наибольшее число = \" +Math.max(a, Math.max(a1,a2)));\n}", "public int betThisAmountOrNextLargest(int y) {\n if (playerMoney >= y) {\n return y;\n } else {//\n return playerMoney;\n\n }\n\n }", "public int prIce_Per_GUeSt(int NO_OF_PEOPLE){\r\n if (NO_OF_PEOPLE>50){\r\n price_per_guest=lower_price_per_guest;\r\n System.out.println(\"PER_PERSON_PRICE = \"+lower_price_per_guest);\r\n int total_price = price_per_guest* NO_OF_PEOPLE;\r\n return total_price;\r\n }\r\n else\r\n {price_per_guest=Highest_price_per_guest;\r\n int total_price = price_per_guest* NO_OF_PEOPLE;\r\n System.out.println(\"PER_PERSON_PRICE = \"+Highest_price_per_guest);\r\n return total_price;}\r\n }", "java.math.BigDecimal getWagerMinimum();", "void xsetMaximum(org.apache.xmlbeans.XmlDecimal maximum);", "public double calcularAlvoMaximo() {\r\n\t\treturn calcularFrequenciaMaxima()*0.85;\r\n\t}", "public double getMaxVal() {\n return maxVal;\n }", "public static double calculateLimit() {\n return 500;\n }", "public BigDecimal getPriceLimit();", "public float getMax()\n {\n parse_text();\n return max;\n }", "public Double getMaximumValue () {\r\n\t\treturn (maxValue);\r\n\t}", "public int getMax() {\n\t\treturn getMax(0.0f);\n\t}", "public int getBestPrice() {\n\t\treturn this.bestPrice;\n\t}", "protected static double limit(double num) {\r\n\t\tif (num > 1.0) {\r\n\t\t\treturn 1.0;\r\n\t\t}\r\n\t\tif (num < -1.0) {\r\n\t\t\treturn -1.0;\r\n\t\t}\r\n\t\treturn num;\r\n\t}", "public static double max(double num1, double num2){\n if(num1 > num2){\n return num1;\n }else{\n return num2;\n }\n }", "public double getHigh() {\n return high;\n }", "public double getHigh() { return high;}", "int getMaxMP();", "int getMaxMP();", "int getMaxMP();", "int getMaxMP();", "int getMaxMP();", "int getMaxMP();", "public float getMaxCY5();", "public int getSellPrice(){\n\t\treturn (int)(price * 0.6);\n\t}", "public final double getMax() {\r\n\t\treturn this.m_max;\r\n\t}", "public double getNumericalLimit() {\n\treturn NUMERICAL_LIMIT;\n }", "public float getMaximumFloat() {\n/* 266 */ return (float)this.max;\n/* */ }", "public int getMaxTotalCost();", "public double calculateMaximumAmount() {\n\t\t\n\t\tdouble maxAmount = 0;\n\t\t\n /**\n * The max(Collection<? extends T>, Comparator<? super T>) method is used \n * to return the maximum element of the given collection, according to the \n * order induced by the specified comparator\t\t\t\n */\t\n\t\tmaxAmount = (double)getMaximumSize()/Collections.max(tokenSizes.values());\n\t\t\n\t\treturn maxAmount;\t\n\t}", "public Number getMaximumNumber() {\n/* 221 */ if (this.maxObject == null) {\n/* 222 */ this.maxObject = new Long(this.max);\n/* */ }\n/* 224 */ return this.maxObject;\n/* */ }", "final public int getMaxPrecision()\n {\n return ComponentUtils.resolveInteger(getProperty(MAX_PRECISION_KEY), 0);\n }", "public int getPrecision() { \n\t\tString bigdRep = this.getValue().toPlainString(); // wth?\n\t\tint precision = bigdRep.length();\n\t\tprecision = precision - bigdRep.lastIndexOf('.');\n\t\treturn precision;\n\t}", "private float randomPrice() {\n float price = floatRandom(this.maxRandomPrice);\n return price;\n }", "int getMax( int max );", "public int robBest(TreeNode root) {\n\t\treturn maxMoney(root)[1];\n\t}", "int getMaxHP();", "int getMaxHP();", "int getMaxHP();", "int getMaxHP();" ]
[ "0.6933689", "0.6820043", "0.67792183", "0.67693865", "0.65794015", "0.65389204", "0.65350705", "0.6361425", "0.6333892", "0.6327956", "0.6289617", "0.62718475", "0.62576747", "0.62535304", "0.623305", "0.61996466", "0.6182421", "0.61359614", "0.6132406", "0.61192167", "0.6118626", "0.61162347", "0.610931", "0.610931", "0.6097144", "0.6095232", "0.6095232", "0.60951483", "0.60613203", "0.60512793", "0.6050093", "0.6045256", "0.60398555", "0.6033959", "0.6027898", "0.60236937", "0.60181373", "0.5995624", "0.59928167", "0.5987199", "0.5972111", "0.5970645", "0.5959654", "0.59483665", "0.59431607", "0.5941745", "0.5935068", "0.5932446", "0.5931143", "0.59292734", "0.5927886", "0.5915958", "0.5913678", "0.5904292", "0.5898963", "0.58871955", "0.5886107", "0.5882326", "0.587908", "0.58716154", "0.58515114", "0.58475333", "0.5846052", "0.58430904", "0.584151", "0.58355784", "0.5824026", "0.58120275", "0.5805962", "0.5803465", "0.57981336", "0.57958263", "0.57919604", "0.57860696", "0.5784841", "0.57790124", "0.5773315", "0.5773235", "0.5773235", "0.5773235", "0.5773235", "0.5773235", "0.5773235", "0.57701534", "0.5768464", "0.5768461", "0.57628894", "0.5761175", "0.576001", "0.5750801", "0.5748894", "0.57470703", "0.5744609", "0.5735855", "0.5719531", "0.5714395", "0.5714359", "0.5714359", "0.5714359", "0.5714359" ]
0.6066815
28
Gives highest number in int array.
static int getMax(int[] array) { if (array.length > 6 && array.length < 0) { throw new IndexOutOfBoundsException("There is no that index in this array."); } int max = 0; for (int i = 0; i < array.length; i++) { if (max < array[i]) { max = array[i]; } } return max; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static int maximo (int[] array) {\n\t\tint max = array[0], i;\n\t\t\n\t\tfor (i = 1; i < array.length; i++) {\n\t\t\tif (array[i] > max) {\n\t\t\t\tmax = array[i];\n\t\t\t}\n\t\t}\n\t\t\n\t\treturn max;\n\t}", "public static int getMaximum(int[] array) {\n int length = array.length;\n int max = array[0];\n for (int i = 1; i < length; i++) {\n if(max < array[i]) {\n max = array[i];\n }\n }\n\n Arrays.sort(array);\n// return array[length - 1];\n return max;\n }", "static int findHighestNumber(int [] array){\n int highestNumber = array [0];\n for (int x=0; x< array.length; x++){\n if (highestNumber<array[x]){\n highestNumber=array[x];\n }\n }\nreturn highestNumber;\n}", "public static int get_max(Integer[] a){\n int max = Integer.MIN_VALUE;\n\n for (int i = 0; i < a.length; i++){\n if (a[i] > max);\n max = a[i];\n }\n return max;\n }", "public int max()\n\t{\n\t\tif (arraySize > 0)\n\t\t{\n\t\t\tint maxNumber = array[0];\n\t\t\tfor (int index = 0; index < arraySize; index++) \n\t\t\t{\n\t\t\t\tif (array[index] > maxNumber)\n\t\t\t\t{\n\t\t\t\t\tmaxNumber = array[index];\n\t\t\t\t}\n\t\t\t}\t\t\t\n\t\t\treturn maxNumber;\n\t\t}\n\t\treturn -1;\n\t\t\n\t}", "public static int getMax(int[] array) {\n //TODO: write code here\n int max = array[0];\n for(int a : array) {\n max = a > max ? a : max;\n }\n return max;\n }", "public int getLargestInteger(int[] arr) {\r\n\t\tint ret = arr[0];\r\n\t\tfor (int i = 1; i < arr.length; i++) {\r\n\t\t\tif (arr[i] > ret) {\r\n\t\t\t\tret = arr[i];\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn ret;\r\n\t}", "private static int max(int[] array) {\n int result = array[0];\n for (int x : array)\n result = Math.max(x, result);\n return result;\n }", "public Integer findLargestNumber() {\r\n\t\t// take base index element as largest number\r\n\t\tInteger largestNumber = numArray[0];\r\n\t\t// smallest number find logic\r\n\t\tfor (int i = 1; i < numArray.length; i++) {\r\n\t\t\tif (numArray[i] != null && numArray[i] > largestNumber) {\r\n\t\t\t\tlargestNumber = numArray[i];\r\n\t\t\t}\r\n\t\t}\r\n\t\t// return smallest number from the given array\r\n\t\treturn largestNumber;\r\n\t}", "public int findMax(int[] arr) {\n return 0;\n }", "public static int max(int[] a) {\n\t\tint b=a[0];\r\n\t\tfor(int i=0;i<a.length;i++) {\r\n\t\t\tif(a[i]>b) {\r\n\t\t\t\tb=a[i];\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn b;\r\n\t}", "int max() {\n\t\t// added my sort method in the beginning to sort out array\n\t\tint n = array.length;\n\t\tint temp = 0;\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\tfor (int j = 1; j < (n - i); j++) {\n\n\t\t\t\tif (array[j - 1] > array[j]) {\n\t\t\t\t\ttemp = array[j - 1];\n\t\t\t\t\tarray[j - 1] = array[j];\n\t\t\t\t\tarray[j] = temp;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t// finds the last term in the array --> if array is sorted then the last\n\t\t// term should be max\n\t\tint x = array[array.length - 1];\n\t\treturn x;\n\t}", "public static int max(int[] theArray) {\n\n int biggest = theArray[0];\n\n //Converts the array to a list\n List<Integer> values = Arrays.stream(theArray).boxed().collect(Collectors.toList());\n\n //get the biggest by streaming the list and using min which gets the min value by using the Integer Comparator.comparing().\n //which means it will loop through the array and compare all the values for the biggest values\n biggest= values.stream().max(Integer::compare).get();\n\n// //Alternative code does the samething\n// for (int number : theArray) {\n//\n// if (biggest < number) {\n// biggest = number;\n// }\n// }\n\n return biggest;\n\n }", "public static int max(int[] a){\r\n\t\tint m = a[0];\r\n\t\tfor( int i=1; i<a.length; i++ )\r\n\t\t\tif( m < a[i] ) m = a[i];\r\n\t\treturn m;\r\n\t}", "public static int getMax(int[] inputArray){ \n int maxValue = inputArray[0]; \n for(int i=1;i < inputArray.length;i++){ \n if(inputArray[i] > maxValue){ \n maxValue = inputArray[i]; \n } \n } \n return maxValue; \n }", "public static int findMax(int arr[]){\n int max =Integer.MIN_VALUE;\n\n //find max\n for(int i =0;i<arr.length;i++){\n if (arr[i]>max){\n max=arr[i];\n }\n }\n return max;\n }", "int findMax(int[] arr){\n\t\tint maximum=0;\n\t\tfor (int i=0; i<arr.length; i++) {\n\t\t\tif (arr[i]>maximum) {\n\t\t\t\tmaximum=arr[i];\n\t\t\t}\n\t\t}\n\t\treturn maximum;\n\t}", "public static int getMax(int arr[][]) {\n\t\tint maxNum;\n\t\t\n\t\tmaxNum = arr[0][0];\n\t\tfor (int i = 0; i < arr.length; i++) {\n\t\t\tfor (int j = 0; j < arr[i].length; j++) {\n\t\t\t\tif (arr[i][j] > maxNum) {\n\t\t\t\t\tmaxNum = arr[i][j];\n\t\t\t\t}\n\t\t\t}\n\t\t} // end of outer for\n\t\treturn maxNum;\n\t}", "public static int max(int[] m) {\n int max_num = m[0];\n int index = 1;\n\n while(index < m.length) {\n if(m[index] > max_num){\n max_num = m[index];\n }\n index += 1;\n }\n\n return max_num;\n }", "public static int getMax(int[] arr) {\r\n\r\n\t\tint max = arr[0];\r\n\r\n\t\tfor (int x = 1; x < arr.length; x++) {\r\n\t\t\tif (arr[x] > max)\r\n\t\t\t\tmax = arr[x];\r\n\r\n\t\t}\r\n\t\treturn max;\r\n\r\n\t}", "public static int max(int[] arr){\n return maxInRange(arr, 0, arr.length-1);\n }", "public int findMax() {\n\t\tint max = (int)data.get(0);\n\t\tfor (int count = 1; count < data.size(); count++)\n\t\t\tif ( (int)data.get(count) > max)\n\t\t\t\tmax = (int)data.get(count);\n\t\treturn max;\n\t}", "public static int findMax(int[] a) {\r\n int max = a[0];\r\n\r\n //10th error , n = 1\r\n for (int n = 1; n < a.length; n++) {\r\n if (a[n] > max) {\r\n max = a[n];\r\n }\r\n }\r\n return max;\r\n\r\n }", "public T findHighest(){\n T highest = array[0];\n for (int i=0;i<array.length; i++)\n {\n if (array[i].doubleValue()>highest.doubleValue())\n {\n highest = array[i];\n } \n }\n return highest;\n }", "int max(){\r\n int auxMax = array[0];\r\n for (int i=1;i<array.length;i++){\r\n if(array[i] > auxMax){\r\n auxMax = array[i];\r\n }\r\n }\r\n return auxMax;\r\n }", "public static int maxValue(int [] array){\n int hold = array[0];\n for(int i = 1; i < array.length; i++){\n if(array[i] > hold){\n hold = array[i];\n }\n }\n return hold;\n }", "public static int getMaxValue(int[] numberArray)\n\t{\n\t\tint maxValue = numberArray[0];\n\t\tfor (int i = 1; i < numberArray.length; i++)\n\t\t{\n\t\t\tif (numberArray[i] > maxValue)\n\t\t\t\tmaxValue = numberArray[i];\n\t\t}\n\t\treturn maxValue;\n\t}", "public static int max(int[] m) {\n int x = 1;\n int ret = m[0];\n while (x < m.length) {\n if (m[x] > ret) {\n ret = m[x];\n }\n x = x + 1;\n }\n return ret;\n }", "public static int maxValue(int[] numArr) {\r\n\t\tint temp = numArr[0] > numArr[1] ? numArr[0] : numArr[1];\r\n\t\tfor (int i = 2; i < numArr.length; i++) {\r\n\t\t\ttemp = temp > numArr[i] ? temp : numArr[i];\r\n\t\t}\r\n\t\treturn temp;\r\n\t}", "public static int max(int[] array){\n \n if(array == null){\n \n throw new IllegalArgumentException(\"Array cannot be null\");\n }\n else if(array.length==0){\n throw new IllegalArgumentException(\"Array cannot be empty\");\n }\n \n int max = array[0];\n \n for(int i = 1; i < array.length; i++){\n \n if(array[i] > max){\n max = array[i];\n }\n }\n return max;\n }", "private static int findMaxInArr(int[] arr) {\n\n\t\tint max = arr[0];\n\t\tfor (int elem : arr) {\n\t\t\tif (elem > max) {\n\t\t\t\tmax = elem;\n\t\t\t}\n\t\t}\n\t\treturn max;\n\t}", "public static int getMax(int[] scores) {\r\n\t\r\n\t\tint temp = scores[0];\r\n\t\tfor(int i = 1; i < scores.length; ++i) {\r\n\t\t\r\n\t\t\tif (scores[i] > temp) {\r\n\t\t\t\ttemp = scores[i];\r\n\t\t\t}\r\n\t\t\r\n\t\t}\r\n\t\t\r\n\t\treturn temp;\r\n\t\r\n\t}", "public int getIndexOfMaxNumber(int[] array) {\n\t\tint left = 0, right = array.length - 1;\n\t\twhile (left < right - 1) {\n\t\t\tint mid = left + (right - left) / 2;\n\t\t\tif (array[mid - 1] > array[mid]) {\n\t\t\t\treturn mid - 1;\n\t\t\t}\n\t\t\tif (array[mid] > array[mid + 1]) {\n\t\t\t\treturn mid;\n\t\t\t}\n\t\t\t// up to this point,\n\t\t\t// mid == right || array[mid] < array[mid + 1] ||\n\t\t\t// mid == left || array[mid - 1] < array[mid]\n\t\t\tif (array[mid] <= array[left]) {\n\t\t\t\tright = mid;\n\t\t\t} else {\n\t\t\t\tleft = mid;\n\t\t\t}\n\t\t}\n\t\t// up to this point, left == right - 1;\n\t\treturn array[left] >= array[right] ? left : right;\n\t}", "public void findMax(int[] arr){\n int max = arr[0];\n for(int val : arr){\n if(max < val){\n max = val;\n }\n }\n System.out.println( \"Maximum values: \" + max );\n }", "public static int getIndexOfMax(double[] array){\n\n int largest = 0;\n for ( int i = 1; i < array.length; i++ )\n {\n if ( array[i] > array[largest] ) largest = i;\n }\n return largest;\n\n }", "public static void main(String[] args) {\nint arr[]=new int[] {10,20,36,50,30};\nint max=0,i;\nfor(i=0;i<arr.length;i++)\n{\n\tif(arr[i]>max)\n\t{\n\t\tmax=arr[i];\n\t}\n}\nSystem.out.println(max);\n\t}", "public int getMaxNum(int[] arr) {\n int left = 0, right = arr.length - 1, mid;\n while (left < right) {\n mid = left + (right - left) / 2;\n if (arr[mid] > arr[mid + 1]) right = mid; // in the right half\n else if (arr[mid] < arr[mid + 1]) left = mid + 1; // in the left half\n }\n return arr[left]; // left == right\n }", "private static int getMax(int[] arr, int i) {\n\t\tif (i == 0) {\n\t\t\treturn arr[0];\n\t\t}\n\t\treturn Math.max(getMax(arr,i-1),arr[i]);\n\t}", "int getMax( int max );", "private static int[] findGreatestNumInArray(int[] array) {\r\n\t\tint maxValue = Integer.MIN_VALUE;\r\n \r\n\t\tint secondValue = Integer.MIN_VALUE;\r\n\t\t\r\n\t\tint thirdValue = Integer.MIN_VALUE;\r\n\t\t\r\n\t int[] result = new int[2];\r\n\t \r\n\t int[] result2 = new int[3];\r\n\t\tfor (int i = 0; i < array.length; i++) {\r\n\t\t\tif (array[i] > maxValue) {\r\n\t\t\t\tthirdValue = secondValue;\r\n\t\t\t\tsecondValue = maxValue;\r\n\t\t\t\tmaxValue = array[i];\r\n\t\t\t\t\r\n\t\t\t}\r\n\t\t\telse if(array[i]>secondValue)\r\n\t\t\t{\r\n\t\t\t\tsecondValue = array[i];\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\telse if(array[i]>thirdValue)\r\n\t\t\t{\r\n\t\t\t\tthirdValue = array[i];\r\n\t\t\t}\r\n\t\t}\r\n\t\tallowResult( result,maxValue,secondValue);\r\n\t\t\r\n\t\tallowResult( result2,maxValue,secondValue,thirdValue);\r\n\t\t//return maxValue;\r\n\t\treturn result2;\r\n\t}", "public static int getMax(int arr[], int n)\n {\n int mx = arr[0];\n for (int i = 1; i < n; i++)\n {\n if (arr[i] > mx)\n {\n mx = arr[i];\n }\n }\n return mx;\n }", "private static int maxValue(int[] a) {\n\t\tint max_value =0;\r\n\t\tint current_max=0;\r\n\t\t\r\n\t\tfor(int i=0;i<a.length;i++)\r\n\t\t{\r\n\t\t\tcurrent_max += a[i];\r\n\t\t\tmax_value= Math.max(max_value, current_max);\r\n\t\t\tif(a[i]<0)\r\n\t\t\t\tcurrent_max=0;\r\n\t\t}\r\n\t\t\r\n\t\treturn max_value;\r\n\t}", "public static int indexOfMax(int[] array)\n {\n int max = array[0];\n int maxIndex = 0;\n for(int i = 1; i < array.length; i++)\n {\n if(array[i] > max)\n {\n max = array[i];\n maxIndex = i;\n }\n }\n return maxIndex;\n }", "public static int getMax(float[][] storage) {\n float []arr=new float[WINDOW];\n for (int i = 0;i<WINDOW;i++){\n arr[i]=storage[i][1];\n }\n\n if(arr==null||arr.length==0){\n return 0;//如果数组为空 或者是长度为0 就返回null\n }\n int maxIndex=0;//假设第一个元素为最小值 那么下标设为0\n int[] arrnew=new int[2];//设置一个 长度为2的数组 用作记录 规定第一个元素存储最小值 第二个元素存储下标\n for(int i =0;i<arr.length-1;i++){\n if(arr[maxIndex]<arr[i+1]){\n maxIndex=i+1;\n }\n }\n arrnew[0]=(int)arr[maxIndex];\n arrnew[1]=maxIndex;\n\n return arrnew[0];\n }", "public static int secondLargestNum(int[] arr) {\n int max = 0;\n int secondNum = 0;\n for (int i = 0; i < arr.length; i++) {\n if (arr[i] > max) {\n secondNum = max;\n max = arr[i];\n }\n }\n return secondNum;\n }", "double largestNumber(double[] a) {\n\t\tdouble max = a[0];\n\t\tdouble no = 0;\n\t\tfor (int index = 1; index < a.length; index++) {\n\t\t\tif (max > a[index] && max > a[index + 1]) {\n\t\t\t\tno = max;\n\t\t\t\tbreak;\n\t\t\t} else if (a[index] > max && a[index] > a[index + 1]) {\n\t\t\t\tno = a[index];\n\t\t\t\tbreak;\n\t\t\t} else if (a[index + 1] > max && a[index + 1] > a[index]) {\n\t\t\t\tno = a[index + 1];\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\treturn no;\n\t}", "public int theHighest() {\r\n\t\tint highest = 0;\r\n\t\tfor(int i = 0; i < rows_size; i++) {\r\n\t\t\tfor(int j = 0; j < columns_size; j++) {\r\n\t\t\t\tif(game[i][j].getValue() > highest)\r\n\t\t\t\t\thighest = game[i][j].getValue();\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn highest;\r\n\t}", "public static int max(int[] numbers) {\n\t\tint max = numbers[0];\n\t\tfor(int i = 0; i < numbers.length; i++) {\n\t\t\t// 7 < 4\n\t\t\tif(max < numbers[i]) {\n\t\t\t// 7\n\t\t\t\tmax = numbers[i];\n\t\t\t}\n\t\t}\n\t\t\n\t\treturn max;\n\t}", "public static int findMaxSubarray(int[] array) {\r\n\t\tint max = Integer.MIN_VALUE;\r\n//\t\tint index = 0;\r\n\t\tint currMax = 0;\r\n\t\tfor(int v : array) {\r\n\t\t\tcurrMax += v;\r\n\t\t\tif(currMax > max) {\r\n\t\t\t\tmax = currMax;\r\n\t\t\t} \r\n\t\t\tif(currMax < 0) {\r\n\t\t\t\tcurrMax = 0;\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn max;\r\n\t}", "public int maxValue( int[ ] n ) {\n int max = Integer.MIN_VALUE;\n for(int each: n){\n if(each > max){\n max = each;\n }\n }\n return max;\n }", "public int calculateMaximumPosition() {\n\t\tdouble[] maxVal = { inputArray[0], 0 };\n\t\tfor (int i = 0; i < inputArray.length; i++) {\n\t\t\tif (inputArray[i] > maxVal[0]) {\n\t\t\t\tmaxVal[0] = inputArray[i];\n\t\t\t\tmaxVal[1] = i;\n\t\t\t}\n\t\t}\n\t\treturn (int) maxVal[1];\n\t}", "int getMaxInt();", "public static int max(int[] mainArray) {\r\n\t\tint max1 = 0;\r\n\t\tfor(int greaterThan = 1; greaterThan < mainArray.length; greaterThan ++) {\r\n\r\n\t\t\tif(mainArray[greaterThan]>mainArray[max1]) {\r\n\t\t\t\tmax1 = greaterThan;\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn max1;\r\n\t}", "int getMaximum();", "public int findHighestTemp() {\n\t\t\n\t\tint max = 0;\n\t\tint indexHigh = 0;\n\t\tfor (int i=0; i<temps.length; i++)\n\t\t\tif (temps[i][0] > max) {\n\t\t\t\tmax = temps[i][0];\n\t\t\t\tindexHigh = i;\n\t\t\t}\n\t\t\n\t\treturn indexHigh;\n\t\t\n\t}", "private static int getMax(int[] original) {\n int max = original[0];\n for(int i = 1; i < original.length; i++) {\n if(original[i] > max) max = original[i];\n }\n return max;\n }", "int getMax();", "public static int argmax(float[] array) {\n\t\tfloat max = array[0];\n\t\tint re = 0;\n\t\tfor (int i=1; i<array.length; i++) {\n\t\t\tif (array[i]>max) {\n\t\t\t\tmax = array[i];\n\t\t\t\tre = i;\n\t\t\t}\n\t\t}\n\t\treturn re;\n\t}", "public static void main(String[] args) {\n int[] nums = {24, 32, 1, 0, -57, 982, 446, 11, 177, 390, 2923, 7648, 242, 234, 1123, 875};\n int maxValue = nums[0];\n\n for(int i = 0; i < nums.length; i++) {\n if (nums[i] > maxValue) {\n maxValue = nums[i];\n }\n }\n System.out.println(\"Max Value in Array: \" + maxValue);\n }", "public static void arrayMax(){\n int [] array={12,3,4,5,6,1,0,3};\n //using the for loop to iterate through the numbers in the array\n int max=array[0];\n int size=array.length;\n\n for(int i = 0; i<size; i++){\n if(array[i]>max){\n max=array[i];\n }\n }\n System.out.println(new StringBuilder().append(max).append(\": is the maximum number in the given array.\").toString());\n\n }", "private int maxIndex(int[] values){\n int curMaxIndex = 0;\n int curMax = values[0];\n for(int i = 1; i < values.length; i++){\n if(values[i] > curMax){\n curMaxIndex = i;\n curMax = values[i];\n }\n }\n return curMaxIndex;\n }", "int max();", "public static int findMax(Integer[] X, int low, int high)\n\t\t{if (low + 1 > high) {return X[low];}\n\t\telse {return Math.max(Math.abs(X[low]), Math.abs(findMax(X, low + 1, high)));}\n\t\t}", "public static void main(String[] args) {\n int[] arr={24,34,56,98,2,59};\r\n int val =arr [0];\r\n for(int i=0;i<arr.length;i++){\r\n \t if(arr[i]>val){\r\n \t\t val=arr[i];\r\n \t }\r\n }\r\n System.out.println(\"largest value\"+ val);\r\n\t}", "public int getMaxIndex(int[] paraArray) {\r\n\t\tint maxIndex = 0;\r\n\t\tint tempIndex = 0;\r\n\t\tint max = paraArray[0];\r\n\r\n\t\tfor (int i = 0; i < paraArray.length; i++) {\r\n\t\t\tif (paraArray[i] > max) {\r\n\t\t\t\tmax = paraArray[i];\r\n\t\t\t\ttempIndex = i;\r\n\t\t\t} // of if\r\n\t\t} // of for i\r\n\t\tmaxIndex = tempIndex;\r\n\t\treturn maxIndex;\r\n\t}", "public static int max(int[] a) throws IllegalArgumentException {\n if (a == null || a.length == 0) {\n throw new IllegalArgumentException();\n }\n int max = a[0];\n \n if (a.length > 1) {\n for (int i = 1; i < a.length; i++) {\n if (a[i] > max) {\n max = a[i];\n }\n }\n }\n return max;\n }", "public static int getMaxIndex(double[] array)\r\n\t{\r\n\t\tdouble max = Double.NEGATIVE_INFINITY;\r\n\t\tint maxIndex = 0;\r\n\t\tfor (int i = 0; i < array.length; i++)\r\n\t\t\tif (max < array[i]) {\r\n\t\t\t\tmax = array[i];\r\n\t\t\t\tmaxIndex = i;\r\n\t\t\t}\r\n\t\treturn maxIndex;\r\n\t}", "public Integer findMax(int[] arr2){\n\t\tif(arr2.length < 2){\n\t\t\tSystem.out.println(arr2[0]);\n\t\t\treturn 0;\n\t\t}\n\t\tint max = arr2[0];\n\t\tfor(int c = 1; c < arr2.length; c++){\n\t\t\tif(arr2[c] > max){\n\t\t\t\tmax = arr2[c];\n\t\t\t}else{\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(max);\n\t\treturn 0;\n\t}", "public static int findMax(int[] elements) {\n int max = 0;\n for (int i = 0; i < elements.length; i++) {\n int element = elements[i];\n\n if (element > max) {\n max = element;\n }\n }\n return max;\n }", "public int maxDigit() {\n int maxDigit = 1;\n for (int i = 0; i < theArray.length; i++) {\n int n = numberOfDigit(theArray[i]);\n if (n > maxDigit)\n maxDigit = n;\n }\n return maxDigit;\n }", "public static int findLargest(int[] data){\n\t\tint lo=0, hi=data.length-1;\n\t\tint mid = (lo+hi)/2;\n\t\tint N = data.length-1;\n\t\twhile (lo <= hi){\n\t\t\tint val = data[mid];\n\t\t\tif(mid == 0 ) return (val > data[mid+1]) ? mid : -1;\n\t\t\telse if(mid == N) return (val > data[mid-1]) ? mid : -1;\n\t\t\telse{\n\t\t\t\tint prev = data[mid-1];\n\t\t\t\tint next = data[mid+1];\n\t\t\t\tif(prev < val && val < next) lo=mid+1;\n\t\t\t\telse if(prev > val && val > next) hi = mid-1;\n\t\t\t\telse return mid; // prev > val && val > next // is the only other case\n\t\t\t\tmid = (lo+hi)/2;\n\t\t\t}\n\t\t}\n\t\treturn -1;\n\t}", "public int nthLargest(int i) {\n Vector<Integer> rVector;\n if (i <= 0 || i > arr.size()){\n throw new IllegalArgumentException();\n } else {\n rVector = quickSort(arr, i);\n return rVector.get(0);\n }\n }", "public int heapExtractMax(){\n\t\tint max = a[0];\t\n\t\ta[0] = a[n-1];\n\t\ta[n-1] = Integer.MIN_VALUE;\n\t\tn--;\n\t\tmaxHeapfy(0);\t\t\n\t\treturn max;\n\t}", "protected final int getMax() {\n\treturn(this.max);\n }", "public static short highestPrime(short maxNum)\n { \n for (short i = maxNum ; i >= 1 ; i--) \n {\n if(isPrime(i))\n {\n return i;\n }\n }\n return 0;\n }", "public int getMaximumInteger() {\n/* 244 */ return (int)this.max;\n/* */ }", "private static int maxIndex(int[] vals) {\n \n int indOfMax = 0;\n int maxSoFar = vals[0];\n \n for (int i=1;i<vals.length;i++){\n \n if (vals[i]>maxSoFar) {\n maxSoFar = vals[i];\n indOfMax = i;\n }\n }\n \n return indOfMax;\n }", "public int getMax(){\n return tab[rangMax()];\n }", "public static int max() {\r\n\r\n\t\tint[] arr1 = ArrayMethods.get5();\r\n\t\tint[] arr2 = ArrayMethods.get5();\r\n\r\n\t\tint sum1 = 0;\r\n\t\tint sum2 = 0;\r\n\r\n\t\tint max = 0;\r\n\r\n\t\tfor (int num : arr1) {\r\n\t\t\tsum1 += num;\r\n\t\t}\r\n\t\tfor (int num : arr2) {\r\n\t\t\tsum2 += num;\r\n\t\t}\r\n\r\n\t\tif (sum1 > sum2) {\r\n\r\n\t\t\tmax = sum1;\r\n\r\n\t\t} else if (sum1 == sum2) {\r\n\r\n\t\t\tmax = sum1;\r\n\r\n\t\t} else {\r\n\r\n\t\t\tmax = sum2;\r\n\t\t}\r\n\t\treturn max;\r\n\t}", "public int determineHighestVal() {\n if (playerCards[0].value > playerCards[1].value) {\n return playerCards[0].value;\n }\n return playerCards[1].value;\n\n }", "public int getMax(){ //find the max Score\n\t\tint max = Integer.MIN_VALUE;\n\t for(int i=0; i<scoreList.size(); i++){\n\t if(scoreList.get(i) > max){\n\t max = scoreList.get(i);\n\t }\n\t }\n\t return max;\n\t}", "public static void main(String[] args) {\n int[] arr = {123,100,200,345,456,678,89,90,10,56};\n Arrays.sort(arr);\n System.out.println(Arrays.toString(arr));\n int lastIndex = arr.length-1;\n int secondIndexNUm =lastIndex-1; //arr.length-1-1;\n int secondMaxNum = arr[secondIndexNUm];\n System.out.println(secondMaxNum);\n\n int[]arr2 = {1,2,3,4,5,6};\n int num2 =secondMax(arr2);\n System.out.println(num2 );\n\n }", "public int getMax()\n\t{\n\t\treturn max;\n\t}", "public long getHighestPrimeNr(){\n Cursor cursor = database.query(PrimeNrBaseHelper.TABLE, new String[] {\"MAX(\"+PrimeNrBaseHelper.PRIME_NR+\") AS MAX\"},null,null,null\n ,null,null);\n\n long pnr = 0;\n\n try {\n cursor.moveToFirst();\n pnr = cursor.getLong(cursor.getColumnIndex(\"MAX\"));\n } finally {\n cursor.close();\n }\n\n return (pnr > 0) ? pnr : SMALLEST_PRIME_NR;\n }", "public static int argmax(double[] array) {\n\t\tdouble max = array[0];\n\t\tint re = 0;\n\t\tfor (int i=1; i<array.length; i++) {\n\t\t\tif (array[i]>max) {\n\t\t\t\tmax = array[i];\n\t\t\t\tre = i;\n\t\t\t}\n\t\t}\n\t\treturn re;\n\t}", "public long max() {\n\t\tif (!this.isEmpty()) {\n\t\t\tlong result = theElements[0];\n\t\t\tfor (int i=1; i<numElements; i++) {\n\t\t\t\tif (theElements[i] > result) {\n\t\t\t\t\tresult = theElements[i];\n\t\t\t\t}\n\t\t\t}\n\t\t\treturn result;\n\t\t}\n\t\telse {\n\t\t\tthrow new RuntimeException(\"Attempted to find max of empty array\");\n\t\t}\n\t}", "public int getMaxIntValue();", "public int thirdLargestDigit(int[] array){\r\n\t\t\t\r\n\t\tint max = 0;\r\n\t\tint secondMax = 0;\r\n\t\tint thirdMax = 0;\r\n\t\ttry{\r\n\r\n\t\t\tfor(int index=0 ; index<array.length ; index++) {\r\n\r\n\t\t\t\tif(array[index] > max){\r\n\t\t\t\t\t\r\n\t\t\t\t\tthirdMax = secondMax;\r\n\t\t\t\t\tsecondMax = max;\r\n\t\t\t\t\tmax = array[index];\r\n\t\t\t\t} else if(array[index] < max && array[index] > secondMax) {\r\n\t\t\t\t\t\r\n\t\t\t\t\tthirdMax = secondMax;\r\n\t\t\t\t\tsecondMax = array[index];\r\n\t\t\t\t} else if(array[index] < secondMax && array[index] > thirdMax) {\r\n\t\t\t\t\t\r\n\t\t\t\t\tthirdMax = array[index];\t\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t} catch(Exception ex){\r\n\t\t\t\t\r\n\t\t\tSystem.out.println(\"Something went wrong: \"+ex.getMessage());\r\n\t\t}\r\n\t\treturn thirdMax;\r\n\t}", "public static int max_forloop(int[] m) {\n int max_num = m[0];\n\n for (int index = 1; index < m.length; index ++) {\n if(m[index] > max_num) {\n max_num = m[index];\n }\n }\n\n return max_num;\n }", "public double max(){\r\n\t\t//variable for max val\r\n\t\tdouble max = this.data[0];\r\n\t\t\r\n\t\tfor (int i = 1; i < this.data.length; i++){\r\n\t\t\t//if the maximum is less than the current index, change max to that value\r\n\t\t\tif (max < this.data[i]){\r\n\t\t\t\tmax = this.data[i];\r\n\t\t\t}\r\n\t\t}\r\n\t\t//return the maximum val\r\n\t\treturn max;\r\n\t}", "private int getMax(int[] times) {\n\n\t\t//Initially set max to the first value\n\t\tint max = times[0];\n\n\t\t//Loop through all times in the array\n\t\tfor (int i = 0; i < times.length; i++) {\n\n\t\t\t//Find max\n\t\t\tif (times[i]>max) {\n\n\t\t\t\t//Update max\n\t\t\t\tmax = times[i];\n\t\t\t}\n\t\t}\n\n\t\treturn max;\n\t\t//Print the max time to the console\n\n\t}", "public int best(){\n List<Integer> points = count();\n Integer max = 0;\n for (Integer p: points){\n if (p <= 21 && max < p){\n max = p;\n }\n }\n return max;\n }", "public static int max(int[] values) {\n return max(values, 0, values.length);\n }", "public int getMaximun(){\n int highGrade = grades[0]; //assumi que grades[0] é a maior nota\n //faz o loop pelo array de notas\n for(int grade: grades){\n //se a nota for maior que highGrade. atribui essa nota a highGrade\n if(grade > highGrade){\n highGrade = grade; //nota mais alta\n }\n }\n \n return highGrade;\n }", "public int getLargestCounter()\r\n\t{\r\n\r\n\t\tint largestCounter = lastDigitCounters[0];\r\n\t\tfor (int lastDigit = 1; lastDigit < DIGITS; lastDigit++)\r\n\t\t{\r\n\t\t\tif (lastDigitCounters[lastDigit] > largestCounter) {\r\n\t\t\t\tlargestCounter = lastDigitCounters[lastDigit];\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\treturn largestCounter;\r\n\t}", "public static int mostVotes(int[] votes){\r\n int max = votes[0];\r\n int ind = 0;\r\n for(int i=1;i<votes.length;i++){\r\n if(max<votes[i]){\r\n max = votes[i];\r\n ind = i;\r\n }\r\n }\r\n return ind;\r\n }", "private int getYmax(int[] yt){\n\t\tint max = -1;\n\t\tfor(int i = 0;i<=3;i++){\n\t\t\tif(max < yt[i]){\n\t\t\t\tmax = yt[i];\n\t\t\t}\n\t\t}\n\t\treturn max;\n\t}", "static public long max(long[] valarray) {\r\n long max = 0;\r\n for (long i : valarray) {\r\n if (i > max)\r\n max = i;\r\n }\r\n return max;\r\n }", "static int extractHeapMax(int[] ar){\r\n\t\tif(heapSize<1) return -1;\r\n\t\tint max = ar[1];\r\n\t\tswap(ar,1,heapSize);\r\n\t\theapSize-=1;\r\n\t\tmax_heapify(ar, 1);\r\n\t\treturn max;\r\n\t}", "public int getMax() {\n\t\treturn getMax(0.0f);\n\t}" ]
[ "0.81475556", "0.8140058", "0.80680007", "0.80083996", "0.796417", "0.7954349", "0.79373926", "0.79357475", "0.7897247", "0.78801405", "0.7878352", "0.78782845", "0.7877623", "0.782156", "0.7781657", "0.7708227", "0.7681356", "0.7632299", "0.7625066", "0.7605763", "0.76056254", "0.76028675", "0.7597711", "0.7592355", "0.7554854", "0.75347364", "0.7518299", "0.7492748", "0.7468255", "0.74618983", "0.7456094", "0.74300724", "0.7393665", "0.7389161", "0.7383703", "0.7363007", "0.7359281", "0.7335149", "0.7324238", "0.72716725", "0.7271016", "0.7251321", "0.7241569", "0.72280455", "0.7225343", "0.7224515", "0.7216151", "0.7202393", "0.72009975", "0.71811765", "0.7179769", "0.71757954", "0.7163058", "0.71630067", "0.71020424", "0.7097681", "0.7082152", "0.7063934", "0.7045492", "0.70147395", "0.6991977", "0.6990849", "0.6977502", "0.6956358", "0.6953813", "0.69515663", "0.69322467", "0.6922195", "0.6903002", "0.6892911", "0.6887973", "0.6887687", "0.6878789", "0.68773884", "0.68726736", "0.6871934", "0.6871117", "0.68708795", "0.6868146", "0.6862266", "0.68585", "0.6856974", "0.6856781", "0.68556416", "0.6852615", "0.6852433", "0.68496174", "0.6845496", "0.6837001", "0.68359137", "0.6828144", "0.68271357", "0.6823402", "0.68204755", "0.67948", "0.6790746", "0.6784676", "0.6783972", "0.67710906", "0.6769865" ]
0.78070813
14
Gives highest number in double array.
static double getMax(double[] array) { if (array.length < 0) { throw new IndexOutOfBoundsException("Arrays start from index 0"); } double max = 0; for (int i = 0; i < array.length; i++) { if (max < array[i]) { max = array[i]; } } return max; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public T findHighest(){\n T highest = array[0];\n for (int i=0;i<array.length; i++)\n {\n if (array[i].doubleValue()>highest.doubleValue())\n {\n highest = array[i];\n } \n }\n return highest;\n }", "public static int getIndexOfMax(double[] array){\n\n int largest = 0;\n for ( int i = 1; i < array.length; i++ )\n {\n if ( array[i] > array[largest] ) largest = i;\n }\n return largest;\n\n }", "public static double getMax(double[] arr) \n { \n double max = arr[0]; \n for(int i=1;i<arr.length;i++) \n { \n if(arr[i]>max) \n max = arr[i]; \n } \n return max; \n }", "public static int getMaxIndex(double[] array)\r\n\t{\r\n\t\tdouble max = Double.NEGATIVE_INFINITY;\r\n\t\tint maxIndex = 0;\r\n\t\tfor (int i = 0; i < array.length; i++)\r\n\t\t\tif (max < array[i]) {\r\n\t\t\t\tmax = array[i];\r\n\t\t\t\tmaxIndex = i;\r\n\t\t\t}\r\n\t\treturn maxIndex;\r\n\t}", "private static double max(Double[] darray){\n\t\tdouble max = darray[0];\n\t\tfor ( double dd : darray){\n\t\t\tmax = Math.max(max,dd);\n\t\t}\n\t\treturn max;\n\t}", "public static double getMax(double[] array)\r\n\t{\r\n\t\tdouble max = Double.NEGATIVE_INFINITY;\r\n\t\tfor (int i = 0; i < array.length; i++)\r\n\t\t\tif (max < array[i])\r\n\t\t\t\tmax = array[i];\r\n\t\treturn max;\r\n\t}", "double largestNumber(double[] a) {\n\t\tdouble max = a[0];\n\t\tdouble no = 0;\n\t\tfor (int index = 1; index < a.length; index++) {\n\t\t\tif (max > a[index] && max > a[index + 1]) {\n\t\t\t\tno = max;\n\t\t\t\tbreak;\n\t\t\t} else if (a[index] > max && a[index] > a[index + 1]) {\n\t\t\t\tno = a[index];\n\t\t\t\tbreak;\n\t\t\t} else if (a[index + 1] > max && a[index + 1] > a[index]) {\n\t\t\t\tno = a[index + 1];\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\treturn no;\n\t}", "private static Pair<Double, Integer> findMaxEntry(double[] array) {\n int index = 0;\n double max = array[0];\n for (int i = 1; i < array.length; i++) {\n if ( array[i] > max ) {\n max = array[i];\n index = i;\n }\n }\n return new Pair<Double, Integer>(max, index);\n }", "public static double max(double[] array) {\n\t\tif (array.length==0) return Double.NEGATIVE_INFINITY;\n\t\tdouble re = array[0];\n\t\tfor (int i=1; i<array.length; i++)\n\t\t\tre = Math.max(re, array[i]);\n\t\treturn re;\n\t}", "public double max(){\r\n\t\t//variable for max val\r\n\t\tdouble max = this.data[0];\r\n\t\t\r\n\t\tfor (int i = 1; i < this.data.length; i++){\r\n\t\t\t//if the maximum is less than the current index, change max to that value\r\n\t\t\tif (max < this.data[i]){\r\n\t\t\t\tmax = this.data[i];\r\n\t\t\t}\r\n\t\t}\r\n\t\t//return the maximum val\r\n\t\treturn max;\r\n\t}", "int max() {\n\t\t// added my sort method in the beginning to sort out array\n\t\tint n = array.length;\n\t\tint temp = 0;\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\tfor (int j = 1; j < (n - i); j++) {\n\n\t\t\t\tif (array[j - 1] > array[j]) {\n\t\t\t\t\ttemp = array[j - 1];\n\t\t\t\t\tarray[j - 1] = array[j];\n\t\t\t\t\tarray[j] = temp;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t// finds the last term in the array --> if array is sorted then the last\n\t\t// term should be max\n\t\tint x = array[array.length - 1];\n\t\treturn x;\n\t}", "public static int pointFree(double[] numbers){\n String completeString = \"\";\n String redactedString = \"\";\n int newArray[] = new int[numbers.length];\n int greatestValue=0;\n \n \n \n for (double x : numbers) {\n int currentValue;\n \n completeString = String.valueOf(x);\n redactedString = completeString.replaceAll(\"\\\\.\",\"\");\n currentValue = Integer.parseInt(redactedString);\n for (int i = 0; i < newArray.length; i++) {\n \n newArray[i]=currentValue;\n \n \n }\n greatestValue=newArray[0];\n for (int i = 0; i < newArray.length; i++) {\n if(newArray[i]>greatestValue){\n greatestValue=newArray[i];\n \n }\n \n }\n \n \n }\n return greatestValue;\n \n }", "public static double max(double[] v) {\n double max = v[0];\n for (int ktr = 0; ktr < v.length; ktr++) {\n if (v[ktr] > max) {\n max = v[ktr];\n }\n }\n return max;\n}", "public static int getIndexOfMax(double[] x) {\n Objects.requireNonNull(x, \"The supplied array was null\");\n int index = 0;\n double max = Double.MIN_VALUE;\n for (int i = 0; i < x.length; i++) {\n if (x[i] > max) {\n max = x[i];\n index = i;\n }\n }\n return (index);\n }", "public static double findMax(double[] da) {\n\n\t\tdouble max = da[0];\n\n\t\tfor (double d : da) {\n\t\t\tif (d > max) {\n\t\t\t\tmax = d;\n\t\t\t}\n\t\t}\n\n\t\treturn max;\n\t}", "double getMax();", "double getMax();", "public static double max(double[]array){\n \n if(array == null){\n \n throw new IllegalArgumentException(\"Array cannot be null\");\n }\n else if(array.length==0){\n throw new IllegalArgumentException(\"Array cannot be empty\");\n }\n \n double max = array[0];\n \n for(int i = 1; i < array.length; i++){\n \n if(Double.isNaN(array[i])){\n return Double.NaN;\n }\n if(array[i] > max){\n max = array[i];\n }\n }\n return max;\n }", "private int getBestGuess(double values[]){\n int maxIndex=0;\n double max=0;\n for(int i=0;i<4;i++){\n if(values[i]>max) {\n max = values[i];\n maxIndex=i;\n }\n }\n return maxIndex+1;\n }", "Double getMaximumValue();", "public static int argmax(double[] array) {\n\t\tdouble max = array[0];\n\t\tint re = 0;\n\t\tfor (int i=1; i<array.length; i++) {\n\t\t\tif (array[i]>max) {\n\t\t\t\tmax = array[i];\n\t\t\t\tre = i;\n\t\t\t}\n\t\t}\n\t\treturn re;\n\t}", "int max(){\r\n int auxMax = array[0];\r\n for (int i=1;i<array.length;i++){\r\n if(array[i] > auxMax){\r\n auxMax = array[i];\r\n }\r\n }\r\n return auxMax;\r\n }", "protected double getMaxDouble() {\r\n boolean handleOutOfMemoryError = false;\r\n double max = Double.NEGATIVE_INFINITY;\r\n Grids_GridDouble g = getGrid();\r\n int nrows = g.getChunkNRows(ChunkID, handleOutOfMemoryError);\r\n int ncols = g.getChunkNCols(ChunkID, handleOutOfMemoryError);\r\n double noDataValue = g.getNoDataValue(handleOutOfMemoryError);\r\n double value;\r\n int row;\r\n int col;\r\n for (row = 0; row < nrows; row++) {\r\n for (col = 0; col < ncols; col++) {\r\n value = getCell(row, col);\r\n if (value != noDataValue) {\r\n max = Math.max(max, value);\r\n }\r\n }\r\n }\r\n return max;\r\n }", "private double getMax() {\n return Collections.max(values.values());\n }", "static int findHighestNumber(int [] array){\n int highestNumber = array [0];\n for (int x=0; x< array.length; x++){\n if (highestNumber<array[x]){\n highestNumber=array[x];\n }\n }\nreturn highestNumber;\n}", "public static int getMax(float[][] storage) {\n float []arr=new float[WINDOW];\n for (int i = 0;i<WINDOW;i++){\n arr[i]=storage[i][1];\n }\n\n if(arr==null||arr.length==0){\n return 0;//如果数组为空 或者是长度为0 就返回null\n }\n int maxIndex=0;//假设第一个元素为最小值 那么下标设为0\n int[] arrnew=new int[2];//设置一个 长度为2的数组 用作记录 规定第一个元素存储最小值 第二个元素存储下标\n for(int i =0;i<arr.length-1;i++){\n if(arr[maxIndex]<arr[i+1]){\n maxIndex=i+1;\n }\n }\n arrnew[0]=(int)arr[maxIndex];\n arrnew[1]=maxIndex;\n\n return arrnew[0];\n }", "private Double getMax(Double[] values) {\n Double ret = null;\n for (Double d: values) {\n if (d != null) ret = (ret == null) ? d : Math.max(d, ret);\n }\n return ret;\n }", "public double biggest(ArrayList<Double> numbers) {\n\t\tif(numbers == null) {\n\t\t\treturn -1;\n\t\t} else if (numbers.size() < 3 || numbers.size() % 2 == 0) {\n\t\t\treturn -1;\n\t\t}\n\t\tdouble first = numbers.get(0);\n\t\tdouble middle = numbers.get((int) Math.floor(numbers.size() / 2));\n\t\tdouble last = numbers.get(numbers.size() -1);\n\t\tdouble maximum = (first > middle && first > last) ? first :\n\t\t(middle > last) ? middle :\n\t\tlast;\n\t\treturn maximum;\t\t// default return value to ensure compilation\n\t}", "public static int getMaximum(int[] array) {\n int length = array.length;\n int max = array[0];\n for (int i = 1; i < length; i++) {\n if(max < array[i]) {\n max = array[i];\n }\n }\n\n Arrays.sort(array);\n// return array[length - 1];\n return max;\n }", "private double getMaxNumber(ArrayList<Double> provinceValues)\n {\n Double max = 0.0;\n\n for (Double type : provinceValues)\n {\n if (type > max)\n {\n max = type;\n }\n }\n return max;\n }", "public double max()\n\n {\n double max=xyValueArray.get(0).getY();\n\n for (int i = 0; i < xyValueArray.size(); i++) {\n if (xyValueArray.get(i).getY() > max) {\n max = xyValueArray.get(i).getY();\n }\n }\n return max;\n }", "public double getMaxDoubleValue();", "public Integer findLargestNumber() {\r\n\t\t// take base index element as largest number\r\n\t\tInteger largestNumber = numArray[0];\r\n\t\t// smallest number find logic\r\n\t\tfor (int i = 1; i < numArray.length; i++) {\r\n\t\t\tif (numArray[i] != null && numArray[i] > largestNumber) {\r\n\t\t\t\tlargestNumber = numArray[i];\r\n\t\t\t}\r\n\t\t}\r\n\t\t// return smallest number from the given array\r\n\t\treturn largestNumber;\r\n\t}", "public int theHighest() {\r\n\t\tint highest = 0;\r\n\t\tfor(int i = 0; i < rows_size; i++) {\r\n\t\t\tfor(int j = 0; j < columns_size; j++) {\r\n\t\t\t\tif(game[i][j].getValue() > highest)\r\n\t\t\t\t\thighest = game[i][j].getValue();\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn highest;\r\n\t}", "public static double max(double[] prices) {\n\t\tdouble biggest = 0;\n\n\t\tfor (int i = 0; i < prices.length; i++) {\n\t\t\tif (prices[i] > biggest) {\n\t\t\t\tbiggest = prices[i];\n\t\t\t}\n\t\t}\n\n\t\treturn biggest\n\t}", "public int max()\n\t{\n\t\tif (arraySize > 0)\n\t\t{\n\t\t\tint maxNumber = array[0];\n\t\t\tfor (int index = 0; index < arraySize; index++) \n\t\t\t{\n\t\t\t\tif (array[index] > maxNumber)\n\t\t\t\t{\n\t\t\t\t\tmaxNumber = array[index];\n\t\t\t\t}\n\t\t\t}\t\t\t\n\t\t\treturn maxNumber;\n\t\t}\n\t\treturn -1;\n\t\t\n\t}", "public static double getMax(double[][] matrix)\r\n\t{\r\n\t\tdouble max = Double.NEGATIVE_INFINITY;\r\n\t\tfor (int i = 0; i < matrix.length; i++) {\r\n\t\t\tfor (int j = 0; j < matrix[i].length; j++) {\r\n\t\t\t\tif (max < matrix[i][j])\r\n\t\t\t\t\tmax = matrix[i][j];\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn max;\r\n\t}", "public double max() {\n/* 323 */ Preconditions.checkState((this.count != 0L));\n/* 324 */ return this.max;\n/* */ }", "public int findHighestTemp() {\n\t\t\n\t\tint max = 0;\n\t\tint indexHigh = 0;\n\t\tfor (int i=0; i<temps.length; i++)\n\t\t\tif (temps[i][0] > max) {\n\t\t\t\tmax = temps[i][0];\n\t\t\t\tindexHigh = i;\n\t\t\t}\n\t\t\n\t\treturn indexHigh;\n\t\t\n\t}", "public static double max(double[] values) {\n return max(values, 0, values.length);\n }", "public int findMax() {\n\t\tint max = (int)data.get(0);\n\t\tfor (int count = 1; count < data.size(); count++)\n\t\t\tif ( (int)data.get(count) > max)\n\t\t\t\tmax = (int)data.get(count);\n\t\treturn max;\n\t}", "public long max() {\n\t\tif (!this.isEmpty()) {\n\t\t\tlong result = theElements[0];\n\t\t\tfor (int i=1; i<numElements; i++) {\n\t\t\t\tif (theElements[i] > result) {\n\t\t\t\t\tresult = theElements[i];\n\t\t\t\t}\n\t\t\t}\n\t\t\treturn result;\n\t\t}\n\t\telse {\n\t\t\tthrow new RuntimeException(\"Attempted to find max of empty array\");\n\t\t}\n\t}", "public double getMaxValue() {\n double max = Double.NEGATIVE_INFINITY;\n for (int i = 0; i < rows; i++) {\n for (int j = 0; j < cols; j++) {\n if (data[i][j] > max)\n max = data[i][j];\n }\n }\n return max;\n }", "public double getMaximumDouble() {\n/* 255 */ return this.max;\n/* */ }", "private static int[] findGreatestNumInArray(int[] array) {\r\n\t\tint maxValue = Integer.MIN_VALUE;\r\n \r\n\t\tint secondValue = Integer.MIN_VALUE;\r\n\t\t\r\n\t\tint thirdValue = Integer.MIN_VALUE;\r\n\t\t\r\n\t int[] result = new int[2];\r\n\t \r\n\t int[] result2 = new int[3];\r\n\t\tfor (int i = 0; i < array.length; i++) {\r\n\t\t\tif (array[i] > maxValue) {\r\n\t\t\t\tthirdValue = secondValue;\r\n\t\t\t\tsecondValue = maxValue;\r\n\t\t\t\tmaxValue = array[i];\r\n\t\t\t\t\r\n\t\t\t}\r\n\t\t\telse if(array[i]>secondValue)\r\n\t\t\t{\r\n\t\t\t\tsecondValue = array[i];\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\telse if(array[i]>thirdValue)\r\n\t\t\t{\r\n\t\t\t\tthirdValue = array[i];\r\n\t\t\t}\r\n\t\t}\r\n\t\tallowResult( result,maxValue,secondValue);\r\n\t\t\r\n\t\tallowResult( result2,maxValue,secondValue,thirdValue);\r\n\t\t//return maxValue;\r\n\t\treturn result2;\r\n\t}", "public static int getMax(int[] inputArray){ \n int maxValue = inputArray[0]; \n for(int i=1;i < inputArray.length;i++){ \n if(inputArray[i] > maxValue){ \n maxValue = inputArray[i]; \n } \n } \n return maxValue; \n }", "private static double getHighestScore (List<Double> inputScores) {\n\n\t\tCollections.sort(inputScores, Collections.reverseOrder());\n\n\t\treturn inputScores.get(0);\n\n\t}", "public static int secondaryArgmax(double[] a) {\n\t\tint mi = argmax(a);\n\t\t// scan left until increasing\n\t\tint i;\n\t\tfor (i=mi-1; i>=0 && a[i]<=a[i+1]; i--);\n\t\tint l = argmax(a,0,i+1);\n\t\tfor (i=mi+1; i<a.length && a[i]<=a[i-1]; i++);\n\t\tint r = argmax(a,i,a.length);\n\t\tif (l==-1) return r;\n\t\tif (r==-1) return l;\n\t\treturn a[l]>=a[r]?l:r;\n\t}", "private static int max(int[] array) {\n int result = array[0];\n for (int x : array)\n result = Math.max(x, result);\n return result;\n }", "public T getMax()\n\t{\n\t\tif(size == 0)\n\t\t{\n\t\t\treturn null;\n\t\t}\n\t\telse if(size == 1)\n\t\t{\n\t\t\treturn array[0];\n\t\t}\n\t\telse if(size == 2)\n\t\t{\n\t\t\treturn array[1];\n\t\t}\n\n\t\telse\n\t\t{\n\t\t\tif(object.compare(array[1], array[2]) < 0)\n\t\t\t{\n\t\t\t\treturn array[2];\n\t\t\t}\n\t\t\telse if(object.compare(array[1], array[2]) > 0)\n\t\t\t{\n\t\t\t\treturn array[1];\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\treturn array[1];\n\t\t\t}\n\n\t\t}\n\t}", "private int postprocess() {\n // Index with highest probability\n int maxIndex = -1;\n float maxProb = 0.0f;\n for (int i = 0; i < outputArray[0].length; i++) {\n if (outputArray[0][i] > maxProb) {\n maxProb = outputArray[0][i];\n maxIndex = i;\n }\n }\n return maxIndex;\n }", "public static int maxValue(int [] array){\n int hold = array[0];\n for(int i = 1; i < array.length; i++){\n if(array[i] > hold){\n hold = array[i];\n }\n }\n return hold;\n }", "public static float max(float [] array)\r\n\t{\r\n\t\tfloat maxValue = array[0];\r\n\t\tfor (int i = 1; i < array.length; i++)\r\n\t\t{\r\n\t\t\tif (array[i] > maxValue)\r\n\t\t\t{\r\n\t\t\t\tmaxValue = array[i];\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\treturn maxValue;\r\n\t}", "public static int max(int[] theArray) {\n\n int biggest = theArray[0];\n\n //Converts the array to a list\n List<Integer> values = Arrays.stream(theArray).boxed().collect(Collectors.toList());\n\n //get the biggest by streaming the list and using min which gets the min value by using the Integer Comparator.comparing().\n //which means it will loop through the array and compare all the values for the biggest values\n biggest= values.stream().max(Integer::compare).get();\n\n// //Alternative code does the samething\n// for (int number : theArray) {\n//\n// if (biggest < number) {\n// biggest = number;\n// }\n// }\n\n return biggest;\n\n }", "private int getDominantI(float[] l) {\n float max = 0;\n int maxi = -1;\n for(int i=0;i<l.length;i++) {\n if (l[i]>max)\n max = l[i]; maxi = i;\n }\n return maxi;\n }", "public double[] getMax(){\n double[] max = new double[3];\n for (Triangle i : triangles) {\n double[] tempmax = i.maxCor();\n max[0] = Math.max( max[0], tempmax[0]);\n max[1] = Math.max( max[1], tempmax[1]);\n max[2] = Math.max( max[2], tempmax[2]);\n }\n return max;\n }", "public int calculateMaximumPosition() {\n\t\tdouble[] maxVal = { inputArray[0], 0 };\n\t\tfor (int i = 0; i < inputArray.length; i++) {\n\t\t\tif (inputArray[i] > maxVal[0]) {\n\t\t\t\tmaxVal[0] = inputArray[i];\n\t\t\t\tmaxVal[1] = i;\n\t\t\t}\n\t\t}\n\t\treturn (int) maxVal[1];\n\t}", "public static int maximo (int[] array) {\n\t\tint max = array[0], i;\n\t\t\n\t\tfor (i = 1; i < array.length; i++) {\n\t\t\tif (array[i] > max) {\n\t\t\t\tmax = array[i];\n\t\t\t}\n\t\t}\n\t\t\n\t\treturn max;\n\t}", "public double max() {\n\t\tif (count() > 0) {\n\t\t\treturn _max.get();\n\t\t}\n\t\treturn 0.0;\n\t}", "public int getYMax(){\n\t\tDouble max = Collections.max(byteIncrements);\n\t\tyMax = max.intValue();\n\t\treturn yMax;\n\t}", "@Override\n public int iamax(INDArray x) {\n return NativeBlas.isamax(x.length(), x.data(), x.offset(), x.stride()[0]) - 1;\n }", "public static void main(String[] args) {\n int[] arr={24,34,56,98,2,59};\r\n int val =arr [0];\r\n for(int i=0;i<arr.length;i++){\r\n \t if(arr[i]>val){\r\n \t\t val=arr[i];\r\n \t }\r\n }\r\n System.out.println(\"largest value\"+ val);\r\n\t}", "public int getMaxNum(int[] arr) {\n int left = 0, right = arr.length - 1, mid;\n while (left < right) {\n mid = left + (right - left) / 2;\n if (arr[mid] > arr[mid + 1]) right = mid; // in the right half\n else if (arr[mid] < arr[mid + 1]) left = mid + 1; // in the left half\n }\n return arr[left]; // left == right\n }", "public int getMax()\n {\n int max = data.get(0).getX();\n\n for(int i = 0; i < data.size(); i++)\n {\n if (data.get(i).getX() > max)\n {\n max = data.get(i).getX();\n }\n }\n\n\n return max;\n }", "public final double getMax() {\r\n\t\treturn this.m_max;\r\n\t}", "public static int argmax(float[] array) {\n\t\tfloat max = array[0];\n\t\tint re = 0;\n\t\tfor (int i=1; i<array.length; i++) {\n\t\t\tif (array[i]>max) {\n\t\t\t\tmax = array[i];\n\t\t\t\tre = i;\n\t\t\t}\n\t\t}\n\t\treturn re;\n\t}", "public static int maxValue(int[] numArr) {\r\n\t\tint temp = numArr[0] > numArr[1] ? numArr[0] : numArr[1];\r\n\t\tfor (int i = 2; i < numArr.length; i++) {\r\n\t\t\ttemp = temp > numArr[i] ? temp : numArr[i];\r\n\t\t}\r\n\t\treturn temp;\r\n\t}", "int getMaximum();", "public static int get_max(Integer[] a){\n int max = Integer.MIN_VALUE;\n\n for (int i = 0; i < a.length; i++){\n if (a[i] > max);\n max = a[i];\n }\n return max;\n }", "public static int max(int[] a){\r\n\t\tint m = a[0];\r\n\t\tfor( int i=1; i<a.length; i++ )\r\n\t\t\tif( m < a[i] ) m = a[i];\r\n\t\treturn m;\r\n\t}", "private void getMaxValue(){\n maxValue = array[0];\n for(int preIndex = -1; preIndex<number; preIndex++){\n for(int sufIndex = preIndex+1; sufIndex<=number;sufIndex++){\n long maxTmp = getPrefixValue(preIndex)^getSuffixCValue(sufIndex);\n if(maxTmp>maxValue){\n maxValue = maxTmp;\n }\n }\n }\n System.out.println(maxValue);\n }", "@Override\n public int iamax(IComplexNDArray x) {\n return NativeBlas.icamax(x.length(), x.data(), x.offset(), 1) - 1;\n }", "public static void main(String[] args) {\n int[] nums = {24, 32, 1, 0, -57, 982, 446, 11, 177, 390, 2923, 7648, 242, 234, 1123, 875};\n int maxValue = nums[0];\n\n for(int i = 0; i < nums.length; i++) {\n if (nums[i] > maxValue) {\n maxValue = nums[i];\n }\n }\n System.out.println(\"Max Value in Array: \" + maxValue);\n }", "private int largestCard(Card[] cards) {\n int i;\n\n // Initialize maximum element\n int max = 0;\n\n // Traverse array elements from second and\n // compare every element with current max\n for (i = 1; i < cards.length; i++)\n if (cards[i].getDenomination() > cards[max].getDenomination())\n max = i;\n\n return max;\n }", "public static int max(int[] a) {\n\t\tint b=a[0];\r\n\t\tfor(int i=0;i<a.length;i++) {\r\n\t\t\tif(a[i]>b) {\r\n\t\t\t\tb=a[i];\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn b;\r\n\t}", "private static int maxValue(int[] a) {\n\t\tint max_value =0;\r\n\t\tint current_max=0;\r\n\t\t\r\n\t\tfor(int i=0;i<a.length;i++)\r\n\t\t{\r\n\t\t\tcurrent_max += a[i];\r\n\t\t\tmax_value= Math.max(max_value, current_max);\r\n\t\t\tif(a[i]<0)\r\n\t\t\t\tcurrent_max=0;\r\n\t\t}\r\n\t\t\r\n\t\treturn max_value;\r\n\t}", "private double findMaxY() {\n\t\tif (pointList.size()==0) {\n\t\t\treturn Double.NaN;\n\t\t}\n\t\tdouble max = pointList.get(0).getY();\n\t\tfor(int i=0; i<pointList.size(); i++)\n\t\t\tif (max<pointList.get(i).getY())\n\t\t\t\tmax = pointList.get(i).getY();\n\t\treturn max;\n\t}", "double getMax() {\n\t\t\treturn value_max;\n\t\t}", "public int findMax(int[] arr) {\n return 0;\n }", "static double getMax(double a, double b) {\n\t\treturn (a > b) ? a : b;\n\t}", "public double getMaximum() {\n return (max);\n }", "public static int max2(double[] mainArray2) {\r\n\t\tint max2 = 0;\r\n\t\tfor(int greaterThan = 1; greaterThan < mainArray2.length; greaterThan ++) {\r\n\r\n\t\t\tif(mainArray2[greaterThan]>mainArray2[max2]) {\r\n\t\t\t\tmax2 = greaterThan;\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn max2;\r\n\t}", "public int getMaximun(){\n int highGrade = grades[0]; //assumi que grades[0] é a maior nota\n //faz o loop pelo array de notas\n for(int grade: grades){\n //se a nota for maior que highGrade. atribui essa nota a highGrade\n if(grade > highGrade){\n highGrade = grade; //nota mais alta\n }\n }\n \n return highGrade;\n }", "public static int findMax(int[] a) {\r\n int max = a[0];\r\n\r\n //10th error , n = 1\r\n for (int n = 1; n < a.length; n++) {\r\n if (a[n] > max) {\r\n max = a[n];\r\n }\r\n }\r\n return max;\r\n\r\n }", "private int getYmax(int[] yt){\n\t\tint max = -1;\n\t\tfor(int i = 0;i<=3;i++){\n\t\t\tif(max < yt[i]){\n\t\t\t\tmax = yt[i];\n\t\t\t}\n\t\t}\n\t\treturn max;\n\t}", "public int highDie(){\n int highest = this.dice[0].getFaceValue();\n for (int i = 1; i < dice.length; i++){\n highest = Math.max(highest, this.dice[i].getFaceValue());\n }\n return highest;\n }", "public int best(){\n List<Integer> points = count();\n Integer max = 0;\n for (Integer p: points){\n if (p <= 21 && max < p){\n max = p;\n }\n }\n return max;\n }", "public Double getMaximumValue () {\r\n\t\treturn (maxValue);\r\n\t}", "public static int getMax(int[] array) {\n //TODO: write code here\n int max = array[0];\n for(int a : array) {\n max = a > max ? a : max;\n }\n return max;\n }", "public double maxOfAbsoluteValues(double[] arr) {\n return 0;\n }", "public static void main(String[] args) {\nint arr[]=new int[] {10,20,36,50,30};\nint max=0,i;\nfor(i=0;i<arr.length;i++)\n{\n\tif(arr[i]>max)\n\t{\n\t\tmax=arr[i];\n\t}\n}\nSystem.out.println(max);\n\t}", "public static int getMax(int[] scores) {\r\n\t\r\n\t\tint temp = scores[0];\r\n\t\tfor(int i = 1; i < scores.length; ++i) {\r\n\t\t\r\n\t\t\tif (scores[i] > temp) {\r\n\t\t\t\ttemp = scores[i];\r\n\t\t\t}\r\n\t\t\r\n\t\t}\r\n\t\t\r\n\t\treturn temp;\r\n\t\r\n\t}", "private static int findIndexOfLargest(float[] vector) {\n\t\tint index = -1;\n\t\tfloat value = Float.NEGATIVE_INFINITY;\n\t\tfloat temp;\n\t\tfor (int d=0; d<Constants.ACCEL_DIM; ++d) {\n\t\t\ttemp = vector[d];\n\t\t\tif (temp<0.0f)\n\t\t\t\ttemp = -temp;\n\t\t\t\n\t\t\tif (temp>value) {\n\t\t\t\tvalue = temp;\n\t\t\t\tindex = d;\n\t\t\t}\n\t\t}\n\t\treturn index;\n\t}", "java.math.BigDecimal getMaximum();", "E maxVal();", "int max();", "public int getXMax(){\n\t\tDouble max = timeIncrements.get(timeIncrements.size()-1);\n\t\txMax = max.intValue();\n\t\treturn xMax;\n\t}", "public int getIndexOfMaxNumber(int[] array) {\n\t\tint left = 0, right = array.length - 1;\n\t\twhile (left < right - 1) {\n\t\t\tint mid = left + (right - left) / 2;\n\t\t\tif (array[mid - 1] > array[mid]) {\n\t\t\t\treturn mid - 1;\n\t\t\t}\n\t\t\tif (array[mid] > array[mid + 1]) {\n\t\t\t\treturn mid;\n\t\t\t}\n\t\t\t// up to this point,\n\t\t\t// mid == right || array[mid] < array[mid + 1] ||\n\t\t\t// mid == left || array[mid - 1] < array[mid]\n\t\t\tif (array[mid] <= array[left]) {\n\t\t\t\tright = mid;\n\t\t\t} else {\n\t\t\t\tleft = mid;\n\t\t\t}\n\t\t}\n\t\t// up to this point, left == right - 1;\n\t\treturn array[left] >= array[right] ? left : right;\n\t}", "public double getMaximum()\n {\n return Math.max(first, second);\n }", "float xMax();" ]
[ "0.8246089", "0.81027085", "0.79382277", "0.7756322", "0.7731905", "0.7725459", "0.77120316", "0.7605752", "0.7573945", "0.7541709", "0.7538086", "0.73937035", "0.7361307", "0.73548055", "0.72687566", "0.7180147", "0.7180147", "0.71617234", "0.714301", "0.7129007", "0.7118661", "0.7082255", "0.7068637", "0.70127153", "0.7004376", "0.69975", "0.6987768", "0.6947958", "0.6890164", "0.68791234", "0.68788964", "0.6866322", "0.6865614", "0.6851432", "0.68443185", "0.68351144", "0.6833738", "0.6819885", "0.6795239", "0.67874074", "0.6782102", "0.6777182", "0.67765516", "0.6767427", "0.6747743", "0.6731434", "0.6717768", "0.6703858", "0.6698935", "0.6685262", "0.6669205", "0.6642797", "0.6634387", "0.66330856", "0.66287386", "0.6622621", "0.6619333", "0.6595855", "0.6590694", "0.6585777", "0.65809655", "0.65770847", "0.6567716", "0.65593857", "0.65100724", "0.6509048", "0.6484607", "0.6482112", "0.6480487", "0.64792347", "0.6477167", "0.6476944", "0.64747435", "0.6471146", "0.6469697", "0.64540744", "0.64535224", "0.64491415", "0.6445934", "0.6437566", "0.64367414", "0.6417952", "0.6417362", "0.6407867", "0.64075375", "0.6406771", "0.63987464", "0.6398268", "0.63923186", "0.639093", "0.63890094", "0.63843113", "0.63767606", "0.6364512", "0.63618785", "0.6359092", "0.6345361", "0.6335727", "0.632829", "0.6324966" ]
0.7955396
2
OWB will cache instances where the resolution by type is successful, but does not when it fails The upshot is that if resolution happens again, the InjectionResolver will need to attempt resolution again, before then trying implResolveByType() on the context.getParent() InjectionResolver, and this will happen each and every time the resolution is attempted at runtime. This code attempts to cache lookup failures that happen outside of the startup phase. Caching resolution failures should NOT be done during startup. The default for this behaviour is "off", and simply delegate to OWB, unless it is turned on.
@Override public Set<Bean<?>> implResolveByType(final boolean delegate, final Type injectionPointType, final Class<?> injectionPointClass, final Annotation... qualifiers) { Set<Bean<?>> set; if (!startup && cacheResolutionFailure) { final ScannerService scannerService = context.getScannerService(); String bdaBeansXMLFilePath = null; if (scannerService.isBDABeansXmlScanningEnabled()) { bdaBeansXMLFilePath = getBDABeansXMLPath(injectionPointClass); } final BeanCacheKey cacheKey = new BeanCacheKey(delegate, injectionPointType, bdaBeansXMLFilePath, this::findQualifierModel, qualifiers); if (resolutionFailures.contains(cacheKey)) { if (LOGGER.isDebugEnabled()) { LOGGER.debug("Resolution of " + cacheKey + " has previously failed, returning empty set from cache"); } set = Collections.emptySet(); } else { set = super.implResolveByType(delegate, injectionPointType, injectionPointClass, qualifiers); if (set.isEmpty()) { if (LOGGER.isDebugEnabled()) { LOGGER.debug("Caching resolution failure of " + cacheKey); } resolutionFailures.add(cacheKey); } } } else { set = super.implResolveByType(delegate, injectionPointType, injectionPointClass, qualifiers); } if (context instanceof WebappWebBeansContext) { final WebappWebBeansContext wwbc = (WebappWebBeansContext) context; if (set.isEmpty() && wwbc.getParent() != null) { if (LOGGER.isDebugEnabled()) { LOGGER.debug("Resolution of " + injectionPointType.getTypeName() + " from context failed, trying to resolve from parent context"); } return wwbc.getParent().getBeanManagerImpl().getInjectionResolver().implResolveByType(delegate, injectionPointType, injectionPointClass, qualifiers); } } return set; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public abstract boolean needsResolving();", "@Override\r\n\tprotected void doResolve() {\n\r\n\t}", "@Override synchronized public void resolve()\n{\n if (isResolved()) return;\n\n RebaseMain.logD(\"START RESOLVE\");\n for (RebaseJavaFile jf : file_nodes) {\n RebaseMain.logD(\"FILE: \" + jf.getFile().getFileName());\n }\n\n clearResolve();\n\n RebaseJavaTyper jt = new RebaseJavaTyper(base_context);\n RebaseJavaResolver jr = new RebaseJavaResolver(jt);\n jt.assignTypes(this);\n jr.resolveNames(this);\n\n all_types = new HashSet<RebaseJavaType>(jt.getAllTypes());\n\n setResolved(true);\n}", "public Object Resolve(Class typeToInject, String id)\r\n\t{\r\n\t\tif (typeToInject == null)\r\n\t\t{\r\n\t\t\t\t//raise exception\r\n\t\t}\r\n\t\tDependencyResolutionLocatorKey key = new DependencyResolutionLocatorKey(typeToInject, id);\r\n\r\n\t\tif (context.getLocator().contains(key))\r\n\t\t{\r\n\t\t\t//For InjectProxy to work the component should always exist whose proxy is requested\r\n\t\t\treturn context.getLocator().Get(key);\r\n\t\t}\r\n\t\telse\r\n\t\t{\t\r\n\t\t\tcontext.getPolicies().set(new ProxyPatternPolicy(false),typeToInject, id);\r\n\t\t\tcontext.getPolicies().set(new SingletonPolicy(true),typeToInject, id);\r\n\t\t\treturn context.getHeadOfChain().BuildUp(context, typeToInject, null, key.getID());\r\n\t\t}\r\n\t}", "protected void createLookupCache() {\n }", "protected interface TypeLocator {\n\n /**\n * Resolves the target type.\n *\n * @param instrumentedType The instrumented type.\n * @param parameterType The type of the target parameter.\n * @return The proxy type.\n */\n TypeDescription resolve(TypeDescription instrumentedType, TypeDescription.Generic parameterType);\n\n /**\n * A type locator that yields the instrumented type.\n */\n enum ForInstrumentedType implements TypeLocator {\n\n /**\n * The singleton instance.\n */\n INSTANCE;\n\n /**\n * {@inheritDoc}\n */\n public TypeDescription resolve(TypeDescription instrumentedType, TypeDescription.Generic parameterType) {\n return instrumentedType;\n }\n }\n\n /**\n * A type locator that yields the target parameter's type.\n */\n enum ForParameterType implements TypeLocator {\n\n /**\n * The singleton instance.\n */\n INSTANCE;\n\n /**\n * {@inheritDoc}\n */\n public TypeDescription resolve(TypeDescription instrumentedType, TypeDescription.Generic parameterType) {\n TypeDescription erasure = parameterType.asErasure();\n return erasure.equals(instrumentedType)\n ? instrumentedType\n : erasure;\n }\n }\n\n /**\n * A type locator that returns a given type.\n */\n @HashCodeAndEqualsPlugin.Enhance\n class ForType implements TypeLocator {\n\n /**\n * The type to be returned upon resolution.\n */\n private final TypeDescription typeDescription;\n\n /**\n * Creates a new type locator for a given type.\n *\n * @param typeDescription The type to be returned upon resolution.\n */\n protected ForType(TypeDescription typeDescription) {\n this.typeDescription = typeDescription;\n }\n\n /**\n * Resolves a type locator based upon an annotation value.\n *\n * @param typeDescription The annotation's value.\n * @return The appropriate type locator.\n */\n protected static TypeLocator of(TypeDescription typeDescription) {\n if (typeDescription.represents(void.class)) {\n return ForParameterType.INSTANCE;\n } else if (typeDescription.represents(TargetType.class)) {\n return ForInstrumentedType.INSTANCE;\n } else if (typeDescription.isPrimitive() || typeDescription.isArray()) {\n throw new IllegalStateException(\"Cannot assign proxy to \" + typeDescription);\n } else {\n return new ForType(typeDescription);\n }\n }\n\n /**\n * {@inheritDoc}\n */\n public TypeDescription resolve(TypeDescription instrumentedType, TypeDescription.Generic parameterType) {\n if (!typeDescription.isAssignableTo(parameterType.asErasure())) {\n throw new IllegalStateException(\"Impossible to assign \" + typeDescription + \" to parameter of type \" + parameterType);\n }\n return typeDescription;\n }\n }\n }", "private static Lookup computeLookup(Class<?> type) throws Throwable {\n return (Lookup) LOOKUP_CONSTRUCTOR_MH.invokeExact(type);\n }", "public static IInterfaceDefinition searchType(String unresolvedTypeName,\n\t\t\tEnvironment env)\n\t{\n\t\tfor (IClassDefinition cd : env.getClasses())\n\t\t{\n\t\t\tif (env.isTreeNode(cd))\n\t\t\t{\n\t\t\t\tif (env.classToType.get(cd) == ClassType.Token\n\t\t\t\t\t\t&& checkName(cd, unresolvedTypeName, true, env))// c.rawName.equals(unresolvedTypeName))\n\t\t\t\t{\n\t\t\t\t\treturn cd;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\t// Lookup in all root productions\n\t\tfor (IClassDefinition cd : env.getClasses())\n\t\t{\n\t\t\tif (env.isTreeNode(cd))\n\t\t\t{\n\t\t\t\tif (env.classToType.get(cd) == ClassType.Production\n\t\t\t\t\t\t&& checkName(cd, unresolvedTypeName, true, env))\n\t\t\t\t{\n\t\t\t\t\treturn cd;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\t// Lookup in all sub productions\n\t\tfor (IClassDefinition cd : env.getClasses())\n\t\t{\n\t\t\tif (env.isTreeNode(cd))\n\t\t\t{\n\t\t\t\tif (env.classToType.get(cd) == ClassType.SubProduction\n\t\t\t\t\t\t&& checkName(cd, unresolvedTypeName, true, env))\n\t\t\t\t{\n\t\t\t\t\treturn cd;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\t// Lookup in all alternatives\n\t\tfor (IClassDefinition cd : env.getClasses())\n\t\t{\n\t\t\tif (env.isTreeNode(cd))\n\t\t\t{\n\t\t\t\tif (env.classToType.get(cd) == ClassType.Alternative\n\t\t\t\t\t\t&& checkName(cd, unresolvedTypeName, true, env))\n\t\t\t\t{\n\t\t\t\t\treturn cd;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\t// Lookup for all raw names no matter the type\n\t\tfor (IClassDefinition cd : env.getClasses())\n\t\t{\n\t\t\tif (env.isTreeNode(cd))\n\t\t\t{\n\t\t\t\tif (checkName(cd, unresolvedTypeName, true, env))\n\t\t\t\t{\n\t\t\t\t\treturn cd;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\t// Lookup in all with not raw name\n\t\tfor (IClassDefinition cd : env.getClasses())\n\t\t{\n\t\t\tif (env.classToType.get(cd) == ClassType.Custom)\n\t\t\t{\n\t\t\t\tif (checkName(cd, unresolvedTypeName, false, env))\n\t\t\t\t{\n\t\t\t\t\treturn cd;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\tfor (IClassDefinition c : env.getClasses())\n\t\t{\n\t\t\tif (c.getName().equals(unresolvedTypeName))\n\t\t\t{\n\t\t\t\treturn c;\n\t\t\t}\n\t\t}\n\n\t\tfor (IClassDefinition c : env.getClasses())\n\t\t{\n\t\t\tif (c.getName().getTag().equals(unresolvedTypeName))\n\t\t\t{\n\t\t\t\treturn c;\n\t\t\t}\n\t\t}\n\n\t\tfor (IInterfaceDefinition i : env.getInterfaces())\n\t\t{\n\t\t\tif (i.getName().getName().equals(unresolvedTypeName))\n\t\t\t\treturn i;\n\t\t}\n\n\t\treturn null;// \"%\" + type;\n\n\t}", "<T> T resolve(Class<T> type);", "public TypeBinding resolveType(ClassScope scope) {\n\tthis.constant = Constant.NotAConstant;\n\tif (this.resolvedType != null) // is a shared type reference which was already resolved\n\t\treturn this.resolvedType.isValidBinding() ? this.resolvedType : null; // already reported error\n\n\tTypeBinding type = this.resolvedType = getTypeBinding(scope);\n\tif (this.resolvedType == null)\n\t\treturn null; // detected cycle while resolving hierarchy\t\n\tif (!this.resolvedType.isValidBinding()) {\n\t\treportInvalidType(scope);\n\t\treturn null;\n\t}\n\tif (isTypeUseDeprecated(this.resolvedType, scope))\n\t\treportDeprecatedType(scope);\n\ttype = scope.environment().convertToRawType(type);\n\tif (type.isRawType() \n\t\t\t&& (this.bits & IgnoreRawTypeCheck) == 0 \n\t\t\t&& scope.compilerOptions().getSeverity(CompilerOptions.RawTypeReference) != ProblemSeverities.Ignore) {\n\t\tscope.problemReporter().rawTypeReference((/*@OwnPar*/ /*@NoRep*/ TypeReference)this, type);\n\t}\t\t\t\n\treturn this.resolvedType = type;\t\n}", "private void internalResolve(Scope scope, boolean staticContext) {\n\t\tif (this.binding != null) {\n\t\t\tBinding existingType = scope.parent.getBinding(this.name, Binding.TYPE, (/*@OwnPar*/ /*@NoRep*/ TypeParameter)this, false);\n\t\t\tif (existingType != null \n\t\t\t\t\t&& this.binding != existingType \n\t\t\t\t\t&& existingType.isValidBinding()\n\t\t\t\t\t&& (existingType.kind() != Binding.TYPE_PARAMETER || !staticContext)) {\n\t\t\t\tscope.problemReporter().typeHiding((/*@OwnPar*/ /*@NoRep*/ TypeParameter)this, existingType);\n\t\t\t}\n\t\t}\n\t}", "@Test\n public void checkThatTheCacheIsUsed() {\n \tif (!useResourceCaching) {\n \t\treturn;\n \t}\n \t\n \t// The basic test setup is copied from testSearchPath2ElementsWithSuper\n String root0 = \"/apps/\";\n String root1 = \"/libs/\";\n searchPathOptions.setSearchPaths(new String[] {\n root0,\n root1\n });\n\n // set resource super type\n resourceSuperType = \"foo:superBar\";\n resourceSuperTypePath = ResourceUtil.resourceTypeToPath(resourceSuperType);\n replaceResource(null, resourceSuperType);\n\n final Resource r = request.getResource();\n \n \t// Execute the same call twice and expect that on 2nd time the ResourceResolver\n \t// is never used, because all is taken from the cache\n getLocations(r.getResourceType(),\n r.getResourceSuperType());\n Mockito.clearInvocations(resolver);\n getLocations(r.getResourceType(),\n r.getResourceSuperType());\n Mockito.verify(resolver, Mockito.never()).getResource(Mockito.anyString());\n \n // validate the cache cleanup\n int cacheEntries = ((Map<String,Resource>) resolver.getPropertyMap().get(LocationCollector.CACHE_KEY)).size();\n assertTrue(cacheEntries > 0);\n LocationCollector.clearCache(resolver);\n assertEquals(0,((Map<String,Resource>) resolver.getPropertyMap().get(LocationCollector.CACHE_KEY)).size());\n \n }", "<T> T resolve(String name, Class<T> type);", "public void testHierarchyLeaks() throws Exception {\n TestUtilities.createFile(getWorkDir(), \"Editors/text/x-jsp/\");\n TestUtilities.createFile(getWorkDir(), \"Editors/text/x-jsp/text/x-java/org-netbeans-modules-editor-mimelookup-impl-DummySettingImpl.instance\");\n TestUtilities.createFile(getWorkDir(), \"Editors/text/x-java/\");\n TestUtilities.sleepForWhile();\n\n {\n Lookup jspLookup = new SwitchLookup(MimePath.parse(\"text/x-jsp\"));\n Collection jspInstances = jspLookup.lookupAll(DummySetting.class);\n assertEquals(\"Wrong number of instances\", 0, jspInstances.size());\n }\n \n {\n Lookup javaLookup = new SwitchLookup(MimePath.parse(\"text/x-java\"));\n Collection javaInstances = javaLookup.lookupAll(DummySetting.class);\n assertEquals(\"Wrong number of instances\", 0, javaInstances.size());\n }\n \n {\n Lookup jspJavaLookup = new SwitchLookup(MimePath.parse(\"text/x-jsp/text/x-java\"));\n Collection jspJavaInstances = jspJavaLookup.lookupAll(DummySetting.class);\n assertEquals(\"Wrong number of instances\", 1, jspJavaInstances.size());\n assertEquals(\"Wrong instance\", DummySettingImpl.class, jspJavaInstances.iterator().next().getClass());\n }\n\n {\n Lookup javaJspLookup = new SwitchLookup(MimePath.parse(\"text/x-java/text/x-jsp\"));\n Collection javaJspInstances = javaJspLookup.lookupAll(DummySetting.class);\n assertEquals(\"Wrong number of instances\", 0, javaJspInstances.size());\n }\n }", "@Override\n public SymbolReference<ResolvedReferenceTypeDeclaration> tryToSolveType(String name) {\n try {\n return foundTypes.get(name, () -> {\n SymbolReference<ResolvedReferenceTypeDeclaration> result = tryToSolveTypeUncached(name);\n if (result.isSolved()) {\n return SymbolReference.solved(result.getCorrespondingDeclaration());\n }\n return result;\n });\n } catch (ExecutionException e) {\n throw new RuntimeException(e);\n }\n }", "public interface DocumentTypeQueryService extends XmlLoader {\n\n @Cacheable(value= org.kuali.rice.kew.api.doctype.DocumentType.Cache.NAME, key=\"'{BO}' + 'documentTypeId=' + #p0\")\n public DocumentType findById(String documentTypeId);\n\n @Cacheable(value= org.kuali.rice.kew.api.doctype.DocumentType.Cache.NAME, key=\"'{BO}' + 'name=' + #p0\")\n public DocumentType findByName(String name);\n\n @Cacheable(value= org.kuali.rice.kew.api.doctype.DocumentType.Cache.NAME,\n key=\"'{BO}' + 'documentTypeId=' + #p0.getId() + '|' + 'name=' + #p0.getName() + '|' + 'label=' + #p0.getLabel() + '|' + 'active=' + #p0.isActive() +'docGroupName=' + #p1 + '|' + 'climbHierarchy=' + #p2\")\n public Collection<DocumentType> find(DocumentType documentType, String docGroupName, boolean climbHierarchy);\n\n @Cacheable(value= org.kuali.rice.kew.api.doctype.DocumentType.Cache.NAME, key=\"'{BO}{root}' + 'documentTypeId=' + #p0.getId()\")\n public DocumentType findRootDocumentType(DocumentType docType);\n \n /**\n * Returns the DocumentType of the Document with the given ID. \n * \n * @since 2.3\n */\n @Cacheable(value= org.kuali.rice.kew.api.doctype.DocumentType.Cache.NAME, key=\"'{BO}' + 'documentId=' + #p0\")\n public DocumentType findByDocumentId(String documentId);\n \n}", "public abstract void resolve();", "private ModelFactory _getModelFactory(Class<?> type) {\n \tif (_typeCache.containsKey(type))\r\n \t{\r\n \t\treturn _typeCache.get(type);\r\n \t} else\r\n \t{\r\n \t\tIterator<Class<?>> iterator = _registeredModelFactories.keySet().iterator();\r\n \t\t\r\n \t\tModelFactory modelFactory = null;\r\n \t\t\r\n \t\t//loop through all registered model types to find a modelFactory\r\n \t\twhile (iterator.hasNext())\r\n \t\t{\r\n \t\t\tClass<?> targetType = iterator.next();\r\n \t\t\t\r\n \t\t\t//check if the object is eligible for wrapping by the current registration \r\n \t\t\tif (targetType.isAssignableFrom(type))\r\n \t\t\t{\r\n \t\t\t\tmodelFactory = _registeredModelFactories.get(targetType);\r\n \t\t\t\t\r\n \t\t\t\tbreak;\r\n \t\t\t}\r\n \t\t}\r\n \t\t\r\n \t\t//add the type to the cache and wrap the object\r\n \t\t_typeCache.put(type, modelFactory);\r\n \t\treturn modelFactory;\r\n \t}\r\n\t\t\r\n\t}", "boolean isResolvable(String name, Class<?> type);", "protected interface Resolver {\n\n /**\n * Adjusts a module graph if necessary.\n *\n * @param classLoader The class loader to adjust.\n * @param target The targeted class for which a proxy is created.\n */\n void accept(@MaybeNull ClassLoader classLoader, Class<?> target);\n\n /**\n * An action to create a resolver.\n */\n enum CreationAction implements PrivilegedAction<Resolver> {\n\n /**\n * The singleton instance.\n */\n INSTANCE;\n\n /**\n * {@inheritDoc}\n */\n @SuppressFBWarnings(value = \"REC_CATCH_EXCEPTION\", justification = \"Exception should not be rethrown but trigger a fallback.\")\n public Resolver run() {\n try {\n Class<?> module = Class.forName(\"java.lang.Module\", false, null);\n return new ForModuleSystem(Class.class.getMethod(\"getModule\"),\n module.getMethod(\"isExported\", String.class),\n module.getMethod(\"addExports\", String.class, module),\n ClassLoader.class.getMethod(\"getUnnamedModule\"));\n } catch (Exception ignored) {\n return NoOp.INSTANCE;\n }\n }\n }\n\n /**\n * A non-operational resolver for VMs that do not support the module system.\n */\n enum NoOp implements Resolver {\n\n /**\n * The singleton instance.\n */\n INSTANCE;\n\n /**\n * {@inheritDoc}\n */\n public void accept(@MaybeNull ClassLoader classLoader, Class<?> target) {\n /* do nothing */\n }\n }\n\n /**\n * A resolver for VMs that do support the module system.\n */\n @HashCodeAndEqualsPlugin.Enhance\n class ForModuleSystem implements Resolver {\n\n /**\n * The {@code java.lang.Class#getModule} method.\n */\n private final Method getModule;\n\n /**\n * The {@code java.lang.Module#isExported} method.\n */\n private final Method isExported;\n\n /**\n * The {@code java.lang.Module#addExports} method.\n */\n private final Method addExports;\n\n /**\n * The {@code java.lang.ClassLoader#getUnnamedModule} method.\n */\n private final Method getUnnamedModule;\n\n /**\n * Creates a new resolver for a VM that supports the module system.\n *\n * @param getModule The {@code java.lang.Class#getModule} method.\n * @param isExported The {@code java.lang.Module#isExported} method.\n * @param addExports The {@code java.lang.Module#addExports} method.\n * @param getUnnamedModule The {@code java.lang.ClassLoader#getUnnamedModule} method.\n */\n protected ForModuleSystem(Method getModule,\n Method isExported,\n Method addExports,\n Method getUnnamedModule) {\n this.getModule = getModule;\n this.isExported = isExported;\n this.addExports = addExports;\n this.getUnnamedModule = getUnnamedModule;\n }\n\n /**\n * {@inheritDoc}\n */\n @SuppressFBWarnings(value = \"REC_CATCH_EXCEPTION\", justification = \"Exception should always be wrapped for clarity.\")\n public void accept(@MaybeNull ClassLoader classLoader, Class<?> target) {\n Package location = target.getPackage();\n if (location != null) {\n try {\n Object module = getModule.invoke(target);\n if (!(Boolean) isExported.invoke(module, location.getName())) {\n addExports.invoke(module, location.getName(), getUnnamedModule.invoke(classLoader));\n }\n } catch (Exception exception) {\n throw new IllegalStateException(\"Failed to adjust module graph for dispatcher\", exception);\n }\n }\n }\n }\n }", "private void scanAndRegisterTypes() throws Exception {\n ScannedClassLoader scl = ScannedClassLoader.getSystemScannedClassLoader();\n // search annotations\n Iterator<Metadata> it = scl.getAll(MetadataType.class, Metadata.class); //CellFactorySPI.class);\n logger.log(Level.INFO, \"[Metadata Service] about to search classloader\");\n while (it.hasNext()) {\n Metadata metadata = it.next();\n logger.log(Level.INFO, \"[Metadata Service] using system scl, scanned type:\" + metadata.simpleName());\n registerMetadataType(metadata);\n }\n }", "<T> Map<String, T> resolveAll(Class<T> type);", "public abstract Class resolveClass(GenerationContext context);", "public Class<?> getType(ELContext context, Object base, Object property) {\n/* 282 */ context.setPropertyResolved(false);\n/* */ \n/* */ \n/* 285 */ for (int i = 0; i < this.size; i++) {\n/* 286 */ Class<?> type = this.elResolvers[i].getType(context, base, property);\n/* 287 */ if (context.isPropertyResolved()) {\n/* 288 */ return type;\n/* */ }\n/* */ } \n/* 291 */ return null;\n/* */ }", "Object cached(Class<?> api, ComponentContext context);", "public interface ClassesByNameProvider {\n\n List<ReferenceType> get(String s);\n\n static ClassesByNameProvider createCache(List<ReferenceType> allTypes) {\n return new Cache(allTypes);\n }\n\n /**\n * Caching implementation for name based class provider.\n */\n final class Cache implements ClassesByNameProvider {\n\n private final ConcurrentHashMap<String, ReferenceType> myCache;\n\n public Cache(List<ReferenceType> classes) {\n myCache = new ConcurrentHashMap<>();\n classes.forEach(t -> myCache.put(t.signature(), t));\n }\n\n @Override\n public List<ReferenceType> get(String s) {\n String signature = VirtualMachineProxyImpl.JNITypeParserReflect.typeNameToSignature(s);\n if (signature != null) {\n return (List<ReferenceType>) myCache.get(signature);\n }\n return Collections.emptyList();\n }\n }\n}", "protected void forceLazyInitialization() {\n getExchangeConverter();\n getInjector();\n getLanguageResolver();\n getTypeConverter();\n }", "protected Object lookupRecursive(Class<?> fieldType, javax.naming.Context context,\n NamingEnumeration<Binding> contextNames) throws Exception\n {\n while (contextNames.hasMore())\n {\n Binding contextName = contextNames.nextElement();\n Object value = contextName.getObject();\n if (javax.naming.Context.class.isInstance(value))\n {\n javax.naming.Context subContext = (javax.naming.Context) value;\n return lookupRecursive(fieldType, subContext, subContext.listBindings(\"/\"));\n }\n else\n {\n value = context.lookup(contextName.getName());\n if (fieldType.isInstance(value))\n {\n return value;\n }\n }\n }\n throw new RuntimeException(\"Could not lookup EJB reference for: \" + fieldType);\n }", "public void rescanRepository() { // recree les liste de classes connues a partir du depot\n // cette methode peut etre invoquee si on sait que le depot a ete modifie\n for (int i=0; i<types.length; i++) {\n classesDisponibles[i] = new HashMap<String, String>();\n scanRepository(types[i], classesDisponibles[i]);\n }\n }", "boolean isResolveByProxy();", "boolean isResolvable(Class<?> type);", "public void aboutToResolve(Scope scope) {\n\t// default implementation: do nothing\n}", "@Override\n public SymbolReference<ReferenceTypeDeclaration>\n tryToSolveType(String name)\n {\n if (foundTypes.containsKey(name)) {\n return SymbolReference.solved(foundTypes.get(name));\n }\n \n SymbolReference<ReferenceTypeDeclaration> result\n = tryToSolveTypeUncached(name);\n \n if (result.isSolved()) {\n foundTypes.put(name, result.getCorrespondingDeclaration());\n }\n return result;\n }", "private Class<?> findInternalClass(String name){\n Class<?> clazz = null;\n for (int i = 0; i < urls.length; i++) {\n String root = urls[i].getPath();\n clazz = realFindClass(root,name);\n if(clazz != null)\n break;\n }\n if(clazz != null) {\n classes.put(name,clazz);\n return clazz;\n }\n return null;\n }", "TypeDescription resolve(TypeDescription instrumentedType, TypeDescription.Generic parameterType);", "public TypeBinding resolveType(BlockScope scope, boolean checkBounds) {\n\tthis.constant = Constant.NotAConstant;\n\tif (this.resolvedType != null) // is a shared type reference which was already resolved\n\t\treturn this.resolvedType.isValidBinding() ? this.resolvedType : null; // already reported error\n\n\tTypeBinding type = this.resolvedType = getTypeBinding(scope);\n\tif (this.resolvedType == null)\n\t\treturn null; // detected cycle while resolving hierarchy\t\n\tif (!this.resolvedType.isValidBinding()) {\n\t\treportInvalidType(scope);\n\t\treturn null;\n\t}\n\tif (isTypeUseDeprecated(this.resolvedType, scope))\n\t\treportDeprecatedType(scope);\n\ttype = scope.environment().convertToRawType(type);\n\tif (type.isRawType() \n\t\t\t&& (this.bits & IgnoreRawTypeCheck) == 0 \n\t\t\t&& scope.compilerOptions().getSeverity(CompilerOptions.RawTypeReference) != ProblemSeverities.Ignore) {\t\n\t\tscope.problemReporter().rawTypeReference((/*@OwnPar*/ /*@NoRep*/ TypeReference)this, type);\n\t}\t\t\t\n\treturn this.resolvedType = type;\n}", "private CatalogResolver getCatalogResolver() {\n\n if (catalogResolver == null) {\n\n AntClassLoader loader;\n // Memory-Leak in line below\n loader = getProject().createClassLoader(Path.systemClasspath);\n\n try {\n Class<?> clazz = Class.forName(APACHE_RESOLVER, true, loader);\n\n // The Apache resolver is present - Need to check if it can\n // be seen by the catalog resolver class. Start by getting\n // the actual loader\n ClassLoader apacheResolverLoader = clazz.getClassLoader();\n\n // load the base class through this loader.\n Class<?> baseResolverClass\n = Class.forName(CATALOG_RESOLVER, true, apacheResolverLoader);\n\n // and find its actual loader\n ClassLoader baseResolverLoader\n = baseResolverClass.getClassLoader();\n\n // We have the loader which is being used to load the\n // CatalogResolver. Can it see the ApacheResolver? The\n // base resolver will only be able to create the ApacheResolver\n // if it can see it - doesn't use the context loader.\n clazz = Class.forName(APACHE_RESOLVER, true, baseResolverLoader);\n\n Object obj = clazz.newInstance();\n //\n // Success! The xml-commons resolver library is\n // available, so use it.\n //\n catalogResolver = new ExternalResolver(clazz, obj);\n } catch (Throwable ex) {\n //\n // The xml-commons resolver library is not\n // available, so we can't use it.\n //\n catalogResolver = new InternalResolver();\n if (getCatalogPath() != null\n && getCatalogPath().list().length != 0) {\n log(\"Warning: XML resolver not found; external catalogs\"\n + \" will be ignored\", Project.MSG_WARN);\n }\n log(\"Failed to load Apache resolver: \" + ex, Project.MSG_DEBUG);\n }\n }\n return catalogResolver;\n }", "private boolean updateCache(String type) {\n\t\treturn false;\n\t}", "protected IResolvedTypes getResolvedTypes(EObject obj) {\n\t\treturn this.typeResolver.resolveTypes(obj);\n\t}", "public synchronized static void internal_updateKnownTypes() {\r\n Set<ChangeLogType> changeLogTypes = GrouperDAOFactory.getFactory().getChangeLogType().findAll();\r\n GrouperCache<MultiKey, ChangeLogType> newTypes = new GrouperCache<MultiKey, ChangeLogType>(\r\n ChangeLogTypeFinder.class.getName() + \".typeCache\", 10000, false, 60*10, 60*10, false);\r\n \r\n Map<String, ChangeLogType> newTypesById = new HashMap<String, ChangeLogType>();\r\n \r\n for (ChangeLogType changeLogType : GrouperUtil.nonNull(changeLogTypes)) {\r\n newTypes.put(new MultiKey(changeLogType.getChangeLogCategory(), changeLogType.getActionName()), changeLogType);\r\n newTypesById.put(changeLogType.getId(), changeLogType);\r\n }\r\n \r\n //add builtins if necessary\r\n internal_updateBuiltinTypesOnce(newTypes, newTypesById);\r\n \r\n types = newTypes;\r\n typesById = newTypesById;\r\n }", "@Override\n public void filter(ContainerRequestContext requestContext, ContainerResponseContext responseContext) throws IOException {\n if (requestContext.getProperty(CACHE_USED) == null && responseContext.getEntity() instanceof Result) {\n Result result = (Result) responseContext.getEntity();\n String requestPath = requestContext.getUriInfo().getPath();\n\n log.info(\"{} - caching result: {}\", requestPath, result);\n\n cache.putIfAbsent(requestPath, result);\n }\n }", "protected abstract void beforeLookup(Lookup.Template t);", "void injectorClassLoader() {\n\t\t//To get the package name\n\t\tString pkgName = context.getPackageName();\n\t\t//To get the context\n\t\tContext contextImpl = ((ContextWrapper) context).getBaseContext();\n\t\t//Access to the Activity of the main thread\n\t\tObject activityThread = null;\n\t\ttry {\n\t\t\tactivityThread = Reflection.getField(contextImpl, \"mMainThread\");\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\t//Get package container\n\t\tMap mPackages = null;\n\t\ttry {\n\t\t\tmPackages = (Map) Reflection.getField(activityThread, \"mPackages\");\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\t//To obtain a weak reference object, the standard reflection\n\t\tWeakReference weakReference = (WeakReference) mPackages.get(pkgName);\n\t\tif (weakReference == null) {\n\t\t\tlog.e(\"loadedApk is null\");\n\t\t} else {\n\t\t\t//Get apk need to be loaded\n\t\t\tObject loadedApk = weakReference.get();\n\t\t\t\n\t\t\tif (loadedApk == null) {\n\t\t\t\tlog.e(\"loadedApk is null\");\n\t\t\t\treturn;\n\t\t\t}\n\t\t\tif (appClassLoader == null) {\n\t\t\t\t//Access to the original class loader\n\t\t\t\tClassLoader old = null;\n\t\t\t\ttry {\n\t\t\t\t\told = (ClassLoader) Reflection.getField(loadedApk,\n\t\t\t\t\t\t\t\"mClassLoader\");\n\t\t\t\t} catch (Exception e) {\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\t\t\t\t//According to the default class loader instantiate a plug-in class loader\n\t\t\t\tappClassLoader = new SyknetAppClassLoader(old, this);\n\t\t\t}\n\t\t\t//Replace the new plug-in loader loader by default\n\t\t\ttry {\n\t\t\t\tReflection.setField(loadedApk, \"mClassLoader\", appClassLoader);\n\t\t\t} catch (Exception e) {\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t}\n\t}", "void resolve();", "public void testHierarchyInheritance() throws Exception {\n // Create the mime path folders and add some instance\n TestUtilities.createFile(getWorkDir(), \"Editors/text/x-java/org-netbeans-modules-editor-mimelookup-impl-DummySettingImpl.instance\");\n TestUtilities.createFile(getWorkDir(), \"Editors/text/x-jsp/text/x-java/\");\n TestUtilities.sleepForWhile();\n\n {\n Lookup javaLookup = new SwitchLookup(MimePath.parse(\"text/x-java\"));\n Collection javaInstances = javaLookup.lookupAll(DummySetting.class);\n assertEquals(\"Wrong number of instances\", 1, javaInstances.size());\n assertEquals(\"Wrong instance\", DummySettingImpl.class, javaInstances.iterator().next().getClass());\n }\n \n {\n Lookup jspJavaLookup = new SwitchLookup(MimePath.parse(\"text/x-jsp/text/x-java\"));\n Collection jspJavaInstances = jspJavaLookup.lookupAll(DummySetting.class);\n assertEquals(\"Wrong number of instances\", 1, jspJavaInstances.size());\n assertEquals(\"Wrong instance\", DummySettingImpl.class, jspJavaInstances.iterator().next().getClass());\n }\n }", "public XMLClassDescriptorResolverImpl() {\n super();\n _descriptorCache = new DescriptorCacheImpl();\n }", "@Programmatic\n public boolean loadSpecifications(\n final List<Class<?>> typesToLoad,\n final Class<?> typeToIgnore,\n final IntrospectionState upTo) {\n boolean anyLoadedAsNull = false;\n for (final Class<?> typeToLoad : typesToLoad) {\n if (typeToLoad != typeToIgnore) {\n final ObjectSpecification objectSpecification =\n internalLoadSpecification(typeToLoad, null, upTo);\n final boolean loadedAsNull = (objectSpecification == null);\n anyLoadedAsNull = loadedAsNull || anyLoadedAsNull;\n }\n }\n return anyLoadedAsNull;\n }", "protected Object readResolve() {\n return Holder.INSTANCE;\n }", "public static void startCaching() {\n\t\t/*\n\t\t * component caching happens if the collection exists\n\t\t */\n\t\tfor (ComponentType aType : ComponentType.values()) {\n\t\t\tif (aType.preLoaded == false) {\n\t\t\t\taType.cachedOnes = new HashMap<String, Object>();\n\t\t\t}\n\t\t}\n\t}", "public interface MultiLookupProvider extends LookupProvider {\n\n /*\n * overridden for additional comments\n */\n /**\n * Adds the object and its complete class and interface hierarchy to the\n * lookup provider. If any of the class or interface types exists already\n * then this will be the new object instance that gets returned by the\n * lookup method. The add method in a multi-lookup provider will add the\n * object instance to each lookup set.\n */\n @Override\n <T> void add(T object);\n\n /**\n * Adds the object and its complete class and interface hierarchy to the\n * lookup provider. If any of the class or interface types exists already\n * then this will be the new object instance that gets returned by the\n * lookup method. The add method in a multi-lookup provider will add all of\n * the object instances to each lookup set.\n *\n * @param <T> the object type\n * @param objects The objects to add to this lookup provider.\n *\n * @throws NullPointerException if the lookups parameter is null\n * @throws IllegalArgumentException if a {@code Class<?>} type is passed as an\n * objects collection entry\n */\n <T> void addAll(Collection<T> objects);\n\n /**\n * Removes all of the objects from the lookup provider.\n *\n * @param <T> the object type\n * @param objects The collection of objects to remove from this lookup\n * provider.\n *\n * @return true if any of the objects were found and removed\n *\n * @throws NullPointerException if the lookup parameter is null\n * @throws IllegalArgumentException if a {@code Class<?>} type is passed as an\n * objects collection entry\n */\n <T> boolean removeAll(Collection<T> objects);\n\n /**\n * Lookup all of the object instances for a class or interface in the lookup\n * provider. All instances of the class or interface type will be returned\n * in a single collection. If no items exist then an empty collection will\n * be returned.\n * <p>\n * The returned set is a copy and unmodifiable.\n *\n * @param <T> the object type\n * @param type The object type to lookup in this provider.\n *\n * @return a set of the objects in the lookup that match the key or an empty\n * set if there are no objects that match\n *\n * @throws NullPointerException if the type argument is null\n */\n <T> Set<T> lookupAll(Class<T> type);\n\n /**\n * Lookup all of the object instances for a class or interface in the lookup\n * provider. All instances of the class or interface type will be returned\n * in a single collection. If no items exist then an empty collection will\n * be returned. The supplied collection will get cleared prior to adding the\n * unique objects.\n *\n * @param <T> the object type\n * @param type The object type to lookup in this provider.\n * @param out the output collection to add the items to\n *\n * @throws NullPointerException if the lookup or out parameter is null\n */\n <T> void lookupAll(Class<T> type, Collection<T> out);\n}", "@Override\n protected synchronized Class<?> loadClass(String name, boolean resolve) throws ClassNotFoundException {\n // First, check if the class has already been loaded\n Class<?> c = findLoadedClass(name);\n if (c == null) {\n try {\n\n // Next, try to resolve it from the mutated path. \n c = super.findClass(name);\n } catch (ClassNotFoundException e) {\n // And if all else fails delegate to the parent.\n c = super.loadClass(name, resolve);\n }\n }\n if (resolve) {\n resolveClass(c);\n }\n return c;\n }", "private void copyAndResolve() throws IOException {\n if (abort) {\n LOG.debug(\"Nothing to resolve on the backend.\");\n return;\n }\n // Step one is to see if there are any classes in the distributed cache\n if (!jConf.getBoolean(PIG_SCHEMA_TUPLE_ENABLED, SCHEMA_TUPLE_ON_BY_DEFAULT)) {\n LOG.info(\"Key [\" + PIG_SCHEMA_TUPLE_ENABLED +\"] was not set... will not generate code.\");\n return;\n }\n // Step two is to copy everything from the distributed cache if we are in distributed mode\n if (!isLocal) {\n copyAllFromDistributedCache();\n }\n // Step three is to see if the file needs to be resolved\n // If there is a \"$\" in the name, we know that it is an inner\n // class and thus doesn't need to be instantiated directly.\n for (File f : codeDir.listFiles()) {\n String name = f.getName().split(\"\\\\.\")[0];\n if (!name.contains(\"$\")) {\n filesToResolve.add(name);\n LOG.info(\"Added class to list of class to resolve: \" + name);\n }\n }\n // Step four is to actually try and resolve the classes\n resolveClasses();\n }", "protected void createLookupCache()\n/* */ {\n/* 1260 */ this.lookup = new SimpleCache(1, Math.max(getSize() * 2, 64));\n/* */ }", "public void testHierarchyRootInheritance() throws Exception {\n TestUtilities.createFile(getWorkDir(), \"Editors/text/x-jsp/text/x-java/\");\n TestUtilities.createFile(getWorkDir(), \"Editors/org-netbeans-modules-editor-mimelookup-impl-DummySettingImpl.instance\");\n TestUtilities.sleepForWhile();\n\n {\n Lookup lookup = new SwitchLookup(MimePath.parse(\"\"));\n Collection instances = lookup.lookupAll(DummySetting.class);\n assertEquals(\"Wrong number of instances\", 1, instances.size());\n assertEquals(\"Wrong instance\", DummySettingImpl.class, instances.iterator().next().getClass());\n }\n \n {\n Lookup jspLookup = new SwitchLookup(MimePath.parse(\"text/x-jsp\"));\n Collection jspInstances = jspLookup.lookupAll(DummySetting.class);\n assertEquals(\"Wrong number of instances\", 1, jspInstances.size());\n assertEquals(\"Wrong instance\", DummySettingImpl.class, jspInstances.iterator().next().getClass());\n }\n \n {\n Lookup javaLookup = new SwitchLookup(MimePath.parse(\"text/x-jsp/text/x-java\"));\n Collection javaInstances = javaLookup.lookupAll(DummySetting.class);\n assertEquals(\"Wrong number of instances\", 1, javaInstances.size());\n assertEquals(\"Wrong instance\", DummySettingImpl.class, javaInstances.iterator().next().getClass());\n }\n }", "@Override\n\tpublic void verifyReferencedTypes() {\n\t\tbeanType = resolve(getBuilder().getBean());\n\t\tbean = getContext().getModelSet().getBean(beanType, false);\n\t}", "private boolean resolveType(SearchedItem item,Ancestor ancestor) throws IllegalAccessException, IllegalArgumentException, InvocationTargetException {\n Object o = ancestor.getObject();\n if (o instanceof Jenkins){\n return _resolveType((Jenkins)o, item);\n }\n item.setType(Type.OTHER);\n return true;\n }", "@Override\n\tpublic IType resolve(MarkerList markers, IContext context, TypePosition position)\n\t{\n\t\tIType t = resolvePrimitive(this.name);\n\t\tif (t != null)\n\t\t{\n\t\t\treturn t;\n\t\t}\n\t\t\n\t\tIType type = IContext.resolveType(context, this.name);\n\t\tif (type == null)\n\t\t{\n\t\t\tmarkers.add(this.position, \"resolve.type\", this.toString());\n\t\t\treturn this;\n\t\t}\n\t\t\n\t\tif (type.typeTag() == TYPE_VAR_TYPE)\n\t\t{\n\t\t\tswitch (position)\n\t\t\t{\n\t\t\tcase CLASS:\n\t\t\tcase TYPE:\n\t\t\t\tmarkers.add(this.position, \"type.class.typevar\");\n\t\t\t\tbreak;\n\t\t\tcase SUPER_TYPE:\n\t\t\t\tmarkers.add(this.position, \"type.super.typevar\");\n\t\t\t\tbreak;\n\t\t\tdefault:\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\t\n\t\treturn type;\n\t}", "@Test\n public void genericsEnforcementAndStricterTypeEnforcementFromCaching() {\n\n //configure the cache\n MutableConfiguration config = new MutableConfiguration<>();\n config.setTypes(Identifier.class, Hound.class);\n Cache<Identifier, Dog> cache = cacheManager.createCache(cacheName, config);\n\n //Types are restricted and types are enforced\n //Cannot put in wrong types\n //cache.put(1, \"something\");\n\n //can put in\n cache.put(pistachio.getName(), pistachio);\n //can put in with generics but possibly not with configuration as not a hound\n try {\n cache.put(tonto.getName(), tonto);\n } catch (ClassCastException e) {\n //expected but not mandatory. The RI throws these.\n }\n\n //cannot get out wrong key types\n //assertNotNull(cache.get(1));\n assertNotNull(cache.get(pistachio.getName()));\n //not necessarily\n //assertNotNull(cache.get(tonto.getName()));\n\n //cannot remove wrong key types\n //assertTrue(cache.remove(1));\n assertTrue(cache.remove(pistachio.getName()));\n //not necessarily\n //assertTrue(cache.remove(tonto.getName()));\n }", "void resolveTypes(SymbolTable symbolTable) {\n defs.resolveTypes(symbolTable); // resolve all the definitions\n // DO NOT resolve anything else! (ie don't call super.resolveTypes() )\n // this is just a placeholder for a group of symbols with the same name\n }", "ISet<Class<?>> collectAllTypeWiredServices();", "synchronized String resolve(BundleImpl bundle, Iterator pkgs) {\n String res;\n if (Debug.packages) {\n Debug.println(\"resolve: \" + bundle);\n }\n // If we entry with tempResolved set, it means that we already have\n // resolved bundles. Check that it is true!\n if (tempResolved != null) {\n if (!tempResolved.contains(bundle)) {\n framework.listeners.frameworkError(bundle,\n new Exception(\"resolve: InternalError1!\"));\n }\n return null;\n }\n\n tempResolved = new HashSet();\n BundleImpl sb = checkBundleSingleton(bundle);\n if (sb != null) {\n tempResolved = null;\n return \"Singleton bundle failed to resolve because \" + sb + \" is already resolved\";\n }\n\n tempProvider = new HashMap();\n tempRequired = new HashMap();\n tempBlackList = new HashSet();\n tempResolved.add(bundle);\n String br = checkRequireBundle(bundle);\n if (br == null) {\n List failed = resolvePackages(pkgs);\n if (failed.size() == 0) {\n registerNewProviders(bundle);\n res = null;\n } else {\n StringBuffer r = new StringBuffer(\"missing package(s) or can not resolve all of the them: \");\n Iterator mi = failed.iterator();\n r.append(((ImportPkg)mi.next()).pkgString());\n while (mi.hasNext()) {\n r.append(\", \");\n r.append(((ImportPkg)mi.next()).pkgString());\n }\n res = r.toString();\n }\n } else {\n res = \"Failed to resolve required bundle or host: \" + br;\n } \n tempResolved = null;\n tempProvider = null;\n tempRequired = null;\n tempBlackList = null;\n if (Debug.packages) {\n Debug.println(\"resolve: Done for \" + bundle);\n }\n return res;\n }", "private void computeSourceClass(JClassType type) {\n if (type == null || alreadyRan.contains(type)) {\n return;\n }\n \n alreadyRan.add(type);\n \n /*\n * IMPORTANT: Visit my supertype first. The implementation of\n * com.google.gwt.lang.Cast.wrapJSO() depends on all superclasses having\n * typeIds that are less than all their subclasses. This allows the same\n * JSO to be wrapped stronger but not weaker.\n */\n computeSourceClass(type.extnds);\n \n if (!program.typeOracle.isInstantiatedType(type)) {\n return;\n }\n \n // Find all possible query types which I can satisfy\n Set/* <JReferenceType> */yesSet = null;\n for (Iterator iter = queriedTypes.keySet().iterator(); iter.hasNext();) {\n JReferenceType qType = (JReferenceType) iter.next();\n Set/* <JReferenceType> */querySet = (Set) queriedTypes.get(qType);\n if (program.typeOracle.canTriviallyCast(type, qType)) {\n for (Iterator it = querySet.iterator(); it.hasNext();) {\n JReferenceType argType = (JReferenceType) it.next();\n if (program.typeOracle.canTriviallyCast(type, argType)) {\n if (yesSet == null) {\n yesSet = new HashSet/* <JReferenceType> */();\n }\n yesSet.add(qType);\n break;\n }\n }\n }\n }\n \n /*\n * Weird: JavaScriptObjects MUST have a typeId, the implementation of\n * Cast.wrapJSO depends on it.\n */\n if (yesSet == null && !program.isJavaScriptObject(type)) {\n return; // won't satisfy anything\n }\n \n // use an array to sort my yes set\n JReferenceType[] yesArray = new JReferenceType[nextQueryId];\n if (yesSet != null) {\n for (Iterator it = yesSet.iterator(); it.hasNext();) {\n JReferenceType yesType = (JReferenceType) it.next();\n Integer boxedInt = (Integer) queryIds.get(yesType);\n yesArray[boxedInt.intValue()] = yesType;\n }\n }\n \n // create a sparse lookup object\n JsonObject jsonObject = new JsonObject(program);\n for (int i = 0; i < nextQueryId; ++i) {\n if (yesArray[i] != null) {\n JIntLiteral labelExpr = program.getLiteralInt(i);\n JIntLiteral valueExpr = program.getLiteralInt(1);\n jsonObject.propInits.add(new JsonPropInit(program, labelExpr,\n valueExpr));\n }\n }\n \n // add an entry for me\n classes.add(type);\n jsonObjects.add(jsonObject);\n }", "@Override\n public void addResourceTypeCacheCandidate(String resourceType, Integer resourceTypeId) throws FHIRPersistenceException {\n final String METHODNAME = \"addResourceTypeCacheCandidate\";\n log.entering(CLASSNAME, METHODNAME);\n\n if (this.runningInTrx && ResourceTypesCache.isEnabled()) {\n if (this.rtCacheUpdater == null) {\n // Register a new ResourceTypeCacheUpdater for this thread/trx, if one hasn't been already registered.\n this.rtCacheUpdater = new ResourceTypesCacheUpdater(ResourceTypesCache.getCacheNameForTenantDatastore(), this.newResourceTypeIds);\n try {\n trxSynchRegistry.registerInterposedSynchronization(rtCacheUpdater);\n log.fine(\"Registered ResourceTypeCacheUpdater.\");\n } catch(Throwable e) {\n throw new FHIRPersistenceException(\"Failure registering ResourceTypesCacheUpdater\", e);\n }\n }\n this.newResourceTypeIds.put(resourceType, resourceTypeId);\n }\n\n log.exiting(CLASSNAME, METHODNAME);\n\n }", "public interface UnknownNameReferenceResolver<R, I extends IndexAddressable.NamedIndexAddressable<N>, N extends NamedSemanticRegion<T>, T extends Enum<T>> {\n\n <X> X resolve(Extraction extraction, UnknownNameReference<T> ref, ResolutionConsumer<R, I, N, T, X> c) throws IOException;\n\n default <X> Map<UnknownNameReference<T>, X> resolveAll(Extraction extraction,\n SemanticRegions<UnknownNameReference<T>> refs,\n ResolutionConsumer<R, I, N, T, X> c) throws IOException {\n Map<UnknownNameReference<T>, X> result = new HashMap<>();\n for (SemanticRegion<UnknownNameReference<T>> unk : refs) {\n X item = resolve(extraction, unk.key(), c);\n if (item != null) {\n result.put(unk.key(), item);\n }\n }\n return result;\n }\n\n Class<T> type();\n}", "protected void clearCaches() {\n DescriptorFactory.clearInstance();\n ObjectTypeFactory.clearInstance();\n TypeQualifierApplications.clearInstance();\n TypeQualifierAnnotation.clearInstance();\n TypeQualifierValue.clearInstance();\n // Make sure the codebases on the classpath are closed\n AnalysisContext.removeCurrentAnalysisContext();\n Global.removeAnalysisCacheForCurrentThread();\n MethodInfo.clearCaches();\n if (classPath != null) {\n classPath.close();\n }\n }", "protected <K extends Resource> K doGetResource(String uri, Class<K> resourceType) {\n\t\tif (negCache.containsKey(uri)) {\n\t\t\t// System.out.println(\"in negative cache \" + uri);\n\t\t\treturn null;\n\t\t}\n\t\tString objectUri = uri;\n\t\tif (uri.startsWith(\"repo:\")) { //$NON-NLS-1$\n\t\t\tobjectUri = uri.substring(5);\n\t\t\tK r = getFromParent(objectUri, resourceType);\n\t\t\tif (r != null)\n\t\t\t\treturn addToCache(r, uri);\n\t\t}\n\t\tif (c != null)\n\t\t\ttry {\n\t\t\t\tIProgressMonitor monitor = new NullProgressMonitor();\n\t\t\t\t// System.out.println(\"get from server \" + uri);\n\t\t\t\tif (objectUri.contains(\"/\")) { //$NON-NLS-1$\n\t\t\t\t\t// Locate the resource inside the repository...\n\t\t\t\t\tResourceDescriptor r = new ResourceDescriptor();\n\t\t\t\t\tr.setUriString(objectUri);\n\t\t\t\t\tr = c.get(monitor, r, null);\n\t\t\t\t\tif (r.getIsReference())\n\t\t\t\t\t\tr = ReferenceResolver.resolveReference(c, r, null);\n\t\t\t\t\tif (rpath == null)\n\t\t\t\t\t\tinitRPath();\n\t\t\t\t\tString fpath = Misc.nvl(rpath);\n\t\t\t\t\tif (!objectUri.startsWith(\"/\")) //$NON-NLS-1$\n\t\t\t\t\t\tfpath += \"/\"; //$NON-NLS-1$\n\t\t\t\t\tfpath += objectUri;\n\t\t\t\t\tFile f = new File(fpath);\n\t\t\t\t\tif (f.getParentFile() != null)\n\t\t\t\t\t\tf.getParentFile().mkdirs();\n\t\t\t\t\tif (f.createNewFile()) {\n\t\t\t\t\t\tif (!r.getIsReference() && r.getHasData() && r.getData() != null) {\n\t\t\t\t\t\t\torg.apache.commons.io.FileUtils.writeByteArrayToFile(f, r.getData());\n\t\t\t\t\t\t} else\n\t\t\t\t\t\t\tc.get(monitor, r, f);\n\t\t\t\t\t}\n\t\t\t\t\tfileTypes.put(f, r.getWsType());\n\t\t\t\t} else if (runitUri != null) {\n\t\t\t\t\t// Locate the resource inside the report unit, if any...\n\t\t\t\t\tif (reportUnitResources == null) {\n\t\t\t\t\t\tResourceDescriptor rd = new ResourceDescriptor();\n\t\t\t\t\t\trd.setWsType(ResourceDescriptor.TYPE_REPORTUNIT);\n\t\t\t\t\t\trd.setUriString(runitUri);\n\t\t\t\t\t\trd = c.get(monitor, rd, null);\n\t\t\t\t\t\treportUnitResources = c.list(monitor, rd);\n\t\t\t\t\t\tif (reportUnitResources == null)\n\t\t\t\t\t\t\treportUnitResources = new ArrayList<ResourceDescriptor>();\n\t\t\t\t\t}\n\n\t\t\t\t\t// find the resource...\n\t\t\t\t\tfor (ResourceDescriptor r : reportUnitResources) {\n\t\t\t\t\t\tif (r.getName() == null || !r.getName().equals(objectUri))\n\t\t\t\t\t\t\tcontinue;\n\t\t\t\t\t\tif (r.getIsReference())\n\t\t\t\t\t\t\tr = ReferenceResolver.resolveReference(c, r, monitor);\n\t\t\t\t\t\tif (ResourceFactory.isFileResourceType(r)) {\n\t\t\t\t\t\t\tIFile file = (IFile) jConfig.get(FileUtils.KEY_FILE);\n\n\t\t\t\t\t\t\tFile fp = null;\n\t\t\t\t\t\t\tIContainer pf = file.getParent();\n\t\t\t\t\t\t\tif (pf.getRawLocation() != null)\n\t\t\t\t\t\t\t\tfp = pf.getRawLocation().toFile();\n\t\t\t\t\t\t\telse if (pf.getLocationURI() != null)\n\t\t\t\t\t\t\t\tfp = new File(pf.getLocationURI());\n\t\t\t\t\t\t\telse\n\t\t\t\t\t\t\t\treturn addToCache(null, uri);\n\n\t\t\t\t\t\t\tFile f = new File(fp, objectUri);\n\t\t\t\t\t\t\tif (f.getParentFile() != null && !f.getParentFile().mkdirs() && f.createNewFile())\n\t\t\t\t\t\t\t\tc.get(monitor, r, f);\n\t\t\t\t\t\t\tfileTypes.put(f, r.getWsType());\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\trefresh();\n\t\t\t\tString u = uri;\n\t\t\t\tif (u.startsWith(\"repo:\"))\n\t\t\t\t\tu = u.substring(5);\n\t\t\t\treturn addToCache(getFromParent(u, resourceType), uri);\n\t\t\t} catch (Exception ex) {\n\t\t\t\tex.printStackTrace();\n\t\t\t}\n\t\treturn addToCache(null, uri);\n\t}", "@Test\n public void simpleAPINoGenericsAndNoTypeEnforcementStoreByReference() {\n\n MutableConfiguration config = new MutableConfiguration().setStoreByValue(false);\n Cache cache = cacheManager.createCache(cacheName, config);\n Identifier2 one = new Identifier2(\"1\");\n\n //can put different things in\n cache.put(one, \"something\");\n cache.put(pistachio.getName(), pistachio);\n cache.put(tonto.getName(), tonto);\n cache.put(bonzo.getName(), bonzo);\n cache.put(juno.getName(), juno);\n cache.put(talker.getName(), talker);\n\n try {\n cache.put(skinny.getName(), skinny);\n } catch(Exception e) {\n //not serializable expected\n }\n //can get them out\n Identifier2 one_ = new Identifier2(\"1\");\n Assert.assertEquals(one, one_);\n Assert.assertEquals(one.hashCode(), one_.hashCode());\n assertNotNull(cache.get(one_));\n assertNotNull(cache.get(one));\n assertNotNull(cache.get(pistachio.getName()));\n\n //can remove them\n assertTrue(cache.remove(one));\n assertTrue(cache.remove(pistachio.getName()));\n }", "private ProxyMap getFactoryProxyMap(Class type) {\n // we don't lock here; ok if two proxies get generated for same type\n ProxyMap proxy = (ProxyMap) _proxies.get(type);\n if (proxy == null) {\n ClassLoader l = GeneratedClasses.getMostDerivedLoader(type,\n ProxyMap.class);\n Class pcls = loadBuildTimeProxy(type, l);\n if (pcls == null)\n pcls = generateAndLoadProxyMap(type, true, l);\n proxy = (ProxyMap) instantiateProxy(pcls, null, null);\n _proxies.put(type, proxy);\n }\n return proxy;\n }", "@Test\n public void testWithCacheMapKeyAlreadyUsed() {\n \t\n String root0 = \"/apps/\";\n searchPathOptions.setSearchPaths(new String[] {\n root0\n });\n\n final Resource r = request.getResource();\n final Object storedElement = \"randomString\";\n r.getResourceResolver().getPropertyMap().put(LocationCollector.CACHE_KEY, storedElement);\n List<Resource> loc = getLocations(r.getResourceType(),\n r.getResourceSuperType());\n \n List<Resource> expected = Arrays.asList(\n \t\tr(root0 + resourceTypePath), // /apps/foo/bar\n r(root0 + DEFAULT_RESOURCE_TYPE)); // /apps/sling/servlet/default\n assertThat(loc,isSameResourceList(expected));\n \t\n assertEquals(storedElement, r.getResourceResolver().getPropertyMap().get(LocationCollector.CACHE_KEY));\n \n // make sure that a cache clear does not clear this entry\n LocationCollector.clearCache(resolver);\n assertEquals(storedElement, r.getResourceResolver().getPropertyMap().get(LocationCollector.CACHE_KEY));\n \n \t\n }", "@SuppressWarnings(\"unused\")\r\n\t\tpublic static void resolveSearchInMembersScopeForFunction(CommonScopeLookup search, Reference retType) {\n\t\t}", "protected Object readResolve() {\r\n\t\treturn getInstance();\r\n\t}", "protected Object readResolve() {\r\n\t\treturn getInstance();\r\n\t}", "@Override\n protected Class<?> loadClass(String name, boolean resolve)\n throws ClassNotFoundException {\n Class<?> loadedClass = findLoadedClass(name);\n if (loadedClass == null) {\n try {\n if (_classLoader != null) {\n loadedClass = _classLoader.loadClass(name);\n }\n } catch (ClassNotFoundException ex) {\n // class not found in system class loader... silently skipping\n }\n\n try {\n // find the class from given jar urls as in first constructor parameter.\n if (loadedClass == null) {\n loadedClass = findClass(name);\n }\n } catch (ClassNotFoundException e) {\n // class is not found in the given urls.\n // Let's try it in parent classloader.\n // If class is still not found, then this method will throw class not found ex.\n loadedClass = super.loadClass(name, resolve);\n }\n }\n\n if (resolve) { // marked to resolve\n resolveClass(loadedClass);\n }\n return loadedClass;\n }", "public interface LookupManager {\n\n /**\n * Look up a service instance by the service name.\n *\n * It selects one instance from a set of instances for a given service based on round robin strategy.\n *\n * @param serviceName The Service name.\n * @return The ServiceInstance.\n * @throws ServiceException\n */\n public ServiceInstance lookupInstance(String serviceName);\n\n /**\n * Look up a list of service instances for a given service.\n *\n * It returns the complete list of the service instances.\n *\n * @param serviceName The Service name.\n * @return The ServiceInstance list.\n * @throws ServiceException\n */\n public List<ServiceInstance> lookupInstances(String serviceName);\n\n /**\n * Query for a service instance based on the service name and some filtering criteria on the service metadata.\n *\n * It returns a service instance from the service instance list based on round robin selection strategy.\n * The ServiceInstance list is of the specified Service.\n *\n * @param serviceName The Service name.\n * @param query The ServiceInstanceQuery for filtering the service instances.\n * @return The ServiceInstance.\n * @throws ServiceException\n */\n public ServiceInstance queryInstanceByName(String serviceName, ServiceInstanceQuery query);\n\n /**\n * Query for all the ServiceInstances of the specified Service, which satisfy the query criteria on the service metadata.\n *\n * It returns all ServiceInstances of specified Service that satisfy the ServiceInstanceQuery.\n * The ServiceInstance list is of the specified Service.\n *\n * @param serviceName The Service name.\n * @param query The ServiceInstanceQuery for filtering the service instances.\n * @return The ServiceInstance list.\n * @throws ServiceException\n */\n public List<ServiceInstance> queryInstancesByName(String serviceName, ServiceInstanceQuery query);\n\n /**\n * Query for one the ServiceInstances which satisfy the query criteria on the service metadata.\n *\n * It returns a service instance from the service instance list based on round robin selection strategy.\n * The ServiceInstance list have different Services.\n *\n * @param query The ServiceInstanceQuery for filtering the service instances.\n * @return The ServiceInstance list.\n * @throws ServiceException\n */\n public ServiceInstance queryInstanceByKey(ServiceInstanceQuery query);\n\n /**\n * Query for all the ServiceInstances which satisfy the query criteria on the service metadata.\n *\n * It returns all ServiceInstances of different Services which satisfy the query criteria.\n *\n * @param query The ServiceInstanceQuery for filtering the service instances.\n * @return The ServiceInstance list.\n * @throws ServiceException\n */\n public List<ServiceInstance> queryInstancesByKey(ServiceInstanceQuery query);\n\n /**\n * Get a ServiceInstance.\n *\n * It returns a ServiceInstances of the Service including the ServiceInstance of OperationalStatus DOWN.\n *\n * @param serviceName\n * the service name.\n * @param instanceId\n * the istanceId\n * @return\n * the ServiceInstance.\n * @throws ServiceException\n */\n public ServiceInstance getInstance(String serviceName, String instanceId);\n\n /**\n * Get all ServiceInstance List of the target Service, including the DOWN ServiceInstance.\n *\n * It will return all ServiceInstances of the Service including the ServiceInstance of OperationalStatus DOWN.\n *\n * @param serviceName\n * the service name.\n * @return\n * the ServiceInstance List.\n * @throws ServiceException\n */\n public List<ServiceInstance> getAllInstances(String serviceName);\n\n /**\n * Get all ServiceInstances of the specified Service, including the DOWN ServiceIntance,\n * which satisfy the query criteria on the service metadata.\n *\n * It filter all ServiceInstances of the specified Service including the ServiceInstance of OperationalStatus DOWN,\n * against the ServiceInstanceQuery.\n *\n * @param serviceName\n * the Service name.\n * @param query\n * the ServiceInstanceQuery.\n * @return\n * the ServiceInstance List.\n * @throws ServiceException\n */\n public List<ServiceInstance> getAllInstances(String serviceName, ServiceInstanceQuery query);\n\n /**\n * Get all the ServiceInstances, including the DOWN ServiceInstance, which satisfy the query criteria on the service metadata.\n *\n * It filters all ServiceInstances of different Services, including the DOWN ServiceInstance,\n * which satisfy the query criteria.\n *\n * @param query\n * the ServiceInstanceQuery criteria.\n * @return\n * the ServiceInstance List.\n * @throws ServiceException\n */\n public List<ServiceInstance> getAllInstancesByKey(ServiceInstanceQuery query);\n\n /**\n * Get the all ServiceInstances in the ServiceDirectory including the DOWN ServiceInstance.\n *\n * @return\n * the ServiceInstance List.\n * @throws ServiceException\n */\n public List<ServiceInstance> getAllInstances();\n\n /**\n * Add a NotificationHandler to the Service.\n *\n * This method can check the duplicate NotificationHandler for the serviceName, if the NotificationHandler\n * already exists in the serviceName, do nothing.\n *\n * Throw IllegalArgumentException if serviceName or handler is null.\n *\n * @param serviceName\n * the service name.\n * @param handler\n * the NotificationHandler for the service.\n * @throws ServiceException\n */\n public void addNotificationHandler(String serviceName, NotificationHandler handler);\n\n /**\n * Remove the NotificationHandler from the Service.\n *\n * Throw IllegalArgumentException if serviceName or handler is null.\n *\n * @param serviceName\n * the service name.\n * @param handler\n * the NotificationHandler for the service.\n * @throws ServiceException\n */\n public void removeNotificationHandler(String serviceName, NotificationHandler handler) ;\n}", "private void resolve(ICompilationUnit[] compilationUnits, String[] bindingKeys, ASTRequestor astRequestor, int apiLevel, Map compilerOptions, WorkingCopyOwner owner, int flags) {\n astRequestor.compilationUnitResolver = this;\n this.bindingTables = new DefaultBindingResolver.BindingTables();\n CompilationUnitDeclaration unit = null;\n try {\n int length = compilationUnits.length;\n org.eclipse.jdt.internal.compiler.env.ICompilationUnit[] sourceUnits = new org.eclipse.jdt.internal.compiler.env.ICompilationUnit[length];\n System.arraycopy(compilationUnits, 0, sourceUnits, 0, length);\n beginToCompile(sourceUnits, bindingKeys);\n // process all units (some more could be injected in the loop by the lookup environment)\n for (int i = 0; i < this.totalUnits; i++) {\n if (resolvedRequestedSourcesAndKeys(i)) {\n // cleanup remaining units\n for (; i < this.totalUnits; i++) {\n this.unitsToProcess[i].cleanUp();\n this.unitsToProcess[i] = null;\n }\n break;\n }\n unit = this.unitsToProcess[i];\n try {\n // this.process(...) is optimized to not process already known units\n super.process(unit, i);\n // requested AST\n char[] fileName = unit.compilationResult.getFileName();\n ICompilationUnit source = (ICompilationUnit) this.requestedSources.get(fileName);\n if (source != null) {\n // convert AST\n CompilationResult compilationResult = unit.compilationResult;\n org.eclipse.jdt.internal.compiler.env.ICompilationUnit sourceUnit = compilationResult.compilationUnit;\n char[] contents = sourceUnit.getContents();\n AST ast = AST.newAST(apiLevel);\n ast.setFlag(flags | AST.RESOLVED_BINDINGS);\n ast.setDefaultNodeFlag(ASTNode.ORIGINAL);\n ASTConverter converter = new ASTConverter(/*need to resolve bindings*/\n compilerOptions, true, this.monitor);\n BindingResolver resolver = new DefaultBindingResolver(unit.scope, owner, this.bindingTables, (flags & ICompilationUnit.ENABLE_BINDINGS_RECOVERY) != 0, this.fromJavaProject);\n ast.setBindingResolver(resolver);\n converter.setAST(ast);\n CompilationUnit compilationUnit = converter.convert(unit, contents);\n compilationUnit.setTypeRoot(source);\n compilationUnit.setLineEndTable(compilationResult.getLineSeparatorPositions());\n ast.setDefaultNodeFlag(0);\n ast.setOriginalModificationCount(ast.modificationCount());\n // pass it to requestor\n astRequestor.acceptAST(source, compilationUnit);\n worked(1);\n // remove at the end so that we don't resolve twice if a source and a key for the same file name have been requested\n // mark it as removed\n this.requestedSources.put(// mark it as removed\n fileName, // mark it as removed\n null);\n }\n // requested binding\n Object key = this.requestedKeys.get(fileName);\n if (key != null) {\n if (key instanceof BindingKeyResolver) {\n reportBinding(key, astRequestor, owner, unit);\n worked(1);\n } else if (key instanceof ArrayList) {\n Iterator iterator = ((ArrayList) key).iterator();\n while (iterator.hasNext()) {\n reportBinding(iterator.next(), astRequestor, owner, unit);\n worked(1);\n }\n }\n // remove at the end so that we don't resolve twice if a source and a key for the same file name have been requested\n // mark it as removed\n this.requestedKeys.put(// mark it as removed\n fileName, // mark it as removed\n null);\n }\n } finally {\n // cleanup compilation unit result\n unit.cleanUp();\n }\n // release reference to processed unit declaration\n this.unitsToProcess[i] = null;\n this.requestor.acceptResult(unit.compilationResult.tagAsAccepted());\n }\n // remaining binding keys\n DefaultBindingResolver resolver = new DefaultBindingResolver(this.lookupEnvironment, owner, this.bindingTables, (flags & ICompilationUnit.ENABLE_BINDINGS_RECOVERY) != 0, true);\n Object[] keys = this.requestedKeys.valueTable;\n for (int j = 0, keysLength = keys.length; j < keysLength; j++) {\n BindingKeyResolver keyResolver = (BindingKeyResolver) keys[j];\n if (keyResolver == null)\n continue;\n Binding compilerBinding = keyResolver.getCompilerBinding();\n IBinding binding = compilerBinding == null ? null : resolver.getBinding(compilerBinding);\n // pass it to requestor\n astRequestor.acceptBinding(((BindingKeyResolver) this.requestedKeys.valueTable[j]).getKey(), binding);\n worked(1);\n }\n } catch (OperationCanceledException e) {\n throw e;\n } catch (AbortCompilation e) {\n this.handleInternalException(e, unit);\n } catch (Error e) {\n this.handleInternalException(e, unit, null);\n throw e;\n } catch (RuntimeException e) {\n this.handleInternalException(e, unit, null);\n throw e;\n } finally {\n // disconnect ourselves from ast requestor\n astRequestor.compilationUnitResolver = null;\n }\n }", "public Object resolveObject(Object obj) throws IOException;", "protected Integer getResourceTypeIdFromCaches(String resourceType) {\n Integer resourceTypeId = ResourceTypesCache.getResourceTypeId(resourceType);\n // If no found, then get resourceTypeId from local newResourceTypeIds in case this id is already in newResourceTypeIds\n // but has not been updated to ResourceTypesCache yet. newResourceTypeIds is updated to ResourceTypesCache only when the\n // current transaction is committed.\n if (resourceTypeId == null) {\n resourceTypeId = this.newResourceTypeIds.get(resourceType);\n }\n return resourceTypeId;\n }", "@Test\n public void simpleAPITypeEnforcementObject() {\n\n\n //configure the cache\n MutableConfiguration<Object, Object> config = new MutableConfiguration<>();\n config.setTypes(Object.class, Object.class);\n\n //create the cache\n Cache<Object, Object> cache = cacheManager.createCache(\"simpleCache4\", config);\n\n //can put different things in\n cache.put(1, \"something\");\n cache.put(pistachio.getName(), pistachio);\n cache.put(tonto.getName(), tonto);\n cache.put(bonzo.getName(), bonzo);\n cache.put(juno.getName(), juno);\n cache.put(talker.getName(), talker);\n try {\n cache.put(skinny.getName(), skinny);\n } catch(Exception e) {\n //not serializable expected\n }\n //can get them out\n assertNotNull(cache.get(1));\n assertNotNull(cache.get(pistachio.getName()));\n\n //can remove them\n assertTrue(cache.remove(1));\n assertTrue(cache.remove(pistachio.getName()));\n }", "@Override\r\n\tpublic void dustKnowledgeInfoSourceFind(DustEntity type, DustEntity expression, DustEntity processor)\r\n\t\t\tthrows Exception {\n\r\n\t}", "public interface Resolvable {\n\n /**\n * Returns the status of resolution. If completely resolved returns enum\n * value \"RESOLVED\", if not returns \"UNRESOLVED\", in case reference of\n * grouping/typedef is added to uses/type but it's not resolved\n * \"INTRA_FILE_RESOLVED\" is returned.\n *\n * @return status of resolution\n */\n ResolvableStatus getResolvableStatus();\n\n /**\n * Set the status of type/uses resolution. If completely resolved set enum\n * value \"RESOLVED\", if not set it to \"UNRESOLVED\", in case reference of\n * grouping/typedef is added to uses/type but it's not resolved\n * \"INTRA_FILE_RESOLVED\" should be set.\n *\n * @param resolvableStatus status of resolution\n */\n void setResolvableStatus(ResolvableStatus resolvableStatus);\n\n /**\n * Resolves the linking.\n *\n * @throws DataModelException data model exception\n */\n void resolve()\n throws DataModelException;\n}", "@Override\n public ClassInfo findClass(String fqcn) {\n if (classLookup == null) {\n buildClassLookupMap();\n }\n return classLookup.get(fqcn);\n }", "protected void populateFacesELResolverForJsp(FacesContext context) {\n \n Map<String,Object> applicationMap = \n context.getExternalContext().getApplicationMap();\n String requestServiced = (String) \n applicationMap.get(this.FIRST_REQUEST_SERVICED);\n if (requestServiced != null) {\n // first request has been serviced, so ELResolvers have\n // been populated already.\n return;\n }\n \n synchronized(applicationMap) { \n requestServiced = (String) \n applicationMap.get(this.FIRST_REQUEST_SERVICED);\n if (requestServiced == null) {\n // this needs to be set irrespective whether the FacesResolvers\n // are added to compositeELResolverForJsp or not.\n applicationMap.put(this.FIRST_REQUEST_SERVICED, \"true\"); \n \n ApplicationAssociate appAssociate = \n ApplicationAssociate.getInstance(context.getExternalContext());\n CompositeELResolver compositeELResolverForJsp = \n appAssociate.getFacesELResolverForJsp();\n if (compositeELResolverForJsp == null) {\n if (logger.isLoggable(Level.INFO)) {\n logger.info(\"FacesELResolvers not registered with Jsp.\");\n }\n return;\n }\n compositeELResolverForJsp.add(new ImplicitObjectELResolverForJsp());\n compositeELResolverForJsp.add(new ManagedBeanELResolver());\n compositeELResolverForJsp.add(new FacesResourceBundleELResolver());\n \n // add ELResolvers from faces-config.xml\n ArrayList elResolversFromFacesConfig = \n appAssociate.geELResolversFromFacesConfig();\n if (elResolversFromFacesConfig != null) {\n Iterator it = elResolversFromFacesConfig.iterator();\n while (it.hasNext()) {\n compositeELResolverForJsp.add((ELResolver) it.next());\n }\n }\n \n // register legacy VariableResolver if any.\n if (appAssociate.getLegacyVariableResolver() != null ) {\n compositeELResolverForJsp.add(new VariableResolverChainWrapper(\n appAssociate.getLegacyVariableResolver()));\n } else if (appAssociate.getLegacyVRChainHead() != null) {\n compositeELResolverForJsp.add(new VariableResolverChainWrapper(\n appAssociate.getLegacyVRChainHead())); \n }\n \n // add legacy PropertyResolvers if any\n if (appAssociate.getLegacyPropertyResolver() != null ) {\n compositeELResolverForJsp.add(new PropertyResolverChainWrapper(\n appAssociate.getLegacyPropertyResolver()));\n } else if (appAssociate.getLegacyPRChainHead() != null) {\n compositeELResolverForJsp.add(new PropertyResolverChainWrapper(\n appAssociate.getLegacyPRChainHead())); \n }\n \n // add ELResolvers added via Application.addELResolver()\n ArrayList elResolversFromApplication = \n appAssociate.getApplicationELResolvers();\n if (elResolversFromApplication != null) {\n Iterator it = elResolversFromApplication.iterator();\n while (it.hasNext()) {\n compositeELResolverForJsp.add((ELResolver) it.next());\n }\n }\n \n }\n }\n }", "<T> void lookupAll(Class<T> type, Collection<T> out);", "ObjectAndClock tryRead(OID oid, Class type, Clock dependencies);", "public static GenericReportReader initialize (Origin findingType)\r\n {\r\n GenericReportReader result = null;\r\n synchronized (GENERIC_REPORT_TYPES)\r\n {\r\n if (!GENERIC_REPORT_TYPES.containsKey(findingType))\r\n {\r\n try\r\n {\r\n result = new GenericReportReader(findingType);\r\n }\r\n catch (Exception ex)\r\n {\r\n // TODO: collect this an add it to the findings map later!\r\n logger.log(Level.WARNING,\r\n \"Could not load finding type for '\" + findingType\r\n + \"' failed with \" + ex.getMessage() + \".\", ex);\r\n }\r\n GENERIC_REPORT_TYPES.put(findingType, result);\r\n }\r\n result = GENERIC_REPORT_TYPES.get(findingType);\r\n }\r\n return result;\r\n }", "private void registerTypeSystemsWithCasManager() throws Exception {\n CasManager manager = cpeFactory.getResourceManager().getCasManager();\n\n ProcessingResourceMetaData crMetaData = collectionReader.getProcessingResourceMetaData();\n if (crMetaData != null) {\n manager.addMetaData(crMetaData);\n }\n if (collectionReader instanceof CollectionReader) {\n CasInitializer casIni = ((CollectionReader) collectionReader).getCasInitializer();\n if (casIni != null && casIni.getProcessingResourceMetaData() != null) {\n manager.addMetaData(casIni.getProcessingResourceMetaData());\n }\n } else if (collectionReader instanceof CasDataCollectionReader) {\n CasDataInitializer casIni = ((CasDataCollectionReader) collectionReader)\n .getCasDataInitializer();\n if (casIni != null && casIni.getCasInitializerMetaData() != null) {\n manager.addMetaData(casIni.getCasInitializerMetaData());\n }\n }\n for (int i = 0; i < annotatorList.size(); i++) {\n ProcessingContainer container = (ProcessingContainer) annotatorList.get(i);\n if (container.getStatus() == Constants.CAS_PROCESSOR_DISABLED) {\n continue; // skip over disabled CasProcessors\n }\n if (UIMAFramework.getLogger().isLoggable(Level.FINEST)) {\n UIMAFramework.getLogger(this.getClass()).logrb(Level.FINEST, this.getClass().getName(),\n \"process\", CPMUtils.CPM_LOG_RESOURCE_BUNDLE,\n \"UIMA_CPM_checkout_cp_from_container__FINEST\",\n new Object[] { Thread.currentThread().getName(), container.getName() });\n }\n CasProcessor processor = container.getCasProcessor();\n try {\n if (processor instanceof AnalysisEngineImplBase) {\n // Integrated AEs already have added their metadata to the CasManager during\n // their initialization, so we don't need to do it again.\n // (Exception: when running from \"old\" CPM interface - where AEs are created outside\n // and passed in, the AE may not share a ResourceManager with the CPE. In that case\n // we DO need to register its metadata.)\n if (((AnalysisEngine) processor).getResourceManager() == cpeFactory\n .getResourceManager()) {\n continue;\n }\n }\n ProcessingResourceMetaData md = processor.getProcessingResourceMetaData();\n\n if (md != null) {\n manager.addMetaData(md);\n }\n } finally {\n container.releaseCasProcessor(processor);\n }\n }\n for (int i = 0; i < consumerList.size(); i++) {\n ProcessingContainer container = (ProcessingContainer) consumerList.get(i);\n if (container.getStatus() == Constants.CAS_PROCESSOR_DISABLED) {\n continue; // skip over disabled CasProcessors\n }\n\n if (UIMAFramework.getLogger().isLoggable(Level.FINE)) {\n UIMAFramework.getLogger(this.getClass()).logrb(Level.FINE, this.getClass().getName(),\n \"process\", CPMUtils.CPM_LOG_RESOURCE_BUNDLE,\n \"UIMA_CPM_checkout_cp_from_container__FINEST\",\n new Object[] { Thread.currentThread().getName(), container.getName() });\n }\n\n CasProcessor processor = container.getCasProcessor();\n try {\n if (processor instanceof AnalysisEngineImplBase) {\n // (Exception: when running from \"old\" CPM interface - where AEs are created outside\n // and passed in, the AE may not share a ResourceManager with the CPE. In that case\n // we DO need to register its metadata.)\n if (((AnalysisEngine) processor).getResourceManager() == cpeFactory\n .getResourceManager()) {\n continue;\n }\n }\n ProcessingResourceMetaData md = processor.getProcessingResourceMetaData();\n\n if (md != null) {\n manager.addMetaData(md);\n }\n } finally {\n container.releaseCasProcessor(processor);\n }\n }\n }", "private @Nullable Type resolveType(@NotNull String typeName) {\n QnTypeRef typeRef = new QnTypeRef(Qn.fromDotSeparated(typeName));\n return (Type) typesResolver.resolve(typeRef);\n }", "@Test\n public void genericsEnforcementAndStricterTypeEnforcement() {\n\n //configure the cache\n MutableConfiguration config = new MutableConfiguration<>();\n config.setTypes(Identifier.class, Hound.class);\n Cache<Identifier, Dog> cache = cacheManager.createCache(cacheName, config);\n\n //Types are restricted and types are enforced\n //Cannot put in wrong types\n //cache.put(1, \"something\");\n\n //can put in\n cache.put(pistachio.getName(), pistachio);\n //can put in with generics but possibly not with configuration as not a hound\n try {\n cache.put(tonto.getName(), tonto);\n } catch (ClassCastException e) {\n //expected but not mandatory. The RI throws these.\n }\n\n //cannot get out wrong key types\n //assertNotNull(cache.get(1));\n assertNotNull(cache.get(pistachio.getName()));\n //not necessarily\n //assertNotNull(cache.get(tonto.getName()));\n\n //cannot remove wrong key types\n //assertTrue(cache.remove(1));\n assertTrue(cache.remove(pistachio.getName()));\n //not necessarily\n //assertTrue(cache.remove(tonto.getName()));\n }", "public void preCache(Class<?> type) {\n notNull(type, \"type cannot be null\");\n\n try {\n Reflector reflector = getReflector(type);\n reflector.preCache();\n }\n catch (ReflectException e) {\n throw e;\n }\n catch (Exception e) {\n throw new ReflectException(\"failed to pre-cache accessor/mutator maps for type: \" + type.getName(), e);\n }\n }", "@Override\n public boolean onLocalMapNotFound() {\n // non implementato\n return false;\n }", "@Test\n void testinjectionPointResolversFor() {\n PicoServices picoServices = PicoServices.picoServices().orElseThrow();\n DefaultServices services = (DefaultServices) PicoServices.realizedServices();\n services.bind(picoServices, new FakeModuleComponent(), true);\n\n ServiceInfoCriteria criteria = ServiceInfoCriteriaDefault.builder()\n .addQualifier(createNamed(\"whatever\"))\n .addContractImplemented(Closeable.class.getName())\n .build();\n List<String> result = injectionPointProvidersFor(services, criteria).stream()\n .map(ServiceProvider::description).toList();\n assertThat(result,\n contains(sp1.description()));\n }", "@Override\n public boolean isResolvableAs(Class<?> clazz) throws ContextInitializationException {\n return clazz == null ? false : clazz.isAssignableFrom(Properties.class);\n }", "protected Object readResolve() {\n return getInstance();\n }", "public abstract String resolve();", "default <T> List<T> resolve(Class<T> type, String... names) {\n if (names.length > 0) {\n return resolve(names, type);\n }\n\n return new ArrayList<>(resolveAll(type).values());\n }", "T resolve();", "@Override\n public void cacheStarting(ComponentRegistry cr, Configuration cfg, String cacheName) {\n BasicComponentRegistry gcr = cr.getGlobalComponentRegistry().getComponent(BasicComponentRegistry.class);\n\n if (PROTOBUF_METADATA_CACHE_NAME.equals(cacheName)) {\n BasicComponentRegistry bcr = cr.getComponent(BasicComponentRegistry.class);\n ProtobufMetadataManagerInterceptor protobufInterceptor = new ProtobufMetadataManagerInterceptor();\n bcr.registerComponent(ProtobufMetadataManagerInterceptor.class, protobufInterceptor, true);\n bcr.addDynamicDependency(AsyncInterceptorChain.class.getName(), ProtobufMetadataManagerInterceptor.class.getName());\n bcr.getComponent(AsyncInterceptorChain.class).wired()\n .addInterceptorAfter(protobufInterceptor, EntryWrappingInterceptor.class);\n }\n\n InternalCacheRegistry icr = gcr.getComponent(InternalCacheRegistry.class).running();\n if (!icr.isInternalCache(cacheName)) {\n ProtobufMetadataManagerImpl protobufMetadataManager =\n (ProtobufMetadataManagerImpl) gcr.getComponent(ProtobufMetadataManager.class).running();\n protobufMetadataManager.addCacheDependency(cacheName);\n\n SerializationContext serCtx = protobufMetadataManager.getSerializationContext();\n RemoteQueryManager remoteQueryManager = buildQueryManager(cfg, serCtx, cr);\n cr.registerComponent(remoteQueryManager, RemoteQueryManager.class);\n }\n }", "public void resolve (INPUT input)\n {\n this.resultProduced = false;\n execute(input);\n }", "@Override\n public void onDiscovery(String typeName, ClassLoader classLoader, JavaModule module, boolean loaded) {\n }", "<T> T getService(Class<T> type, boolean checkExistence);" ]
[ "0.55733407", "0.5553563", "0.55229694", "0.54481137", "0.5345599", "0.5343188", "0.5339399", "0.5227321", "0.51742584", "0.5134388", "0.5123746", "0.51086503", "0.5092168", "0.508897", "0.5079216", "0.50244653", "0.502028", "0.4940617", "0.49133527", "0.489282", "0.48761064", "0.48728907", "0.48608223", "0.48582238", "0.48543534", "0.4850154", "0.48378065", "0.48320937", "0.4815908", "0.48122203", "0.4808777", "0.4806601", "0.48023227", "0.48005593", "0.47970933", "0.47851703", "0.47806817", "0.47785348", "0.4777955", "0.47769678", "0.4748777", "0.47395533", "0.47152096", "0.4714882", "0.47060394", "0.4697712", "0.46944118", "0.46842763", "0.46787134", "0.46537086", "0.464143", "0.4639035", "0.46383515", "0.4619577", "0.45985043", "0.4587276", "0.4574543", "0.45743558", "0.4572746", "0.456575", "0.45645478", "0.45413876", "0.45380765", "0.45242807", "0.45239946", "0.45198578", "0.45166114", "0.4515089", "0.45114905", "0.45057702", "0.44970295", "0.44970295", "0.4487271", "0.44755393", "0.4462819", "0.44604573", "0.44573012", "0.4456556", "0.44537827", "0.44537732", "0.44524235", "0.44487533", "0.4416613", "0.44164348", "0.4410569", "0.4407464", "0.4405935", "0.44016612", "0.44004002", "0.43984878", "0.43984276", "0.43978554", "0.43956757", "0.43923327", "0.43865913", "0.43847543", "0.43819994", "0.43763417", "0.43761772", "0.43748847" ]
0.6247026
0
private static final Logger logger = LoggerFactory.getLogger(M_studentController.class);
@GetMapping("/reg_m_student") public String m_studentReg() { return "m_student_Form"; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public interface IndexController {\n\n @LoggerInfo(Method = \"/sys/index\",Name = \"系统模块首页\")\n String index(Model model);\n}", "@Override\n public void logs() {\n \n }", "public LogMessageController() {\n\t}", "@GetMapping(\"/log-test\")\n public String logTest(){\n String name = \"Spring\";\n // System.out.println(\"name = \" + name);\n\n // 로그 레벨 낮은 레벨 --> 높은 레벨\n log.trace(\"trace log={}\", name);\n log.debug(\"debug log={}\", name);\n log.info(\"info log={}\", name);\n log.warn(\"warn log={}\", name);\n log.error(\"error log={}\", name);\n return \"ok\";\n }", "public PersonLoginController() {\n }", "@RequestMapping(\"/\")\n String hello(){\n logger.debug(\"Debug message\");\n logger.info(\"Info message\");\n logger.warn(\"Warn message\");\n logger.error(\"Error message\");\n return \"Done\";\n }", "@GetMapping(\"/student\")\n\t// requires authentication and authorization\n\tpublic String getStudent() {\n\t\treturn \"hello student\";\n\t}", "PersonalDetailsController(){\n hrDB=new HRDatabase();\n }", "public void viewLogs() {\n\t}", "public StudentDemo(){\r\n \r\n \r\n \r\n }", "@RequestMapping(\"/log-test\")\n public String logTest() {\n String name = \"Spring\";\n\n /**\n * log.trace(\" trace log= \" + name); +로 사용 하면 안 되는 이유\n * 현재 로그 레벨은 debug 상태 출력시 나오지 그래서 trace는 출력 되지 않음\n * 그럼에도 불구하고, +를 사용하여 연산이 일어남\n * 연산이 일어나도 그 뒤에 trace 파라미터 넘길려니 확인 후 안 넘김\n * 연산은 곧 리소스 사용 그래서 리소스 낭비가 일어난다.\n *\n * log.trace(\" trace log={}\", name); 경우\n * trace에 파라미터를 넘기는 형식이라\n * 실행 시 trace 메소드를 보고 로그 중지\n * 리소스 낭비 될 일이 없다.\n */\n log.trace(\" trace log= \" + name);\n log.trace(\" trace log={}\", name);\n\n log.debug(\" debug log={}\", name);\n log.info(\" info log={}\", name);\n log.warn(\" warn log={}\", name);\n log.error(\" error log={}\", name);\n\n\n return \"ok\";\n }", "private StudentController() {\n\t\tstudents = new ArrayList<Student>();\n\t\tinflateFromFile();\n\t}", "public void logData(){\n }", "private ClientController(){\n\n }", "public LoginController() {\r\n\r\n }", "private UtilityDatabaseController() \n { \n }", "private void logUser() {\n }", "public EmployeeServlet()\n {\n logger = Logger.getLogger(getClass().getName());\n }", "public LogController logController() {\r\n\t\treturn logsController;\r\n\t}", "@Override\n public void log()\n {\n }", "private MissaJpaController() {\r\n }", "public LoginController() {\r\n }", "private Log getLog() {\n if (controller != null) {\n log = controller.getLog();\n } \n return log ;\n }", "public EmployeeLoginController() {\n }", "public ListaSEController() {\n }", "public EstadoProyectoController() {\n \n }", "LogRecorder getLogRecorder();", "LogRecorder getLogRecorder();", "public PersonasController() {\r\n }", "public StudentInteraction() {\n//\t\tsuper();\n\t\tsfCon = new StudentFunctionalityController();\n\t}", "public LoggingPage(ClientController controller )\n\t{\n\t\tthis.controller = controller;\n\t\tinitComponents();\n\t}", "public String get_log(){\n }", "private HibernateController(){}", "public reporteController() {\n }", "@Autowired\r\n public RentController(RentService rentService){\r\n this.rentService = rentService;\r\n }", "public ServicioLogger() {\n }", "public LicenciaController() {\n }", "@RequestMapping(value=\"/register\",method = RequestMethod.GET)\n\n public Student register(Student std) \n {\n return srt.saveAndFlush(std);\n }", "public static void main(String args[]) throws Exception{\n\n System.setProperty(\"env\",\"qa2\");\n AnnotationConfigApplicationContext context=new AnnotationConfigApplicationContext(EnvironmentConfig.class);\n ApiController controller=context.getBean(\"apiController\",ApiController.class);\n/// System.out.println(controller.login().getBody().jsonPath().getString(\"access_token\"));\n\n controller.login();\n System.out.println(controller.createManagementCompany());\n controller.doGeoSetup();\n Thread.sleep(2000);\n System.out.println(controller.defineSegmentTypes().statusCode());\n Thread.sleep(2000);\n System.out.println(controller.defineSegmentCategoryStructure().statusCode());\n Thread.sleep(2000);\n controller.createProperty();\n Thread.sleep(2000);\n controller.createCompanySegment();\n Thread.sleep(2000);\n controller.createSegment();\n //Thread.sleep(2000);\n //controller.deactiveManagementId();\n Thread.sleep(2000);\n // controller.generateRdpData();\n // System.out.println(new Date());\n controller.createImpactEvent();\n // PropertyUser controller=context.getBean(\"propertyUser\",PropertyUser.class);\n UserPermissionData userPermissionData=new UserPermissionData();\n controller.createNewUser(UserTypeConstants.PROPERTY_USER,userPermissionData.getPropertyUserPermission());\n context.close();\n }", "public LoginController() {\n\t\treadFromFile();\n\t\t// TODO Auto-generated constructor stub\n\t}", "private ClientController() {\n }", "public CreateDocumentController() {\n }", "@Override\n\tpublic void initLogger() {\n\t\t\n\t}", "public static void main(String[] args) {\n Student model = retriveStudentFromDatabase();\r\n\r\n //Create a view : to write student details on console\r\n View view = new View();\r\n\r\n Controller controller = new Controller(model, view);\r\n\r\n controller.updateView();\r\n\r\n //update model data\r\n controller.setStudentName(\"Gary\");\r\n\r\n controller.updateView();\r\n }", "public interface LoggerUtil {\n\t/**\n\t * Set the logger for the controller\n\t * \n\t * @param logName\n\t * @param filePath\n\t * @param logLevel\n\t * @return\n\t */\n\tLogger loggerArrangement(String logName, String filePath, LogeLevel logLevel);\n}", "public PlantillaController() {\n }", "private Log() {\r\n\t}", "public void doLog() {\n SelfInvokeTestService self = (SelfInvokeTestService)context.getBean(\"selfInvokeTestService\");\n self.selfLog();\n //selfLog();\n }", "public Controller()\n\t{\n\n\t}", "public StudentController(PrIS infoSys) {\r\n\t\tinformatieSysteem = infoSys;\r\n\t}", "@ResponseBody\n @RequestMapping(\"/hello\")\n public String hello() throws MyException {\n logger.debug(\"Logger Level : DEBUG\");\n logger.info(\"Logger Level : INFO\");\n logger.error(\"Logger Level : ERROR\");\n return \"hello\";\n }", "private void viewAllStudents() {\n Iterable<Student> students = ctrl.getStudentRepo().findAll();\n students.forEach(System.out::println);\n }", "public FindAllStudentServlet() {\n\t\tsuper();\n\t}", "private StoreController(){}", "@RequestMapping(method = RequestMethod.GET)\n //function to return all students\n public Collection<Student> getAllStudent() {\n return studentService.getAllStudent();\n\n }", "public MyLogs() {\n }", "public String index() throws ServiceException, ActionException {\n\t\tSystem.out.println(student);\r\n\r\n\t\tif (student.getSex() == null || \"\".equals(student.getSex())) {\r\n\t\t\treturn \"error\";\r\n\t\t}\r\n\t\tSubject subject = SecurityUtils.getSubject();\r\n\t\tUsernamePasswordToken token = new UsernamePasswordToken(student.getName(), student.getSex());\r\n\t\ttry {\r\n\t\t\t// 执行认证操作.\r\n\t\t\tsubject.login(token);\r\n\t\t} catch (AuthenticationException ae) {\r\n\t\t\tSystem.out.println(\"登陆失败: \" + ae.getMessage());\r\n\t\t\treturn \"error\";\r\n\t\t}\r\n\r\n\t\tHttpServletRequest request = ServletActionContext.getRequest();\r\n\t\trequest.getSession().setAttribute(\"student\", student);\r\n\t\tSystem.out.println(\"result===\" + surveyService.vote(\"Macile\", 20));\r\n\t\ttry {\r\n\t\t\ttestService.get();\r\n\t\t} catch (ServiceException e) {\r\n\t\t\tthrow new ActionException(\"action出现异常\" + e.getMessage());\r\n\t\t}\r\n\t\t// System.out.println(testService.get());\r\n\t\t// shiro认证成功后保存上传的文件\r\n\t\tfor (int i = 0; i < upload.length; i++) {\r\n\t\t\t// 生成文件唯一名称\r\n\t\t\tString uuidName = UploadUtils.getUUIDName(uploadFileName[i]);\r\n\t\t\t// 保存文件至upload文件夹\r\n\t\t\tFileInputStream fis = null;\r\n\t\t\tFileOutputStream fos = null;\r\n//\t\t\tInputStreamReader reader = null;\r\n//\t\t\tBufferedReader bfr = null;\r\n\t\t\ttry {\r\n\t\t\t\t// fis = new FileInputStream(upload[i]);\r\n//\t\t\t\treader = new InputStreamReader(fis);\r\n//\t\t\t\tbfr = new BufferedReader(reader);\r\n\t\t\t\tServletContext context = ServletActionContext.getServletContext();\r\n\t\t\t\t// 获取webpps目录路径\r\n\t\t\t\tString path = context.getRealPath(\"\");\r\n\t\t\t\t// 去掉项目名,将上传文件的文件夹放在与项目平级的目录中\r\n\t\t\t\tpath = path.substring(0, path.lastIndexOf(\"\\\\\"));\r\n\t\t\t\t// 上传文件的文件夹路径\r\n\t\t\t\tpath = path + \"\\\\\" + \"upload\";\r\n\t\t\t\tFile file = new File(path);\r\n\t\t\t\tif (!file.exists()) {\r\n\t\t\t\t\tfile.createNewFile();\r\n\t\t\t\t}\r\n\t\t\t\tSystem.out.println(file.getPath());\r\n\t\t\t\tFileUtils.moveFile(upload[i], new File(path, uuidName));\r\n\t\t\t\t// fos = new FileOutputStream(new File(path+\"\\\\\"+uuidName));\r\n//\t\t\t\tbyte[] b = new byte[1024];\r\n//\t\t\t\tint bt = -1;\r\n//\t\t\t\twhile((bt = fis.read(b))!=-1) {\r\n//\t\t\t\tfos.write(b, 0, bt);\t\r\n//\t\t\t\t}\r\n\t\t\t} catch (Exception e) {\r\n\t\t\t\te.printStackTrace();\r\n\t\t\t} finally {\r\n//\t\t\t\tif(fos!=null) {\r\n//\t\t\t\t\ttry {\r\n//\t\t\t\t\t\tfos.close();\r\n//\t\t\t\t\t} catch (IOException e) {\r\n//\t\t\t\t\t\te.printStackTrace();\r\n//\t\t\t\t\t}\r\n//\t\t\t\t}\r\n\r\n//\t\t\t\tif(fis!=null) {\r\n//\t\t\t\t\ttry {\r\n//\t\t\t\t\t\tfis.close();\r\n//\t\t\t\t\t} catch (IOException e) {\r\n//\t\t\t\t\t\te.printStackTrace();\r\n//\t\t\t\t\t}\r\n//\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn \"success\";\r\n\t}", "private void logika_rozpocznij(){\n\t}", "public StudentServlet() {\n\t\tsuper();\n\t}", "private LoginController(LoginService userService) {\n this.loginService = userService;\n }", "public static void main(String[] args) {\n LogInController logInController = new LogInController();\n logInController.initController();\n \n }", "public TipoInformazioniController() {\n\n\t}", "public int getStudentId() { // changed to string\n return studentId;\n }", "private HeaderBrandingTest()\n\t{\n\t\tBaseTest.classLogger = LoggerFactory.getLogger( HeaderBrandingTest.class );\n\t}", "public Controller() {\n super();\n }", "public Controller() {\n super();\n }", "public Logs() {\n initComponents();\n }", "public Student() {\n \n }", "public detalleInventarioController() {\n }", "@GetMapping(\"/showStudents\")\n public String showStudents(HttpSession session, Model model) {\n //Get a list of students from the controller\n List<Student_gra_84> students = studentDaoImpl.getAllStudents();\n\n\n //Add the results to the model\n model.addAttribute(\"students\", students);\n return \"showStudents\";\n }", "@Pointcut(\"execution(public * com.ac.reserve..*.*Controller.*(..))\")\n public void apiLog() {\n }", "@GetMapping(\"/details/{userName}/{studentPassword}\")\n\tpublic StudentRegistration getStudentDetails(@PathVariable(\"userName\") String userName,\n\t\t\t@PathVariable(\"studentPassword\") String studentPassword) {\n\t\tString methodName = \"StudentRegistration() inside StudentController class\";\n\t\tlogger.info(methodName + \"called\");\n\t\treturn studentService.getDetails(userName, studentPassword);\n\t}", "@Override\n protected Logger getLogger() {\n return LOGGER;\n }", "public ControllerEnfermaria() {\n }", "public HelloControllerSession() {\n }", "public void findallstudentservice() {\n\t\t dao.findallstudent();\r\n\t\t\r\n\t}", "public ClientController() {\n }", "@RequestMapping(value = \"/student\")\r\n\tpublic String addstudent(Student student) {\r\n\t\tStudentdaoimpl impl = new Studentdaoimpl();\r\n\t\timpl.addstudent(student);\r\n\t\treturn \"redirect:/findallstudent\";\r\n\r\n\t}", "public GenericController() {\n }", "public Student getStudent() {\n return student;\n }", "public interface IStudentService {\n\n public ModelAndView getStudents();\n\n public String addStudentAction(Map<String,String> requestParams);\n\n}", "@Override\n public Logger getLog(Class clazz) {\n return new Slf4jLogger(LoggerFactory.getLogger(clazz));\n }", "abstract void initiateLog();", "@Override\r\n\tpublic void login_student() {\n\t\trender(\"student/login.jsp\");\r\n\t}", "public interface StudentService {\n boolean login(String id, String password);\n\n /**\n * 获取学生基本信息\n *\n * @param id\n * @return\n */\n Student getBasicInfo(String id);\n\n /**\n * 修改学生信息\n *\n * @param student\n * @return\n */\n boolean editInfo(Student student);\n\n /**\n * 获取学生统计信息\n *\n * @param username\n * @return\n */\n StuAnalysisVO getAnalysisInfo(String username);\n\n /**\n * 取消会员资格\n *\n * @param username\n * @return\n */\n boolean deleteStudent(String username);\n\n /**\n * 注册\n *\n * @param student\n * @return\n */\n boolean register(Student student);\n}", "public RevisorLogger getLogger();", "@ResponseStatus(code=HttpStatus.OK)\r\n\t@RequestMapping(value=\"/update\", method=RequestMethod.GET)\r\n\tpublic void update() {\r\n\t\tSystem.out.println(\"StudentRestController.Update()_________\");\r\n\t}", "public FoodLogViewController() {\n }", "public BankRegistrationController() {\n }", "@RequestMapping(\"processForm\")\n\tpublic String processStudentForm(@ModelAttribute(\"student\") Student theStudent ) {\n\t\t\n\t\t//log input data to console\n\t\t//System.out.println(\"Last Name : \"+ theStudent.getFirstName());\n\t\t\n\t\treturn \"student-confirmation\";\n\t}", "private static void log(IStatus status) {\n\t getDefault().getLog().log(status);\n\t}", "public UserController() {\n\n }", "public ControllerTest()\r\n {\r\n }", "public void setStudentClass() {\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// setter method initialized\r\n System.out.println(\"Class : \" +studentClass); }", "@GetMapping(\"/add\")\n\tpublic List<Students> addStudent() {\n\t\tStudents student = new Students();\n\t\tstudent.setRollno(04);\n\t\tstudent.setSname(\"Cyborg\");\n\t\tstudent.setStudent_role(\"Graduate\");\n\t\tstudentMapper.insert(student);\n\t\treturn studentMapper.findAll(); \n\t}", "public int getStudentId() {\n return studentId;\n }", "public static void main(String[] args) {\n DataWsImpleService factory=new DataWsImpleService();\n DataWs dataws= factory.getDataWsImplePort();\n /* System.out.println(\"ok1\");\n //添加请求的客户端对象\n Client client= ClientProxy.getClient(dataws);\n //添加输出拦截器\n System.out.println(\"ok1\");\n List<Interceptor<? extends Message>> OutInterceptors =client.getOutInterceptors();\n OutInterceptors.add(new LoggingOutInterceptor());\n System.out.println(\"ok1\");\n //添加输入拦截器\n List<Interceptor<? extends Message>> InInterceptors =client.getInInterceptors();\n InInterceptors.add(new LoggingInInterceptor());\n */\n// System.out.println(\"ok2\");\n dataws.getStudentbyId(1);\n System.out.println(\"succeed\");\n \n }", "public AboutController(){\n }", "public Student getStudent() { return student; }", "private void logToFile() {\n }" ]
[ "0.6288515", "0.6261482", "0.6094932", "0.6026774", "0.6010404", "0.59837735", "0.5849763", "0.5794989", "0.57677263", "0.57620674", "0.5729131", "0.57287025", "0.5677112", "0.5675863", "0.5669396", "0.5632055", "0.56278825", "0.56241745", "0.56215954", "0.5609542", "0.5589846", "0.5588665", "0.55875516", "0.5576715", "0.5547271", "0.55328137", "0.55272615", "0.55272615", "0.5521918", "0.5519985", "0.55161977", "0.54985785", "0.5496809", "0.5485678", "0.547785", "0.5466793", "0.5442096", "0.54379684", "0.5430836", "0.5410244", "0.54006827", "0.53947586", "0.53823256", "0.5377712", "0.53771275", "0.5374775", "0.53725064", "0.5371363", "0.5360983", "0.5348143", "0.5339945", "0.5337356", "0.5318702", "0.5312652", "0.5309107", "0.5306882", "0.5304574", "0.53033495", "0.52989644", "0.5290545", "0.5289", "0.52882427", "0.52868044", "0.5285066", "0.5279133", "0.5279133", "0.52781785", "0.5277802", "0.52763724", "0.52618563", "0.5249065", "0.52472657", "0.52381825", "0.52330834", "0.5230479", "0.52254325", "0.52243775", "0.5221095", "0.5207627", "0.5201244", "0.5191658", "0.5187622", "0.5186923", "0.51846945", "0.5179807", "0.5176413", "0.5168133", "0.5162525", "0.5161498", "0.51595795", "0.5159324", "0.5157118", "0.5154506", "0.5154077", "0.5152911", "0.51513076", "0.5143383", "0.51363117", "0.51348925", "0.5129106" ]
0.55579054
24
test the number of packages objects in sefer Bereshit
@Test public void testPackagesTriples() { int expected = 12 + 50; // parashot + perakim, sefer is not added assertEquals(expected, packagesJson[1].subjects.size()); // note that element in position 0 is null // test the number of packages objects in sefer Devarim expected = 11 + 34; // sefer + parashot + perakim assertEquals(expected, packagesJson[5].subjects.size()); // test the number of packages objects in sefer Divrey Hayamim B expected = 0 + 36; // sefer + parashot + perakim assertEquals(expected, packagesJson[39].subjects.size()); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "int getPackagesCount();", "int getFHPackagesCount();", "public int getPackageCount() {\r\n return myPackages.size();\r\n }", "public int getPackagesCount() {\n return packages_.size();\n }", "public int getObjectCount() {\n\t\treturn objects.size(); // Replace with your code\n\t}", "public static int numberObjects()\r\n\t{\r\n\t\treturn(no_of_obj);\r\n\t}", "public int getFHPackagesCount() {\n return fHPackages_.size();\n }", "int getJarCount();", "int getVersionsCount();", "int getInstalledModuleVersionsCount();", "int getSuperClassesCount();", "@BeforeSuite\n\tpublic void numofTestCases() throws ClassNotFoundException {\n\t\tappiumService.TOTAL_NUM_OF_TESTCASES=GetMethods.TotalTestcase(\"_Stability_\", this.getClass());\n\n\n\n\t}", "public int getPackagesCount() {\n if (packagesBuilder_ == null) {\n return packages_.size();\n } else {\n return packagesBuilder_.getCount();\n }\n }", "public int getNumbObjects()\n\t{\n\t\treturn this.numObjects;\n\t}", "public int getFHPackagesCount() {\n if (fHPackagesBuilder_ == null) {\n return fHPackages_.size();\n } else {\n return fHPackagesBuilder_.getCount();\n }\n }", "private void CheckStructureIntegrity() {\n int size = 0;\n for (Module mod : modules) {\n size += mod.getAddresses().size();\n logger.info(\"BBS : {} Module {}\", mod.getAddresses().size(), mod.getName());\n }\n logger.info(\"Total BBS : {}\", size);\n }", "int getMetaInformationCount();", "int getMetaInformationCount();", "int getMetaInformationCount();", "int getMetaInformationCount();", "int getMetaInformationCount();", "public int getPackageElementCount() {\n\t\t\treturn this.PackageElements.size();\n\t\t}", "public int getNumOfClasses();", "public int getNumObjects(){\n return numObjects;\n }", "int getPartsCount();", "int getPartsCount();", "@Test\n public void countInfosTest() {\n // TODO: test countInfos\n }", "int countInstances();", "public int getNumberOfItemObjects() {\r\n\t\treturn itemFileVersions.size();\r\n\t}", "@Test\n public void testElementCounts() {\n assertEquals(0, model3d.getBlocks().size());\n\n assertEquals(28, model3d.getEdges().size());\n assertEquals(16, model3d.getFaces().size());\n assertEquals(14, model3d.getPoints().size());\n }", "int sizeOfObjectDefinitionArray();", "public int getPackageSize() {\r\n\t\tif (null == mList)\r\n\t\t\treturn 0;\r\n\t\treturn mList.size();\r\n\t}", "int getInfoCount();", "int getInfoCount();", "int getInfoCount();", "public int size() {\n\t\treturn _modules.size();\n\t}", "private int numOfObjectsInPackage(int bookNum) {\n int prakimForBook[] = {0, 50, 40, 27, 36, 34, 24, 21, 31, 24, 22,\n 25, 66, 52, 48, 14, 4, 9, 1, 4, 7, 3, 3, 3, 2, 14,\n 3, 150, 31, 42, 8, 4, 5, 12, 10, 12, 10, 13, 29, 36};\n int parashotForBook[] = {0, 12, 11, 10, 10, 11, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,\n 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0};\n\n return parashotForBook[bookNum] + prakimForBook[bookNum];\n }", "int getInstanceCount();", "@Test\r\n\tvoid testCount() {\r\n\t\tSimpleList test = new SimpleList();\r\n\t\ttest.add(7);\r\n\t\ttest.add(10);\r\n\t\ttest.add(9);\r\n\t\tint output = test.count();\r\n\t\tassertEquals(3, output);\r\n\t}", "int getItemsCount();", "int getItemsCount();", "public static int findNumberOfCreatedComputers() {\n return objCounter;\n }", "@Test\n public void testCoh3710_size()\n {\n doExpiryOpTest(new Runnable()\n {\n public void run()\n {\n assertEquals(0, getNamedCache(getCacheName0()).size());\n }\n });\n }", "int getClasspathCount();", "int getClasspathCount();", "protected long getObjectCount() {\r\n return objectCount;\r\n }", "int sizeOfGssExportedNameArray();", "@Override\n\tpublic int count() {\n\t\treturn 0;\n\t}", "@Override\n\tpublic int count() {\n\t\treturn 0;\n\t}", "@Override\n\tpublic int count() {\n\t\treturn 0;\n\t}", "@Override\n\tpublic int count() {\n\t\treturn 0;\n\t}", "@Override\r\n\t\tpublic int count() {\n\t\t\treturn 0;\r\n\t\t}", "public int getNumberOfClasses() {\n return 200;\n }", "@DISPID(11) //= 0xb. The runtime will prefer the VTID if present\r\n @VTID(18)\r\n int count();", "int getObjectAnnotationsCount();", "int getObjectAnnotationsCount();", "int getContentsCount();", "int getServicesCount();", "int getServicesCount();", "int getSystemCount();", "long getObjectSize(Object instance);", "@Test\n public void shouldCountLinesOfTestCodeInsideTestBundles() throws Exception {\n initializeOSGiProjectWithTestBundles();\n resetOutput();\n getShell().execute(\"osgi lot\");\n assertTrue(currentOsgiProject.get().getLinesOfTestCode().equals(2L));\n assertTrue(getOutput().contains(\"Total lines of test code:2\"));\n }", "public boolean haveCount () ;", "@Override\r\n\tprotected int count() {\n\t\treturn service.count();\r\n\t}", "int getMetadataCount();", "int getMetadataCount();", "int getMetadataCount();", "int getMetadataCount();", "@Test\r\n\tvoid testCount2() {\r\n\t\tSimpleList test = new SimpleList();\r\n\t\ttest.add(1);\r\n\t\ttest.add(2);\r\n\t\ttest.add(3);\r\n\t\ttest.add(4);\r\n\t\ttest.add(5);\r\n\t\ttest.add(6);\r\n\t\ttest.add(7);\r\n\t\ttest.add(8);\r\n\t\ttest.add(9);\r\n\t\ttest.add(10);\r\n\t\ttest.add(11);\r\n\t\tint output = test.count();\r\n\t\tassertNotEquals(10, output);\r\n\t}", "@Override\n public int getLibrosCount() throws SystemException {\n return libroPersistence.countAll();\n }", "@Test\n public void testCount() {\n System.out.println(\"**** count *****\");\n ConnectedComponentsDepthSearch instance = new ConnectedComponentsDepthSearch(g);\n int expResult = 3;\n int result = instance.count();\n assertEquals(expResult, result);\n }", "default int countItems() {\n return countItems(StandardStackFilters.ALL);\n }", "@Test\n public void testGetSizeOfCheckoutList() {\n }", "@Test\n\tpublic void bikesAvailable()\n\t{\t\t\n\t\tassertTrue(controller.getReport().getNoOfBikesAvailable() == 1);\n\t}", "int getFundsCount();", "int getFundsCount();", "public Long getElementCount();", "int getNumItems();", "@Test\n public void TEST_UR_MAP_OBJECT_COUNT() {\n Map[] maps = new Map[3];\n maps[0] = new Map(\"Map1/Map1.tmx\", 1000, \"easy\");\n maps[1] = new Map(\"Map1/Map1.tmx\", 1000, \"medium\");\n maps[2] = new Map(\"Map1/Map1.tmx\", 1000, \"hard\");\n for (int i = 0; i <= 2; i++) {\n Map map = maps[i];\n map.createLanes();\n int obstacleCount = map.lanes[0].obstacles.length;\n int powerupCount = map.lanes[0].powerUps.length;\n for (int j = 1; j <= 3; j++) {\n assertEquals(map.lanes[j].obstacles.length, obstacleCount);\n assertEquals(map.lanes[j].powerUps.length, powerupCount);\n }\n }\n }", "int getSnInfoCount();", "int getSnInfoCount();", "int getSnInfoCount();", "@Override\n\tpublic int size()\n\t{\n\t\tint count = 0;\n\t\tfor (Variable var : FactorGraphIterables.variables(rootGraph()))\n\t\t{\n\t\t\tif (var.getPrior() != null)\n\t\t\t{\n\t\t\t\t++count;\n\t\t\t}\n\t\t}\n\t\treturn count;\n\t}", "private int num_class_vars(ClassInfo cinfo) {\n\n RootInfo class_root = RootInfo.getClassPpt(cinfo, Runtime.nesting_depth);\n assert class_root.children.size() == 1;\n DaikonVariableInfo static_root = class_root.children.get(0);\n return static_root.children.size();\n }", "int findAllCount() ;", "boolean hasCount();", "int getBootclasspathCount();", "int getBootclasspathCount();", "@Test\n public void shouldCountLinesOfTestCode() throws Exception {\n initializeOSGiProjectWithTestCodeInsideBundles();\n resetOutput();\n getShell().execute(\"osgi lot\");\n assertTrue(getOutput().contains(\"Total lines of test code:4\"));\n }", "public int getCountExemplarsFree() {\r\n \t\tif (book == null) {\r\n \t\t\treturn 0;\r\n \t\t}\r\n \r\n \t\tint freeCount = 0;\r\n \t\tList<Exemplar> exemplars = exemplarMgr.findByBook(book);\r\n \t\t// list exemplars\r\n \t\tfor (Exemplar exemplar : exemplars) {\r\n \t\t\tif (!exemplar.getIsBorrowed()) {\r\n \t\t\t\tfreeCount++;\r\n \t\t\t}\r\n \t\t}\r\n \r\n \t\treturn freeCount;\r\n \t}", "public int get_count();", "public int getBundlesCount() {\n return bundles_.size();\n }", "public int sizeOf();", "public void count() {\n APIlib.getInstance().addJSLine(jsBase + \".count();\");\n }", "@Test\n\tpublic void testCountItems() {\n\t\tFile test = new File(\"X:\\\\Documents\\\\PS9 Test\");\n\t\tassertEquals(13,Explorer.countItems(test));\n\t}", "@Override\r\n\tpublic long count() {\n\t\treturn 0;\r\n\t}", "int countFeatures();", "int countFeatures();", "public int getObjectPendingFinalizationCount();", "public int getProductCount();" ]
[ "0.74387294", "0.732865", "0.67641616", "0.6619808", "0.6560779", "0.6509685", "0.64469916", "0.6428652", "0.6413642", "0.63212204", "0.62663263", "0.6246039", "0.6224586", "0.6167909", "0.6167204", "0.60692394", "0.60653526", "0.60653526", "0.60653526", "0.60653526", "0.60653526", "0.6065151", "0.605562", "0.6037236", "0.60228336", "0.60228336", "0.6011084", "0.59976023", "0.5993396", "0.5987663", "0.5987391", "0.5970372", "0.596791", "0.596791", "0.596791", "0.5949317", "0.5948842", "0.59488326", "0.59487945", "0.59461683", "0.59461683", "0.5931832", "0.5918028", "0.5912032", "0.5912032", "0.59109724", "0.5904629", "0.5886667", "0.5886667", "0.5886667", "0.5886667", "0.5880105", "0.5867304", "0.583885", "0.5832345", "0.5832345", "0.58323", "0.58267117", "0.58267117", "0.5819703", "0.58172923", "0.5816288", "0.58103126", "0.5806961", "0.57935125", "0.57935125", "0.57935125", "0.57935125", "0.5790975", "0.578962", "0.5789128", "0.5788264", "0.577496", "0.5774511", "0.5766952", "0.5766952", "0.57561654", "0.57538843", "0.574954", "0.5747366", "0.5747366", "0.5747366", "0.57473564", "0.5740695", "0.5739413", "0.57368886", "0.57364637", "0.57364637", "0.5733924", "0.57299584", "0.57278854", "0.57265544", "0.57253754", "0.5723495", "0.5721883", "0.5717584", "0.57136756", "0.57136756", "0.5707455", "0.5707451" ]
0.64032656
9
note that the main "sefer" object is removed from packages
private int numOfObjectsInPackage(int bookNum) { int prakimForBook[] = {0, 50, 40, 27, 36, 34, 24, 21, 31, 24, 22, 25, 66, 52, 48, 14, 4, 9, 1, 4, 7, 3, 3, 3, 2, 14, 3, 150, 31, 42, 8, 4, 5, 12, 10, 12, 10, 13, 29, 36}; int parashotForBook[] = {0, 12, 11, 10, 10, 11, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0}; return parashotForBook[bookNum] + prakimForBook[bookNum]; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private Unescaper() {\n\n\t}", "SmallEcorePackage getSmallEcorePackage();", "private stendhal() {\n\t}", "private SolutionsPackage() {}", "public void clearMainClass();", "MystPackage getMystPackage();", "@Override\n\tpublic void deneme() {\n\t\tsuper.deneme();\n\t}", "@Override\r\n\tprotected EPackage getEPackage() {\r\n\t return SGraphPackage.eINSTANCE;\r\n\t}", "SealPackage getSealPackage();", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\r\n\t\tpublic Package hacerRuido() {\n\t\treturn super.hacerRuido();\r\n\t\t}", "private StickFactory() {\n\t}", "public void removeAllPackages() {\r\n myPackages.clear();\r\n }", "private Seabee() {\n register(DirectionMarkerDetector.getInstance());\n register(GateDetector.getInstance());\n\n registerSubsystem(PathPlanner.getInstance());\n registerSubsystem(Imu.getInstance());\n registerSubsystem(Thrusters.getInstance());\n }", "private EagerlySinleton()\n\t{\n\t}", "@Override\n\tpublic void debite() {\n\t\t\n\t}", "public static void shut () {\r\n if(factory != null) { \t \r\n factory.finalixe(); \r\n }\r\n factory = null ;\r\n }", "@Override\n public boolean isPackaged() {\n return false;\n }", "@Override\n\tpublic void detalhar() {\n\t\t\n\t}", "@Override\n\tpublic void desligar() {\n\t\t\n\t}", "private NaturePackage() {}", "public void fixPackageContents() {\r\n\t\tif (isFixed)\r\n\t\t\treturn;\r\n\t\tisFixed = true;\r\n\t\tfixEClassifiers();\r\n\t}", "protected void uninstall() {\n\t\t//\n\t}", "protected void install()\n {\n _parent = null;\n _label = new ScLocalString();\n _model = new ScLocalObject();\n }", "public void helpOtherSwanSwim() {\n\tSwan other = new Swan();\n\tother.floatInWater(); // package access to superclass\n\tSystem.out.println(other.text); // package access to superclass\n }", "private VarietyPackage() {}", "public void sendeSpielfeld();", "public void fixPackageContents() {\n\t\tif (isFixed) return;\n\t\tisFixed = true;\n\t\tfixEClassifiers();\n\t}", "public void fixPackageContents() {\n\t\tif (isFixed) return;\n\t\tisFixed = true;\n\t\tfixEClassifiers();\n\t}", "public void fixPackageContents() {\n\t\tif (isFixed) return;\n\t\tisFixed = true;\n\t\tfixEClassifiers();\n\t}", "@Override\n\tpublic void sacrifier() {\n\t\t\n\t}", "public void reInit() {\n super.reInit();\n m_strPackage = null;\n if (m_subPackages != null) {\n m_subPackages.clear();\n }\n }", "@Override\n\tpublic void namespace() {\n\t\t\n\t}", "public static void main(String[] args) {\n\t\tSigleton s=Sigleton.getInstance();\r\n\t\t\r\n\t\tSystem.out.println(s);\r\n\t\t\r\n\t\tSigleton s1=Sigleton.getInstance();\r\n\t\tSystem.out.println(s1);\r\n\t\t\r\n\t\t\r\n\t\tSigleton s2=Sigleton.getInstance();\r\n\t\tSystem.out.println(s2);\r\n\t\t\r\n\t}", "public void desligar() {\n\r\n\t}", "public void swrap() throws NoUnusedObjectExeption;", "private TetrisMain() {\r\n //ensure uninstantiability\r\n }", "public static void main(String[] args) {\nsyso \n\t}", "public interface SealFactory extends EFactory\n{\n /**\n * The singleton instance of the factory.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @generated\n */\n SealFactory eINSTANCE = unifi.marcotinacci.thesis.seal.seal.impl.SealFactoryImpl.init();\n\n /**\n * Returns a new object of class '<em>Program</em>'.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @return a new object of class '<em>Program</em>'.\n * @generated\n */\n Program createProgram();\n\n /**\n * Returns a new object of class '<em>Range</em>'.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @return a new object of class '<em>Range</em>'.\n * @generated\n */\n Range createRange();\n\n /**\n * Returns a new object of class '<em>Action</em>'.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @return a new object of class '<em>Action</em>'.\n * @generated\n */\n Action createAction();\n\n /**\n * Returns a new object of class '<em>Module Define</em>'.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @return a new object of class '<em>Module Define</em>'.\n * @generated\n */\n ModuleDefine createModuleDefine();\n\n /**\n * Returns a new object of class '<em>Variable Declaration</em>'.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @return a new object of class '<em>Variable Declaration</em>'.\n * @generated\n */\n VariableDeclaration createVariableDeclaration();\n\n /**\n * Returns a new object of class '<em>Type</em>'.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @return a new object of class '<em>Type</em>'.\n * @generated\n */\n Type createType();\n\n /**\n * Returns a new object of class '<em>Rule</em>'.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @return a new object of class '<em>Rule</em>'.\n * @generated\n */\n Rule createRule();\n\n /**\n * Returns a new object of class '<em>ND Case</em>'.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @return a new object of class '<em>ND Case</em>'.\n * @generated\n */\n NDCase createNDCase();\n\n /**\n * Returns a new object of class '<em>Case</em>'.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @return a new object of class '<em>Case</em>'.\n * @generated\n */\n Case createCase();\n\n /**\n * Returns a new object of class '<em>Update</em>'.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @return a new object of class '<em>Update</em>'.\n * @generated\n */\n Update createUpdate();\n\n /**\n * Returns a new object of class '<em>Environment</em>'.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @return a new object of class '<em>Environment</em>'.\n * @generated\n */\n Environment createEnvironment();\n\n /**\n * Returns a new object of class '<em>Expression</em>'.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @return a new object of class '<em>Expression</em>'.\n * @generated\n */\n Expression createExpression();\n\n /**\n * Returns a new object of class '<em>No Action</em>'.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @return a new object of class '<em>No Action</em>'.\n * @generated\n */\n NoAction createNoAction();\n\n /**\n * Returns a new object of class '<em>Assign</em>'.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @return a new object of class '<em>Assign</em>'.\n * @generated\n */\n Assign createAssign();\n\n /**\n * Returns a new object of class '<em>And</em>'.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @return a new object of class '<em>And</em>'.\n * @generated\n */\n And createAnd();\n\n /**\n * Returns a new object of class '<em>Or</em>'.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @return a new object of class '<em>Or</em>'.\n * @generated\n */\n Or createOr();\n\n /**\n * Returns a new object of class '<em>Leq</em>'.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @return a new object of class '<em>Leq</em>'.\n * @generated\n */\n Leq createLeq();\n\n /**\n * Returns a new object of class '<em>Less</em>'.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @return a new object of class '<em>Less</em>'.\n * @generated\n */\n Less createLess();\n\n /**\n * Returns a new object of class '<em>Eq</em>'.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @return a new object of class '<em>Eq</em>'.\n * @generated\n */\n Eq createEq();\n\n /**\n * Returns a new object of class '<em>Neq</em>'.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @return a new object of class '<em>Neq</em>'.\n * @generated\n */\n Neq createNeq();\n\n /**\n * Returns a new object of class '<em>Geq</em>'.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @return a new object of class '<em>Geq</em>'.\n * @generated\n */\n Geq createGeq();\n\n /**\n * Returns a new object of class '<em>Gtr</em>'.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @return a new object of class '<em>Gtr</em>'.\n * @generated\n */\n Gtr createGtr();\n\n /**\n * Returns a new object of class '<em>Plus</em>'.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @return a new object of class '<em>Plus</em>'.\n * @generated\n */\n Plus createPlus();\n\n /**\n * Returns a new object of class '<em>Minus</em>'.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @return a new object of class '<em>Minus</em>'.\n * @generated\n */\n Minus createMinus();\n\n /**\n * Returns a new object of class '<em>Multi</em>'.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @return a new object of class '<em>Multi</em>'.\n * @generated\n */\n Multi createMulti();\n\n /**\n * Returns a new object of class '<em>Div</em>'.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @return a new object of class '<em>Div</em>'.\n * @generated\n */\n Div createDiv();\n\n /**\n * Returns a new object of class '<em>Not</em>'.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @return a new object of class '<em>Not</em>'.\n * @generated\n */\n Not createNot();\n\n /**\n * Returns a new object of class '<em>Literal</em>'.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @return a new object of class '<em>Literal</em>'.\n * @generated\n */\n Literal createLiteral();\n\n /**\n * Returns a new object of class '<em>Quantifier</em>'.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @return a new object of class '<em>Quantifier</em>'.\n * @generated\n */\n Quantifier createQuantifier();\n\n /**\n * Returns a new object of class '<em>External Reference</em>'.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @return a new object of class '<em>External Reference</em>'.\n * @generated\n */\n ExternalReference createExternalReference();\n\n /**\n * Returns a new object of class '<em>Local Reference</em>'.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @return a new object of class '<em>Local Reference</em>'.\n * @generated\n */\n LocalReference createLocalReference();\n\n /**\n * Returns the package supported by this factory.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @return the package supported by this factory.\n * @generated\n */\n SealPackage getSealPackage();\n\n}", "void scavenge();", "public void stg() {\n\n\t}", "protected void cleaningUp() {\n\t}", "@Override\n\tpublic void excluir() {\n\t\t\n\t}", "@Override\r\n\tpublic Package adaptedPackage() {\n\t\treturn null;\r\n\t}", "EisPackage getEisPackage();", "public void stoperJeux() {\n\t\t\n\t\tliaison.stopper();\n\t}", "public void swim() {\n\tfloatInWater(); // package access to superclass\n\tSystem.out.println(text); // package access to superclass\n }", "@Override\n\tpublic void swim() {\n\t\t\n\t}", "@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}", "@Override\n\tpublic void cleanup() {\n\n\t}", "@Override\n\tpublic void cleanup() {\n\n\t}", "@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}", "public void redibujarAlgoformers() {\n\t\t\n\t}", "@Override\n\tpublic void afterClassSetup() {\n\t\t\n\t}", "private DungeonBotsMain() {\n\t\t// Does nothing.\n\t}", "@Override\n protected void shutDown() {\n }", "@Override\n\tpublic void cleanup() {\n\t\t\n\t}", "@Override\n\tpublic void cleanup() {\n\t\t\n\t}", "@Override\n\tpublic void cleanup() {\n\t\t\n\t}", "@Override\n public void cleanup() {\n \n }", "@Override\n public void cleanup() {\n \n }", "private void asignGarlicSandwich() {\n\t\tbaguette = new GarlicSandwich();\n\t\tSystem.out.println(\"\\nYou have selected garlic bread.\\n\" +\n\t\t\t\"Now, choose the ingredientes you want:\\n\" +\n\t\t\tbaguette.ingredients());\n\t}", "@Test\n public void testReuseforkstrue() throws Exception {\n String testName = \"reuseforkstrue\";\n EkstaziPaths.removeEkstaziDirectories(getClass(), testName);\n executeCleanTestStep(testName, 0, 1);\n }", "EcnonetsPackage getEcnonetsPackage();", "private GraphFileManager() {\n\t}", "JPackage _package();", "public void sendeBeenden();", "public static void main(String[] args) {\nDesktop desk=new Desktop();\r\ndesk.hardWareResources();\r\ndesk.softwareWareResources();\r\ndesk.deskTopModel();\r\n\r\n\t\t\r\n\t\t\r\n\t}", "@Override\r\n\tpublic void cleanup() {\n\t\t\r\n\t}", "@DSSafe(DSCat.SAFE_OTHERS)\n @DSGenerator(tool_name = \"Doppelganger\", tool_version = \"2.0\", generated_on = \"2013-12-30 13:00:49.362 -0500\", hash_original_method = \"1F62AD2938072A93E19EAFFCDA555D07\", hash_generated_method = \"E522C6EE17CC779935F0D04DE1F1F350\")\n \npublic NamespaceSupport ()\n {\n reset();\n }", "@Override\n\t\tprotected void shutdown() {\n\n\t\t}", "void unsetSOID();", "void cleanUp();", "void cleanUp();", "void cleanUp();", "@Override\n\tprotected EPackage getEPackage() {\n\t return BundlePackage.eINSTANCE;\n\t}", "public T caseMainSystem(MainSystem object) {\n\t\treturn null;\n\t}", "public void destruct() {\n\t\tif (super.getUsia() == 0) {\n\t\t\t// destructor Singa\n\t\t\tSystem.gc();\n\t\t\ttry {\n\n\t\t\t\tfinalize();\n\t\t\t} catch (Throwable throwable) {\n\t\t\t\tthrowable.printStackTrace();\n\t\t\t}\n\t\t}\n\t}", "private void asignRegularSandwich() {\n\t\tbaguette = new RegularSandwich();\n\t\tSystem.out.println(\"\\nYou have selected regular bread.\\n\" +\n\t\t\t\"Now, choose the ingredientes you want:\\n\" +\n\t\t\tbaguette.ingredients());\n\t}", "public static void main(String[] args) {\n\t\tProtecion ob1 = new Protecion();\n\t\tDerived ob2 = new Derived();\n\t\tSamePackage ob3 = new SamePackage();\n\t\tProtecion2 ob4 = new Protecion2();\n\t\tOtherPackage ob5 = new OtherPackage();\n\t\t\n\t\t\n\t\tob1.Protecion();\n\t\tob2.Deroved();\n\t\t\n\t}", "private Globals() {\n\n\t}", "private Rekenhulp()\n\t{\n\t}", "private void asignWholemealSandwich() {\n\t\tbaguette = new WholemealSandwich();\n\t\tSystem.out.println(\"\\nYou have selected wholemeal bread.\\n\" +\n\t\t\t\"Now, choose the ingredientes you want:\\n\" +\n\t\t\tbaguette.ingredients());\n\t}", "public static void main(String[] args) {\n Mod1 m = new Mod1();\n m.modelName=\"Swift\";\n System.out.println(m.modelName);\n System.out.println(sf());\n \n\t}", "EPackage createEPackage();", "@Nonnull\n S deiconify();", "public static void main(String[] args) {\n StrongRefernceDemo sfD = new StrongRefernceDemo();\n \n //now elligible for garbage collection\n sfD = null;\n }", "private void ss(){\n }", "Package getSubp();", "public Salle() {\n\t\tsuper();\n\t\t// TODO Auto-generated constructor stub\n\t}", "private TetrisMain() {\r\n //prevents instantiation\r\n }", "private ThoseMain()\n {\n // Do nothing\n }", "public Object caseEngineeringDomainPackage(EngineeringDomainPackage object) {\n\t\treturn null;\n\t}", "@Override\n public void cleanUp() {\n }", "public static void main (String[] args) {import java.util.*;%>\n//&&&staticSymbol&&&<%import org.eclipse.emf.codegen.ecore.genmodel.*;%>\n//&&&staticSymbol&&&<%\n\n/**\n * Copyright (c) 2002-2010 IBM Corporation and others.\n * All rights reserved. This program and the accompanying materials\n * are made available under the terms of the Eclipse Public License v1.0\n * which accompanies this distribution, and is available at\n * http://www.eclipse.org/legal/epl-v10.html\n *\n * Contributors:\n * IBM - Initial API and implementation\n */\n\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&<%\nGenPackage genPackage = (GenPackage)((Object[])argument)[0]; GenModel genModel=genPackage.getGenModel(); /* Trick to import java.util.* without warnings */Iterator.class.getName();\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&<%\nboolean isInterface = Boolean.TRUE.equals(((Object[])argument)[1]); boolean isImplementation = Boolean.TRUE.equals(((Object[])argument)[2]);\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&<%\nString publicStaticFinalFlag = isImplementation ? \"public static final \" : \"\";\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&<%include(\"../Header.javajetinc\");%>\n//&&&staticSymbol&&&<%\nif (isInterface || genModel.isSuppressInterfaces()) {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&package <%\n//&&&staticSymbol&&&=genPackage.getReflectionPackageName()\n//&&&staticSymbol&&&%>;\n//&&&staticSymbol&&&<%\n} else {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&package <%\n//&&&staticSymbol&&&=genPackage.getClassPackageName()\n//&&&staticSymbol&&&%>;\n//&&&staticSymbol&&&<%\n}\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\n//&&&staticSymbol&&&<%\nif (isImplementation) {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&<%\ngenModel.addPseudoImport(\"org.eclipse.emf.ecore.impl.MinimalEObjectImpl.Container\");\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&<%\ngenModel.addPseudoImport(\"org.eclipse.emf.ecore.impl.MinimalEObjectImpl.Container.Dynamic\");\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&<%\ngenModel.addImport(\"org.eclipse.emf.ecore.EClass\");\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&<%\ngenModel.addImport(\"org.eclipse.emf.ecore.EObject\");\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&<%\nif (!genPackage.hasJavaLangConflict() && !genPackage.hasInterfaceImplConflict() && !genPackage.getClassPackageName().equals(genPackage.getInterfacePackageName())) genModel.addImport(genPackage.getInterfacePackageName() + \".*\");\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&<%\n}\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&<%\ngenModel.markImportLocation(stringBuffer);\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\n//&&&staticSymbol&&&<%\nif (isInterface) {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&/**\n//&&&staticSymbol&&& * <!-- begin-user-doc -->\n//&&&staticSymbol&&& * The <b>Factory</b> for the model.\n//&&&staticSymbol&&& * It provides a create method for each non-abstract class of the model.\n//&&&staticSymbol&&& * <!-- end-user-doc -->\n//&&&staticSymbol&&&<%\nif (!genModel.isSuppressEMFMetaData()) {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&& * @see <%\n//&&&staticSymbol&&&=genPackage.getQualifiedPackageInterfaceName()\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&<%\n}\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&& * @generated\n//&&&staticSymbol&&& */\n//&&&staticSymbol&&&<%\n} else {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&/**\n//&&&staticSymbol&&& * <!-- begin-user-doc -->\n//&&&staticSymbol&&& * An implementation of the model <b>Factory</b>.\n//&&&staticSymbol&&& * <!-- end-user-doc -->\n//&&&staticSymbol&&& * @generated\n//&&&staticSymbol&&& */\n//&&&staticSymbol&&&<%\n}\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&<%\nif (isImplementation) {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&public class <%\n//&&&staticSymbol&&&=genPackage.getFactoryClassName()\n//&&&staticSymbol&&&%> extends <%\n//&&&staticSymbol&&&=genModel.getImportedName(\"org.eclipse.emf.ecore.impl.EFactoryImpl\")\n//&&&staticSymbol&&&%><%\nif (!genModel.isSuppressInterfaces()) {\n//&&&staticSymbol&&&%> implements <%\n//&&&staticSymbol&&&=genPackage.getImportedFactoryInterfaceName()\n//&&&staticSymbol&&&%><%\n}\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&<%\n} else {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&public interface <%\n//&&&staticSymbol&&&=genPackage.getFactoryInterfaceName()\n//&&&staticSymbol&&&%><%\nif (!genModel.isSuppressEMFMetaData()) {\n//&&&staticSymbol&&&%> extends <%\n//&&&staticSymbol&&&=genModel.getImportedName(\"org.eclipse.emf.ecore.EFactory\")\n//&&&staticSymbol&&&%><%\n}\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&<%\n}\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&{\n//&&&staticSymbol&&&<%\nif (genModel.hasCopyrightField()) {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t/**\n//&&&staticSymbol&&&\t * <!-- begin-user-doc -->\n//&&&staticSymbol&&&\t * <!-- end-user-doc -->\n//&&&staticSymbol&&&\t * @generated\n//&&&staticSymbol&&&\t */\n//&&&staticSymbol&&&\t<%\n//&&&staticSymbol&&&=publicStaticFinalFlag\n//&&&staticSymbol&&&%><%\n//&&&staticSymbol&&&=genModel.getImportedName(\"java.lang.String\")\n//&&&staticSymbol&&&%> copyright = <%\n//&&&staticSymbol&&&=genModel.getCopyrightFieldLiteral()\n//&&&staticSymbol&&&%>;<%\n//&&&staticSymbol&&&=genModel.getNonNLS()\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\n//&&&staticSymbol&&&<%\n}\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&<%\nif (isImplementation && (genModel.isSuppressEMFMetaData() || genModel.isSuppressInterfaces())) {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t/**\n//&&&staticSymbol&&&\t * The singleton instance of the factory.\n//&&&staticSymbol&&&\t * <!-- begin-user-doc -->\n//&&&staticSymbol&&&\t * <!-- end-user-doc -->\n//&&&staticSymbol&&&\t * @generated\n//&&&staticSymbol&&&\t */\n//&&&staticSymbol&&&\t<%\n//&&&staticSymbol&&&=publicStaticFinalFlag\n//&&&staticSymbol&&&%><%\n//&&&staticSymbol&&&=genPackage.getFactoryClassName()\n//&&&staticSymbol&&&%> eINSTANCE = init();\n//&&&staticSymbol&&&\n//&&&staticSymbol&&&<%\n}\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&<%\nif (isInterface && genModel.isSuppressEMFMetaData()) {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t/**\n//&&&staticSymbol&&&\t * The singleton instance of the factory.\n//&&&staticSymbol&&&\t * <!-- begin-user-doc -->\n//&&&staticSymbol&&&\t * <!-- end-user-doc -->\n//&&&staticSymbol&&&\t * @generated\n//&&&staticSymbol&&&\t */\n//&&&staticSymbol&&&\t<%\n//&&&staticSymbol&&&=publicStaticFinalFlag\n//&&&staticSymbol&&&%><%\n//&&&staticSymbol&&&=genPackage.getFactoryInterfaceName()\n//&&&staticSymbol&&&%> INSTANCE = <%\n//&&&staticSymbol&&&=genPackage.getQualifiedFactoryClassName()\n//&&&staticSymbol&&&%>.eINSTANCE;\n//&&&staticSymbol&&&\n//&&&staticSymbol&&&<%\n} else if (isInterface && !genModel.isSuppressInterfaces()) {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t/**\n//&&&staticSymbol&&&\t * The singleton instance of the factory.\n//&&&staticSymbol&&&\t * <!-- begin-user-doc -->\n//&&&staticSymbol&&&\t * <!-- end-user-doc -->\n//&&&staticSymbol&&&\t * @generated\n//&&&staticSymbol&&&\t */\n//&&&staticSymbol&&&\t<%\n//&&&staticSymbol&&&=publicStaticFinalFlag\n//&&&staticSymbol&&&%><%\n//&&&staticSymbol&&&=genPackage.getFactoryInterfaceName()\n//&&&staticSymbol&&&%> eINSTANCE = <%\n//&&&staticSymbol&&&=genPackage.getQualifiedFactoryClassName()\n//&&&staticSymbol&&&%>.init();\n//&&&staticSymbol&&&\n//&&&staticSymbol&&&<%\n}\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&<%\nif (isImplementation) {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t/**\n//&&&staticSymbol&&&\t * Creates the default factory implementation.\n//&&&staticSymbol&&&\t * <!-- begin-user-doc -->\n//&&&staticSymbol&&&\t * <!-- end-user-doc -->\n//&&&staticSymbol&&&\t * @generated\n//&&&staticSymbol&&&\t */\n//&&&staticSymbol&&&<%\nString factoryType = genModel.isSuppressEMFMetaData() ? genPackage.getFactoryClassName() : genPackage.getImportedFactoryInterfaceName();\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\tpublic static <%\n//&&&staticSymbol&&&=factoryType\n//&&&staticSymbol&&&%> init()\n//&&&staticSymbol&&&\t{\n//&&&staticSymbol&&&\t\ttry\n//&&&staticSymbol&&&\t\t{\n//&&&staticSymbol&&&\t\t\t<%\n//&&&staticSymbol&&&=factoryType\n//&&&staticSymbol&&&%> the<%\n//&&&staticSymbol&&&=genPackage.getFactoryName()\n//&&&staticSymbol&&&%> = (<%\n//&&&staticSymbol&&&=factoryType\n//&&&staticSymbol&&&%>)<%\n//&&&staticSymbol&&&=genModel.getImportedName(\"org.eclipse.emf.ecore.EPackage\")\n//&&&staticSymbol&&&%>.Registry.INSTANCE.getEFactory(<%\n//&&&staticSymbol&&&=genPackage.getPackageInterfaceName()\n//&&&staticSymbol&&&%>.eNS_URI);\n//&&&staticSymbol&&&\t\t\tif (the<%\n//&&&staticSymbol&&&=genPackage.getFactoryName()\n//&&&staticSymbol&&&%> != null)\n//&&&staticSymbol&&&\t\t\t{\n//&&&staticSymbol&&&\t\t\t\treturn the<%\n//&&&staticSymbol&&&=genPackage.getFactoryName()\n//&&&staticSymbol&&&%>;\n//&&&staticSymbol&&&\t\t\t}\n//&&&staticSymbol&&&\t\t}\n//&&&staticSymbol&&&\t\tcatch (Exception exception)\n//&&&staticSymbol&&&\t\t{\n//&&&staticSymbol&&&\t\t\t<%\n//&&&staticSymbol&&&=genModel.getImportedName(\"org.eclipse.emf.ecore.plugin.EcorePlugin\")\n//&&&staticSymbol&&&%>.INSTANCE.log(exception);\n//&&&staticSymbol&&&\t\t}\n//&&&staticSymbol&&&\t\treturn new <%\n//&&&staticSymbol&&&=genPackage.getImportedFactoryClassName()\n//&&&staticSymbol&&&%>();\n//&&&staticSymbol&&&\t}\n//&&&staticSymbol&&&\n//&&&staticSymbol&&&\t/**\n//&&&staticSymbol&&&\t * Creates an instance of the factory.\n//&&&staticSymbol&&&\t * <!-- begin-user-doc -->\n//&&&staticSymbol&&&\t * <!-- end-user-doc -->\n//&&&staticSymbol&&&\t * @generated\n//&&&staticSymbol&&&\t */\n//&&&staticSymbol&&&\tpublic <%\n//&&&staticSymbol&&&=genPackage.getFactoryClassName()\n//&&&staticSymbol&&&%>()\n//&&&staticSymbol&&&\t{\n//&&&staticSymbol&&&\t\tsuper();\n//&&&staticSymbol&&&\t}\n//&&&staticSymbol&&&\n//&&&staticSymbol&&&\t/**\n//&&&staticSymbol&&&\t * <!-- begin-user-doc -->\n//&&&staticSymbol&&&\t * <!-- end-user-doc -->\n//&&&staticSymbol&&&\t * @generated\n//&&&staticSymbol&&&\t */\n//&&&staticSymbol&&& <%\nif (genModel.useClassOverrideAnnotation()) {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t@Override\n//&&&staticSymbol&&& <%\n}\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\tpublic EObject create(EClass eClass)\n//&&&staticSymbol&&&\t{\n//&&&staticSymbol&&&\t\tswitch (eClass.getClassifierID())\n//&&&staticSymbol&&&\t\t{\n//&&&staticSymbol&&&<%\nfor (GenClass genClass : genPackage.getGenClasses()) {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&<%\nif (!genClass.isAbstract()) {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\t\tcase <%\n//&&&staticSymbol&&&=genPackage.getImportedPackageInterfaceName()\n//&&&staticSymbol&&&%>.<%\n//&&&staticSymbol&&&=genClass.getClassifierID()\n//&&&staticSymbol&&&%>: return <%\n//&&&staticSymbol&&&*%%storeSymbol%%*0\n//&&&staticSymbol&&&%>create<%\n//&&&staticSymbol&&&=genClass.getName()\n//&&&staticSymbol&&&%>();\n//&&&staticSymbol&&&<%\n}\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&<%\n}\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\t\tdefault:\n//&&&staticSymbol&&&\t\t\t\tthrow new IllegalArgumentException(\"The class '\" + eClass.getName() + \"' is not a valid classifier\");<%\n//&&&staticSymbol&&&=genModel.getNonNLS()\n//&&&staticSymbol&&&%><%\n//&&&staticSymbol&&&=genModel.getNonNLS(2)\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\t}\n//&&&staticSymbol&&&\t}\n//&&&staticSymbol&&&\n//&&&staticSymbol&&&<%\nif (!genPackage.getAllGenDataTypes().isEmpty()) {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t/**\n//&&&staticSymbol&&&\t * <!-- begin-user-doc -->\n//&&&staticSymbol&&&\t * <!-- end-user-doc -->\n//&&&staticSymbol&&&\t * @generated\n//&&&staticSymbol&&&\t */\n//&&&staticSymbol&&& <%\nif (genModel.useClassOverrideAnnotation()) {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t@Override\n//&&&staticSymbol&&& <%\n}\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\tpublic Object createFromString(<%\n//&&&staticSymbol&&&=genModel.getImportedName(\"org.eclipse.emf.ecore.EDataType\")\n//&&&staticSymbol&&&%> eDataType, String initialValue)\n//&&&staticSymbol&&&\t{\n//&&&staticSymbol&&&\t\tswitch (eDataType.getClassifierID())\n//&&&staticSymbol&&&\t\t{\n//&&&staticSymbol&&&<%\nfor (GenDataType genDataType : genPackage.getAllGenDataTypes()) {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&& <%\nif (genDataType.isSerializable()) {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\t\tcase <%\n//&&&staticSymbol&&&=genPackage.getImportedPackageInterfaceName()\n//&&&staticSymbol&&&%>.<%\n//&&&staticSymbol&&&=genDataType.getClassifierID()\n//&&&staticSymbol&&&%>:\n//&&&staticSymbol&&&\t\t\t\treturn create<%\n//&&&staticSymbol&&&=genDataType.getName()\n//&&&staticSymbol&&&%>FromString(eDataType, initialValue);\n//&&&staticSymbol&&& <%\n}\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&<%\n}\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\t\tdefault:\n//&&&staticSymbol&&&\t\t\t\tthrow new IllegalArgumentException(\"The datatype '\" + eDataType.getName() + \"' is not a valid classifier\");<%\n//&&&staticSymbol&&&=genModel.getNonNLS()\n//&&&staticSymbol&&&%><%\n//&&&staticSymbol&&&=genModel.getNonNLS(2)\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\t}\n//&&&staticSymbol&&&\t}\n//&&&staticSymbol&&&\n//&&&staticSymbol&&&\t/**\n//&&&staticSymbol&&&\t * <!-- begin-user-doc -->\n//&&&staticSymbol&&&\t * <!-- end-user-doc -->\n//&&&staticSymbol&&&\t * @generated\n//&&&staticSymbol&&&\t */\n//&&&staticSymbol&&& <%\nif (genModel.useClassOverrideAnnotation()) {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t@Override\n//&&&staticSymbol&&& <%\n}\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\tpublic String convertToString(<%\n//&&&staticSymbol&&&=genModel.getImportedName(\"org.eclipse.emf.ecore.EDataType\")\n//&&&staticSymbol&&&%> eDataType, Object instanceValue)\n//&&&staticSymbol&&&\t{\n//&&&staticSymbol&&&\t\tswitch (eDataType.getClassifierID())\n//&&&staticSymbol&&&\t\t{\n//&&&staticSymbol&&&<%\nfor (GenDataType genDataType : genPackage.getAllGenDataTypes()) {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&& <%\nif (genDataType.isSerializable()) {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\t\tcase <%\n//&&&staticSymbol&&&=genPackage.getImportedPackageInterfaceName()\n//&&&staticSymbol&&&%>.<%\n//&&&staticSymbol&&&=genDataType.getClassifierID()\n//&&&staticSymbol&&&%>:\n//&&&staticSymbol&&&\t\t\t\treturn convert<%\n//&&&staticSymbol&&&=genDataType.getName()\n//&&&staticSymbol&&&%>ToString(eDataType, instanceValue);\n//&&&staticSymbol&&& <%\n}\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&<%\n}\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\t\tdefault:\n//&&&staticSymbol&&&\t\t\t\tthrow new IllegalArgumentException(\"The datatype '\" + eDataType.getName() + \"' is not a valid classifier\");<%\n//&&&staticSymbol&&&=genModel.getNonNLS()\n//&&&staticSymbol&&&%><%\n//&&&staticSymbol&&&=genModel.getNonNLS(2)\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\t}\n//&&&staticSymbol&&&\t}\n//&&&staticSymbol&&&\n//&&&staticSymbol&&&<%\n}\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&<%\nfor (GenClass genClass : genPackage.getGenClasses()) {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&& <%\nif (!genClass.isAbstract()) {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t/**\n//&&&staticSymbol&&&\t * <!-- begin-user-doc -->\n//&&&staticSymbol&&&\t * <!-- end-user-doc -->\n//&&&staticSymbol&&&\t * @generated\n//&&&staticSymbol&&&\t */\n//&&&staticSymbol&&&\tpublic <%\n//&&&staticSymbol&&&=genClass.getTypeParameters()\n//&&&staticSymbol&&&%><%\n//&&&staticSymbol&&&=genClass.getImportedInterfaceName()\n//&&&staticSymbol&&&%><%\n//&&&staticSymbol&&&=genClass.getInterfaceTypeArguments()\n//&&&staticSymbol&&&%> create<%\n//&&&staticSymbol&&&=genClass.getName()\n//&&&staticSymbol&&&%>()\n//&&&staticSymbol&&&\t{\n//&&&staticSymbol&&& <%\nif (genClass.isDynamic()) {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\t<%\n//&&&staticSymbol&&&=genClass.getImportedInterfaceName()\n//&&&staticSymbol&&&%><%\n//&&&staticSymbol&&&=genClass.getInterfaceTypeArguments()\n//&&&staticSymbol&&&%> <%\n//&&&staticSymbol&&&=genClass.getSafeUncapName()\n//&&&staticSymbol&&&%> = <%\n//&&&staticSymbol&&&=genClass.getCastFromEObject()\n//&&&staticSymbol&&&%>super.create(<%\n//&&&staticSymbol&&&=genClass.getQualifiedClassifierAccessor()\n//&&&staticSymbol&&&%>);\n//&&&staticSymbol&&& <%\n} else {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\t<%\n//&&&staticSymbol&&&=genClass.getImportedClassName()\n//&&&staticSymbol&&&%><%\n//&&&staticSymbol&&&=genClass.getClassTypeArguments()\n//&&&staticSymbol&&&%> <%\n//&&&staticSymbol&&&=genClass.getSafeUncapName()\n//&&&staticSymbol&&&%> = new <%\n//&&&staticSymbol&&&=genClass.getImportedClassName()\n//&&&staticSymbol&&&%><%\n//&&&staticSymbol&&&=genClass.getClassTypeArguments()\n//&&&staticSymbol&&&%>()<%\nif (genModel.isSuppressInterfaces() && !genPackage.getReflectionPackageName().equals(genPackage.getInterfacePackageName())) {\n//&&&staticSymbol&&&%>{}<%\n}\n//&&&staticSymbol&&&%>;\n//&&&staticSymbol&&& <%\n}\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\treturn <%\n//&&&staticSymbol&&&=genClass.getSafeUncapName()\n//&&&staticSymbol&&&%>;\n//&&&staticSymbol&&&\t}\n//&&&staticSymbol&&&\n//&&&staticSymbol&&& <%\n}\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&<%\n}\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&<%\nfor (GenDataType genDataType : genPackage.getAllGenDataTypes()) {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&& <%\nif (genDataType.isSerializable()) {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&<%\nif (genPackage.isDataTypeConverters() || genDataType.hasCreatorBody()) { String eDataType = genDataType.getQualifiedClassifierAccessor();\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t/**\n//&&&staticSymbol&&&\t * <!-- begin-user-doc -->\n//&&&staticSymbol&&&\t * <!-- end-user-doc -->\n//&&&staticSymbol&&&\t * @generated\n//&&&staticSymbol&&&\t */\n//&&&staticSymbol&&& <%\nif (genModel.useGenerics() && genDataType.isUncheckedCast() && !genDataType.hasCreatorBody()) {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t@SuppressWarnings(\"unchecked\")\n//&&&staticSymbol&&& <%\n}\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\tpublic <%\n//&&&staticSymbol&&&=genDataType.getImportedParameterizedInstanceClassName()\n//&&&staticSymbol&&&%> create<%\n//&&&staticSymbol&&&=genDataType.getName()\n//&&&staticSymbol&&&%>(<%\nif (genDataType.hasCreatorBody()) {\n//&&&staticSymbol&&&%>final <%\n}\n//&&&staticSymbol&&&%>String <%\nif (genDataType.hasCreatorBody()) {\n//&&&staticSymbol&&&%>it<%\n} else {\n//&&&staticSymbol&&&%>literal<%\n}\n//&&&staticSymbol&&&%>)\n//&&&staticSymbol&&&\t{\n//&&&staticSymbol&&& <%\nif (genDataType.hasCreatorBody()) {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\t<%\n//&&&staticSymbol&&&=genDataType.getCreatorBody(genModel.getIndentation(stringBuffer))\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&& <%\n} else if (genDataType instanceof GenEnum) {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\t<%\n//&&&staticSymbol&&&=genDataType.getImportedInstanceClassName()\n//&&&staticSymbol&&&%> result = <%\n//&&&staticSymbol&&&=genDataType.getImportedInstanceClassName()\n//&&&staticSymbol&&&%>.get(literal);\n//&&&staticSymbol&&&\t\tif (result == null) throw new IllegalArgumentException(\"The value '\" + literal + \"' is not a valid enumerator of '\" + <%\n//&&&staticSymbol&&&=eDataType\n//&&&staticSymbol&&&%>.getName() + \"'\");<%\n//&&&staticSymbol&&&=genModel.getNonNLS()\n//&&&staticSymbol&&&%><%\n//&&&staticSymbol&&&=genModel.getNonNLS(2)\n//&&&staticSymbol&&&%><%\n//&&&staticSymbol&&&=genModel.getNonNLS(3)\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\treturn result;\n//&&&staticSymbol&&& <%\n} else if (genDataType.getBaseType() != null) { GenDataType genBaseType = genDataType.getBaseType(); boolean isPrimitiveConversion = !genDataType.isPrimitiveType() && genBaseType.isPrimitiveType();\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&& <%\nif (genBaseType.getGenPackage() == genPackage) {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&& <%\nif (isPrimitiveConversion && genModel.getComplianceLevel().getValue() < GenJDKLevel.JDK50) {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\treturn new <%\n//&&&staticSymbol&&&=genDataType.getObjectInstanceClassName()\n//&&&staticSymbol&&&%>(create<%\n//&&&staticSymbol&&&=genBaseType.getName()\n//&&&staticSymbol&&&%>(literal));\n//&&&staticSymbol&&& <%\n} else {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\treturn create<%\n//&&&staticSymbol&&&=genBaseType.getName()\n//&&&staticSymbol&&&%>(literal);\n//&&&staticSymbol&&& <%\n}\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&& <%\n} else if (genBaseType.getGenPackage().isDataTypeConverters()) {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&& <%\nif (isPrimitiveConversion && genModel.getComplianceLevel().getValue() < GenJDKLevel.JDK50) {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\treturn new <%\n//&&&staticSymbol&&&=genDataType.getObjectInstanceClassName()\n//&&&staticSymbol&&&%>(<%\n//&&&staticSymbol&&&=genBaseType.getGenPackage().getQualifiedEFactoryInternalInstanceAccessor()\n//&&&staticSymbol&&&%>.create<%\n//&&&staticSymbol&&&=genBaseType.getName()\n//&&&staticSymbol&&&%>(literal));\n//&&&staticSymbol&&& <%\n} else {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\treturn <%\n//&&&staticSymbol&&&=genBaseType.getGenPackage().getQualifiedEFactoryInternalInstanceAccessor()\n//&&&staticSymbol&&&%>.create<%\n//&&&staticSymbol&&&=genBaseType.getName()\n//&&&staticSymbol&&&%>(literal);\n//&&&staticSymbol&&& <%\n}\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&& <%\n} else {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\treturn <%\nif (!genDataType.isObjectType()) {\n//&&&staticSymbol&&&%>(<%\n//&&&staticSymbol&&&=genDataType.getObjectInstanceClassName()\n//&&&staticSymbol&&&%>)<%\n}\n//&&&staticSymbol&&&%><%\n//&&&staticSymbol&&&=genBaseType.getGenPackage().getQualifiedEFactoryInternalInstanceAccessor()\n//&&&staticSymbol&&&%>.createFromString(<%\n//&&&staticSymbol&&&=genBaseType.getQualifiedClassifierAccessor()\n//&&&staticSymbol&&&%>, literal);\n//&&&staticSymbol&&& <%\n}\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&& <%\n} else if (genDataType.getItemType() != null) { GenDataType genItemType = genDataType.getItemType(); \n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\tif (literal == null) return null;\n//&&&staticSymbol&&&\t\t<%\n//&&&staticSymbol&&&=genDataType.getImportedParameterizedInstanceClassName()\n//&&&staticSymbol&&&%> result = new <%\n//&&&staticSymbol&&&=genModel.getImportedName(\"java.util.ArrayList\")\n//&&&staticSymbol&&&%><%\nif (genModel.useGenerics()) {\n//&&&staticSymbol&&&%><<%=genItemType.getObjectType().getImportedParameterizedInstanceClassName()%>><%\n}\n//&&&staticSymbol&&&%>();\n//&&&staticSymbol&&& <%\nif (genModel.getRuntimeVersion().getValue() < GenRuntimeVersion.EMF26_VALUE) {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\tfor (<%\n//&&&staticSymbol&&&=genModel.getImportedName(\"java.util.StringTokenizer\")\n//&&&staticSymbol&&&%> stringTokenizer = new <%\n//&&&staticSymbol&&&=genModel.getImportedName(\"java.util.StringTokenizer\")\n//&&&staticSymbol&&&%>(literal); stringTokenizer.hasMoreTokens(); )\n//&&&staticSymbol&&& <%\n} else {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\tfor (String item : split(literal))\n//&&&staticSymbol&&& <%\n}\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\t{\n//&&&staticSymbol&&& <%\nif (genModel.getRuntimeVersion().getValue() < GenRuntimeVersion.EMF26_VALUE) {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\t\tString item = stringTokenizer.nextToken();\n//&&&staticSymbol&&& <%\n}\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&& <%\nif (genItemType.getGenPackage() == genPackage) {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&& <%\nif (genPackage.isDataTypeConverters()) { genItemType = genItemType.getObjectType();\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\t\tresult.add(create<%\n//&&&staticSymbol&&&=genItemType.getName()\n//&&&staticSymbol&&&%>(item));\n//&&&staticSymbol&&& <%\n} else {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\t\tresult.add(create<%\n//&&&staticSymbol&&&=genItemType.getName()\n//&&&staticSymbol&&&%>FromString(<%\n//&&&staticSymbol&&&=genItemType.getQualifiedClassifierAccessor()\n//&&&staticSymbol&&&%>, item));\n//&&&staticSymbol&&& <%\n}\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&& <%\n} else {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&& <%\nif (genItemType.getGenPackage().isDataTypeConverters()) { genItemType = genItemType.getObjectType();\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\t\tresult.add(<%\n//&&&staticSymbol&&&=genItemType.getGenPackage().getQualifiedEFactoryInternalInstanceAccessor()\n//&&&staticSymbol&&&%>.create<%\n//&&&staticSymbol&&&=genItemType.getName()\n//&&&staticSymbol&&&%>(item));\n//&&&staticSymbol&&& <%\n} else {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\t\tresult.add(<%\n//&&&staticSymbol&&&=genItemType.getGenPackage().getQualifiedEFactoryInternalInstanceAccessor()\n//&&&staticSymbol&&&%>.createFromString(<%\n//&&&staticSymbol&&&=genItemType.getQualifiedClassifierAccessor()\n//&&&staticSymbol&&&%>, item));\n//&&&staticSymbol&&& <%\n}\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&& <%\n}\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\t}\n//&&&staticSymbol&&&\t\treturn result;\n//&&&staticSymbol&&& <%\n} else if (!genDataType.getMemberTypes().isEmpty()) {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\tif (literal == null) return <%\n//&&&staticSymbol&&&=genDataType.getStaticValue(null)\n//&&&staticSymbol&&&%>;\n//&&&staticSymbol&&&\t\t<%\n//&&&staticSymbol&&&=genDataType.getImportedInstanceClassName()\n//&&&staticSymbol&&&%> result = <%\n//&&&staticSymbol&&&=genDataType.getStaticValue(null)\n//&&&staticSymbol&&&%>;\n//&&&staticSymbol&&&\t\tRuntimeException exception = null;\n//&&&staticSymbol&&& <%\nfor (GenDataType genMemberType : genDataType.getMemberTypes()) {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\ttry\n//&&&staticSymbol&&&\t\t{\n//&&&staticSymbol&&& <%\nif (genMemberType.getGenPackage() == genPackage) {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&& <%\nif (genPackage.isDataTypeConverters()) { if (!genDataType.isPrimitiveType()) genMemberType = genMemberType.getObjectType();\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\t\tresult = create<%\n//&&&staticSymbol&&&=genMemberType.getName()\n//&&&staticSymbol&&&%>(literal);\n//&&&staticSymbol&&& <%\n} else {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\t\tresult = (<%\n//&&&staticSymbol&&&=genDataType.getObjectInstanceClassName()\n//&&&staticSymbol&&&%>)create<%\n//&&&staticSymbol&&&=genMemberType.getName()\n//&&&staticSymbol&&&%>FromString(<%\n//&&&staticSymbol&&&=genMemberType.getQualifiedClassifierAccessor()\n//&&&staticSymbol&&&%>, literal);\n//&&&staticSymbol&&& <%\n}\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&& <%\n} else {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&& <%\nif (genPackage.isDataTypeConverters()) { if (!genDataType.isPrimitiveType()) genMemberType = genMemberType.getObjectType();\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\t\tresult = <%\n//&&&staticSymbol&&&=genMemberType.getGenPackage().getQualifiedEFactoryInternalInstanceAccessor()\n//&&&staticSymbol&&&%>.create<%\n//&&&staticSymbol&&&=genMemberType.getName()\n//&&&staticSymbol&&&%>(literal);\n//&&&staticSymbol&&& <%\n} else {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\t\tresult = (<%\n//&&&staticSymbol&&&=genDataType.getObjectInstanceClassName()\n//&&&staticSymbol&&&%>)<%\n//&&&staticSymbol&&&=genMemberType.getGenPackage().getQualifiedEFactoryInternalInstanceAccessor()\n//&&&staticSymbol&&&%>.createFromString(<%\n//&&&staticSymbol&&&=genMemberType.getQualifiedClassifierAccessor()\n//&&&staticSymbol&&&%>, literal);\n//&&&staticSymbol&&& <%\n}\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&& <%\n}\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\t\tif (<%\nif (!genDataType.isPrimitiveType()) {\n//&&&staticSymbol&&&%>result != null && <%\n}\n//&&&staticSymbol&&&%><%\n//&&&staticSymbol&&&=genModel.getImportedName(\"org.eclipse.emf.ecore.util.Diagnostician\")\n//&&&staticSymbol&&&%>.INSTANCE.validate(<%\n//&&&staticSymbol&&&=eDataType\n//&&&staticSymbol&&&%>, <%\nif (genDataType.isPrimitiveType() && genModel.getComplianceLevel().getValue() < GenJDKLevel.JDK50) {\n//&&&staticSymbol&&&%>new <%\n//&&&staticSymbol&&&=genDataType.getObjectInstanceClassName()\n//&&&staticSymbol&&&%>(result)<%\n} else {\n//&&&staticSymbol&&&%>result<%\n}\n//&&&staticSymbol&&&%>, null, null))\n//&&&staticSymbol&&&\t\t\t{\n//&&&staticSymbol&&&\t\t\t\treturn result;\n//&&&staticSymbol&&&\t\t\t}\n//&&&staticSymbol&&&\t\t}\n//&&&staticSymbol&&&\t\tcatch (RuntimeException e)\n//&&&staticSymbol&&&\t\t{\n//&&&staticSymbol&&&\t\t\texception = e;\n//&&&staticSymbol&&&\t\t}\n//&&&staticSymbol&&& <%\n}\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\tif (<%\nif (!genDataType.isPrimitiveType()) {\n//&&&staticSymbol&&&%>result != null || <%\n}\n//&&&staticSymbol&&&%>exception == null) return result;\n//&&&staticSymbol&&& \n//&&&staticSymbol&&&\t\tthrow exception;\n//&&&staticSymbol&&& <%\n} else if (!genDataType.hasConversionDelegate() && genModel.useGenerics() && (genDataType.isArrayType() || !genDataType.getEcoreDataType().getETypeParameters().isEmpty() || genDataType.getEcoreDataType().getInstanceTypeName().contains(\"<\"))) {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\treturn (<%\n//&&&staticSymbol&&&=genDataType.getImportedParameterizedObjectInstanceClassName()\n//&&&staticSymbol&&&%>)super.createFromString(literal);\n//&&&staticSymbol&&& <%\n} else if (!genDataType.hasConversionDelegate() && genDataType.isArrayType()) {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\t// TODO: implement this method\n//&&&staticSymbol&&&\t\t// Ensure that you remove @generated or mark it @generated NOT\n//&&&staticSymbol&&&\t\tthrow new <%\n//&&&staticSymbol&&&=genModel.getImportedName(\"java.lang.UnsupportedOperationException\")\n//&&&staticSymbol&&&%>();\n//&&&staticSymbol&&& <%\n} else if (genDataType.isPrimitiveType() && genModel.getComplianceLevel().getValue() < GenJDKLevel.JDK50) {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\treturn ((<%\n//&&&staticSymbol&&&=genDataType.getObjectInstanceClassName()\n//&&&staticSymbol&&&%>)super.createFromString(<%\n//&&&staticSymbol&&&=eDataType\n//&&&staticSymbol&&&%>, literal)).<%\n//&&&staticSymbol&&&=genDataType.getPrimitiveValueFunction()\n//&&&staticSymbol&&&%>();\n//&&&staticSymbol&&& <%\n} else {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\treturn <%\nif (!genDataType.isObjectType()) {\n//&&&staticSymbol&&&%>(<%\n//&&&staticSymbol&&&=genDataType.getImportedParameterizedObjectInstanceClassName()\n//&&&staticSymbol&&&%>)<%\n}\n//&&&staticSymbol&&&%>super.createFromString(<%\n//&&&staticSymbol&&&=eDataType\n//&&&staticSymbol&&&%>, literal);\n//&&&staticSymbol&&& <%\n}\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t}\n//&&&staticSymbol&&&\n//&&&staticSymbol&&&<%\n}\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t/**\n//&&&staticSymbol&&&\t * <!-- begin-user-doc -->\n//&&&staticSymbol&&&\t * <!-- end-user-doc -->\n//&&&staticSymbol&&&\t * @generated\n//&&&staticSymbol&&&\t */\n//&&&staticSymbol&&& <%\nif (!genPackage.isDataTypeConverters() && genModel.useGenerics() && genDataType.isUncheckedCast() && !genDataType.hasCreatorBody()) {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t@SuppressWarnings(\"unchecked\")\n//&&&staticSymbol&&& <%\n}\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\tpublic <%\n//&&&staticSymbol&&&=genDataType.getImportedParameterizedObjectInstanceClassName()\n//&&&staticSymbol&&&%> create<%\n//&&&staticSymbol&&&=genDataType.getName()\n//&&&staticSymbol&&&%>FromString(<%\n//&&&staticSymbol&&&=genModel.getImportedName(\"org.eclipse.emf.ecore.EDataType\")\n//&&&staticSymbol&&&%> eDataType, String initialValue)\n//&&&staticSymbol&&&\t{\n//&&&staticSymbol&&& <%\nif (genDataType instanceof GenEnum) {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&& <%\nif (genPackage.isDataTypeConverters() || genDataType.hasCreatorBody()) {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\treturn create<%\n//&&&staticSymbol&&&=genDataType.getName()\n//&&&staticSymbol&&&%>(initialValue);\n//&&&staticSymbol&&& <%\n} else {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\t<%\n//&&&staticSymbol&&&=((GenEnum)genDataType).getImportedInstanceClassName()\n//&&&staticSymbol&&&%> result = <%\n//&&&staticSymbol&&&=((GenEnum)genDataType).getImportedInstanceClassName()\n//&&&staticSymbol&&&%>.get(initialValue);\n//&&&staticSymbol&&&\t\tif (result == null) throw new IllegalArgumentException(\"The value '\" + initialValue + \"' is not a valid enumerator of '\" + eDataType.getName() + \"'\");<%\n//&&&staticSymbol&&&=genModel.getNonNLS()\n//&&&staticSymbol&&&%><%\n//&&&staticSymbol&&&=genModel.getNonNLS(2)\n//&&&staticSymbol&&&%><%\n//&&&staticSymbol&&&=genModel.getNonNLS(3)\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\treturn result;\n//&&&staticSymbol&&& <%\n}\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&& <%\n} else if (genDataType.getBaseType() != null) { GenDataType genBaseType = genDataType.getBaseType(); \n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&& <%\nif (genBaseType.getGenPackage() == genPackage) {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\treturn <%\nif (!genDataType.getObjectInstanceClassName().equals(genBaseType.getObjectInstanceClassName())) {\n//&&&staticSymbol&&&%>(<%\n//&&&staticSymbol&&&=genDataType.getObjectInstanceClassName()\n//&&&staticSymbol&&&%>)<%\n}\n//&&&staticSymbol&&&%>create<%\n//&&&staticSymbol&&&=genBaseType.getName()\n//&&&staticSymbol&&&%>FromString(<%\n//&&&staticSymbol&&&=genBaseType.getQualifiedClassifierAccessor()\n//&&&staticSymbol&&&%>, initialValue);\n//&&&staticSymbol&&& <%\n} else {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\treturn <%\nif (!genDataType.isObjectType()) {\n//&&&staticSymbol&&&%>(<%\n//&&&staticSymbol&&&=genDataType.getObjectInstanceClassName()\n//&&&staticSymbol&&&%>)<%\n}\n//&&&staticSymbol&&&%><%\n//&&&staticSymbol&&&=genBaseType.getGenPackage().getQualifiedEFactoryInternalInstanceAccessor()\n//&&&staticSymbol&&&%>.createFromString(<%\n//&&&staticSymbol&&&=genBaseType.getQualifiedClassifierAccessor()\n//&&&staticSymbol&&&%>, initialValue);\n//&&&staticSymbol&&& <%\n}\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&& <%\n} else if (genDataType.getItemType() != null) { GenDataType genItemType = genDataType.getItemType(); \n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&& <%\nif (genPackage.isDataTypeConverters()) {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\treturn create<%\n//&&&staticSymbol&&&=genDataType.getName()\n//&&&staticSymbol&&&%>(initialValue);\n//&&&staticSymbol&&& <%\n} else {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\tif (initialValue == null) return null;\n//&&&staticSymbol&&&\t\t<%\n//&&&staticSymbol&&&=genDataType.getImportedParameterizedObjectInstanceClassName()\n//&&&staticSymbol&&&%> result = new <%\n//&&&staticSymbol&&&=genModel.getImportedName(\"java.util.ArrayList\")\n//&&&staticSymbol&&&%><%\nif (genModel.useGenerics()) {\n//&&&staticSymbol&&&%><<%=genItemType.getObjectType().getImportedParameterizedInstanceClassName()%>><%\n}\n//&&&staticSymbol&&&%>();\n//&&&staticSymbol&&& <%\nif (genModel.getRuntimeVersion().getValue() < GenRuntimeVersion.EMF26_VALUE) {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\tfor (<%\n//&&&staticSymbol&&&=genModel.getImportedName(\"java.util.StringTokenizer\")\n//&&&staticSymbol&&&%> stringTokenizer = new <%\n//&&&staticSymbol&&&=genModel.getImportedName(\"java.util.StringTokenizer\")\n//&&&staticSymbol&&&%>(initialValue); stringTokenizer.hasMoreTokens(); )\n//&&&staticSymbol&&& <%\n} else {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\tfor (String item : split(initialValue))\n//&&&staticSymbol&&& <%\n}\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\t{\n//&&&staticSymbol&&& <%\nif (genModel.getRuntimeVersion().getValue() < GenRuntimeVersion.EMF26_VALUE) {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\t\tString item = stringTokenizer.nextToken();\n//&&&staticSymbol&&& <%\n}\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&& <%\nif (genItemType.getGenPackage() == genPackage) {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\t\tresult.add(create<%\n//&&&staticSymbol&&&=genItemType.getName()\n//&&&staticSymbol&&&%>FromString(<%\n//&&&staticSymbol&&&=genItemType.getQualifiedClassifierAccessor()\n//&&&staticSymbol&&&%>, item));\n//&&&staticSymbol&&& <%\n} else {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\t\tresult.add(<%\nif (!genItemType.isObjectType()) {\n//&&&staticSymbol&&&%>(<%\n//&&&staticSymbol&&&=genItemType.getObjectInstanceClassName()\n//&&&staticSymbol&&&%>)<%\n}\n//&&&staticSymbol&&&%><%\n//&&&staticSymbol&&&=genItemType.getGenPackage().getQualifiedEFactoryInternalInstanceAccessor()\n//&&&staticSymbol&&&%>.createFromString(<%\n//&&&staticSymbol&&&=genItemType.getQualifiedClassifierAccessor()\n//&&&staticSymbol&&&%>, item));\n//&&&staticSymbol&&& <%\n}\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\t}\n//&&&staticSymbol&&&\t\treturn result;\n//&&&staticSymbol&&& <%\n}\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&& <%\n} else if (!genDataType.getMemberTypes().isEmpty()) {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&& <%\nif (genPackage.isDataTypeConverters()) {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&& <%\nif (genDataType.isPrimitiveType() && genModel.getComplianceLevel().getValue() < GenJDKLevel.JDK50) {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\treturn new <%\n//&&&staticSymbol&&&=genDataType.getObjectInstanceClassName()\n//&&&staticSymbol&&&%>(create<%\n//&&&staticSymbol&&&=genDataType.getName()\n//&&&staticSymbol&&&%>(initialValue));\n//&&&staticSymbol&&& <%\n} else {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\treturn create<%\n//&&&staticSymbol&&&=genDataType.getName()\n//&&&staticSymbol&&&%>(initialValue);\n//&&&staticSymbol&&& <%\n}\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&& <%\n} else {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\tif (initialValue == null) return null;\n//&&&staticSymbol&&&\t\t<%\n//&&&staticSymbol&&&=genDataType.getObjectInstanceClassName()\n//&&&staticSymbol&&&%> result = null;\n//&&&staticSymbol&&&\t\tRuntimeException exception = null;\n//&&&staticSymbol&&& <%\nfor (GenDataType genMemberType : genDataType.getMemberTypes()) {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\ttry\n//&&&staticSymbol&&&\t\t{\n//&&&staticSymbol&&& <%\nif (genMemberType.getGenPackage() == genPackage) {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\t\tresult = <%\nif (!genDataType.isObjectType() && !genDataType.getObjectInstanceClassName().equals(genMemberType.getObjectInstanceClassName())) {\n//&&&staticSymbol&&&%>(<%\n//&&&staticSymbol&&&=genDataType.getObjectInstanceClassName()\n//&&&staticSymbol&&&%>)<%\n}\n//&&&staticSymbol&&&%>create<%\n//&&&staticSymbol&&&=genMemberType.getName()\n//&&&staticSymbol&&&%>FromString(<%\n//&&&staticSymbol&&&=genMemberType.getQualifiedClassifierAccessor()\n//&&&staticSymbol&&&%>, initialValue);\n//&&&staticSymbol&&& <%\n} else {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\t\tresult = <%\nif (!genDataType.isObjectType()) {\n//&&&staticSymbol&&&%>(<%\n//&&&staticSymbol&&&=genDataType.getObjectInstanceClassName()\n//&&&staticSymbol&&&%>)<%\n}\n//&&&staticSymbol&&&%><%\n//&&&staticSymbol&&&=genMemberType.getGenPackage().getQualifiedEFactoryInternalInstanceAccessor()\n//&&&staticSymbol&&&%>.createFromString(<%\n//&&&staticSymbol&&&=genMemberType.getQualifiedClassifierAccessor()\n//&&&staticSymbol&&&%>, initialValue);\n//&&&staticSymbol&&& <%\n}\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\t\tif (result != null && <%\n//&&&staticSymbol&&&=genModel.getImportedName(\"org.eclipse.emf.ecore.util.Diagnostician\")\n//&&&staticSymbol&&&%>.INSTANCE.validate(eDataType, result, null, null))\n//&&&staticSymbol&&&\t\t\t{\n//&&&staticSymbol&&&\t\t\t\treturn result;\n//&&&staticSymbol&&&\t\t\t}\n//&&&staticSymbol&&&\t\t}\n//&&&staticSymbol&&&\t\tcatch (RuntimeException e)\n//&&&staticSymbol&&&\t\t{\n//&&&staticSymbol&&&\t\t\texception = e;\n//&&&staticSymbol&&&\t\t}\n//&&&staticSymbol&&& <%\n}\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\tif (result != null || exception == null) return result;\n//&&&staticSymbol&&& \n//&&&staticSymbol&&&\t\tthrow exception;\n//&&&staticSymbol&&& <%\n}\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&& <%\n} else if (genPackage.isDataTypeConverters() || genDataType.hasCreatorBody()) {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\treturn create<%\n//&&&staticSymbol&&&=genDataType.getName()\n//&&&staticSymbol&&&%>(initialValue);\n//&&&staticSymbol&&& <%\n} else if (!genDataType.hasConversionDelegate() && genModel.useGenerics() && (genDataType.isArrayType() || !genDataType.getEcoreDataType().getETypeParameters().isEmpty() || genDataType.getEcoreDataType().getInstanceTypeName().contains(\"<\"))) {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\treturn <%\nif (!genDataType.isObjectType()) {\n//&&&staticSymbol&&&%>(<%\n//&&&staticSymbol&&&=genDataType.getImportedParameterizedObjectInstanceClassName()\n//&&&staticSymbol&&&%>)<%\n}\n//&&&staticSymbol&&&%>super.createFromString(initialValue);\n//&&&staticSymbol&&& <%\n} else if (!genDataType.hasConversionDelegate() && genDataType.isArrayType()) {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\t// TODO: implement this method\n//&&&staticSymbol&&&\t\t// Ensure that you remove @generated or mark it @generated NOT\n//&&&staticSymbol&&&\t\tthrow new <%\n//&&&staticSymbol&&&=genModel.getImportedName(\"java.lang.UnsupportedOperationException\")\n//&&&staticSymbol&&&%>();\n//&&&staticSymbol&&& <%\n} else {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\treturn <%\nif (!genDataType.isObjectType()) {\n//&&&staticSymbol&&&%>(<%\n//&&&staticSymbol&&&=genDataType.getImportedParameterizedObjectInstanceClassName()\n//&&&staticSymbol&&&%>)<%\n}\n//&&&staticSymbol&&&%>super.createFromString(eDataType, initialValue);\n//&&&staticSymbol&&& <%\n}\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t}\n//&&&staticSymbol&&&\n//&&&staticSymbol&&&<%\nif (genPackage.isDataTypeConverters() || genDataType.hasConverterBody()) { String eDataType = genDataType.getQualifiedClassifierAccessor();\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t/**\n//&&&staticSymbol&&&\t * <!-- begin-user-doc -->\n//&&&staticSymbol&&&\t * <!-- end-user-doc -->\n//&&&staticSymbol&&&\t * @generated\n//&&&staticSymbol&&&\t */\n//&&&staticSymbol&&&\tpublic String convert<%\n//&&&staticSymbol&&&=genDataType.getName()\n//&&&staticSymbol&&&%>(<%\nif (genDataType.hasCreatorBody()) {\n//&&&staticSymbol&&&%>final <%\n}\n//&&&staticSymbol&&&%><%\n//&&&staticSymbol&&&=genDataType.getImportedBoundedWildcardInstanceClassName()\n//&&&staticSymbol&&&%> <%\nif (genDataType.hasConverterBody()) {\n//&&&staticSymbol&&&%>it<%\n} else {\n//&&&staticSymbol&&&%>instanceValue<%\n}\n//&&&staticSymbol&&&%>)\n//&&&staticSymbol&&&\t{\n//&&&staticSymbol&&& <%\nif (genDataType.hasConverterBody()) {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\t<%\n//&&&staticSymbol&&&=genDataType.getConverterBody(genModel.getIndentation(stringBuffer))\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&& <%\n} else if (genDataType instanceof GenEnum) {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\treturn instanceValue == null ? null : instanceValue.toString();\n//&&&staticSymbol&&& <%\n} else if (genDataType.getBaseType() != null) { GenDataType genBaseType = genDataType.getBaseType(); boolean isPrimitiveConversion = !genDataType.isPrimitiveType() && genBaseType.isPrimitiveType();\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&& <%\nif (genBaseType.getGenPackage() == genPackage) {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&& <%\nif (isPrimitiveConversion) {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\treturn instanceValue == null ? null : convert<%\n//&&&staticSymbol&&&=genBaseType.getName()\n//&&&staticSymbol&&&%>(instanceValue<%\nif (genModel.getComplianceLevel().getValue() < GenJDKLevel.JDK50) {\n//&&&staticSymbol&&&%>.<%\n//&&&staticSymbol&&&=genBaseType.getPrimitiveValueFunction()\n//&&&staticSymbol&&&%>()<%\n}\n//&&&staticSymbol&&&%>);\n//&&&staticSymbol&&& <%\n} else {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\treturn convert<%\n//&&&staticSymbol&&&=genBaseType.getName()\n//&&&staticSymbol&&&%>(instanceValue);\n//&&&staticSymbol&&& <%\n}\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&& <%\n} else if (genBaseType.getGenPackage().isDataTypeConverters()) {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\treturn <%\n//&&&staticSymbol&&&=genBaseType.getGenPackage().getQualifiedFactoryInstanceAccessor()\n//&&&staticSymbol&&&%>.convert<%\n//&&&staticSymbol&&&=genBaseType.getName()\n//&&&staticSymbol&&&%>(instanceValue);\n//&&&staticSymbol&&& <%\n} else {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\treturn <%\n//&&&staticSymbol&&&=genBaseType.getGenPackage().getQualifiedEFactoryInternalInstanceAccessor()\n//&&&staticSymbol&&&%>.convertToString(<%\n//&&&staticSymbol&&&=genBaseType.getQualifiedClassifierAccessor()\n//&&&staticSymbol&&&%>, instanceValue);\n//&&&staticSymbol&&& <%\n}\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&& <%\n} else if (genDataType.getItemType() != null) { GenDataType genItemType = genDataType.getItemType(); \n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\tif (instanceValue == null) return null;\n//&&&staticSymbol&&&\t\tif (instanceValue.isEmpty()) return \"\";\n//&&&staticSymbol&&&\t\t<%\n//&&&staticSymbol&&&=genModel.getImportedName(\"java.lang.StringBuffer\")\n//&&&staticSymbol&&&%> result = new <%\n//&&&staticSymbol&&&=genModel.getImportedName(\"java.lang.StringBuffer\")\n//&&&staticSymbol&&&%>();\n//&&&staticSymbol&&& <%\nString item; if (!genModel.useGenerics()) { item = \"i.next()\"; \n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\tfor (<%\n//&&&staticSymbol&&&=genModel.getImportedName(\"java.util.Iterator\")\n//&&&staticSymbol&&&%> i = instanceValue.iterator(); i.hasNext(); )\n//&&&staticSymbol&&& <%\n} else { item = \"item\";\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\tfor (<%\n//&&&staticSymbol&&&=genModel.getImportedName(\"java.lang.Object\")\n//&&&staticSymbol&&&%> item : instanceValue)\n//&&&staticSymbol&&& <%\n}\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\t{\n//&&&staticSymbol&&& <%\nif (genItemType.getGenPackage() == genPackage) {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&& <%\nif (genPackage.isDataTypeConverters()) { genItemType = genItemType.getObjectType();\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\t\tresult.append(convert<%\n//&&&staticSymbol&&&=genItemType.getName()\n//&&&staticSymbol&&&%>((<%\n//&&&staticSymbol&&&=genItemType.getObjectInstanceClassName()\n//&&&staticSymbol&&&%>)<%\n//&&&staticSymbol&&&=item\n//&&&staticSymbol&&&%>));\n//&&&staticSymbol&&& <%\n} else {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\t\tresult.append(convert<%\n//&&&staticSymbol&&&=genItemType.getName()\n//&&&staticSymbol&&&%>ToString(<%\n//&&&staticSymbol&&&=genItemType.getQualifiedClassifierAccessor()\n//&&&staticSymbol&&&%>, <%\n//&&&staticSymbol&&&=item\n//&&&staticSymbol&&&%>));\n//&&&staticSymbol&&& <%\n}\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&& <%\n} else {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&& <%\nif (genItemType.getGenPackage().isDataTypeConverters()) { genItemType = genItemType.getObjectType();\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\t\tresult.append(<%\n//&&&staticSymbol&&&=genItemType.getGenPackage().getQualifiedEFactoryInternalInstanceAccessor()\n//&&&staticSymbol&&&%>.convert<%\n//&&&staticSymbol&&&=genItemType.getName()\n//&&&staticSymbol&&&%>((<%\n//&&&staticSymbol&&&=genItemType.getObjectInstanceClassName()\n//&&&staticSymbol&&&%>)<%\n//&&&staticSymbol&&&=item\n//&&&staticSymbol&&&%>));\n//&&&staticSymbol&&& <%\n} else {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\t\tresult.append(<%\n//&&&staticSymbol&&&=genItemType.getGenPackage().getQualifiedEFactoryInternalInstanceAccessor()\n//&&&staticSymbol&&&%>.convertToString(<%\n//&&&staticSymbol&&&=genItemType.getQualifiedClassifierAccessor()\n//&&&staticSymbol&&&%>, <%\n//&&&staticSymbol&&&=item\n//&&&staticSymbol&&&%>));\n//&&&staticSymbol&&& <%\n}\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&& <%\n}\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\t\tresult.append(' ');\n//&&&staticSymbol&&&\t\t}\n//&&&staticSymbol&&&\t\treturn result.substring(0, result.length() - 1);\n//&&&staticSymbol&&& <%\n} else if (!genDataType.getMemberTypes().isEmpty()) {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&& <%\nif (!genDataType.isPrimitiveType()) {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\tif (instanceValue == null) return null;\n//&&&staticSymbol&&& <%\nfor (GenDataType genMemberType : genDataType.getMemberTypes()) {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\tif (<%\n//&&&staticSymbol&&&=genMemberType.getQualifiedClassifierAccessor()\n//&&&staticSymbol&&&%>.isInstance(instanceValue))\n//&&&staticSymbol&&&\t\t{\n//&&&staticSymbol&&&\t\t\ttry\n//&&&staticSymbol&&&\t\t\t{\n//&&&staticSymbol&&& <%\nif (genMemberType.getGenPackage() == genPackage) {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&& <%\nif (genPackage.isDataTypeConverters()) {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&& <%\nif (genMemberType.getQualifiedInstanceClassName().equals(genDataType.getQualifiedInstanceClassName())) {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\t\t\tString value = convert<%\n//&&&staticSymbol&&&=genMemberType.getName()\n//&&&staticSymbol&&&%>(instanceValue);\n//&&&staticSymbol&&& <%\n} else if (genMemberType.isPrimitiveType() && genModel.getComplianceLevel().getValue() < GenJDKLevel.JDK50) {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\t\t\tString value = convert<%\n//&&&staticSymbol&&&=genMemberType.getName()\n//&&&staticSymbol&&&%>(((<%\n//&&&staticSymbol&&&=genMemberType.getObjectType().getImportedInstanceClassName()\n//&&&staticSymbol&&&%>)instanceValue).<%\n//&&&staticSymbol&&&=genMemberType.getPrimitiveValueFunction()\n//&&&staticSymbol&&&%>());\n//&&&staticSymbol&&& <%\n} else {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\t\t\tString value = convert<%\n//&&&staticSymbol&&&=genMemberType.getName()\n//&&&staticSymbol&&&%>((<%\n//&&&staticSymbol&&&=genMemberType.getObjectType().getImportedBoundedWildcardInstanceClassName()\n//&&&staticSymbol&&&%>)instanceValue);\n//&&&staticSymbol&&& <%\n}\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&& <%\n} else {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\t\t\tString value = convert<%\n//&&&staticSymbol&&&=genMemberType.getName()\n//&&&staticSymbol&&&%>ToString(<%\n//&&&staticSymbol&&&=genMemberType.getQualifiedClassifierAccessor()\n//&&&staticSymbol&&&%>, instanceValue);\n//&&&staticSymbol&&& <%\n}\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&& <%\n} else {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&& <%\nif (genMemberType.getGenPackage().isDataTypeConverters()) { genMemberType = genMemberType.getObjectType();\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\t\t\tString value = <%\n//&&&staticSymbol&&&=genMemberType.getGenPackage().getQualifiedEFactoryInternalInstanceAccessor()\n//&&&staticSymbol&&&%>.convert<%\n//&&&staticSymbol&&&=genMemberType.getName()\n//&&&staticSymbol&&&%>((<%\n//&&&staticSymbol&&&=genMemberType.getObjectInstanceClassName()\n//&&&staticSymbol&&&%>)instanceValue);\n//&&&staticSymbol&&& <%\n} else {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\t\t\tString value = <%\n//&&&staticSymbol&&&=genMemberType.getGenPackage().getQualifiedEFactoryInternalInstanceAccessor()\n//&&&staticSymbol&&&%>.convertToString(<%\n//&&&staticSymbol&&&=genMemberType.getQualifiedClassifierAccessor()\n//&&&staticSymbol&&&%>, instanceValue);\n//&&&staticSymbol&&& <%\n}\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&& <%\n}\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\t\t\tif (value != null) return value;\n//&&&staticSymbol&&&\t\t\t}\n//&&&staticSymbol&&&\t\t\tcatch (Exception e)\n//&&&staticSymbol&&&\t\t\t{\n//&&&staticSymbol&&&\t\t\t\t// Keep trying other member types until all have failed.\n//&&&staticSymbol&&&\t\t\t}\n//&&&staticSymbol&&&\t\t}\n//&&&staticSymbol&&& <%\n}\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&& <%\n} else {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&& <%\nfor (GenDataType genMemberType : genDataType.getMemberTypes()) {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\ttry\n//&&&staticSymbol&&&\t\t{\n//&&&staticSymbol&&& <%\nif (genMemberType.getGenPackage() == genPackage) {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&& <%\nif (genPackage.isDataTypeConverters()) {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\t\tString value = convert<%\n//&&&staticSymbol&&&=genMemberType.getName()\n//&&&staticSymbol&&&%>(instanceValue);\n//&&&staticSymbol&&& <%\n} else {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\t\tString value = convert<%\n//&&&staticSymbol&&&=genMemberType.getName()\n//&&&staticSymbol&&&%>ToString(<%\n//&&&staticSymbol&&&=genMemberType.getQualifiedClassifierAccessor()\n//&&&staticSymbol&&&%>, <%\nif (genModel.getComplianceLevel().getValue() < GenJDKLevel.JDK50) {\n//&&&staticSymbol&&&%>new <%\n//&&&staticSymbol&&&=genMemberType.getObjectInstanceClassName()\n//&&&staticSymbol&&&%>(instanceValue)<%\n} else {\n//&&&staticSymbol&&&%>instanceValue<%\n}\n//&&&staticSymbol&&&%>);\n//&&&staticSymbol&&& <%\n}\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&& <%\n} else {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&& <%\nif (genMemberType.getGenPackage().isDataTypeConverters()) {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\t\tString value = <%\n//&&&staticSymbol&&&=genMemberType.getGenPackage().getQualifiedEFactoryInternalInstanceAccessor()\n//&&&staticSymbol&&&%>.convert<%\n//&&&staticSymbol&&&=genMemberType.getName()\n//&&&staticSymbol&&&%>(instanceValue);\n//&&&staticSymbol&&& <%\n} else {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\t\tString value = <%\n//&&&staticSymbol&&&=genMemberType.getGenPackage().getQualifiedEFactoryInternalInstanceAccessor()\n//&&&staticSymbol&&&%>.convertToString(<%\n//&&&staticSymbol&&&=genMemberType.getQualifiedClassifierAccessor()\n//&&&staticSymbol&&&%>, <%\nif (genModel.getComplianceLevel().getValue() < GenJDKLevel.JDK50) {\n//&&&staticSymbol&&&%>new <%\n//&&&staticSymbol&&&=genMemberType.getObjectInstanceClassName()\n//&&&staticSymbol&&&%>(instanceValue)<%\n} else {\n//&&&staticSymbol&&&%>instanceValue<%\n}\n//&&&staticSymbol&&&%>);\n//&&&staticSymbol&&& <%\n}\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&& <%\n}\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\t\tif (value != null) return value;\n//&&&staticSymbol&&&\t\t}\n//&&&staticSymbol&&&\t\tcatch (Exception e)\n//&&&staticSymbol&&&\t\t{\n//&&&staticSymbol&&&\t\t\t// Keep trying other member types until all have failed.\n//&&&staticSymbol&&&\t\t}\n//&&&staticSymbol&&& <%\n}\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&& <%\n}\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\tthrow new IllegalArgumentException(\"Invalid value: '\"+instanceValue+\"' for datatype :\"+<%\n//&&&staticSymbol&&&=eDataType\n//&&&staticSymbol&&&%>.getName());\n//&&&staticSymbol&&& <%\n} else if (!genDataType.hasConversionDelegate() && genModel.useGenerics() && (genDataType.isArrayType() || !genDataType.getEcoreDataType().getETypeParameters().isEmpty() || genDataType.getEcoreDataType().getInstanceTypeName().contains(\"<\"))) {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\treturn super.convertToString(instanceValue);\n//&&&staticSymbol&&& <%\n} else if (!genDataType.hasConversionDelegate() && genDataType.isArrayType()) {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\t// TODO: implement this method\n//&&&staticSymbol&&&\t\t// Ensure that you remove @generated or mark it @generated NOT\n//&&&staticSymbol&&&\t\tthrow new <%\n//&&&staticSymbol&&&=genModel.getImportedName(\"java.lang.UnsupportedOperationException\")\n//&&&staticSymbol&&&%>();\n//&&&staticSymbol&&& <%\n} else if (genDataType.isPrimitiveType() && genModel.getComplianceLevel().getValue() < GenJDKLevel.JDK50) {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\treturn super.convertToString(<%\n//&&&staticSymbol&&&=eDataType\n//&&&staticSymbol&&&%>, new <%\n//&&&staticSymbol&&&=genDataType.getObjectInstanceClassName()\n//&&&staticSymbol&&&%>(instanceValue));\n//&&&staticSymbol&&& <%\n} else {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\treturn super.convertToString(<%\n//&&&staticSymbol&&&=eDataType\n//&&&staticSymbol&&&%>, instanceValue);\n//&&&staticSymbol&&& <%\n}\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t}\n//&&&staticSymbol&&&\n//&&&staticSymbol&&&<%\n}\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t/**\n//&&&staticSymbol&&&\t * <!-- begin-user-doc -->\n//&&&staticSymbol&&&\t * <!-- end-user-doc -->\n//&&&staticSymbol&&&\t * @generated\n//&&&staticSymbol&&&\t */\n//&&&staticSymbol&&& <%\nif (genModel.useGenerics() && (genDataType.getItemType() != null || genDataType.isUncheckedCast()) && (genPackage.isDataTypeConverters() || genDataType.hasCreatorBody())) {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t@SuppressWarnings(\"unchecked\")\n//&&&staticSymbol&&& <%\n}\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\tpublic String convert<%\n//&&&staticSymbol&&&=genDataType.getName()\n//&&&staticSymbol&&&%>ToString(<%\n//&&&staticSymbol&&&=genModel.getImportedName(\"org.eclipse.emf.ecore.EDataType\")\n//&&&staticSymbol&&&%> eDataType, Object instanceValue)\n//&&&staticSymbol&&&\t{\n//&&&staticSymbol&&& <%\nif (genDataType instanceof GenEnum) {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&& <%\nif (genPackage.isDataTypeConverters() || genDataType.hasConverterBody()) {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\treturn convert<%\n//&&&staticSymbol&&&=genDataType.getName()\n//&&&staticSymbol&&&%>((<%\n//&&&staticSymbol&&&=genDataType.getImportedInstanceClassName()\n//&&&staticSymbol&&&%>)instanceValue);\n//&&&staticSymbol&&& <%\n} else {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\treturn instanceValue == null ? null : instanceValue.toString();\n//&&&staticSymbol&&& <%\n}\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&& <%\n} else if (genDataType.getBaseType() != null) { GenDataType genBaseType = genDataType.getBaseType(); \n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&& <%\nif (genBaseType.getGenPackage() == genPackage) {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\treturn convert<%\n//&&&staticSymbol&&&=genBaseType.getName()\n//&&&staticSymbol&&&%>ToString(<%\n//&&&staticSymbol&&&=genBaseType.getQualifiedClassifierAccessor()\n//&&&staticSymbol&&&%>, instanceValue);\n//&&&staticSymbol&&& <%\n} else {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\treturn <%\n//&&&staticSymbol&&&=genBaseType.getGenPackage().getQualifiedEFactoryInternalInstanceAccessor()\n//&&&staticSymbol&&&%>.convertToString(<%\n//&&&staticSymbol&&&=genBaseType.getQualifiedClassifierAccessor()\n//&&&staticSymbol&&&%>, instanceValue);\n//&&&staticSymbol&&& <%\n}\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&& <%\n} else if (genDataType.getItemType() != null) { GenDataType genItemType = genDataType.getItemType(); \n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&& <%\nif (genPackage.isDataTypeConverters() || genDataType.hasCreatorBody()) {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\treturn convert<%\n//&&&staticSymbol&&&=genDataType.getName()\n//&&&staticSymbol&&&%>((<%\n//&&&staticSymbol&&&=genDataType.getImportedBoundedWildcardInstanceClassName()\n//&&&staticSymbol&&&%>)instanceValue);\n//&&&staticSymbol&&& <%\n} else { final String singleWildcard = genModel.useGenerics() ? \"<?>\" : \"\";\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\tif (instanceValue == null) return null;\n//&&&staticSymbol&&&\t\t<%\n//&&&staticSymbol&&&=genModel.getImportedName(\"java.util.List\")\n//&&&staticSymbol&&&%><%\n//&&&staticSymbol&&&=singleWildcard\n//&&&staticSymbol&&&%> list = (<%\n//&&&staticSymbol&&&=genModel.getImportedName(\"java.util.List\")\n//&&&staticSymbol&&&%><%\n//&&&staticSymbol&&&=singleWildcard\n//&&&staticSymbol&&&%>)instanceValue;\n//&&&staticSymbol&&&\t\tif (list.isEmpty()) return \"\";\n//&&&staticSymbol&&&\t\t<%\n//&&&staticSymbol&&&=genModel.getImportedName(\"java.lang.StringBuffer\")\n//&&&staticSymbol&&&%> result = new <%\n//&&&staticSymbol&&&=genModel.getImportedName(\"java.lang.StringBuffer\")\n//&&&staticSymbol&&&%>();\n//&&&staticSymbol&&& <%\nString item; if (!genModel.useGenerics()) { item = \"i.next()\"; \n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\tfor (<%\n//&&&staticSymbol&&&=genModel.getImportedName(\"java.util.Iterator\")\n//&&&staticSymbol&&&%> i = list.iterator(); i.hasNext(); )\n//&&&staticSymbol&&& <%\n} else { item = \"item\";\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\tfor (<%\n//&&&staticSymbol&&&=genModel.getImportedName(\"java.lang.Object\")\n//&&&staticSymbol&&&%> item : list)\n//&&&staticSymbol&&& <%\n}\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\t{\n//&&&staticSymbol&&& <%\nif (genItemType.getGenPackage() == genPackage) {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\t\tresult.append(convert<%\n//&&&staticSymbol&&&=genItemType.getName()\n//&&&staticSymbol&&&%>ToString(<%\n//&&&staticSymbol&&&=genItemType.getQualifiedClassifierAccessor()\n//&&&staticSymbol&&&%>, <%\n//&&&staticSymbol&&&=item\n//&&&staticSymbol&&&%>));\n//&&&staticSymbol&&& <%\n} else {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\t\tresult.append(<%\n//&&&staticSymbol&&&=genItemType.getGenPackage().getQualifiedEFactoryInternalInstanceAccessor()\n//&&&staticSymbol&&&%>.convertToString(<%\n//&&&staticSymbol&&&=genItemType.getQualifiedClassifierAccessor()\n//&&&staticSymbol&&&%>, <%\n//&&&staticSymbol&&&=item\n//&&&staticSymbol&&&%>));\n//&&&staticSymbol&&& <%\n}\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\t\tresult.append(' ');\n//&&&staticSymbol&&&\t\t}\n//&&&staticSymbol&&&\t\treturn result.substring(0, result.length() - 1);\n//&&&staticSymbol&&& <%\n}\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&& <%\n} else if (!genDataType.getMemberTypes().isEmpty()) {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&& <%\nif (genPackage.isDataTypeConverters() || genDataType.hasConverterBody()) {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&& <%\nif (genDataType.isPrimitiveType()) {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\treturn instanceValue == null ? null : convert<%\n//&&&staticSymbol&&&=genDataType.getName()\n//&&&staticSymbol&&&%>(((<%\n//&&&staticSymbol&&&=genDataType.getObjectInstanceClassName()\n//&&&staticSymbol&&&%>)instanceValue)<%\nif (genModel.getComplianceLevel().getValue() < GenJDKLevel.JDK50) {\n//&&&staticSymbol&&&%>.<%\n//&&&staticSymbol&&&=genDataType.getPrimitiveValueFunction()\n//&&&staticSymbol&&&%>()<%\n}\n//&&&staticSymbol&&&%>);\n//&&&staticSymbol&&& <%\n} else {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\treturn convert<%\n//&&&staticSymbol&&&=genDataType.getName()\n//&&&staticSymbol&&&%>(instanceValue);\n//&&&staticSymbol&&& <%\n}\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&& <%\n} else {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\tif (instanceValue == null) return null;\n//&&&staticSymbol&&& <%\nfor (GenDataType genMemberType : genDataType.getMemberTypes()) {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\tif (<%\n//&&&staticSymbol&&&=genMemberType.getQualifiedClassifierAccessor()\n//&&&staticSymbol&&&%>.isInstance(instanceValue))\n//&&&staticSymbol&&&\t\t{\n//&&&staticSymbol&&&\t\t\ttry\n//&&&staticSymbol&&&\t\t\t{\n//&&&staticSymbol&&& <%\nif (genMemberType.getGenPackage() == genPackage) {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\t\t\tString value = convert<%\n//&&&staticSymbol&&&=genMemberType.getName()\n//&&&staticSymbol&&&%>ToString(<%\n//&&&staticSymbol&&&=genMemberType.getQualifiedClassifierAccessor()\n//&&&staticSymbol&&&%>, instanceValue);\n//&&&staticSymbol&&& <%\n} else {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\t\t\tString value = <%\n//&&&staticSymbol&&&=genMemberType.getGenPackage().getQualifiedEFactoryInternalInstanceAccessor()\n//&&&staticSymbol&&&%>.convertToString(<%\n//&&&staticSymbol&&&=genMemberType.getQualifiedClassifierAccessor()\n//&&&staticSymbol&&&%>, instanceValue);\n//&&&staticSymbol&&& <%\n}\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\t\t\tif (value != null) return value;\n//&&&staticSymbol&&&\t\t\t}\n//&&&staticSymbol&&&\t\t\tcatch (Exception e)\n//&&&staticSymbol&&&\t\t\t{\n//&&&staticSymbol&&&\t\t\t\t// Keep trying other member types until all have failed.\n//&&&staticSymbol&&&\t\t\t}\n//&&&staticSymbol&&&\t\t}\n//&&&staticSymbol&&& <%\n}\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\tthrow new IllegalArgumentException(\"Invalid value: '\"+instanceValue+\"' for datatype :\"+eDataType.getName());\n//&&&staticSymbol&&& <%\n}\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&& <%\n} else if (genPackage.isDataTypeConverters() || genDataType.hasConverterBody()) {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&& <%\nif (genDataType.isPrimitiveType()) {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\treturn instanceValue == null ? null : convert<%\n//&&&staticSymbol&&&=genDataType.getName()\n//&&&staticSymbol&&&%>(<%\nif (genModel.getComplianceLevel().getValue() < GenJDKLevel.JDK50) {\n//&&&staticSymbol&&&%>(<%\n}\n//&&&staticSymbol&&&%>(<%\n//&&&staticSymbol&&&=genDataType.getObjectInstanceClassName()\n//&&&staticSymbol&&&%>)instanceValue<%\nif (genModel.getComplianceLevel().getValue() < GenJDKLevel.JDK50) {\n//&&&staticSymbol&&&%>).<%\n//&&&staticSymbol&&&=genDataType.getPrimitiveValueFunction()\n//&&&staticSymbol&&&%>()<%\n}\n//&&&staticSymbol&&&%>);\n//&&&staticSymbol&&& <%\n} else {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\treturn convert<%\n//&&&staticSymbol&&&=genDataType.getName()\n//&&&staticSymbol&&&%>((<%\n//&&&staticSymbol&&&=genDataType.getImportedBoundedWildcardInstanceClassName()\n//&&&staticSymbol&&&%>)instanceValue);\n//&&&staticSymbol&&& <%\n}\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&& <%\n} else if (!genDataType.hasConversionDelegate() && genModel.useGenerics() && (genDataType.isArrayType() || !genDataType.getEcoreDataType().getETypeParameters().isEmpty() || genDataType.getEcoreDataType().getInstanceTypeName().contains(\"<\"))) {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\treturn super.convertToString(instanceValue);\n//&&&staticSymbol&&& <%\n} else if (!genDataType.hasConversionDelegate() && genDataType.isArrayType()) {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\t// TODO: implement this method\n//&&&staticSymbol&&&\t\t// Ensure that you remove @generated or mark it @generated NOT\n//&&&staticSymbol&&&\t\tthrow new <%\n//&&&staticSymbol&&&=genModel.getImportedName(\"java.lang.UnsupportedOperationException\")\n//&&&staticSymbol&&&%>();\n//&&&staticSymbol&&& <%\n} else {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\treturn super.convertToString(eDataType, instanceValue);\n//&&&staticSymbol&&& <%\n}\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t}\n//&&&staticSymbol&&&\n//&&&staticSymbol&&& <%\n}\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&<%\n}\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&<%\n} else {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&& <%\nfor (GenClass genClass : genPackage.getGenClasses()) {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&& <%\nif (genClass.hasFactoryInterfaceCreateMethod()) {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t/**\n//&&&staticSymbol&&&\t * Returns a new object of class '<em><%\n//&&&staticSymbol&&&=genClass.getFormattedName()\n//&&&staticSymbol&&&%></em>'.\n//&&&staticSymbol&&&\t * <!-- begin-user-doc -->\n//&&&staticSymbol&&&\t * <!-- end-user-doc -->\n//&&&staticSymbol&&&\t * @return a new object of class '<em><%\n//&&&staticSymbol&&&=genClass.getFormattedName()\n//&&&staticSymbol&&&%></em>'.\n//&&&staticSymbol&&&\t * @generated\n//&&&staticSymbol&&&\t */\n//&&&staticSymbol&&&\t<%\n//&&&staticSymbol&&&=genClass.getTypeParameters()\n//&&&staticSymbol&&&%><%\n//&&&staticSymbol&&&=genClass.getImportedInterfaceName()\n//&&&staticSymbol&&&%><%\n//&&&staticSymbol&&&=genClass.getInterfaceTypeArguments()\n//&&&staticSymbol&&&%> create<%\n//&&&staticSymbol&&&=genClass.getName()\n//&&&staticSymbol&&&%>();\n//&&&staticSymbol&&&\n//&&&staticSymbol&&& <%\n}\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&& <%\n}\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&& <%\nif (genPackage.isDataTypeConverters()) {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&& <%\nfor (GenDataType genDataType : genPackage.getAllGenDataTypes()) {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&& <%\nif (genDataType.isSerializable()) {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t/**\n//&&&staticSymbol&&&\t * Returns an instance of data type '<em><%\n//&&&staticSymbol&&&=genDataType.getFormattedName()\n//&&&staticSymbol&&&%></em>' corresponding the given literal.\n//&&&staticSymbol&&&\t * <!-- begin-user-doc -->\n//&&&staticSymbol&&&\t * <!-- end-user-doc -->\n//&&&staticSymbol&&&\t * @param literal a literal of the data type.\n//&&&staticSymbol&&&\t * @return a new instance value of the data type.\n//&&&staticSymbol&&&\t * @generated\n//&&&staticSymbol&&&\t */\n//&&&staticSymbol&&&\t<%\n//&&&staticSymbol&&&=genDataType.getImportedParameterizedInstanceClassName()\n//&&&staticSymbol&&&%> create<%\n//&&&staticSymbol&&&=genDataType.getName()\n//&&&staticSymbol&&&%>(String literal);\n//&&&staticSymbol&&&\n//&&&staticSymbol&&&\t/**\n//&&&staticSymbol&&&\t * Returns a literal representation of an instance of data type '<em><%\n//&&&staticSymbol&&&=genDataType.getFormattedName()\n//&&&staticSymbol&&&%></em>'.\n//&&&staticSymbol&&&\t * <!-- begin-user-doc -->\n//&&&staticSymbol&&&\t * <!-- end-user-doc -->\n//&&&staticSymbol&&&\t * @param instanceValue an instance value of the data type.\n//&&&staticSymbol&&&\t * @return a literal representation of the instance value.\n//&&&staticSymbol&&&\t * @generated\n//&&&staticSymbol&&&\t */\n//&&&staticSymbol&&&\tString convert<%\n//&&&staticSymbol&&&=genDataType.getName()\n//&&&staticSymbol&&&%>(<%\n//&&&staticSymbol&&&=genDataType.getImportedBoundedWildcardInstanceClassName()\n//&&&staticSymbol&&&%> instanceValue);\n//&&&staticSymbol&&&\n//&&&staticSymbol&&& <%\n}\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&& <%\n}\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&& <%\n}\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&<%\n}\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&<%\nif (!isImplementation && !genModel.isSuppressEMFMetaData()) {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t/**\n//&&&staticSymbol&&&\t * Returns the package supported by this factory.\n//&&&staticSymbol&&&\t * <!-- begin-user-doc -->\n//&&&staticSymbol&&&\t * <!-- end-user-doc -->\n//&&&staticSymbol&&&\t * @return the package supported by this factory.\n//&&&staticSymbol&&&\t * @generated\n//&&&staticSymbol&&&\t */\n//&&&staticSymbol&&&\t<%\n//&&&staticSymbol&&&=genPackage.getPackageInterfaceName()\n//&&&staticSymbol&&&%> get<%\n//&&&staticSymbol&&&=genPackage.getBasicPackageName()\n//&&&staticSymbol&&&%>();\n//&&&staticSymbol&&&\n//&&&staticSymbol&&&<%\n} else if (isImplementation) {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t/**\n//&&&staticSymbol&&&\t * <!-- begin-user-doc -->\n//&&&staticSymbol&&&\t * <!-- end-user-doc -->\n//&&&staticSymbol&&&\t * @generated\n//&&&staticSymbol&&&\t */\n//&&&staticSymbol&&&\tpublic <%\n//&&&staticSymbol&&&=genPackage.getImportedPackageInterfaceName()\n//&&&staticSymbol&&&%> get<%\n//&&&staticSymbol&&&=genPackage.getBasicPackageName()\n//&&&staticSymbol&&&%>()\n//&&&staticSymbol&&&\t{\n//&&&staticSymbol&&&\t\treturn (<%\n//&&&staticSymbol&&&=genPackage.getImportedPackageInterfaceName()\n//&&&staticSymbol&&&%>)getEPackage();\n//&&&staticSymbol&&&\t}\n//&&&staticSymbol&&&\n//&&&staticSymbol&&&\t/**\n//&&&staticSymbol&&&\t * <!-- begin-user-doc -->\n//&&&staticSymbol&&&\t * <!-- end-user-doc -->\n//&&&staticSymbol&&&\t * @deprecated\n//&&&staticSymbol&&&\t * @generated\n//&&&staticSymbol&&&\t */\n//&&&staticSymbol&&& <%\nif (genModel.useClassOverrideAnnotation()) {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t@Deprecated\n//&&&staticSymbol&&& <%\n}\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\tpublic static <%\n//&&&staticSymbol&&&=genPackage.getImportedPackageInterfaceName()\n//&&&staticSymbol&&&%> getPackage()\n//&&&staticSymbol&&&\t{\n//&&&staticSymbol&&&\t\treturn <%\n//&&&staticSymbol&&&=genPackage.getImportedPackageInterfaceName()\n//&&&staticSymbol&&&%>.eINSTANCE;\n//&&&staticSymbol&&&\t}\n//&&&staticSymbol&&&\n//&&&staticSymbol&&&<%\n}\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&} //<%\n//&&&staticSymbol&&&*%%storeSymbol%%*1\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&<%\ngenModel.emitSortedImports();\n//&&&staticSymbol&&&%>\n\n}", "private SourcecodePackage() {}", "void use();", "@AfterClass\n\tpublic static void tearDownAfterClass() throws Exception {\n\t\tydelseService = null;\n\t}", "public FeatureSynthesisMain() {\n super();\n }", "static void sm() {\n }" ]
[ "0.5903958", "0.5855794", "0.58345515", "0.5692693", "0.5651611", "0.56259835", "0.55659884", "0.5545366", "0.5536691", "0.5527489", "0.5527489", "0.549825", "0.5486443", "0.5382099", "0.53526133", "0.53475094", "0.5342462", "0.5327184", "0.5316245", "0.52936286", "0.5281972", "0.5274522", "0.52550435", "0.5250572", "0.52467114", "0.52405894", "0.5232863", "0.5225461", "0.5221", "0.5221", "0.5221", "0.5220615", "0.52199644", "0.5207844", "0.52073467", "0.520113", "0.51993597", "0.51957524", "0.51863456", "0.5170734", "0.5169351", "0.5169198", "0.51552397", "0.5144052", "0.51350254", "0.51293254", "0.5123518", "0.511953", "0.5100818", "0.50956", "0.50910103", "0.50910103", "0.5090641", "0.5079269", "0.50721693", "0.5063195", "0.5052297", "0.5052248", "0.5052248", "0.5052248", "0.5051776", "0.5051776", "0.50509644", "0.5047701", "0.5046131", "0.50440574", "0.5042574", "0.50415826", "0.503628", "0.5026793", "0.50259256", "0.5019802", "0.5016395", "0.50108814", "0.50108814", "0.50108814", "0.50096554", "0.5007", "0.50051296", "0.500178", "0.49987212", "0.4998297", "0.4998216", "0.4992413", "0.49914065", "0.49904358", "0.49858353", "0.4983386", "0.49725342", "0.49719778", "0.4969747", "0.49553272", "0.49540293", "0.49495032", "0.4946359", "0.49411047", "0.49406144", "0.49400884", "0.49393588", "0.49386874", "0.49348572" ]
0.0
-1
generate getter setters for all Employee members
@Override public int compareTo(Employee o) { // @TODO // compare employee by their salary, if salaries are equal, compare by age if (o instanceof Employee) { Employee emp = (Employee) o; int i = this.salary.compareTo(emp.salary); if (i == 0) { return this.age.compareTo(emp.age); }else { return i; } } return 0; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tpublic void getAllEmployee() {\n\t\t\n\t}", "public String getEmployee()\r\n/* 38: */ {\r\n/* 39:43 */ return this.employee;\r\n/* 40: */ }", "public Employee getEmployee() {\n return employee;\n }", "@Override\n\tpublic void ModifyEmployee() {\n\t\t\n\t}", "public void setEmployee(String employee)\r\n/* 43: */ {\r\n/* 44:47 */ this.employee = employee;\r\n/* 45: */ }", "public static void main(String[] args) {\n\t\t\n\t\tEmployee theEmployee = new Employee();\n\t\t\n//\t\twhat does it mean below setter? by this section we assign value to variables.\n\t\ttheEmployee.setId(1000);\n\t\ttheEmployee.setName(\"Ramesh\");\n\t\ttheEmployee.setPosition(\"Mangaer\");\n\t\ttheEmployee.setSalary(10000.88);\n//\t\tby thes getters we print the data.\n\t\tSystem.out.println(theEmployee.getId());\n\t\tSystem.out.println(theEmployee.getName());\n\t\tSystem.out.println(theEmployee.getPosition());\n\t\tSystem.out.println(theEmployee.getSalary());\n\t\tSystem.out.println(theEmployee.getClass());\n\t\n\t\tSystem.out.println(\"====================================\");\n\t\t\n\t\tEmployee theEmployee1 = new Employee();\n\t\t\n\t\ttheEmployee1.setId(2);\n\t\ttheEmployee1.setName(\"Rahim\");\n\t\ttheEmployee1.setPosition(\"Team leader\");\n\t\ttheEmployee1.setSalary(22.88);\n\t\t\n\t\tSystem.out.println(theEmployee1.getId());\n\t\tSystem.out.println(theEmployee1.getName());\n\t\tSystem.out.println(theEmployee1.getPosition());\n\t\tSystem.out.println(theEmployee1.getSalary());\n\t\tSystem.out.println(theEmployee1.getClass());\n\t\t\n\t\t\n\tSystem.out.println(\"============================\");\n\t\n\tEmployee theEmployee2 = new Employee();\n\t\n\ttheEmployee2.setId(9);\n\ttheEmployee2.setName(\"Ramin\");\n\ttheEmployee2.setPosition(\"Superwiser\");\n\ttheEmployee2.setSalary(15000.00);\n\t\n\tSystem.out.println(theEmployee2.getId());\n\tSystem.out.println(theEmployee2.getName());\n\tSystem.out.println(theEmployee2.getPosition());\n\tSystem.out.println(theEmployee2.getSalary());\n\tSystem.out.println(theEmployee2.getClass());\n\t\n\t\t\n\t}", "static void setPropertiesFromGetters(TableEntity entity, ClientLogger logger) {\n Class<?> myClass = entity.getClass();\n\n // Do nothing if the entity is actually a `TableEntity` rather than a subclass\n if (myClass == TableEntity.class) {\n return;\n }\n\n for (Method m : myClass.getMethods()) {\n // Skip any non-getter methods\n if (m.getName().length() < 3\n || TABLE_ENTITY_METHODS.contains(m.getName())\n || (!m.getName().startsWith(\"get\") && !m.getName().startsWith(\"is\"))\n || m.getParameterTypes().length != 0\n || void.class.equals(m.getReturnType())) {\n continue;\n }\n\n // A method starting with `is` is only a getter if it returns a boolean\n if (m.getName().startsWith(\"is\") && m.getReturnType() != Boolean.class\n && m.getReturnType() != boolean.class) {\n continue;\n }\n\n // Remove the `get` or `is` prefix to get the name of the property\n int prefixLength = m.getName().startsWith(\"is\") ? 2 : 3;\n String propName = m.getName().substring(prefixLength);\n\n try {\n // Invoke the getter and store the value in the properties map\n entity.getProperties().put(propName, m.invoke(entity));\n } catch (ReflectiveOperationException | IllegalArgumentException e) {\n logger.logThrowableAsWarning(new ReflectiveOperationException(String.format(\n \"Failed to get property '%s' on type '%s'\", propName, myClass.getName()), e));\n }\n }\n }", "public void setEmployeeID(int employeeID) { this.employeeID = employeeID; }", "public int getEmployeeID() { return employeeID; }", "@Generated(\"Speedment\")\npublic interface Employee extends Entity<Employee> {\n \n /**\n * This Field corresponds to the {@link Employee} field that can be obtained\n * using the {@link Employee#getId()} method.\n */\n public final static ComparableField<Employee, Short> ID = new ComparableFieldImpl<>(\"id\", Employee::getId, Employee::setId);\n /**\n * This Field corresponds to the {@link Employee} field that can be obtained\n * using the {@link Employee#getFirstname()} method.\n */\n public final static StringField<Employee> FIRSTNAME = new StringFieldImpl<>(\"firstname\", o -> o.getFirstname().orElse(null), Employee::setFirstname);\n /**\n * This Field corresponds to the {@link Employee} field that can be obtained\n * using the {@link Employee#getLastname()} method.\n */\n public final static StringField<Employee> LASTNAME = new StringFieldImpl<>(\"lastname\", o -> o.getLastname().orElse(null), Employee::setLastname);\n /**\n * This Field corresponds to the {@link Employee} field that can be obtained\n * using the {@link Employee#getBirthdate()} method.\n */\n public final static ComparableField<Employee, Date> BIRTHDATE = new ComparableFieldImpl<>(\"birthdate\", o -> o.getBirthdate().orElse(null), Employee::setBirthdate);\n \n /**\n * Returns the id of this Employee. The id field corresponds to the database\n * column db0.sql696688.employee.id.\n * \n * @return the id of this Employee\n */\n Short getId();\n \n /**\n * Returns the firstname of this Employee. The firstname field corresponds to\n * the database column db0.sql696688.employee.firstname.\n * \n * @return the firstname of this Employee\n */\n Optional<String> getFirstname();\n \n /**\n * Returns the lastname of this Employee. The lastname field corresponds to\n * the database column db0.sql696688.employee.lastname.\n * \n * @return the lastname of this Employee\n */\n Optional<String> getLastname();\n \n /**\n * Returns the birthdate of this Employee. The birthdate field corresponds to\n * the database column db0.sql696688.employee.birthdate.\n * \n * @return the birthdate of this Employee\n */\n Optional<Date> getBirthdate();\n \n /**\n * Sets the id of this Employee. The id field corresponds to the database\n * column db0.sql696688.employee.id.\n * \n * @param id to set of this Employee\n * @return this Employee instance\n */\n Employee setId(Short id);\n \n /**\n * Sets the firstname of this Employee. The firstname field corresponds to\n * the database column db0.sql696688.employee.firstname.\n * \n * @param firstname to set of this Employee\n * @return this Employee instance\n */\n Employee setFirstname(String firstname);\n \n /**\n * Sets the lastname of this Employee. The lastname field corresponds to the\n * database column db0.sql696688.employee.lastname.\n * \n * @param lastname to set of this Employee\n * @return this Employee instance\n */\n Employee setLastname(String lastname);\n \n /**\n * Sets the birthdate of this Employee. The birthdate field corresponds to\n * the database column db0.sql696688.employee.birthdate.\n * \n * @param birthdate to set of this Employee\n * @return this Employee instance\n */\n Employee setBirthdate(Date birthdate);\n \n /**\n * Creates and returns a {@link Stream} of all {@link Borrowed} Entities that\n * references this Entity by the foreign key field that can be obtained using\n * {@link Borrowed#getEmployeeid()}. The order of the Entities are undefined\n * and may change from time to time.\n * <p>\n * Using this method, you may \"walk the graph\" and jump directly between\n * referencing Entities without using {@code JOIN}s.<p> N.B. The current\n * implementation supports lazy-loading of the referencing Entities.\n * \n * @return a {@link Stream} of all {@link Borrowed} Entities that references\n * this Entity by the foreign key field that can be obtained using {@link\n * Borrowed#getEmployeeid()}\n */\n Stream<Borrowed> findBorrowedsByEmployeeid();\n \n /**\n * Creates and returns a <em>distinct</em> {@link Stream} of all {@link\n * Borrowed} Entities that references this Entity by a foreign key. The order\n * of the Entities are undefined and may change from time to time.\n * <p>\n * Note that the Stream is <em>distinct</em>, meaning that referencing\n * Entities will only appear once in the Stream, even though they may\n * reference this Entity by several columns.\n * <p>\n * Using this method, you may \"walk the graph\" and jump directly between\n * referencing Entities without using {@code JOIN}s.<p> N.B. The current\n * implementation supports lazy-loading of the referencing Entities.\n * \n * @return a <em>distinct</em> {@link Stream} of all {@link Borrowed}\n * Entities that references this Entity by a foreign key\n */\n Stream<Borrowed> findBorroweds();\n}", "@Override\r\n\tpublic List<Employee> getAllEmployee() {\n\t\treturn employees;\r\n\t}", "@Override\n\tpublic void updateEmployee() {\n\n\t}", "public String getEmployeeName();", "@Override\n\tpublic List<EmployeeBean> getAllEmployees() {\n\t\tLOGGER.info(\"starts getAllEmployees method\");\n\t\tLOGGER.info(\"Ends getAllEmployees method\");\n\t\t\n\t\treturn adminEmployeeDao.getAllEmployees();\n\t}", "@Override\n public void setEmployees() throws EmployeeCreationException {\n\n }", "@FameProperty(name = \"accessors\", derived = true)\n public Collection<TWithAccesses> getAccessors() {\n throw new UnsupportedOperationException(\"Not yet implemented!\"); \n }", "public List<Employee> getAllEmployees(){\n\t\tFaker faker = new Faker();\n\t\tList<Employee> employeeList = new ArrayList<Employee>();\n\t\tfor(int i=101; i<=110; i++) {\n\t\t\tEmployee myEmployee = new Employee();\n\t\t\tmyEmployee.setId(i);\n\t\t\tmyEmployee.setName(faker.name().fullName());\n\t\t\tmyEmployee.setMobile(faker.phoneNumber().cellPhone());\n\t\t\tmyEmployee.setAddress(faker.address().streetAddress());\n\t\t\tmyEmployee.setCompanyLogo(faker.company().logo());\n\t\t\temployeeList.add(myEmployee);\n\t\t}\n\t\treturn employeeList;\n\t}", "public String getEmployees(){\n return employees;\n }", "Employee setFirstname(String firstname);", "@Override\n\tpublic List<Employee> getAllEmployees() {\n\t\ttry {\n\t\t\tList<Employee> empList = new ArrayList<Employee>();\n\t\t\tList<Map<String, Object>> rows = template.queryForList(\"select * from employee\");\n\t\t\tfor(Map<?, ?> rowNum : rows) {\n\t\t\t\tEmployee emp = new Employee();\n\t\t\t\temp.setEmployeeId((Integer)rowNum.get(\"empid\"));\n\t\t\t\temp.setFirstName((String)rowNum.get(\"fname\"));\n\t\t\t\temp.setLastName((String)rowNum.get(\"lname\"));\n\t\t\t\temp.setEmail((String)rowNum.get(\"email\"));\n\t\t\t\temp.setDesignation((String)rowNum.get(\"desig\"));\n\t\t\t\temp.setLocation((String)rowNum.get(\"location\"));\n\t\t\t\temp.setSalary((Integer)rowNum.get(\"salary\"));\n\t\t\t\tempList.add(emp);\n\t\t\t}\n\t\t\treturn empList;\n\t\t} catch (DataAccessException excep) {\n\t\t\treturn null;\n\t\t}\n\t}", "@DataProvider(name = \"employee\")\n public Object[][] getEmployee() {\n return new Object[][] {{generateEmployee()}};\n }", "@Test\n\tpublic void serializePrivateFieldsWithoutAnyGetterSetter() throws JsonProcessingException\n\t{\n\t\t// We do not have setter method in POJO class so can not set any value.\n\t\tEmployee_PrivateFieldsWithoutAnyGetterSetterMethods employee_PrivateFieldsWithoutAnyGetterSetterMethods = \n\t\t\t\tnew Employee_PrivateFieldsWithoutAnyGetterSetterMethods();\n\t\tObjectMapper objectMapper = new ObjectMapper();\n\t\tString serializedJson = objectMapper.writerWithDefaultPrettyPrinter().writeValueAsString(employee_PrivateFieldsWithoutAnyGetterSetterMethods);\n\t\tSystem.out.println(serializedJson);\t\t\n\t}", "@Override\r\n\tpublic List<Employee> getAllEmployee() {\n\t\treturn employeeDao.getAllEmployee();\r\n\t}", "@Override\n protected PropertiesHandler<Person> getPropertiesHandler() {\n final PropertiesHandler<Address.Builder> addressHandler = new MappedPropertiesHandler<Address.Builder>() {\n @Override\n public Address.Builder getTarget() {\n return Address.builder();\n }\n }\n .map(\"street\", (Address.Builder t, String value) -> t.setStreet(value))\n .map(\"zip\", (Address.Builder t, String value) -> t.setZip(value))\n .map(\"city\", (Address.Builder t, String value) -> t.setCity(value));\n\n /*\n * Map Person to properties\n */\n final PropertiesHandler<Person> personHandler = new MappedPropertiesHandler<Person>() {\n @Override\n public Person getTarget() {\n return new Person();\n }\n }\n .map(\"first-name\", (Person p, String value) -> p.setFirstName(value))\n .map(\"last-name\", (Person p, String value) -> p.setLastName(value))\n .map(\"home-address\", addressHandler, (Person p, Address.Builder a) -> p.setHomeAddress(a.build()))\n .map(\"work-address\", addressHandler, (Person p, Address.Builder a) -> p.setWorkAddress(a.build()));\n\n return personHandler;\n }", "private Map getSetters(Object object) {\n Map result = new HashMap();\n\n Method[] metodos = object.getClass().getMethods();\n String nombre = null;\n String propiedad = null;\n\n for (int i = 0; i < metodos.length; i++) {\n nombre = metodos[i].getName();\n\n //Sólo nos interesan los \"setters\", siguiendo la especificacion JavaBean\n if (nombre.startsWith(\"set\") && (nombre.length() > 3)) {\n //Quitamos el prefijo \"set\"\n propiedad = nombre.substring(3, nombre.length());\n\n //ponemos la primera letra en minuscula\n propiedad = Character.toLowerCase(propiedad.charAt(0)) +\n propiedad.substring(1, propiedad.length());\n\n //Añadimos el setter con el nombre de la propiedad como key\n result.put(propiedad, metodos[i]);\n }\n }\n\n return result;\n }", "public List<Employee> getEmployees();", "public Empleado getEmpleado()\r\n/* 183: */ {\r\n/* 184:337 */ return this.empleado;\r\n/* 185: */ }", "public int getEmployeeID() {\r\n return employeeID;\r\n }", "@Override\r\n\tpublic List<Employee> findAllEMployees() {\n\t\tList<Employee> employees = new ArrayList<Employee>();\r\n\t\tString findData = \"select * from employee\";\r\n\r\n\t\ttry {\r\n\t\t\tStatement s = dataSource.getConnection().createStatement();\r\n\r\n\t\t\tResultSet set = s.executeQuery(findData);\r\n\r\n\t\t\twhile (set.next()) {\r\n\t\t\t\tString name = set.getString(1);\r\n\t\t\t\tint id = set.getInt(\"empId\");\r\n\t\t\t\tint sal = set.getInt(\"salary\");\r\n\t\t\t\tString tech = set.getString(\"technology\");\r\n\t\t\t\tEmployee employee = new Employee(id, sal, name, tech);\r\n\t\t\t\temployees.add(employee);\r\n\r\n\t\t\t}\r\n\r\n\t\t} catch (SQLException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\treturn employees;\r\n\r\n\t}", "@Override\n\tpublic List<Employee> getAllEmployee() {\n\t\tList<Employee> employee = new ArrayList<>();\n\t\tlogger.info(\"Getting all employee\");\n\t\ttry {\n\t\t\temployee = employeeDao.getAllEmployee();\n\t\t\tlogger.info(\"Getting all employee = {}\",employee.toString());\n\t\t} catch (Exception exception) {\n\t\t\tlogger.error(exception.getMessage());\n\t\t}\n\t\treturn employee;\n\t}", "public static EmployeeDTO valueOf(Employee employee){\n EmployeeDTO employeeDTO = new EmployeeDTO();\n BeanUtils.copyProperties(employee, employeeDTO);\n// employeeDto.setId( employee.getId() );\n// employeeDto.setFirstName( employee.getFirstName() );\n\n return employeeDTO;\n\n }", "public void setEmployees(int _employees){\n employees = _employees;\n }", "@Test\n\tpublic void testSettersAddress() {\n\t\tassertTrue(beanTester.testSetters());\n\t}", "@java.lang.Override\n public grpc.messages.Messages.EmployeeOrBuilder getEmployeeOrBuilder() {\n return getEmployee();\n }", "@java.lang.Override\n public grpc.messages.Messages.EmployeeOrBuilder getEmployeeOrBuilder() {\n return getEmployee();\n }", "@Override\n\tpublic List<Employee> getEmpleados() {\n\t\treturn repositorioEmployee.findAll();\n\t}", "protected void lookupSetters(final Map<String, Property> properties, final MethodHolder<?> clazz)\r\n {\r\n for (Method<?> method : clazz.getMethods())\r\n {\r\n // Exclude static methods\r\n \r\n if (method.isStatic())\r\n {\r\n continue;\r\n }\r\n \r\n // Get type\r\n \r\n List<Parameter> parameters = method.getParameters();\r\n \r\n if (parameters.size() != 1)\r\n {\r\n continue;\r\n }\r\n \r\n // Get name\r\n \r\n String propertyName = isSetter(method);\r\n \r\n if (propertyName == null)\r\n {\r\n continue;\r\n }\r\n \r\n // Exclude based on other criteria\r\n //\r\n // (explicitly set to null in case we encountered an imbalanced field/getter)\r\n \r\n String type = parameters.get(0).getType();\r\n \r\n Field<?> privateField = getPrivateField((FieldHolder<?>) clazz, propertyName);\r\n \r\n if (privateField != null && this.privateFieldConvention == null)\r\n {\r\n propertyName = privateField.getName();\r\n }\r\n \r\n // Already found via its getter?\r\n \r\n Property existingProperty = properties.get(propertyName);\r\n \r\n if (existingProperty instanceof ForgeProperty)\r\n {\r\n ForgeProperty existingForgeProperty = (ForgeProperty) existingProperty;\r\n \r\n // Beware covariant return types: always prefer the getter's type\r\n \r\n properties.put(\r\n propertyName,\r\n new ForgeProperty(propertyName, existingForgeProperty.getType(),\r\n existingForgeProperty.getReadMethod(), method, getPrivateField((FieldHolder<?>) clazz,\r\n propertyName)));\r\n continue;\r\n }\r\n \r\n // Explicitly excluded based on getter already?\r\n \r\n if ((existingProperty == null) && properties.containsKey(propertyName))\r\n {\r\n continue;\r\n }\r\n \r\n properties\r\n .put(propertyName,\r\n new ForgeProperty(propertyName, type, null, method, privateField));\r\n }\r\n }", "public static Map<Integer,Employee1> getEmployeeList(){\r\n\t return employees;\r\n\t \r\n }", "@Override\n\tpublic List<Employee> getAllEmployees() {\n\t\treturn employeeDao.getAllEmployees();\n\t}", "public grpc.messages.Messages.Employee.Builder getEmployeeBuilder() {\n \n onChanged();\n return getEmployeeFieldBuilder().getBuilder();\n }", "public grpc.messages.Messages.Employee.Builder getEmployeeBuilder() {\n \n onChanged();\n return getEmployeeFieldBuilder().getBuilder();\n }", "@Test\r\n\tpublic void testGettersSetters()\r\n\t{\r\n\t\tPerson p = new Person(42);\r\n\t\tp.setDisplayName(\"Fred\");\r\n\t\tassertEquals(\"Fred\", p.getFullname());\r\n\t\tp.setPassword(\"hunter2\");\r\n\t\tassertEquals(\"hunter2\", p.getPassword());\r\n\t\tassertEquals(42, p.getID());\r\n\t}", "public EmployeeSet()\n\t{\n\t\tnumOfEmployees = 0;\n\t\temployeeData = new Employee[10];\n\t}", "public int getEmployeePK() {\n return employeePK;\n}", "public List<EmployeeTO> getAllEmployees() {\n\t\t\r\n\t\treturn EmployeeService.getInstance().getAllEmployees();\r\n\t}", "@Override\n\tpublic List<Employee> getAllEmployees() {\n\t\t\n\t\tlog.debug(\"EmplyeeService.getAllEmployee() return list of employees\");\n\t\treturn repositary.findAll();\n\t}", "public String getSetter() {\n return \"set\" + getCapName();\n }", "public void setEmpleado(Empleado empleado)\r\n/* 188: */ {\r\n/* 189:347 */ this.empleado = empleado;\r\n/* 190: */ }", "public String getEmployeeName() {\n return employeeName;\n }", "@java.lang.Override\n public grpc.messages.Messages.Employee getEmployee() {\n return employee_ == null ? grpc.messages.Messages.Employee.getDefaultInstance() : employee_;\n }", "@java.lang.Override\n public grpc.messages.Messages.Employee getEmployee() {\n return employee_ == null ? grpc.messages.Messages.Employee.getDefaultInstance() : employee_;\n }", "public void getEmployee() {\r\n //what needs to be returned?\r\n }", "public java.util.List<andrewNamespace.xsdconfig.EmployeeDocument.Employee> getEmployeeList()\r\n {\r\n final class EmployeeList extends java.util.AbstractList<andrewNamespace.xsdconfig.EmployeeDocument.Employee>\r\n {\r\n @Override\r\n public andrewNamespace.xsdconfig.EmployeeDocument.Employee get(int i)\r\n { return ColleaguesImpl.this.getEmployeeArray(i); }\r\n \r\n @Override\r\n public andrewNamespace.xsdconfig.EmployeeDocument.Employee set(int i, andrewNamespace.xsdconfig.EmployeeDocument.Employee o)\r\n {\r\n andrewNamespace.xsdconfig.EmployeeDocument.Employee old = ColleaguesImpl.this.getEmployeeArray(i);\r\n ColleaguesImpl.this.setEmployeeArray(i, o);\r\n return old;\r\n }\r\n \r\n @Override\r\n public void add(int i, andrewNamespace.xsdconfig.EmployeeDocument.Employee o)\r\n { ColleaguesImpl.this.insertNewEmployee(i).set(o); }\r\n \r\n @Override\r\n public andrewNamespace.xsdconfig.EmployeeDocument.Employee remove(int i)\r\n {\r\n andrewNamespace.xsdconfig.EmployeeDocument.Employee old = ColleaguesImpl.this.getEmployeeArray(i);\r\n ColleaguesImpl.this.removeEmployee(i);\r\n return old;\r\n }\r\n \r\n @Override\r\n public int size()\r\n { return ColleaguesImpl.this.sizeOfEmployeeArray(); }\r\n \r\n }\r\n \r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n return new EmployeeList();\r\n }\r\n }", "@Override\n\tpublic List<Employee> getAllEmployee() {\n\t\treturn null;\n\t}", "@Override\r\n public String toString() {\r\n return \"Employee{\" + super.toString() + \", \" + \"employeeNumber=\" + employeeNumber + \", salary=\" + salary + '}';\r\n }", "public Empresa getEmpresa()\r\n/* 84: */ {\r\n/* 85:131 */ return this.empresa;\r\n/* 86: */ }", "public Map<String, Person> getEmployees() {\n return employees;\n }", "public jkt.hms.masters.business.MasEmployee getEmployee () {\n\t\treturn employee;\n\t}", "public List<Employee> getEmployees() {\n\n\t\tList<Employee> employees = new ArrayList<Employee>();\n\t\t\n\t\t/*Sample data begins\n\t\tfor (int i = 0; i < 10; i++) {\n\t\t\tEmployee employee = new Employee();\n\t\t\temployee.setEmail(\"[email protected]\");\n\t\t\temployee.setFirstName(\"Shiyong\");\n\t\t\temployee.setLastName(\"Lu\");\n\t\t\temployee.setAddress(\"123 Success Street\");\n\t\t\temployee.setCity(\"Stony Brook\");\n\t\t\temployee.setStartDate(\"2006-10-17\");\n\t\t\temployee.setState(\"NY\");\n\t\t\temployee.setZipCode(11790);\n\t\t\temployee.setTelephone(\"5166328959\");\n\t\t\temployee.setEmployeeID(\"631-413-5555\");\n\t\t\temployee.setHourlyRate(100);\n\t\t\temployees.add(employee);\n\t\t}\n\t\tSample data ends*/\n\t\ttry {\n\t\t\tClass.forName(\"com.mysql.jdbc.Driver\");\n\t\t\tConnection con = DriverManager.getConnection(\"jdbc:mysql://mysql3.cs.stonybrook.edu:3306/mwcoulter?useSSL=false\",\"mwcoulter\",\"111030721\");\n\t\t\tStatement st = con.createStatement();\n\t\t\tResultSet rs = st.executeQuery(\"SELECT P.*, E.StartDate, E.HourlyRate, E.Email, E.ID, L.* \"\n\t\t\t\t\t+ \"FROM Employee E, Person P, Location L\"\n\t\t\t\t\t+ \" WHERE P.SSN = E.SSN AND L.ZipCode = P.ZipCode\");\n\t\t\twhile(rs.next()) {\n\t\t\t\tEmployee employee = new Employee();\n\t\t\t\temployee.setEmail(rs.getString(\"Email\"));\n\t\t\t\temployee.setFirstName(rs.getString(\"FirstName\"));\n\t\t\t\temployee.setLastName(rs.getString(\"LastName\"));\n\t\t\t\temployee.setAddress(rs.getString(\"Address\"));\n\t\t\t\temployee.setCity(rs.getString(\"City\"));\n\t\t\t\temployee.setStartDate(String.valueOf(rs.getDate(\"StartDate\")));\n\t\t\t\temployee.setState(rs.getString(\"State\"));\n\t\t\t\temployee.setZipCode(rs.getInt(\"ZipCode\"));\n\t\t\t\temployee.setTelephone(String.valueOf(rs.getLong(\"Telephone\")));\n\t\t\t\temployee.setEmployeeID(String.valueOf(rs.getInt(\"SSN\")));\n\t\t\t\temployee.setHourlyRate(rs.getInt(\"HourlyRate\"));\n\t\t\t\temployees.add(employee);\n\t\t\t}\n\t\t} catch (Exception e) {\n\t\t\tSystem.out.println(e);\n\t\t}\n\t\t\n\t\treturn employees;\n\t}", "@Override\n\tpublic List<EmployeeBean> getEmployeeList() throws Exception {\n\t\treturn employeeDao.getEmployeeList();\n\t}", "protected EmployeeRepository getEmployeeRepository() {\r\n return this.employeeRepository;\r\n }", "@Override\r\n\tpublic List<Employee> getAllEmployeeList() throws Exception {\n\t\t\r\n\t\treturn (List<Employee>) employeeRepository.findAll();\r\n\t}", "@Override\n\tpublic void updateEmployee(Employee e) {\n\t\t\n\t}", "@Test\n\tpublic void testIndividualSettersAddress() {\n\t\tassertTrue(beanTester.testSetterForField(\"zipcode\"));\n\t}", "@Override\n\t@Transactional\n\tpublic List<Employee> getAllEmployees() {\n\t\treturn employeeDao.getAllEmployees();\n\t}", "public List<Employee> getAllEmployeeDetail() {\n\t\treturn dao.getAllEmployeeDetail();\n\t}", "public void setEmployeeId(long employeeId);", "List<Employee> allEmpInfo();", "public void setEmployees(ArrayList<Employee> employees) { \r\n this.employees = employees;\r\n }", "@Override\n\tpublic List<Employee> getAll() {\n\t\tList<Employee> list =null;\n\t\tEmployeeDAO employeeDAO = DAOFactory.getEmployeeDAO();\n\t\ttry {\n\t\t\tlist=employeeDAO.getAll();\n\t\t} catch (Exception e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t\treturn list;\n\t}", "public EmployeeLookup() {\r\n\t\tfill();\r\n\t\tinitialize();\r\n\t\t//AutoCompleteDecorator.decorate(el);\r\n\t}", "java.lang.String getEmployeeName();", "public static void main(String[] args) {\n\t\tEmployee oscar = new Employee(\"Oscar\", 01, \"Marketing\", \"Sales\");\n\t\tSystem.out.println(oscar);\n\t\t\n\t\tEmployee mary = new Employee(\"Mary\", 02, \"Accounting\", \"Finance\");\n\t\tSystem.out.println(\"\\n\" + mary);\n\t\t\n\t\tEmployee tom = new Employee(\"Tom\", 03, \"Front Desk\", \"Receptionist\");\n\t\tSystem.out.println(\"\\n\" + tom);\n\t\t\n\t\t//here shows how the getter methods are printed\n\t\tSystem.out.println(\"\\n\" + oscar.getName());\n\t\tSystem.out.println(oscar.getIdNumber());\n\t\tSystem.out.println(oscar.getDepartment());\n\t\tSystem.out.println(oscar.getPosition());\n\t\t\n\t\t//here shows how setter methods set newer values to the objects\n\t\toscar.setName(\"Daniel\");\n\t\toscar.setIdNumber(04);\n\t\toscar.setDepartment(\"Research\");\n\t\toscar.setPosition(\"Research Associate\");\n\t\tSystem.out.println(\"\\n\" + oscar);\n\t\t\n\t\t\n\t}", "Employee setLastname(String lastname);", "@Test\n\tpublic void testGettersAndSetters() {\n\t\tnew BeanTester().testBean(LeastCommonNodeInput.class, configuration);\n\n\t}", "@Test\n public void generateImplementationWithDuplicateSetter() throws Exception\n {\n Builder<Exercise> builder;\n builder = new ByteBuddy().subclass(Exercise.class);\n builder = builder.defineField(\"value\", int.class, Visibility.PRIVATE);\n builder = builder.method(named(\"setValue\")).intercept(FieldAccessor.ofField(\"value\"));\n builder = builder.method(named(\"getValue\")).intercept(FieldAccessor.ofField(\"value\"));\n builder = builder.method(named(\"setValue\")).intercept(FieldAccessor.ofField(\"value\"));\n Unloaded<Exercise> unloaded = builder.make();\n Exercise pojo = unloaded.load(Exercise.class.getClassLoader(), INJECTION).getLoaded().newInstance();\n pojo.setValue(42);\n assertEquals(42, pojo.getValue());\n }", "public int getEmployeeNumber() {\r\n return employeeNumber;\r\n }", "@Override\r\n\t\r\n\tpublic List<Employee> getAllDetails()\r\n\t{\r\n\t\t\r\n\t\tList<Employee> empList =hibernateTemplate.loadAll(Employee.class);\r\n\t\t\r\n\t\treturn empList;\r\n\t}", "public String setter() {\n\t\treturn prefix(\"set\");\n\t}", "private String getSetMethodName() {\n assert name != null;\n return \"set\" + upperFirstChar(name);\n }", "public List<EmployeeDetails> getEmployeeDetails();", "@Override\npublic String toString()\n{\n Employee emp = new Employee();\n \n StringBuilder sb = new StringBuilder();\n sb.append(\"Employee{\");\n sb.append(\"Name=\");\n sb.append(emp.getName());\n sb.append(\",Salary complement=\");\n sb.append(emp.getSalary_complement());\n sb.append(\"}\");\n\n return sb.toString();\n}", "@Override\r\n\tpublic List<Employee> getdetails() {\n\t\treturn empdao.findAll();\r\n\t}", "@Override\n\tpublic void createEmployee(Employee e) {\n\t\t\n\t}", "public Value makeSetter() {\n Value r = new Value(this);\n r.setters = object_labels;\n r.object_labels = null;\n return canonicalize(r);\n }", "private static void LessonComplexProperties() {\n EntityType emailWorkType = new EntityType(\"Work\");\n emailWorkType.setEntityTypeId(1);\n\n //instance of an object using constructor sending email in\n Email myEmail = new Email(\"[email protected]\");\n //setting email type on the Email object that is connected to EntityType Object through an instance\n myEmail.setEmailType(emailWorkType);\n\n //myEmail.getEmailType().getEntityTypeName() object within and object accessed with dot notation\n System.out.println(myEmail.getEmailAddress() + \" Type: \" + myEmail.getEmailType().getEntityTypeName() +\n myEmail.getEmailType().getEntityTypeId());\n\n //collection/list of complex(nested) objects as a property\n Employee myEmployee = new Employee();\n //Employee inherits from Person which has getEmails which sends back a List\n //then you use .add to add more emails to that List and create new Email object in that list\n myEmployee.getEmails().add(new Email(\"[email protected]\"));\n myEmployee.getEmails().add(new Email(\"[email protected]\"));\n myEmployee.getEmails().add(new Email(\"[email protected]\"));\n\n //for each statement reads email with in myEmployee object then list using getEmails\n for(Email email : myEmployee.getEmails()) {\n System.out.println(email.getEmailAddress());\n }\n\n }", "@Test\n\tpublic void testGettersAddress() {\n\t\tassertTrue(beanTester.testGetters());\n\t}", "public com.example.nettyserver.protobuf.Employee.EmployeeInfo.Builder getEmployeelistBuilder() {\n \n onChanged();\n return getEmployeelistFieldBuilder().getBuilder();\n }", "public Employee(){\n this.employeeName = new String();\n this.employeeSalary = null;\n this.employeeProjectList = new ArrayList<String>();\n this.employeeDepartmentLead = new String();\n }", "@Override\n\tprotected Employee factoryMethod() {\n\t\treturn new Developer();\n\t}", "@Before\n public void setUp() {\n e1 = new Employee(\"Pepper Potts\", 16.0, 152);\n e2 = new Employee(\"Nancy Clementine\", 22.0, 140);\n\n }", "public HashMap<Integer, Employee> viewAllEmployee() {\r\n\t\treturn employee1;\r\n\t}", "@Override\r\n\tpublic String toString() {\r\n\t\treturn \"Employee [id=\" + id + \", name=\" + name + \", salary=\" + salary + \", designation=\" + designation\r\n\t\t\t\t+ \", department=\" + department + \", address=\" + address + \"]\";\r\n\t}", "@Override\n @Transactional\n public List<Employee> getlistEmployee() {\n \tList<Employee> employees = entityManager.createQuery(\"SELECT e FROM Employee e\", Employee.class).getResultList();\n \tfor(Employee p : employees)\n \t\tLOGGER.info(\"employee list::\" + p);\n \treturn employees;\n }", "public com.example.nettyserver.protobuf.Employee.EmployeeInfoOrBuilder getEmployeelistOrBuilder() {\n return getEmployeelist();\n }", "public static Map<String, Method> getNonNullSetters(Object bean)\n {\n if (!bean.equals(currentObject))\n {\n generateMaps(bean);\n }\n return setter_map;\n }", "@Override\r\n\tpublic List<Employe> getEmployes() {\n\t\treturn dao.getEmployes();\r\n\t}", "public String toString()\n\t//return employee values\n\t{\n\t\treturn \"Id \" + id + \" Start date \" + start + \" Salary \" + salary + super.toString() + \" Job Title \" + jobTitle;\n\t}", "@Override\r\n\tpublic List<EmployeeBean> getAllData() {\n\r\n\t\tEntityManager manager = entityManagerFactory.createEntityManager();\r\n\r\n\t\tString query = \"from EmployeeBean\";\r\n\r\n\t\tjavax.persistence.Query query2 = manager.createQuery(query);\r\n\r\n\t\tList<EmployeeBean> list = query2.getResultList();\r\n\t\tif (list != null) {\r\n\t\t\treturn list;\r\n\t\t} else {\r\n\t\t\treturn null;\r\n\t\t}\r\n\t}", "@Override\n public List<Employee> getAllEmployees() {\n return null;\n }", "public int getEmployeeId();" ]
[ "0.6179755", "0.6175282", "0.6070518", "0.6044905", "0.59557456", "0.58305365", "0.5814516", "0.5638532", "0.5609106", "0.55681133", "0.5561301", "0.555909", "0.55508935", "0.5550102", "0.55248564", "0.5495764", "0.5493144", "0.5489755", "0.5485306", "0.54642236", "0.54501885", "0.544775", "0.5442597", "0.5441865", "0.5405414", "0.53996503", "0.53697133", "0.5342691", "0.53284115", "0.53126603", "0.5309129", "0.5304315", "0.5303139", "0.5296344", "0.5296344", "0.52953273", "0.5289775", "0.5288855", "0.52867854", "0.5269184", "0.5269184", "0.52436", "0.52393407", "0.5233483", "0.52228457", "0.522241", "0.52215385", "0.5221522", "0.52186817", "0.52022827", "0.52022827", "0.5200536", "0.5195188", "0.51948565", "0.5184707", "0.5179883", "0.5171412", "0.51565933", "0.5155491", "0.51546913", "0.5134962", "0.51272154", "0.5126115", "0.51181793", "0.5117353", "0.5114416", "0.51123303", "0.5107569", "0.51028675", "0.5095971", "0.5092125", "0.50920147", "0.5091625", "0.5079146", "0.5067345", "0.50651425", "0.5063438", "0.5062967", "0.5061497", "0.50592905", "0.50498855", "0.5035111", "0.5034074", "0.5024507", "0.50135094", "0.500881", "0.5008283", "0.50057626", "0.5005582", "0.50021875", "0.49986005", "0.49965787", "0.49958256", "0.49949652", "0.49911702", "0.4989287", "0.49889058", "0.49861854", "0.49790442", "0.49739823", "0.4968558" ]
0.0
-1
BeanFactory ac = new ClassPathXmlApplicationContext("bean.xml"); ApplicationContext ac = new ClassPathXmlApplicationContext("bean.xml"); IAccountDao accountDao = (IAccountDao) ac.getBean("accountDao"); accountDao.saveAccount();
public void saveAccount() { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test\n public void saveAccount(){\n ApplicationContext ac = new AnnotationConfigApplicationContext(SpringConfiguration.class);\n\n AccountService as = ac.getBean(\"accountService\", AccountService.class);\n Account account = new Account();\n account.setName(\"zlsg\");\n account.setMoney(10000.00f);\n as.saveAccount(account);\n }", "@Test\n public void updateAccount(){\n ApplicationContext ac = new AnnotationConfigApplicationContext(SpringConfiguration.class);\n\n AccountService as = ac.getBean(\"accountService\", AccountService.class);\n Account account = as.findAccountById(2);\n account.setMoney(123456f);\n as.updateAccount(account);\n\n }", "@Test\n public void findOne(){\n ApplicationContext ac = new AnnotationConfigApplicationContext(SpringConfiguration.class);\n\n AccountService as = ac.getBean(\"accountService\", AccountService.class);\n Account account = as.findAccountById(1);\n System.out.println(account);\n }", "@Test\n public void testOrders(){\n ClassPathXmlApplicationContext context=\n new ClassPathXmlApplicationContext(\"bean4.xml\");\n Orders orders = context.getBean(\"orders\", Orders.class);\n System.out.println(\"第四步 得到bean实例\");\n System.out.println(orders);\n// orders.initMethod();\n context.close();\n }", "public static void main(String[] args) throws Exception {\n\t\tApplicationContext ap = new ClassPathXmlApplicationContext(\"Resource/Spring.xml\");\n\t\tDaoClass dc=(DaoClass)ap.getBean(\"sdo\");\n\tDao a = new Dao();\n\t\tdc.save(a);\n\t\t\n\t}", "@Test\n public void deleteAccount(){\n ApplicationContext ac = new AnnotationConfigApplicationContext(SpringConfiguration.class);\n\n AccountService as = ac.getBean(\"accountService\", AccountService.class);\n as.deletdAccount(3);\n }", "public static void main(String[] args) {\n\t\t\n\t\tApplicationContext appContext = \n\t \t new ClassPathXmlApplicationContext(\"applicationContext.xml\");\n\t \t\n\t ElectronicDao dao = (ElectronicDao)appContext.getBean(\"d\");\n\t/*\tResource r=new ClassPathResource(\"applicationContext.xml\"); \n\t BeanFactory factory=new XmlBeanFactory(r); \n\t \n\t ElectronicDao dao=(ElectronicDao)factory.getBean(\"d\"); */\n\t \n\t Electronic e= new Electronic(115,\"vasdasra3sdun\",\"asda3s\"); \n\n\t System.out.println(\"Hello1\");\n\t dao.saveElectronic(e); \n\t System.out.println(\"Hello2\");\n\t}", "public static void main(String[] args) throws ClassNotFoundException, SQLException {\n\tApplicationContext context=new ClassPathXmlApplicationContext(\"beans.xml\");\n\tStudentDAO studentDao=context.getBean(\"studentDAO\",StudentDAO.class);\n\tstudentDao.selectAllRows(); \n\t((ClassPathXmlApplicationContext)context).close();\n\n}", "public static void main(String[] args) {\n ApplicationContext ctx = new ClassPathXmlApplicationContext(\"beans-cp.xml\");\n \n SpringJdbc springJdbc=ctx.getBean(SpringJdbc.class);\n springJdbc.actionMethod();\n \n //Lectura de Bean \n //OrganizationDao organizationDao = (OrganizationDao) ctx.getBean(\"organizationDao\");\n \n ((ClassPathXmlApplicationContext) ctx).close();\n }", "public static void main(String[] args) {\n\t\t\r\n\t\tIAccountService accountService = (IAccountService) BeanFactory.getBean(\"ACCOUNTSERVICE\");\r\n//\t\tIAccountService accountService2 = (IAccountService) BeanFactory.getBean(\"ACCOUNTSERVICE\");\r\n//\t\tSystem.out.println(accountService);\r\n//\t\tSystem.out.println(accountService2);\r\n\t\t\r\n\t\tfor(int i = 0;i<5;i++) {\r\n\t\t\tIAccountService aa = (IAccountService) BeanFactory.getBean(\"ACCOUNTSERVICE\");\r\n\t\t\tSystem.out.println(aa);\r\n\t\t}\r\n\t\taccountService.save();\r\n\t}", "@Test\n public void test() {\n ApplicationContext applicationContext = new AnnotationConfigApplicationContext(AppConfig.class);\n AccountService accountService = applicationContext.getBean(AccountService.class);\n\n accountService.transferBalance(1, 2, 100);\n }", "public static void main(String[] args) {\n ApplicationContext context =new ClassPathXmlApplicationContext(\"spring.xml\");\n\t \n\t\tService ser= context.getBean(Service.class);\n\t\tSystem.out.println(ser.getAccountID());\n\t}", "public interface BeanAutowired {\n}", "@Before\n public void setUp() {\n this.context = new AnnotationConfigApplicationContext(\"com.fxyh.spring.config\");\n// this.context = new ClassPathXmlApplicationContext(\"classpath*:applicationContext-bean.xml\");\n this.user = this.context.getBean(User.class);\n this.user2 = this.context.getBean(User.class);\n this.department = this.context.getBean(Department.class);\n this.userService = (UserService) this.context.getBean(\"userService\");\n }", "@Test\n public void testNotNull(){\n\n AccountService accountService = applicationContext.getBean(AccountService.class);\n assertNotNull(accountService);\n assertNotNull(((JdbcAccountService)accountService).getAccountRepsotiry());\n assertNotNull(((JdbcAccountRepository)((JdbcAccountService)accountService).getAccountRepsotiry()).getDataSource());\n\n\n }", "public static void main(String[] args) {\r\n\t\tAnnotationConfigApplicationContext appContext = new AnnotationConfigApplicationContext(ApplicationConfig.class);\r\n appContext.scan(\"com.capgemini.beans.Employee\");\r\n // appContext.refresh();\r\n \r\n\t\t\r\n\t\t EntityManagerFactory factory =\r\n\t\t Persistence.createEntityManagerFactory(\"JPA-PU\"); EntityManager em =\r\n\t\t factory.createEntityManager(); em.getTransaction().begin();\r\n\t\t //begin the operations.\r\n\t\t\r\n \r\n\t\tEmployee emp= (Employee) appContext.getBean(Employee.class);\r\n\t\t emp.setId(101);\r\n\t\t emp.setName(\"priya\");\r\n\t\t emp.getId();\r\n\t\t emp.getName();\r\n\t\t em.persist(emp); \r\n\t\t em.getTransaction().commit();\r\n\t\t \r\n\t\t \r\n\t\t \r\n\t\t \r\n\t\t\r\n\t}", "private static BeanFactory getBeanFactory() {\n\t\tBeanFactory factory = new ClassPathXmlApplicationContext(\"withauto/beans.xml\");\n\t\treturn factory;\n\t}", "public static void main(String[] args) {\r\n\tApplicationContext context = new AnnotationConfigApplicationContext(AppConfig.class);\r\nBankAccountController bankAccountController = context.getBean(\"bankAccountController\", BankAccountController.class);\r\nSystem.out.println(bankAccountController.getBalance(2223));\r\n\r\n\t\r\n\t\r\n\t\r\n\t\r\n\t\r\n\t\r\n\t\r\n}", "public static void main(String[] args) {\n\n\n\n\n\n ClassPathXmlApplicationContext contexto=new ClassPathXmlApplicationContext(\"applicationContext3.xml\");\n \n \n\n Empleados Maria=contexto.getBean(\"secretarioEmpleado2\",Empleados.class);\n\n \n \n \n //System.out.println(\"Tareas del director: \"+Maria.getTareas());\n System.out.println(\"Informes del director: \"+Maria.getInformes());\n //System.out.println(\"El correo es: \"+Maria.getEmail());\n //System.out.println(\"El nombre de la empresa es: \"+Maria.getNombreEmpresa());\n \n\n contexto.close();\n\n\n \n }", "public static void main(String[] args) {\n\t\tAnnotationConfigApplicationContext context = new AnnotationConfigApplicationContext(DemoConfig.class);\n\t\t\n\t\t//get bean\n\t\tAccountDAO theAccountDAO = context.getBean(\"accountDAO\", AccountDAO.class);\n\t\t\n\t\t\n\t\t//get bean\n\t\tMembershipDAO theMembership = context.getBean(\"membershipDAO\", MembershipDAO.class);\n\t\t\n\t\t//call method\n\t\tAccount theAccount = new Account();\n\t\ttheAccountDAO.addAccount(theAccount,true);\n\t\ttheAccountDAO.DoHomeWork();\n\t\t\n\t\t//call setter/getter method\n\t\ttheAccountDAO.setName(\"Monay\");\n\t\ttheAccountDAO.setServiceCode(\"foo\");\n\t\ttheAccountDAO.getName();\n\t\ttheAccountDAO.getServiceCode();\n\t\t\n\t\t//call method\n\t\ttheMembership.addAccount();\n\t\t\n\t\tSystem.out.println();\n\t\t\n\t\tcontext.close();\n\t\t\n\t\t\n\t}", "public interface AccountDao {\n\n /**\n * Retrieve a specific bank account by id\n *\n * @param id the account id to retrieve\n * @return Account object representing the bank account\n */\n Account getAccount(int id);\n\n /**\n * Retrieve all accounts for a given customer\n *\n * @param customerId the customer id to lookup\n * @return list of accounts belonging to the given customer\n */\n List<Account> getAccountsForCustomerId(int customerId);\n\n /**\n * Add a new account to the data source\n *\n * Note that the account id will be automatically generated\n *\n * @param account the account information to store\n * @return generated account id\n */\n int createAccount(Account account);\n\n /**\n * Update stored information for a given account\n *\n * @param account the account to update\n */\n void updateAccount(Account account);\n}", "public interface AccountService extends BaseDao<Account>{\n}", "public interface LoginDao {\n\n int login(LoginBean loginBean);\n}", "public static void main(String[] args) {\n\t\tApplicationContext applicationContext = new ClassPathXmlApplicationContext(\r\n\t\t\t\t\"applicationContext.xml\");\r\n\t\tPersonDao dao = applicationContext.getBean(\"simpleHibernateDao\",\r\n\t\t\t\tPersonDao.class);\r\n\r\n\t\tPerson person = new Person();\r\n\t\tperson.setAge(18);\r\n\t\tperson.setFirstname(\"Jimmy\");\r\n\t\tperson.setFirstname(\"He\");\r\n\r\n\t\tString personId = dao.addPerson(person);\r\n\t\t\r\n\t\tSystem.out.println(\"personId:\" + personId);\r\n\t\tSystem.out.println(dao.getPersons());\r\n\t\tSystem.out.println(dao.getPersonById(personId));\r\n\r\n\t\t\r\n\t\t\r\n\t}", "public static void testExampleBean(){\n ApplicationContext context = new ClassPathXmlApplicationContext(\"applicationContext.xml\");\n //2. get TestService instance from container\n ExampleBean exampleBean = context.getBean(ExampleBean.class);\n exampleBean.outPutInfo();\n }", "public static void main(String[] args) {\n\n ApplicationContext context = new ClassPathXmlApplicationContext(\"applicationContext_work.xml\");\n SqlSessionFactory c = context.getBean(\"C\", SqlSessionFactory.class);\n System.out.println(c);\n\n\n }", "@SuppressWarnings(\"resource\")\r\n\tpublic static void main(String[] args) throws ObjectIsexistException {\n\t\tClassPathXmlApplicationContext context = new ClassPathXmlApplicationContext(\"EmployeeAd.xml\");\r\n\t\t\r\n\t\tEmployeeAdDao employeeAdDao=context.getBean(EmployeeAdDao.class);\r\n\t\t\r\n\t\tAddress adress=new Address(14,\"678 Flower Dr\", \"Boomingto\", \"KH\", \"89709\");\r\n\t\t\r\n\t\tEmployee emp=new Employee(14,\"Keven-1\",\"Oliver-1\",88880,adress);\r\n\t\t\r\n\t\t\r\n\t\t//employeeAdDao.save(emp);\r\n\t\t//employeeAdDao.saveEmpAddress(emp);\r\n\t\t//employeeAdDao.saveEmp(emp);\r\n\t\t\r\n\t List<Object[]> elist=\temployeeAdDao.getAlls();\r\n\t \r\n\t \r\n\t int i=0;\r\n\t for(Object[] e : elist) {\r\n\t\t //System.out.println(\"---\"+e.equals(\"Address\"));\r\n\t\t System.out.println(e[0].toString()+\" \"+e[1].toString()+\" \"+e[2].toString()+\" \"+e[3].toString());\r\n\t }\r\n\t System.out.println(\"-------\\n\");\r\n\t \r\n\t for(Object[] row : elist){\r\n\t\t\tEmployee empd = new Employee();\r\n\t\t\t//i++;\r\n\t\t\tempd.setId(Integer.parseInt(row[0].toString()));\r\n\t\t\tempd.setFname(row[1].toString());\r\n\t\t\tempd.setLname(row[2].toString());\r\n\t\t\tempd.setSalary(Integer.parseInt(row[3].toString()));\r\n\t\t\tSystem.out.println(empd.getLname().toString());\r\n\t\t}\r\n\t \r\n\t}", "public interface AccountDao {\n\n /**\n * Get one account with accountNumber\n *\n * @param accountNumber unique number for account\n * @return Account or null\n */\n Account getAccount(Integer accountNumber);\n\n /**\n * Get one account with accountNumber\n *\n * @param accountNumber unique number for account\n * @param configuration {@link Configuration} for executing in DB-transaction\n * @return Account or null\n */\n Account getAccount(Integer accountNumber, Configuration configuration);\n\n /**\n * Get all accounts for user with login\n *\n * @param login unique String key for user\n * @return List of Account or empty List\n */\n List<Account> getAccounts(String login);\n\n /**\n * Update account\n *\n * @param account new data to Account\n * @param configuration {@link Configuration} for executing in DB-transaction\n * @return new updated Account\n */\n Account updateAccount(Account account, Configuration configuration);\n\n}", "public static void main(String[] args) {\n\t\tApplicationContext context = new ClassPathXmlApplicationContext(\"com/learnspring/helloworld/dao/beans.xml\");\n\t\t\n\t\t//Logger logger= (Logger) context.getBean(\"logger\");\n\t\tOffersDAO dao= (OffersDAO) context.getBean(\"offersDao\");\t\n\t\tList<Offer> list =new ArrayList<Offer>();\n\t\ttry{\n\t\t\t/*\n\t\t\t\n\t\t\tOffer offer=dao.getOffer(1);\n\t\t\t\n\t\t\tSystem.out.println(offer);*/\n\t\t\t\n\t\t\t//int deletedRows= dao.delete(1);\n\t\t\t\n\t\t\t//dao.create(new Offer(\"Dilip\", \"[email protected]\", \"Dilip Text \"));\n\t\t\t//dao.create(new Offer(\"Dilip1\", \"[email protected]\", \"Dilip Text1 \"));\n\t\t\t//Offer offer = new Offer(2, \"MikeUpdated\", \"emailMikeUpdated\", \"textMikeUpdated\");\n\t\t\t//dao.update(offer);\n\t\t\t\n\t\t\t//System.out.println(deletedRows);\n\t\t\t\n\t\t\tList<Offer> list2=new ArrayList<Offer>();\n\t\t\t\t\tOffer offer=new Offer(3,\"Dilip4\", \"[email protected]\", \"Dilip Text \");\n\t\t\tOffer offer2=new Offer(2, \"Dilip5\", \"[email protected]\", \"Dilip Text1 \");\n\t\t\t\n\t\t\tlist2.add(offer);\n\t\t\tlist2.add(offer2);\n\t\t\t\n\t\t\tint a[] = dao.createList(list2);\n\t\t\tSystem.out.println(a.length);\n\t\t\t\n\t\t\tlist = dao.getOffers();\n\t\t\tSystem.out.println(\"list :\"+list);\n\t\t\t\n\t\t}catch (DataAccessException e){\n\t\t\tSystem.out.println(\"Excepton :\"+e.getMessage());\n\t\t}\n\t\t\n\t\t\n\t\t//logger.consleWrite();\n\t\t//logger.fileWrite();\n\t\t//robot.speak();\n\t\t//System.out.println(\"List of offers : \" + );\n\t\t\n\t\t\n\t\t((ClassPathXmlApplicationContext) context).close();\n\t\t\n\t}", "public interface IUserbookDao {\r\n public void saveUserbook(UserbookEntity userbookEntity) throws SQLException;\r\n\r\n public void delUserbook(UserbookEntity userbookEntity) throws SQLException;\r\n\r\n public void editUserbook(UserbookEntity userbookEntity) throws SQLException;\r\n\r\n public UserbookEntity getUserbookById(int id) throws SQLException;\r\n\r\n public boolean isExists(int id) throws SQLException;\r\n\r\n public void setSessionFactory(SessionFactory sessionFactory)throws SQLException;\r\n}", "public interface UserAccountService {\n\n\tpublic final static String BEAN_ID = \"userAccountService\";\n\n\tpublic UserAccount findById(ServiceContext ctx, Long id) throws UserAccountNotFoundException;\n\n\tpublic List<UserAccount> findAll(ServiceContext ctx);\n\n\tpublic UserAccount save(ServiceContext ctx, UserAccount entity);\n\n\tpublic void delete(ServiceContext ctx, UserAccount entity);\n\n}", "public static void main(String[] args) {\n\t\tClassPathXmlApplicationContext contexto= new ClassPathXmlApplicationContext(\"applicationContext.xml\");\r\n\t\t \r\n\t\tdirectorEmpleado Juan=contexto.getBean(\"miEmpleado\",directorEmpleado.class);\r\n\t\tSystem.out.println(Juan.getTareas());\r\n\t\tSystem.out.println(Juan.getInforme());\r\n\t\tSystem.out.println(Juan.getEmail());\r\n\t\tSystem.out.println(Juan.getNombreEmpresa());\r\n\t\t\r\n\t\t/*secretarioEmpleado Maria=contexto.getBean(\"miSecretarioEmpleado\",secretarioEmpleado.class);\r\n\t\tSystem.out.println(Maria.getTareas());\r\n\t\tSystem.out.println(Maria.getInforme());\r\n\t\tSystem.out.println(\"Email= \"+Maria.getEmail());\r\n\t\tSystem.out.println(\"Nombre Empresa= \"+Maria.getNombreEmpresa());*/\r\n\t\t\r\n\t\tcontexto.close();\r\n\t}", "public static void main(String args[]) {\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t\n\t\tAnnotationConfigApplicationContext ctx=new AnnotationConfigApplicationContext();\n\t\tctx.scan(\"com.niit.*\");\n\t\tctx.refresh();\n\t\tOrderItems cat=(OrderItems)ctx.getBean(\"orderItems\");\n\t\tOrderItemsDao catDao=(OrderItemsDao)ctx.getBean(\"orderItemsDao\");\n\t\tOrder ord=(Order)ctx.getBean(\"order\");\n\t\tOrderDao ordDao=(OrderDao)ctx.getBean(\"orderDao\");\n\t\t\n\t\tcat.setProductId(\"c101\");\n\t\tcat.setOrderItemsId(\"orderItems1\");\n\t\tord=ordDao.getOrder(\"c101\");\n\t\tcat.setOrder(ord);\n\n\t\tif(catDao.saveorupdate(cat)==true)\n\t\t{\n\t\t\tSystem.out.println(\"orderItems saved\");\n\t\t}\n\t\telse\n\t\t{\n\t\t\tSystem.out.println(\"orderItems not saved\");\n\t\t}\n\t\t\n\t\tcat.setProductId(\"c102\");\n\t\tcat.setOrderItemsId(\"orderItems2\");\n\t\tord=ordDao.getOrder(\"c102\");\n\t\tcat.setOrder(ord);\n\t\tif(catDao.saveorupdate(cat)==true)\n\t\t{\n\t\t\tSystem.out.println(\"orderItems saved\");\n\t\t}\n\t\telse\n\t\t{\n\t\t\tSystem.out.println(\"orderItems not saved\");\n\t\t}\n\t\t\n\t\tcat.setProductId(\"c103\");\n\t\tcat.setOrderItemsId(\"orderItems3\");\n\t\tord=ordDao.getOrder(\"c103\");\n\t\tcat.setOrder(ord);\n\t\tif(catDao.saveorupdate(cat)==true)\n\t\t{\n\t\t\tSystem.out.println(\"orderItems saved\");\n\t\t}\n\t\telse\n\t\t{\n\t\t\tSystem.out.println(\"orderItems not saved\");\n\t\t}\n\t\t\n\t\tcat=catDao.getOrderItems(\"orderItems1\");\n\t\tif(catDao.delete(cat)==true)\n\t\t{\n\t\t\tSystem.out.println(\"orderItems deleted\");\n\t\t}\n\t\telse\n\t\t{\n\t\t\tSystem.out.println(\"orderItems not deleted\");\n\t\t}\n\t\t\n\t\tcat=catDao.getOrderItems(\"c102\");\n\t\tif(cat==null)\n\t\t{\n\t\t\tSystem.out.println(\"orderItems not found\");\n\t\t}\n\t\telse\n\t\t{\n\t\t\tSystem.out.println(cat.getProductId());\n\t\t\tSystem.out.println(cat.getOrderItemsId());\n\t\t}\n\t\tList<OrderItems> catlist=catDao.list();\n\t\tif(catlist==null||catlist.isEmpty())\n\t\t{\n\t\t\tSystem.out.println(\"orderItems list empty\");\n\t\t}\n\t\telse\n\t\t{\n\t\t\tfor(OrderItems c:catlist)\n\t\t\t{\n\t\t\t\tSystem.out.println(c.getProductId());\n\t\t\t\tSystem.out.println(c.getOrderItemsId());\n\t\t\t}\n\t\t}\n\t}", "public static void main(String args[]) {\n\r\n\t\r\n\tApplicationContext ac = new ClassPathXmlApplicationContext(\"com/springcore/annotations/anootationconfig.xml\");\r\n\t \r\n Employee emp = ac.getBean(\"myemployee\", Employee.class);\r\n System.out.println(emp.toString());\r\n\t}", "@Before\n public void init() throws IOException {\n ApplicationContext context = new ClassPathXmlApplicationContext(\"config/applicationContext.xml\");\n //this.test();\n bookMapper = context.getBean(BookMapper.class);\n }", "public static void main(String[] args) {\n\t\tApplicationContext objctx = new ClassPathXmlApplicationContext(\"context.xml\");\n\t\tAdminService objService = (AdminService)objctx.getBean(\"adminService\");\n\t\tSystem.out.println(objService.saveStudents(10, \"prakash\", \"chennai\", 12500.50));\n\t\t\n\n\t}", "public static void main(String[] args) {\n ConfigurableApplicationContext ctx = new ClassPathXmlApplicationContext(\"config.xml\");\n // ctx.start();\n Database d =ctx.getBean(\"mysql\",Database.class);\n System.out.println(\"name --->\" + d.getName() + \" port-->\" + d.getPort());\n d.connect();\n // d.getInteger();\n // d.throwException();\n // d.checkdata(\"richa\");\n // d.getIntdata(200);\n // Dummy dummy = ctx.getBean(\"dummy\", Dummy.class);\n // dummy.display();\n // ctx.stop();\n /* Dummytest dummytest=ctx.getBean(\"dummyTest\",Dummytest.class);\nSystem.out.print(dummytest);\n PersonalisedService personalisedService=ctx.getBean(\"personalisedService\",PersonalisedService.class);\n System.out.println(personalisedService);\n System.out.println(personalisedService.employee.getCity());\n*/\n\n }", "public interface InmunizacionesDAO {\n\n public void insertInmunizacion(Context context, InmunizacionesBean inmunizacionesBean) ;\n public ArrayList<InmunizacionesBean> getAllInmunizacion(Context context);\n}", "@Test\n public void testBeanFactoryCreateBean() {\n ClassPathResource resource = new ClassPathResource(\"spring-bean.xml\");\n XmlBeanFactory factory = new XmlBeanFactory(resource);\n //\n System.out.println(\"begin get bean.\");\n factory.getBean(\"bean\");\n System.out.println(\"end get bean.\");\n }", "public static void main(String[] args) throws LowBalanceException {\n\tApplicationContext context = new AnnotationConfigApplicationContext(AppConfig.class);\r\n\tDbUtil dbUtil = context.getBean(\"dbUtil\", DbUtil.class);\r\n\tdbUtil.getConnection();\r\n\tBankAccountController bankAccountController = context.getBean(\"bankAccountController\",BankAccountController.class);\r\n\tSystem.out.println(bankAccountController.getBalance(2201));\r\n\tSystem.out.println(bankAccountController.withdraw(2201,10));\r\n\tSystem.out.println(bankAccountController.deposit(2202, 60));\r\n\tSystem.out.println(bankAccountController.fundTransfer(2201,2202,30));\r\n}", "public static void main(String[] args)\n {\n ApplicationContext context=new ClassPathXmlApplicationContext(\"beans.xml\");\n Movie movie=context.getBean(\"movie\",Movie.class);\n movie.displayActor();\n\n // intialize XmlBeanFactory with beanx.xml\n BeanFactory beanFactory=new XmlBeanFactory(new ClassPathResource(\"beans.xml\"));\n Movie movie1=(Movie) beanFactory.getBean(\"movie\");\n movie1.displayActor();\n // intialize BeanDefinitionRegistry and BeanDefinitionReader with beanx.xml\n DefaultListableBeanFactory factory=new DefaultListableBeanFactory();\n BeanDefinitionRegistry registry=new GenericApplicationContext(factory);\n BeanDefinitionReader reader = new XmlBeanDefinitionReader(registry);\n reader.loadBeanDefinitions(\"beans.xml\");\n Movie picture1 = (Movie) factory.getBean(\"movie\");\n picture1.displayActor();\n\n\n }", "@Repository\n@Transactional\npublic interface DemoDao {\n\n public void insert(Map map);\n\n}", "public static void main(String[] args) {\nApplicationContext context=new ClassPathXmlApplicationContext(\"spring.xml\");\r\n\t\r\n\t\r\n\r\n\t\r\n\t\r\n\tCoach coach2=(Coach)context.getBean(\"myCCoach\");\r\n\r\n\t\r\n\tSystem.out.println(coach2);\r\n\t((ClassPathXmlApplicationContext)context).close();\r\n\t\r\n\t\r\n\tSystem.out.println(coach2.getDailyFortune());\r\n\t\r\n\t}", "public static void main(String args[]){\n ApplicationContext context=new ClassPathXmlApplicationContext(\"bean.xml\");\n Movie movie=context.getBean(\"movie\", Movie.class);\n movie.movieDisplay();\n\n BeanFactory beanfactory=new XmlBeanFactory(new ClassPathResource(\"bean.xml\"));\n //getBean() returns instance\n Movie movie1=beanfactory.getBean(\"movie\", Movie.class);\n movie1.movieDisplay();\n\n DefaultListableBeanFactory defaultListableBeanFactory=new DefaultListableBeanFactory();\n BeanDefinitionRegistry beanDefinitionRegistry=new GenericApplicationContext(defaultListableBeanFactory);\n BeanDefinitionReader beanDefintionReader=new XmlBeanDefinitionReader(beanDefinitionRegistry);\n beanDefintionReader.loadBeanDefinitions(\"bean.xml\");\n Movie movie2=defaultListableBeanFactory.getBean(\"movie\",Movie.class);\n movie2.movieDisplay();\n }", "@Component\npublic interface StudentDaoI {\n void syso();\n}", "@Test\n public void beanFactoryPostProcessir() {\n Person p1 = (Person) applicationContext.getBean(\"p1\");\n //System.out.println(p1.getAge());\n\n // applicationContext.getBean(\"p3\");\n }", "public interface IAccountbService {\n\n int add(Accountb account);\n\n int update(Accountb account);\n\n int delete(int id);\n\n Accountb findAccountById(int id);\n\n List<Accountb> findAccountList();\n\n Accountb findAccountByName(String name);\n\n\n\n\n}", "public GenericDao<Account> getAccountDao();", "public interface AccountDao {\n int insert(Account account);\n\n Account queryAccountById(Long id);\n\n Account findAccount(Account account);\n\n Account queryAccountByMobile(Long mobile);\n\n Account queryAccountByEmail(String email);\n\n void update(Account account);\n\n void resetPassword(Account account);\n}", "@Transactional\npublic interface OperationDaoI extends BaseDaoI<Operation> {\n\n void saveOperation(Operation operation);\n}", "public interface UserDao {\n public void save(Object user) throws HibernateException;\n}", "public static void main(String[] args) \r\n\t{\n\t\tString s = \"resources/spring.xml\";\r\nApplicationContext ac = new ClassPathXmlApplicationContext(s);\r\nCar c=(Car)ac.getBean(\"c\");\r\nc.printCarDetails();\r\n\t}", "public interface ShoppingCartDao {\n void createCart(ShoppingCart shoppingCart);\n}", "public static void main(String[] args) {\n\t\tApplicationContext ctx=new ClassPathXmlApplicationContext(\"com/Kamal/SpringCoreAdvanced/InterfaceInjection/config.xml\");\n\t\tOrderBo impl=(OrderBo)ctx.getBean(\"bo\");\n\t\timpl.placeOrder();\n\t\t\n\t\t\n\t\t\n\t\t\n\t}", "@Override\n\t\tpublic SessionFactoryImpl call() throws Exception {\n\t\t\tClassPathXmlApplicationContext applicationContext=new ClassPathXmlApplicationContext(\"spring-mybatis.xml\");\n\t\t\t\n\t\t\tSessionFactoryImpl sessionFactoryImpl=(SessionFactoryImpl) applicationContext.getBean(\"sessionFactory\");\n\n\t\t\treturn sessionFactoryImpl;\n\t\t}", "public static void main(String[] args) {\n ApplicationContext context = new ClassPathXmlApplicationContext(\"classpath:data.xml\");\n\n Employee emp1 = context.getBean(\"employee1\", Employee.class);\n\n System.out.println(\"Employee Details \" + emp1);\n\n }", "public interface ArticleDao {\n void save(Article article);\n}", "public interface OrderDao {\n public void save(final ServiceOrder order);\n}", "@BeforeClass\n\tpublic static void prepare() {\n\t\t final ApplicationContext ctx = new\n\t\t ClassPathXmlApplicationContext(\"file:src/main/webapp/WEB-INF/employee-servlet.xml\");\n\t\temployeeDAO = ctx.getBean(\"employeeDAO\", EmployeeDAO.class);\n\t}", "public interface EmpDao {\n void add(Emp emp);\n}", "public interface UserDao {\n\n\n}", "public static void main(String[] args) {\r\nApplicationContext context=new ClassPathXmlApplicationContext(\"/beans.xml\");\t\t\r\n\tServlet s=(Servlet)context.getBean(\"servletRef\");\r\n\ts.serviceMethod();\r\n\t}", "public interface IAccountDao {\n \n /**\n * @Author TMS_H2O\n * @Description 模拟保存用户\n * @Date 15:13 2020/4/27\n * @Param []\n * @return void\n **/\n void saveAccount();\n}", "public static void main(String[] args) {\n \n ApplicationContext context =\n new ClassPathXmlApplicationContext(\"spring-beans.xml\");\n \n \n Dependant dependant = context.getBean(\"dependant\", Dependant.class);\n \n }", "public static void main(String args[]) {\r\n\t\tApplicationContext appContext=new ClassPathXmlApplicationContext(\"beans.xml\");\r\n\t\tEmployeeBean emp1=(EmployeeBean) appContext.getBean(\"Employee\");\r\n\t\tSystem.out.println(emp1.getName());\r\n\t}", "public interface AppService {\n /**\n * 新增应用信息\n * @param appInfo\n */\n void addAppInfo(AppInfo appInfo) throws SQLException;\n}", "public static void main(String[] args) {\n ApplicationContext ctx=new ClassPathXmlApplicationContext(\"applicationContext.xml\");\n HelloWord h=(HelloWord) ctx.getBean(\"helloWord\");\n h.sayHello();\n Car car=(Car) ctx.getBean(\"car\");\n System.out.println(car);\n Person person=(Person) ctx.getBean(\"person\");\n System.out.println(person);\n\t}", "<T> T save(T bean);", "public interface AccountService {\n\n /**\n * 登录\n * @param mobile\n * @param password\n * @return\n */\n Account login(String mobile, String password);\n\n /**\n * 添加新部门\n * @param deptName\n */\n void saveDept (String deptName) throws ServiceException;\n\n List<Dept> findAllDept();\n\n /**\n * 根据参数查找分页后的list\n * @param map\n * @return\n */\n List<Account> pageByParam(Map<String, Object> map);\n\n /**\n * 根据deptId查找account的总数\n * @param deptId\n * @return\n */\n Long countByDeptId(Integer deptId);\n\n /**\n * 添加新员工\n * @param userName\n * @param mobile\n * @param password\n * @param deptIdArray 部门可以多选\n */\n void saveEmployee(String userName, String mobile, String password, Integer[] deptIdArray);\n\n /**\n * 根据id删除员工\n * @param id\n */\n void delEmployeeById(Integer id);\n\n /**\n * 查找所有user\n * @return\n */\n List<Account> findAllAccount();\n}", "public interface AddressDao {\n}", "public interface TeamUserDao {\n void save(TeamUser teamUser);\n}", "public static void main(String[] args) {\n\t\n\t\n\tResource r = new ClassPathResource(\"employee.xml\");\n\tBeanFactory bf = new XmlBeanFactory(r);\n\tObject obj = bf.getBean(\"t\");\n\tTest t1=(Test)obj;\n\n}", "public interface AccountDao {\n\t\n\t/**\n\t * Gets the list of Accounts based on the criteria passed as parameter\n\t * @param map a key value pair map used as criteria\n\t * @return List of {@link Account} satisfying the criteria\n\t * @throws DaoException\n\t */\n\tList<Account> getAccountsBasedOnCriteria(Map<String, Object> map) throws DaoException;\n\t\n\t/**\n\t * Get the {@link Account} object based on its accountNumber\n\t * @param accountNumber\n\t * @return\n\t * @throws DaoException\n\t */\n\tAccount getAccountByAccountNumber(Integer accountNumber) throws DaoException;\n\t\n\t/**\n\t * Update {@link Account}\n\t * @param account {@link Account} object needs to be updated\n\t * @throws DaoException\n\t */\n\tvoid update(Account account) throws DaoException;\n}", "public interface CustomerOrderDao {\n\n void addCustomerOrder(CustomerOrder customerOrder);\n\n}", "public static void main(String[] args) {\n ClassPathXmlApplicationContext ctx = new ClassPathXmlApplicationContext(\"spring.xml\");\r\n \r\n //Get the EmployeeDAO Bean\r\n SurveyDAO surveyDAO = ctx.getBean(\"surveyDAO\", SurveyDAO.class);\r\n \r\n \r\n \r\n \r\n// Customer emp1 = customerDAO.getByWebQuoteReferenceNumber(\"C15482084J\");\r\n// System.out.println(\"Customer Retrieved::\"+emp1);\r\n \r\n// System.out.println(\"==================================\");\r\n// System.out.println(\"reference policy number :\"+customerDAO.retrievePolicyNumberAndDatOfBirth().getRefencePolicyNumber());\r\n// System.out.println(\"reference policy number :\"+customerDAO.retrievePolicyNumberAndDatOfBirth().getDateOfBirth());\r\n \r\n \r\n SAppQuestions c = surveyDAO.getAllQuestions();\r\n System.out.println(\"reference number \"+ c.getQuestionNo());\r\n System.out.println( \"Date of birth \"+c.getQuestionTitle());\r\n \r\n \r\n \r\n \t\r\n \t//System.out.println(\"Policy Number and date of birth:\"+emp2);\r\n ctx.close();\r\n \r\n System.out.println(\"DONE\");\r\n }", "public static void main(String[] args){\n ClassPathXmlApplicationContext context = new ClassPathXmlApplicationContext(\"applicationContext.xml\");\n /*\n Check to see if the file exists\n File file = new File(\"src/main/java/applicationContext.xml\");\n System.out.println(file.exists());\n \n */\n \n //retrieve bean from spring container\n Coach theCoach = context.getBean(\"myCoach\", Coach.class);\n //call methods on the bean\n System.out.println(theCoach.getDailyWorkout());\n //close the context\n \n context.close();\n \n /*Note: PUT THE FILE IN THE RESOURCES FOLDER, OR ELSE YOU'LL GET A FILE NOT FOUND ERROR*/\n }", "@Test\n public void testGetItem() {\n System.out.println(\"getItem\");\n long itemId = 1L;\n ItemDaoImpl instance = (ItemDaoImpl) applicationContext.getBean(\"itemDao\", ItemDaoImpl.class);\n Item result = instance.getItem(itemId);\n assertEquals(1, result.getId());\n }", "@Test\n\tpublic void testMultipleContexts() {\n\t\tConfigurableApplicationContext pContext = new ClassPathXmlApplicationContext(\"ex5/context-1.xml\");\n\t\t//creating the child context\n\t\tConfigurableApplicationContext cContext = new \n\t\t\t\t\t\tClassPathXmlApplicationContext(new String[]{\"ex5/context-2.xml\"}, pContext);\n\t\t//accessing the bean\n\t\tCurrencyService currencyService = cContext.getBean(CurrencyService.class);\n\t\t//calling the method to verify if the parent bean was injected or not\n\t\tSystem.out.println(currencyService.convert(100));\n\t}", "@Autowired\n public void setUserDao(UserDao userDao) {\n this.userDao = userDao;\n }", "public static void main(String[] args) {\n\n ApplicationContext context = new ClassPathXmlApplicationContext(new String[]{\"applicationContext.xml\",\"application.xml\"});\n\n Student student = (Student) context.getBean(\"student\");\n\n\n// ClassPathResource resource = new ClassPathResource(\"applicationContext.xml\");\n// XmlBeanFactory beanFactory = new XmlBeanFactory(resource);\n// Student student = (Student) beanFactory.getBean(\"student\");\n//\n// //资源\n// ClassPathResource resource = new ClassPathResource(\"applicationContext.xml\");\n// //容器\n// DefaultListableBeanFactory factory = new DefaultListableBeanFactory();\n// //BeanDefinition读取器,通过回调配置给容器\n// XmlBeanDefinitionReader reader = new XmlBeanDefinitionReader(factory);\n// //读取配置\n// reader.loadBeanDefinitions(resource);\n\n// Student student = (Student) factory.getBean(\"student\");\n// System.out.println(student);\n }", "public static void main(String[] args) {\n\t\tClassPathXmlApplicationContext context= \r\n\t\t\t\tnew ClassPathXmlApplicationContext(new String[] {\"spring.xml\"});\r\n\t\t\r\n\t\t\r\n\t\tIBanqueService metier= (IBanqueService) context.getBean(\"banqueServiceImpl\");\r\n\t\t\r\n//\tmetier.addClientSf(new Client(\"P8\", \"GZZZLLZG\")); \r\n\t\t\r\n\t\tList<Operation> ops= metier.consulterOperation(\"FR1545457\");\r\n\tCompte cp= metier.consulterCompte(\"FR1545457\");\r\n\t\tfor(Operation op: ops){\r\n\t\t\tSystem.out.println(\"************\");\r\n\t\t\tSystem.out.println(\"operation numero : \"+ op.getNumOperation());\r\n\t\t\tSystem.out.println(\"date operation \"+op.getDateOperation());\r\n\t\t\tSystem.out.println(\" Montant transaction \"+op.getMontant());\r\n\t\t\tSystem.out.println(\"type tranbsaction: \"+op.getClass().getSimpleName());\r\n\t\t}\r\n\t\tSystem.out.println(\"************\");\r\n\t\t\r\n\t\tSystem.out.println(\"solde restant: \"+cp.getSolde());\r\n\t\t\r\n\t\t//Compte ce= (Compte) metier.consulterCompte(\"TN55566644\");\r\n\t\t//String codeCli= ce.getNumCompte();\r\n\t//\tmetier.verser(200L, \"TN55566644\", 2L);\r\n\t//\tmetier.virement(100, \"TN55566644\", \"FR1545457\", 3L);\r\n\t\t\r\n\t\t\r\n//\t\tmetier.addClient(new Client(\"A1\", \"fjedncjd\"));\r\n//\t\tmetier.addClient(new Client(\"B5\", \"njedvvv\"));\r\n//\t\tmetier.addClient(new Client(\"R5\", \"njeddd\"));\r\n//\t\tmetier.addClient(new Client(\"Y4\", \"njedzzzd\"));\r\n//\t\t\r\n//\t\tmetier.addEmploye(new Employe(\"1E\"), null);\r\n//\t\tmetier.addEmploye(new Employe(\"2E\"), (long) 1);\r\n//\t\tmetier.addEmploye(new Employe(\"3E\"), (long) 1);\r\n//\r\n//\t\tmetier.addGroupe(new Groupe(\"G1\"));\r\n//\t\tmetier.addEmployeToGroupe(2L, 1L);\r\n//\t\tmetier.addEmployeToGroupe(1L, 1L);\r\n//\t\tmetier.addEmployeToGroupe(3L, 1L);\r\n//\t\tCompteCourant cp= (CompteCourant) context.getBean(\"compteCourant\");\r\n//\t\tcp.setDateCreation(new Date());\r\n//\t\tcp.setNumCompte(\"TN13212545\");\r\n//\t\tcp.setSolde(999.222);\r\n//\t\tmetier.addCompte(new CompteCourant(\"TN1562321544\", new Date(), 1000L, 100L), 1L, 2L);\r\n\t\t\r\n//\t\tCompteCourant cc=(CompteCourant) context.getBean(\"compteCourant\");\r\n//\t\tcc.setNumCompte(\"TN55566644\");\r\n//\t\tcc.setDateCreation(new Date());\r\n//\t\tcc.setSolde(300L);\r\n//\t\tcc.setDecouvert(100L);\r\n//\t\tmetier.addCompte(new CompteCourant(\"TN55566644\", new Date(), 300L, 100L), 2L, 3L);\r\n//\t\tmetier.addCompte(new CompteEpargne(\"FR1545457\", new Date(), 2000L, 4.5), 2L, 3L);\r\n\t\t//metier.addCompte(cc, 2L, 3L);\r\n\t\t\r\n\t}", "public static void main(String[] args) {\n ApplicationContext context = new AnnotationConfigApplicationContext(AppConfig.class);\n//\n// SpeakerService service = context.getBean(\"speakerService\", SpeakerService.class);\n//\n// System.out.println(service);\n//\n// System.out.println(service.findAll().get(0).getFirstName());\n//\n /*\n * In case of Singleton\n * This will not instantiate new object of SpeakerService because it is singleton\n * Same reference will be returned\n * */\n// SpeakerService service2 = context.getBean(\"speakerService\", SpeakerService.class);\n// System.out.println(service2);\n\n // XML Configuration\n// ApplicationContext context = new ClassPathXmlApplicationContext(\"ApplicationContext.xml\");\n// SpeakerService service2 = context.getBean(\"speakerService\", SpeakerService.class);\n// System.out.println(service2);\n }", "@Test\n public void test_BeanFactoryMethod() {\n Resource res = new ClassPathResource(\"beanfactory-example.xml\");\n BeanFactory factory = new XmlBeanFactory(res);\n User user = (User) factory.getBean(\"user\");\n\n assertTrue(factory.isSingleton(\"user\"));\n assertTrue(factory.getBean(\"user\") instanceof User);\n assertTrue(factory.isTypeMatch(\"user\", User.class));\n assertTrue(factory.getAliases(\"user\").length > 0);\n }", "public static void main(String[] args) {\n\t\tApplicationContext ac = new ClassPathXmlApplicationContext(\"applicationContext.xml\");\r\n\t\t//System.out.println(ac.getBean(\"user\"));\r\n\t\t//User user = ac.getBean(User.class);\r\n\t\tString[] beanNames = ac.getBeanNamesForType(User.class);\r\n\t\t//System.out.println(user);\r\n\t\tfor (String string : beanNames) {\r\n\t\t\tSystem.out.println(string);\r\n\t\t\t\r\n\t\t}\r\n\t\tUser user = (User) ac.getBean(\"hkk.spring.javaBeans.User#0\");\r\n\t\tUser user2 = (User) ac.getBean(\"user\");\r\n\t\tUser user3 = (User) ac.getBean(\"user\");\r\n\t\tSystem.out.println(user3==user2);\r\n\t}", "public static void main(String[] args) {\n\t\tApplicationContext context = new ClassPathXmlApplicationContext(\"spring.xml\");\n\t\tAuteurDao auteurDao = (AuteurDao) context.getBean(\"auteurDAO\");\n\t\t\n\t\tSystem.out.println(System.getProperty(\"spring.xml\"));\n\t\t\n\t\tList<AuteurPojo> auteurs = new ArrayList<AuteurPojo>();\n\t\t\n\t\tauteurs = auteurDao.findAll();\n\t\t\n\t\tSystem.out.println(auteurs);\n\t\t\n\t\tAuteurPojo auteur = (AuteurPojo) context.getBean(\"auteurPojo\");\n\t\t\n\t\tAuteurResponse AR = (AuteurResponse) context.getBean(\"auteurResponse\");\n\t\t\n\t\tPretResponse PR = (PretResponse) context.getBean(\"pretResponse\");\n\t\t\n\t\tPretDao pretDao = (PretDao) context.getBean(\"pretDAO\");\n\t\t\n\t\t//PR.setPrets(pretDao.findAll());\n\t\t\n\t\ttry {\n\t\t\tPR.setPrets(pretDao.findAll());\n\t\t}catch(DaoException e) {\n\t\t\tAR.setErrorMessage(e.getMessage());\n\t\t}\n\t\t\n//\t\ttry {\n//\t\t\tauteur = auteurDao.findById(0);\n//\t\t\tAR.getAuteurs().add(auteur);\n//\t\t}catch(DaoException e) {\n//\t\t\tAR.setErrorMessage(e.getMessage());\n//\t\t}\n\t\t\n\t\tUtilisateurDao utilisateurDao = (UtilisateurDao) context.getBean(\"utilisateurDAO\");\n\t\tUtilisateurResponse UR = (UtilisateurResponse) context.getBean(\"utilisateurResponse\");\n\t\t\n\t\tif(utilisateurDao.checkPassword(\"alainTerrieur\", \"motDePasse\"))\n\t\t{\n\t\t\ttry {\n\t\t\t\tUR.getUtilisateurs().add(utilisateurDao.findByPseudo(\"alexTerrieur\"));\n\t\t\t}catch(HibernateException e) {\n\t\t\t\tUR.setErrorType(2);\n\t\t\t\tUR.setErrorMessage(e.getMessage());\n\t\t\t}\n\t\t}else {\n\t\t\tUR.setErrorType(2);\n\t\t\tUR.setErrorMessage(\"Pseudo or password invalid\");\n\t\t}\n\t\t\n\t\tSystem.out.println(UR);\n\t\t\n\t}", "public static void main(String[] args) {\n\t\tGenericXmlApplicationContext ctx = new GenericXmlApplicationContext(\"Echo.xml\");\r\n\t\t\r\n\t\tEchobean bean = ctx.getBean(\"aaa\", Echobean.class);\r\n\t\t \r\n\t\tOneService one = bean.getOne();\r\n\t\tTwoService two = bean.getTwo(); \r\n\t\t \r\n\t\tone.one();\r\n\t\ttwo.two();\r\n\t}", "@Test\n public void testAlians() {\n ApplicationContext context = new ClassPathXmlApplicationContext(\"section3_Bean_overview/config/spring.xml\");\n Car car = context.getBean(\"carAliasOut\", Car.class);\n Car car2 = context.getBean(\"carAliasIn\", Car.class);\n System.out.println(car.equals(car2));\n System.out.println(car.getEngineer());\n }", "protected void setUp() throws Exception {\n\t\tsuper.setUp();\r\n\t\tctx = new ClassPathXmlApplicationContext(\"applicationContext.xml\");\r\n\t\ttestMainDao = (TestMainDao) ctx.getBean(\"testMainDao\");\r\n\t\tquestionDao = (QuestionDao) ctx.getBean(\"questionDao\");\r\n\t}", "public interface IUsersDAO {\n\n /**\n * Retrieve the Users from the Database specified at startup\n * @return a List of IUser\n */\n public List<IUser> getUsers();\n\n /**\n * Save all the Users to the Database specified at startup\n */\n public void saveUser(IUser user);\n\n}", "public interface CheckInfoDao {\n public void addCheckInfo(CheckInfo checkInfo);\n\n}", "public void setAccountDao(AccountDao accountDao) {\n this.accountDao = accountDao;\n }", "public static void main(String[] args) {\r\n\tAnnotationConfigApplicationContext context=new AnnotationConfigApplicationContext(SwimConfig.class);\r\n\tCoach myCoach=context.getBean(\"swimCoach\",Coach.class);\r\n\tSystem.out.println(myCoach.getDailyFortune());\r\n\tSystem.out.println(myCoach.getDailyWorkOut());\r\n\tcontext.close();\r\n\r\n}", "public interface UserDaoI {\n}", "public PessoaService(){\n\t\n\t\tApplicationContext context =SpringUtil.getContext();\n\t\tdb = context.getBean(PessoaRepository.class);\n\t\t\n\t}", "public interface UserDao {\n public void add(User u);\n}", "public static void main(String[] args) {\n AnnotationConfigApplicationContext context =\n new AnnotationConfigApplicationContext(DemoConfig.class);\n\n AccountDAO theAccountDAO = context.getBean(\"accountDAO\",AccountDAO.class);\n\n List<AccountDAO> theAccounts = theAccountDAO.findAccounts(false);\n\n System.out.println(\"\\nMain program: after returning demo app\");\n System.out.println(\"================\");\n System.out.println(theAccounts);\n\n context.close();\n }", "public static void main(String[] args) {\n\t\tSystem.out.println(\"Spring JDBC.......Employee \");\r\n\t\tApplicationContext context = new ClassPathXmlApplicationContext(\"com/springcore/empjdbc/Econfig.xml\");\r\n\t\tJdbcTemplate spring = (JdbcTemplate)context.getBean(\"jdbctemplate\");\r\n\t\tString query = \"insert into Employee(Emp_ID,Emp_Name, Emp_City) values (?,?,?)\";\r\n\t\tint result = spring.update(query,123,\"Praveen\",\"Salem\");\r\n\t\tSystem.out.println(\"Records are Inserted Successfully\"+result);\r\n\t}", "@Test\n public void testBeans(){\n Assert.assertNotNull(countryDao);\n }", "public AccountManagerBean() {\n account = new Account();\n staff = new Staff();\n student = new Student();\n role = new Role();\n }", "public interface IAccountRepository {\n boolean createAccount(Account account);\n Account getAccount(int customer_id);\n List<Account> getAllAccounts();\n}", "@Component\n@Repository\npublic interface UserDao {\n User getByName(String loginName);\n}" ]
[ "0.7346744", "0.6961396", "0.6886585", "0.67809063", "0.6555416", "0.64729494", "0.63944453", "0.63608104", "0.6343797", "0.6098978", "0.60952026", "0.6061681", "0.60046834", "0.596985", "0.5969149", "0.5959453", "0.5955135", "0.59215117", "0.5903098", "0.588573", "0.58554775", "0.58454555", "0.58164483", "0.580322", "0.57988065", "0.579185", "0.5790554", "0.5788152", "0.5779939", "0.57745796", "0.5754506", "0.57506245", "0.57083595", "0.56984055", "0.5698101", "0.5692077", "0.56851965", "0.56824297", "0.5673453", "0.56606823", "0.56477773", "0.5638119", "0.5634384", "0.56288296", "0.562184", "0.5617722", "0.5616072", "0.5613123", "0.5604682", "0.5594269", "0.5588278", "0.55779546", "0.5533563", "0.55316", "0.55249953", "0.55197924", "0.5510066", "0.5505856", "0.5504139", "0.550227", "0.549204", "0.5490751", "0.5479227", "0.54688317", "0.54650176", "0.54646194", "0.54613817", "0.5447992", "0.54440403", "0.54425746", "0.5423645", "0.54233605", "0.54221064", "0.54211664", "0.54032457", "0.5399058", "0.5387433", "0.5378747", "0.5377592", "0.53710467", "0.5365849", "0.5362856", "0.53607756", "0.53553647", "0.5353815", "0.5349391", "0.5345756", "0.534282", "0.5341094", "0.53391534", "0.53359574", "0.53346986", "0.53338546", "0.5333645", "0.53303593", "0.5328958", "0.53280824", "0.53279006", "0.53259486", "0.5311544", "0.5308256" ]
0.0
-1
private static final PropertiesUtil PROPS = new PropertiesUtil("log4j2.StatusLogger.properties"); public static final Logger log = new SimpleLogger("StatusLogger", Level.ERROR, false, true, false, false, Strings.EMPTY, null, PROPS, System.err); convert float to String with two fractional digits
public static String floatToString(float value) { if(Float.isNaN(value)) { return " --- "; } return String.format("%.2f", value); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public JmxLogLevel() {\n this(RunTimeSingleton.instance());\n log.error(\"Wrong constructor\");\n }", "protected static Logger initLogger() {\n \n \n File logFile = new File(\"workshop2_slf4j.log\");\n logFile.delete();\n return LoggerFactory.getLogger(Slf4j.class.getName());\n }", "public static void log(String name, float value) {\n m_output += \" | \" + name + \": \" + value;\n }", "public StatusLogger getStatusLogger();", "LogLevel getLogLevel();", "public Slf4jLogService() {\n this(System.getProperties());\n }", "private ExtentLogger() {}", "public Logger (){}", "public static int getLevel(){\n\treturn logLevel;\n }", "public MyLogger () {}", "public Log() { //Null constructor is adequate as all values start at zero\n\t}", "@Test\n\tpublic void logExceptionAndFormattedMessageWithTwoArgumentsAndLoggerClassName() {\n\t\tRuntimeException exception = new RuntimeException();\n\n\t\tlogger.logv(TinylogLoggerTest.class.getName(), org.jboss.logging.Logger.Level.DEBUG, exception, \"{0} = {1}\", \"magic\", 42);\n\n\t\tif (debugEnabled) {\n\t\t\tverify(provider).log(eq(TinylogLoggerTest.class.getName()), isNull(), eq(Level.DEBUG), same(exception),\n\t\t\t\t\tany(JavaTextMessageFormatFormatter.class), eq(\"{0} = {1}\"), eq(\"magic\"), eq(42));\n\t\t} else {\n\t\t\tverify(provider, never()).log(anyInt(), anyString(), any(), any(), any(), any(), any());\n\t\t}\n\n\t\tlogger.logv(TinylogLoggerTest.class.getName(), org.jboss.logging.Logger.Level.WARN, exception, \"{0} = {1}\", \"magic\", 42);\n\n\t\tif (warnEnabled) {\n\t\t\tverify(provider).log(eq(TinylogLoggerTest.class.getName()), isNull(), eq(Level.WARN), same(exception),\n\t\t\t\t\tany(JavaTextMessageFormatFormatter.class), eq(\"{0} = {1}\"), eq(\"magic\"), eq(42));\n\t\t} else {\n\t\t\tverify(provider, never()).log(anyInt(), anyString(), any(), any(), any(), any(), any());\n\t\t}\n\t}", "public static LogLevel getLevel(){\n return EZLoggerManager.lvl;\n }", "public static void log4jExample() {\n\t\tnewLogger.warn(\"This is the info level\");\n\t\t\n\t}", "void initializeLogging();", "Appendable getLog();", "@Test\n\tpublic void logExceptionAndFormattedMessageWithMultipleArgumentsAndLoggerClassName() {\n\t\tRuntimeException exception = new RuntimeException();\n\n\t\tlogger.logv(TinylogLoggerTest.class.getName(), org.jboss.logging.Logger.Level.DEBUG, exception, \"{0}, {1}, {2} or {3}\", 1, 2, 3, 4);\n\n\t\tif (debugEnabled) {\n\t\t\tverify(provider).log(eq(TinylogLoggerTest.class.getName()), isNull(), eq(Level.DEBUG), same(exception),\n\t\t\t\t\tany(JavaTextMessageFormatFormatter.class), eq(\"{0}, {1}, {2} or {3}\"), eq(1), eq(2), eq(3), eq(4));\n\t\t} else {\n\t\t\tverify(provider, never()).log(anyInt(), anyString(), any(), any(), any(), any(), any());\n\t\t}\n\n\t\tlogger.logv(TinylogLoggerTest.class.getName(), org.jboss.logging.Logger.Level.WARN, exception, \"{0}, {1}, {2} or {3}\", 1, 2, 3, 4);\n\n\t\tif (warnEnabled) {\n\t\t\tverify(provider).log(eq(TinylogLoggerTest.class.getName()), isNull(), eq(Level.WARN), same(exception),\n\t\t\t\t\tany(JavaTextMessageFormatFormatter.class), eq(\"{0}, {1}, {2} or {3}\"), eq(1), eq(2), eq(3), eq(4));\n\t\t} else {\n\t\t\tverify(provider, never()).log(anyInt(), anyString(), any(), any(), any(), any(), any());\n\t\t}\n\t}", "@Test\n\tpublic void logExceptionAndFormattedMessageWithSingleArgumentAndLoggerClassName() {\n\t\tRuntimeException exception = new RuntimeException();\n\n\t\tlogger.logv(TinylogLoggerTest.class.getName(), org.jboss.logging.Logger.Level.DEBUG, exception, \"Hello {0}!\", \"World\");\n\n\t\tif (debugEnabled) {\n\t\t\tverify(provider).log(eq(TinylogLoggerTest.class.getName()), isNull(), eq(Level.DEBUG), same(exception),\n\t\t\t\t\tany(JavaTextMessageFormatFormatter.class), eq(\"Hello {0}!\"), eq(\"World\"));\n\t\t} else {\n\t\t\tverify(provider, never()).log(anyInt(), anyString(), any(), any(), any(), any(), any());\n\t\t}\n\n\t\tlogger.logv(TinylogLoggerTest.class.getName(), org.jboss.logging.Logger.Level.WARN, exception, \"Hello {0}!\", \"World\");\n\n\t\tif (warnEnabled) {\n\t\t\tverify(provider).log(eq(TinylogLoggerTest.class.getName()), isNull(), eq(Level.WARN), same(exception),\n\t\t\t\t\tany(JavaTextMessageFormatFormatter.class), eq(\"Hello {0}!\"), eq(\"World\"));\n\t\t} else {\n\t\t\tverify(provider, never()).log(anyInt(), anyString(), any(), any(), any(), any(), any());\n\t\t}\n\t}", "public static void log(String name, double value) {\n m_output += \" | \" + name + \": \" + value;\n }", "@Test\n\tpublic void logFormattedStringWithTwoObjects() {\n\t\tlogger.logf(org.jboss.logging.Logger.Level.DEBUG, \"%s = %d\", \"magic\", 42);\n\n\t\tif (debugEnabled) {\n\t\t\tverify(provider).log(eq(2), isNull(), eq(Level.DEBUG), same(null), any(PrintfStyleFormatter.class), eq(\"%s = %d\"), eq(\"magic\"),\n\t\t\t\t\teq(42));\n\t\t} else {\n\t\t\tverify(provider, never()).log(anyInt(), anyString(), any(), any(), any(), any(), any());\n\t\t}\n\n\t\tlogger.logf(org.jboss.logging.Logger.Level.WARN, \"%s = %d\", \"magic\", 42);\n\n\t\tif (warnEnabled) {\n\t\t\tverify(provider).log(eq(2), isNull(), eq(Level.WARN), same(null), any(PrintfStyleFormatter.class), eq(\"%s = %d\"), eq(\"magic\"),\n\t\t\t\t\teq(42));\n\t\t} else {\n\t\t\tverify(provider, never()).log(anyInt(), anyString(), any(), any(), any(), any(), any());\n\t\t}\n\t}", "private static final Logger getLog4JLogger(final Log l) {\r\n return ((org.apache.commons.logging.impl.Log4JLogger) l).getLogger();\r\n }", "public String getLog();", "@Test\n\tpublic void logExceptionAndFormattedStringWithTwoObjectsWithLoggerClassName() {\n\t\tRuntimeException exception = new RuntimeException();\n\n\t\tlogger.logf(TinylogLoggerTest.class.getName(), org.jboss.logging.Logger.Level.DEBUG, exception, \"%s = %d\", \"magic\", 42);\n\n\t\tif (debugEnabled) {\n\t\t\tverify(provider).log(eq(TinylogLoggerTest.class.getName()), isNull(), eq(Level.DEBUG), same(exception),\n\t\t\t\t\tany(PrintfStyleFormatter.class), eq(\"%s = %d\"), eq(\"magic\"), eq(42));\n\t\t} else {\n\t\t\tverify(provider, never()).log(anyInt(), anyString(), any(), any(), any(), any(), any());\n\t\t}\n\n\t\tlogger.logf(TinylogLoggerTest.class.getName(), org.jboss.logging.Logger.Level.WARN, exception, \"%s = %d\", \"magic\", 42);\n\n\t\tif (warnEnabled) {\n\t\t\tverify(provider).log(eq(TinylogLoggerTest.class.getName()), isNull(), eq(Level.WARN), same(exception),\n\t\t\t\t\tany(PrintfStyleFormatter.class), eq(\"%s = %d\"), eq(\"magic\"), eq(42));\n\t\t} else {\n\t\t\tverify(provider, never()).log(anyInt(), anyString(), any(), any(), any(), any(), any());\n\t\t}\n\t}", "public static void setJXTALogger(JXTA_LOG_LEVEL logLevel) {\n\t\tswitch (logLevel) {\n\t\tcase FINEST:\n\t\t\tremoveJavaStdLoggerHandlers();\n\t\t\tSystem.setProperty(\"net.jxta.logging.Logging\",\n\t\t\t\t\tJXTA_LOG_LEVEL.FINEST.name());\n\t\t\tSystem.setProperty(\"net.jxta.level\", JXTA_LOG_LEVEL.FINEST.name());\n\t\t\tbreak;\n\t\tcase FINER:\n\t\t\tremoveJavaStdLoggerHandlers();\n\t\t\tSystem.setProperty(\"net.jxta.logging.Logging\",\n\t\t\t\t\tJXTA_LOG_LEVEL.FINER.name());\n\t\t\tSystem.setProperty(\"net.jxta.level\", JXTA_LOG_LEVEL.FINER.name());\n\t\t\tbreak;\n\t\tcase FINE:\n\t\t\tremoveJavaStdLoggerHandlers();\n\t\t\tSystem.setProperty(\"net.jxta.logging.Logging\",\n\t\t\t\t\tJXTA_LOG_LEVEL.FINE.name());\n\t\t\tSystem.setProperty(\"net.jxta.level\", JXTA_LOG_LEVEL.FINE.name());\n\t\t\tbreak;\n\t\tcase INFO:\n\t\t\tremoveJavaStdLoggerHandlers();\n\t\t\tSystem.setProperty(\"net.jxta.logging.Logging\",\n\t\t\t\t\tJXTA_LOG_LEVEL.INFO.name());\n\t\t\tSystem.setProperty(\"net.jxta.level\", JXTA_LOG_LEVEL.INFO.name());\n\t\t\tbreak;\n\t\tcase WARNING:\n\t\t\tremoveJavaStdLoggerHandlers();\n\t\t\tSystem.setProperty(\"net.jxta.logging.Logging\",\n\t\t\t\t\tJXTA_LOG_LEVEL.WARNING.name());\n\t\t\tSystem.setProperty(\"net.jxta.level\", JXTA_LOG_LEVEL.WARNING.name());\n\t\t\tbreak;\n\t\tcase SEVERE:\n\t\t\tremoveJavaStdLoggerHandlers();\n\t\t\tSystem.setProperty(\"net.jxta.logging.Logging\",\n\t\t\t\t\tJXTA_LOG_LEVEL.SEVERE.name());\n\t\t\tSystem.setProperty(\"net.jxta.level\", JXTA_LOG_LEVEL.SEVERE.name());\n\t\t\tbreak;\n\t\tcase OFF:\n\t\t\tremoveJavaStdLoggerHandlers();\n\t\t\tSystem.setProperty(\"net.jxta.logging.Logging\",\n\t\t\t\t\tJXTA_LOG_LEVEL.OFF.name());\n\t\t\tSystem.setProperty(\"net.jxta.level\", JXTA_LOG_LEVEL.OFF.name());\n\t\t\tbreak;\n\t\tdefault:\n\t\t\tbreak;\n\t\t}\n\t}", "private static void defineLogger() {\n HTMLLayout layout = new HTMLLayout();\n DailyRollingFileAppender appender = null;\n try {\n appender = new DailyRollingFileAppender(layout, \"/Server_Log/log\", \"yyyy-MM-dd\");\n } catch (IOException e) {\n e.printStackTrace();\n }\n logger.addAppender(appender);\n logger.setLevel(Level.DEBUG);\n }", "@Test\n\tpublic void logFormattedStringWithSingleObject() {\n\t\tlogger.logf(org.jboss.logging.Logger.Level.DEBUG, \"Hello %s!\", \"World\");\n\n\t\tif (debugEnabled) {\n\t\t\tverify(provider).log(eq(2), isNull(), eq(Level.DEBUG), same(null), any(PrintfStyleFormatter.class), eq(\"Hello %s!\"),\n\t\t\t\t\teq(\"World\"));\n\t\t} else {\n\t\t\tverify(provider, never()).log(anyInt(), anyString(), any(), any(), any(), any(), any());\n\t\t}\n\n\t\tlogger.logf(org.jboss.logging.Logger.Level.WARN, \"Hello %s!\", \"World\");\n\n\t\tif (warnEnabled) {\n\t\t\tverify(provider).log(eq(2), isNull(), eq(Level.WARN), same(null), any(PrintfStyleFormatter.class), eq(\"Hello %s!\"),\n\t\t\t\t\teq(\"World\"));\n\t\t} else {\n\t\t\tverify(provider, never()).log(anyInt(), anyString(), any(), any(), any(), any(), any());\n\t\t}\n\t}", "public static String logaritName(double base) {\n\t\tif (base == Math.E)\n\t\t\treturn \"log\";\n\t\telse if (base == 10)\n\t\t\treturn \"log10\";\n\t\telse\n\t\t\treturn \"log\" + MathUtil.format(base);\n\t}", "@Test\n\tpublic void logExceptionAndFormattedMessageWithThreeArgumentsAndLoggerClassName() {\n\t\tRuntimeException exception = new RuntimeException();\n\n\t\tlogger.logv(TinylogLoggerTest.class.getName(), org.jboss.logging.Logger.Level.DEBUG, exception, \"{0}, {1} or {2}\", 1, 2, 3);\n\n\t\tif (debugEnabled) {\n\t\t\tverify(provider).log(eq(TinylogLoggerTest.class.getName()), isNull(), eq(Level.DEBUG), same(exception),\n\t\t\t\t\tany(JavaTextMessageFormatFormatter.class), eq(\"{0}, {1} or {2}\"), eq(1), eq(2), eq(3));\n\t\t} else {\n\t\t\tverify(provider, never()).log(anyInt(), anyString(), any(), any(), any(), any(), any());\n\t\t}\n\n\t\tlogger.logv(TinylogLoggerTest.class.getName(), org.jboss.logging.Logger.Level.WARN, exception, \"{0}, {1} or {2}\", 1, 2, 3);\n\n\t\tif (warnEnabled) {\n\t\t\tverify(provider).log(eq(TinylogLoggerTest.class.getName()), isNull(), eq(Level.WARN), same(exception),\n\t\t\t\t\tany(JavaTextMessageFormatFormatter.class), eq(\"{0}, {1} or {2}\"), eq(1), eq(2), eq(3));\n\t\t} else {\n\t\t\tverify(provider, never()).log(anyInt(), anyString(), any(), any(), any(), any(), any());\n\t\t}\n\t}", "static public Logger.LEVEL getLogLevel() {\n final Future<Logger.LEVEL> task = ThreadPoolWorkQueue.submit(new Callable<Logger.LEVEL>() {\n @Override public Logger.LEVEL call() {\n return getLevelSync();\n }\n });\n\n try {\n return task.get();\n }\n catch (Exception e) {\n return getLevelSync();\n }\n }", "private Logger configureLogging() {\r\n\t Logger rootLogger = Logger.getLogger(\"\");\r\n\t rootLogger.setLevel(Level.FINEST);\r\n\r\n\t // By default there is one handler: the console\r\n\t Handler[] defaultHandlers = Logger.getLogger(\"\").getHandlers();\r\n\t defaultHandlers[0].setLevel(Level.CONFIG);\r\n\r\n\t // Add our logger\r\n\t Logger ourLogger = Logger.getLogger(serviceLocator.getAPP_NAME());\r\n\t ourLogger.setLevel(Level.FINEST);\r\n\t \r\n\t // Add a file handler, putting the rotating files in the tmp directory \r\n\t // \"%u\" a unique number to resolve conflicts, \"%g\" the generation number to distinguish rotated logs \r\n\t try {\r\n\t Handler logHandler = new FileHandler(\"/%h\"+serviceLocator.getAPP_NAME() + \"_%u\" + \"_%g\" + \".log\",\r\n\t 1000000, 3);\r\n\t logHandler.setLevel(Level.FINEST);\r\n\t ourLogger.addHandler(logHandler);\r\n\t logHandler.setFormatter(new Formatter() {\r\n\t\t\t\t\t\r\n\t\t\t\t\t@Override\r\n\t\t\t\t\tpublic String format(LogRecord record) {\r\n\t\t\t\t\t\tString result=\"\";\r\n\t\t\t\t\t\tif(record.getLevel().intValue() >= Level.WARNING.intValue()){\r\n\t\t\t\t\t\t\tresult += \"ATTENTION!: \";\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\tSimpleDateFormat df = new SimpleDateFormat(\"dd-MMM-yyyy HH:mm:ss\");\r\n\t\t\t\t\t\tDate d = new Date(record.getMillis());\r\n\t\t\t\t\t\tresult += df.format(d)+\" \";\r\n\t\t\t\t\t\tresult += \"[\"+record.getLevel()+\"] \";\r\n\t\t\t\t\t\tresult += this.formatMessage(record);\r\n\t\t\t\t\t\tresult += \"\\r\\n\";\r\n\t\t\t\t\t\treturn result;\r\n\t\t\t\t\t}\r\n\t\t\t\t});\r\n\t } catch (Exception e) { // If we are unable to create log files\r\n\t throw new RuntimeException(\"Unable to initialize log files: \"\r\n\t + e.toString());\r\n\t }\r\n\r\n\t return ourLogger;\r\n\t }", "public static void loggingExample() {\n\t\tSystem.out.println(\"This is running with the default logger!\");\n\t\tnewLogger.fatal(\"This is fatal\");\n\t\tnewLogger.warn(\"This is the warn level\");\n\t\tnewLogger.info(\"This is the info level\");\n\t\t\n\t}", "private static DefaultLogger getConsoleLogger() {\n DefaultLogger consoleLogger = new DefaultLogger();\n consoleLogger.setErrorPrintStream(System.err);\n consoleLogger.setOutputPrintStream(System.out);\n consoleLogger.setMessageOutputLevel(Project.MSG_INFO);\n \n return consoleLogger;\n }", "private static void log(IStatus status) {\n\t getDefault().getLog().log(status);\n\t}", "public static TournamentLogger createDummyLogger(){\n\t\tTournamentLogger logger = new TournamentLogger();\n\t\tlogger.setEventLogPath(null);\n\t\tlogger.setPrintStdOut(false);\n\t\tlogger.setPrintStdErr(false);\n\t\treturn logger;\n\t}", "private static Logger getLogger() {\n return LogDomains.getLogger(ClassLoaderUtil.class, LogDomains.UTIL_LOGGER);\n }", "protected static Logger log() {\n return LogSingleton.INSTANCE.value;\n }", "public static String toString(int level) {\n String bundleKey = null;\n\n switch (level) {\n case Logger.OFF:\n bundleKey = \"utility.level_off\";\t// NOI18N\n break;\n case Logger.SEVERE:\n bundleKey = \"utility.level_severe\";\t// NOI18N\n break;\n case Logger.WARNING:\n bundleKey = \"utility.level_warning\";\t// NOI18N\n break;\n case Logger.INFO:\n bundleKey = \"utility.level_info\";\t// NOI18N\n break;\n case Logger.CONFIG:\n bundleKey = \"utility.level_config\";\t// NOI18N\n break;\n case Logger.FINE:\n bundleKey = \"utility.level_fine\";\t// NOI18N\n break;\n case Logger.FINER:\n bundleKey = \"utility.level_finer\";\t// NOI18N\n break;\n case Logger.FINEST:\n bundleKey = \"utility.level_finest\";\t// NOI18N\n break;\n case Logger.ALL:\n bundleKey = \"utility.level_all\";\t// NOI18N\n break;\n }\n\n return ((bundleKey != null)\n ? getMessages().getString(bundleKey) : null);\n }", "@Test\n public void testValidLogMappings() {\n Level log4JLevelFiner = classUnderTest.convertJdkLevelToLog4jLevel(java.util.logging.Level.FINER.toString());\n Level log4JLevelFine = classUnderTest.convertJdkLevelToLog4jLevel(java.util.logging.Level.FINE.toString());\n assertEquals(log4JLevelFine, Level.DEBUG);\n assertEquals(\"Log4j mapping for jdk.Fine should be equivalent to Finer\", log4JLevelFine, log4JLevelFiner);\n\n //Log 4j has no concept of CONFIG, so maps to INFO\n Level log4JLevelConfig = classUnderTest.convertJdkLevelToLog4jLevel(java.util.logging.Level.CONFIG.toString());\n Level log4JLevelInfo = classUnderTest.convertJdkLevelToLog4jLevel(java.util.logging.Level.INFO.toString());\n assertEquals(log4JLevelInfo, Level.INFO);\n assertEquals(\"Log4j mapping for jdk.Config should be equivalent to jdk.Info\", log4JLevelConfig, log4JLevelInfo);\n\n //Test one other\n assertEquals(\"JDK.WARNING should be equivalent to log4j.WARN\", Level.WARN,\n classUnderTest.convertJdkLevelToLog4jLevel(java.util.logging.Level.WARNING.toString()));\n\n }", "@Test\n\tpublic void logFormattedMessageWithTwoArguments() {\n\t\tlogger.logv(org.jboss.logging.Logger.Level.DEBUG, \"{0} = {1}\", \"magic\", 42);\n\n\t\tif (debugEnabled) {\n\t\t\tverify(provider).log(eq(2), isNull(), eq(Level.DEBUG), same(null), any(JavaTextMessageFormatFormatter.class), eq(\"{0} = {1}\"),\n\t\t\t\t\teq(\"magic\"), eq(42));\n\t\t} else {\n\t\t\tverify(provider, never()).log(anyInt(), anyString(), any(), any(), any(), any(), any());\n\t\t}\n\n\t\tlogger.logv(org.jboss.logging.Logger.Level.WARN, \"{0} = {1}\", \"magic\", 42);\n\n\t\tif (warnEnabled) {\n\t\t\tverify(provider).log(eq(2), isNull(), eq(Level.WARN), same(null), any(JavaTextMessageFormatFormatter.class), eq(\"{0} = {1}\"),\n\t\t\t\t\teq(\"magic\"), eq(42));\n\t\t} else {\n\t\t\tverify(provider, never()).log(anyInt(), anyString(), any(), any(), any(), any(), any());\n\t\t}\n\t}", "private static void _logInfo ()\n {\n System.err.println (\"Logging is enabled using \" + log.getClass ().getName ());\n }", "@Test\n\tpublic void logExceptionAndFormattedStringWithSingleObjectWithLoggerClassName() {\n\t\tRuntimeException exception = new RuntimeException();\n\n\t\tlogger.logf(TinylogLoggerTest.class.getName(), org.jboss.logging.Logger.Level.DEBUG, exception, \"Hello %s!\", \"Error\");\n\n\t\tif (debugEnabled) {\n\t\t\tverify(provider).log(eq(TinylogLoggerTest.class.getName()), isNull(), eq(Level.DEBUG), same(exception),\n\t\t\t\t\tany(PrintfStyleFormatter.class), eq(\"Hello %s!\"), eq(\"Error\"));\n\t\t} else {\n\t\t\tverify(provider, never()).log(anyInt(), anyString(), any(), any(), any(), any(), any());\n\t\t}\n\n\t\tlogger.logf(TinylogLoggerTest.class.getName(), org.jboss.logging.Logger.Level.WARN, exception, \"Hello %s!\", \"Error\");\n\n\t\tif (warnEnabled) {\n\t\t\tverify(provider).log(eq(TinylogLoggerTest.class.getName()), isNull(), eq(Level.WARN), same(exception),\n\t\t\t\t\tany(PrintfStyleFormatter.class), eq(\"Hello %s!\"), eq(\"Error\"));\n\t\t} else {\n\t\t\tverify(provider, never()).log(anyInt(), anyString(), any(), any(), any(), any(), any());\n\t\t}\n\t}", "private void divertLog() {\n wr = new StringWriter(1000);\n LogTarget[] lt = { new WriterTarget(wr, fmt) };\n SampleResult.log.setLogTargets(lt);\n }", "public Logger(int loglv) {\r\n LOGLV = loglv;\r\n }", "@Test\n\tpublic void logFormattedMessageAndExceptionWithLoggerClassName() {\n\t\tRuntimeException exception = new RuntimeException();\n\n\t\tlogger.log(TinylogLoggerTest.class.getName(), org.jboss.logging.Logger.Level.DEBUG, \"Hello {0}!\", new Object[] { \"Error\" },\n\t\t\t\texception);\n\n\t\tif (debugEnabled) {\n\t\t\tverify(provider).log(eq(TinylogLoggerTest.class.getName()), isNull(), eq(Level.DEBUG), same(exception),\n\t\t\t\t\tany(JavaTextMessageFormatFormatter.class), eq(\"Hello {0}!\"), eq(\"Error\"));\n\t\t} else {\n\t\t\tverify(provider, never()).log(anyInt(), anyString(), any(), any(), any(), any(), any());\n\t\t}\n\n\t\tlogger.log(TinylogLoggerTest.class.getName(), org.jboss.logging.Logger.Level.WARN, \"Hello {0}!\", new Object[] { \"Error\" },\n\t\t\t\texception);\n\n\t\tif (warnEnabled) {\n\t\t\tverify(provider).log(eq(TinylogLoggerTest.class.getName()), isNull(), eq(Level.WARN), same(exception),\n\t\t\t\t\tany(JavaTextMessageFormatFormatter.class), eq(\"Hello {0}!\"), eq(\"Error\"));\n\t\t} else {\n\t\t\tverify(provider, never()).log(anyInt(), anyString(), any(), any(), any(), any(), any());\n\t\t}\n\t}", "public JmxLogLevel(RunTimeSingleton glob) {\n this.glob = glob;\n log.debug(\"Constructor created\");\n }", "@Test\n\tpublic void logExceptionAndFormattedStringWithSingleObject() {\n\t\tRuntimeException exception = new RuntimeException();\n\n\t\tlogger.logf(org.jboss.logging.Logger.Level.DEBUG, exception, \"Hello %s!\", \"Error\");\n\n\t\tif (debugEnabled) {\n\t\t\tverify(provider).log(eq(2), isNull(), eq(Level.DEBUG), same(exception), any(PrintfStyleFormatter.class), eq(\"Hello %s!\"),\n\t\t\t\t\teq(\"Error\"));\n\t\t} else {\n\t\t\tverify(provider, never()).log(anyInt(), anyString(), any(), any(), any(), any(), any());\n\t\t}\n\n\t\tlogger.logf(org.jboss.logging.Logger.Level.WARN, exception, \"Hello %s!\", \"Error\");\n\n\t\tif (warnEnabled) {\n\t\t\tverify(provider).log(eq(2), isNull(), eq(Level.WARN), same(exception), any(PrintfStyleFormatter.class), eq(\"Hello %s!\"),\n\t\t\t\t\teq(\"Error\"));\n\t\t} else {\n\t\t\tverify(provider, never()).log(anyInt(), anyString(), any(), any(), any(), any(), any());\n\t\t}\n\t}", "@Test\n\tpublic void logExceptionAndFormattedStringWithThreeObjectWithLoggerClassName() {\n\t\tRuntimeException exception = new RuntimeException();\n\n\t\tlogger.logf(TinylogLoggerTest.class.getName(), org.jboss.logging.Logger.Level.DEBUG, exception, \"%s, %s or %s\", \"one\", \"two\",\n\t\t\t\t\"three\");\n\n\t\tif (debugEnabled) {\n\t\t\tverify(provider).log(eq(TinylogLoggerTest.class.getName()), isNull(), eq(Level.DEBUG), same(exception),\n\t\t\t\t\tany(PrintfStyleFormatter.class), eq(\"%s, %s or %s\"), eq(\"one\"), eq(\"two\"), eq(\"three\"));\n\t\t} else {\n\t\t\tverify(provider, never()).log(anyInt(), anyString(), any(), any(), any(), any(), any());\n\t\t}\n\n\t\tlogger.logf(TinylogLoggerTest.class.getName(), org.jboss.logging.Logger.Level.WARN, exception, \"%s, %s or %s\", \"one\", \"two\",\n\t\t\t\t\"three\");\n\n\t\tif (warnEnabled) {\n\t\t\tverify(provider).log(eq(TinylogLoggerTest.class.getName()), isNull(), eq(Level.WARN), same(exception),\n\t\t\t\t\tany(PrintfStyleFormatter.class), eq(\"%s, %s or %s\"), eq(\"one\"), eq(\"two\"), eq(\"three\"));\n\t\t} else {\n\t\t\tverify(provider, never()).log(anyInt(), anyString(), any(), any(), any(), any(), any());\n\t\t}\n\t}", "@Test\n\tpublic void logExceptionAndFormattedStringWithTwoObjects() {\n\t\tRuntimeException exception = new RuntimeException();\n\n\t\tlogger.logf(org.jboss.logging.Logger.Level.DEBUG, exception, \"%s = %d\", \"magic\", 42);\n\n\t\tif (debugEnabled) {\n\t\t\tverify(provider).log(eq(2), isNull(), eq(Level.DEBUG), same(exception), any(PrintfStyleFormatter.class), eq(\"%s = %d\"),\n\t\t\t\t\teq(\"magic\"), eq(42));\n\t\t} else {\n\t\t\tverify(provider, never()).log(anyInt(), anyString(), any(), any(), any(), any(), any());\n\t\t}\n\n\t\tlogger.logf(org.jboss.logging.Logger.Level.WARN, exception, \"%s = %d\", \"magic\", 42);\n\n\t\tif (warnEnabled) {\n\t\t\tverify(provider).log(eq(2), isNull(), eq(Level.WARN), same(exception), any(PrintfStyleFormatter.class), eq(\"%s = %d\"),\n\t\t\t\t\teq(\"magic\"), eq(42));\n\t\t} else {\n\t\t\tverify(provider, never()).log(anyInt(), anyString(), any(), any(), any(), any(), any());\n\t\t}\n\t}", "private void initLogger() {\n\t\ttry {\n\t\t\tjava.util.logging.Logger rootLogger = java.util.logging.Logger.getLogger(\"\");\n\t\t\trootLogger.setUseParentHandlers(false);\n\t\t\tHandler csvFileHandler = new FileHandler(\"logger/log.csv\", 100000, 1, true);\n\t\t\tlogformater = new LogFormatter();\n\t\t\trootLogger.addHandler(csvFileHandler);\n\t\t\tcsvFileHandler.setFormatter(logformater);\n\t\t\tlogger.setLevel(Level.ALL);\n\t\t} catch (IOException ie) {\n\t\t\tSystem.out.println(\"Logger initialization failed\");\n\t\t\tie.printStackTrace();\n\t\t}\n\t}", "@Test\n\tpublic void logFormattedMessageWithSingleArgument() {\n\t\tlogger.logv(org.jboss.logging.Logger.Level.DEBUG, \"Hello {0}!\", \"World\");\n\n\t\tif (debugEnabled) {\n\t\t\tverify(provider).log(eq(2), isNull(), eq(Level.DEBUG), same(null), any(JavaTextMessageFormatFormatter.class), eq(\"Hello {0}!\"),\n\t\t\t\t\teq(\"World\"));\n\t\t} else {\n\t\t\tverify(provider, never()).log(anyInt(), anyString(), any(), any(), any(), any(), any());\n\t\t}\n\n\t\tlogger.logv(org.jboss.logging.Logger.Level.WARN, \"Hello {0}!\", \"World\");\n\n\t\tif (warnEnabled) {\n\t\t\tverify(provider).log(eq(2), isNull(), eq(Level.WARN), same(null), any(JavaTextMessageFormatFormatter.class), eq(\"Hello {0}!\"),\n\t\t\t\t\teq(\"World\"));\n\t\t} else {\n\t\t\tverify(provider, never()).log(anyInt(), anyString(), any(), any(), any(), any(), any());\n\t\t}\n\t}", "private void writeLog(){\n\t\tStringBuilder str = new StringBuilder();\r\n\t\tstr.append(System.currentTimeMillis() + \", \");\r\n\t\tstr.append(fileInfo.getCreator() + \", \");\r\n\t\tstr.append(fileInfo.getFileName() + \", \");\r\n\t\tstr.append(fileInfo.getFileLength() + \", \");\r\n\t\tstr.append(networkSize + \", \");\r\n\t\tstr.append(fileInfo.getN1() + \", \");\r\n\t\tstr.append(fileInfo.getK1() + \", \");\r\n\t\tstr.append(fileInfo.getN2() + \", \");\r\n\t\tstr.append(fileInfo.getK2() + \", \");\r\n\t\tstr.append(logger.getDiff(logger.topStart, logger.topEnd-Constants.TOPOLOGY_DISCOVERY_TIMEOUT)+ \", \");\r\n\t\tstr.append(logger.getDiff(logger.optStart, logger.optStop) + \", \");\r\n\t\tstr.append(logger.getDiff(logger.encryStart, logger.encryStop) + \", \");\r\n\t\tstr.append(logger.getDiff(logger.distStart, logger.distStop) + \"\\n\");\r\n\t\t\r\n\t\tString tmp=\"\t\";\r\n\t\tfor(Integer i : fileInfo.getKeyStorage())\r\n\t\t\ttmp += i + \",\";\r\n\t\ttmp += \"\\n\";\r\n\t\tstr.append(tmp);\r\n\t\t\r\n\t\ttmp=\"\t\";\r\n\t\tfor(Integer i : fileInfo.getFileStorage())\r\n\t\t\ttmp += i + \",\";\r\n\t\ttmp += \"\\n\";\r\n\t\tstr.append(tmp);\t\t\r\n\t\t//dataLogger.appendSensorData(LogFileName.FILE_CREATION, str.toString());\t\t\r\n\t\t\r\n\t\t// Topology Discovery\r\n\t\tstr.delete(0, str.length()-1);\r\n\t\tstr.append(Node.getInstance().getNodeId() + \", \");\t\t\t\r\n\t\tstr.append(\"TopologyDisc, \");\r\n\t\tstr.append(networkSize + \", \" + n1 + \", \" + k1 + \", \" + n2 + \", \" + k2 + \", \");\r\n\t\tstr.append(logger.topStart + \", \");\r\n\t\tstr.append(logger.getDiff(logger.topStart, logger.topEnd-Constants.TOPOLOGY_DISCOVERY_TIMEOUT ) + \", \");\r\n\t\tstr.append(\"\\n\");\t\t\t\t\r\n\t\t//dataLogger.appendSensorData(LogFileName.TIMES, str.toString());\r\n\t\t\r\n\t\t// Optimization\r\n\t\tstr.delete(0, str.length()-1);\r\n\t\tstr.append(Node.getInstance().getNodeId() + \", \");\t\t\t\r\n\t\tstr.append(\"Optimization, \");\r\n\t\tstr.append(networkSize + \", \" + n1 + \", \" + k1 + \", \" + n2 + \", \" + k2 + \", \");\r\n\t\tstr.append(logger.optStart + \", \");\r\n\t\tstr.append(logger.getDiff(logger.optStart, logger.optStop) + \", \");\r\n\t\tstr.append(\"\\n\");\r\n\t\t//dataLogger.appendSensorData(LogFileName.TIMES, str.toString());\t\t\r\n\t\t\r\n\t\t\r\n\t\t// File Distribution\r\n\t\tstr.delete(0, str.length()-1);\r\n\t\tstr.append(Node.getInstance().getNodeId() + \", \");\t\t\t\r\n\t\tstr.append(\"FileDistribution, \");\r\n\t\tstr.append(networkSize + \", \" + n1 + \", \" + k1 + \", \" + n2 + \", \" + k2 + \", \");\r\n\t\tstr.append(fileInfo.getFileLength() + \", \");\r\n\t\tstr.append(logger.distStart + \", \");\r\n\t\tstr.append(logger.getDiff(logger.distStart, logger.distStop) + \", \");\r\n\t\tstr.append(\"\\n\\n\");\r\n\t\t//dataLogger.appendSensorData(LogFileName.TIMES, str.toString());\t\t\r\n\t}", "public String toString(){\n\t\treturn \"Log normal distribution [location = \" + location + \", scale = \" + scale + \"]\";\n\t}", "private static Logger createLogger(String className) {\n\n /*\n * No need to set level values explicitly. This is managed in the\n * standard way by java.util.logging.LogManager.\n */\n Logger logger = Logger.getLogger(className);\n\n /*\n * We've debated permitting the logger to use parental handlers, which\n * would permit using the standard java.util.logging policy of setting\n * tbe property com.sleepycat.je.handlers as a way of customizing\n * handlers. This was not useful because of the need to specify\n * handlers per environment, and also caused a process monitor echo\n * issue within NoSQL DB.\n */\n logger.setUseParentHandlers(false);\n\n return logger;\n }", "private static void log(Level level, Object message) {\n logger.info(LogUtil.class.getName(),level, message,null);\n }", "@Test\n\tpublic void logExceptionAndFormattedMessageWithTwoArguments() {\n\t\tRuntimeException exception = new RuntimeException();\n\n\t\tlogger.logv(org.jboss.logging.Logger.Level.DEBUG, exception, \"{0} = {1}\", \"magic\", 42);\n\n\t\tif (debugEnabled) {\n\t\t\tverify(provider).log(eq(2), isNull(), eq(Level.DEBUG), same(exception), any(JavaTextMessageFormatFormatter.class),\n\t\t\t\t\teq(\"{0} = {1}\"), eq(\"magic\"), eq(42));\n\t\t} else {\n\t\t\tverify(provider, never()).log(anyInt(), anyString(), any(), any(), any(), any(), any());\n\t\t}\n\n\t\tlogger.logv(org.jboss.logging.Logger.Level.WARN, exception, \"{0} = {1}\", \"magic\", 42);\n\n\t\tif (warnEnabled) {\n\t\t\tverify(provider).log(eq(2), isNull(), eq(Level.WARN), same(exception), any(JavaTextMessageFormatFormatter.class),\n\t\t\t\t\teq(\"{0} = {1}\"), eq(\"magic\"), eq(42));\n\t\t} else {\n\t\t\tverify(provider, never()).log(anyInt(), anyString(), any(), any(), any(), any(), any());\n\t\t}\n\t}", "public void customLogger() {\n KOOM.getInstance().setLogger(new KLog.KLogger() {\n @Override\n public void i(String TAG, String msg) {\n //get the log of info level\n }\n\n @Override\n public void d(String TAG, String msg) {\n //get the log of debug level\n }\n\n @Override\n public void e(String TAG, String msg) {\n //get the log of error level\n }\n });\n }", "@Test\n public void testLog() throws IOException {\n System.out.println(Double.parseDouble(\"3.123124354657668698\"));\n }", "public int get_log_level() {\r\n return logLevel;\r\n }", "public static Logger getLogger(String name) {\n\t\tif (name != null && name.length() > 0) {\n\t\t\tPropertyConfigurator.configure(\"log4j.properties\");\n\t\t\t// BasicConfigurator.configure();\n\t\t} else {\n\t\t\tBasicConfigurator.configure();\n\t\t}\n\n\t\t// get a logger instance named \"com.foo\"\n\t\t// Logger logger = Logger.getLogger(\"com.foo\");\n\t\t// ApacheLogTest.class.getResource(\"log4j.properties\");\n\t\tLogger logger = Logger.getLogger(name);\n\n\t\t// Now set its level. Normally you do not need to set the\n\t\t// level of a logger programmatically. This is usually done\n\t\t// in configuration files.\n\t\tlogger.setLevel(Level.ALL);\n\n\t\t// Logger barlogger = Logger.getLogger(\"com.foo.Bar\");\n\n\t\t// The logger instance barlogger, named \"com.foo.Bar\",\n\t\t// will inherit its level from the logger named\n\t\t// \"com.foo\" Thus, the following request is enabled\n\t\t// because INFO >= INFO.\n\t\t// barlogger.info(\"Located nearest gas station.\");\n\n\t\t// This request is disabled, because DEBUG < INFO.\n\t\t// barlogger.debug(\"Exiting gas station search\");\n\n\t\t// ///////////// Appenders ////////////////////////\n\n\t\t// Log4j allows logging requests to print to multiple destinations. In\n\t\t// log4j speak, an output destination is called an appender.\n\n\t\t// Currently, appenders exist for the console, files, GUI components,\n\t\t// remote socket servers, JMS, NT Event Loggers, and remote UNIX Syslog\n\t\t// daemons. It is also possible to log asynchronously.\n\n\t\t// ///////////// Layouts ////////////////////////\n\n\t\t// More often than not, users wish to customize not only the output\n\t\t// destination but also the output format. This is accomplished by\n\t\t// associating a layout with an appender. The layout is responsible for\n\t\t// formatting the logging request according to the user's wishes,\n\t\t// whereas an appender takes care of sending the formatted output to its\n\t\t// destination\n\t\treturn logger;\n\t}", "public static double CalcLevel_Log(double SlopeStart, double SlopeStop,double FreqPoint)\r\n {\n double levelLog = 0.0;\r\n double tempY = 0.0;\r\n\r\n tempY = SlopeStart * (Math.log10(FreqPoint)) + SlopeStop;\r\n levelLog = (Math.pow(10, tempY));\r\n\r\n return levelLog;\r\n }", "public String getLogFormat() {\n return this.logFormat;\n }", "public void configLog()\n\t{\n\t\tlogConfigurator.setFileName(Environment.getExternalStorageDirectory() + File.separator + dataFileName);\n\t\t// Set the root log level\n\t\t//writerConfigurator.setRootLevel(Level.DEBUG);\n\t\tlogConfigurator.setRootLevel(Level.DEBUG);\n\t\t///writerConfigurator.setMaxFileSize(1024 * 1024 * 500);\n\t\tlogConfigurator.setMaxFileSize(1024 * 1024 * 1024);\n\t\t// Set log level of a specific logger\n\t\t//writerConfigurator.setLevel(\"org.apache\", Level.ERROR);\n\t\tlogConfigurator.setLevel(\"org.apache\", Level.ERROR);\n\t\tlogConfigurator.setImmediateFlush(true);\n\t\t//writerConfigurator.configure();\n\t\tlogConfigurator.configure();\n\n\t\t//gLogger = Logger.getLogger(this.getClass());\n\t\t//gWriter = \n\t\tgLogger = Logger.getLogger(\"vdian\");\n\t}", "public static String format(float val, String pattern)\n {\n return format(Float.valueOf(val), pattern);\n }", "TreeLogger.Type getLogLevel() {\n return logLevel;\n }", "public static Log getLoggerDev() {\r\n Log l = null;\r\n if (isRunning()) {\r\n l = getInstance().getLogDev();\r\n }\r\n return l;\r\n }", "private LoggerConstants() {\n\t\tsuper();\n\t}", "@Test\n\tpublic void logExceptionAndFormattedMessageWithSingleArgument() {\n\t\tRuntimeException exception = new RuntimeException();\n\n\t\tlogger.logv(org.jboss.logging.Logger.Level.DEBUG, exception, \"Hello {0}!\", \"World\");\n\n\t\tif (debugEnabled) {\n\t\t\tverify(provider).log(eq(2), isNull(), eq(Level.DEBUG), same(exception), any(JavaTextMessageFormatFormatter.class),\n\t\t\t\t\teq(\"Hello {0}!\"), eq(\"World\"));\n\t\t} else {\n\t\t\tverify(provider, never()).log(anyInt(), anyString(), any(), any(), any(), any(), any());\n\t\t}\n\n\t\tlogger.logv(org.jboss.logging.Logger.Level.WARN, exception, \"Hello {0}!\", \"World\");\n\n\t\tif (warnEnabled) {\n\t\t\tverify(provider).log(eq(2), isNull(), eq(Level.WARN), same(exception), any(JavaTextMessageFormatFormatter.class),\n\t\t\t\t\teq(\"Hello {0}!\"), eq(\"World\"));\n\t\t} else {\n\t\t\tverify(provider, never()).log(anyInt(), anyString(), any(), any(), any(), any(), any());\n\t\t}\n\t}", "public String getLogStr() {\n\t\treturn logStr;\n\t}", "public static final Logger createLogger() {\n\t\tLogger logger = Logger.getLogger(ProcessDatabase.class.getName());\n\t\ttry {\n\t\t\tFileHandler fh = new FileHandler();\n\t\t\tfh.setFormatter(new SimpleFormatter());\n\t\t\tlogger.addHandler(fh);\n\t\t} catch (SecurityException e) {\n\t\t\te.printStackTrace();\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\treturn logger;\n\t}", "@Test\n\tpublic void logExceptionAndFormattedStringWithMultipleObjectsWithLoggerClassName() {\n\t\tRuntimeException exception = new RuntimeException();\n\n\t\tlogger.logf(TinylogLoggerTest.class.getName(), org.jboss.logging.Logger.Level.DEBUG, exception, \"%s, %s, %s or %s\", \"one\", \"two\",\n\t\t\t\t\"three\", \"four\");\n\n\t\tif (debugEnabled) {\n\t\t\tverify(provider).log(eq(TinylogLoggerTest.class.getName()), isNull(), eq(Level.DEBUG), same(exception),\n\t\t\t\t\tany(PrintfStyleFormatter.class), eq(\"%s, %s, %s or %s\"), eq(\"one\"), eq(\"two\"), eq(\"three\"), eq(\"four\"));\n\t\t} else {\n\t\t\tverify(provider, never()).log(anyInt(), anyString(), any(), any(), any(), any(), any());\n\t\t}\n\n\t\tlogger.logf(TinylogLoggerTest.class.getName(), org.jboss.logging.Logger.Level.WARN, exception, \"%s, %s, %s or %s\", \"one\", \"two\",\n\t\t\t\t\"three\", \"four\");\n\n\t\tif (warnEnabled) {\n\t\t\tverify(provider).log(eq(TinylogLoggerTest.class.getName()), isNull(), eq(Level.WARN), same(exception),\n\t\t\t\t\tany(PrintfStyleFormatter.class), eq(\"%s, %s, %s or %s\"), eq(\"one\"), eq(\"two\"), eq(\"three\"), eq(\"four\"));\n\t\t} else {\n\t\t\tverify(provider, never()).log(anyInt(), anyString(), any(), any(), any(), any(), any());\n\t\t}\n\t}", "private Logger(){ }", "public static Logger get() {\n\t\treturn LoggerFactory.getLogger(WALKER.getCallerClass());\n\t}", "void printLog(String str)\n { printLog(str,Log.LEVEL_HIGH);\n }", "@Test\n\tpublic void logMessageAndExceptionWithLoggerClassName() {\n\t\tRuntimeException exception = new RuntimeException();\n\n\t\tlogger.log(org.jboss.logging.Logger.Level.DEBUG, TinylogLoggerTest.class.getName(), \"Boom!\", exception);\n\n\t\tif (debugEnabled) {\n\t\t\tverify(provider).log(eq(TinylogLoggerTest.class.getName()), isNull(), eq(Level.DEBUG), same(exception),\n\t\t\t\t\tany(JavaTextMessageFormatFormatter.class), eq(\"Boom!\"), isNull());\n\t\t} else {\n\t\t\tverify(provider, never()).log(anyInt(), anyString(), any(), any(), any(), any(), any());\n\t\t}\n\n\t\tlogger.log(org.jboss.logging.Logger.Level.WARN, TinylogLoggerTest.class.getName(), \"Boom!\", exception);\n\n\t\tif (warnEnabled) {\n\t\t\tverify(provider).log(eq(TinylogLoggerTest.class.getName()), isNull(), eq(Level.WARN), same(exception),\n\t\t\t\t\tany(JavaTextMessageFormatFormatter.class), eq(\"Boom!\"), isNull());\n\t\t} else {\n\t\t\tverify(provider, never()).log(anyInt(), anyString(), any(), any(), any(), any(), any());\n\t\t}\n\t}", "private void checkLogLevel() {\n config.getString(\"log_level\");\n }", "private void printLog(String str)\n { printLog(str,Log.LEVEL_HIGH);\n }", "public static void setLevel(int level){\n\tlogLevel = level;\n }", "public interface FsmLogger {\n\t/**\n\t * Get name of the logger.\n\t * \n\t * @return the name\n\t */\n\tpublic String getName();\n\n\t/**\n\t * Log a fatal message.\n\t * \n\t * @param message\n\t * the message\n\t */\n\tpublic void fatal(String message);\n\n\t/**\n\t * Log a fatal message.\n\t * \n\t * @param message\n\t * the message\n\t * @param throwable\n\t * a throwable object\n\t */\n\tpublic void fatal(String message, Throwable throwable);\n\n\t/**\n\t * Log an error message.\n\t * \n\t * @param message\n\t * the message\n\t */\n\tpublic void error(String message);\n\n\t/**\n\t * Log an error message.\n\t * \n\t * @param message\n\t * the message\n\t * @param throwable\n\t * a throwable object\n\t */\n\tpublic void error(String message, Throwable throwable);\n\n\t/**\n\t * Log a warning message.\n\t * \n\t * @param message\n\t * the message\n\t */\n\tpublic void warn(String message);\n\n\t/**\n\t * Log a warning message.\n\t * \n\t * @param message\n\t * the message\n\t * @param throwable\n\t * a throwable object\n\t */\n\tpublic void warn(String message, Throwable throwable);\n\n\t/**\n\t * Log an info message.\n\t * \n\t * @param message\n\t * the message\n\t */\n\tpublic void info(String message);\n\n\t/**\n\t * Log an info message.\n\t * \n\t * @param message\n\t * the message\n\t * @param throwable\n\t * a throwable object\n\t */\n\tpublic void info(String message, Throwable throwable);\n\n\t/**\n\t * Log a debug message.\n\t * \n\t * @param message\n\t * the message\n\t */\n\tpublic void debug(String message);\n\n\t/**\n\t * Log a debug message.\n\t * \n\t * @param message\n\t * the message\n\t * @param throwable\n\t * a throwable object\n\t */\n\tpublic void debug(String message, Throwable throwable);\n\n\t/**\n\t * Log a trace message.\n\t * \n\t * @param message\n\t * the message\n\t */\n\tpublic void trace(String message);\n\n\t/**\n\t * Log a trace message.\n\t * \n\t * @param message\n\t * the message\n\t * @param throwable\n\t * a throwable object\n\t */\n\tpublic void trace(String message, Throwable throwable);\n\n\t/**\n\t * Get status of info messages logging in this logger.\n\t * \n\t * @return true if logging of info messages is enabled otherwise false\n\t */\n\tpublic boolean isInfoEnabled();\n\n\t/**\n\t * Get status of debug messages logging in this logger.\n\t * \n\t * @return true if logging of debug messages is enabled otherwise false\n\t */\n\tpublic boolean isDebugEnabled();\n\n\t/**\n\t * Get status of trace messages logging in this logger.\n\t * \n\t * @return true if logging of trace messages is enabled otherwise false\n\t */\n\tpublic boolean isTraceEnabled();\n}", "protected static void errorLog(float error){\n\n\t\tString logString = error + \"\\n\";\n\t\ttry {\n\t\t\tFiles.write(Paths.get(\"errorLog.txt\"), logString.getBytes(), StandardOpenOption.APPEND);\n\t\t}catch (IOException e) {\n\t\t\t//exception handling left as an exercise for the reader\n\t\t}\n\t}", "static public void setLogLevel(final Logger.LEVEL desiredLevel) {\n ThreadPoolWorkQueue.execute(new Runnable() {\n @Override\n public void run() {\n setLevelSync(desiredLevel);\n // we do this mostly to enable unit tests to logger.wait(100) instead of\n // Thread.sleep(100) -- it's faster, more stable, and more deterministic that way\n synchronized (WAIT_LOCK) {\n WAIT_LOCK.notifyAll();\n }\n }\n });\n }", "@Test\n\tpublic void logFormattedStringWithThreeObject() {\n\t\tlogger.logf(org.jboss.logging.Logger.Level.DEBUG, \"%s, %s or %s\", \"one\", \"two\", \"three\");\n\n\t\tif (debugEnabled) {\n\t\t\tverify(provider).log(eq(2), isNull(), eq(Level.DEBUG), same(null), any(PrintfStyleFormatter.class), eq(\"%s, %s or %s\"),\n\t\t\t\t\teq(\"one\"), eq(\"two\"), eq(\"three\"));\n\t\t} else {\n\t\t\tverify(provider, never()).log(anyInt(), anyString(), any(), any(), any(), any(), any());\n\t\t}\n\n\t\tlogger.logf(org.jboss.logging.Logger.Level.WARN, \"%s, %s or %s\", \"one\", \"two\", \"three\");\n\n\t\tif (warnEnabled) {\n\t\t\tverify(provider).log(eq(2), isNull(), eq(Level.WARN), same(null), any(PrintfStyleFormatter.class), eq(\"%s, %s or %s\"),\n\t\t\t\t\teq(\"one\"), eq(\"two\"), eq(\"three\"));\n\t\t} else {\n\t\t\tverify(provider, never()).log(anyInt(), anyString(), any(), any(), any(), any(), any());\n\t\t}\n\t}", "@Test\n\tpublic void logFormattedMessageWithMultipleArguments() {\n\t\tlogger.logv(org.jboss.logging.Logger.Level.DEBUG, \"{0}, {1}, {2} or {3}\", 1, 2, 3, 4);\n\n\t\tif (debugEnabled) {\n\t\t\tverify(provider).log(eq(2), isNull(), eq(Level.DEBUG), same(null), any(JavaTextMessageFormatFormatter.class),\n\t\t\t\t\teq(\"{0}, {1}, {2} or {3}\"), eq(1), eq(2), eq(3), eq(4));\n\t\t} else {\n\t\t\tverify(provider, never()).log(anyInt(), anyString(), any(), any(), any(), any(), any());\n\t\t}\n\n\t\tlogger.logv(org.jboss.logging.Logger.Level.WARN, \"{0}, {1}, {2} or {3}\", 1, 2, 3, 4);\n\n\t\tif (warnEnabled) {\n\t\t\tverify(provider).log(eq(2), isNull(), eq(Level.WARN), same(null), any(JavaTextMessageFormatFormatter.class),\n\t\t\t\t\teq(\"{0}, {1}, {2} or {3}\"), eq(1), eq(2), eq(3), eq(4));\n\t\t} else {\n\t\t\tverify(provider, never()).log(anyInt(), anyString(), any(), any(), any(), any(), any());\n\t\t}\n\t}", "protected void initLogger() {\n initLogger(\"DEBUG\");\n }", "public static void initialize(){\n Logger logger = Logger.getLogger(\"\");\n\n //from: http://stackoverflow.com/questions/6029454/disabling-awt-swing-debug-fine-log-messages\n Logger.getLogger(\"java.awt\").setLevel(Level.OFF);\n Logger.getLogger(\"sun.awt\").setLevel(Level.OFF);\n Logger.getLogger(\"sun.lwawt\").setLevel(Level.OFF);\n Logger.getLogger(\"javax.swing\").setLevel(Level.OFF);\n\n if (uiLoggerFormatter==null){\n uiLoggerFormatter = new SimpleFormatter();\n }\n\n if (consoleLoggerFormatter==null){\n consoleLoggerFormatter = new SimpleFormatter();\n }\n Handler[] handlers = logger.getHandlers();\n // suppress the logging output to the console\n if (!enableConsoleLogger){\n if (handlers[0] instanceof ConsoleHandler) {\n logger.removeHandler(handlers[0]);\n }\n }\n else{\n if (handlers[0] instanceof ConsoleHandler) {\n handlers[0].setFormatter(consoleLoggerFormatter);\n }\n }\n\n setLevel(lvl);\n\n if(fileHandler!=null){\n if (fileLoggerFormatter==null){\n fileLoggerFormatter = new SimpleFormatter();\n }\n fileHandler.setFormatter(fileLoggerFormatter);\n logger.addHandler(fileHandler);\n }\n\n if(enableUILogger){\n txtAreaHandler = new EZUIHandler(uiLoggerSizeLimit);\n txtAreaHandler.setFormatter(uiLoggerFormatter);\n logger.addHandler(txtAreaHandler);\n }\n \n initialized = true;\n }", "private static void createLogger() {\n logger = myLogger.createHtmlLogger(\"JRECEIPTS\", Options.LOG_PATH + \"Receipts\", 262144, true, 1);\n// boolean append = true;\n// int limit = 1000000; // 1 Mb\n// int numLogFiles = 5;\n// FileHandler fh = new FileHandler(Options.LOG_PATH + \"Receipts_%g.html\", limit, numLogFiles, true);\n// fh.setFormatter(new SimpleFormatter());\n// // Add to the desired logger\n// logger = Logger.getLogger(\"Receipts\");\n// logger.addHandler(fh);\n }", "@Test\n\tpublic void logFormattedMessageWithThreeArguments() {\n\t\tlogger.logv(org.jboss.logging.Logger.Level.DEBUG, \"{0}, {1} or {2}\", 1, 2, 3);\n\n\t\tif (debugEnabled) {\n\t\t\tverify(provider).log(eq(2), isNull(), eq(Level.DEBUG), same(null), any(JavaTextMessageFormatFormatter.class),\n\t\t\t\t\teq(\"{0}, {1} or {2}\"), eq(1), eq(2), eq(3));\n\t\t} else {\n\t\t\tverify(provider, never()).log(anyInt(), anyString(), any(), any(), any(), any(), any());\n\t\t}\n\n\t\tlogger.logv(org.jboss.logging.Logger.Level.WARN, \"{0}, {1} or {2}\", 1, 2, 3);\n\n\t\tif (warnEnabled) {\n\t\t\tverify(provider).log(eq(2), isNull(), eq(Level.WARN), same(null), any(JavaTextMessageFormatFormatter.class),\n\t\t\t\t\teq(\"{0}, {1} or {2}\"), eq(1), eq(2), eq(3));\n\t\t} else {\n\t\t\tverify(provider, never()).log(anyInt(), anyString(), any(), any(), any(), any(), any());\n\t\t}\n\t}", "@Test\n\tpublic void logExceptionAndFormattedMessageWithMultipleArguments() {\n\t\tRuntimeException exception = new RuntimeException();\n\n\t\tlogger.logv(org.jboss.logging.Logger.Level.DEBUG, exception, \"{0}, {1}, {2} or {3}\", 1, 2, 3, 4);\n\n\t\tif (debugEnabled) {\n\t\t\tverify(provider).log(eq(2), isNull(), eq(Level.DEBUG), same(exception), any(JavaTextMessageFormatFormatter.class),\n\t\t\t\t\teq(\"{0}, {1}, {2} or {3}\"), eq(1), eq(2), eq(3), eq(4));\n\t\t} else {\n\t\t\tverify(provider, never()).log(anyInt(), anyString(), any(), any(), any(), any(), any());\n\t\t}\n\n\t\tlogger.logv(org.jboss.logging.Logger.Level.WARN, exception, \"{0}, {1}, {2} or {3}\", 1, 2, 3, 4);\n\n\t\tif (warnEnabled) {\n\t\t\tverify(provider).log(eq(2), isNull(), eq(Level.WARN), same(exception), any(JavaTextMessageFormatFormatter.class),\n\t\t\t\t\teq(\"{0}, {1}, {2} or {3}\"), eq(1), eq(2), eq(3), eq(4));\n\t\t} else {\n\t\t\tverify(provider, never()).log(anyInt(), anyString(), any(), any(), any(), any(), any());\n\t\t}\n\t}", "private void configureLogLevels()\r\n { \r\n String level = properties.getProperty(\"LogLevel\");\r\n \r\n switch(level)\r\n {\r\n case \"INFO\": INFO = Level.INFO; \r\n DEBUG = Level.FINE; \r\n WARNING = Level.FINE;\r\n break;\r\n case \"DEBUG\": INFO = Level.INFO;\r\n DEBUG = Level.INFO; \r\n WARNING = Level.INFO;\r\n break;\r\n case \"WARNING\": INFO = Level.FINE; \r\n DEBUG = Level.FINE; \r\n WARNING = Level.INFO; \r\n break;\r\n default: INFO = Level.INFO; \r\n DEBUG = Level.FINE; \r\n WARNING = Level.WARNING;\r\n break;\r\n }\r\n }", "@Override\r\n\tpublic String format(LogRecord record) {\n\t\tDate date = new Date(record.getMillis());\r\n\t\tSimpleDateFormat format = new SimpleDateFormat(\"yyyy/MM/dd HH:mm:ss\");\r\n\t\treturn format.format(date)+\" \" + record.getLevel()+\": \\n\" + record.getMessage()+\"\\n\";\r\n\t\t\r\n\t}", "@Test\r\n\tpublic void logTest() {\r\n\t\tlogger.info(\"Testando info\");\r\n\t\tlogger.debug(\"nao sera logado\" + \"Nice\");\r\n\t\tlogger.error(\"This is Error message\", new Exception(\"Testing\"));\r\n\t}", "void log(Level level, String message);", "private native void Df1_Set_Log_Filter_Level(int level);", "protected String getDefaultLogLevel()\n {\n return DEFAULT_LOGLEVEL;\n }", "Update withLogLevel(String logLevel);", "public interface LoggerUtil {\n\t/**\n\t * Set the logger for the controller\n\t * \n\t * @param logName\n\t * @param filePath\n\t * @param logLevel\n\t * @return\n\t */\n\tLogger loggerArrangement(String logName, String filePath, LogeLevel logLevel);\n}", "public RevisorLogger getLogger();", "public static LoggerType init(Properties properties) {\n\n var loggerProperties = getLoggerProperties(properties);\n\n // fetch and verify definitions of some properties\n try {\n setOverrideLogbackLevels(loggerProperties);\n\n setLoggerLevel(loggerProperties, \"debugLogger.level\", \"INFO\", PolicyLogger::setDebugLevel);\n\n // Only check if it is to turn on or off\n setLoggerOnOff(loggerProperties, \"metricsLogger.level\", PolicyLogger::setMetricsLevel);\n setLoggerOnOff(loggerProperties, \"audit.level\", PolicyLogger::setAuditLevel);\n setLoggerOnOff(loggerProperties, \"error.level\", PolicyLogger::setErrorLevel);\n\n isEventTrackerRunning = false;\n\n timerDelayTime = getIntProp(loggerProperties, \"timer.delay.time\", timerDelayTime);\n checkInterval = getIntProp(loggerProperties, \"check.interval\", checkInterval);\n expiredTime = getIntProp(loggerProperties, \"event.expired.time\", expiredTime);\n concurrentHashMapLimit = getIntProp(loggerProperties, \"concurrentHashMap.limit\", concurrentHashMapLimit);\n stopCheckPoint = getIntProp(loggerProperties, \"stop.check.point\", stopCheckPoint);\n\n component = loggerProperties.getProperty(\"policy.component\", \"DROOLS\");\n debugLogger.info(\"component: {}\", component);\n\n return detmLoggerType(loggerProperties);\n\n } catch (Exception e) {\n MDC.put(ERROR_CATEGORY, ERROR_CATEGORY_VALUE);\n\n if (ErrorCodeMap.getErrorCodeInfo(MessageCodes.GENERAL_ERROR) != null) {\n MDC.put(ERROR_CODE, ErrorCodeMap.getErrorCodeInfo(MessageCodes.GENERAL_ERROR).getErrorCode());\n MDC.put(ERROR_DESCRIPTION, ErrorCodeMap.getErrorCodeInfo(MessageCodes.GENERAL_ERROR).getErrorDesc());\n\n }\n errorLogger.error(\"failed to get the policyLogger.properties, so use their default values\", e);\n\n return LoggerType.EELF;\n }\n\n }", "public ServicioLogger() {\n }", "@Test\n\tpublic void logExceptionAndFormattedStringWithThreeObject() {\n\t\tRuntimeException exception = new RuntimeException();\n\n\t\tlogger.logf(org.jboss.logging.Logger.Level.DEBUG, exception, \"%s, %s or %s\", \"one\", \"two\", \"three\");\n\n\t\tif (debugEnabled) {\n\t\t\tverify(provider).log(eq(2), isNull(), eq(Level.DEBUG), same(exception), any(PrintfStyleFormatter.class), eq(\"%s, %s or %s\"),\n\t\t\t\t\teq(\"one\"), eq(\"two\"), eq(\"three\"));\n\t\t} else {\n\t\t\tverify(provider, never()).log(anyInt(), anyString(), any(), any(), any(), any(), any());\n\t\t}\n\n\t\tlogger.logf(org.jboss.logging.Logger.Level.WARN, exception, \"%s, %s or %s\", \"one\", \"two\", \"three\");\n\n\t\tif (warnEnabled) {\n\t\t\tverify(provider).log(eq(2), isNull(), eq(Level.WARN), same(exception), any(PrintfStyleFormatter.class), eq(\"%s, %s or %s\"),\n\t\t\t\t\teq(\"one\"), eq(\"two\"), eq(\"three\"));\n\t\t} else {\n\t\t\tverify(provider, never()).log(anyInt(), anyString(), any(), any(), any(), any(), any());\n\t\t}\n\t}", "String getLogHandled();", "public String getLogLvlCd() {\n if (null == logLvlCd) {\n logLvlCd = \"ERROR\" ;\n } \n return logLvlCd;\n }" ]
[ "0.5856714", "0.5770758", "0.5716053", "0.56486714", "0.56319827", "0.55770785", "0.55676365", "0.5505521", "0.55054784", "0.55038804", "0.5452266", "0.54470086", "0.5438733", "0.54386735", "0.5388557", "0.5383515", "0.5383064", "0.5376696", "0.53689843", "0.5363944", "0.5358897", "0.53467304", "0.53410435", "0.5332696", "0.53268754", "0.5322788", "0.5313203", "0.5312968", "0.5303433", "0.5289978", "0.5289841", "0.52850527", "0.527621", "0.5274002", "0.527029", "0.52563787", "0.5255843", "0.52557623", "0.52485347", "0.52295923", "0.52260107", "0.5224087", "0.521597", "0.52136296", "0.5200294", "0.5197691", "0.5191852", "0.51912045", "0.5185516", "0.51839596", "0.51779044", "0.51724136", "0.5157128", "0.51518375", "0.5146406", "0.5136749", "0.5135415", "0.5134663", "0.51295006", "0.5125062", "0.5121098", "0.5115176", "0.51126254", "0.5110193", "0.5104891", "0.5100989", "0.51007074", "0.5096292", "0.509561", "0.50910646", "0.5085827", "0.5079371", "0.5078444", "0.5077952", "0.50734335", "0.5070874", "0.5068802", "0.50680095", "0.50678045", "0.50635207", "0.50623924", "0.5058484", "0.5046192", "0.50459135", "0.5043609", "0.503267", "0.50271183", "0.5026953", "0.50073975", "0.500439", "0.5000497", "0.49996907", "0.49940023", "0.49875692", "0.49808833", "0.49779436", "0.49728265", "0.4971165", "0.4966855", "0.49641877", "0.49558413" ]
0.0
-1
create position map of array of Strings: name > array position
public static Map<String,Integer> stringArrayToMap(String[] entries, boolean ignoreNull) { Map<String,Integer> map = new HashMap<String,Integer>(); if(entries==null) { throw new RuntimeException("StringArrayToMap: entries==null"); } for(int i=0;i<entries.length;i++) { if(entries[i]==null) { if(!ignoreNull) { log.warn("StringArrayToMap: entries["+i+"]==null ==> will not be included in map"); } } else { map.put(entries[i], i); } } return map; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private static void createMap()\r\n {\r\n position = new String[8][8];\r\n for(int i=0;i<8;i++)\r\n {\r\n int z=0;\r\n for(int j=72;j>=65;j--)\r\n {\r\n position[i][z]=(char)j+\"\"+(i+1); //uses ascii char placement for letters\r\n z++;\r\n }\r\n }\r\n \r\n }", "public int[] getMapPosition(){\n\t\treturn position;\n\t}", "public static int[] posNos(String position)\n\t{\n\t\tint[] pos = new int[2];\n\t\tfor(int rows = 0; rows < 8; rows++)\n\t\t{\n\t\t\tfor(int cols = 0; cols < 8; cols++)\n\t\t\t{\n\t\t\t\tif(posMap[rows][cols].equals(position))\n\t\t\t\t{\n\t\t\t\t\tpos[0] = rows; pos[1] = cols;\n\t\t\t\t\treturn pos;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn null;\n\t}", "public static int[] stringArrayToPositionIndexArray(String resultNames[], Map<String,Integer> sourcePosStringMap, boolean warn, boolean exception) {\n\t\tint[] sourcePos = new int[resultNames.length];\n\t\tfor(int i=0;i<resultNames.length;i++) {\n\t\t\tInteger pos = sourcePosStringMap.get(resultNames[i]);\n\t\t\tif(pos==null) {\n\t\t\t\tif(warn) {\n\t\t\t\t\tlog.warn(\"stringArrayToPositionIndexArray: \"+resultNames[i]+\" not in \"+sourcePosStringMap);\n\t\t\t\t}\n\t\t\t\tif(exception) {\n\t\t\t\t\tthrow new RuntimeException(\"stringArrayToPositionIndexArray: \"+resultNames[i]+\" not in \"+sourcePosStringMap);\n\t\t\t\t}\n\t\t\t\tsourcePos[i] = -1;\n\t\t\t} else {\n\t\t\t\tsourcePos[i] = pos;\n\t\t\t}\t\t\n\t\t}\n\t\treturn sourcePos;\n\t}", "private Map<Integer, Integer> buildRenaming() {\n\t\tMap<Integer, Integer> map = new HashMap<>();\n\n\t\tfor(int i = 0; i < this.dimension; i++){\n\t\t\tfor(int j = 0; j < this.dimension; j++)\n\t\t\t\tmap.put(board_p[i][j].var(), board[i][j].var());\n\t\t}\n\n\t\treturn map;\n\t}", "private void getMapping() {\n double [][] chars = new double[CHAR_SET_SIZE][1];\n for (int i = 0; i < chars.length; i++) {\n chars[i][0] = i;\n }\n Matrix b = new Matrix(key).times(new Matrix(chars));\n map = b.getArray();\n }", "public int[][] place(){\r\n\t\treturn coords(pos);\r\n\t}", "private void set_position(int pos[])\r\n\t{\r\n\t\tthis.position = pos;\r\n\t}", "public Point readPosition(String itemName) {\n int i;\n String pos = \"\";\n for (i = 0; i < inventory.size(); i++) {\n Map<String, Object> newItem = new HashMap<>();\n newItem = inventory.get(i);\n if (itemName.equals(newItem.get(\"Name\").toString())) {\n pos = newItem.get(\"Position\").toString();\n }\n }\n\n String sx = (pos.split(\",\"))[0];\n String sy = (pos.split(\",\"))[1];\n\n sx = sx.substring(1, sx.length());\n sy = sy.substring(0, sy.length() - 1);\n\n //transfer string to int\n int row = Integer.parseInt(sx);\n int col = Integer.parseInt(sy);\n\n //System.out.println(x);\n //System.out.println(y);\n Point a = new Point();\n a.x = row;\n a.y = col;\n //System.out.println(a);\n return a;\n\n }", "protected int[] pos(int raster, int[] pos) {\n return FormatTools.rasterToPosition(lengths, raster, pos);\n }", "public static int[] stringArrayToPositionIndexArray(String resultNames[], String[] sourcePosStringArray, boolean warn, boolean exception) {\n\t\treturn stringArrayToPositionIndexArray(resultNames,stringArrayToMap(sourcePosStringArray), warn, exception);\n\t}", "private int[] getIndexes(String name) {\n int[] indexes = (int[]) indexMap.get(name);\n if (indexes == null) {\n throw new IllegalArgumentException(\"Parameter not found: \" + name);\n }\n return indexes;\n }", "public int[] get_position()\r\n\t{\r\n\t\treturn this.position;\r\n\t}", "public void toDraw(String[] names, int[] positions)\r\n\t{\r\n\t\tsetArrayCounter(0);\r\n\t\tfind(names, positions, getRoot(), 1);\r\n\t}", "public void generatePositionGroups(){\n for (int i = 0; i < Input.length()+1; i++){\n PositionGroup pg = generatePositionGroupAt(i);\n PositionGroupList.add(pg);\n }\n }", "private static void setWordPosition() {\n\t\tSet setKeys = Utility.vocabHM.keySet();\n\t\tIterator i = setKeys.iterator();\n\t\tint position = 0;\n\t\twhile (i.hasNext()) {\n\t\t\tString w = (String) i.next();\n\t\t\tInteger rows[] = new Integer[2];\n\t\t\trows[0] = new Integer(position); /* word position */\n\t\t\trows[1] = (Integer) Utility.vocabHM.get(w); /* df */\n\n\t\t\tUtility.vocabHM.put(w, rows);\n\t\t\tposition++;\n\t\t}\n\t}", "protected int indexFromName(String name) {\n for (int index = 0; index < values.length; index++) {\n if (getNames()[index] == name) {\n return index;\n }\n }\n return -1;\n }", "public String [] getAnnotationList(String fieldName, int [] indices);", "ImmutableMap<ImmutableList<String>, Set<Location>> index(Set<Location> locations) {\n Map<ImmutableList<String>, Set<Location>> index = new HashMap<>(locations.size());\n for (Location location : locations) {\n for (String name : location.getNames()) {\n ImmutableList<String> tokens = tokenizer.tokenize(name);\n put(index, tokens, location);\n }\n }\n return ImmutableMap.copyOf(index);\n }", "public void EditMap(int new_x,int new_y,int x,int y,String name1,String name2) {\n\t\tif(name2==null) {\n\t\t\tname2 = \" \";\n\t\t}\n\t\tmap[x][y] = name2;\n\t\tmap[new_x][new_y] = name1;\n\t\t\n\t\t\n\t}", "private Collection<IndexedDiskElementDescriptor> createPositionSortedDescriptorList()\r\n {\r\n final List<IndexedDiskElementDescriptor> defragList = new ArrayList<>(keyHash.values());\r\n defragList.sort(Comparator.comparing(ded1 -> ded1.pos));\r\n\r\n return defragList;\r\n }", "private int[] hashpositions(String str) {\n\t\tint[] hashposition=new int[k];\n\t\tint hashcode;\n\t\tint index;\n\t\tMurmurHash3 hash=new MurmurHash3();\n\t\tfor(int i=1;i<=k;i++){\n\t\t\t\n\t\t\thashcode=hash.murmurhash3_x86_32(str, 0, str.length(), i);\n\t\t\tif(hashcode<0)\n\t\t\t\thashcode=~hashcode;\n\t\t\t\n\t\t\tindex= hashcode - (hashcode/m) * m;\n\t\t\t\n\t\t\thashposition[i-1]=index;\n\t\t\t\n\t\t}\n\t\t\n\t\treturn hashposition;\n\t}", "public int[] getPos(final String title) {\n\t\treturn getPos(title, null);\n\t}", "protected void storeLetterPositions () {\n letterLocations.clear();\n\n for (int row = 0; row < height; row++) {\n for (int col = 0; col < length; col++) {\n char c = board[row][col];\n if (letterLocations.containsKey(c)) {\n letterLocations.get(c).add(new ImmutablePair<>(row, col));\n } else {\n letterLocations.put(c, new HashSet<>(Arrays.asList(new ImmutablePair<>(row, col))));\n }\n }\n }\n }", "private void _createPositionsArray() {\n _positions = new Position[_errors.length];\n //DrJava.consoleErr().println(\"created pos arr: \" + _positions.length);\n\n // don't bother with anything else if there are no errors\n if (_positions.length == 0)\n return;\n\n try {\n String defsText = _document.getText(0, _document.getLength());\n //DrJava.consoleErr().println(\"got defs text, len=\" + defsText.length());\n\n int curLine = 0;\n int offset = 0; // offset is number of chars from beginning of file\n int numProcessed = 0;\n\n // offset is always pointing to the first character in a line\n // at the top of the loop\n while ((numProcessed < _errors.length) &&\n (offset < defsText.length()))\n {\n //DrJava.consoleErr().println(\"num processed: \" + numProcessed);\n\n // first figure out if we need to create any new positions on this line\n for (int i = numProcessed;\n (i < _errors.length) && (_errors[i].lineNumber() == curLine);\n i++)\n {\n _positions[i] = _document.createPosition(offset +\n _errors[i].startColumn());\n numProcessed++;\n }\n\n int nextNewline = defsText.indexOf('\\n', offset);\n if (nextNewline == -1) {\n break;\n }\n else {\n curLine++;\n offset = nextNewline + 1;\n }\n }\n }\n catch (BadLocationException ble) {\n throw new UnexpectedException(ble);\n }\n }", "public int[] getPosition(){\n return position;\n }", "public void setPositionname(java.lang.String newPositionname) {\n\tpositionname = newPositionname;\n}", "public void setPositionname(java.lang.String newPositionname) {\n\tpositionname = newPositionname;\n}", "public static int[][] fillMap(List<String> lines){\n int[][] map=new int[lines.size()][lines.get(0).length()];\n //find values of each spot\n for(int i=0;i<lines.size();i++){\n for(int j=0;j<lines.get(i).length();j++){\n char c=lines.get(i).charAt(j);\n switch (c) {\n case '_': //empty\n map[i][j]=0;\n break;\n case 'B': //Blue\n map[i][j]=1;\n break;\n case 'A': //Cyan\n map[i][j]=2;\n break;\n case 'W': //white\n map[i][j]=3;\n break;\n case 'R': //red\n map[i][j]=4;\n break;\n case 'P': //pink\n map[i][j]=5;\n break;\n case 'D': //magenta\n map[i][j]=6;\n break;\n case 'O': //orange\n map[i][j]=7;\n break;\n case 'G': //Green\n map[i][j]=8;\n break;\n case 'Y': //Yellow\n map[i][j]=9;\n break;\n case 'K': //Seafoam\n map[i][j]=10;\n break;\n case 'Q': //purple\n map[i][j]=11;\n break;\n default:\n map[i][j]=12; //shouldn't happen\n break;\n }\n }\n }\n return map;\n }", "@Override\r\n\tpublic String[][] mostraPosicao(String[][] mapa) {\n\t\treturn null;\r\n\t}", "private ArrayList<int[]> resolvePositions(List<Object> positions, Headers headers) {\n\n\t\tArrayList<int[]> sourceColumnTargetColumnIndexes = defaultSourceColumnTargetColumnIndexes;\n\n\t\tif (areDefault(positions)) {\n\t\t\tif (headers.exist()) {\n\t\t\t\tsourceColumnTargetColumnIndexes = getDefaultSourceColumnTargetColumnIndexes(headers.getCaptions().size());\n\t\t\t}\n\t\t\treturn sourceColumnTargetColumnIndexes;\n\t\t}\n\n\t\tint[] positionColumnIndexes = new int[positions.size()];\n\t\t\n\t\tint positionIndex = 0;\n\t\tfor (Object position : positions){\n\t\t\tif (position instanceof Integer) {\n\t\t\t\tint sourceColumnIndex = (Integer)position;\n\t\t\t\tif ((headers.exist() && (sourceColumnIndex > headers.getCaptions().size())) || (sourceColumnIndex <= 0)) {\n\t\t\t\t\tthrow new RuntimeException(\"Attempting to read column beyond bounds of record at position \" + String.valueOf(sourceColumnIndex));\n\t\t\t\t}\n\t\t\t\tpositionColumnIndexes[positionIndex++] = sourceColumnIndex;\n\t\t\t}\n\t\t\telse if (position instanceof String) {\n\t\t\t\tif (!headers.exist()) {\n\t\t\t\t\tthrow new RuntimeException(\"Attempting to read column at header \\\"\" + (String)position + \"\\\" but file has no headers\");\n\t\t\t\t}\n\n\t\t\t\tint sourceColumnIndex = headers.getCaptions().indexOf((String)position) + 1;\n\t\t\t\tif (sourceColumnIndex == 0) {\n\t\t\t\t\tthrow new RuntimeException(\"Attempting to read column with non-existing header \\\"\" + (String)position + \"\\\"\");\n\t\t\t\t}\n\t\t\t\tpositionColumnIndexes[positionIndex++] = sourceColumnIndex;\n\t\t\t}\n\t\t\telse {\n\t\t\t\tthrow new RuntimeException(\"Illegal column position specification\");\n\t\t\t}\n\t\t}\n\n\t\tint maxSourceColumnIndex = Arrays.stream(positionColumnIndexes).max().getAsInt();\n\n\t\tsourceColumnTargetColumnIndexes = new ArrayList<int[]>();\n\t\tfor (int sourceColumnIndex = 1; sourceColumnIndex <= maxSourceColumnIndex; sourceColumnIndex++) {\n\n\t\t\tList<Integer> targetColumnIndexes = new LinkedList<Integer>();\n\t\t\tfor (positionIndex = 0; positionIndex < positionColumnIndexes.length; positionIndex++) {\n\t\t\t\tif (positionColumnIndexes[positionIndex] == sourceColumnIndex) {\n\t\t\t\t\ttargetColumnIndexes.add(positionIndex + 1);\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\tsourceColumnTargetColumnIndexes.add(targetColumnIndexes.stream().mapToInt(i->i).toArray());\n\t\t}\n\n\t\treturn sourceColumnTargetColumnIndexes;\n\t}", "private void mapValues() {\n\t\tmap.put(1, \"I\");\r\n\t\tmap.put(5, \"V\");\r\n\t\tmap.put(10, \"X\");\r\n\t\tmap.put(50, \"L\");\r\n\t\tmap.put(100, \"C\");\r\n\t\tmap.put(500, \"D\");\r\n\t\tmap.put(1000, \"M\");\r\n\t}", "public void initPos(){\r\n for (int i=0; i< MAX_LENGTH; i++){\r\n pos[i] = i;\r\n }\r\n }", "Iterable<Position<E>> positions();", "private void placeRooms() {\n if (roomList.size() == 0) {\n throw new IllegalArgumentException(\"roomList must have rooms\");\n }\n // This is a nice cool square\n map = new int[MAP_SIZE][MAP_SIZE];\n\n for (Room room : roomList) {\n assignPosition(room);\n }\n }", "private void find(String[] names, int[] positions, Node current, int p)\r\n\t{\r\n\t\tif(current != null)\r\n\t\t{\r\n\t\t\tnames[getArrayCounter()] = current.getName();\r\n\t\t\tpositions[getArrayCounter()] = p;\r\n\t\t\tincrementArrayCounter();\r\n\t\t\t\r\n\t\t\t// Keep track of the position by multiplying by 5 every time we go left or adding 3 if we go right\r\n\t\t\tfind(names, positions, current.getLeftChild(), p*5);\r\n\t\t\tfind(names, positions, current.getRightChild(), p+3);\r\n\t\t}\r\n\t}", "public Map<String, List<Integer>> termsPositions(int doc) throws IOException {\n final LeafReader reader = this.context.reader();\n final Map<String, List<Integer>> positions = new HashMap<String, List<Integer>>();\n if (reader != null) {\n // get a list of map and their pairs\n for (final TermCountPair term : this.terms) {\n final PostingsEnum posting =\n reader.postings(new Term(this.privateField, term.getTerm()), PostingsEnum.POSITIONS);\n if (posting != null) {\n // move to the document currently looking at\n posting.advance(doc);\n int count = 0;\n final int freq = posting.freq();\n final List<Integer> pos = new ArrayList<Integer>();\n while (count < freq) {\n pos.add(new Integer(posting.nextPosition()));\n count += 1;\n }\n positions.put(term.getTerm(), pos);\n }\n }\n }\n return positions;\n }", "public interface PositionMapper {\n Position getPosition(Position position);\n\n boolean addPosition(Position position);\n\n List<Position> getPositions();\n\n boolean updatePosition(Position alterPosition);\n\n Position getUsingPosition(Position position);\n\n boolean updateDiscardPosition(Position position);\n\n boolean updateRecoverPosition(Position position);\n\n boolean deletePosition(Position position);\n\n List<Position> getPositionEmployee();\n\n List<Position> getDepartPositions(Department department);\n\n Position getRecoverPosition(Position position);\n\n Position getEmpPosition(Employee employee);\n\n Position getPositionByPosNo(Position originPosition);\n}", "Builder addPosition(String value);", "private void initMap(String day,int colIndex){\n position.put(day+\" 08\",new Pair(colIndex,1));\n position.put(day+\" 09\",new Pair(colIndex,2));\n position.put(day+\" 10\",new Pair(colIndex,3));\n position.put(day+\" 11\",new Pair(colIndex,4));\n position.put(day+\" 12\",new Pair(colIndex,5));\n position.put(day+\" 13\",new Pair(colIndex,6));\n position.put(day+\" 14\",new Pair(colIndex,7));\n position.put(day+\" 15\",new Pair(colIndex,8));\n position.put(day+\" 16\",new Pair(colIndex,9));\n position.put(day+\" 17\",new Pair(colIndex,10));\n position.put(day+\" 18\",new Pair(colIndex,11));\n position.put(day+\" 19\",new Pair(colIndex,12));\n position.put(day+\" 20\",new Pair(colIndex,13));\n }", "protected abstract int[][] getPossiblePositions();", "void cachePositions(Collection<Position> positions);", "public Position[] getPositions() {\n return _positions;\n }", "public int[] getposvalues( int size) {\n List<String> arrpos=new ArrayList<String>();\n int poss[]=new int[size];int h=0;\n SQLiteDatabase db = this.getReadableDatabase();\n Cursor cursor = db.rawQuery(\"select * from \" + TABLE_NAME ,null);\n if (cursor.moveToFirst()) {\n while (!cursor.isAfterLast()) {\n //String name = cursor.getString(cursor.getColumnIndex(POSITIONNO));\n poss[h]=Integer.parseInt(cursor.getString(cursor.getColumnIndex(POSITIONNO)));\n h++;\n // arrpos.add(name);\n cursor.moveToNext();\n }\n }\n\n\n return poss;\n }", "private void addEntry(String word, String file, int position, HashMap<String, ArrayList<Integer>> subIndex) {\n\t\tif (subIndex.containsKey(word)) {\r\n\t\t\t// checks if the file name is a key in the nested\r\n\t\t\t// hash map of the word\r\n\t\t\tsubIndex.get(word).add(position);\r\n\t\t\r\n\t\t/*\r\n\t\t * if the word is not yet a key, create a new entry in the hash map.\r\n\t\t * Create new hash map to hold the file the word is found and an array\r\n\t\t * to find the position Then put that in the wordMap hash map as value\r\n\t\t * and the word as a key.\r\n\t\t */\r\n\t\t}else {\r\n\t\t\tsubIndex.put(word, new ArrayList<Integer>());\r\n\t\t\tsubIndex.get(word).add(position);\r\n\t\t\r\n\t\t}\r\n\t\r\n\t}", "private int[] addLetterAroundPosition(int[] pos, String[][] level, String c) throws Exception{\r\n\t\tfor(int i = 0; i<200; i++){\r\n\t\t\t// Start at a random tile\r\n\t\t\tint x = rng.nextInt(3)-1;\r\n\t\t\tint y = rng.nextInt(3)-1;\r\n\t\t\r\n\t\t\tint newx = pos[0]-x;\r\n\t\t\tint newy = pos[1]-y;\r\n\t\t\t\r\n\t\t\tif(newx < 0 || newx > 5 || newy < 0 || newy > 5){\r\n\t\t\t\tcontinue;\r\n\t\t\t}\r\n\t\t\r\n\t\t\tif(level[newx][newy] == \"_\"){\r\n\t\t\t\t// If blank, just put in the char\r\n\t\t\t\tlevel[newx][newy] = c;\r\n\t\t\t\tint[] ret = {newx,newy};\r\n\t\t\t\treturn ret;\r\n\t\t\t} \r\n\t\t}\r\n\t\tthrow new Exception(\"Letter could not be placed around other tile\");\r\n\t}", "protected int[] pos(int raster) {\n return FormatTools.rasterToPosition(lengths, raster);\n }", "public abstract String getPos();", "void createIndex(){\n int index=0;\n for(int i=0;i<ancogs.size();i++)\n if(!cogToIndex.containsKey(ancogs.get(i).getValue2()))\n cogToIndex.put(ancogs.get(i).getValue2(), index++);\n}", "public int nameIndex();", "public int[] getSlicePosition();", "void locate(int pos, int [] ind)\n\t{\n\t\tind[0] = (int) pos / dimy; // x\n\t\tind[1] = pos % dimy; // y\t\n\t}", "void locate(int pos, int[] ind) {\r\n\t\tind[0] = (int) pos / (dimx * dimy); // t\r\n\t\tind[1] = (pos % (dimx * dimy)) / dimy; // x\r\n\t\tind[2] = pos % (dimy); // y\r\n\t}", "private Map createSpecimenArrayMap(SpecimenArrayForm specimenArrayForm)\r\n\t{\r\n\t\tfinal Map arrayContentMap = new HashMap();\r\n\t\tString value = \"\";\r\n\t\tfinal int rowCount = specimenArrayForm.getOneDimensionCapacity();\r\n\t\tfinal int columnCount = specimenArrayForm.getTwoDimensionCapacity();\r\n\r\n\t\tfor (int i = 0; i < rowCount; i++)\r\n\t\t{\r\n\t\t\tfor (int j = 0; j < columnCount; j++)\r\n\t\t\t{\r\n\t\t\t\tfor (int k = 0; k < AppletConstants.ARRAY_CONTENT_ATTRIBUTE_NAMES.length; k++)\r\n\t\t\t\t{\r\n\t\t\t\t\tvalue = \"\";\r\n\t\t\t\t\tif (k == AppletConstants.ARRAY_CONTENT_ATTR_POS_DIM_ONE_INDEX)\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tvalue = String.valueOf(i + 1);\r\n\t\t\t\t\t}\r\n\t\t\t\t\tif (k == AppletConstants.ARRAY_CONTENT_ATTR_POS_DIM_TWO_INDEX)\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tvalue = String.valueOf(j + 1);\r\n\t\t\t\t\t}\r\n\t\t\t\t\tarrayContentMap.put(SpecimenArrayAppletUtil\r\n\t\t\t\t\t\t\t.getArrayMapKey(i, j, columnCount, k), value);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn arrayContentMap;\r\n\t}", "public static int[] ScreenToLevelCoordinates(Vector2 position) {\n\t\tint[] levelPos = new int[2];\n\t\tposition.sub(X_OFFSET*TILE_SIZE, Y_OFFSET*TILE_SIZE);\n\t\tint gridX = (int)position.x/TILE_SIZE;\n\t\tint gridY = (int)position.y/TILE_SIZE;\n\t\tlevelPos[0] = gridX;\n\t\tlevelPos[1] = gridY;\n\t\treturn levelPos;\n\t}", "private void processNameToObjectMap() {\r\n for (int i = 0; i < this.getObjectGroupCount(); i++) {\r\n ObjectGroup g = this.objectGroups.get(i);\r\n this.objectGroupNameToOffset.put(g.name, i);\r\n HashMap<String, Integer> nameToObjectMap = new HashMap<String, Integer>();\r\n for (int ib = 0; ib < this.getObjectCount(i); ib++) {\r\n nameToObjectMap.put(this.getObjectName(i, ib), ib);\r\n }\r\n g.setObjectNameMapping(nameToObjectMap);\r\n }\r\n }", "public final void getRelativePosition(int[] position) {\n\t\tfor (int i = 0; i < position.length; i++) {\n\t\t\tposition[i] = this.position[i];\n\t\t}\n\t}", "public int position(String fieldName) {\n if (fieldPositions.containsKey(fieldName)) {\n return fieldPositions.get(fieldName);\n } else {\n throw new DatasetException(\"Cannot recover \" + fieldName + \" from key\");\n }\n }", "private int nameToPropertiesColumnIndex(String name) {\n \tInteger index = (Integer)nameToPropertiesColumnIndex.get(name);\n return (index != null) ? index.intValue() : -1;\n }", "public abstract int [] getPressPosition();", "private void buildLabelLocs() {\n this.labelLocs = new HashMap<String, Integer>();\n for (int n = 0; n < this.code.size(); n++) {\n TACOp op = this.code.get(n);\n if (op.getType() == TACOpType.LABEL) {\n this.labelLocs.put(op.getLabel(), n);\n }\n }\n }", "MapType map(List<ReferenceOrderedDatum> rodData, char ref, LocusContext context);", "private int nameToPropertiesRowIndex(String name) {\n \tInteger index = (Integer)nameToPropertiesRowIndex.get(name);\n return (index != null) ? index.intValue() : -1;\n }", "public List<Position> getPositions(){\r\n List<Position> listPosition = new ArrayList();\r\n int row=currentPosition.getRow(),column=currentPosition.getColumn();\r\n listPosition=getPositionFor(row, column, listPosition);\r\n return listPosition;\r\n }", "private Map<Integer, Set<Integer>> getRowsPerPosition(List<List<Integer>> positions) {\r\n\t\tMap<Integer, Set<Integer>> map = new HashMap<>();\r\n\t\tfor (int rowIndex = 0; rowIndex < positions.size(); rowIndex++) {\r\n\t\t\tList<Integer> row = positions.get(rowIndex);\r\n\t\t\tfor (int position : row) {\r\n\t\t\t\tif (!map.containsKey(position)) {\r\n\t\t\t\t\tmap.put(position, new HashSet<Integer>());\r\n\t\t\t\t}\r\n\t\t\t\tmap.get(position).add(rowIndex);\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn map;\r\n\t}", "public abstract String[] map() throws TooFewNocNodesException;", "RealLocalizable getPosition();", "public int search(String name){\n\t\tfor(Map.Entry<String, Integer> e : map.entrySet()){\n\t\t\tif(e.getKey().equals(name)){\n\t\t\t\treturn e.getValue();\n\t\t\t}\n\t\t}\n\t\tthrow new NullPointerException();\n\t\t/*\n\t\twhile(pointer < locations.length){\n\t\t\tif(locations[pointer].getName() == name){\n\t\t\t\tmap.put(locations[pointer].getName(), locations[pointer].getID());\n\t\t\t\tpointer++;\n\t\t\t\treturn locations[pointer - 1].getID();\n\t\t\t} else {\n\t\t\t\tmap.put(locations[pointer].getName(), locations[pointer].getID());\n\t\t\t\tpointer++;\n\t\t\t}\n\t\t}\n\t\tthrow new NullPointerException();\n\t\t*/\n\t}", "public static void addToMap(String Name)\n {\n Name = Name.toLowerCase(); // convert name to lower case\n String[] splitItup = new String[Name.split(\"[ ]+\").length]; // split the name according to spaces\n splitItup = Name.split(\"[ ]+\");\n \n for(String words : splitItup)\n {\n if (map.get(words) == null) // if word doesnt exist in the map, put it there\n {\n map.putIfAbsent(words, new ArrayList<Integer>());\n }\n\n map.get(words).add(productList.size()-1); // add the index to the arraylist\n }\n }", "public void tempArray() {\n for (int i = 0; i < newWord.length(); i++) {\n for (String c : keySetNewWord) {\n if(String.valueOf(newWord.charAt(i)).equals(c)) {\n int p = mapNewWord.get(c) + 1;\n mapNewWord.put(c, p);\n }\n }\n }\n }", "public static Hashtable<Integer, Integer> BuildSectionForPositionMap(Passagem[] passagens)\n {\n Hashtable results = new Hashtable<Integer, Integer>();\n TreeSet<String> used = new TreeSet<>();\n int section = -1;\n\n if(passagens != null) {\n for (int i = 0; i < passagens.length; i++) {\n String letter = passagens[i].getNome().substring(0, 1);\n\n if (!used.contains(letter)) {\n section++;\n used.add(letter);\n }\n\n results.put(i, section);\n }\n }\n return results;\n }", "public long getPositions() {\n return positions;\n }", "int getGroupIndex(int position);", "public Position[] getWinningPositions();", "private void initializeNamesMap (Workspace[] wss) {\n // fill name mapping with proper values\n namesMap = new HashMap(wss.length * 2);\n for (int i = 0; i < wss.length; i++) {\n // create new string for each display name to be able to search\n // using '==' operator in findProgrammaticName(String displayName) method\n namesMap.put(wss[i].getName(), new String(wss[i].getDisplayName()));;\n }\n }", "public int[] getMapPosition(double[] gpsCoord){\n\t\tint[] mapPosition = new int[2];\n\t\tmapPosition[0] = (int) Math.round(gpsCoord[0]*9);\n\t\tmapPosition[1] = (int) Math.round(gpsCoord[2]*9);\t\t\t\n\t\treturn mapPosition;\n\t}", "public char[] getPositions() {\r\n\t\treturn rotors.getPositions();\r\n\t}", "private int getPoints(final String name) {\n\t\treturn getValue(name, POINTS);\n\t}", "public int getPos();", "public int getPos();", "Position_Position createPosition_Position();", "public int[] getArrayItemIndicesUsingMap(int[] arrayItems, int target) {\n\n if (Objects.isNull(arrayItems) || arrayItems.length == 0) {\n return null;\n }\n\n HashMap<Integer, Integer> hsMap = new HashMap<>();\n for (int i = 0; i < arrayItems.length; i++) {\n if (hsMap.containsKey(target - arrayItems[i])) {\n return new int[]{hsMap.get(target - arrayItems[i]), i};\n }\n hsMap.put(arrayItems[i], i);\n }\n return null;\n }", "public List<Position> getPositionFor(int row,int column,\r\n List<Position> listPos){\r\n for(int i=0;i<size;i++){\r\n listPos.add(new Position(row,column));\r\n if(orientation == Orientation.HORIZONTAL)\r\n column++;\r\n else\r\n row++;\r\n }\r\n return listPos;\r\n }", "public Map<Float, Float> lookupTermPosition(LeafReader reader, int doc, BytesRef term)\n throws IOException {\n final PostingsEnum posting =\n reader.postings(new Term(this.privateField, term), PostingsEnum.POSITIONS);\n final Map<Float, Float> positions = new HashMap<Float, Float>();\n if (posting != null) {\n // move to the document currently looking at\n posting.advance(doc);\n // get a dictionary of the each potential formula to match to and total number of matches\n int count = 0;\n while (count < posting.freq()) {\n final Float position = new Float(posting.nextPosition());\n final Float freq = positions.get(position);\n if (freq == null) {\n positions.put(position, new Float(1));\n } else {\n positions.put(position, freq + new Float(1));\n }\n count += 1;\n }\n }\n return positions;\n }", "public static Hashtable<Integer, Integer> BuildPositionForSectionMap(Passagem[] passagens)\n {\n Hashtable results = new Hashtable<Integer, Integer>();\n TreeSet<String> used = new TreeSet<>();\n int section = -1;\n\n if(passagens != null) {\n for (int i = 0; i < passagens.length; i++) {\n String letter = passagens[i].getNome().substring(0, 1);\n\n if (!used.contains(letter)) {\n section++;\n used.add(letter);\n results.put(section, i);\n }\n }\n }\n return results;\n }", "public ArrayList<Integer> position(ArrayList<String> tableNames) {\r\n\t\tArrayList<Integer> positions = new ArrayList<Integer>();\r\n\t\tfor (String table : tableNames) {\r\n\t\t\tfor (int i = 0; i < this.getTableNumber(); i++) {\r\n\t\t\t\tif (table.equals(this.getTables(i).getName())) {\r\n\t\t\t\t\tpositions.add(i);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn positions;\r\n\t}", "public String getObjectNameOnPos(TiledMap tiledMap, Vector2 pos) {\n for (MapLayer layer : tiledMap.getLayers()) {\n for (MapObject obj : tiledMap.getLayers().get(layer.getName()).getObjects()) {\n Rectangle rect = ((RectangleMapObject) obj).getRectangle();\n int layer_x = (int) rect.x / GameScreen.TILE_AREA;\n int layer_y = (int) rect.y / GameScreen.TILE_AREA;\n\n if (pos.x == layer_x && pos.y == layer_y) {\n return obj.getName();\n }\n }\n }\n return \"\";\n }", "public java.lang.String getPositionname() {\n\treturn positionname;\n}", "public java.lang.String getPositionname() {\n\treturn positionname;\n}", "public Point getLabelPosition();", "public void setCoordinates(int pos){\n if(this.pIndex<2){\n this.coordinates[0]=TILE_SIZE*15-DICE_SIZE-pos;}\n else{\n this.coordinates[0]=pos;}\n if(this.pIndex%3==0){\n this.coordinates[1]=pos;}\n else{\n this.coordinates[1]=TILE_SIZE*15-DICE_SIZE-pos;}\n }", "Position createPosition();", "private void intElementCoordinates() throws InvalidLevelCharacterException, NoGhostSpawnPointException, NoPacmanSpawnPointException, NoItemsException {\n\n\t\tint ps = 0;// player spawn point counter\n\t\tint gs = 0;// ghost spawn point counter\n\t\tint item = 0;// item counter\n\t\t\n\t\t\tfor (int i = 0; i < height; i++) {\n\t\t\t\tfor (int j = 0; j < width; j++) {\n\t\t\t\t\t// j*MAPDENSITY as x coordinate, i*MAPDENSITY as y\n\t\t\t\t\t// coordinate\n\t\t\t\t\tfloat[] xy = { j * MAPDENSITY, i * MAPDENSITY };\n\t\t\t\t\t// add coordinates in to right category\n\t\t\t\t\tif (mapElementStringArray[i][j].equals(\"X\")) {\n\t\t\t\t\t\tmapElementArray[i][j] = new Wall(new Vector2f(xy), getWallType(\n\t\t\t\t\t\t\t\ti, j));\n\t\t\t\t\t} else if (mapElementStringArray[i][j].equals(\" \")) {\n\t\t\t\t\t\tmapElementArray[i][j] = new Dot(new Vector2f(xy), getForksForPacman(i, j), getForksForGhost(i, j));\n\t\t\t\t\t\tdots.add((Dot)mapElementArray[i][j]);\n\t\t\t\t\t\titem++;\n\t\t\t\t\t} else if (mapElementStringArray[i][j].equals(\"P\")) {\n\t\t\t\t\t\tmapElementArray[i][j] = new PlayerSpawnPoint(new Vector2f(xy), getForksForPacman(i, j), getForksForGhost(i, j));\n\t\t\t\t\t\tplayerSpawnPoints.add((PlayerSpawnPoint)mapElementArray[i][j]);\n\t\t\t\t\t\taPlayerSpawnPointRow=i;\n\t\t\t\t\t\taPlayerSpawnPointCol=j;\n\t\t\t\t\t\tps++;\n\t\t\t\t\t} else if (mapElementStringArray[i][j].equals(\"G\")) {\n\t\t\t\t\t\tmapElementArray[i][j] = new GhostSpawnPoint(new Vector2f(xy),getForksForPacman(i, j), getForksForGhost(i, j));\n\t\t\t\t\t\tghostSpawnPoints.add((GhostSpawnPoint)mapElementArray[i][j]);\n\t\t\t\t\t\tgs++;\n\t\t\t\t\t} else if (mapElementStringArray[i][j].equals(\"B\"))\n\t\t\t\t\t\tmapElementArray[i][j] = new InvisibleWall(new Vector2f(xy), getForksForPacman(i, j), getForksForGhost(i, j));\n\t\t\t\t\telse if (mapElementStringArray[i][j].equals(\"S\")) {\n\t\t\t\t\t\tmapElementArray[i][j] = new SpeedUp(new Vector2f(xy), getForksForPacman(i, j), getForksForGhost(i, j));\n\t\t\t\t\t\tspeedUps.add((SpeedUp)mapElementArray[i][j]);\n\t\t\t\t\t\titem++;\n\t\t\t\t\t} else if (mapElementStringArray[i][j].equals(\"T\")){\n\t\t\t\t\t\tmapElementArray[i][j] = new Teleporter(new Vector2f(xy),getForksForPacman(i, j), getForksForGhost(i, j));\n\t\t\t\t\t\tteleporters.add((Teleporter)mapElementArray[i][j]);\n\t\t\t\t\t}\n\t\t\t\t\telse if (mapElementStringArray[i][j].equals(\"U\")) {\n\t\t\t\t\t\tmapElementArray[i][j] = new PowerUp(new Vector2f(xy), getForksForPacman(i, j), getForksForGhost(i, j));\n\t\t\t\t\t\tpowerUps.add((PowerUp)mapElementArray[i][j]);\n\t\t\t\t\t\titem++;\n\t\t\t\t\t} else\n\t\t\t\t\t\t// thrwo invalidLevelCharacterException\n\t\t\t\t\t\tthrow new InvalidLevelCharacterException(\n\t\t\t\t\t\t\t\tmapElementStringArray[i][j].charAt(0));\n\n\t\t\t\t}\n\t\t\t}\n\t\t\t// check for PacmanSpawnPoint, GhostSpawnPoint and item exceptions\n\t\t\tif (gs == 0)\n\t\t\t\tthrow new NoGhostSpawnPointException();\n\t\t\tif (ps == 0)\n\t\t\t\tthrow new NoPacmanSpawnPointException();\n\t\t\tif (item == 0)\n\t\t\t\tthrow new NoItemsException();\n\t\t\n\t}", "public String getPositionName() {\n\t\treturn positionName;\n\t}", "private int createPosition (String s) {\r\n\t\tint x = 37;\r\n\t\tdouble hashCode=0;\r\n\t\tfor (int i=0; i<s.length(); i++) {\r\n\t\t\thashCode = (double) (hashCode+ (int)(s.charAt(s.length()-(i+1)))*(Math.pow(x,i)));\r\n\t\t}\r\n\t\treturn (int)(hashCode % size);\r\n\t}", "private int getArrayIndex() {\n\t\tswitch (getId()) {\n\t\tcase 3493:\n\t\t\treturn Recipe_For_Disaster.AGRITH_NA_NA_INDEX;\n\t\tcase 3494:\n\t\t\treturn Recipe_For_Disaster.FLAMBEED_INDEX;\n\t\tcase 3495:\n\t\t\treturn Recipe_For_Disaster.KARAMEL_INDEX;\n\t\tcase 3496:\n\t\t\treturn Recipe_For_Disaster.DESSOURT_INDEX;\n\t\t}\n\t\treturn -1;\n\t}", "public TermToVertexCount[] getVertexMappings(String term)\n {\n if(stem)\n { // Stem if required\n term = PorterStemmerTokenizerFactory.stem(term);\n }\n \n int pos = Arrays.binarySearch(terms, new TermToVertexCount(term),\n new TermToVertexCountComparator());\n\n if(pos >= 0)\n { // FOUND!\n TermToVertexCount[] arr = new TermToVertexCount[1];\n arr[0] = new TermToVertexCount(term, terms[pos].getVertexCounts());\n return arr;\n }\n else\n {\n return null;\n }\n }", "public int getIndex(int position);", "public int[] getPosition() {\n\t\tint[] res = {x, y};\n\t\treturn res;\n\t}", "private static int getItemPosition(String name){\n\t\tfor(int i=0;i<ItemListController.getItemListInstance().size();i++){\n\t\t\tif (ItemListController.getItemListInstance().get(i).getName()==name){\n\t\t\t\treturn i;\n\t\t\t}\n\t\t}\n\t\treturn -1;\n\t}", "public void buildMap()\n {\n for(int letterNum=0; letterNum < myText.length()-myNum; letterNum++) {\n String key = myText.substring(letterNum,letterNum+myNum);\n String nextLetter = String.valueOf(myText.charAt(letterNum + myNum));\n if (!map.containsKey(key)) {\n ArrayList<String> lettersArray = new ArrayList<String>();\n lettersArray.add(nextLetter);\n map.put(key,lettersArray);\n }else\n {\n map.get(key).add(nextLetter);\n }\n }\n }" ]
[ "0.6554694", "0.6039436", "0.5869684", "0.5656721", "0.5600335", "0.5423876", "0.53835386", "0.53597564", "0.5259704", "0.5257844", "0.51998407", "0.51661277", "0.5161264", "0.51552445", "0.5085635", "0.5075469", "0.5059923", "0.5058317", "0.50539476", "0.5053384", "0.50526905", "0.50519323", "0.50385267", "0.5037843", "0.5035289", "0.5023736", "0.5011663", "0.5011663", "0.49856675", "0.4981277", "0.4970741", "0.49656752", "0.49397314", "0.49142548", "0.49113548", "0.49075997", "0.4902436", "0.48983845", "0.48982835", "0.4883913", "0.48820287", "0.4866747", "0.4859672", "0.48592225", "0.48482957", "0.4841823", "0.4839421", "0.48384717", "0.48377988", "0.48368877", "0.4833229", "0.48259142", "0.48200446", "0.48072037", "0.480649", "0.48045287", "0.47928348", "0.47819504", "0.47816178", "0.47814173", "0.47784537", "0.47744235", "0.47739792", "0.47681448", "0.47656843", "0.47578442", "0.47359136", "0.473051", "0.47249132", "0.4724339", "0.47221756", "0.47210824", "0.4709978", "0.47074714", "0.47000638", "0.47000438", "0.46822086", "0.4681302", "0.46801895", "0.46801895", "0.46789092", "0.46765298", "0.46744132", "0.46682718", "0.46636203", "0.4659136", "0.46574676", "0.4657368", "0.4657368", "0.46536788", "0.4650818", "0.4648163", "0.4647299", "0.4644875", "0.46408075", "0.46393648", "0.4635553", "0.4632974", "0.4629218", "0.46282643", "0.46239883" ]
0.0
-1
create an array of positions of entries in resultNames with positions of sourcePosStringArray
public static int[] stringArrayToPositionIndexArray(String resultNames[], String[] sourcePosStringArray, boolean warn, boolean exception) { return stringArrayToPositionIndexArray(resultNames,stringArrayToMap(sourcePosStringArray), warn, exception); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static int[] stringArrayToPositionIndexArray(String resultNames[], Map<String,Integer> sourcePosStringMap, boolean warn, boolean exception) {\n\t\tint[] sourcePos = new int[resultNames.length];\n\t\tfor(int i=0;i<resultNames.length;i++) {\n\t\t\tInteger pos = sourcePosStringMap.get(resultNames[i]);\n\t\t\tif(pos==null) {\n\t\t\t\tif(warn) {\n\t\t\t\t\tlog.warn(\"stringArrayToPositionIndexArray: \"+resultNames[i]+\" not in \"+sourcePosStringMap);\n\t\t\t\t}\n\t\t\t\tif(exception) {\n\t\t\t\t\tthrow new RuntimeException(\"stringArrayToPositionIndexArray: \"+resultNames[i]+\" not in \"+sourcePosStringMap);\n\t\t\t\t}\n\t\t\t\tsourcePos[i] = -1;\n\t\t\t} else {\n\t\t\t\tsourcePos[i] = pos;\n\t\t\t}\t\t\n\t\t}\n\t\treturn sourcePos;\n\t}", "private void _createPositionsArray() {\n _positions = new Position[_errors.length];\n //DrJava.consoleErr().println(\"created pos arr: \" + _positions.length);\n\n // don't bother with anything else if there are no errors\n if (_positions.length == 0)\n return;\n\n try {\n String defsText = _document.getText(0, _document.getLength());\n //DrJava.consoleErr().println(\"got defs text, len=\" + defsText.length());\n\n int curLine = 0;\n int offset = 0; // offset is number of chars from beginning of file\n int numProcessed = 0;\n\n // offset is always pointing to the first character in a line\n // at the top of the loop\n while ((numProcessed < _errors.length) &&\n (offset < defsText.length()))\n {\n //DrJava.consoleErr().println(\"num processed: \" + numProcessed);\n\n // first figure out if we need to create any new positions on this line\n for (int i = numProcessed;\n (i < _errors.length) && (_errors[i].lineNumber() == curLine);\n i++)\n {\n _positions[i] = _document.createPosition(offset +\n _errors[i].startColumn());\n numProcessed++;\n }\n\n int nextNewline = defsText.indexOf('\\n', offset);\n if (nextNewline == -1) {\n break;\n }\n else {\n curLine++;\n offset = nextNewline + 1;\n }\n }\n }\n catch (BadLocationException ble) {\n throw new UnexpectedException(ble);\n }\n }", "private ArrayList<int[]> resolvePositions(List<Object> positions, Headers headers) {\n\n\t\tArrayList<int[]> sourceColumnTargetColumnIndexes = defaultSourceColumnTargetColumnIndexes;\n\n\t\tif (areDefault(positions)) {\n\t\t\tif (headers.exist()) {\n\t\t\t\tsourceColumnTargetColumnIndexes = getDefaultSourceColumnTargetColumnIndexes(headers.getCaptions().size());\n\t\t\t}\n\t\t\treturn sourceColumnTargetColumnIndexes;\n\t\t}\n\n\t\tint[] positionColumnIndexes = new int[positions.size()];\n\t\t\n\t\tint positionIndex = 0;\n\t\tfor (Object position : positions){\n\t\t\tif (position instanceof Integer) {\n\t\t\t\tint sourceColumnIndex = (Integer)position;\n\t\t\t\tif ((headers.exist() && (sourceColumnIndex > headers.getCaptions().size())) || (sourceColumnIndex <= 0)) {\n\t\t\t\t\tthrow new RuntimeException(\"Attempting to read column beyond bounds of record at position \" + String.valueOf(sourceColumnIndex));\n\t\t\t\t}\n\t\t\t\tpositionColumnIndexes[positionIndex++] = sourceColumnIndex;\n\t\t\t}\n\t\t\telse if (position instanceof String) {\n\t\t\t\tif (!headers.exist()) {\n\t\t\t\t\tthrow new RuntimeException(\"Attempting to read column at header \\\"\" + (String)position + \"\\\" but file has no headers\");\n\t\t\t\t}\n\n\t\t\t\tint sourceColumnIndex = headers.getCaptions().indexOf((String)position) + 1;\n\t\t\t\tif (sourceColumnIndex == 0) {\n\t\t\t\t\tthrow new RuntimeException(\"Attempting to read column with non-existing header \\\"\" + (String)position + \"\\\"\");\n\t\t\t\t}\n\t\t\t\tpositionColumnIndexes[positionIndex++] = sourceColumnIndex;\n\t\t\t}\n\t\t\telse {\n\t\t\t\tthrow new RuntimeException(\"Illegal column position specification\");\n\t\t\t}\n\t\t}\n\n\t\tint maxSourceColumnIndex = Arrays.stream(positionColumnIndexes).max().getAsInt();\n\n\t\tsourceColumnTargetColumnIndexes = new ArrayList<int[]>();\n\t\tfor (int sourceColumnIndex = 1; sourceColumnIndex <= maxSourceColumnIndex; sourceColumnIndex++) {\n\n\t\t\tList<Integer> targetColumnIndexes = new LinkedList<Integer>();\n\t\t\tfor (positionIndex = 0; positionIndex < positionColumnIndexes.length; positionIndex++) {\n\t\t\t\tif (positionColumnIndexes[positionIndex] == sourceColumnIndex) {\n\t\t\t\t\ttargetColumnIndexes.add(positionIndex + 1);\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\tsourceColumnTargetColumnIndexes.add(targetColumnIndexes.stream().mapToInt(i->i).toArray());\n\t\t}\n\n\t\treturn sourceColumnTargetColumnIndexes;\n\t}", "private List<LatLng> getLatLngFromResultIndexes(List<Result> results, List<Integer> indexes) {\n List<LatLng> reqResults = new ArrayList<>();\n\n for (int i : indexes) {\n if (i == -1) // For when it starts with a minima\n reqResults.add(null);\n else\n reqResults.add(results.get(i).getLocation());\n }\n\n return reqResults;\n }", "static int[] getFirstResultString(int[] array){\n int from = (n * (lineNumber-1));\n int[] rezultColumn = Arrays.copyOfRange(array, from, from + n);\n return rezultColumn;\n }", "public String [] getAnnotationList(String fieldName, int [] indices);", "@VisibleForTesting\n int[] findMatches(Token[] source, Token[] target) {\n final LevenshteinDistance table = new LevenshteinDistance(source, target);\n table.calculate();\n final int targetLen = target.length;\n final int[] result = new int[targetLen];\n LevenshteinDistance.EditOperation[] ops = table.getTargetOperations();\n for (int i = 0; i < targetLen; ++i) {\n if (ops[i].getType() == LevenshteinDistance.EDIT_UNCHANGED) {\n result[i] = ops[i].getPosition();\n } else {\n result[i] = -1;\n }\n }\n return result;\n }", "public Integer[] indicesOf(String text, String[] targetArray) {\n List<Integer> indices = new ArrayList<Integer>();\n\n for(int i = 0; i < targetArray.length; i++ ) {\n if(targetArray[i].contains(text)) {\n indices.add(i);\n }\n }\n //convert list to array\n return indices.toArray(new Integer[indices.size()]);\n }", "public static int[] posNos(String position)\n\t{\n\t\tint[] pos = new int[2];\n\t\tfor(int rows = 0; rows < 8; rows++)\n\t\t{\n\t\t\tfor(int cols = 0; cols < 8; cols++)\n\t\t\t{\n\t\t\t\tif(posMap[rows][cols].equals(position))\n\t\t\t\t{\n\t\t\t\t\tpos[0] = rows; pos[1] = cols;\n\t\t\t\t\treturn pos;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn null;\n\t}", "private Set<Pair<String,String>> projectFromTuples(List<Pair<Tuple,String>> tuplesWithSource, int projectPosition) {\n\t\tSet<Pair<String,String>> valuesWithSource = new HashSet<Pair<String,String>>();\n\t\tfor (Pair<Tuple,String> pair : tuplesWithSource) {\n\t\t\tString value = pair.getFirst().getStringValues().get(projectPosition);\n\t\t\tString source = pair.getSecond();\n\t\t\tvaluesWithSource.add(new Pair<String,String>(value,source));\n\t\t}\n\t\treturn valuesWithSource;\n\t}", "private static short[][] translateResult(String[] exactCoverPartition) {\r\n\t\t\r\n\t\tshort[][] retVal = new short[9][9];\r\n\t\t\r\n\t\tfor(int i =0; i < exactCoverPartition.length;i++){\r\n\r\n\t\t\tString[] result = exactCoverPartition[i].split(\",\");\r\n\t\t\tint xCoord = Integer.parseInt(result[0]);\r\n\t\t\tint yCoord = Integer.parseInt(result[1]);\r\n\t\t\tshort value = Short.parseShort(result[2]);\r\n\t\t\t\r\n\t\t\tretVal[yCoord][xCoord] = (short)(value+1);\r\n\t\t\t\r\n\t\t}\r\n\t\t\r\n\t\treturn retVal;\r\n\t}", "public int[] getposvalues( int size) {\n List<String> arrpos=new ArrayList<String>();\n int poss[]=new int[size];int h=0;\n SQLiteDatabase db = this.getReadableDatabase();\n Cursor cursor = db.rawQuery(\"select * from \" + TABLE_NAME ,null);\n if (cursor.moveToFirst()) {\n while (!cursor.isAfterLast()) {\n //String name = cursor.getString(cursor.getColumnIndex(POSITIONNO));\n poss[h]=Integer.parseInt(cursor.getString(cursor.getColumnIndex(POSITIONNO)));\n h++;\n // arrpos.add(name);\n cursor.moveToNext();\n }\n }\n\n\n return poss;\n }", "private void buildLabelLocs() {\n this.labelLocs = new HashMap<String, Integer>();\n for (int n = 0; n < this.code.size(); n++) {\n TACOp op = this.code.get(n);\n if (op.getType() == TACOpType.LABEL) {\n this.labelLocs.put(op.getLabel(), n);\n }\n }\n }", "private Character[] characterResultsToArray(GenericList<Character> results, Comparator<Character> c) {\n Character[] resultArray = new Character[results.size()];\n int i = 0;\n for(Character characterResult : results) {\n resultArray[i] = characterResult;\n i++;\n }\n MergeSort.sort(resultArray, c);\n return resultArray;\n }", "private int[] parseArgsAsIndex(String args) throws ParseException {\n\n Matcher matcher = INDEX_ARGS_FORMAT.matcher(args.trim());\n if (!matcher.matches()) {\n throw new ParseException(\"Could not match to the correct index.\");\n }\n return Stream.of(matcher.group(\"targetIndex\").split(\"\\\\s+\")).mapToInt(Integer::parseInt).toArray();\n }", "public String[] locationNames(){\n\t\tString[] s = new String[locations.length];\n\t\tfor(int i=0; i<locations.length; i++){\n\t\t\ts[i] = locations[i].toString();\n\t\t}\n\t\treturn s;\n\t\t//return Arrays.copyOf(locations, locations.length, String[].class);\n\t}", "private int [] createXArray(){\r\n\t\tint [] xCoord = {\r\n\t\t\t\txStart,\r\n\t\t\t\txStart + 50,\r\n\t\t\t\txStart + 65,\r\n\t\t\t\txStart + 65,\r\n\t\t\t\txStart + 50, \r\n\t\t\t\txStart,\r\n\t\t\t\txStart,\r\n\t\t\t\txStart + 50,\r\n\t\t\t\txStart + 50,\r\n\t\t\t\txStart,\r\n\t\t\t\txStart\r\n\t\t};\r\n\t\treturn xCoord;\r\n\t}", "private static String[] getStringBasedOnCoordinate(String idNames, String[] id_to_coord_list){\n String[] subID = idNames.split(\"\\\\n\");\n String[] string_of_id = new String[subID.length-1];\n for(int i=1; i< subID.length; i++){\n string_of_id[i-1] = id_to_coord_list[Integer.parseInt(subID[i])-1];\n }\n return string_of_id;\n }", "private int[] getAlternativeIndexes (String genomeName, BGZIPReader reader, MGSynchronizer synchronizer) {\n\n\t\tint genomeIndex = reader.getIndexFromGenome(genomeName);\n\t\tString genotype = Utils.split(reader.getCurrentLine().getField(genomeIndex), ':')[0];\n\t\tint size = (int) Math.floor(genotype.length() / 2);\n\t\tint[] indexes = new int[size];\n\t\tint charIndex = 0;\n\t\tfor (int i = 0; i < size; i++) {\n\t\t\tindexes[i] = VCFLineUtility.getAlleleIndex(genotype.charAt(charIndex) + \"\");\n\t\t\tcharIndex += 2;\n\t\t}\n\n\t\treturn indexes;\n\t}", "static int[] mapSequences(AlignmentResult aln, boolean anchorA)\r\n\t{\r\n\t\tchar[] a, b;\r\n\t\tint mapLength;\r\n\t\tif (anchorA)\r\n\t\t{\r\n\t\t\ta = aln.getSequence1();\r\n\t\t\tb = aln.getSequence2();\r\n\t\t\tmapLength = aln.getOriginalSequence1().length();\r\n\t\t} else\r\n\t\t{\r\n\t\t\ta = aln.getSequence2();\r\n\t\t\tb = aln.getSequence1();\r\n\t\t\tmapLength = aln.getOriginalSequence2().length();\r\n\t\t}\r\n\r\n\t\t// Go through the alignment columns, spitting out the appropriate output as we go.\r\n\t\t// NB: we're going to make this mapping 0-based, so the first position in both sequences is 0.\r\n//\t\tint[] mappedIndices = new int[aln.getOriginalSequence1().length()];\r\n\t\tint[] mappedIndices = new int[mapLength];\r\n\t\tint aInd = 0;\r\n\t\tint bInd = 0;\r\n\t\tfor (int i = 0; i < a.length; i++)\r\n\t\t{\r\n\t\t\tchar aC = a[i];\r\n\t\t\tchar bC = b[i];\r\n\t\t\tif (aC == Alignment.GAP)\r\n\t\t\t{\r\n\t\t\t\tbInd++;\r\n\t\t\t} else if (bC == Alignment.GAP)\r\n\t\t\t{\r\n\t\t\t\tmappedIndices[aInd] = -1;\r\n\t\t\t\taInd++;\r\n\t\t\t} else\r\n\t\t\t{\r\n\t\t\t\tmappedIndices[aInd] = bInd;\r\n\t\t\t\taInd++;\r\n\t\t\t\tbInd++;\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn mappedIndices;\r\n\t}", "public static int[] calculateScores(String[] resultsToCheck)\n\t{\n\t\tint[] scores = new int[entrants.length];\n\t\t//results = checkResults(preResults);\n\t\tfor(int i = 0; i < resultsToCheck.length; i++)\n\t\t{\n\t\t\tif(!resultsToCheck[i].equals(\"\"))\n\t\t\t{\n\t\t\t\t//for each player\n\t\t\t\tfor(int j = 0; j < entrants.length; j++)\n\t\t\t\t{\n\t\t\t\t\t//if the player's pick for the match is equal to the result\n\t\t\t\t\tif(allPicks.get(j)[i].equals(resultsToCheck[i]))\n\t\t\t\t\t{\n\t\t\t\t\t\t//increase their points by the value of the match\n\t\t\t\t\t\tscores[j] += values[i];\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}else{\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\treturn scores;\n\t}", "private int[] hashpositions(String str) {\n\t\tint[] hashposition=new int[k];\n\t\tint hashcode;\n\t\tint index;\n\t\tMurmurHash3 hash=new MurmurHash3();\n\t\tfor(int i=1;i<=k;i++){\n\t\t\t\n\t\t\thashcode=hash.murmurhash3_x86_32(str, 0, str.length(), i);\n\t\t\tif(hashcode<0)\n\t\t\t\thashcode=~hashcode;\n\t\t\t\n\t\t\tindex= hashcode - (hashcode/m) * m;\n\t\t\t\n\t\t\thashposition[i-1]=index;\n\t\t\t\n\t\t}\n\t\t\n\t\treturn hashposition;\n\t}", "protected void correctAnnotationPositions(AnnotatedDocument resultDocument) {\r\n List<Annotation> annotations = resultDocument.getAnnotations();\r\n Collections.sort(annotations, new StartPosBasedComparator());\r\n List<Annotation> annotationsSortedByEnd = new ArrayList<Annotation>(annotations);\r\n Collections.sort(annotationsSortedByEnd, new EndPosBasedComparator());\r\n int startPositions[] = new int[annotations.size()];\r\n int endPositions[] = new int[annotations.size()];\r\n Annotation currentAnnotation;\r\n for (int i = 0; i < annotations.size(); ++i) {\r\n startPositions[i] = annotations.get(i).getStartPosition();\r\n currentAnnotation = annotationsSortedByEnd.get(i);\r\n endPositions[i] = currentAnnotation.getStartPosition() + currentAnnotation.getLength();\r\n }\r\n String text = resultDocument.getText();\r\n int codePointsCount = 0;\r\n int posInStart = 0, posInEnd = 0;\r\n for (int i = 0; i < text.length(); ++i) {\r\n codePointsCount += text.codePointCount(i, i + 1);\r\n while ((posInStart < startPositions.length) && (codePointsCount > startPositions[posInStart])) {\r\n annotations.get(posInStart).setStartPosition(i);\r\n ++posInStart;\r\n }\r\n while ((posInEnd < endPositions.length) && (codePointsCount > endPositions[posInEnd])) {\r\n currentAnnotation = annotationsSortedByEnd.get(posInEnd);\r\n currentAnnotation.setLength(i - currentAnnotation.getStartPosition());\r\n ++posInEnd;\r\n }\r\n }\r\n }", "private List<String> parseArgsAsIndexParam(String args) throws ParseException {\n Matcher stp1 = CHK_INDEX_FORMAT_STEP_1.matcher(args.trim());\n if (!stp1.matches()) {\n throw new ParseException(\"Couldn't match the index, the index part should only contain integer and '-',\"\n + \" e.g. 1 or 1-1-1\");\n }\n Matcher stp2 = CHK_INDEX_FORMAT_STEP_2.matcher(args.trim());\n if (stp2.find()) {\n throw new ParseException(\"Couldn't match the index, please check your '-' position, \"\n + \"can not have any space at its side, e.g can not type 2- or -1\");\n }\n Matcher matcher = INDEX_FORMAT.matcher(args.trim());\n List<String> matches = matcher.results().map(MatchResult::group).collect(Collectors.toList());\n return matches;\n //return Stream.of(matcher.group(\"targetIndex\").split(\"\\\\s+\")).mapToInt(Integer::parseInt).toArray();\n }", "public ArrayList<Integer> obtainSourceArray(String inputName){\n try{\n this.readFileByLines(inputName);\n StringTokenizer tokenizer = new StringTokenizer(this.inputContent.toString());\n\n ArrayList<Integer> source = new ArrayList<Integer>();\n while(tokenizer.hasMoreTokens()){\n source.add(Integer.valueOf(tokenizer.nextToken()));\n }\n return source;\n }catch (Exception e){\n e.printStackTrace();\n }\n\n return null;\n }", "public static int[][] getPiecePositions(String piece, int startFile,\n int startRank) {\n int numPiecePos = 0;\n\n int[][] piecePos;\n\n if (startFile != -1 && startRank != -1) {\n piecePos = new int[1][2];\n\n piecePos[0][0] = startFile;\n piecePos[0][1] = startRank;\n } else if (startFile != -1) {\n for (int r = 0; r < 8; r++) {\n if (getBoardStateSquare(startFile, r).equals(piece)) {\n numPiecePos++;\n }\n }\n\n piecePos = new int[numPiecePos][2];\n\n int pieceIndex = 0;\n\n for (int rank = 0; rank < 8; rank++) {\n if (getBoardStateSquare(startFile, rank).equals(piece)) {\n piecePos[pieceIndex][0] = startFile;\n piecePos[pieceIndex][1] = rank;\n\n pieceIndex++;\n }\n }\n } else if (startRank != -1) {\n for (int f = 0; f < 8; f++) {\n if (getBoardStateSquare(f, startRank).equals(piece)) {\n numPiecePos++;\n }\n }\n\n piecePos = new int[numPiecePos][2];\n\n int pieceIndex = 0;\n\n for (int file = 0; file < 8; file++) {\n if (getBoardStateSquare(file, startRank).equals(piece)) {\n piecePos[pieceIndex][0] = file;\n piecePos[pieceIndex][1] = startRank;\n\n pieceIndex++;\n }\n }\n } else {\n for (String[] rank: getBoardState()) {\n for (String square: rank) {\n if (square.equals(piece)) {\n numPiecePos++;\n }\n }\n }\n\n piecePos = new int[numPiecePos][2];\n\n int pieceIndex = 0;\n\n for (int r = 0; r < getBoardState().length; r++) {\n for (int f = 0; f < getBoardState()[r].length; f++) {\n if (getBoardStateSquare(f, r).equals(piece)) {\n piecePos[pieceIndex][0] = f;\n piecePos[pieceIndex][1] = r;\n\n pieceIndex++;\n }\n }\n }\n }\n\n return piecePos;\n }", "private static int[] computeTemporaryArray(String pattern)\r\n\t{\r\n\t\t// Temp array is of the same size of the pattern.\r\n\t\t// Every point tells us what is the longest suffix length which is also the prefix in this temp array.\r\n\t\tint [] lps = new int[pattern.length()];\r\n\t\t\r\n\t\t// First point is always 0\r\n\t\tint j =0;\r\n\r\n\t\t// Note that there is no i++ here in this for()\r\n\t\tfor(int i=1; i < pattern.length();)\r\n\t\t{\r\n\t\t\t// Match is found\r\n\t\t\tif(pattern.charAt(i) == pattern.charAt(j))\r\n\t\t\t{\r\n\t\t\t\tlps[i] = j + 1;\r\n\t\t\t\tj++;\r\n\t\t\t\ti++;\r\n\t\t\t}\r\n\r\n\t\t\t// Match is not found\r\n\t\t\telse\r\n\t\t\t{\r\n\t\t\t\t// If j is not at zero, move back and do not increase i\r\n\t\t\t\tif(j != 0)\r\n\t\t\t\t{\r\n\t\t\t\t\tj = lps[j-1];\r\n\t\t\t\t}\r\n\t\t\t\t// If j is at zero, there is no other option but to proceed further and mark that cell as zero\r\n\t\t\t\telse\r\n\t\t\t\t{\r\n\t\t\t\t\tlps[i] =0;\r\n\t\t\t\t\ti++;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn lps;\r\n\t}", "private Position[] concatArrays(Position[] first, Position[] second)\r\n {\r\n int size = first.length + second.length;\r\n Position[] a = new Position[size];\r\n int pt = 0;\r\n\r\n for (Position tmpPos : first)\r\n {\r\n a[pt] = tmpPos;\r\n pt++;\r\n }\r\n\r\n for (Position tmpPos : second)\r\n {\r\n a[pt] = tmpPos;\r\n pt++;\r\n }\r\n\r\n return a;\r\n }", "public int[] getNamedParameterLocs(String name) throws QueryException {\n \t\treturn queryTranslator.getParameterTranslations().getNamedParameterSqlLocations( name );\n \t}", "protected int[] pos(int raster, int[] pos) {\n return FormatTools.rasterToPosition(lengths, raster, pos);\n }", "public int[] cloneBeginnings(int[][] clonePairsList, String[] tokenFileArray){\n \t\tint[] lines = new int[clonePairsList.length];\n \t\tfor(int i = 0; i < lines.length; i++){\n \t\t\tint position = clonePairsList[i][2] + 1;\n \t\t\tString[] temp = tokenFileArray[position].split(\"\\\\.\");\n \t\t\tlines[i] = hexToDec(temp[0]);\n \t\t}\n \t\treturn lines;\n \t}", "private int[] getIndexes(String name) {\n int[] indexes = (int[]) indexMap.get(name);\n if (indexes == null) {\n throw new IllegalArgumentException(\"Parameter not found: \" + name);\n }\n return indexes;\n }", "public Integer[][] indicesOf(String text, String[][] targetTable) {\n List<Integer[]> indices = new ArrayList<Integer[]>();\n\n for(int i = 0; i < targetTable.length; i++) {\n Integer[] colIndices = indicesOf(text, targetTable[i]);\n Integer rowIndex = i;\n if(colIndices != null) {\n for(Integer colIndex : colIndices) {\n Integer[] pair = {rowIndex, colIndex};\n indices.add(pair);\n }\n }\n }\n\n if(indices.size() == 0) return null;\n\n return indices.toArray(new Integer[indices.size()][indices.get(0).length]);\n }", "private String[] reqArray(String[] originalArray, String[] resultArray) {\n\n int ind = 0;\n\n for (int i = 0; i < originalArray.length; i++) {\n if (originalArray[i] != null) {\n resultArray[ind] = originalArray[i];\n ind++;\n }\n }\n return resultArray;\n }", "protected int[] pos(int raster) {\n return FormatTools.rasterToPosition(lengths, raster);\n }", "public List<int[]> prefixMatches(int minMatchLength) {\r\n List<int[]> matches = new ArrayList<int[]>();\r\n for (int i = 0; i < mSuffixArray.length; ) {\r\n int j = suffixesMatchTo(i,minMatchLength);\r\n if (i + 1 != j) {\r\n matches.add(new int[] { i, j });\r\n i = j;\r\n } else {\r\n ++i;\r\n }\r\n }\r\n return matches;\r\n }", "public Position[] getWinningPositions();", "public void setResultStrings (byte[][] extraResultStrings) {\n\t\t\t\n\t\t\tint extraLength = 0;\n\t\t\t\n\t\t\tif (extraResultStrings != null)\n\t\t\t\textraLength = extraResultStrings.length;\n\t\t\t\n\t\t\tresultStrings = new byte[defaultResultStrings.length + extraLength][];\n\t\t\t\n\t\t\tint k;\n\t\t\tfor (k=0; k < defaultResultStrings.length; k++)\n\t\t\t\tresultStrings[k] = defaultResultStrings[k];\n\t\t\t\n\t\t\tfor (k=0; k < extraLength; k++)\n\t\t\t\tresultStrings[defaultResultStrings.length+k] = extraResultStrings[k];\n\t\t\t\n\t\t\tresultIndexes = new int[resultStrings.length];\n\t\t\tresultDetected = new boolean[resultStrings.length];\n\t\t\t\n\t\t\tfor (k=0; k < resultStrings.length; k++) {\n\t\t\t\tresultIndexes[k] = -1;\n\t\t\t\tresultDetected[k] = false;\n\t\t\t}\n\t\t\t\n\t\t\tindex = -1;\n\t\t}", "public int[] getFromName(String text) {\n return Optional.ofNullable(names.get(text))\n .map(i -> i.stream().findFirst()\n .map(OidTreeNode::getElements)\n .orElseGet(() -> new int[] {}))\n .orElseGet(() -> new int[] {});\n }", "protected char[] indexEntryPrefix() {\n\tif (this.simpleName == null) // Optimization, eg. type reference is 'org.eclipse.jdt.core.*'\n\t\treturn indexEntryPrefix(REF, this.segments[this.currentSegment]);\n\n\treturn indexEntryPrefix(this.currentTag, this.simpleName);\n}", "public static void main(String[] args) {\n int[] pre = {6, 4, 3, 5, 8, 7, 9};\n int[] in = {3, 4, 5, 6, 7, 8, 9};\n int[] pos = preInToPos(pre, in);\n System.out.println(Arrays.toString(pos));\n }", "static int indexOf(char[] source, int sourceOffset, int sourceCount, char[] target, int targetOffset, int targetCount, int fromIndex) {\n\t\tif (fromIndex >= sourceCount) {\n\t\t\treturn (targetCount == 0 ? sourceCount : -1);\n\t\t}\n\t\tif (fromIndex < 0) {\n\t\t\tfromIndex = 0;\n\t\t}\n\t\tif (targetCount == 0) {\n\t\t\treturn fromIndex;\n\t\t}\n\n\t\tchar first = target[targetOffset];\n\t\tint max = sourceOffset + (sourceCount - targetCount);\n\n\t\tfor (int i = sourceOffset + fromIndex; i <= max; i++) {\n\t\t\t/* Look for first character. */\n\t\t\tif (source[i] != first) {\n\t\t\t\twhile (++i <= max && source[i] != first)\n\t\t\t\t\t;\n\t\t\t}\n\n\t\t\t/* Found first character, now look at the rest of v2 */\n\t\t\tif (i <= max) {\n\t\t\t\tint j = i + 1;\n\t\t\t\tint end = j + targetCount - 1;\n\t\t\t\tfor (int k = targetOffset + 1; j < end && source[j] == target[k]; j++, k++)\n\t\t\t\t\t;\n\n\t\t\t\tif (j == end) {\n\t\t\t\t\t/* Found whole string. */\n\t\t\t\t\treturn i - sourceOffset;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn -1;\n\t}", "private Sprite.UV[] buildFontSpriteCoords() {\n Sprite.UV[] uvs = new Sprite.UV[16*16];\n float step = 1.0f / 16.0f;\n\n for (int y=0; y<16; y++) {\n for (int x=0; x<16; x++) {\n int offset = (y*16)+x;\n uvs[offset] = new Sprite.UV();\n uvs[offset].s = (x * step) + step;\n uvs[offset].t = (y * step) + step;\n uvs[offset].u = x * step;\n uvs[offset].v = y * step;\n }\n }\n\n return uvs;\n }", "public static void main(String[] args) {\r\n\t\tString text = \"thestoryofleetcodeandme\";\r\n\t\tString[] words = new String[]{\"story\", \"fleet\", \"leetcode\"};\r\n\t\tint[][] arr = findIndexPairs(text, words);\r\n\t\tfor(int[] row : arr)\r\n\t\t{\r\n\t\t\tSystem.out.println(Arrays.toString(row));\r\n\t\t}\r\n\t}", "private String[] getnames(String name) {\n\t\tString tt[]={name};\n\t\t//tt[0]=name;\n\t\tList<Integer> imp=new ArrayList<Integer>();\n int temp=0;\n\t\ttemp=name.length();\n char ch[]=name.toCharArray();\n for(int i=0;i<temp;i++){\n \tif(ch[i]==' ')\n \t{imp.add(i);\n \t//System.out.println(i);\n \t}\n\n }\n int h=0;\n int nxt;\n\n Iterator<Integer> iterator = imp.iterator();\n int i=0;\n while(iterator.hasNext())\n { nxt=iterator.next();\n\n // System.out.println(haha);\n tt[i]=name.substring(h,nxt);\n i++;\n h=nxt+1;\n }\n\n\t\t\n\t\treturn tt;\n\t}", "public String[] retrieveResultStrings(Text[] texts);", "public int[] calcTargetCoords(char direction, int row, int col)\n {\n int tRow = row, tCol = col; // target row and column\n if (direction == 'N') {\n tRow--;\n }\n else if (direction == 'E') {\n tCol++;\n }\n else if (direction == 'S') {\n tRow++;\n }\n else if (direction == 'W') {\n tCol--;\n }\n return new int[] { tRow, tCol };\n }", "public void getArrayAt(double[] result, int resultOffset, int indexStart, int len) {\n final int indexEnd = indexStart + len;\n int destIndex = resultOffset;\n for (int i = indexStart; i < indexEnd; i++,destIndex++) {\n result[destIndex] = getAt(i);\n }\n }", "public static List<Integer> lcs(List<Integer> arr1, List<Integer> arr2) {\r\n ArrayList empty = new ArrayList();\r\n /* BEFORE WE ALLOCATE ANY DATA STORAGE, VALIDATE ARGS */\r\n if (null == arr1 || 0 == arr1.size())\r\n return empty;\r\n if (null == arr2 || 0 == arr2.size())\r\n return empty;\r\n\r\n if (equalLists(arr1, arr2)) {\r\n return arr1;\r\n }\r\n\r\n /* ALLOCATE VARIABLES WE'LL NEED FOR THE ROUTINE */\r\n ArrayList<Integer> bestMatch = new ArrayList<Integer>();\r\n ArrayList<Integer> currentMatch = new ArrayList<Integer>();\r\n ArrayList<List<Integer>> dataSuffixList = new ArrayList<List<Integer>>();\r\n ArrayList<List<Integer>> lineSuffixList = new ArrayList<List<Integer>>();\r\n\r\n /* FIRST, COMPUTE SUFFIX ARRAYS */\r\n for (int i = 0; i < arr1.size(); i++) {\r\n dataSuffixList.add(arr1.subList(i, arr1.size()));\r\n }\r\n for (int i = 0; i < arr2.size(); i++) {\r\n lineSuffixList.add(arr2.subList(i, arr2.size()));\r\n }\r\n\r\n /* STANDARD SORT SUFFIX ARRAYS */\r\n IntegerListComparator comp = new IntegerListComparator();\r\n Collections.sort(dataSuffixList, comp);\r\n Collections.sort(lineSuffixList, comp);\r\n\r\n /* NOW COMPARE ARRAYS MEMBER BY MEMBER */\r\n List<?> d = null;\r\n List<?> l = null;\r\n List<?> shorterTemp = null;\r\n int stopLength = 0;\r\n int k = 0;\r\n boolean match = false;\r\n\r\n bestMatch.retainAll(empty);\r\n bestMatch.addAll(currentMatch);\r\n for (int i = 0; i < dataSuffixList.size(); i++) {\r\n d = (List) dataSuffixList.get(i);\r\n for (int j = 0; j < lineSuffixList.size(); j++) {\r\n l = (List) lineSuffixList.get(j);\r\n if (d.size() < l.size()) {\r\n shorterTemp = d;\r\n } else {\r\n shorterTemp = l;\r\n }\r\n\r\n currentMatch.retainAll(empty);\r\n k = 0;\r\n stopLength = shorterTemp.size();\r\n match = (l.get(k).equals(d.get(k)));\r\n while (k < stopLength && match) {\r\n if (l.get(k).equals(d.get(k))) {\r\n currentMatch.add((Integer) shorterTemp.get(k));\r\n k++;\r\n } else {\r\n match = false;\r\n }\r\n }\r\n if (currentMatch.size() > bestMatch.size()) {\r\n bestMatch.retainAll(empty);\r\n bestMatch.addAll(currentMatch);\r\n }\r\n }\r\n }\r\n return bestMatch;\r\n }", "public static void processResults(String[] picks)\n\t{\n\t\tresults = new String[127];\n\t\tresults = Arrays.copyOfRange(picks, 1, picks.length);\n\t\tfor(int i = 1; i < results.length; i++)\n\t\t{\n\t\t\tif(results[i].equals(\"\")){\n\t\t\t\tnextMatch = i;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t}", "protected String[] getResultRowAliases() {\n \t\t return null;\n \t}", "public static List<String> get_RankedResults(List<Doc_accum> results) {\n List<String> filenames = new ArrayList();\n\n if (results.isEmpty()) {\n GUI.JListModel.clear();\n GUI.ResultsLabel.setText(\"\");\n clickList = false;\n\n String notFound = \"Your search '\" + query + \"' is not found in any documents\";\n GUI.ResultsLabel.setText(notFound);\n\n } else {\n clickList = false;\n\n //clears list and repopulates it \n String docInfo;\n\n GUI.JListModel.clear();\n GUI.ResultsLabel.setText(\"\");\n\n for (Doc_accum p : results) {\n if (queryMode) {\n corpus.getDocument(p.getPosting().getDocumentId()).getContent();\n }\n //docInfo = corpus.getDocument(p.getPosting().getDocumentId()).getTitle();\n docInfo = corpus.getDocument(p.getPosting().getDocumentId()).getFileName().toString();\n filenames.add(docInfo);\n\n }\n }\n\n GUI.SearchBarTextField.selectAll();\n\n return filenames;\n }", "private ArrayList<Integer> cnvPoints2IndexList(ArrayList<Point> pts) {\n int width = layoutPanel.getLayoutSize().width;\n ArrayList<Integer> newNList = new ArrayList<Integer>();\n\n Iterator<Point> iter = pts.iterator();\n while (iter.hasNext()) {\n Point pt = iter.next();\n newNList.add(pt.y * width + pt.x);\n }\n Collections.sort(newNList);\n\n return newNList;\n }", "public List<Symbol> sourceOutputLayout(int sourceIndex)\n {\n return getOutputSymbols().stream()\n .map(symbol -> outputToInputs.get(symbol).get(sourceIndex))\n .collect(toImmutableList());\n }", "private static ArrayList<int[]> getDefaultSourceColumnTargetColumnIndexes(int size) {\n\n\t\tArrayList<int[]> sourceColumnTargetColumnIndexes = new ArrayList<int[]>();\n\t\tfor (int sourceColumnIndex = 1; sourceColumnIndex <= size; sourceColumnIndex++) {\n\t\t\tsourceColumnTargetColumnIndexes.add(new int[] {sourceColumnIndex});\n\t\t}\n\t\treturn sourceColumnTargetColumnIndexes;\n\t}", "public String findReplaceString(String S, int[] indexes, String[] sources, String[] targets) {\n int[] match = new int[S.length()];\n Arrays.fill(match, -1);\n\n for(int i=0; i<indexes.length; i++){ // *****\n int idx = indexes[i];\n if(S.substring(idx, idx+sources[i].length()).equals(sources[i]))\n match[idx] = i;\n }\n\n StringBuilder ans = new StringBuilder();\n int idx = 0;\n while(idx < S.length()){\n if(match[idx] >= 0){\n ans.append(targets[match[idx]]);\n idx += sources[match[idx]].length();\n }\n else{\n ans.append(S.charAt(idx++));\n }\n }\n return ans.toString();\n }", "public String[] getSrcPhrases(ArrayList<String> alignments){\n\t\tString[] phrases = new String[alignments.size()];\n\t\t\n\t\tString patternString = \"\\\\s\\\\|\\\\|\\\\|\"; // pattern for alignment points\n\t\t\n\t\tfor (int i=0; i<alignments.size(); i++){\n\t\t\tString[] items = alignments.get(i).split(patternString);\n\t\t\tphrases[i] = items[0]; // get source phrase\n\t\t\tSystem.out.println(phrases[i]);\n\t\t\t\n\t\t}\n\t\t\n\t\treturn phrases;\n\t}", "@Override\n\tpublic String[][] generateArrayStringXML(String source, String destination) {\n\t\treturn null;\n\t}", "public float[] GetStartPosition(int playerId)\r\n/* 515: */ {\r\n/* 516:621 */ for (int x = 0; x < getWidthInTiles(); x++) {\r\n/* 517:623 */ for (int y = 0; y < getHeightInTiles(); y++) {\r\n/* 518:625 */ if (tilePlayerPlacable(x, y, playerId)) {\r\n/* 519:627 */ return new float[] { x, y };\r\n/* 520: */ }\r\n/* 521: */ }\r\n/* 522: */ }\r\n/* 523:631 */ return new float[] { 0.0F, 0.0F };\r\n/* 524: */ }", "private int[] strArrToIntArr(String[] strArr){\r\n\t\t//strArr[0] is the userName - skip it, only return pGen, pExpr, pOrientation\r\n\t\treturn new int[]{Integer.valueOf(strArr[1]),Integer.valueOf(strArr[2]),Integer.valueOf(strArr[3])};\r\n\t}", "private DynamicObject getMatchResult(TruffleObject result, String inputStr) {\n return JSArray.createLazyRegexArray(context, regexResultAccessor.groupCount(result), result, inputStr);\n }", "public static int[] lcp(int[] sa, CharSequence s) {\n int n = sa.length;\n int[] rank = new int[n];\n for (int i = 0; i < n; i++)\n rank[sa[i]] = i;\n int[] lcp = new int[n - 1];\n for (int i = 0, h = 0; i < n; i++) {\n if (rank[i] < n - 1) {\n for (int j = sa[rank[i] + 1]; Math.max(i, j) + h < s.length()\n && s.charAt(i + h) == s.charAt(j + h); ++h)\n ;\n lcp[rank[i]] = h;\n if (h > 0)\n --h;\n }\n }\n return lcp;\n }", "public int[] getPos(final String title) {\n\t\treturn getPos(title, null);\n\t}", "public String[] split() {\n if (name == null) {\n throw new IllegalStateException(\"invalid name\");\n }\n if (sourceImage == null) {\n throw new IllegalStateException(\"invalid sourceImage\");\n }\n if (imageCount == null || imageCount <= 0) {\n throw new IllegalStateException(\"invalid imageCount\");\n }\n if (origRow == null || origRow < 0) {\n throw new IllegalStateException(\"invalid origRow\");\n }\n if (origCol == null || origCol < 0) {\n throw new IllegalStateException(\"invalid origCol\");\n }\n\n graphicEntityModule.loadSpriteSheetSplitter(this);\n if (imageCount > 1) {\n return IntStream.range(0, imageCount).mapToObj(i -> name + i).toArray(String[]::new);\n } else {\n return new String[] { name };\n }\n }", "public ArrayList<String> ExtractAlignments(String src, String trg, String moses){\n\t\tArrayList<String> alignPoints = new ArrayList<String>();\n\t\t\n\t\tString patternString = \"\\\\s\\\\|(\\\\d+)\\\\-(\\\\d+)\\\\|\"; // pattern for alignment points, the indexes (ref to source phrase) are grouped\n\t\t\n\t\tPattern pattern = Pattern.compile(patternString);\n\t\tMatcher matcher = pattern.matcher(moses);\n\t\t\n\t\tint count=0; // how many times are we matching the pattern\n\t\tint istart=0; // index of input string\n\t\tString[] sourceWords = src.split(\" \");\n\t\tint src_start = 0;\n\t\tint src_end = 0;\n\t\tString src_phr = new String();\n\t\t\n\t\t// Traverse through each of the matches\n\t\t// the numbers inside the matched pattern will give us the index of the source phrases\n\t\t// the string preceding he matched pattern will give us the corresponding target string translation\n\t\twhile(matcher.find()) {\n\t\t\tcount++;\n\t\t\t//System.out.println(\"found: \" + count + \" : \" + matcher.start() + \" - \" + matcher.end() + \" for \" + matcher.group());\n\t\t\t\n\t\t\tsrc_start = new Integer(matcher.group(1)).intValue();\n\t\t\tsrc_end = new Integer(matcher.group(2)).intValue();\n\t\t\t//System.out.println(\"Srcphr: \" + matcher.group(1) + \" to \" + matcher.group(2) + sourceWords[src_start] + \" \" + sourceWords[src_end]);\n\t\t\t\n\t\t\t//alignPoints.add(moses.substring(istart,matcher.start()) + \" ||| \" + istart + \" ||| \" + matcher.start());\n\t\t\tsrc_phr = new String(sourceWords[src_start]);\n\t\t\tfor(int i=src_start+1; i<=src_end; i++){ // get the source phrases referenced by the alignment points\n\t\t\t\tsrc_phr += \" \" + sourceWords[i];\n\t\t\t}\n\t\t\talignPoints.add(src_phr + \" ||| \" + moses.substring(istart,matcher.start())); // add the source phrase and the corresponding target string translation separated by |||\n\t\t\tistart = matcher.end() + 1;\n\t\t}\n\t\t//System.out.println(\"The number of times we match patterns is \" + count);\n\t\t\n\t\treturn alignPoints;\n\t}", "public int[] getTargetColumnIndexes(int sourceColumnIndex) {\n\n\t\tif (sourceColumnIndex <= sourceColumnTargetColumnIndexes.size()) {\n\t\t\treturn sourceColumnTargetColumnIndexes.get(sourceColumnIndex - 1);\n\t\t}\n\t\telse if (sourceColumnTargetColumnIndexes == defaultSourceColumnTargetColumnIndexes) {\n\t\t\treturn new int[] {sourceColumnIndex};\n\t\t}\n\t\telse {\n\t\t\treturn noTargetColumnIndexes;\n\t\t}\n\t}", "private int[] defineStartingPos() {\n\t\tint[] positions = new int[4];\n\t\tif(initPos.equals(UP)) {\n\t\t\tpositions[0] = 0;\n\t\t\tpositions[1] = (size-1)/2;\n\t\t\tpositions[2] = 1;\n\t\t}else if(initPos.equals(DOWN)) {\n\t\t\tpositions[0] = size-1;\n\t\t\tpositions[1] = (size-1)/2;\n\t\t\tpositions[2] = -1;\n\t\t}else if(initPos.equals(LEFT)) {\n\t\t\tpositions[0] = (size-1)/2;\n\t\t\tpositions[1] = 0;\n\t\t\tpositions[3] = 1;\n\t\t}else if(initPos.equals(RIGHT)) {\n\t\t\tpositions[0] = (size-1)/2;\n\t\t\tpositions[1] = size-1;\n\t\t\tpositions[3] = -1;\n\t\t}\n\t\treturn positions;\n\t}", "public final float[] getStartLocations() {\r\n double x = 0;\r\n double y = 0;\r\n double z = 0;\r\n double t = 0;\r\n\r\n for (final FileMincVarElem element : varArray) {\r\n\r\n if (element.name.equals(\"xspace\")) {\r\n x = element.trueStart;\r\n }\r\n\r\n if (element.name.equals(\"yspace\")) {\r\n y = element.trueStart;\r\n }\r\n\r\n if (element.name.equals(\"zspace\")) {\r\n z = element.trueStart;\r\n }\r\n \r\n if (element.name.equals(\"tspace\")) {\r\n t = element.trueStart;\r\n }\r\n }\r\n\r\n final float[] start = new float[getExtents().length];\r\n\r\n if (start.length == 2) {\r\n start[0] = (float) x;\r\n start[1] = (float) y;\r\n } else if (start.length == 3) {\r\n start[0] = (float) x;\r\n start[1] = (float) y;\r\n start[2] = (float) z;\r\n } else if (start.length == 4) {\r\n start[0] = (float) x;\r\n start[1] = (float) y;\r\n start[2] = (float) z;\r\n start[3] = (float) t;\r\n }\r\n\r\n return start;\r\n }", "private ArrayList<ArrayList<String>> generateExpectedList(Alias[][] testAliasList) {\n ArrayList<ArrayList<String>> expectedList = new ArrayList<ArrayList<String>>();\n for (Alias[] row : testAliasList) {\n ArrayList<String> innerList = populateEmptyAlias();\n insertAliasAtPositions(row, innerList);\n expectedList.add(innerList);\n }\n return expectedList;\n }", "private void populateFoundList(String haystack) {\n int last_found = -1;\n found.clear();\n \n while (haystack.indexOf(needle, last_found + 1) >= 0) {\n last_found = haystack.indexOf(needle, last_found + 1);\n \n int indexes[] = { last_found, last_found + needle.length() };\n found.add(indexes);\n System.out.println(\"Found: \" + indexes[0] + \" - \" + indexes[1]);\n }\n }", "public void buildStmtIndex ()\n\t{\n\t\t\n\t\tint plinecnt = 0;\n\t\tIterator<JPLine> pi = plines.iterator();\n\t\tJPLine pline = null;\n\t\tJPLine lastpline = null;\n\t\twhile(pi.hasNext()) \n\t\t{\n\t\t\tpline = pi.next();\n\t\t\tplinecnt++;\n\n\t\t\t// update len field of lastpline\n\t\t\tif (lastpline != null) {\n\t\t\t\tlastpline.len = pline.offset - lastpline.offset;\n\t\t\t}\n\t\t\tlastpline = pline;\n\t\t\t\n\t\t\t// check if pline is start of new source statement\n\t\t\tif ((plinecnt==1) || ((pline.flag0 & 0x40) == 0x40)) {\n\t\t\t\tpline.startOfStmt = true;\n\t\t\t\tstmtIndex.add(pline);\n\t\t\t}\n\t\t}\t\n\t}", "@Override\n public int[][] getIntArray(String str) {\n return null;\n }", "public ArrayVariable getPrefixedArray(String methodName, String className, String unprefixedName, int ssaNum) {\n\t\treturn (ArrayVariable)getPrefixed(methodName, className, unprefixedName,ssaNum);\n\t}", "public int[] toIntArray(){\n int[] array = new int[getSeq().size()];\n for (int i = 0; i < array.length; i++) {\n char c = Character.toUpperCase(getSeq().get(i));\n array[i] = Sequence.convert(c);\n }\n return array;\n }", "public String[] retrieveResultStrings(Text[] texts) {\n\t\t\tint n = texts.length;\n\t\t\tString[] result = new String[n];\n\t\t\tfor (int i = 0; i < n; i++) {\n\t\t\t\tresult[i] = texts[i].getText();\n\t\t\t}\n\t\t\treturn result;\n\t\t}", "public List<String> getDocNameByMatrix(File[] files, int res[]){\n List<String> list = new ArrayList<String>();\n for (int i = 0; i < res.length; i++) {\n if(res[i] == 1) list.add(files[i].getName());\n }\n return list;\n }", "public List<InputSplit> split(Configuration conf, ResultSet results, String colName)\n throws SQLException {\n\n LOG.warn(\"Generating splits for a textual index column.\");\n LOG.warn(\"If your database sorts in a case-insensitive order, \"\n + \"this may result in a partial import or duplicate records.\");\n LOG.warn(\"You are strongly encouraged to choose an integral split column.\");\n\n String minString = results.getString(1);\n String maxString = results.getString(2);\n\n boolean minIsNull = false;\n\n // If the min value is null, switch it to an empty string instead for purposes\n // of interpolation. Then add [null, null] as a special case split.\n if (null == minString) {\n minString = \"\";\n minIsNull = true;\n }\n\n if (null == maxString) {\n // If the max string is null, then the min string has to be null too.\n // Just return a special split for this case.\n List<InputSplit> splits = new ArrayList<InputSplit>();\n splits.add(new DataDrivenDBInputFormat.DataDrivenDBInputSplit(\n colName + \" IS NULL\", colName + \" IS NULL\"));\n return splits;\n }\n\n // Use this as a hint. May need an extra task if the size doesn't\n // divide cleanly.\n int numSplits = conf.getInt(MRJobConfig.NUM_MAPS, 1);\n\n String lowClausePrefix = colName + \" >= '\";\n String highClausePrefix = colName + \" < '\";\n\n // If there is a common prefix between minString and maxString, establish it\n // and pull it out of minString and maxString.\n int maxPrefixLen = Math.min(minString.length(), maxString.length());\n int sharedLen;\n for (sharedLen = 0; sharedLen < maxPrefixLen; sharedLen++) {\n char c1 = minString.charAt(sharedLen);\n char c2 = maxString.charAt(sharedLen);\n if (c1 != c2) {\n break;\n }\n }\n\n // The common prefix has length 'sharedLen'. Extract it from both.\n String commonPrefix = minString.substring(0, sharedLen);\n minString = minString.substring(sharedLen);\n maxString = maxString.substring(sharedLen);\n\n List<String> splitStrings = split(numSplits, minString, maxString, commonPrefix);\n List<InputSplit> splits = new ArrayList<InputSplit>();\n\n // Convert the list of split point strings into an actual set of InputSplits.\n String start = splitStrings.get(0);\n for (int i = 1; i < splitStrings.size(); i++) {\n String end = splitStrings.get(i);\n\n if (i == splitStrings.size() - 1) {\n // This is the last one; use a closed interval.\n splits.add(new DataDrivenDBInputFormat.DataDrivenDBInputSplit(\n lowClausePrefix + start + \"'\", colName + \" <= '\" + end + \"'\"));\n } else {\n // Normal open-interval case.\n splits.add(new DataDrivenDBInputFormat.DataDrivenDBInputSplit(\n lowClausePrefix + start + \"'\", highClausePrefix + end + \"'\"));\n }\n }\n\n if (minIsNull) {\n // Add the special null split at the end.\n splits.add(new DataDrivenDBInputFormat.DataDrivenDBInputSplit(\n colName + \" IS NULL\", colName + \" IS NULL\"));\n }\n\n return splits;\n }", "private Set<String> projectFromTuples(List<Tuple> tuples, int projectPosition) {\n\t\tSet<String> values = new HashSet<String>();\n\t\tfor (Tuple tuple : tuples) {\n\t\t\tvalues.add(tuple.getStringValues().get(projectPosition));\n\t\t}\n\t\treturn values;\n\t}", "private int[] getIndexes() throws DukeException {\n String[] indexes = commands.split(\" \");\n int[] indexesOfTasks = new int[indexes.length];\n for (int i = 0; i < indexes.length; i++) {\n if (indexes[i].matches(\"\\\\d+\")) {\n indexesOfTasks[i] = Integer.parseInt(indexes[i]);\n } else {\n throw new DukeException(\"☹ OOPS!!! Input a valid index\");\n }\n }\n Arrays.sort(indexesOfTasks);\n return indexesOfTasks;\n }", "private String[] convertLookupTables(LookupOp lookupOp) {\n\t\tLookupTable lookupTable = lookupOp.getTable();\n\t\tint nComponents = lookupTable.getNumComponents();\n\n\t\tif ((nComponents != 1) && (nComponents != 3) && (nComponents != 4))\n\t\t\tthrow new SVGGraphics2DRuntimeException(ERR_ILLEGAL_BUFFERED_IMAGE_LOOKUP_OP);\n\n\t\tStringBuilder[] lookupTableBuf = new StringBuilder[nComponents];\n\t\tfor (int i = 0; i < nComponents; i++)\n\t\t\tlookupTableBuf[i] = new StringBuilder();\n\n\t\tif (!(lookupTable instanceof ByteLookupTable)) {\n\t\t\tint[] src = new int[nComponents];\n\t\t\tint[] dest = new int[nComponents];\n\t\t\tint offset = lookupTable.getOffset();\n\n\t\t\t// Offsets are used for constrained sources. Therefore,\n\t\t\t// the lookup values should never be used under offset.\n\t\t\t// There is no SVG equivalent for this behavior.\n\t\t\t// These values are mapped to identity.\n\t\t\tfor (int i = 0; i < offset; i++) {\n\t\t\t\t// Fill in string buffers\n\t\t\t\tfor (int j = 0; j < nComponents; j++) {\n\t\t\t\t\t// lookupTableBuf[j].append(Integer.toString(i));\n\t\t\t\t\tlookupTableBuf[j].append(doubleString(i / 255.0)).append(SPACE);\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tfor (int i = offset; i <= 255; i++) {\n\t\t\t\t// Fill in source array\n\t\t\t\tArrays.fill(src, i);\n\n\t\t\t\t// Get destination values\n\t\t\t\tlookupTable.lookupPixel(src, dest);\n\n\t\t\t\t// Fill in string buffers\n\t\t\t\tfor (int j = 0; j < nComponents; j++) {\n\t\t\t\t\tlookupTableBuf[j].append(doubleString(dest[j] / 255.0)).append(SPACE);\n\t\t\t\t}\n\t\t\t}\n\t\t} else {\n\t\t\tbyte[] src = new byte[nComponents];\n\t\t\tbyte[] dest = new byte[nComponents];\n\n\t\t\tint offset = lookupTable.getOffset();\n\n\t\t\t// Offsets are used for constrained sources. Therefore,\n\t\t\t// the lookup values should never be used under offset.\n\t\t\t// There is no SVG equivalent for this behavior.\n\t\t\t// These values are mapped to identity.\n\t\t\tfor (int i = 0; i < offset; i++) {\n\t\t\t\t// Fill in string buffers\n\t\t\t\tfor (int j = 0; j < nComponents; j++) {\n\t\t\t\t\t// lookupTableBuf[j].append(Integer.toString(i));\n\t\t\t\t\tlookupTableBuf[j].append(doubleString(i / 255.0)).append(SPACE);\n\t\t\t\t}\n\t\t\t}\n\t\t\tfor (int i = 0; i <= 255; i++) {\n\t\t\t\t// Fill in source array\n\t\t\t\tArrays.fill(src, (byte) (0xff & i));\n\n\t\t\t\t// Get destination values\n\t\t\t\t((ByteLookupTable) lookupTable).lookupPixel(src, dest);\n\n\t\t\t\t// Fill in string buffers\n\t\t\t\tfor (int j = 0; j < nComponents; j++) {\n\t\t\t\t\tlookupTableBuf[j].append(doubleString((0xff & dest[j]) / 255.0)).append(SPACE);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\tString[] lookupTables = new String[nComponents];\n\t\tfor (int i = 0; i < nComponents; i++)\n\t\t\tlookupTables[i] = lookupTableBuf[i].toString().trim();\n\n\t\t/*\n\t\t * for(int i=0; i<lookupTables.length; i++){\n\t\t * System.out.println(lookupTables[i]); }\n\t\t */\n\n\t\treturn lookupTables;\n\t}", "private Intent buildResultIntent() {\n //create result intent and put extras\n Intent resultIntent = new Intent();\n resultIntent.putExtra(EXTRA_PAGER_POSITION, viewPagerPosition);\n resultIntent.putStringArrayListExtra(EXTRA_SELECTED_IDS, new ArrayList<>(selectedIdsMap.keySet()));\n resultIntent.putIntegerArrayListExtra(EXTRA_SELECTED_POSITIONS, new ArrayList<>(selectedIdsMap.values()));\n return resultIntent;\n }", "private static void createMap()\r\n {\r\n position = new String[8][8];\r\n for(int i=0;i<8;i++)\r\n {\r\n int z=0;\r\n for(int j=72;j>=65;j--)\r\n {\r\n position[i][z]=(char)j+\"\"+(i+1); //uses ascii char placement for letters\r\n z++;\r\n }\r\n }\r\n \r\n }", "@Basic @Raw\n public double[] getPosition(){\n\t double[] result = {this.position[0], this.position[1]};\n\t return result;\n }", "public void generatePositionGroups(){\n for (int i = 0; i < Input.length()+1; i++){\n PositionGroup pg = generatePositionGroupAt(i);\n PositionGroupList.add(pg);\n }\n }", "IndexList[] successors() {\r\n SortedMap<String,Integer> labelMap = new TreeMap<String,Integer>(); \r\n for (int i = 0; i < code.length; i++) {\r\n\tInst c = code[i];\r\n\tif (c instanceof LabelDec)\r\n\t labelMap.put(((LabelDec) c).name, i);\r\n }\r\n IndexList[] allSuccs = new IndexList[code.length]; \r\n for (int i = 0; i < code.length-1; i++) { // there's always a label at the end\r\n\tInst inst = code[i];\r\n\tIndexList succs = new IndexList();\r\n\tif (inst instanceof CJump) {\r\n\t succs.add(labelMap.get(((CJump) inst).lab.name));\r\n\t succs.add(i+1); // safe because there's always a label at the end\r\n\t} else if (inst instanceof Jump) \r\n\t succs.add(labelMap.get(((Jump) inst).lab.name));\r\n\telse\r\n\t succs.add(i+1); \r\n\tallSuccs[i] = succs;\r\n }\r\n allSuccs[code.length-1] = new IndexList(); // label at the end has no successors\r\n return allSuccs;\r\n }", "public final void getRelativePosition(int[] position) {\n\t\tfor (int i = 0; i < position.length; i++) {\n\t\t\tposition[i] = this.position[i];\n\t\t}\n\t}", "public DocFile[] searchResponse(ScoreDoc[] results, Query query) {\n\n DocFile[] result = new DocFile[results.length];\n FastVectorHighlighter highlighter = new FastVectorHighlighter(true,true);\n FieldQuery highlightQuery = highlighter.getFieldQuery(query); \n\n try {\n IndexReader reader = DirectoryReader.open(indexDir);\n IndexSearcher searcher = new IndexSearcher(reader);\n\n for (int i = 0; i < results.length; i++) {\n int docId = results[i].doc;\n Document document = searcher.doc(docId);\n \n //Highlight the best Content context from each Doc\n String contextString = highlighter.getBestFragment(highlightQuery, \n searcher.getIndexReader(), results[i].doc,Constants.INDEX_KEY_CONTENT,140);\n \n DocFile toAdd = new DocFile(\n document.get(Constants.INDEX_KEY_FILENAME),\n document.get(Constants.INDEX_KEY_TITLE),\n document.get(Constants.INDEX_KEY_OWNER),\n document.get(Constants.INDEX_KEY_PATH),\n document.get(Constants.INDEX_KEY_STATUS).equalsIgnoreCase(\"true\"));\n \n if (contextString != null) {\n toAdd.setContextString(contextString);\n }\n \n toAdd.setId(document.get(Constants.INDEX_KEY_ID));\n toAdd.setPermissions(Integer.parseInt(document.get(Constants.INDEX_KEY_PERMISSION)));\n toAdd.setCourseCode(document.get(Constants.INDEX_KEY_COURSE));\n result[i] = toAdd;\n\n }\n } catch (Exception e) {\n e.printStackTrace();\n }\n\n return result;\n }", "public static Object[] putResultFileArray(String resultFile) {\r\n\t\tMap<Integer, String> map = new HashMap<Integer, String>();\r\n\t\t// reading the file\r\n\t\tFile file = new File(resultFile);\r\n\t\tBufferedReader reader;\r\n\t\t// Initializing an array to contain distinct values in result document\r\n\t\tString[] res = new String[4];\r\n\t\tfor (int v = 0; v < res.length; v++) {\r\n\t\t\tres[v] = \"a\";\r\n\t\t}\r\n\r\n\t\t// trying to read the file for information\r\n\t\ttry {\r\n\t\t\t// creating a new buffered reader\r\n\t\t\treader = new BufferedReader(new FileReader(file));\r\n\t\t\tString text = null;\r\n\t\t\tString[] lineArray = new String[2];\r\n\t\t\tint count = 0;\r\n\t\t\tint done = 0;\r\n\t\t\t// looping till there is a next line in file\r\n\t\t\twhile ((text = reader.readLine()) != null) {\r\n\t\t\t\t// Splitting line based on comma and storing those values in\r\n\t\t\t\t// array\r\n\t\t\t\tlineArray = text.split(\",\");\r\n\t\t\t\t// mapping values on a map\r\n\t\t\t\tmap.put(Integer.parseInt(lineArray[0]), lineArray[1]);\r\n\t\t\t\tcount = 0;\r\n\t\t\t\t// checking if the new Document classified option is already\r\n\t\t\t\t// stored as an option\r\n\t\t\t\tfor (int h = 0; h < res.length; h++) {\r\n\t\t\t\t\tif (!res[h].contains(lineArray[1])) {\r\n\t\t\t\t\t\tcount++;\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\t// If not stored as an option, storing it as an option\r\n\t\t\t\tif (count == 4) {\r\n\r\n\t\t\t\t\tres[done] = lineArray[1];\r\n\t\t\t\t\tdone++;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\r\n\t\t}\r\n\t\t// adding file not found exception\r\n\t\tcatch (FileNotFoundException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\t// adding catch block emphasised by console\r\n\t\tcatch (IOException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\r\n\t\treturn new Object[] { map, res };\r\n\t}", "private void createArray()\r\n\t{\r\n\t\tscorers = new String[NUMBER_OF_ENTRIES];\r\n\t\tfor(int i = 0; i < NUMBER_OF_ENTRIES; i += 2)\r\n\t\t{\r\n\t\t\tscorers[i] = \"[NULL]\";\r\n\t\t\tscorers[i + 1] = String.valueOf(-1);\r\n\t\t}\r\n\t}", "public String[] createAlignmentStrings(List<CigarElement> cigar, String refSeq, String obsSeq, int totalReads) {\n\t\tStringBuilder aln1 = new StringBuilder(\"\");\n\t\tStringBuilder aln2 = new StringBuilder(\"\");\n\t\tint pos1 = 0;\n\t\tint pos2 = 0;\n\t\t\n\t\tfor (int i=0;i<cigar.size();i++) {\n\t\t//for (CigarElement ce: cigar) {\n\t\t\tCigarElement ce = cigar.get(i);\n\t\t\tint cel = ce.getLength();\n\n\t\t\tswitch(ce.getOperator()) {\n\t\t\t\tcase M:\n\t\t\t\t\taln1.append(refSeq.substring(pos1, pos1+cel));\n\t\t\t\t\taln2.append(obsSeq.substring(pos2, pos2+cel));\n\t\t\t\t\tpos1 += cel;\n\t\t\t\t\tpos2 += cel;\n\t\t\t\t\tbreak;\n\t\t\t\tcase N:\n\t\t\t\t\taln1.append(this.createString('-', cel));\n\t\t\t\t\taln2.append(this.createString('-', cel));\n\t\t\t\t\tpos1 += cel;\n\t\t\t\t\tbreak;\n\t\t\t\tcase S:\n\t\t\t\t\taln1.append(this.createString('S', cel));\n\t\t\t\t\taln2.append(this.createString('S', cel));\n\t\t\t\t\tpos2 += cel;\n\t\t\t\t\tbreak;\n\t\t\t\tcase I:\n\t\t\t\t\taln1.append(this.createString('-', cel));\n\t\t\t\t\taln2.append(obsSeq.substring(pos2, pos2+cel));\n\t\t\t\t\tpos2 += cel;\n\t\t\t\t\tbreak;\n\t\t\t\tcase D:\n\t\t\t\t\tif (i < cigar.size()-1) { \n\t\t\t\t\t\taln1.append(refSeq.substring(pos1, pos1+cel));\n\t\t\t\t\t\taln2.append(this.createString('-', cel));\n\t\t\t\t\t\tpos1 += cel;\n\t\t\t\t\t}\n\t\t\t\t\tbreak;\n\t\t\t\tcase H:\n\t\t\t\t\tbreak;\n\t\t\t\tdefault:\n\t\t\t\t\tSystem.out.println(String.format(\"Don't know how to handle this CIGAR tag: %s. Record %d\",ce.getOperator().toString(),totalReads));\n\t\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\t\n\t\treturn new String[]{aln1.toString(),aln2.toString()};\n\t\t\n\t}", "private String[] createNamesArray(){\n\t\t//TODO just test data\n\t\t/*\n\t\tfor(int i=0; i<20; i++){\n\t\t\tReplayData rd = new ReplayData(\"Game \" + i);\n\t\t\ttotalData.replays.add(rd);\n\t\t}*/\n\t\tString[] gameNames = new String[totalData.replays.size()];\n\t\tfor(int i =0; i<totalData.replays.size(); i++){\n\t\t\tgameNames[i] = totalData.replays.get(i).getName() + \" @ \" + totalData.replays.get(i).getDate();\n\t\t}\n\t\treturn gameNames;\n\t}", "public char[] distances_GET(char[] dst_ch, int pos)\n {\n for(int BYTE = 0, dst_max = pos + 72; pos < dst_max ; pos++, BYTE += 2)\n dst_ch[pos] = (char)((char) get_bytes(data, BYTE, 2));\n return dst_ch;\n }", "public int[] getPosition() {\n\t\tint[] res = {x, y};\n\t\treturn res;\n\t}", "public Position[] getSpawningPositions()\r\n {\r\n return concatArrays(metro.symbolPositions(' '), metro.symbolPositions('X'));\r\n }", "public static void main(String[] args) {\n\t\tString s = \"this is a small house .\";\n\t\tString t = \"das ist ein kleines haus .\";\n\t\tString m = \"das ist |0-1| ein kleines |2-3| haus . |4-5|\";\n\t\tArrayList<String> x = new XlingualProjection().ExtractAlignments(s,t,m);\n\t\tfor (int i=0; i<x.size(); i++){\n\t\t\tSystem.out.println(x.get(i));\n\t\t}\n\t\n\t\tString[] y = new XlingualProjection().getSrcPhrases(x);\n\t\tint start = 0;\n\t\tint end = 0;\n\t\t\n\t\tfor(int i=0; i < y.length; i++){ // Traverse through each phrase\n \tend = start + y[i].length();\n \tSystem.out.println(y[i] + \" \" + start + \" \" + end);\n \t\t\n \t\tstart = end+1;\n }\n\n }", "java.lang.String getGeoTargetConstants(int index);", "private static char[][] convertFileIntoArray(File inputFile) {\n\t\tBufferedReader br = null;\n\t\tchar[][] rowIdxContentsArr = null;\n\t\t\n\t try{\n\t FileReader fileRdr = new FileReader(inputFile);\n\t br = new BufferedReader(fileRdr);\n\n\t String content;\n\t int row = 0;\n\t \n\t // Read every row contents line by line\n\t while ((content = br.readLine()) != null) {\n\t \tif(rowIdxContentsArr == null) {\n\t \t\t// Initialize the 2D Array based on the length of the row data.\n\t \t\trowIdxContentsArr = new char[NUMBER_OF_ROWS][content.length()];\n\t \t}\n\t \t//Convert every row string data into a char array and set it into every 2D array index. \n\t rowIdxContentsArr[row] = content.toCharArray();\n\t logDebug(\"convertFileIntoArray() | row = \"+row +\" , line = \"+content);\n\t row++;\n\t }\n\t logDebug(\"File written successfully into a char array\");\n\t } catch(IOException e) {\n\t \tSystem.err.println(\"Unable to parse file - map.txt. ERROR: \"+e.getMessage());\n\t } finally {\n\t \tif(br != null) {\n\t \t\ttry {\n\t\t\t\t\tbr.close();\n\t\t\t\t} catch (IOException e) {\n\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\t \t}\n\t }\t\n\t return rowIdxContentsArr;\n\t}", "int[] getStyleInfo(int startOffset, int[] read_styles) {\n int offset = startOffset / 4;\n\n int count = 0;\n for (int i = offset; i < read_styles.length; i++) {\n if (read_styles[i] == -1) { // ланцужок з offset да '-1'\n break;\n }\n count += 1;\n }\n if (count == 0) {\n return null;\n }\n Assert.assertEquals(\"Styles count wrong\", 0, count % 3);\n\n int[] result = new int[count];\n System.arraycopy(read_styles, offset, result, 0, result.length);\n return result;\n }", "public int[] getMapPosition(double[] gpsCoord){\n\t\tint[] mapPosition = new int[2];\n\t\tmapPosition[0] = (int) Math.round(gpsCoord[0]*9);\n\t\tmapPosition[1] = (int) Math.round(gpsCoord[2]*9);\t\t\t\n\t\treturn mapPosition;\n\t}", "public abstract int [] getReleasePosition();" ]
[ "0.732996", "0.5719858", "0.5710777", "0.55973184", "0.5474036", "0.5421515", "0.5329068", "0.527262", "0.523117", "0.52018476", "0.51645744", "0.5103693", "0.51008123", "0.50895774", "0.50467014", "0.5045877", "0.5031452", "0.5026034", "0.4996739", "0.49746475", "0.49742454", "0.49226806", "0.49162197", "0.48962566", "0.48824078", "0.48774326", "0.48571694", "0.48460174", "0.48449734", "0.4838286", "0.48350745", "0.4821717", "0.4812618", "0.48022977", "0.480183", "0.47937635", "0.47882587", "0.47868675", "0.47729856", "0.47713238", "0.4765194", "0.47499925", "0.47415048", "0.47324938", "0.47251007", "0.47070232", "0.4688542", "0.4681148", "0.46568847", "0.46565932", "0.4655931", "0.46533492", "0.4645901", "0.4630952", "0.46286148", "0.46266988", "0.46248052", "0.46213794", "0.46194953", "0.46024352", "0.4597689", "0.45942163", "0.4593451", "0.4589605", "0.45883095", "0.458587", "0.4585287", "0.45839888", "0.458152", "0.45794362", "0.45642084", "0.45638952", "0.4557338", "0.45569703", "0.4552941", "0.45484975", "0.45435375", "0.45391333", "0.4538825", "0.45330983", "0.45245764", "0.4524321", "0.45154643", "0.45139405", "0.45128828", "0.45108783", "0.45073548", "0.45056123", "0.45047033", "0.4501913", "0.44992214", "0.44844827", "0.44730505", "0.44698718", "0.44697577", "0.44693375", "0.44688115", "0.44688037", "0.44656247", "0.44655657" ]
0.7234961
1
create an array of positions of entries in resultNames with positions of sourcePosStringMap
public static int[] stringArrayToPositionIndexArray(String resultNames[], Map<String,Integer> sourcePosStringMap, boolean warn, boolean exception) { int[] sourcePos = new int[resultNames.length]; for(int i=0;i<resultNames.length;i++) { Integer pos = sourcePosStringMap.get(resultNames[i]); if(pos==null) { if(warn) { log.warn("stringArrayToPositionIndexArray: "+resultNames[i]+" not in "+sourcePosStringMap); } if(exception) { throw new RuntimeException("stringArrayToPositionIndexArray: "+resultNames[i]+" not in "+sourcePosStringMap); } sourcePos[i] = -1; } else { sourcePos[i] = pos; } } return sourcePos; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static int[] stringArrayToPositionIndexArray(String resultNames[], String[] sourcePosStringArray, boolean warn, boolean exception) {\n\t\treturn stringArrayToPositionIndexArray(resultNames,stringArrayToMap(sourcePosStringArray), warn, exception);\n\t}", "private ArrayList<int[]> resolvePositions(List<Object> positions, Headers headers) {\n\n\t\tArrayList<int[]> sourceColumnTargetColumnIndexes = defaultSourceColumnTargetColumnIndexes;\n\n\t\tif (areDefault(positions)) {\n\t\t\tif (headers.exist()) {\n\t\t\t\tsourceColumnTargetColumnIndexes = getDefaultSourceColumnTargetColumnIndexes(headers.getCaptions().size());\n\t\t\t}\n\t\t\treturn sourceColumnTargetColumnIndexes;\n\t\t}\n\n\t\tint[] positionColumnIndexes = new int[positions.size()];\n\t\t\n\t\tint positionIndex = 0;\n\t\tfor (Object position : positions){\n\t\t\tif (position instanceof Integer) {\n\t\t\t\tint sourceColumnIndex = (Integer)position;\n\t\t\t\tif ((headers.exist() && (sourceColumnIndex > headers.getCaptions().size())) || (sourceColumnIndex <= 0)) {\n\t\t\t\t\tthrow new RuntimeException(\"Attempting to read column beyond bounds of record at position \" + String.valueOf(sourceColumnIndex));\n\t\t\t\t}\n\t\t\t\tpositionColumnIndexes[positionIndex++] = sourceColumnIndex;\n\t\t\t}\n\t\t\telse if (position instanceof String) {\n\t\t\t\tif (!headers.exist()) {\n\t\t\t\t\tthrow new RuntimeException(\"Attempting to read column at header \\\"\" + (String)position + \"\\\" but file has no headers\");\n\t\t\t\t}\n\n\t\t\t\tint sourceColumnIndex = headers.getCaptions().indexOf((String)position) + 1;\n\t\t\t\tif (sourceColumnIndex == 0) {\n\t\t\t\t\tthrow new RuntimeException(\"Attempting to read column with non-existing header \\\"\" + (String)position + \"\\\"\");\n\t\t\t\t}\n\t\t\t\tpositionColumnIndexes[positionIndex++] = sourceColumnIndex;\n\t\t\t}\n\t\t\telse {\n\t\t\t\tthrow new RuntimeException(\"Illegal column position specification\");\n\t\t\t}\n\t\t}\n\n\t\tint maxSourceColumnIndex = Arrays.stream(positionColumnIndexes).max().getAsInt();\n\n\t\tsourceColumnTargetColumnIndexes = new ArrayList<int[]>();\n\t\tfor (int sourceColumnIndex = 1; sourceColumnIndex <= maxSourceColumnIndex; sourceColumnIndex++) {\n\n\t\t\tList<Integer> targetColumnIndexes = new LinkedList<Integer>();\n\t\t\tfor (positionIndex = 0; positionIndex < positionColumnIndexes.length; positionIndex++) {\n\t\t\t\tif (positionColumnIndexes[positionIndex] == sourceColumnIndex) {\n\t\t\t\t\ttargetColumnIndexes.add(positionIndex + 1);\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\tsourceColumnTargetColumnIndexes.add(targetColumnIndexes.stream().mapToInt(i->i).toArray());\n\t\t}\n\n\t\treturn sourceColumnTargetColumnIndexes;\n\t}", "private List<LatLng> getLatLngFromResultIndexes(List<Result> results, List<Integer> indexes) {\n List<LatLng> reqResults = new ArrayList<>();\n\n for (int i : indexes) {\n if (i == -1) // For when it starts with a minima\n reqResults.add(null);\n else\n reqResults.add(results.get(i).getLocation());\n }\n\n return reqResults;\n }", "private Set<Pair<String,String>> projectFromTuples(List<Pair<Tuple,String>> tuplesWithSource, int projectPosition) {\n\t\tSet<Pair<String,String>> valuesWithSource = new HashSet<Pair<String,String>>();\n\t\tfor (Pair<Tuple,String> pair : tuplesWithSource) {\n\t\t\tString value = pair.getFirst().getStringValues().get(projectPosition);\n\t\t\tString source = pair.getSecond();\n\t\t\tvaluesWithSource.add(new Pair<String,String>(value,source));\n\t\t}\n\t\treturn valuesWithSource;\n\t}", "private void _createPositionsArray() {\n _positions = new Position[_errors.length];\n //DrJava.consoleErr().println(\"created pos arr: \" + _positions.length);\n\n // don't bother with anything else if there are no errors\n if (_positions.length == 0)\n return;\n\n try {\n String defsText = _document.getText(0, _document.getLength());\n //DrJava.consoleErr().println(\"got defs text, len=\" + defsText.length());\n\n int curLine = 0;\n int offset = 0; // offset is number of chars from beginning of file\n int numProcessed = 0;\n\n // offset is always pointing to the first character in a line\n // at the top of the loop\n while ((numProcessed < _errors.length) &&\n (offset < defsText.length()))\n {\n //DrJava.consoleErr().println(\"num processed: \" + numProcessed);\n\n // first figure out if we need to create any new positions on this line\n for (int i = numProcessed;\n (i < _errors.length) && (_errors[i].lineNumber() == curLine);\n i++)\n {\n _positions[i] = _document.createPosition(offset +\n _errors[i].startColumn());\n numProcessed++;\n }\n\n int nextNewline = defsText.indexOf('\\n', offset);\n if (nextNewline == -1) {\n break;\n }\n else {\n curLine++;\n offset = nextNewline + 1;\n }\n }\n }\n catch (BadLocationException ble) {\n throw new UnexpectedException(ble);\n }\n }", "public String [] getAnnotationList(String fieldName, int [] indices);", "private void buildLabelLocs() {\n this.labelLocs = new HashMap<String, Integer>();\n for (int n = 0; n < this.code.size(); n++) {\n TACOp op = this.code.get(n);\n if (op.getType() == TACOpType.LABEL) {\n this.labelLocs.put(op.getLabel(), n);\n }\n }\n }", "public int[] getNamedParameterLocs(String name) throws QueryException {\n \t\treturn queryTranslator.getParameterTranslations().getNamedParameterSqlLocations( name );\n \t}", "private int[] getIndexes(String name) {\n int[] indexes = (int[]) indexMap.get(name);\n if (indexes == null) {\n throw new IllegalArgumentException(\"Parameter not found: \" + name);\n }\n return indexes;\n }", "@VisibleForTesting\n int[] findMatches(Token[] source, Token[] target) {\n final LevenshteinDistance table = new LevenshteinDistance(source, target);\n table.calculate();\n final int targetLen = target.length;\n final int[] result = new int[targetLen];\n LevenshteinDistance.EditOperation[] ops = table.getTargetOperations();\n for (int i = 0; i < targetLen; ++i) {\n if (ops[i].getType() == LevenshteinDistance.EDIT_UNCHANGED) {\n result[i] = ops[i].getPosition();\n } else {\n result[i] = -1;\n }\n }\n return result;\n }", "public Map<Symbol, SymbolReference> sourceSymbolMap(int sourceIndex)\n {\n ImmutableMap.Builder<Symbol, SymbolReference> builder = ImmutableMap.builder();\n for (Map.Entry<Symbol, Collection<Symbol>> entry : outputToInputs.asMap().entrySet()) {\n builder.put(entry.getKey(), Iterables.get(entry.getValue(), sourceIndex).toSymbolReference());\n }\n\n return builder.buildOrThrow();\n }", "public List<Symbol> sourceOutputLayout(int sourceIndex)\n {\n return getOutputSymbols().stream()\n .map(symbol -> outputToInputs.get(symbol).get(sourceIndex))\n .collect(toImmutableList());\n }", "private int[] hashpositions(String str) {\n\t\tint[] hashposition=new int[k];\n\t\tint hashcode;\n\t\tint index;\n\t\tMurmurHash3 hash=new MurmurHash3();\n\t\tfor(int i=1;i<=k;i++){\n\t\t\t\n\t\t\thashcode=hash.murmurhash3_x86_32(str, 0, str.length(), i);\n\t\t\tif(hashcode<0)\n\t\t\t\thashcode=~hashcode;\n\t\t\t\n\t\t\tindex= hashcode - (hashcode/m) * m;\n\t\t\t\n\t\t\thashposition[i-1]=index;\n\t\t\t\n\t\t}\n\t\t\n\t\treturn hashposition;\n\t}", "static int[] mapSequences(AlignmentResult aln, boolean anchorA)\r\n\t{\r\n\t\tchar[] a, b;\r\n\t\tint mapLength;\r\n\t\tif (anchorA)\r\n\t\t{\r\n\t\t\ta = aln.getSequence1();\r\n\t\t\tb = aln.getSequence2();\r\n\t\t\tmapLength = aln.getOriginalSequence1().length();\r\n\t\t} else\r\n\t\t{\r\n\t\t\ta = aln.getSequence2();\r\n\t\t\tb = aln.getSequence1();\r\n\t\t\tmapLength = aln.getOriginalSequence2().length();\r\n\t\t}\r\n\r\n\t\t// Go through the alignment columns, spitting out the appropriate output as we go.\r\n\t\t// NB: we're going to make this mapping 0-based, so the first position in both sequences is 0.\r\n//\t\tint[] mappedIndices = new int[aln.getOriginalSequence1().length()];\r\n\t\tint[] mappedIndices = new int[mapLength];\r\n\t\tint aInd = 0;\r\n\t\tint bInd = 0;\r\n\t\tfor (int i = 0; i < a.length; i++)\r\n\t\t{\r\n\t\t\tchar aC = a[i];\r\n\t\t\tchar bC = b[i];\r\n\t\t\tif (aC == Alignment.GAP)\r\n\t\t\t{\r\n\t\t\t\tbInd++;\r\n\t\t\t} else if (bC == Alignment.GAP)\r\n\t\t\t{\r\n\t\t\t\tmappedIndices[aInd] = -1;\r\n\t\t\t\taInd++;\r\n\t\t\t} else\r\n\t\t\t{\r\n\t\t\t\tmappedIndices[aInd] = bInd;\r\n\t\t\t\taInd++;\r\n\t\t\t\tbInd++;\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn mappedIndices;\r\n\t}", "public static int[] posNos(String position)\n\t{\n\t\tint[] pos = new int[2];\n\t\tfor(int rows = 0; rows < 8; rows++)\n\t\t{\n\t\t\tfor(int cols = 0; cols < 8; cols++)\n\t\t\t{\n\t\t\t\tif(posMap[rows][cols].equals(position))\n\t\t\t\t{\n\t\t\t\t\tpos[0] = rows; pos[1] = cols;\n\t\t\t\t\treturn pos;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn null;\n\t}", "static int[] getFirstResultString(int[] array){\n int from = (n * (lineNumber-1));\n int[] rezultColumn = Arrays.copyOfRange(array, from, from + n);\n return rezultColumn;\n }", "protected char[] indexEntryPrefix() {\n\tif (this.simpleName == null) // Optimization, eg. type reference is 'org.eclipse.jdt.core.*'\n\t\treturn indexEntryPrefix(REF, this.segments[this.currentSegment]);\n\n\treturn indexEntryPrefix(this.currentTag, this.simpleName);\n}", "protected void correctAnnotationPositions(AnnotatedDocument resultDocument) {\r\n List<Annotation> annotations = resultDocument.getAnnotations();\r\n Collections.sort(annotations, new StartPosBasedComparator());\r\n List<Annotation> annotationsSortedByEnd = new ArrayList<Annotation>(annotations);\r\n Collections.sort(annotationsSortedByEnd, new EndPosBasedComparator());\r\n int startPositions[] = new int[annotations.size()];\r\n int endPositions[] = new int[annotations.size()];\r\n Annotation currentAnnotation;\r\n for (int i = 0; i < annotations.size(); ++i) {\r\n startPositions[i] = annotations.get(i).getStartPosition();\r\n currentAnnotation = annotationsSortedByEnd.get(i);\r\n endPositions[i] = currentAnnotation.getStartPosition() + currentAnnotation.getLength();\r\n }\r\n String text = resultDocument.getText();\r\n int codePointsCount = 0;\r\n int posInStart = 0, posInEnd = 0;\r\n for (int i = 0; i < text.length(); ++i) {\r\n codePointsCount += text.codePointCount(i, i + 1);\r\n while ((posInStart < startPositions.length) && (codePointsCount > startPositions[posInStart])) {\r\n annotations.get(posInStart).setStartPosition(i);\r\n ++posInStart;\r\n }\r\n while ((posInEnd < endPositions.length) && (codePointsCount > endPositions[posInEnd])) {\r\n currentAnnotation = annotationsSortedByEnd.get(posInEnd);\r\n currentAnnotation.setLength(i - currentAnnotation.getStartPosition());\r\n ++posInEnd;\r\n }\r\n }\r\n }", "private int [] createXArray(){\r\n\t\tint [] xCoord = {\r\n\t\t\t\txStart,\r\n\t\t\t\txStart + 50,\r\n\t\t\t\txStart + 65,\r\n\t\t\t\txStart + 65,\r\n\t\t\t\txStart + 50, \r\n\t\t\t\txStart,\r\n\t\t\t\txStart,\r\n\t\t\t\txStart + 50,\r\n\t\t\t\txStart + 50,\r\n\t\t\t\txStart,\r\n\t\t\t\txStart\r\n\t\t};\r\n\t\treturn xCoord;\r\n\t}", "public int[] getFromName(String text) {\n return Optional.ofNullable(names.get(text))\n .map(i -> i.stream().findFirst()\n .map(OidTreeNode::getElements)\n .orElseGet(() -> new int[] {}))\n .orElseGet(() -> new int[] {});\n }", "public final float[] getStartLocations() {\r\n double x = 0;\r\n double y = 0;\r\n double z = 0;\r\n double t = 0;\r\n\r\n for (final FileMincVarElem element : varArray) {\r\n\r\n if (element.name.equals(\"xspace\")) {\r\n x = element.trueStart;\r\n }\r\n\r\n if (element.name.equals(\"yspace\")) {\r\n y = element.trueStart;\r\n }\r\n\r\n if (element.name.equals(\"zspace\")) {\r\n z = element.trueStart;\r\n }\r\n \r\n if (element.name.equals(\"tspace\")) {\r\n t = element.trueStart;\r\n }\r\n }\r\n\r\n final float[] start = new float[getExtents().length];\r\n\r\n if (start.length == 2) {\r\n start[0] = (float) x;\r\n start[1] = (float) y;\r\n } else if (start.length == 3) {\r\n start[0] = (float) x;\r\n start[1] = (float) y;\r\n start[2] = (float) z;\r\n } else if (start.length == 4) {\r\n start[0] = (float) x;\r\n start[1] = (float) y;\r\n start[2] = (float) z;\r\n start[3] = (float) t;\r\n }\r\n\r\n return start;\r\n }", "public int[] getposvalues( int size) {\n List<String> arrpos=new ArrayList<String>();\n int poss[]=new int[size];int h=0;\n SQLiteDatabase db = this.getReadableDatabase();\n Cursor cursor = db.rawQuery(\"select * from \" + TABLE_NAME ,null);\n if (cursor.moveToFirst()) {\n while (!cursor.isAfterLast()) {\n //String name = cursor.getString(cursor.getColumnIndex(POSITIONNO));\n poss[h]=Integer.parseInt(cursor.getString(cursor.getColumnIndex(POSITIONNO)));\n h++;\n // arrpos.add(name);\n cursor.moveToNext();\n }\n }\n\n\n return poss;\n }", "private int[] parseArgsAsIndex(String args) throws ParseException {\n\n Matcher matcher = INDEX_ARGS_FORMAT.matcher(args.trim());\n if (!matcher.matches()) {\n throw new ParseException(\"Could not match to the correct index.\");\n }\n return Stream.of(matcher.group(\"targetIndex\").split(\"\\\\s+\")).mapToInt(Integer::parseInt).toArray();\n }", "private Set<String> projectFromTuples(List<Tuple> tuples, int projectPosition) {\n\t\tSet<String> values = new HashSet<String>();\n\t\tfor (Tuple tuple : tuples) {\n\t\t\tvalues.add(tuple.getStringValues().get(projectPosition));\n\t\t}\n\t\treturn values;\n\t}", "private Character[] characterResultsToArray(GenericList<Character> results, Comparator<Character> c) {\n Character[] resultArray = new Character[results.size()];\n int i = 0;\n for(Character characterResult : results) {\n resultArray[i] = characterResult;\n i++;\n }\n MergeSort.sort(resultArray, c);\n return resultArray;\n }", "java.lang.String getGeoTargetConstants(int index);", "public String[] locationNames(){\n\t\tString[] s = new String[locations.length];\n\t\tfor(int i=0; i<locations.length; i++){\n\t\t\ts[i] = locations[i].toString();\n\t\t}\n\t\treturn s;\n\t\t//return Arrays.copyOf(locations, locations.length, String[].class);\n\t}", "private int[] getAlternativeIndexes (String genomeName, BGZIPReader reader, MGSynchronizer synchronizer) {\n\n\t\tint genomeIndex = reader.getIndexFromGenome(genomeName);\n\t\tString genotype = Utils.split(reader.getCurrentLine().getField(genomeIndex), ':')[0];\n\t\tint size = (int) Math.floor(genotype.length() / 2);\n\t\tint[] indexes = new int[size];\n\t\tint charIndex = 0;\n\t\tfor (int i = 0; i < size; i++) {\n\t\t\tindexes[i] = VCFLineUtility.getAlleleIndex(genotype.charAt(charIndex) + \"\");\n\t\t\tcharIndex += 2;\n\t\t}\n\n\t\treturn indexes;\n\t}", "private Sprite.UV[] buildFontSpriteCoords() {\n Sprite.UV[] uvs = new Sprite.UV[16*16];\n float step = 1.0f / 16.0f;\n\n for (int y=0; y<16; y++) {\n for (int x=0; x<16; x++) {\n int offset = (y*16)+x;\n uvs[offset] = new Sprite.UV();\n uvs[offset].s = (x * step) + step;\n uvs[offset].t = (y * step) + step;\n uvs[offset].u = x * step;\n uvs[offset].v = y * step;\n }\n }\n\n return uvs;\n }", "public float[] GetStartPosition(int playerId)\r\n/* 515: */ {\r\n/* 516:621 */ for (int x = 0; x < getWidthInTiles(); x++) {\r\n/* 517:623 */ for (int y = 0; y < getHeightInTiles(); y++) {\r\n/* 518:625 */ if (tilePlayerPlacable(x, y, playerId)) {\r\n/* 519:627 */ return new float[] { x, y };\r\n/* 520: */ }\r\n/* 521: */ }\r\n/* 522: */ }\r\n/* 523:631 */ return new float[] { 0.0F, 0.0F };\r\n/* 524: */ }", "public int[] getMapPosition(){\n\t\treturn position;\n\t}", "private ArrayList<Integer> cnvPoints2IndexList(ArrayList<Point> pts) {\n int width = layoutPanel.getLayoutSize().width;\n ArrayList<Integer> newNList = new ArrayList<Integer>();\n\n Iterator<Point> iter = pts.iterator();\n while (iter.hasNext()) {\n Point pt = iter.next();\n newNList.add(pt.y * width + pt.x);\n }\n Collections.sort(newNList);\n\n return newNList;\n }", "int[] getStyleInfo(int startOffset, int[] read_styles) {\n int offset = startOffset / 4;\n\n int count = 0;\n for (int i = offset; i < read_styles.length; i++) {\n if (read_styles[i] == -1) { // ланцужок з offset да '-1'\n break;\n }\n count += 1;\n }\n if (count == 0) {\n return null;\n }\n Assert.assertEquals(\"Styles count wrong\", 0, count % 3);\n\n int[] result = new int[count];\n System.arraycopy(read_styles, offset, result, 0, result.length);\n return result;\n }", "protected String[] getResultRowAliases() {\n \t\t return null;\n \t}", "private static String[] getStringBasedOnCoordinate(String idNames, String[] id_to_coord_list){\n String[] subID = idNames.split(\"\\\\n\");\n String[] string_of_id = new String[subID.length-1];\n for(int i=1; i< subID.length; i++){\n string_of_id[i-1] = id_to_coord_list[Integer.parseInt(subID[i])-1];\n }\n return string_of_id;\n }", "private List<String> parseArgsAsIndexParam(String args) throws ParseException {\n Matcher stp1 = CHK_INDEX_FORMAT_STEP_1.matcher(args.trim());\n if (!stp1.matches()) {\n throw new ParseException(\"Couldn't match the index, the index part should only contain integer and '-',\"\n + \" e.g. 1 or 1-1-1\");\n }\n Matcher stp2 = CHK_INDEX_FORMAT_STEP_2.matcher(args.trim());\n if (stp2.find()) {\n throw new ParseException(\"Couldn't match the index, please check your '-' position, \"\n + \"can not have any space at its side, e.g can not type 2- or -1\");\n }\n Matcher matcher = INDEX_FORMAT.matcher(args.trim());\n List<String> matches = matcher.results().map(MatchResult::group).collect(Collectors.toList());\n return matches;\n //return Stream.of(matcher.group(\"targetIndex\").split(\"\\\\s+\")).mapToInt(Integer::parseInt).toArray();\n }", "private static short[][] translateResult(String[] exactCoverPartition) {\r\n\t\t\r\n\t\tshort[][] retVal = new short[9][9];\r\n\t\t\r\n\t\tfor(int i =0; i < exactCoverPartition.length;i++){\r\n\r\n\t\t\tString[] result = exactCoverPartition[i].split(\",\");\r\n\t\t\tint xCoord = Integer.parseInt(result[0]);\r\n\t\t\tint yCoord = Integer.parseInt(result[1]);\r\n\t\t\tshort value = Short.parseShort(result[2]);\r\n\t\t\t\r\n\t\t\tretVal[yCoord][xCoord] = (short)(value+1);\r\n\t\t\t\r\n\t\t}\r\n\t\t\r\n\t\treturn retVal;\r\n\t}", "private Map<String, ArrayList<EODPosition>> generateOutput(Map<SODPosition, Integer> sodPositionsWithDelta) {\n Map<String, ArrayList<EODPosition>> output = new HashMap<>();\n for (Map.Entry<SODPosition, Integer> entry : sodPositionsWithDelta.entrySet()) {\n SODPosition position = entry.getKey();\n if (output.containsKey(position.getInstrument())) {\n output.get(position.getInstrument()).add(new EODPosition(position.getInstrument(), position.getAccount(), position.getAccountType(), position.getQuantity(), entry.getValue()));\n } else {\n output.put(position.getInstrument(), Lists.newArrayList(new EODPosition(position.getInstrument(), position.getAccount(), position.getAccountType(), position.getQuantity(), entry.getValue())));\n }\n\n }\n return output;\n }", "protected int[] pos(int raster) {\n return FormatTools.rasterToPosition(lengths, raster);\n }", "private String[] convertLookupTables(LookupOp lookupOp) {\n\t\tLookupTable lookupTable = lookupOp.getTable();\n\t\tint nComponents = lookupTable.getNumComponents();\n\n\t\tif ((nComponents != 1) && (nComponents != 3) && (nComponents != 4))\n\t\t\tthrow new SVGGraphics2DRuntimeException(ERR_ILLEGAL_BUFFERED_IMAGE_LOOKUP_OP);\n\n\t\tStringBuilder[] lookupTableBuf = new StringBuilder[nComponents];\n\t\tfor (int i = 0; i < nComponents; i++)\n\t\t\tlookupTableBuf[i] = new StringBuilder();\n\n\t\tif (!(lookupTable instanceof ByteLookupTable)) {\n\t\t\tint[] src = new int[nComponents];\n\t\t\tint[] dest = new int[nComponents];\n\t\t\tint offset = lookupTable.getOffset();\n\n\t\t\t// Offsets are used for constrained sources. Therefore,\n\t\t\t// the lookup values should never be used under offset.\n\t\t\t// There is no SVG equivalent for this behavior.\n\t\t\t// These values are mapped to identity.\n\t\t\tfor (int i = 0; i < offset; i++) {\n\t\t\t\t// Fill in string buffers\n\t\t\t\tfor (int j = 0; j < nComponents; j++) {\n\t\t\t\t\t// lookupTableBuf[j].append(Integer.toString(i));\n\t\t\t\t\tlookupTableBuf[j].append(doubleString(i / 255.0)).append(SPACE);\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tfor (int i = offset; i <= 255; i++) {\n\t\t\t\t// Fill in source array\n\t\t\t\tArrays.fill(src, i);\n\n\t\t\t\t// Get destination values\n\t\t\t\tlookupTable.lookupPixel(src, dest);\n\n\t\t\t\t// Fill in string buffers\n\t\t\t\tfor (int j = 0; j < nComponents; j++) {\n\t\t\t\t\tlookupTableBuf[j].append(doubleString(dest[j] / 255.0)).append(SPACE);\n\t\t\t\t}\n\t\t\t}\n\t\t} else {\n\t\t\tbyte[] src = new byte[nComponents];\n\t\t\tbyte[] dest = new byte[nComponents];\n\n\t\t\tint offset = lookupTable.getOffset();\n\n\t\t\t// Offsets are used for constrained sources. Therefore,\n\t\t\t// the lookup values should never be used under offset.\n\t\t\t// There is no SVG equivalent for this behavior.\n\t\t\t// These values are mapped to identity.\n\t\t\tfor (int i = 0; i < offset; i++) {\n\t\t\t\t// Fill in string buffers\n\t\t\t\tfor (int j = 0; j < nComponents; j++) {\n\t\t\t\t\t// lookupTableBuf[j].append(Integer.toString(i));\n\t\t\t\t\tlookupTableBuf[j].append(doubleString(i / 255.0)).append(SPACE);\n\t\t\t\t}\n\t\t\t}\n\t\t\tfor (int i = 0; i <= 255; i++) {\n\t\t\t\t// Fill in source array\n\t\t\t\tArrays.fill(src, (byte) (0xff & i));\n\n\t\t\t\t// Get destination values\n\t\t\t\t((ByteLookupTable) lookupTable).lookupPixel(src, dest);\n\n\t\t\t\t// Fill in string buffers\n\t\t\t\tfor (int j = 0; j < nComponents; j++) {\n\t\t\t\t\tlookupTableBuf[j].append(doubleString((0xff & dest[j]) / 255.0)).append(SPACE);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\tString[] lookupTables = new String[nComponents];\n\t\tfor (int i = 0; i < nComponents; i++)\n\t\t\tlookupTables[i] = lookupTableBuf[i].toString().trim();\n\n\t\t/*\n\t\t * for(int i=0; i<lookupTables.length; i++){\n\t\t * System.out.println(lookupTables[i]); }\n\t\t */\n\n\t\treturn lookupTables;\n\t}", "public ArrayList<Integer> obtainSourceArray(String inputName){\n try{\n this.readFileByLines(inputName);\n StringTokenizer tokenizer = new StringTokenizer(this.inputContent.toString());\n\n ArrayList<Integer> source = new ArrayList<Integer>();\n while(tokenizer.hasMoreTokens()){\n source.add(Integer.valueOf(tokenizer.nextToken()));\n }\n return source;\n }catch (Exception e){\n e.printStackTrace();\n }\n\n return null;\n }", "public Position[] getWinningPositions();", "public int[] cloneBeginnings(int[][] clonePairsList, String[] tokenFileArray){\n \t\tint[] lines = new int[clonePairsList.length];\n \t\tfor(int i = 0; i < lines.length; i++){\n \t\t\tint position = clonePairsList[i][2] + 1;\n \t\t\tString[] temp = tokenFileArray[position].split(\"\\\\.\");\n \t\t\tlines[i] = hexToDec(temp[0]);\n \t\t}\n \t\treturn lines;\n \t}", "public void buildStmtIndex ()\n\t{\n\t\t\n\t\tint plinecnt = 0;\n\t\tIterator<JPLine> pi = plines.iterator();\n\t\tJPLine pline = null;\n\t\tJPLine lastpline = null;\n\t\twhile(pi.hasNext()) \n\t\t{\n\t\t\tpline = pi.next();\n\t\t\tplinecnt++;\n\n\t\t\t// update len field of lastpline\n\t\t\tif (lastpline != null) {\n\t\t\t\tlastpline.len = pline.offset - lastpline.offset;\n\t\t\t}\n\t\t\tlastpline = pline;\n\t\t\t\n\t\t\t// check if pline is start of new source statement\n\t\t\tif ((plinecnt==1) || ((pline.flag0 & 0x40) == 0x40)) {\n\t\t\t\tpline.startOfStmt = true;\n\t\t\t\tstmtIndex.add(pline);\n\t\t\t}\n\t\t}\t\n\t}", "ImmutableMap<ImmutableList<String>, Set<Location>> index(Set<Location> locations) {\n Map<ImmutableList<String>, Set<Location>> index = new HashMap<>(locations.size());\n for (Location location : locations) {\n for (String name : location.getNames()) {\n ImmutableList<String> tokens = tokenizer.tokenize(name);\n put(index, tokens, location);\n }\n }\n return ImmutableMap.copyOf(index);\n }", "public Position[] getSpawningPositions()\r\n {\r\n return concatArrays(metro.symbolPositions(' '), metro.symbolPositions('X'));\r\n }", "public static String[] getNameMapTable(RConnection RC) {\n try {\n String rCommand = \"CreateMappingResultTable(NA)\";\n String[] resTable = RC.eval(rCommand).asStrings();\n RCenter.recordRCommand(RC, rCommand);\n return resTable;\n } catch (Exception e) {\n e.printStackTrace();\n }\n return null;\n }", "public static int[] calculateScores(String[] resultsToCheck)\n\t{\n\t\tint[] scores = new int[entrants.length];\n\t\t//results = checkResults(preResults);\n\t\tfor(int i = 0; i < resultsToCheck.length; i++)\n\t\t{\n\t\t\tif(!resultsToCheck[i].equals(\"\"))\n\t\t\t{\n\t\t\t\t//for each player\n\t\t\t\tfor(int j = 0; j < entrants.length; j++)\n\t\t\t\t{\n\t\t\t\t\t//if the player's pick for the match is equal to the result\n\t\t\t\t\tif(allPicks.get(j)[i].equals(resultsToCheck[i]))\n\t\t\t\t\t{\n\t\t\t\t\t\t//increase their points by the value of the match\n\t\t\t\t\t\tscores[j] += values[i];\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}else{\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\treturn scores;\n\t}", "int[] getProjectionSeparators() {\r\n int[] src = new int[10];\r\n Criteria root = this.root;\r\n int i = 0;\r\n int sum = 0;\r\n while (root != null) {\r\n if (root.resultColumn) {\r\n sum += root.projections.size();\r\n src[i++] = sum;\r\n }\r\n root = root.child;\r\n }\r\n int[] dst = new int[i];\r\n System.arraycopy(src, 0, dst, 0, i);\r\n return dst;\r\n }", "private static ArrayList<int[]> getDefaultSourceColumnTargetColumnIndexes(int size) {\n\n\t\tArrayList<int[]> sourceColumnTargetColumnIndexes = new ArrayList<int[]>();\n\t\tfor (int sourceColumnIndex = 1; sourceColumnIndex <= size; sourceColumnIndex++) {\n\t\t\tsourceColumnTargetColumnIndexes.add(new int[] {sourceColumnIndex});\n\t\t}\n\t\treturn sourceColumnTargetColumnIndexes;\n\t}", "@Basic @Raw\n public double[] getPosition(){\n\t double[] result = {this.position[0], this.position[1]};\n\t return result;\n }", "private static void createMap()\r\n {\r\n position = new String[8][8];\r\n for(int i=0;i<8;i++)\r\n {\r\n int z=0;\r\n for(int j=72;j>=65;j--)\r\n {\r\n position[i][z]=(char)j+\"\"+(i+1); //uses ascii char placement for letters\r\n z++;\r\n }\r\n }\r\n \r\n }", "private int[] defineStartingPos() {\n\t\tint[] positions = new int[4];\n\t\tif(initPos.equals(UP)) {\n\t\t\tpositions[0] = 0;\n\t\t\tpositions[1] = (size-1)/2;\n\t\t\tpositions[2] = 1;\n\t\t}else if(initPos.equals(DOWN)) {\n\t\t\tpositions[0] = size-1;\n\t\t\tpositions[1] = (size-1)/2;\n\t\t\tpositions[2] = -1;\n\t\t}else if(initPos.equals(LEFT)) {\n\t\t\tpositions[0] = (size-1)/2;\n\t\t\tpositions[1] = 0;\n\t\t\tpositions[3] = 1;\n\t\t}else if(initPos.equals(RIGHT)) {\n\t\t\tpositions[0] = (size-1)/2;\n\t\t\tpositions[1] = size-1;\n\t\t\tpositions[3] = -1;\n\t\t}\n\t\treturn positions;\n\t}", "public ArrayList<Integer> getIndices(String tName) {\n ArrayList<Integer> indices = new ArrayList<>();\n\n for (int i = 0; i < fromTables.size(); i++) {\n Pair<String, String> nameAliasPair = fromTables.get(i);\n if (nameAliasPair.second().equals(tName) || nameAliasPair.first().equals(tName)) {\n indices.add(i);\n }\n }\n\n return indices;\n }", "public static int[][] getPiecePositions(String piece, int startFile,\n int startRank) {\n int numPiecePos = 0;\n\n int[][] piecePos;\n\n if (startFile != -1 && startRank != -1) {\n piecePos = new int[1][2];\n\n piecePos[0][0] = startFile;\n piecePos[0][1] = startRank;\n } else if (startFile != -1) {\n for (int r = 0; r < 8; r++) {\n if (getBoardStateSquare(startFile, r).equals(piece)) {\n numPiecePos++;\n }\n }\n\n piecePos = new int[numPiecePos][2];\n\n int pieceIndex = 0;\n\n for (int rank = 0; rank < 8; rank++) {\n if (getBoardStateSquare(startFile, rank).equals(piece)) {\n piecePos[pieceIndex][0] = startFile;\n piecePos[pieceIndex][1] = rank;\n\n pieceIndex++;\n }\n }\n } else if (startRank != -1) {\n for (int f = 0; f < 8; f++) {\n if (getBoardStateSquare(f, startRank).equals(piece)) {\n numPiecePos++;\n }\n }\n\n piecePos = new int[numPiecePos][2];\n\n int pieceIndex = 0;\n\n for (int file = 0; file < 8; file++) {\n if (getBoardStateSquare(file, startRank).equals(piece)) {\n piecePos[pieceIndex][0] = file;\n piecePos[pieceIndex][1] = startRank;\n\n pieceIndex++;\n }\n }\n } else {\n for (String[] rank: getBoardState()) {\n for (String square: rank) {\n if (square.equals(piece)) {\n numPiecePos++;\n }\n }\n }\n\n piecePos = new int[numPiecePos][2];\n\n int pieceIndex = 0;\n\n for (int r = 0; r < getBoardState().length; r++) {\n for (int f = 0; f < getBoardState()[r].length; f++) {\n if (getBoardStateSquare(f, r).equals(piece)) {\n piecePos[pieceIndex][0] = f;\n piecePos[pieceIndex][1] = r;\n\n pieceIndex++;\n }\n }\n }\n }\n\n return piecePos;\n }", "public Integer[] indicesOf(String text, String[] targetArray) {\n List<Integer> indices = new ArrayList<Integer>();\n\n for(int i = 0; i < targetArray.length; i++ ) {\n if(targetArray[i].contains(text)) {\n indices.add(i);\n }\n }\n //convert list to array\n return indices.toArray(new Integer[indices.size()]);\n }", "@Override\r\n \tpublic final int getStartPos() {\r\n \t\treturn sourceStart;\r\n \t}", "protected int[] pos(int raster, int[] pos) {\n return FormatTools.rasterToPosition(lengths, raster, pos);\n }", "IndexList[] successors() {\r\n SortedMap<String,Integer> labelMap = new TreeMap<String,Integer>(); \r\n for (int i = 0; i < code.length; i++) {\r\n\tInst c = code[i];\r\n\tif (c instanceof LabelDec)\r\n\t labelMap.put(((LabelDec) c).name, i);\r\n }\r\n IndexList[] allSuccs = new IndexList[code.length]; \r\n for (int i = 0; i < code.length-1; i++) { // there's always a label at the end\r\n\tInst inst = code[i];\r\n\tIndexList succs = new IndexList();\r\n\tif (inst instanceof CJump) {\r\n\t succs.add(labelMap.get(((CJump) inst).lab.name));\r\n\t succs.add(i+1); // safe because there's always a label at the end\r\n\t} else if (inst instanceof Jump) \r\n\t succs.add(labelMap.get(((Jump) inst).lab.name));\r\n\telse\r\n\t succs.add(i+1); \r\n\tallSuccs[i] = succs;\r\n }\r\n allSuccs[code.length-1] = new IndexList(); // label at the end has no successors\r\n return allSuccs;\r\n }", "public List<int[]> prefixMatches(int minMatchLength) {\r\n List<int[]> matches = new ArrayList<int[]>();\r\n for (int i = 0; i < mSuffixArray.length; ) {\r\n int j = suffixesMatchTo(i,minMatchLength);\r\n if (i + 1 != j) {\r\n matches.add(new int[] { i, j });\r\n i = j;\r\n } else {\r\n ++i;\r\n }\r\n }\r\n return matches;\r\n }", "public int[] getPosition() {\n\t\tint[] res = {x, y};\n\t\treturn res;\n\t}", "public static List<String> get_RankedResults(List<Doc_accum> results) {\n List<String> filenames = new ArrayList();\n\n if (results.isEmpty()) {\n GUI.JListModel.clear();\n GUI.ResultsLabel.setText(\"\");\n clickList = false;\n\n String notFound = \"Your search '\" + query + \"' is not found in any documents\";\n GUI.ResultsLabel.setText(notFound);\n\n } else {\n clickList = false;\n\n //clears list and repopulates it \n String docInfo;\n\n GUI.JListModel.clear();\n GUI.ResultsLabel.setText(\"\");\n\n for (Doc_accum p : results) {\n if (queryMode) {\n corpus.getDocument(p.getPosting().getDocumentId()).getContent();\n }\n //docInfo = corpus.getDocument(p.getPosting().getDocumentId()).getTitle();\n docInfo = corpus.getDocument(p.getPosting().getDocumentId()).getFileName().toString();\n filenames.add(docInfo);\n\n }\n }\n\n GUI.SearchBarTextField.selectAll();\n\n return filenames;\n }", "public String[] getSrcPhrases(ArrayList<String> alignments){\n\t\tString[] phrases = new String[alignments.size()];\n\t\t\n\t\tString patternString = \"\\\\s\\\\|\\\\|\\\\|\"; // pattern for alignment points\n\t\t\n\t\tfor (int i=0; i<alignments.size(); i++){\n\t\t\tString[] items = alignments.get(i).split(patternString);\n\t\t\tphrases[i] = items[0]; // get source phrase\n\t\t\tSystem.out.println(phrases[i]);\n\t\t\t\n\t\t}\n\t\t\n\t\treturn phrases;\n\t}", "phaseI.Hdfs.DataNodeLocation getLocations(int index);", "private void buildPKIndex() {\n // index PK\n Collection<DbAttribute> pks = getResolver()\n .getEntity()\n .getDbEntity()\n .getPrimaryKeys();\n this.idIndices = new int[pks.size()];\n\n // this is needed for checking that a valid index is made\n Arrays.fill(idIndices, -1);\n\n Iterator<DbAttribute> it = pks.iterator();\n for (int i = 0; i < idIndices.length; i++) {\n DbAttribute pk = it.next();\n\n for (int j = 0; j < columns.length; j++) {\n if (pk.getName().equals(columns[j].getName())) {\n idIndices[i] = j;\n break;\n }\n }\n\n // sanity check\n if (idIndices[i] == -1) {\n throw new CayenneRuntimeException(\"PK column is not part of result row: %s\", pk.getName());\n }\n }\n }", "private static HashMap<String, Integer> generateWordIndex()\n\t{\n\t\tHashMap<String, Integer> wordIndex = new HashMap<String, Integer>();\n\t\tint currIndex = 0;\n\t\tStringBuffer combinedHeaders;\n\t\tfor (MP mp : Capone.getInstance().getParliament().getMPList())\n\t\t{\n\t\t\tfor (Speech sp : mp.returnSpeeches())\n\t\t\t{\n\t\t\t\tcombinedHeaders = new StringBuffer();\n\t\t\t\tcombinedHeaders.append(sp.getHeader1());\n\t\t\t\tcombinedHeaders.append(sp.getHeader2());\n\t\t\t\tfor (String str : combinedHeaders.toString().split(\" \"))\n\t\t\t\t{\n\t\t\t\t\tif (!wordIndex.containsKey(str))\n\t\t\t\t\t{\n\t\t\t\t\t\twordIndex.put(str, currIndex);\n\t\t\t\t\t\tcurrIndex++;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn wordIndex;\n\t}", "public int[] getPos(final String title) {\n\t\treturn getPos(title, null);\n\t}", "public abstract int [] getReleasePosition();", "public java.lang.String[] getMappingFieldsArray()\n {\n synchronized (monitor())\n {\n check_orphaned();\n java.util.List targetList = new java.util.ArrayList();\n get_store().find_all_element_users(MAPPINGFIELDS$28, targetList);\n java.lang.String[] result = new java.lang.String[targetList.size()];\n for (int i = 0, len = targetList.size() ; i < len ; i++)\n result[i] = ((org.apache.xmlbeans.SimpleValue)targetList.get(i)).getStringValue();\n return result;\n }\n }", "int getNameSourceStart();", "public String[] split() {\n if (name == null) {\n throw new IllegalStateException(\"invalid name\");\n }\n if (sourceImage == null) {\n throw new IllegalStateException(\"invalid sourceImage\");\n }\n if (imageCount == null || imageCount <= 0) {\n throw new IllegalStateException(\"invalid imageCount\");\n }\n if (origRow == null || origRow < 0) {\n throw new IllegalStateException(\"invalid origRow\");\n }\n if (origCol == null || origCol < 0) {\n throw new IllegalStateException(\"invalid origCol\");\n }\n\n graphicEntityModule.loadSpriteSheetSplitter(this);\n if (imageCount > 1) {\n return IntStream.range(0, imageCount).mapToObj(i -> name + i).toArray(String[]::new);\n } else {\n return new String[] { name };\n }\n }", "public static void main(String[] args) {\n int[] pre = {6, 4, 3, 5, 8, 7, 9};\n int[] in = {3, 4, 5, 6, 7, 8, 9};\n int[] pos = preInToPos(pre, in);\n System.out.println(Arrays.toString(pos));\n }", "public static Object[] putResultFileArray(String resultFile) {\r\n\t\tMap<Integer, String> map = new HashMap<Integer, String>();\r\n\t\t// reading the file\r\n\t\tFile file = new File(resultFile);\r\n\t\tBufferedReader reader;\r\n\t\t// Initializing an array to contain distinct values in result document\r\n\t\tString[] res = new String[4];\r\n\t\tfor (int v = 0; v < res.length; v++) {\r\n\t\t\tres[v] = \"a\";\r\n\t\t}\r\n\r\n\t\t// trying to read the file for information\r\n\t\ttry {\r\n\t\t\t// creating a new buffered reader\r\n\t\t\treader = new BufferedReader(new FileReader(file));\r\n\t\t\tString text = null;\r\n\t\t\tString[] lineArray = new String[2];\r\n\t\t\tint count = 0;\r\n\t\t\tint done = 0;\r\n\t\t\t// looping till there is a next line in file\r\n\t\t\twhile ((text = reader.readLine()) != null) {\r\n\t\t\t\t// Splitting line based on comma and storing those values in\r\n\t\t\t\t// array\r\n\t\t\t\tlineArray = text.split(\",\");\r\n\t\t\t\t// mapping values on a map\r\n\t\t\t\tmap.put(Integer.parseInt(lineArray[0]), lineArray[1]);\r\n\t\t\t\tcount = 0;\r\n\t\t\t\t// checking if the new Document classified option is already\r\n\t\t\t\t// stored as an option\r\n\t\t\t\tfor (int h = 0; h < res.length; h++) {\r\n\t\t\t\t\tif (!res[h].contains(lineArray[1])) {\r\n\t\t\t\t\t\tcount++;\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\t// If not stored as an option, storing it as an option\r\n\t\t\t\tif (count == 4) {\r\n\r\n\t\t\t\t\tres[done] = lineArray[1];\r\n\t\t\t\t\tdone++;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\r\n\t\t}\r\n\t\t// adding file not found exception\r\n\t\tcatch (FileNotFoundException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\t// adding catch block emphasised by console\r\n\t\tcatch (IOException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\r\n\t\treturn new Object[] { map, res };\r\n\t}", "List<Integer> lineOffsets();", "public void getArrayAt(double[] result, int resultOffset, int indexStart, int len) {\n final int indexEnd = indexStart + len;\n int destIndex = resultOffset;\n for (int i = indexStart; i < indexEnd; i++,destIndex++) {\n result[destIndex] = getAt(i);\n }\n }", "private void setMemberElementPosition( MemberElementInfo info, int nameSourceStart, \n \t\t\tint nameSourceEnd, int sourceStart, int sourceEnd ){\n \t\tinfo.setNameSourceStart( nameSourceStart );\n \t\tinfo.setNameSourceEnd( nameSourceEnd );\n \t\tinfo.setSourceRangeStart( sourceStart );\n \t\tinfo.setSourceRangeEnd( sourceEnd );\t\t\n \t}", "public org.apache.xmlbeans.XmlString[] xgetMappingFieldsArray()\n {\n synchronized (monitor())\n {\n check_orphaned();\n java.util.List targetList = new java.util.ArrayList();\n get_store().find_all_element_users(MAPPINGFIELDS$28, targetList);\n org.apache.xmlbeans.XmlString[] result = new org.apache.xmlbeans.XmlString[targetList.size()];\n targetList.toArray(result);\n return result;\n }\n }", "public int[] getTargetColumnIndexes(int sourceColumnIndex) {\n\n\t\tif (sourceColumnIndex <= sourceColumnTargetColumnIndexes.size()) {\n\t\t\treturn sourceColumnTargetColumnIndexes.get(sourceColumnIndex - 1);\n\t\t}\n\t\telse if (sourceColumnTargetColumnIndexes == defaultSourceColumnTargetColumnIndexes) {\n\t\t\treturn new int[] {sourceColumnIndex};\n\t\t}\n\t\telse {\n\t\t\treturn noTargetColumnIndexes;\n\t\t}\n\t}", "private String calcIndexName(NamePool pool, \n String fingerName,\n List definitions,\n Configuration config) \n {\n StringBuffer sbuf = new StringBuffer();\n sbuf.append(\"key|\" + fingerName);\n for (int k = 0; k < definitions.size(); k++) \n {\n KeyDefinition def = (KeyDefinition)definitions.get(k);\n \n // Capture the match pattern.\n String matchStr = def.getMatch().toString();\n sbuf.append(\"|\" + Long.toString(Hash64.hash(matchStr), 16));\n \n // Capture the 'use' expression\n if (def.getUse() instanceof Expression) \n {\n // Saxon likes to dump debug stuff to a PrintStream, and we need to\n // capture to a buffer.\n //\n ByteArrayOutputStream bytes = new ByteArrayOutputStream();\n PrintStream ps = new PrintStream(bytes);\n \n ((Expression)def.getUse()).display(10, ps, config);\n ps.flush();\n String useStr = bytes.toString();\n sbuf.append(\"|\" + Long.toString(Hash64.hash(useStr), 16));\n }\n else\n sbuf.append(\"|non-exp\");\n } // for k\n \n return sbuf.toString();\n }", "java.lang.String getValues(int index);", "private Intent buildResultIntent() {\n //create result intent and put extras\n Intent resultIntent = new Intent();\n resultIntent.putExtra(EXTRA_PAGER_POSITION, viewPagerPosition);\n resultIntent.putStringArrayListExtra(EXTRA_SELECTED_IDS, new ArrayList<>(selectedIdsMap.keySet()));\n resultIntent.putIntegerArrayListExtra(EXTRA_SELECTED_POSITIONS, new ArrayList<>(selectedIdsMap.values()));\n return resultIntent;\n }", "public ArrayVariable getPrefixedArray(String methodName, String className, String unprefixedName, int ssaNum) {\n\t\treturn (ArrayVariable)getPrefixed(methodName, className, unprefixedName,ssaNum);\n\t}", "public List getMatchOffsetPairs() {\r\n return matchOffsetPairs;\r\n }", "@Override\n public int[] getCurrentPosition() {\n int[] res = new int[2];\n res[0] = characterRow;\n res[1] = characterColumn;\n\n return res;\n }", "public ArrayList<String> ExtractAlignments(String src, String trg, String moses){\n\t\tArrayList<String> alignPoints = new ArrayList<String>();\n\t\t\n\t\tString patternString = \"\\\\s\\\\|(\\\\d+)\\\\-(\\\\d+)\\\\|\"; // pattern for alignment points, the indexes (ref to source phrase) are grouped\n\t\t\n\t\tPattern pattern = Pattern.compile(patternString);\n\t\tMatcher matcher = pattern.matcher(moses);\n\t\t\n\t\tint count=0; // how many times are we matching the pattern\n\t\tint istart=0; // index of input string\n\t\tString[] sourceWords = src.split(\" \");\n\t\tint src_start = 0;\n\t\tint src_end = 0;\n\t\tString src_phr = new String();\n\t\t\n\t\t// Traverse through each of the matches\n\t\t// the numbers inside the matched pattern will give us the index of the source phrases\n\t\t// the string preceding he matched pattern will give us the corresponding target string translation\n\t\twhile(matcher.find()) {\n\t\t\tcount++;\n\t\t\t//System.out.println(\"found: \" + count + \" : \" + matcher.start() + \" - \" + matcher.end() + \" for \" + matcher.group());\n\t\t\t\n\t\t\tsrc_start = new Integer(matcher.group(1)).intValue();\n\t\t\tsrc_end = new Integer(matcher.group(2)).intValue();\n\t\t\t//System.out.println(\"Srcphr: \" + matcher.group(1) + \" to \" + matcher.group(2) + sourceWords[src_start] + \" \" + sourceWords[src_end]);\n\t\t\t\n\t\t\t//alignPoints.add(moses.substring(istart,matcher.start()) + \" ||| \" + istart + \" ||| \" + matcher.start());\n\t\t\tsrc_phr = new String(sourceWords[src_start]);\n\t\t\tfor(int i=src_start+1; i<=src_end; i++){ // get the source phrases referenced by the alignment points\n\t\t\t\tsrc_phr += \" \" + sourceWords[i];\n\t\t\t}\n\t\t\talignPoints.add(src_phr + \" ||| \" + moses.substring(istart,matcher.start())); // add the source phrase and the corresponding target string translation separated by |||\n\t\t\tistart = matcher.end() + 1;\n\t\t}\n\t\t//System.out.println(\"The number of times we match patterns is \" + count);\n\t\t\n\t\treturn alignPoints;\n\t}", "private ArrayList<ArrayList<String>> generateExpectedList(Alias[][] testAliasList) {\n ArrayList<ArrayList<String>> expectedList = new ArrayList<ArrayList<String>>();\n for (Alias[] row : testAliasList) {\n ArrayList<String> innerList = populateEmptyAlias();\n insertAliasAtPositions(row, innerList);\n expectedList.add(innerList);\n }\n return expectedList;\n }", "private String[] getnames(String name) {\n\t\tString tt[]={name};\n\t\t//tt[0]=name;\n\t\tList<Integer> imp=new ArrayList<Integer>();\n int temp=0;\n\t\ttemp=name.length();\n char ch[]=name.toCharArray();\n for(int i=0;i<temp;i++){\n \tif(ch[i]==' ')\n \t{imp.add(i);\n \t//System.out.println(i);\n \t}\n\n }\n int h=0;\n int nxt;\n\n Iterator<Integer> iterator = imp.iterator();\n int i=0;\n while(iterator.hasNext())\n { nxt=iterator.next();\n\n // System.out.println(haha);\n tt[i]=name.substring(h,nxt);\n i++;\n h=nxt+1;\n }\n\n\t\t\n\t\treturn tt;\n\t}", "public int[] calcTargetCoords(char direction, int row, int col)\n {\n int tRow = row, tCol = col; // target row and column\n if (direction == 'N') {\n tRow--;\n }\n else if (direction == 'E') {\n tCol++;\n }\n else if (direction == 'S') {\n tRow++;\n }\n else if (direction == 'W') {\n tCol--;\n }\n return new int[] { tRow, tCol };\n }", "private ArrayList<Point> cnvIndexList2Points(ArrayList<Integer> nList) {\n ArrayList<Point> pts = new ArrayList<Point>();\n\n // convert index list to points array\n int width = layoutPanel.getLayoutSize().width;\n Iterator<Integer> iter = nList.iterator();\n while (iter.hasNext()) {\n int idx = iter.next();\n pts.add(new Point(idx % width, idx / width)); // Point(x, y)\n }\n\n return pts;\n }", "Tuple extract(int[] pos) {\n Tuple results = new Tuple();\n\n for (int i : pos)\n results.add(elements.set(i, null));\n\n return results;\n }", "private static int[] computeTemporaryArray(String pattern)\r\n\t{\r\n\t\t// Temp array is of the same size of the pattern.\r\n\t\t// Every point tells us what is the longest suffix length which is also the prefix in this temp array.\r\n\t\tint [] lps = new int[pattern.length()];\r\n\t\t\r\n\t\t// First point is always 0\r\n\t\tint j =0;\r\n\r\n\t\t// Note that there is no i++ here in this for()\r\n\t\tfor(int i=1; i < pattern.length();)\r\n\t\t{\r\n\t\t\t// Match is found\r\n\t\t\tif(pattern.charAt(i) == pattern.charAt(j))\r\n\t\t\t{\r\n\t\t\t\tlps[i] = j + 1;\r\n\t\t\t\tj++;\r\n\t\t\t\ti++;\r\n\t\t\t}\r\n\r\n\t\t\t// Match is not found\r\n\t\t\telse\r\n\t\t\t{\r\n\t\t\t\t// If j is not at zero, move back and do not increase i\r\n\t\t\t\tif(j != 0)\r\n\t\t\t\t{\r\n\t\t\t\t\tj = lps[j-1];\r\n\t\t\t\t}\r\n\t\t\t\t// If j is at zero, there is no other option but to proceed further and mark that cell as zero\r\n\t\t\t\telse\r\n\t\t\t\t{\r\n\t\t\t\t\tlps[i] =0;\r\n\t\t\t\t\ti++;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn lps;\r\n\t}", "private static String[] getMinGeneIds() {\n\t\tString []output = new String[2];\n\t\tString minI = \"\", minJ = \"\";\n\t\tdouble min = Double.MAX_VALUE;\n\t\tfor (Map.Entry<String, String> entry : minMatrix.entrySet()) {\n\t\t\tString minData[] = entry.getValue().split(\";\");\n\t\t\tdouble currDist = Double.parseDouble(minData[1]);\n\t\t\tif(currDist < min) {\n\t\t\t\tminI = entry.getKey();\n\t\t\t\tminJ = minData[0];\n\t\t\t\tmin = currDist;\n\t\t\t}\n\t\t}\n\t\toutput[0] = minI;output[1] = minJ;\n\t\treturn output;\n\t}", "public Integer[][] indicesOf(String text, String[][] targetTable) {\n List<Integer[]> indices = new ArrayList<Integer[]>();\n\n for(int i = 0; i < targetTable.length; i++) {\n Integer[] colIndices = indicesOf(text, targetTable[i]);\n Integer rowIndex = i;\n if(colIndices != null) {\n for(Integer colIndex : colIndices) {\n Integer[] pair = {rowIndex, colIndex};\n indices.add(pair);\n }\n }\n }\n\n if(indices.size() == 0) return null;\n\n return indices.toArray(new Integer[indices.size()][indices.get(0).length]);\n }", "public String[] creatTagMappingInfoDatasets (int startIndex, int size) {\n int chunkCount = this.getChunkCount(); \n int chunkSize = this.getChunkSize();\n String[] dataSetNames = new String[size];\n for (int i = 0; i < size; i++) {\n dataSetNames[i] = GBSHDF5Constants.MAPBASE + this.getThreeFigureString(i+startIndex);\n myHDF5.compounds().createArray(dataSetNames[i], tmiType, chunkSize*chunkCount, chunkSize, genoFeatures);\n \n }\n System.out.println(\"Created new TagMappingInfo datasets. They are\");\n for (int i = 0; i < dataSetNames.length; i++) {\n System.out.println(dataSetNames[i]);\n }\n return dataSetNames;\n }", "private void getMapping() {\n double [][] chars = new double[CHAR_SET_SIZE][1];\n for (int i = 0; i < chars.length; i++) {\n chars[i][0] = i;\n }\n Matrix b = new Matrix(key).times(new Matrix(chars));\n map = b.getArray();\n }", "java.lang.String getStrValues(int index);", "String getPrimaryKeyNames(int index);", "private DynamicObject getMatchResult(TruffleObject result, String inputStr) {\n return JSArray.createLazyRegexArray(context, regexResultAccessor.groupCount(result), result, inputStr);\n }", "private Position[] concatArrays(Position[] first, Position[] second)\r\n {\r\n int size = first.length + second.length;\r\n Position[] a = new Position[size];\r\n int pt = 0;\r\n\r\n for (Position tmpPos : first)\r\n {\r\n a[pt] = tmpPos;\r\n pt++;\r\n }\r\n\r\n for (Position tmpPos : second)\r\n {\r\n a[pt] = tmpPos;\r\n pt++;\r\n }\r\n\r\n return a;\r\n }", "public char[] getPositions() {\r\n\t\treturn rotors.getPositions();\r\n\t}" ]
[ "0.6586699", "0.5731191", "0.57163185", "0.5522134", "0.55080444", "0.5400221", "0.5330236", "0.51967317", "0.5086358", "0.5024179", "0.5012198", "0.500771", "0.50013965", "0.49890864", "0.49869844", "0.49700397", "0.49288514", "0.48883605", "0.48837572", "0.4882499", "0.4865586", "0.48458695", "0.48174086", "0.48108083", "0.48102355", "0.4806251", "0.47995287", "0.47842714", "0.4780111", "0.4779327", "0.476806", "0.47664714", "0.4760043", "0.47593635", "0.4752933", "0.47355154", "0.47134635", "0.4708485", "0.46975935", "0.46858987", "0.4672149", "0.46657813", "0.46639097", "0.46569654", "0.46552315", "0.464357", "0.46365356", "0.46120563", "0.46100965", "0.46021032", "0.45949695", "0.45841768", "0.45813495", "0.4561805", "0.45595378", "0.4558965", "0.4555751", "0.4554522", "0.45531294", "0.45357725", "0.453154", "0.45261168", "0.45240733", "0.45233014", "0.45203266", "0.45181012", "0.45003352", "0.44964603", "0.44944575", "0.4488154", "0.44862175", "0.4470643", "0.44626516", "0.44622362", "0.4460359", "0.44569317", "0.44563684", "0.44549155", "0.44531006", "0.44519654", "0.44519025", "0.445058", "0.44487435", "0.4443875", "0.4437055", "0.44353613", "0.4435019", "0.44339058", "0.4432672", "0.44323668", "0.44282666", "0.44282222", "0.44260812", "0.44249082", "0.44171906", "0.44118086", "0.44092044", "0.4408167", "0.44004294", "0.43992677" ]
0.7105559
0
print array of values in one line
public static void printArray(double[] a) { for(int i=0;i<a.length;i++) { System.out.format("%.2f ",a[i]); } System.out.println(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static void displayValues(int [] array){\n System.out.println(Arrays.toString(array));\n }", "public String print(int[] array)\n {\n StringBuilder inputSB = new StringBuilder();\n String input;\n\n for(int i = 0; i < array.length; i++)\n {\n inputSB.append(array[i]);\n if(i != (array.length - 1))\n {\n inputSB.append(\",\");\n }\n }\n\n input = inputSB.toString();\n return input;\n }", "private static void printArray(Integer[] a) {\n\t\tfor (int k = 0; k < a.length; k++) {\n\t\t\tSystem.out.print(a[k] + \" \");\n\t\t}\n\t\tSystem.out.println();\n\t}", "static String printArray(int[] numbers) {\n\t\tint index = 0;\r\n\t\tString array = \"\";\r\n\t\twhile (index < numbers.length) {\r\n\t\t\tarray = array + numbers[index] + \" \";\r\n\t\t\tindex++;\r\n\t\t}\r\n\t\tprintln(array);\r\n\t\treturn array;\r\n\t}", "public static void printArray(int[] a) {\n System.out.print(\"{\" + a[0]);\n for (int i = 1; i < a.length; i++) {\n System.out.print(\", \" + a[i]);\n }\n System.out.println(\"}\");\n }", "private static void printArray(int[] a) {\n\t\tfor (int k = 0; k < a.length; k++) {\n\t\t\tSystem.out.print(a[k] + \" \");\n\t\t}\n\t\tSystem.out.println();\n\t}", "private static void printArray(int[] array) {\n\t\tfor(int i: array) {\n\t\t\tSystem.out.print(i + \"\\t\");\n\t\t}\n\t\tSystem.out.println();\n\t}", "public static void printArray(int[] arr) {\n String output = \"[ \";\n for (int i = 0; i < arr.length; i++) {\n if (i != 0) {\n output += \", \" + arr[i];\n }\n else {\n output += arr[i];\n }\n }\n output += \" ]\";\n System.out.println(output);\n }", "private static void printArray(Object[] array) {\n for (Object t : array) {\n System.out.println(\" \" + t + \", \");\n }\n }", "public static void printArray( int[] a ) {\n System.out.print(\"[\");\n for( int i : a )\n System.out.print( i + \",\");\n System.out.println(\"]\");\n }", "public static void printArray( int[] a ) {\n System.out.print(\"[\");\n for( int i : a )\n System.out.print( i + \",\");\n System.out.println(\"]\");\n }", "public static void printArray( int[] a ) {\n\tSystem.out.print(\"[\");\n\tfor( int i : a )\n\t System.out.print( i + \",\");\n\tSystem.out.print(\"]\");\n }", "public static void printArray( int[] a ) {\n\tSystem.out.print(\"[\");\n\tfor( int i : a )\n\t System.out.print( i + \",\");\n\tSystem.out.println(\"]\");\n }", "public void print()\n\t{\n\t\tStringBuffer print = new StringBuffer();\n\t\tif (arraySize != 0)\n\t\t{\n\t\t\tfor (int index = 0; index < arraySize - 1; index++) \n\t\t\t{ \n\t\t\t\tprint.append(array[index] + \", \");\n\t\t\t}\n\t\t\tprint.append(array[arraySize - 1]);\n\t\t\tSystem.out.println(print.toString());\n\t\t}\n\t}", "public static void printArray(int[] array){\n for(int i=0;i<array.length;i++){\n System.out.print(array[i]+\" \");\n }}", "public static void showArray(String[] a) {\n for (int row=0; row<a.length; row++) {\n Logger.print(a[row] + \" \");\n }\n Logger.print(\"\\n\");\n }", "static void printArray(Comparable[] arr) {\n\t\tint n = arr.length;\n\t\tfor (int i = 0; i < n; ++i)\n\t\t\tSystem.out.print(arr[i] + \" \");\n\t\tSystem.out.println();\n\t}", "static void printArray(int[] arr) {\n\t\tfor (int i = 0; i < arr.length; i++) {\n\t\t\tif (i != arr.length - 1)\n\t\t\t\tSystem.out.print(arr[i] + \", \");\n\t\t\telse\n\t\t\t\tSystem.out.print(arr[i]);\n\t\t}\n\t\tSystem.out.println();\n\t}", "private static String toString(final String...array) {\n if ((array == null) || (array.length <= 0)) return \"&nbsp;\";\n final StringBuilder sb = new StringBuilder();\n for (int i=0; i<array.length; i++) {\n if (i > 0) sb.append(\", \");\n sb.append(array[i]);\n }\n return sb.toString();\n }", "public static void printArray(double[] array){\n for(int k = 0; k < array.length; k++){\n System.out.print(array[k] + \" \");\n }\n System.out.println();\n }", "private static void print(int[] arr) {\n\t\tfor(int i=0;i<=arr.length;i++)\r\n\t\t{\r\n\t\t\tSystem.out.print(arr[i]+\" \");\r\n\t\t}\r\n\t}", "public void printArray(long[] array) {\n System.out.println(Arrays.toString(array));\n }", "public void printArray()\n {\n for (int i=0;i<array.length; i++)\n {\n System.out.print(array[i] + \" \"); \n }\n System.out.println();\n }", "private static void printArray(int[] arr) {\n\t\tSystem.out.println(\"array is \");\n\t\tfor (int i = 0; i < arr.length; i++) {\n\t\t\tSystem.out.print(arr[i]+\" \");\n\t\t}\n\t\tSystem.out.println();\n\t}", "public void toString(final int[] array) {\n String s = \"\";\n for (int p = 0; p < array.length - 1; p++) {\n s += array[p] + \",\";\n }\n s = s + array[array.length - 1];\n System.out.println(s);\n }", "private static void printArray(int[] array) {\n\t\tif(array==null){\n\t\t\tSystem.out.println(\"Nothing in the array.\");\n\t\t\treturn;\n\t\t}\n\t\t\n\t\tint Len = array.length;\n\t\tfor(int i=0; i<Len; i++){\n\t\t\tSystem.out.print(\" \" + array[i]);\n\t\t}\n\t\t\n\t\tSystem.out.println();\n\t}", "private void showArray() {\n\t\tSystem.out.println(Arrays.toString(this.array));\n\n\t}", "static void printArray(int[] array) {\n\n\n for (int i = 0; i < array.length; i++) {\n\n System.out.print(array[i] + \" \");\n\n\n }\n\n System.out.println();\n\n }", "public static void displayArr(int[] a)\r\n {\r\n for(int i : a)\r\n System.out.print(i + \" \");\r\n System.out.println();\r\n }", "public static void printArray(int[] array)\n {\n for (int value : array)\n System.out.print(value + \" \");\n System.out.println();\n }", "public static void MostrarArray(int array[]) {\n for (int i = 0; i < array.length; i++) {\n System.out.print(array[i] + \" | \");\n }\n System.out.println();\n }", "static void printArray(int arr[]) {\n\t\tint n = arr.length;\n\t\tfor (int i = 0; i < n; ++i)\n\t\t\tSystem.out.print(arr[i] + \" \");\n\t\tSystem.out.println();\n\t}", "public void printArrayValues(int[] arr){\n for(int val : arr){\n System.out.println( val );\n }\n }", "private void showArray(ArrayList<String[]> arr) {\n for(String[] row: arr){\n for(String x: row){\n System.out.print(x + \"\\t\\t\");\n }\n System.out.println();\n } \n System.out.println(\"------------------------------------\");\n }", "private static void printIntArray(int[] arr){\n\t\tSystem.out.print(\"[ \");\n\t\tfor(Integer i : arr){\n\t\t\tSystem.out.print(i + \" \");\n\t\t}\n\t\tSystem.out.println(\" ]\");\n\t}", "protected static void show(Comparable[] a) {\n\t\t\r\n\t\tString retStr = \"\";\r\n\t\tfor(int i=0 ; i< a.length; i++)\r\n\t\t\tretStr+=\" \"+a[i];\r\n\t\t\r\n\t\tSystem.out.println(retStr);\r\n\t\t\r\n\t}", "private static void show(Comparable[] a) {\n for (int i = 0; i < a.length; i++) {\n System.out.printf(\"a[%d] = %s\\n\", i + 1, a[i].toString());\n }\n System.out.println();\n }", "public static void show(Comparable[] a) {\n StringBuilder s= new StringBuilder();\n s.append(\"[\");\n for (int i = 0; i < a.length-1; i++) {\n s.append(a[i] + \", \");\n }\n s.append(a[a.length-1] + \"]\\n\");\n System.out.println(s.toString());\n }", "public static void printArray(int[] array) {\r\n\t\tSystem.out.print(\"4. All values stored in the array is: \");\r\n\t\tfor (int i = 0; i < myList.length; i++) {\r\n\t\t\tSystem.out.print(myList[i] + \" \");\r\n\t\t}\r\n\t}", "private void displayArray() {\r\n System.out.println(\"CEK ARRAY : \");\r\n for (i = 0; i < array.length; i++) {\r\n System.out.print(array[i]+\",\");\r\n }\r\n }", "public static void printArray(double[] array) {\r\n\r\n for (int i = 0; i < array.length; i++) {\r\n System.out.print(\"[\" + array[i] + \"] \");\r\n }\r\n System.out.println(\"\");\r\n }", "static void printArray(int arr[])\n {\n int n = arr.length;\n for (int i=0; i<n; ++i)\n System.out.print(arr[i]+\" \");\n System.out.println();\n }", "private static void print(int[] a) {\n\t\tfor (int i = 0; i < a.length; i++) {\n\t\t\tSystem.out.println(\"i is \"+ i +\" value is \"+ a[i]);\n\t\t}\n\t}", "private String arrayToString(double[] a) {\n StringBuffer buffy = new StringBuffer();\n for (int i=0; i<a.length; i++) {\n buffy.append(a[i]+\"\\t\");\n }\n return buffy.toString();\n }", "private String arrayToString(double[] a) {\n StringBuffer buffy = new StringBuffer();\n for (int i=0; i<a.length; i++) {\n buffy.append(a[i]+\"\\t\");\n }\n return buffy.toString();\n }", "public void printArray(int array[]) {\n\t\tfor(int i = 0;i<array.length;i++) {\n\t\t\tSystem.out.println(\"Array[\"+ (i+1) +\"] = \"+array[i]);\n\t\t}\n\t}", "public static String listArray(int num[]) {\n String out = \"{\"; //prints out { for beginingg output of an array output\n for (int j = 0; j < num.length; j++) { //loops through array \n if (j > 0) { //if the indice is greater than 0, print a comma to seperate the array elements neatly\n out += \", \";\n }\n out += num[j]; //assigns the value of the array at num[j] to out\n }\n out += \"} \"; //ending part of 'out' String\n return out; //return out string \n }", "public static void p(double[] array) {\n\t\tDecimalFormat df = new DecimalFormat(\"#.##\");\n\t\tfor (int i = 0; i < array.length; i++) {\n\t\t\tSystem.out.print(df.format(array[i])+\"\\t\");\n\t\t}\n\t\tSystem.out.println();\n\t}", "public static void printArray(int[] a) {\n for (int el : a) {\n System.out.print(el + \" \");\n }\n System.out.println();\n }", "public String getArrayValues(){\n String tempString = \"\";\r\n for(int y = 0; y < this.arraySize; y++){\r\n tempString += \" \"+this.arr[y]+\" \";\r\n }\r\n return tempString;\r\n }", "public static void jkPrintArrOneLong(long[] inputArr) {\n\n int printArrLen = inputArr.length;\n\n for (int printCount = 0; printCount < printArrLen; printCount++) {\n System.out.print(inputArr[printCount]);\n if (printCount != printArrLen - 1) System.out.print(\", \");\n }\n System.out.println();\n //---------------------------- /print elements of array\n\n }", "public static void printArray(int[] array) {\n\n\t\tfor (int i = 0; i < array.length; i++) {\n\t\t\tSystem.out.print(array[i] + \" \");\n\t\t}\n\t\tSystem.out.println();\n\t}", "static void printArray(int arr[]) \n\t { \n\t\t int n = arr.length; \n\t\t for (int i=0; i<n; ++i) \n\t\t\t System.out.print(arr[i] + \" \"); \n\t\t System.out.println(); \n\t }", "static void printArray(int arr[]) {\n int n = arr.length;\n for (int i = 0; i < n; ++i)\n System.out.print(arr[i] + \" \");\n \tSystem.out.println();\n }", "public static void printArr(int[] arr){\n int i;\n System.out.print(\"Array { \");\n for(i = 0; i < n; i++){\n System.out.print(arr[i] + ((i < n - 1)? \",\":\"\") + \" \");\n }\n System.out.println(\"}\");\n }", "public static void printArray(int[] arr) {\n\t\t\t\t\tfor (int j = 0; j < arr.length - 1; j++) {\n\t\t\t\t\t\tSystem.out.print(arr[j] + \", \");\n\t\t\t\t\t}\n\t\t\t\t\tSystem.out.println(arr[arr.length - 1]);\n\t\t\t\t}", "private static <T> void show(Comparable<T>[] a) {\n\t\tfor(int i=0; i<a.length; i++) \r\n\t\t\tSystem.out.print(a[i] + \" \");\r\n\t\tSystem.out.println();\r\n\t}", "public static void Display(int[] array) {\n for(int i=0;i<array.length;i++){\n System.out.print(array[i]+\"\\t\");\n }\n System.out.println();\n }", "static void writearray(String[]array) {\n\t\t for (int i = 0; i < array.length; i++) {\n\t\t\tSystem.out.println(array[i]);\n\t\t}\n\t}", "public static void main(String[] args)\n {\n int[] array = { 32, 27, 64, 18, 95, 14, 90, 70, 60, 37 };\n System.out.printf(\"%s%8s%n\", \"Index\", \"Value\"); // column headings\n \n // output each array element's value\n for (int counter = 0; counter < array.length; counter++)\n System.out.printf(\"%5d%8d%n\", counter, array[counter]);\n}", "public String toString() {\n int iMax = array.length - 1;\n if (iMax == -1)\n return \"[]\";\n\n StringBuilder b = new StringBuilder();\n b.append('[');\n for (int i = 0; ; i++) {\n b.append(getRaw(byteOffset(i)));\n if (i == iMax)\n return b.append(']').toString();\n b.append(',').append(' ');\n }\n }", "private void linearTime() {\n for (E e : array) {\n if (e != null)\n System.out.print(e + \", \");\n }\n System.out.println(); // jump to next line\n }", "public static void printArray(int v[]) {\n for (int i = 0; i < v.length; i++) {\n if (i == (v.length) - 2) {\n System.out.print(\"Posição \" + i + \": (\" + v[i] + \") e \");\n } else if (!(i == (v.length) - 1)) {\n System.out.print(\"Posição \" + i + \": (\" + v[i] + \"), \");\n } else {\n System.out.print(\"Posição \" + i + \": (\" + v[i] + \")\");\n }\n }\n System.out.println();\n }", "static void printArray(int arr[])\n {\n int n = arr.length;\n for (int i=0; i<n; ++i)\n System.out.print(arr[i] + \" \");\n\n System.out.println();\n }", "public static void printArray(int[] array){\n\n for(int i = 0 ; i < array.length; i++){\n System.out.println(\"Element \" + i + \", value is \" + array[i]);\n }\n\n }", "public static void printIntArray(int[] array){\n for(int i = 0; i < array.length; i++)\n System.out.print(\"[\" + i + \"]\" + \" = \" + array[i] + \" \");\n }", "public String toString() {\n String[] collect = new String[this.array.length];\n for (int i = 0; i < this.array.length; i++) {\n collect[i] = String.valueOf(this.array[i]);\n }\n return \"[\" + String.join(\";\", collect) + \"]\";\n }", "public static void jkPrintArrOneStr(String[] inputArr) {\n\n int printArrLen = inputArr.length;\n\n for (int printCount = 0; printCount < printArrLen; printCount++) {\n System.out.print(inputArr[printCount]);\n if (printCount != printArrLen - 1) System.out.print(\", \");\n }\n System.out.println();\n //---------------------------- /print elements of array\n\n }", "public static void printArray(String[] arr) {\n\t\tfor(int i = 0; i < arr.length; i++) {\n\t\t\tSystem.out.print(arr[i] + \" \");\n\t\t}\n\t}", "static void printArray(int arr[])\n {\n int n = arr.length;\n for (int i=0; i<n; ++i)\n System.out.print(arr[i] + \" \");\n System.out.println();\n }", "void printArray(Integer arr[])\n {\n int n = arr.length;\n for (int i=0; i<n; ++i)\n System.out.print(arr[i] + \" \");\n System.out.println();\n System.out.println();\n }", "public static void printArray(Cell[] arr) {\r\n\t\tConstants.logger.info(\"\\nWhole Field as single Array[\");\r\n\t\tfor (int j = 0; j < arr.length; j++) {\r\n\t\t\tSystem.out.print(arr[j]);\r\n\t\t}\r\n\t\tConstants.logger.info(\"]\\n\");\r\n\t}", "public static void main(String[] args){\n int[] arr = {12, 3, 5};\n System.out.println(Arrays.toString(arr));\n }", "private static void display(int[] arr) {\n\t\tif (null != arr && arr.length > 0) {\n\t\t\tfor (int n : arr) {\n\t\t\t\tSystem.out.print(n + \" \");\n\t\t\t}\n\t\t}\n\t\tSystem.out.println();\n\t}", "static void printArray(char [] a) {\n\t\tfor (int i=0; i< a.length; i++) System.out.print(a[i]); \n\t\tSystem.out.println();\n\t}", "public void print(String[] a){\n\t\tfor(int i = 0; i < a.length; i++){\n\t\t\tSystem.out.print(a[i] + \" \");\n\t\t}\n\t\tSystem.out.println();\n\t}", "public void printAllValues ()\n\t{\n\t\tfor (int index = 0; index < count; index = index + 1 ) {\n\t\t\t\n\t\t\tif (index%5 == 0){\n\t\t\t\t\n\t\t\t\tSystem.out.println();\n\t\t\t}\n\t\t\t\n\t\tSystem.out.print(array1[index] + \"\\t\");\t\n\t\t}\n\t}", "public static void printArray(int[] array) {\r\n\t\tSystem.out.println(\"\");\r\n\t\tSystem.out.print(\"array = [\");\r\n\t\tfor (int i=0; i < SIZE_OF_ARRAY-1; i++)\r\n\t\t\tSystem.out.print(\"\"+ array[i]+\" | \");\r\n\t\tSystem.out.println(\"\"+ array[SIZE_OF_ARRAY-1]+\"]\");\r\n\t\tSystem.out.println(\"-------------------------------------------------\"\r\n\t\t\t\t+ \"-------------------\");\r\n\t}", "private static void show(Comparable[] a) {\n for (Comparable a1 : a)\n System.out.print(a1 + \" \");\n\n System.out.println();\n }", "public static void printArray(int[] arr) {\n System.out.println(\"===\");\n for (int i = 0; i < arr.length; i++) {\n System.out.println(arr[i]);\n }\n System.out.println(\"===\");\n }", "public static void printArray(String[] array){\n int noOfElement=array.length; // Number of element is the length of this array\n for(int i=0;i<array.length;i++){ // print out the each element in array with \" \"(space) splitting\n System.out.print(array[i]+\" \");}}", "static void printArray(int arr[]) \n { \n for (int i = 0; i < arr.length; i++) \n System.out.print(arr[i] + \" \"); \n }", "private void writeArrayToLine(String[ ] args) {\r\n\t\tStringBuilder buf = new StringBuilder();\r\n\t\tif (args.length>0) buf.append(args[0]);\r\n\t\tint k = 1;\r\n\t\twhile(k < args.length) buf.append(delim).append(args[k++]);\r\n\t\tout.println(buf.toString());\r\n\t}", "public static void jkPrintArrOneInt(int[] inputArr) {\n\n int printArrLen = inputArr.length;\n\n for (int printCount = 0; printCount < printArrLen; printCount++) {\n System.out.print(inputArr[printCount]);\n if (printCount != printArrLen - 1) System.out.print(\", \");\n }\n System.out.println();\n //---------------------------- /print elements of array\n\n }", "static void print(int[] array)\n\t{\n\t\tfor(int i = 0; i < array.length; i++)\n\t\t{\n\t\t\tSystem.out.println(array[i]);\n\t\t}\n\t}", "public static String toString(double[] array)\r\n\t{\r\n\t\tString str = \"[ \";\r\n\t\tfor (int i = 0; i < array.length; i++)\r\n\t\t\tstr += String.valueOf(array[i]) + \" \";\r\n\t\treturn str + \"]\";\r\n\t}", "@Override\n\tpublic String toString() {\n\t\tString s = \"\";\n\t\ts += \"[\";\n\t\tif (size() > 0) {\n\t\t\ts += arr[0];\n\t\t\tfor (int i = 1; i < arr.length; i++) {\n\t\t\t\ts += \", \" + arr[i];\n\t\t\t}\n\t\t}\n\t\ts += \"]\";\n\t\treturn s;\n\t}", "public static void printArray(char[] array) {\n for (int i = 0; i < array.length; i++) {\n System.out.print(array[i] + \" \");\n }\n System.out.println();\n }", "public void printArray(int [] array) {\n\t\t\n\t\tfor(int i =0; i<array.length; i++) {\n\t\t\tSystem.out.print(array[i] + \" \");\n\t\t}\n\t}", "public static void printArray(int[] array) {\n \n for (int i = 0; i < array.length; i++) {\n \n System.out.println(\"array[\" + i + \"] = \" + array[i]);\n }\n }", "static void printArray(int[] arr) {\n for (int item : arr) {\n System.out.print(item+ \" \");\n }\n }", "public static void printArray(int[] arr) {\r\n\t\tfor (int element : arr) {\r\n\t\t\tSystem.out.print(element + \" \");\r\n\t\t}\r\n\r\n\t\tSystem.out.println();\r\n\t}", "public void printArray(int[] arr) {\n int n = arr.length;\n for (int i = 0; i < n; i++) {\n System.out.print(arr[i] + \" \");\n }\n }", "static void print (String[] A) {\n\t\tfor(int i = 0; i < A.length; i++) {\n\t\t\tSystem.out.print(A[i] + \" \");\n\t\t}\n\t\tSystem.out.println();\n\t}", "public static String toString(int[] theArray) {\n String str = \"{\";\n\n for (int i = 0; i < theArray.length; i++) {\n str+=theArray[i];\n //adds a comma after every number except the last one\n if(i+1 < theArray.length) {\n str += \",\";\n }\n }\n str += \"}\";\n return str;\n }", "public void print() {\n\t\tfor (int i = 0; i < TABLE_SIZE; i++) {\n\t\t\tSystem.out.print(\"|\");\n\t\t\tif (array[i] != null) {\n\t\t\t\tSystem.out.print(array[i].value);\n\t\t\t} else {\n\t\t\t\tSystem.out.print(\" \");\n\t\t\t}\n\t\t}\n\n\t\tSystem.out.print(\"|\\n\");\n\t}", "public static void printArray(int[] array)\r\n {\r\n //Loop through array and print each individual element\r\n for (int n=0; n < array.length; ++n)\r\n {\r\n System.out.println(array [n]); \r\n \r\n }\r\n \r\n }", "public void printVal()\n {\n for (int i=0;i<intData.length;i++)\n System.out.print(intData[i] + \" \");\n System.out.println();\n System.out.println(\"Sum: \" + sum + \", Avg: \" + avg + \", Prod: \" + prod);\n }", "private static String arrayToString(int[] array) {\n\n String arrayOutput = \"\";\n\n // seperate the elements of the array and add each to the outputstring\n for (int position = 0; position < array.length; position++) {\n\n arrayOutput += array[position] + \", \";\n }\n\n // trim the outputstring of the last seperation char\n arrayOutput = arrayOutput.substring(0, (arrayOutput.length() - 1));\n\n // output the string of the integer array\n return arrayOutput;\n }", "void printArray(int[] arr) {\n\t\tfor (int ele : arr) {\n\t\t\tSystem.out.print(ele + \" \");\n\t\t}\n\t}" ]
[ "0.73164487", "0.7301957", "0.72029066", "0.7126968", "0.7093157", "0.7065954", "0.7057568", "0.70449764", "0.7036986", "0.70313686", "0.70313686", "0.69705296", "0.6962305", "0.69348043", "0.6890752", "0.6870862", "0.6867457", "0.6864596", "0.68396646", "0.68366337", "0.68231326", "0.68197626", "0.6802887", "0.67929536", "0.6771121", "0.67670274", "0.6762772", "0.67586017", "0.67514807", "0.6726309", "0.6712717", "0.6702777", "0.67001456", "0.6695009", "0.66936034", "0.66904396", "0.66902965", "0.6688814", "0.6686742", "0.6682107", "0.6679821", "0.6675493", "0.6673556", "0.6663925", "0.6663925", "0.66579133", "0.66513747", "0.6628581", "0.6626112", "0.6625139", "0.6622372", "0.66159654", "0.661175", "0.6600761", "0.6595268", "0.6593372", "0.65906096", "0.65877634", "0.65762895", "0.6568519", "0.65533084", "0.65432405", "0.65416276", "0.6540426", "0.65333945", "0.65300304", "0.65231264", "0.6521339", "0.6520731", "0.6519925", "0.65118545", "0.65037256", "0.65036285", "0.64959836", "0.64950126", "0.64896667", "0.6461411", "0.64602154", "0.6455849", "0.64506066", "0.643512", "0.64255667", "0.6420351", "0.6409267", "0.64084834", "0.6407407", "0.6406315", "0.64035344", "0.6397562", "0.6392411", "0.6376831", "0.63730764", "0.63700664", "0.6369579", "0.63688314", "0.63670397", "0.63637227", "0.6362698", "0.63436663", "0.63391596" ]
0.69677544
12
print array of values in one line
public static void printArray(String[] a,String sep) { for(int i=0;i<a.length;i++) { System.out.print(a[i]+sep); } System.out.println(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static void displayValues(int [] array){\n System.out.println(Arrays.toString(array));\n }", "public String print(int[] array)\n {\n StringBuilder inputSB = new StringBuilder();\n String input;\n\n for(int i = 0; i < array.length; i++)\n {\n inputSB.append(array[i]);\n if(i != (array.length - 1))\n {\n inputSB.append(\",\");\n }\n }\n\n input = inputSB.toString();\n return input;\n }", "private static void printArray(Integer[] a) {\n\t\tfor (int k = 0; k < a.length; k++) {\n\t\t\tSystem.out.print(a[k] + \" \");\n\t\t}\n\t\tSystem.out.println();\n\t}", "static String printArray(int[] numbers) {\n\t\tint index = 0;\r\n\t\tString array = \"\";\r\n\t\twhile (index < numbers.length) {\r\n\t\t\tarray = array + numbers[index] + \" \";\r\n\t\t\tindex++;\r\n\t\t}\r\n\t\tprintln(array);\r\n\t\treturn array;\r\n\t}", "public static void printArray(int[] a) {\n System.out.print(\"{\" + a[0]);\n for (int i = 1; i < a.length; i++) {\n System.out.print(\", \" + a[i]);\n }\n System.out.println(\"}\");\n }", "private static void printArray(int[] a) {\n\t\tfor (int k = 0; k < a.length; k++) {\n\t\t\tSystem.out.print(a[k] + \" \");\n\t\t}\n\t\tSystem.out.println();\n\t}", "private static void printArray(int[] array) {\n\t\tfor(int i: array) {\n\t\t\tSystem.out.print(i + \"\\t\");\n\t\t}\n\t\tSystem.out.println();\n\t}", "public static void printArray(int[] arr) {\n String output = \"[ \";\n for (int i = 0; i < arr.length; i++) {\n if (i != 0) {\n output += \", \" + arr[i];\n }\n else {\n output += arr[i];\n }\n }\n output += \" ]\";\n System.out.println(output);\n }", "private static void printArray(Object[] array) {\n for (Object t : array) {\n System.out.println(\" \" + t + \", \");\n }\n }", "public static void printArray( int[] a ) {\n System.out.print(\"[\");\n for( int i : a )\n System.out.print( i + \",\");\n System.out.println(\"]\");\n }", "public static void printArray( int[] a ) {\n System.out.print(\"[\");\n for( int i : a )\n System.out.print( i + \",\");\n System.out.println(\"]\");\n }", "public static void printArray( int[] a ) {\n\tSystem.out.print(\"[\");\n\tfor( int i : a )\n\t System.out.print( i + \",\");\n\tSystem.out.print(\"]\");\n }", "public static void printArray(double[] a) {\n\t\tfor(int i=0;i<a.length;i++) {\n\t\t\tSystem.out.format(\"%.2f \",a[i]);\n\t\t}\n\t\tSystem.out.println();\n\t}", "public static void printArray( int[] a ) {\n\tSystem.out.print(\"[\");\n\tfor( int i : a )\n\t System.out.print( i + \",\");\n\tSystem.out.println(\"]\");\n }", "public void print()\n\t{\n\t\tStringBuffer print = new StringBuffer();\n\t\tif (arraySize != 0)\n\t\t{\n\t\t\tfor (int index = 0; index < arraySize - 1; index++) \n\t\t\t{ \n\t\t\t\tprint.append(array[index] + \", \");\n\t\t\t}\n\t\t\tprint.append(array[arraySize - 1]);\n\t\t\tSystem.out.println(print.toString());\n\t\t}\n\t}", "public static void printArray(int[] array){\n for(int i=0;i<array.length;i++){\n System.out.print(array[i]+\" \");\n }}", "public static void showArray(String[] a) {\n for (int row=0; row<a.length; row++) {\n Logger.print(a[row] + \" \");\n }\n Logger.print(\"\\n\");\n }", "static void printArray(Comparable[] arr) {\n\t\tint n = arr.length;\n\t\tfor (int i = 0; i < n; ++i)\n\t\t\tSystem.out.print(arr[i] + \" \");\n\t\tSystem.out.println();\n\t}", "static void printArray(int[] arr) {\n\t\tfor (int i = 0; i < arr.length; i++) {\n\t\t\tif (i != arr.length - 1)\n\t\t\t\tSystem.out.print(arr[i] + \", \");\n\t\t\telse\n\t\t\t\tSystem.out.print(arr[i]);\n\t\t}\n\t\tSystem.out.println();\n\t}", "private static String toString(final String...array) {\n if ((array == null) || (array.length <= 0)) return \"&nbsp;\";\n final StringBuilder sb = new StringBuilder();\n for (int i=0; i<array.length; i++) {\n if (i > 0) sb.append(\", \");\n sb.append(array[i]);\n }\n return sb.toString();\n }", "public static void printArray(double[] array){\n for(int k = 0; k < array.length; k++){\n System.out.print(array[k] + \" \");\n }\n System.out.println();\n }", "private static void print(int[] arr) {\n\t\tfor(int i=0;i<=arr.length;i++)\r\n\t\t{\r\n\t\t\tSystem.out.print(arr[i]+\" \");\r\n\t\t}\r\n\t}", "public void printArray(long[] array) {\n System.out.println(Arrays.toString(array));\n }", "public void printArray()\n {\n for (int i=0;i<array.length; i++)\n {\n System.out.print(array[i] + \" \"); \n }\n System.out.println();\n }", "private static void printArray(int[] arr) {\n\t\tSystem.out.println(\"array is \");\n\t\tfor (int i = 0; i < arr.length; i++) {\n\t\t\tSystem.out.print(arr[i]+\" \");\n\t\t}\n\t\tSystem.out.println();\n\t}", "public void toString(final int[] array) {\n String s = \"\";\n for (int p = 0; p < array.length - 1; p++) {\n s += array[p] + \",\";\n }\n s = s + array[array.length - 1];\n System.out.println(s);\n }", "private static void printArray(int[] array) {\n\t\tif(array==null){\n\t\t\tSystem.out.println(\"Nothing in the array.\");\n\t\t\treturn;\n\t\t}\n\t\t\n\t\tint Len = array.length;\n\t\tfor(int i=0; i<Len; i++){\n\t\t\tSystem.out.print(\" \" + array[i]);\n\t\t}\n\t\t\n\t\tSystem.out.println();\n\t}", "private void showArray() {\n\t\tSystem.out.println(Arrays.toString(this.array));\n\n\t}", "static void printArray(int[] array) {\n\n\n for (int i = 0; i < array.length; i++) {\n\n System.out.print(array[i] + \" \");\n\n\n }\n\n System.out.println();\n\n }", "public static void displayArr(int[] a)\r\n {\r\n for(int i : a)\r\n System.out.print(i + \" \");\r\n System.out.println();\r\n }", "public static void printArray(int[] array)\n {\n for (int value : array)\n System.out.print(value + \" \");\n System.out.println();\n }", "public static void MostrarArray(int array[]) {\n for (int i = 0; i < array.length; i++) {\n System.out.print(array[i] + \" | \");\n }\n System.out.println();\n }", "static void printArray(int arr[]) {\n\t\tint n = arr.length;\n\t\tfor (int i = 0; i < n; ++i)\n\t\t\tSystem.out.print(arr[i] + \" \");\n\t\tSystem.out.println();\n\t}", "public void printArrayValues(int[] arr){\n for(int val : arr){\n System.out.println( val );\n }\n }", "private void showArray(ArrayList<String[]> arr) {\n for(String[] row: arr){\n for(String x: row){\n System.out.print(x + \"\\t\\t\");\n }\n System.out.println();\n } \n System.out.println(\"------------------------------------\");\n }", "private static void printIntArray(int[] arr){\n\t\tSystem.out.print(\"[ \");\n\t\tfor(Integer i : arr){\n\t\t\tSystem.out.print(i + \" \");\n\t\t}\n\t\tSystem.out.println(\" ]\");\n\t}", "protected static void show(Comparable[] a) {\n\t\t\r\n\t\tString retStr = \"\";\r\n\t\tfor(int i=0 ; i< a.length; i++)\r\n\t\t\tretStr+=\" \"+a[i];\r\n\t\t\r\n\t\tSystem.out.println(retStr);\r\n\t\t\r\n\t}", "private static void show(Comparable[] a) {\n for (int i = 0; i < a.length; i++) {\n System.out.printf(\"a[%d] = %s\\n\", i + 1, a[i].toString());\n }\n System.out.println();\n }", "public static void show(Comparable[] a) {\n StringBuilder s= new StringBuilder();\n s.append(\"[\");\n for (int i = 0; i < a.length-1; i++) {\n s.append(a[i] + \", \");\n }\n s.append(a[a.length-1] + \"]\\n\");\n System.out.println(s.toString());\n }", "public static void printArray(int[] array) {\r\n\t\tSystem.out.print(\"4. All values stored in the array is: \");\r\n\t\tfor (int i = 0; i < myList.length; i++) {\r\n\t\t\tSystem.out.print(myList[i] + \" \");\r\n\t\t}\r\n\t}", "private void displayArray() {\r\n System.out.println(\"CEK ARRAY : \");\r\n for (i = 0; i < array.length; i++) {\r\n System.out.print(array[i]+\",\");\r\n }\r\n }", "public static void printArray(double[] array) {\r\n\r\n for (int i = 0; i < array.length; i++) {\r\n System.out.print(\"[\" + array[i] + \"] \");\r\n }\r\n System.out.println(\"\");\r\n }", "static void printArray(int arr[])\n {\n int n = arr.length;\n for (int i=0; i<n; ++i)\n System.out.print(arr[i]+\" \");\n System.out.println();\n }", "private static void print(int[] a) {\n\t\tfor (int i = 0; i < a.length; i++) {\n\t\t\tSystem.out.println(\"i is \"+ i +\" value is \"+ a[i]);\n\t\t}\n\t}", "private String arrayToString(double[] a) {\n StringBuffer buffy = new StringBuffer();\n for (int i=0; i<a.length; i++) {\n buffy.append(a[i]+\"\\t\");\n }\n return buffy.toString();\n }", "private String arrayToString(double[] a) {\n StringBuffer buffy = new StringBuffer();\n for (int i=0; i<a.length; i++) {\n buffy.append(a[i]+\"\\t\");\n }\n return buffy.toString();\n }", "public void printArray(int array[]) {\n\t\tfor(int i = 0;i<array.length;i++) {\n\t\t\tSystem.out.println(\"Array[\"+ (i+1) +\"] = \"+array[i]);\n\t\t}\n\t}", "public static String listArray(int num[]) {\n String out = \"{\"; //prints out { for beginingg output of an array output\n for (int j = 0; j < num.length; j++) { //loops through array \n if (j > 0) { //if the indice is greater than 0, print a comma to seperate the array elements neatly\n out += \", \";\n }\n out += num[j]; //assigns the value of the array at num[j] to out\n }\n out += \"} \"; //ending part of 'out' String\n return out; //return out string \n }", "public static void p(double[] array) {\n\t\tDecimalFormat df = new DecimalFormat(\"#.##\");\n\t\tfor (int i = 0; i < array.length; i++) {\n\t\t\tSystem.out.print(df.format(array[i])+\"\\t\");\n\t\t}\n\t\tSystem.out.println();\n\t}", "public static void printArray(int[] a) {\n for (int el : a) {\n System.out.print(el + \" \");\n }\n System.out.println();\n }", "public String getArrayValues(){\n String tempString = \"\";\r\n for(int y = 0; y < this.arraySize; y++){\r\n tempString += \" \"+this.arr[y]+\" \";\r\n }\r\n return tempString;\r\n }", "public static void jkPrintArrOneLong(long[] inputArr) {\n\n int printArrLen = inputArr.length;\n\n for (int printCount = 0; printCount < printArrLen; printCount++) {\n System.out.print(inputArr[printCount]);\n if (printCount != printArrLen - 1) System.out.print(\", \");\n }\n System.out.println();\n //---------------------------- /print elements of array\n\n }", "public static void printArray(int[] array) {\n\n\t\tfor (int i = 0; i < array.length; i++) {\n\t\t\tSystem.out.print(array[i] + \" \");\n\t\t}\n\t\tSystem.out.println();\n\t}", "static void printArray(int arr[]) \n\t { \n\t\t int n = arr.length; \n\t\t for (int i=0; i<n; ++i) \n\t\t\t System.out.print(arr[i] + \" \"); \n\t\t System.out.println(); \n\t }", "static void printArray(int arr[]) {\n int n = arr.length;\n for (int i = 0; i < n; ++i)\n System.out.print(arr[i] + \" \");\n \tSystem.out.println();\n }", "public static void printArr(int[] arr){\n int i;\n System.out.print(\"Array { \");\n for(i = 0; i < n; i++){\n System.out.print(arr[i] + ((i < n - 1)? \",\":\"\") + \" \");\n }\n System.out.println(\"}\");\n }", "public static void printArray(int[] arr) {\n\t\t\t\t\tfor (int j = 0; j < arr.length - 1; j++) {\n\t\t\t\t\t\tSystem.out.print(arr[j] + \", \");\n\t\t\t\t\t}\n\t\t\t\t\tSystem.out.println(arr[arr.length - 1]);\n\t\t\t\t}", "private static <T> void show(Comparable<T>[] a) {\n\t\tfor(int i=0; i<a.length; i++) \r\n\t\t\tSystem.out.print(a[i] + \" \");\r\n\t\tSystem.out.println();\r\n\t}", "public static void Display(int[] array) {\n for(int i=0;i<array.length;i++){\n System.out.print(array[i]+\"\\t\");\n }\n System.out.println();\n }", "static void writearray(String[]array) {\n\t\t for (int i = 0; i < array.length; i++) {\n\t\t\tSystem.out.println(array[i]);\n\t\t}\n\t}", "public static void main(String[] args)\n {\n int[] array = { 32, 27, 64, 18, 95, 14, 90, 70, 60, 37 };\n System.out.printf(\"%s%8s%n\", \"Index\", \"Value\"); // column headings\n \n // output each array element's value\n for (int counter = 0; counter < array.length; counter++)\n System.out.printf(\"%5d%8d%n\", counter, array[counter]);\n}", "public String toString() {\n int iMax = array.length - 1;\n if (iMax == -1)\n return \"[]\";\n\n StringBuilder b = new StringBuilder();\n b.append('[');\n for (int i = 0; ; i++) {\n b.append(getRaw(byteOffset(i)));\n if (i == iMax)\n return b.append(']').toString();\n b.append(',').append(' ');\n }\n }", "private void linearTime() {\n for (E e : array) {\n if (e != null)\n System.out.print(e + \", \");\n }\n System.out.println(); // jump to next line\n }", "public static void printArray(int v[]) {\n for (int i = 0; i < v.length; i++) {\n if (i == (v.length) - 2) {\n System.out.print(\"Posição \" + i + \": (\" + v[i] + \") e \");\n } else if (!(i == (v.length) - 1)) {\n System.out.print(\"Posição \" + i + \": (\" + v[i] + \"), \");\n } else {\n System.out.print(\"Posição \" + i + \": (\" + v[i] + \")\");\n }\n }\n System.out.println();\n }", "static void printArray(int arr[])\n {\n int n = arr.length;\n for (int i=0; i<n; ++i)\n System.out.print(arr[i] + \" \");\n\n System.out.println();\n }", "public static void printArray(int[] array){\n\n for(int i = 0 ; i < array.length; i++){\n System.out.println(\"Element \" + i + \", value is \" + array[i]);\n }\n\n }", "public static void printIntArray(int[] array){\n for(int i = 0; i < array.length; i++)\n System.out.print(\"[\" + i + \"]\" + \" = \" + array[i] + \" \");\n }", "public String toString() {\n String[] collect = new String[this.array.length];\n for (int i = 0; i < this.array.length; i++) {\n collect[i] = String.valueOf(this.array[i]);\n }\n return \"[\" + String.join(\";\", collect) + \"]\";\n }", "public static void jkPrintArrOneStr(String[] inputArr) {\n\n int printArrLen = inputArr.length;\n\n for (int printCount = 0; printCount < printArrLen; printCount++) {\n System.out.print(inputArr[printCount]);\n if (printCount != printArrLen - 1) System.out.print(\", \");\n }\n System.out.println();\n //---------------------------- /print elements of array\n\n }", "public static void printArray(String[] arr) {\n\t\tfor(int i = 0; i < arr.length; i++) {\n\t\t\tSystem.out.print(arr[i] + \" \");\n\t\t}\n\t}", "static void printArray(int arr[])\n {\n int n = arr.length;\n for (int i=0; i<n; ++i)\n System.out.print(arr[i] + \" \");\n System.out.println();\n }", "void printArray(Integer arr[])\n {\n int n = arr.length;\n for (int i=0; i<n; ++i)\n System.out.print(arr[i] + \" \");\n System.out.println();\n System.out.println();\n }", "public static void printArray(Cell[] arr) {\r\n\t\tConstants.logger.info(\"\\nWhole Field as single Array[\");\r\n\t\tfor (int j = 0; j < arr.length; j++) {\r\n\t\t\tSystem.out.print(arr[j]);\r\n\t\t}\r\n\t\tConstants.logger.info(\"]\\n\");\r\n\t}", "public static void main(String[] args){\n int[] arr = {12, 3, 5};\n System.out.println(Arrays.toString(arr));\n }", "private static void display(int[] arr) {\n\t\tif (null != arr && arr.length > 0) {\n\t\t\tfor (int n : arr) {\n\t\t\t\tSystem.out.print(n + \" \");\n\t\t\t}\n\t\t}\n\t\tSystem.out.println();\n\t}", "static void printArray(char [] a) {\n\t\tfor (int i=0; i< a.length; i++) System.out.print(a[i]); \n\t\tSystem.out.println();\n\t}", "public void print(String[] a){\n\t\tfor(int i = 0; i < a.length; i++){\n\t\t\tSystem.out.print(a[i] + \" \");\n\t\t}\n\t\tSystem.out.println();\n\t}", "public void printAllValues ()\n\t{\n\t\tfor (int index = 0; index < count; index = index + 1 ) {\n\t\t\t\n\t\t\tif (index%5 == 0){\n\t\t\t\t\n\t\t\t\tSystem.out.println();\n\t\t\t}\n\t\t\t\n\t\tSystem.out.print(array1[index] + \"\\t\");\t\n\t\t}\n\t}", "public static void printArray(int[] array) {\r\n\t\tSystem.out.println(\"\");\r\n\t\tSystem.out.print(\"array = [\");\r\n\t\tfor (int i=0; i < SIZE_OF_ARRAY-1; i++)\r\n\t\t\tSystem.out.print(\"\"+ array[i]+\" | \");\r\n\t\tSystem.out.println(\"\"+ array[SIZE_OF_ARRAY-1]+\"]\");\r\n\t\tSystem.out.println(\"-------------------------------------------------\"\r\n\t\t\t\t+ \"-------------------\");\r\n\t}", "private static void show(Comparable[] a) {\n for (Comparable a1 : a)\n System.out.print(a1 + \" \");\n\n System.out.println();\n }", "public static void printArray(int[] arr) {\n System.out.println(\"===\");\n for (int i = 0; i < arr.length; i++) {\n System.out.println(arr[i]);\n }\n System.out.println(\"===\");\n }", "public static void printArray(String[] array){\n int noOfElement=array.length; // Number of element is the length of this array\n for(int i=0;i<array.length;i++){ // print out the each element in array with \" \"(space) splitting\n System.out.print(array[i]+\" \");}}", "static void printArray(int arr[]) \n { \n for (int i = 0; i < arr.length; i++) \n System.out.print(arr[i] + \" \"); \n }", "private void writeArrayToLine(String[ ] args) {\r\n\t\tStringBuilder buf = new StringBuilder();\r\n\t\tif (args.length>0) buf.append(args[0]);\r\n\t\tint k = 1;\r\n\t\twhile(k < args.length) buf.append(delim).append(args[k++]);\r\n\t\tout.println(buf.toString());\r\n\t}", "public static void jkPrintArrOneInt(int[] inputArr) {\n\n int printArrLen = inputArr.length;\n\n for (int printCount = 0; printCount < printArrLen; printCount++) {\n System.out.print(inputArr[printCount]);\n if (printCount != printArrLen - 1) System.out.print(\", \");\n }\n System.out.println();\n //---------------------------- /print elements of array\n\n }", "static void print(int[] array)\n\t{\n\t\tfor(int i = 0; i < array.length; i++)\n\t\t{\n\t\t\tSystem.out.println(array[i]);\n\t\t}\n\t}", "public static String toString(double[] array)\r\n\t{\r\n\t\tString str = \"[ \";\r\n\t\tfor (int i = 0; i < array.length; i++)\r\n\t\t\tstr += String.valueOf(array[i]) + \" \";\r\n\t\treturn str + \"]\";\r\n\t}", "@Override\n\tpublic String toString() {\n\t\tString s = \"\";\n\t\ts += \"[\";\n\t\tif (size() > 0) {\n\t\t\ts += arr[0];\n\t\t\tfor (int i = 1; i < arr.length; i++) {\n\t\t\t\ts += \", \" + arr[i];\n\t\t\t}\n\t\t}\n\t\ts += \"]\";\n\t\treturn s;\n\t}", "public static void printArray(char[] array) {\n for (int i = 0; i < array.length; i++) {\n System.out.print(array[i] + \" \");\n }\n System.out.println();\n }", "public void printArray(int [] array) {\n\t\t\n\t\tfor(int i =0; i<array.length; i++) {\n\t\t\tSystem.out.print(array[i] + \" \");\n\t\t}\n\t}", "public static void printArray(int[] array) {\n \n for (int i = 0; i < array.length; i++) {\n \n System.out.println(\"array[\" + i + \"] = \" + array[i]);\n }\n }", "static void printArray(int[] arr) {\n for (int item : arr) {\n System.out.print(item+ \" \");\n }\n }", "public static void printArray(int[] arr) {\r\n\t\tfor (int element : arr) {\r\n\t\t\tSystem.out.print(element + \" \");\r\n\t\t}\r\n\r\n\t\tSystem.out.println();\r\n\t}", "public void printArray(int[] arr) {\n int n = arr.length;\n for (int i = 0; i < n; i++) {\n System.out.print(arr[i] + \" \");\n }\n }", "static void print (String[] A) {\n\t\tfor(int i = 0; i < A.length; i++) {\n\t\t\tSystem.out.print(A[i] + \" \");\n\t\t}\n\t\tSystem.out.println();\n\t}", "public static String toString(int[] theArray) {\n String str = \"{\";\n\n for (int i = 0; i < theArray.length; i++) {\n str+=theArray[i];\n //adds a comma after every number except the last one\n if(i+1 < theArray.length) {\n str += \",\";\n }\n }\n str += \"}\";\n return str;\n }", "public void print() {\n\t\tfor (int i = 0; i < TABLE_SIZE; i++) {\n\t\t\tSystem.out.print(\"|\");\n\t\t\tif (array[i] != null) {\n\t\t\t\tSystem.out.print(array[i].value);\n\t\t\t} else {\n\t\t\t\tSystem.out.print(\" \");\n\t\t\t}\n\t\t}\n\n\t\tSystem.out.print(\"|\\n\");\n\t}", "public static void printArray(int[] array)\r\n {\r\n //Loop through array and print each individual element\r\n for (int n=0; n < array.length; ++n)\r\n {\r\n System.out.println(array [n]); \r\n \r\n }\r\n \r\n }", "public void printVal()\n {\n for (int i=0;i<intData.length;i++)\n System.out.print(intData[i] + \" \");\n System.out.println();\n System.out.println(\"Sum: \" + sum + \", Avg: \" + avg + \", Prod: \" + prod);\n }", "private static String arrayToString(int[] array) {\n\n String arrayOutput = \"\";\n\n // seperate the elements of the array and add each to the outputstring\n for (int position = 0; position < array.length; position++) {\n\n arrayOutput += array[position] + \", \";\n }\n\n // trim the outputstring of the last seperation char\n arrayOutput = arrayOutput.substring(0, (arrayOutput.length() - 1));\n\n // output the string of the integer array\n return arrayOutput;\n }", "void printArray(int[] arr) {\n\t\tfor (int ele : arr) {\n\t\t\tSystem.out.print(ele + \" \");\n\t\t}\n\t}" ]
[ "0.73164487", "0.7301957", "0.72029066", "0.7126968", "0.7093157", "0.7065954", "0.7057568", "0.70449764", "0.7036986", "0.70313686", "0.70313686", "0.69705296", "0.69677544", "0.6962305", "0.69348043", "0.6890752", "0.6870862", "0.6867457", "0.6864596", "0.68396646", "0.68366337", "0.68231326", "0.68197626", "0.6802887", "0.67929536", "0.6771121", "0.67670274", "0.6762772", "0.67586017", "0.67514807", "0.6726309", "0.6712717", "0.6702777", "0.67001456", "0.6695009", "0.66936034", "0.66904396", "0.66902965", "0.6688814", "0.6686742", "0.6682107", "0.6679821", "0.6675493", "0.6673556", "0.6663925", "0.6663925", "0.66579133", "0.66513747", "0.6628581", "0.6626112", "0.6625139", "0.6622372", "0.66159654", "0.661175", "0.6600761", "0.6595268", "0.6593372", "0.65906096", "0.65877634", "0.65762895", "0.6568519", "0.65533084", "0.65432405", "0.65416276", "0.6540426", "0.65333945", "0.65300304", "0.65231264", "0.6521339", "0.6520731", "0.6519925", "0.65118545", "0.65037256", "0.65036285", "0.64959836", "0.64950126", "0.64896667", "0.6461411", "0.64602154", "0.6455849", "0.64506066", "0.643512", "0.64255667", "0.6420351", "0.6409267", "0.64084834", "0.6407407", "0.6406315", "0.64035344", "0.6397562", "0.6392411", "0.6376831", "0.63730764", "0.63700664", "0.6369579", "0.63688314", "0.63670397", "0.63637227", "0.6362698", "0.63436663", "0.63391596" ]
0.0
-1
Reads a list of range float values from inifile section
public static List<FloatRange> readIniSectionFloatRange(String fileName, String sectionName) { try { Wini ini = new Wini(new File(fileName)); Section section = ini.get(sectionName); if(section!=null) { ArrayList<FloatRange> resultList = new ArrayList<FloatRange>(); for(Entry<String, String> entry:section.entrySet()) { String name = entry.getKey(); String range = entry.getValue(); try { String minString = range.substring(range.indexOf('[')+1, range.indexOf(',')); String maxString = range.substring(range.indexOf(',')+2, range.indexOf(']')); float min=Float.parseFloat(minString); float max=Float.parseFloat(maxString); resultList.add(new FloatRange(name, min, max)); } catch (Exception e) { log.warn("error in read: "+name+"\t"+range+"\t"+e); } } return resultList; } else { log.error("ini section not found: "+sectionName); return null; } } catch (Exception e) { log.error("ini file not read "+fileName+"\t"+sectionName+"\t"+e); return null; } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private static float[] readFloatArray( URL loc ) throws IOException {\n DataInputStream in =\n new DataInputStream( new BufferedInputStream( loc.openStream() ) );\n FloatList flist = new FloatList();\n try {\n while ( true ) {\n float value = in.readFloat();\n if ( value >= 0f && value <= 1f ) {\n flist.add( value );\n }\n else {\n throw new IOException( \"RGB values out of range\" );\n }\n }\n }\n catch ( EOFException e ) {\n return flist.toFloatArray();\n }\n finally {\n in.close();\n }\n }", "float readFloat();", "float readFloat(int start)\n {\n int bits = readInt(start);\n\n return Float.intBitsToFloat(bits);\n }", "private void readInter() throws FileNotFoundException {\n\t\t\r\n\t\tFile file = new File(\"input.txt\");\r\n\r\n\t\tScanner input = new Scanner(file);\r\n\r\n\t\twhile (input.hasNext()) {\r\n\r\n\t\t\tint x = input.nextInt();\r\n\t\t\tint y = input.nextInt();\r\n\t\t\t\r\n\t\t\tintervals.add(new Point(x, y));\r\n\t\t}\r\n\t\t\r\n\t\t//Close 'input.txt'\r\n\t\tinput.close();\r\n\t\t\r\n\t}", "@Override\r\n\tpublic float[] getRanges() {\r\n\t\tsp.fetchSample(sample, 0);\r\n\r\n\t\treturn sample;\r\n\t}", "private ArrayList<Float> readFile(byte[] data) {\n int pStart = 0;\n ArrayList<Float> points = new ArrayList<Float>();\n\n for (int pEnd = 0; pEnd < data.length; pEnd++) {\n if (data[pEnd] == '\\n' || pEnd == (data.length - 1)) {\n String line = new String(data, pStart, pEnd - pStart);\n if (line.startsWith(\"ncols\")) {\n ncols = Integer.parseInt(line.substring(5).trim());\n } else if (line.startsWith(\"nrows\")) {\n nrows = Integer.parseInt(line.substring(5).trim());\n } else if (line.startsWith(\"xllcorner\")) {\n xll = (int) Float.parseFloat(line.substring(9).trim());\n } else if (line.startsWith(\"yllcorner\")) {\n yll = (int) Float.parseFloat(line.substring(9).trim());\n } else if (line.startsWith(\"cellsize\")) {\n cellsize = Float.parseFloat(line.substring(8).trim());\n } else if (line.startsWith(\"NODATA_value\")) {\n nodata = Float.parseFloat(line.substring(12).trim());\n } else {\n // Assume data\n line = line.trim();\n String[] parts = line.split(\"\\\\s+\");\n for (String part : parts) {\n points.add(Float.parseFloat(part.trim()));\n }\n }\n pStart = pEnd + 1;\n }\n }\n return points;\n }", "public abstract void read_float_array(float[] value, int offset, int\nlength);", "private void readFromFile() {\n\t\tPath filePath = Paths.get(inputFile);\n\n\t\ttry (BufferedReader reader = Files.newBufferedReader(filePath,\n\t\t\t\tCharset.forName(\"UTF-8\"));) {\n\t\t\tString line = null;\n\n\t\t\twhile ((line = reader.readLine()) != null) {\n\t\t\t\tString[] splitLine = line.split(\",\");\n\t\t\t\tcurrentGen.setValue(Integer.parseInt(splitLine[0]),\n\t\t\t\t\t\tInteger.parseInt(splitLine[1]), true);\n\t\t\t}\n\t\t} catch (IOException e) {\n\t\t\tSystem.out.println(\"Could not find file provided.\");\n\t\t}\n\t}", "public int read(float[] f, int start, int len) throws IOException {\n\n\t\tint i = start;\n\t\ttry {\n\t\t\tfor (; i < start + len; i += 1) {\n\t\t\t\tif (count - pos < 4) {\n\t\t\t\t\tfillBuf(4);\n\t\t\t\t}\n\t\t\t\tint t = buf[pos] << 24 | (buf[pos + 1] & 0xFF) << 16\n\t\t\t\t\t\t| (buf[pos + 2] & 0xFF) << 8 | (buf[pos + 3] & 0xFF);\n\t\t\t\tf[i] = Float.intBitsToFloat(t);\n\t\t\t\tpos += 4;\n\t\t\t}\n\t\t} catch (EOFException e) {\n\t\t\treturn eofCheck(e, i, start, 4);\n\t\t}\n\t\treturn 4 * len;\n\t}", "private void get_values(File f1){\n String line;\n Scanner read_file=null;\n try{\n read_file= new Scanner(f1);\n }catch(FileNotFoundException e){\n System.out.println(\"The specified file of the Student cannot be found.\");\n return;\n }\n line=read_file.nextLine();\n while(!(line.contains(\"OOP\"))){\n line=read_file.nextLine();\n }\n line=read_file.nextLine();\n while(!(line.contains(\"Chap_1\"))){\n line=read_file.nextLine();\n }\n //System.out.println(line.substring(8));\n OOP[0]=Float.parseFloat(line.substring(8));\n line=read_file.nextLine();\n OOP[1]=Float.parseFloat(line.substring(8));\n line=read_file.nextLine();\n OOP[2]=Float.parseFloat(line.substring(8));\n line=read_file.nextLine();\n OOP[3]=Float.parseFloat(line.substring(8));\n\n line=read_file.nextLine();\n while(!(line.contains(\"DE\"))){\n line=read_file.nextLine();\n }\n line=read_file.nextLine();\n while(!(line.contains(\"Chap_1\"))){\n line=read_file.nextLine();\n }\n DE[0]=Float.parseFloat(line.substring(8));\n line=read_file.nextLine();\n DE[1]=Float.parseFloat(line.substring(8));\n line=read_file.nextLine();\n DE[2]=Float.parseFloat(line.substring(8));\n\n line=read_file.nextLine();\n while(!(line.contains(\"DSA\"))){\n line=read_file.nextLine();\n }\n line=read_file.nextLine();\n while(!(line.contains(\"Chap_1\"))){\n line=read_file.nextLine();\n }\n DSA[0]=Float.parseFloat(line.substring(8));\n line=read_file.nextLine();\n DSA[1]=Float.parseFloat(line.substring(8));\n line=read_file.nextLine();\n DSA[2]=Float.parseFloat(line.substring(8));\n\n line=read_file.nextLine();\n line=read_file.nextLine();\n total_marks=Float.parseFloat(line.substring(13));\n average=total_marks/10;\n\n read_file.close();\n }", "public ArrayList<Double> readFile(String m){\n ArrayList<Double> a = new ArrayList<Double>();\n Scanner r = null;\n try {\n File f = new File(m);\n r = new Scanner(f);\n String scan;\n while(r.hasNextLine()) {\n scan = r.nextLine();\n //System.out.println(scan);\n // look for comma because our price starts after comma\n int commaPosition = scan.indexOf(',');\n //go to next index of the string in one line\n int nextIndex = commaPosition + 1;\n // make a string named price to keep the price from one line\n //substring method takes two parameters- start point and end point(which is integers)\n //price = smaller string = \"2.50\", scan = bigger string = \"bananas,2.50\"\n String price = scan.substring(nextIndex,scan.length());\n double doublePrice = Double.parseDouble(price);\n //System.out.println(doublePrice);\n a.add(doublePrice);\n }\n } catch (FileNotFoundException ex) {\n\n } catch (IOException ex) {\n\n } finally {\n if(r!=null) r.close();\n }\n return a;\n\n }", "java.util.List<java.lang.Float> getInList();", "String floatRead();", "public double[] getRange();", "@Override\r\n\tpublic float getRange() {\r\n\t\tsp.fetchSample(sample, 0);\r\n\r\n\t\treturn sample[0];\r\n\t}", "public static ArrayList<Point> ReadData(String filePath) throws FileNotFoundException{\n \n ArrayList<Point> points = new ArrayList<>();\n\n Scanner inputStream = new Scanner(new File(filePath));\n\n String[] xs = inputStream.nextLine().split(\" \");\n String[] ys = inputStream.nextLine().split(\" \");\n\n int min = Math.min(xs.length, xs.length);\n\n for(int i = 0 ;i < min; i++){\n double x = Float.parseFloat(xs[i]);\n double y = Float.parseFloat(ys[i]);\n points.add(new Point(x,y));\n }\n\n\n\n return points;\n\n }", "public double[] getRange(){\n\treturn RANGE;\n }", "public Vector loadAffyGCOSExpressionFile(File f) throws IOException {\r\n \tthis.setTMEVDataType();\r\n final int preSpotRows = this.sflp.getXRow()+1;\r\n final int preExperimentColumns = this.sflp.getXColumn();\r\n int numLines = this.getCountOfLines(f);\r\n int spotCount = numLines - preSpotRows;\r\n\r\n if (spotCount <= 0) {\r\n JOptionPane.showMessageDialog(superLoader.getFrame(), \"There is no spot data available.\", \"TDMS Load Error\", JOptionPane.INFORMATION_MESSAGE);\r\n }\r\n \r\n int[] rows = new int[] {0, 1, 0};\r\n int[] columns = new int[] {0, 1, 0};\r\n //String value,pvalue;\r\n String detection;\r\n\r\n float cy3, cy5;\r\n\r\n String[] moreFields = new String[1];\r\n String[] extraFields=null;\r\n final int rColumns = 1;\r\n final int rRows = spotCount;\r\n \r\n ISlideData slideDataArray[]=null;\r\n AffySlideDataElement sde=null;\r\n FloatSlideData slideData=null;\r\n \r\n BufferedReader reader = new BufferedReader(new FileReader(f));\r\n StringSplitter ss = new StringSplitter((char)0x09);\r\n String currentLine;\r\n int counter, row, column,experimentCount=0;\r\n counter = 0;\r\n row = column = 1;\r\n this.setFilesCount(1);\r\n this.setRemain(1);\r\n this.setFilesProgress(0);\r\n this.setLinesCount(numLines);\r\n this.setFileProgress(0);\r\n float[] intensities = new float[2];\r\n \r\n while ((currentLine = reader.readLine()) != null) {\r\n if (stop) {\r\n return null;\r\n }\r\n// fix empty tabbs appending to the end of line by wwang\r\n while(currentLine.endsWith(\"\\t\")){\r\n \tcurrentLine=currentLine.substring(0,currentLine.length()-1);\r\n }\r\n ss.init(currentLine);\r\n \r\n if (counter == 0) { // parse header\r\n \t\r\n \tif(sflp.onlyIntensityRadioButton.isSelected()) \r\n \t\texperimentCount = ss.countTokens()- preExperimentColumns;\r\n \t\t\r\n \tif(sflp.intensityWithDetectionRadioButton.isSelected()) \r\n \t\texperimentCount = (ss.countTokens()+1- preExperimentColumns)/2;\r\n \t\t\r\n \tif(sflp.intensityWithDetectionPvalRadioButton.isSelected()) \r\n \t\texperimentCount = (ss.countTokens()+1- preExperimentColumns)/3;\r\n \t\r\n \t\r\n \tslideDataArray = new ISlideData[experimentCount];\r\n \tSampleAnnotation sampAnn=new SampleAnnotation();\r\n \tslideDataArray[0] = new SlideData(rRows, rColumns, sampAnn);//Added by Sarita to include SampleAnnotation model.\r\n \r\n slideDataArray[0].setSlideFileName(f.getPath());\r\n for (int i=1; i<experimentCount; i++) {\r\n \tsampAnn=new SampleAnnotation();\r\n \tslideDataArray[i] = new FloatSlideData(slideDataArray[0].getSlideMetaData(),spotCount, sampAnn);//Added by Sarita \r\n \tslideDataArray[i].setSlideFileName(f.getPath());\r\n \t//System.out.println(\"slideDataArray[i].slide file name: \"+ f.getPath());\r\n }\r\n if(sflp.onlyIntensityRadioButton.isSelected()){\r\n \tString [] fieldNames = new String[1];\r\n \t//extraFields = new String[1];\r\n \tfieldNames[0]=\"AffyID\";\r\n \tslideDataArray[0].getSlideMetaData().appendFieldNames(fieldNames);\r\n }else if(sflp.intensityWithDetectionRadioButton.isSelected()){\r\n \tString [] fieldNames = new String[2];\r\n \textraFields = new String[1];\r\n fieldNames[0]=\"AffyID\";\r\n fieldNames[1]=\"Detection\";\r\n slideDataArray[0].getSlideMetaData().appendFieldNames(fieldNames);\r\n }else{\r\n \tString [] fieldNames = new String[3];\r\n \textraFields = new String[2];\r\n fieldNames[0]=\"AffyID\";\r\n fieldNames[1]=\"Detection\";\r\n fieldNames[2]=\"P-value\";\r\n slideDataArray[0].getSlideMetaData().appendFieldNames(fieldNames);\r\n \r\n }\r\n ss.nextToken();//parse the blank on header\r\n for (int i=0; i<experimentCount; i++) {\r\n \tString val=ss.nextToken();\r\n\t\t\t\t\tslideDataArray[i].setSampleAnnotationLoaded(true);\r\n\t\t\t\t\tslideDataArray[i].getSampleAnnotation().setAnnotation(\"Default Slide Name\", val);\r\n\t\t\t\t\tslideDataArray[i].setSlideDataName(val);\r\n\t\t\t\t\t\r\n\t\t\t\t\tthis.mav.getData().setSampleAnnotationLoaded(true);\r\n\t\t\t \t \r\n if(sflp.intensityWithDetectionPvalRadioButton.isSelected()){\r\n \tss.nextToken();//parse the detection\r\n ss.nextToken();//parse the pvalue\r\n }else if(sflp.intensityWithDetectionRadioButton.isSelected()){\r\n \tss.nextToken();//parse the detection \r\n } \r\n }\r\n \r\n } else if (counter >= preSpotRows) { // data rows\r\n \trows[0] = rows[2] = row;\r\n \tcolumns[0] = columns[2] = column;\r\n \tif (column == rColumns) {\r\n \t\tcolumn = 1;\r\n \t\trow++;//commented by sarita\r\n \t\t\r\n \t\t\r\n \t} else {\r\n \t\tcolumn++;//commented by sarita\r\n \t\t\r\n \t\t\r\n \t}\r\n\r\n \t//affy ID\r\n \tmoreFields[0] = ss.nextToken();\r\n \r\n \t\r\n \t\r\n String cloneName = moreFields[0];\r\n if(_tempAnno.size()!=0) {\r\n \t \r\n \t \t \r\n \t if(((MevAnnotation)_tempAnno.get(cloneName))!=null) {\r\n \t\t MevAnnotation mevAnno = (MevAnnotation)_tempAnno.get(cloneName);\r\n\r\n \t\t sde = new AffySlideDataElement(String.valueOf(row+1), rows, columns, intensities, moreFields, mevAnno);\r\n \t }else {\r\n \t /**\r\n \t * Sarita: clone ID explicitly set here because if the data file\r\n \t * has a probe (for eg. Affy house keeping probes) for which Resourcerer\r\n \t * does not have annotation, MeV would still work fine. NA will be\r\n \t * appended for the rest of the fields. \r\n \t * \r\n \t * \r\n \t */\r\n \t\tMevAnnotation mevAnno = new MevAnnotation();\r\n \t\tmevAnno.setCloneID(cloneName);\r\n sde = new AffySlideDataElement(String.valueOf(row+1), rows, columns, new float[2], moreFields, mevAnno);\r\n \t \t\t \r\n }\r\n }\r\n /* Added by Sarita\r\n * Checks if annotation was loaded and accordingly use\r\n * the appropriate constructor.\r\n * \r\n * \r\n */\r\n \r\n else {\r\n sde = new AffySlideDataElement(String.valueOf(row+1), rows, columns, intensities, moreFields);\r\n }\r\n \r\n \t\r\n \t//sde = new AffySlideDataElement(String.valueOf(row+1), rows, columns, new float[2], moreFields);\r\n\r\n \tslideDataArray[0].addSlideDataElement(sde);\r\n \tint i=0;\r\n\r\n \tfor ( i=0; i<slideDataArray.length; i++) { \r\n \t\ttry {\t\r\n\r\n \t\t\t// Intensity\r\n \t\t\tintensities[0] = 1.0f;\r\n \t\t\tintensities[1] = ss.nextFloatToken(0.0f);\r\n \t\t\r\n \t\t\tif(sflp.intensityWithDetectionPvalRadioButton.isSelected()){\r\n \t\t\t\t\r\n \t\t\t\textraFields[0]=ss.nextToken();//detection\r\n \t\t\t\textraFields[1]=ss.nextToken();//p-value\r\n \t\t\t\t\r\n \t\t\t}else if(sflp.intensityWithDetectionRadioButton.isSelected()){\r\n \t\t\t\textraFields[0]=ss.nextToken();//detection\r\n \t\t\t}\r\n\r\n \t\t} catch (Exception e) {\r\n \t\t\t\r\n \t\t\tintensities[1] = Float.NaN;\r\n \t\t}\r\n \t\tif(i==0){\r\n \t\t\t\r\n \t\t\tslideDataArray[i].setIntensities(counter - preSpotRows, intensities[0], intensities[1]);\r\n \t\t\t//sde.setExtraFields(extraFields);\r\n \t\t\tif(sflp.intensityWithDetectionPvalRadioButton.isSelected()){\r\n \t\t\t\tsde.setDetection(extraFields[0]);\r\n \t\t\t\tsde.setPvalue(new Float(extraFields[1]).floatValue());\r\n \t\t\t}else if(sflp.intensityWithDetectionRadioButton.isSelected()){\r\n \t\t\t\tsde.setDetection(extraFields[0]);\r\n \t\t\t}\r\n \t\t}else{\r\n \t\t\tif(i==1){\r\n \t\t\t\tmeta = slideDataArray[0].getSlideMetaData(); \t\r\n \t\t\t}\r\n \t\t\tslideDataArray[i].setIntensities(counter-preSpotRows,intensities[0],intensities[1]);\r\n \t\t\tif(sflp.intensityWithDetectionPvalRadioButton.isSelected()){\r\n \t\t\t\t((FloatSlideData)slideDataArray[i]).setDetection(counter-preSpotRows,extraFields[0]);\r\n \t\t\t\t((FloatSlideData)slideDataArray[i]).setPvalue(counter-preSpotRows,new Float(extraFields[1]).floatValue());\r\n \t\t\t}\r\n \t\t\tif(sflp.intensityWithDetectionRadioButton.isSelected()){\r\n \t\t\t\t((FloatSlideData)slideDataArray[i]).setDetection(counter-preSpotRows,extraFields[0]);\r\n \t\t\t}\r\n \t\t}\r\n \t}\r\n\r\n } else {\r\n //we have additional sample annoation\r\n \r\n \tfor (int i = 0; i < preExperimentColumns - 1; i++) {\r\n\t\t\t\t\tss.nextToken();\r\n\t\t\t\t}\r\n\t\t\t\tString key = ss.nextToken();\r\n\r\n\t\t\t\tfor (int j = 0; j < slideDataArray.length; j++) {\r\n\t\t\t\t\t\r\n\t\t\t\t\tif(slideDataArray[j].getSampleAnnotation()!=null){\r\n\t\t\t\t\t\r\n\t\t\t\t\t\tString val=ss.nextToken();\r\n\t\t\t\t\t\tslideDataArray[j].getSampleAnnotation().setAnnotation(key, val);\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t}else{\r\n\t\t\t\t\t\t\tSampleAnnotation sampAnn=new SampleAnnotation();\r\n\t\t\t\t\t\t\tsampAnn.setAnnotation(key, ss.nextToken());\r\n\t\t\t\t\t\t\tslideDataArray[j].setSampleAnnotation(sampAnn);\r\n\t\t\t\t\t\t\tslideDataArray[j].setSampleAnnotationLoaded(true);\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n \t}\r\n \t\r\n this.setFileProgress(counter);\r\n \tcounter++;\r\n \t//System.out.print(counter);\r\n \t}\r\n reader.close();\r\n \r\n \r\n Vector data = new Vector(slideDataArray.length);\r\n \r\n for(int j = 0; j < slideDataArray.length; j++)\r\n \tdata.add(slideDataArray[j]);\r\n \r\n this.setFilesProgress(1);\r\n return data;\r\n }", "private void readWeaponsFromFile(File file) throws IllegalStateException {\n\t\ttry {\n\t\t\tScanner fileScanner = new Scanner(file);\n\t\t\tboolean rangeMinB = false, rangeMaxB = false;\n\t\t\twhile (fileScanner.hasNext() && !(rangeMaxB && rangeMinB)) {\n\t\t\t\tString line = fileScanner.nextLine();\n\t\t\t\tif (line.equals(CHANCE_RANGE_MIN)) {\n\t\t\t\t\trangeMin = Integer.parseInt(fileScanner.nextLine());\n\t\t\t\t\trangeMinB = true;\n\t\t\t\t}\n\t\t\t\telse if (line.equals(CHANCE_RANGE_MAX)) {\n\t\t\t\t\trangeMax = Integer.parseInt(fileScanner.nextLine());\n\t\t\t\t\trangeMaxB = true;\n\t\t\t\t}\n\t\t\t}\n\t\t\twhile (fileScanner.hasNext()) {\n\t\t\t\tString line = fileScanner.nextLine();\n\t\t\t\tif (line.equals(START_WEAPON)) {\n\t\t\t\t\treadWeapon(fileScanner);\n\t\t\t\t}\n\t\t\t}\n\t\t\tfileScanner.close();\n\t\t} catch (FileNotFoundException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\n\t\tint bottomRange = rangeMin;\n\t\twhile (bottomRange != rangeMax) {\n\t\t\tint tempBottomRange = bottomRange;\n\t\t\tfor (Weapon weapon: weapons) {\n\t\t\t\tif (weapon.spawnRangeMin == bottomRange) {\n\t\t\t\t\tbottomRange = weapon.spawnRangeMax;\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t\tif (tempBottomRange == bottomRange) {\n\t\t\t\tthrow new IllegalStateException(\"There is a gap in the ranges of the weapons loaded from \" + file.getAbsolutePath());\n\t\t\t}\n\t\t}\n\t}", "private static final Array readVariable(Variable var, RangesList ranges) throws IOException\n {\n try\n {\n \tlog.debug(\"Reading from variable {} with ranges {}\", var.getFullName(), ranges.toString());\n return var.read(ranges.getRanges());\n }\n catch(InvalidRangeException ire)\n {\n throw new IllegalArgumentException(ire);\n }\n }", "public int read(float[] f) throws IOException {\n\t\treturn read(f, 0, f.length);\n\t}", "@Test\n public void testFloatInRange() {\n int lowEnd = -10;\n int highEnd = 10;\n Optional<NumberValue> optRslt = floatService.floatInRange(lowEnd, highEnd);\n assertTrue(optRslt.isPresent());\n NumberValue numberValue = optRslt.get();\n assertTrue(lowEnd * 1.0 <= numberValue.getNumber().doubleValue());\n assertTrue(highEnd * 1.0 >= numberValue.getNumber().doubleValue());\n System.out.println(\"Number Value = \" + numberValue.toString());\n }", "public abstract float read_float();", "public Array readData(Variable v2, Section section) throws IOException, InvalidRangeException {\n\n Array dataArray = Array.factory(DataType.FLOAT, section.getShape());\n GradsVariable gradsVar = findVar(v2);\n if (gradsVar == null)\n throw new IOException();\n\n // Canonical ordering is ens, time, level, lat, lon\n int rangeIdx = 0;\n Range ensRange = (gradsDDF.getEnsembleDimension() != null) ? section.getRange(rangeIdx++) : new Range(0, 0);\n Range timeRange = (section.getRank() > 2) ? section.getRange(rangeIdx++) : new Range(0, 0);\n Range levRange = (gradsVar.getNumLevels() > 0) ? section.getRange(rangeIdx++) : new Range(0, 0);\n Range yRange = section.getRange(rangeIdx++);\n Range xRange = section.getRange(rangeIdx);\n\n IndexIterator ii = dataArray.getIndexIterator();\n\n for (int ensIdx : ensRange)\n for (int timeIdx : timeRange)\n for (int levelIdx : levRange)\n readXY(v2, ensIdx, timeIdx, levelIdx, yRange, xRange, ii);\n\n return dataArray;\n }", "public float readFloat() {\n return Float.parseFloat(readNextLine());\n }", "public double[] getRange() \n{\n\treturn range;\n}", "float readFloat() {\n try {\n return in.readFloat();\n } catch (IOException ex) {\n return DisasmError();\n }\n }", "private List<Double> getdata(FileReader fr, String sar_device,int i) throws IOException {\n\t\t System.out.println(\"sar_device in GetSarFileData:\"+sar_device);\n\t\t BufferedReader br = new BufferedReader(fr);\n\t\t List<Double> resultList = new ArrayList<Double>();\n\t String temp=null;\n\t String[] numbersArray;\n\t temp=br.readLine();\n\t while(temp!=null){ \n\t \tnumbersArray=temp.split(\"\\\\s+\"); \n\t \tif(numbersArray.length>2&&(!numbersArray[0].equals(\"Average:\"))&&numbersArray[2].equals(sar_device))\n\t \t{\n\t \t\tresultList.add(Double.parseDouble(numbersArray[i])); \n\t \t}\n\t \telse if(numbersArray.length>2&&(!numbersArray[0].equals(\"Average:\"))&&numbersArray[1].equals(sar_device)){\n\t \t\tresultList.add(Double.parseDouble(numbersArray[i-1])); \n\t \t}\n\t temp=br.readLine();\n\t }\n\t System.out.println(resultList);\n\t return resultList;\n\t}", "public static List<double[]> readAlpha(File f)\n/* */ throws Exception\n/* */ {\n/* 89 */ throw new Error(\"Unresolved compilation problem: \\n\");\n/* */ }", "public static void readInRange() throws IOException, GeneralSecurityException {\n\t\tValueRange valuesInSheet = sheetService.spreadsheets().values().get(spreadSheetID, \"A1:E10\").execute();\n\t\tList<List<Object>> values = valuesInSheet.getValues();\n// System.out.println(\"number of rows: \" + values.size() + \" \\n\" + \"number of columns: \" + values.get(0).size());\n\t\tif (values == null || values.isEmpty()) {\n\t\t\tSystem.out.println(\"no data\");\n\t\t} else {\n\t\t\tfor (int i = 0; i < values.size(); i++) {\n\t\t\t\tfor (int j = 0; j < values.get(i).size(); j++) {\n\t\t\t\t\tif (j < values.get(i).size() - 1) {\n\t\t\t\t\t\tSystem.out.printf(\"%s \\t \", values.get(i).get(j));\n\t\t\t\t\t} else {\n\t\t\t\t\t\tSystem.out.printf(\"%s \\t \\n\", values.get(i).get(j));\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "public int[] readFeature(String featureDefFile) {\n/* 686 */ if (featureDefFile.isEmpty())\n/* 687 */ return null; \n/* 688 */ return FeatureManager.readFeature(featureDefFile);\n/* */ }", "@Test\n public void testFloatInRangeLowOverHigh() {\n int lowEnd = -10;\n int highEnd = 10;\n Optional<NumberValue> optRslt = floatService.floatInRange(highEnd, lowEnd);\n assertFalse(optRslt.isPresent());\n }", "public float readFloat() throws IOException {\n return in.readFloat();\n }", "public static void readFile() {\n\t\tbufferedReader = null;\n\t\ttry {\n\t\t\tFileReader fileReader = new FileReader(\"/home/bridgeit/Desktop/number.txt\");\n\t\t\tbufferedReader = new BufferedReader(fileReader);\n\n\t\t\tString line;\n\t\t\twhile ((line = bufferedReader.readLine()) != null) {\n\t\t\t\tString[] strings = line.split(\" \");\n\t\t\t\tfor (String integers : strings) {\n\t\t\t\t\thl.add(Integer.parseInt(integers));\n\t\t\t\t}\n\t\t\t}\n\t\t} catch (FileNotFoundException e) {\n\t\t\tSystem.out.println(\"File Not Found...\");\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\n\t\ttry {\n\t\t\tbufferedReader.close();\n\t\t} catch (IOException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\n\t}", "public void readValues() {\n\t\tfor (int i = 0; i < 7; i++) {\n\t\t\tfor (int j = 0; j < 7; j++) {\n\t\t\t\tarray.setElement(i, j, Integer.parseInt(lblCenter[i][j].getText()));\n\t\t\t}\n\t\t\tleftCol.setElement(i, Integer.parseInt(tfWest[i].getText()));\n\t\t\tbottomRow.setElement(i, Integer.parseInt(tfSouth[i].getText()));\n\t\t}\n\t}", "@Test\n public void testParseFloat() {\n FloatSpec floatSpec = new FloatSpec();\n floatSpec.setDefaultValue(0f);\n dataTypeParser.setDataTypeSpec(floatSpec);\n dataTypeParser.parse();\n FloatSpec parsedFloatSpec = (FloatSpec) dataTypeParser.getDataTypeSpec();\n\n assertNull(parsedFloatSpec.getMinValue());\n assertNull(parsedFloatSpec.getMaxValue());\n }", "static void parseData(String filename) {\n\t\ttry (BufferedReader br = new BufferedReader(new FileReader(filename))) {\n\t\t \n\t\t\tString line;\n\t\t String[] tokens;\n\t\t ArrayList<Double> temp;\n\t\t \n\t\t while ((line = br.readLine()) != null) {\n\t\t \ttemp = new ArrayList<Double>();\n\t\t \ttokens = line.split(\",\");\n\t\t \tfor(String s : tokens) {\n\t\t \t\ttemp.add(Double.parseDouble(s));\n\t\t \t}\n\t\t \tData.add(new Vector(temp));\n\t\t }\n\t\t} catch (FileNotFoundException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t} catch (IOException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "public byte[] readRawFloat() throws IOException {\n byte[] bytes = new byte[5];\n bytes[0] = (byte) Type.FLOAT.code;\n in.readFully(bytes, 1, 4);\n return bytes;\n }", "private ArrayList<String> getProfile (float minS, float maxS, float minR, float maxR) {\n ArrayList<String> vals = new ArrayList<>();\n for (float x : values.subMap(minS, maxS).keySet()) {\n for (ArrayList<String> y : values.get(x).subMap(minR, maxR).values()) {\n // y here, represents the values of points in range...\n vals.addAll(y);\n }\n }\n return vals;\n }", "public static List<ArrivalRateTuple> readFileToList(File file, double offset) throws IOException {\r\n\t\tBufferedReader br = new BufferedReader(new FileReader(file));\r\n\t\tList<ArrivalRateTuple> arrRates = new ArrayList<ArrivalRateTuple>();\r\n\t\t// read arrival rate tuples\r\n\t\ttry {\r\n\t\t\tarrRates = ArrivalRateTuple.readList(br, offset);\r\n\t\t\t// error reading tuples, it's probably a request time stamp file\r\n\t\t} catch (IndexOutOfBoundsException e) {\r\n\t\t\tLOG.log(Level.SEVERE, \"Index out of bounds, wrong format.\");\r\n\t\t}\r\n\t\tif (arrRates.size() == 0) {\r\n\t\t\tbr.close();\r\n\t\t\tbr = new BufferedReader(new FileReader(file));\r\n\t\t\tarrRates = readRequestTimeStamps(br, offset);\r\n\t\t}\r\n\t\tbr.close();\r\n\t\treturn arrRates;\r\n\t}", "java.util.List<java.lang.Double> getFileList();", "public static List<String> parseValues(String fileName)\n throws CLIException\n {\n BufferedReader in = null;\n List<String> values = new ArrayList<String>();\n \n try {\n in = new BufferedReader(new FileReader(fileName));\n String line = in.readLine();\n while (line != null) {\n line = line.trim();\n if (line.length() > 0) {\n values.add(line);\n }\n line = in.readLine();\n }\n } catch (IOException e) {\n throw new CLIException(e, ExitCodes.IO_EXCEPTION);\n } finally {\n if (in !=null ) {\n try {\n in.close();\n } catch (IOException e) {\n //ignore cannot close input stream\n }\n }\n }\n return values;\n }", "private void parseAvailableFrequencies(){\n\t\tString str = parser.readFile(FREQ_AVAILABLE, 256);\n\t\tif(str == null)\n\t\t\treturn;\n\t\t\n\t\tString[] frestrs = str.split(\" \");\n\t\tint[] freqs = new int[frestrs.length - 1];\n\t\tfor(int i = 0; i < freqs.length; i++)\n\t\t\tfreqs[i] = Integer.valueOf(frestrs[i]);\n\t\t\n\t\tcpuFrequencies = freqs;\n\t}", "private static void readArff(String fileName) {\r\n\t\ttry {\r\n\t\t\tFileInputStream stream = new FileInputStream(fileName);\r\n\t\t\tInputStreamReader reader = new InputStreamReader(stream);\r\n\t\t\tBufferedReader buffer = new BufferedReader(reader);\r\n\t\t\t\r\n\t\t\tArrayList<String> tmpColumnName = new ArrayList<String>();\r\n\t\t\t\r\n\t\t\tString line;\r\n\t\t\tint userNo = 0; // sequence number of each user\r\n\t\t\tint attributeCount = 0;\r\n\t\t\t\r\n\t\t\tmaxValue = -1;\r\n\t\t\tminValue = 99999;\r\n\t\t\t\r\n\t\t\t// Read attributes:\r\n\t\t\twhile((line = buffer.readLine()) != null && !line.equals(\"TT_EOF\")) {\r\n\t\t\t\tif (line.contains(\"@ATTRIBUTE\")) {\r\n\t\t\t\t\tString name;\r\n\t\t\t\t\t\r\n\t\t\t\t\tline = line.substring(10).trim();\r\n\t\t\t\t\tif (line.charAt(0) == '\\'') {\r\n\t\t\t\t\t\tint idx = line.substring(1).indexOf('\\'');\r\n\t\t\t\t\t\tname = line.substring(1, idx+1);\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse {\r\n\t\t\t\t\t\tint idx = line.substring(1).indexOf(' ');\r\n\t\t\t\t\t\tname = line.substring(0, idx+1).trim();\r\n\t\t\t\t\t}\r\n\t\t\t\t\t\r\n\t\t\t\t\ttmpColumnName.add(name);\r\n\t\t\t\t\tattributeCount++;\r\n\t\t\t\t}\r\n\t\t\t\telse if (line.contains(\"@RELATION\")) {\r\n\t\t\t\t\t// do nothing\r\n\t\t\t\t}\r\n\t\t\t\telse if (line.contains(\"@DATA\")) {\r\n\t\t\t\t\t// This is the end of attribute section!\r\n\t\t\t\t\tbreak;\r\n\t\t\t\t}\r\n\t\t\t\telse if (line.length() <= 0) {\r\n\t\t\t\t\t// do nothing\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t// Set item count to data structures:\r\n\t\t\titemCount = (attributeCount - 1)/2;\r\n\t\t\tcolumnName = new String[attributeCount];\r\n\t\t\ttmpColumnName.toArray(columnName);\r\n\t\t\t\r\n\t\t\tint[] itemRateCount = new int[itemCount+1];\r\n\t\t\trateMatrix = new SparseMatrix(500000, itemCount+1); // Netflix: [480189, 17770]\r\n\t\t\t\r\n\t\t\t// Read data:\r\n\t\t\twhile((line = buffer.readLine()) != null && !line.equals(\"TT_EOF\")) {\r\n\t\t\t\tif (line.length() > 0) {\r\n\t\t\t\t\tline = line.substring(1, line.length() - 1);\r\n\t\t\t\t\t\r\n\t\t\t\t\tStringTokenizer st = new StringTokenizer (line, \",\");\r\n\t\t\t\t\t\r\n\t\t\t\t\twhile (st.hasMoreTokens()) {\r\n\t\t\t\t\t\tString token = st.nextToken().trim();\r\n\t\t\t\t\t\tint i = token.indexOf(\" \");\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\tint movieID, rate;\r\n\t\t\t\t\t\tint index = Integer.parseInt(token.substring(0, i));\r\n\t\t\t\t\t\tString data = token.substring(i+1);\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\tif (index == 0) { // User ID\r\n\t\t\t\t\t\t\t//int userID = Integer.parseInt(data);\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\tuserNo++;\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\telse if (data.length() == 1) { // Rate\r\n\t\t\t\t\t\t\tmovieID = index;\r\n\t\t\t\t\t\t\trate = Integer.parseInt(data);\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\tif (rate > maxValue) {\r\n\t\t\t\t\t\t\t\tmaxValue = rate;\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\telse if (rate < minValue) {\r\n\t\t\t\t\t\t\t\tminValue = rate;\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t(itemRateCount[movieID])++;\r\n\t\t\t\t\t\t\trateMatrix.setValue(userNo, movieID, rate);\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\telse { // Date\r\n\t\t\t\t\t\t\t// Do not use\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tuserCount = userNo;\r\n\t\t\t\r\n\t\t\t// Reset user vector length:\r\n\t\t\trateMatrix.setSize(userCount+1, itemCount+1);\r\n\t\t\tfor (int i = 1; i <= itemCount; i++) {\r\n\t\t\t\trateMatrix.getColRef(i).setLength(userCount+1);\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tSystem.out.println (\"Data File\\t\" + dataFileName);\r\n\t\t\tSystem.out.println (\"User Count\\t\" + userCount);\r\n\t\t\tSystem.out.println (\"Item Count\\t\" + itemCount);\r\n\t\t\tSystem.out.println (\"Rating Count\\t\" + rateMatrix.itemCount());\r\n\t\t\tSystem.out.println (\"Rating Density\\t\" + String.format(\"%.2f\", ((double) rateMatrix.itemCount() / (double) userCount / (double) itemCount * 100.0)) + \"%\");\r\n\t\t\t\r\n\t\t\tstream.close();\r\n\t\t}\r\n\t\tcatch (IOException ioe) {\r\n\t\t\tSystem.out.println (\"No such file: \" + ioe);\r\n\t\t\tSystem.exit(0);\r\n\t\t}\r\n\t}", "private void readFile() {\r\n\t\tScanner sc = null; \r\n\t\ttry {\r\n\t\t\tsc = new Scanner(inputFile);\t\r\n\t\t\twhile(sc.hasNextLine()){\r\n\t\t\t\tgrade.add(sc.nextLine());\r\n\t } \r\n\t\t}\r\n\t\tcatch (FileNotFoundException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\tfinally {\r\n\t\t\tsc.close();\r\n\t\t}\t\t\r\n\t}", "public void readFromFileStartP(String nameFile, int lStart, int cStart, int lAmount, int cAmount)\n {\n //definir dados\n int lin;\n int col;\n int i, j;\n FILE arquivo;\n String linha;\n\n //abrir arquivo\n arquivo = new FILE(FILE.INPUT, nameFile);\n\n //verificar se arquivo e' valido\n if( arquivo == null )\n {\n IO.println(\"ERRO: Arquivo invalido. \");\n } //end\n else\n {\n //tentar ler a primeira linha do arquivo\n linha = arquivo.readln( );\n\n //verificar se ha' dados na linha\n if( linha == null )\n {\n IO.println(\"ERRO: Arquivo vazio. \");\n } //end\n else\n {\n lin = IO.getint(linha);\n\n //verificar se lin e' valida\n if( lin <= 0 )\n {\n IO.println(\"ERRO: Quantidade de linhas invalida. \");\n } //end\n else\n {\n linha = arquivo.readln();\n col = IO.getint(linha);\n\n //verificar se coluna e' valida\n if( col <= 0 )\n {\n IO.println(\"ERRO: Quantidade de colunas invalida. \");\n } //end\n else\n {\n //verificar se quantidade e' valida\n if( lAmount <= 0 || lAmount > lin || cAmount <= 0 || cAmount > col )\n {\n IO.println(\"ERRO: Quantidade de colunas/linhas invalida(s).\");\n } //end\n else\n {\n if( lStart < 0 || lStart > lin || cStart < 0 || cStart > col ||\n lStart > (lin - lAmount) || cStart > (col - cAmount) )\n {\n IO.println(\"ERRO: Posicoe(s) iniciais invalida(s). \");\n } //end\n else\n {\n //repetir para cada posicao\n for(i = lStart; i < lAmount; i++)\n {\n for(j = cStart; j < cAmount; j++)\n {\n linha = arquivo.readln();\n table[ i ][ j ] = linha;\n } //end repetir\n } //end repetir\n //fechar arquivo (indispensavel)\n arquivo.close();\n } //end se\n } //end se\n } //end se\n } //end se\n } //end se\n } //end se\n }", "protected float[][] loadSignals(File f) throws Exception {\n return null;\n }", "float getIn(int index);", "private static void readTax()\r\n\t{\r\n\r\n\t\tScanner inputStream = null;\r\n\t\ttry\r\n\t\t{\r\n\t\t\tinputStream = new Scanner(new File(TAX_FILE));\r\n\t\t}\r\n\t\tcatch(FileNotFoundException e)\r\n\t\t{\r\n\t\t\tJOptionPane.showMessageDialog(null,\"File Not Found\");\r\n\t\t}\r\n\t\t\r\n\t\tsalesTax = Double.parseDouble(inputStream.next());\r\n\t\tinputStream.close();\r\n\t}", "public static double readingsInRange (ArrayList<Background> list, int min, int max) {\r\n\t\tint currentMin, currentMax;\r\n\t\tdouble totEvents=0;\r\n\t\tfor (Background bc : list) {\r\n\t\t\tcurrentMin = bc.getMin();\r\n\t\t\tcurrentMax = bc.getMax();\r\n\r\n\t\t\tif (currentMin >= min && currentMax <= max) {\r\n\t\t\t\ttotEvents += bc.getEvents();\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn totEvents;\r\n\t}", "protected void parseValues(File file){\r\n\t\ttry {\r\n\t\t\tScanner scanner = new Scanner(file);\r\n\t\t\tString line;\r\n\t\t\tif(scanner.hasNext()) \r\n\t\t\t\tline = scanner.nextLine();\r\n\t\t\twhile (scanner.hasNextLine()) {\r\n\t\t\t\tline = scanner.nextLine();\r\n\t\t\t\taddToSupplyValues(line);\r\n\t\t\t}\r\n\t\t\tscanner.close();\r\n\t\t} catch (FileNotFoundException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t}", "public float[] eval(float[] input) throws IOException {\n/* 69 */ ExecutionContext context = new ExecutionContext(OPERATORS);\n/* 70 */ for (int i = 0; i < input.length; i++) {\n/* */ \n/* 72 */ PDRange domain = getDomainForInput(i);\n/* 73 */ float value = clipToRange(input[i], domain.getMin(), domain.getMax());\n/* 74 */ context.getStack().push(Float.valueOf(value));\n/* */ } \n/* */ \n/* */ \n/* 78 */ this.instructions.execute(context);\n/* */ \n/* */ \n/* 81 */ int numberOfOutputValues = getNumberOfOutputParameters();\n/* 82 */ int numberOfActualOutputValues = context.getStack().size();\n/* 83 */ if (numberOfActualOutputValues < numberOfOutputValues)\n/* */ {\n/* 85 */ throw new IllegalStateException(\"The type 4 function returned \" + numberOfActualOutputValues + \" values but the Range entry indicates that \" + numberOfOutputValues + \" values be returned.\");\n/* */ }\n/* */ \n/* */ \n/* */ \n/* 90 */ float[] outputValues = new float[numberOfOutputValues];\n/* 91 */ for (int j = numberOfOutputValues - 1; j >= 0; j--) {\n/* */ \n/* 93 */ PDRange range = getRangeForOutput(j);\n/* 94 */ outputValues[j] = context.popReal();\n/* 95 */ outputValues[j] = clipToRange(outputValues[j], range.getMin(), range.getMax());\n/* */ } \n/* */ \n/* */ \n/* 99 */ return outputValues;\n/* */ }", "public void setRanges(List<Range> ranges) {\n this.ranges = ranges;\n }", "public float readFloat() throws IOException {\n\n\t\tif (read(bb, 0, 4) < 4) {\n\t\t\tthrow new EOFException();\n\t\t}\n\n\t\tint i = bb[0] << 24 | (bb[1] & 0xFF) << 16 | (bb[2] & 0xFF) << 8\n\t\t\t\t| (bb[3] & 0xFF);\n\t\treturn Float.intBitsToFloat(i);\n\n\t}", "public static ArrayList<String> getRangeValuesInList(String rangeSeparatedValue)\n\t{\n\t\tArrayList<String> rangeValuesList = new ArrayList<String>();\n\n\t\tif(StringUtil.isInvalidString(rangeSeparatedValue))\n\t\t{\n\t\t\treturn rangeValuesList;\n\t\t}\n\n\t\tint indexOfSeparator = rangeSeparatedValue.indexOf(\n\t\t\t\t\t\t\tGlobalUtil.VALUE_RANGE_SEPARATOR);\n\n\t\t/* if there is no separator, the value is not properly configured */\n\t\tif(indexOfSeparator==-1)\n\t\t{\n\t\t\treturn rangeValuesList;\n\t\t}\n\n\t\tString minVal = rangeSeparatedValue.substring(0, indexOfSeparator);\n\t\tString maxVal = rangeSeparatedValue.substring(indexOfSeparator+1);\n\n\t\trangeValuesList.add(minVal);\n\t\trangeValuesList.add(maxVal);\n\n\t\treturn rangeValuesList;\n\t}", "public ArrayList loadItems (String file) {\n ArrayList<Item> itemList = new ArrayList<>();\n\n File itemFile = new File(file);\n\n Scanner scanner = null;\n\n try{\n scanner = new Scanner(itemFile);\n\n } catch (FileNotFoundException e){\n e.printStackTrace();\n }\n\n while(scanner.hasNextLine()){\n String line = scanner.nextLine();\n String [] oneItem = line.split(\"=\");\n itemList.add(new Item(oneItem[0],Integer.parseInt(oneItem[1])));\n }\n\n\n return itemList;\n }", "@Override\n\tpublic List<IRange> getRangeList() {\n\t\treturn null;\n\t}", "private List<Integer> readConfigFile(String filename) {\n\n Scanner input;\n try {\n input = new Scanner(this.getClass().getClassLoader().getResourceAsStream(filename));\n input.useDelimiter(\",|\\\\n\");\n } catch (NullPointerException e){\n throw new IllegalArgumentException(filename + \" cannot be found\", e);\n }\n\n checkConfigFile(filename);\n\n return parseFile(input);\n }", "static int readRectF(LittleEndianInputStream leis, Rectangle2D bounds) {\n final double x = leis.readFloat();\n final double y = leis.readFloat();\n final double width = leis.readFloat();\n final double height = leis.readFloat();\n bounds.setRect(x, y, width, height);\n\n return 4 * LittleEndianConsts.INT_SIZE;\n }", "private int[][][] readData(int startElement, int startLine, int endElement, int endLine) throws AreaFileException {\r\n// int[][][]myData = new int[numBands][dir[AD_NUMLINES]][dir[AD_NUMELEMS]];\r\n int numLines = endLine - startLine;\r\n int numEles = endElement - startElement;\r\n// System.out.println(\"linePrefixLength: \" + linePrefixLength);\r\n int[][][] myData = new int[numBands][numLines][numEles];\r\n \r\n if (! fileok) {\r\n throw new AreaFileException(\"Error reading AreaFile data\");\r\n }\r\n\r\n short shdata;\r\n int intdata;\r\n boolean isBrit = \r\n areaDirectory.getCalibrationType().equalsIgnoreCase(\"BRIT\"); \r\n long newPos = 0;\r\n\r\n for (int i = 0; i<numLines; i++) {\r\n newPos = datLoc + linePrefixLength + lineLength * (i + startLine) + startElement * dir[AD_DATAWIDTH];\r\n position = newPos;\r\n// System.out.println(position);\r\n try {\r\n af.seek(newPos);\r\n } catch (IOException e1) {\r\n e1.printStackTrace();\r\n }\r\n \r\n for (int k=0; k<numEles; k++) {\r\n for (int j = 0; j<numBands; j++) {\r\n try {\r\n if (dir[AD_DATAWIDTH] == 1) {\r\n myData[j][i][k] = (int)af.readByte();\r\n if (myData[j][i][k] < 0 && isBrit) {\r\n myData[j][i][k] += 256;\r\n } \r\n// position = position + 1;\r\n } else \r\n\r\n if (dir[AD_DATAWIDTH] == 2) {\r\n shdata = af.readShort();\r\n if (flipwords) {\r\n myData[j][i][k] = (int) ( ((shdata >> 8) & 0xff) | \r\n ((shdata << 8) & 0xff00) );\r\n } else {\r\n myData[j][i][k] = (int) (shdata);\r\n }\r\n// position = position + 2;\r\n } else \r\n\r\n if (dir[AD_DATAWIDTH] == 4) {\r\n intdata = af.readInt();\r\n if (flipwords) {\r\n myData[j][i][k] = ( (intdata >>> 24) & 0xff) | \r\n ( (intdata >>> 8) & 0xff00) | \r\n ( (intdata & 0xff) << 24 ) | \r\n ( (intdata & 0xff00) << 8);\r\n } else {\r\n myData[j][i][k] = intdata;\r\n }\r\n// position = position + 4;\r\n } \r\n } \r\n catch (IOException e) {\r\n myData[j][i][k] = 0;\r\n }\r\n }\r\n }\r\n }\r\n return myData;\r\n }", "public void get_InputValues(){\r\n\tA[1]=-0.185900;\r\n\tA[2]=-0.85900;\r\n\tA[3]=-0.059660;\r\n\tA[4]=-0.077373;\r\n\tB[1]=30.0;\r\n\tB[2]=19.2;\r\n\tB[3]=13.8;\r\n\tB[4]=22.5;\r\n\tC[1]=4.5;\r\n\tC[2]=12.5;\r\n\tC[3]=27.5;\r\n\tD[1]=16.0;\r\n\tD[2]=10.0;\r\n\tD[3]=7.0;\r\n\tD[4]=5.0;\r\n\tD[5]=4.0;\r\n\tD[6]=3.0;\r\n\t\r\n}", "public float[][] read( Envelope bbox )\n throws IOException {\n\n float[][] data = null;\n switch ( type ) {\n case BYTE:\n data = readByte( bbox );\n break;\n case SMALLINT:\n data = readSmallInt( bbox );\n break;\n case INT:\n data = readInt( bbox );\n break;\n case FLOAT:\n data = readFloat( bbox );\n break;\n case DOUBLE:\n data = readDouble( bbox );\n break;\n default:\n throw new IOException( \"not supported file format!\" );\n }\n\n return data;\n }", "abstract void readSMF(File file) throws InvalidMidiDataException, IOException;", "public void read () throws IOException, ClassNotFoundException {\n BufferedReader reader = FileManager.getReader\n (JerboaProperties.getString(\"KeyFeatureContainer.filename\"));\n double kThreshold = JerboaProperties.getDouble(\"KeyFeatureContainer.keyThreshold\",0.0);\n double fThreshold = JerboaProperties.getDouble(\"KeyFeatureContainer.featureThreshold\",0.0);\n\n String line;\n String[] tokens;\n double x;\n line = reader.readLine();\n tokens = line.split(\"\\\\t\");\n \n sf = Double.parseDouble(tokens[2]);\n\n while ((line = reader.readLine()) != null) {\n tokens = line.split(\"\\\\t\");\n if (tokens.length == 2) {\n if ((! filterKeys) || kTable.containsKey(tokens[0])) {\n x = Double.parseDouble(tokens[1]);\n if (x >= kThreshold)\n kTable.put(tokens[0],x);\n else if (filterKeys)\n kTable.remove(tokens[0]);\n }\n } else {\n x = Double.parseDouble(tokens[1]);\n if (x >= fThreshold) {\n kfTable.put(tokens[0],x);\n fTable.put(tokens[0],Double.parseDouble(tokens[2]));\n }\n }\n }\n }", "public double getRange(){\n\t\treturn range;\n\t}", "public void loadEPILine(File file)\r\n\t{\r\n\t\tString name=file.getName();\r\n\t\tint [][] result=null;\r\n\t\ttry \r\n\t\t{\r\n\t\t\tScanner scanner=new Scanner(file);\r\n\t\t\tint size=scanner.nextInt();\r\n\t\t\tint width=scanner.nextInt();\t\t\t\r\n\t\t\tresult=new int[size][width];\r\n\t\t\tscanner.useDelimiter(\",\");\r\n\t\t\tString temp;\r\n\t\t\tfor(int i=0;i<size;i++)\r\n\t\t\t\tfor(int j=0;j<width;j++)\r\n\t\t\t\t{\r\n\t\t\t\t\ttemp=scanner.next();\r\n\t\t\t\t\tresult[i][j]=Integer.parseInt(temp.trim());\r\n\t\t\t\t}\r\n\t\t\tscanner.close();\t\r\n\t\t} catch (FileNotFoundException e) \r\n\t\t{\r\n\t\t\t// TODO Auto-generated catch block\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\t_pixels=result;\r\n\t\t\r\n\t\t//That's why I needed to get rid of \"_\" in directory name\r\n\t\tname=name.substring(0,name.lastIndexOf(\".\"));\r\n\t\tString[] split=name.split(\"_\");\r\n\t\t_line=Integer.parseInt(split[1])+1;\r\n\t\t_position=Position.valueOf(split[2]);\r\n\t\t\r\n\t}", "private static ArrayList<ArrayList<Integer>> populateListOfInputs() {\n\t\t\n\t\tArrayList<ArrayList<Integer>> listOflist = new ArrayList<ArrayList<Integer>>();\n\t\ttry {\n\t\t\tFileReader fr = new FileReader(filePath);\n\t\t\tBufferedReader br = new BufferedReader(fr);\t\t\n\t\t\t\n\t\t\tString line;\n\t\t\twhile ((line = br.readLine()) != null) {\n\t\t\t\t// Remove all spaces, '[' and ']'\n\t\t\t\tString numbers = line.replace(\" \", \"\");\n\t\t\t\tnumbers = numbers.replace(\"[\", \"\");\n\t\t\t\tnumbers = numbers.replace(\"]\", \"\");\n\t\t\t\t\n\t\t\t\tif(line.equals(\"\")) {\n\t\t\t\t\t//if empty line leave it and continue the loop\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tArrayList<Integer> list = new ArrayList<Integer>();\n\t\t\t\t\n\t\t\t\tString[] individualnums = numbers.split(\",\");\n\t\t\t\tfor (int i = 0; i < individualnums.length; i++) {\t\t\t\t\t\n\t\t\t\t\tlist.add(Integer.parseInt(individualnums[i]));\n\t\t\t\t\t\n\t\t\t\t}\n\t\t\t\tlistOflist.add(list);\t\t\t\t\n\t\t\t}\t\t\n\t\t\t\n\t\t\tbr.close();\n\t\t\tfr.close();\n\t\t}\n\t\tcatch(Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\treturn listOflist;\n\t}", "public us.ihmc.idl.IDLSequence.Float getValues()\n {\n return values_;\n }", "public Double[] getNumbers() throws IOException {\n List<String> numbersStrs= Files.readAllLines(Paths.get(\"C:\\\\Users\\\\user\\\\Desktop\\\\Software construction git repo\\\\calculator\\\\src\\\\java\\\\com\\\\kelaniya\\\\uni\\\\numbers.txt\"));\n double number1=Integer.parseInt(numbersStrs.get(0));\n double number2=Integer.parseInt(numbersStrs.get(1));\n return new Double[] {number1,number2};\n\n }", "private double[] getSettings() {\n\t\t\n\t\tdouble[] params;\n\t\tString inLine, fileName = \"settings.txt\";\n\t\tString[] tokens;\n\t\t\n\t\tint numParams = 8;\n\t\tparams = new double[numParams];\n\t\t\n\t\t// Perform the read in a catch block in case of exceptions\n\t\ttry {\n\t\t\n\t\t\t// Create a new buffered reader\n\t\t\tFile inFile = new File(fileName);\n\t\t\tFileInputStream fis = new FileInputStream(inFile);\n\t\t\tInputStreamReader isr = new InputStreamReader(fis, \"UTF8\");\n\t\t\tBufferedReader br = new BufferedReader(isr);\n\t\t\t\n\t\t\t// Loop over the lines, reading the parameters into the array\n\t\t\tfor(int i = 0; i < numParams; i++) {\n\t\t\t\tinLine = br.readLine();\n\t\t\t\ttokens = inLine.split(\"=\");\n\t\t\t\tparams[i] = Double.parseDouble(tokens[1].replaceAll(\" \", \"\"));\n\t\t\t}\n\t\t\t\n\t\t\t// Close the reader\n\t\t\tbr.close();\n\t\t}\n\n\t\t// Catch errors\n\t\tcatch(Exception e) {\n\t\t\tSystem.out.println(\"Error reading from settings file.\");\n\t\t\tSystem.exit(0);\n\t\t}\t\n\t\treturn params;\n\t}", "public void readIn(String file) {\r\n\r\n\t\ttry {\r\n\r\n\t\t\t/** Initialise loop variable **/\r\n\r\n\t\t\tusedSize = 0;\r\n\r\n\t\t\t/** Set up file for reading **/\r\n\r\n\t\t\tFileReader reader = new FileReader(file);\r\n\r\n\t\t\tScanner in = new Scanner(reader);\r\n\r\n\t\t\t/** Loop round reading in data while array not full **/\r\n\r\n\t\t\twhile (in.hasNextInt() && (usedSize < size)) {\r\n\r\n\t\t\t\tA[usedSize] = in.nextInt();\r\n\r\n\t\t\t\tusedSize++;\r\n\r\n\t\t\t}\r\n\r\n\t\t} catch (IOException e) {\r\n\r\n\t\t\tSystem.out.println(\"Error processing file \" + file);\r\n\r\n\t\t}\r\n\r\n\t}", "public void addDataRange(long beginning, long ending, Line line){\n }", "public float getLimit_lin_y_lower() throws IOException\n\t{\n\t\tif ((__io__pointersize == 8)) {\n\t\t\treturn __io__block.readFloat(__io__address + 40);\n\t\t} else {\n\t\t\treturn __io__block.readFloat(__io__address + 32);\n\t\t}\n\t}", "private void add_range(Question q)\n\t{\n\t\tlog.debug(\"Question \" + q.getQid() + \" is getting checked for ranges\");\n\t\tString min = doc.selectSingleNode(\"//document/question_attributes/rows/row[qid=\" + q.getQid() + \" and attribute='min_num_value_n']/value\").getText();\n\t\tString max = doc.selectSingleNode(\"//document/question_attributes/rows/row[qid=\" + q.getQid() + \" and attribute='max_num_value_n']/value\").getText();\n\n\t\tif (min != \"\") {\n\t\t\tq.setFloat_range_min(min);\n\t\t}\n\t\tif (max != \"\") {\n\t\t\tq.setFloat_range_max(max);\n\t\t}\n\t\tlog.debug(\"range check finished\");\n\t}", "public abstract void setRange(double value, int start, int count);", "@Override\n protected void loadConfig(String fileName){\n fileName = PSO_PATH + fileName;\n File file = new File(fileName);\n try {\n Scanner sc = new Scanner(file); \n String line = sc.nextLine();\n List<List<String>> list = Arrays.asList(line.split(\",\"))\n .stream()\n .map(s -> Arrays.asList(s.split(\":\"))\n .stream()\n .map(n -> n.replaceAll(\"[^a-zA-Z0-9_.]\", \"\"))\n .collect(Collectors.toList())\n )\n .collect(Collectors.toList());\n\n this.initialTemperature = Double.parseDouble(list.get(0).get(1));\n this.coolingRate = Double.parseDouble(list.get(2).get(1));\n sc.close();\n } \n catch(IOException e) {\n e.printStackTrace();\n System.exit(1);\n }\n }", "public static ArrayList<Point> read_from_file(String file){\n Locale.setDefault(new Locale(\"en\", \"US\"));\n\n ArrayList<Point> points = new ArrayList<>();\n\n try {\n //java.io.File myObj = new java.io.File(\"test_points_2.txt\");\n //java.io.File myObj = new java.io.File(\"points.txt\");\n java.io.File myObj = new java.io.File(file);\n Scanner myReader = new Scanner(myObj);\n int N = myReader.nextInt();\n\n //System.out.println(N);\n for (int i = 0; i < N; i++) {\n double x = myReader.nextDouble();\n double y = myReader.nextDouble();\n points.add(new Point(x, y));\n //System.out.println(\"x: \" + x + \" y: \" + y);\n }\n\n myReader.close();\n } catch (FileNotFoundException e) {\n System.out.println(\"An error occurred.\");\n e.printStackTrace();\n return null;\n }\n return points;\n }", "public static double[] readRHat(File f)\n/* */ throws Exception\n/* */ {\n/* 78 */ throw new Error(\"Unresolved compilation problem: \\n\");\n/* */ }", "public void readFile(){\n try {\n highscores = new ArrayList<>();\n BufferedReader br = new BufferedReader(new FileReader(\"Highscores.txt\"));\n String line = br.readLine();\n while (line != null){\n try{\n highscores.add(Integer.parseInt(line));\n } catch (NumberFormatException e){}\n line = br.readLine();\n }\n br.close();\n } catch (FileNotFoundException e) {\n System.out.println(\"No file found\");\n } catch (IOException e) {\n e.printStackTrace();\n }\n }", "private void init() {\r\n\t\t// Convert the string Values from file to numerical values\r\n\t\tif ((field.getDecimalMinimum() != null)\r\n\t\t\t\t&& (field.getDecimalMaximum() != null)) {\r\n\t\t\ttry {\r\n\t\t\t\thasRange = true;\r\n\t\t\t\tminimum = Long.valueOf(Long.parseLong(field.getDecimalMinimum()));\r\n\t\t\t\tmaximum = Long.valueOf(Long.parseLong(field.getDecimalMaximum()));\r\n\t\t\t} catch (Exception e) {\r\n\t\t\t\thasRange = false;\r\n\t\t\t\tminimum = Long.valueOf(Integer.MIN_VALUE);\r\n\t\t\t\tmaximum = Long.valueOf(Integer.MAX_VALUE);\r\n\t\t\t}\r\n\t\t} else {\r\n\t\t\thasRange = false;\r\n\t\t\tminimum = Long.valueOf(Integer.MIN_VALUE);\r\n\t\t\tmaximum = Long.valueOf(Integer.MAX_VALUE);\r\n\t\t}\r\n\r\n\t\tisNumeric = field.getCharacterSet().matches(\"^[0-9\\\\-*\\\\[\\\\]]*$\");\r\n\t\tintBitLength = field.getBitLength() == null ? 0 : field.getBitLength()\r\n\t\t\t\t.intValue();\r\n\t\tString charSet = \"^\"\r\n\t\t\t\t+ (field.getCharacterSet().endsWith(\"*\") ? field\r\n\t\t\t\t\t\t.getCharacterSet() : field.getCharacterSet() + \"*\")\r\n\t\t\t\t+ \"$\";\r\n\t\tcharSetRegex = Pattern.compile(charSet);\r\n\t\tintLength = field.getLength() == null ? Integer.MAX_VALUE : field\r\n\t\t\t\t.getLength().intValue();\r\n\t}", "public float getLimit_lin_x_lower() throws IOException\n\t{\n\t\tif ((__io__pointersize == 8)) {\n\t\t\treturn __io__block.readFloat(__io__address + 32);\n\t\t} else {\n\t\t\treturn __io__block.readFloat(__io__address + 24);\n\t\t}\n\t}", "@Override\n\tpublic List<double[]> read(String fileName) {\n\t\tlogger.info(\"Loading data from \" + fileName);\n\t\tList<double[]> records = new ArrayList<double[]>();\n\t\tCsvReader csvReader = null;\n\t\ttry{\n\t\t\tcsvReader = new CsvReader(fileName);\n\t\t\t\n\t\t\t\n\t\t\twhile(csvReader.readRecord()){\n\t\t\t\tint cols = csvReader.getColumnCount();\n\t\t\t\tdouble[] record = new double[cols];\n\t\t\t\tfor(int i=0; i< cols; i++){\n\t\t\t\t\trecord[i] = Double.parseDouble(csvReader.get(i));\n\t\t\t\t}\n\t\t\t\trecords.add(record);\n\t\t\t}\n\t\t\t\n\t\t\t\n\t\t\t\n\t\t}catch(Exception e){\n\t\t\te.printStackTrace();\n\t\t\tthrow new LoadDataException(e);\n\t\t}finally{\n\t\t\tif(csvReader != null){\n\t\t\t\tcsvReader.close();\n\t\t\t}\n\t\t}\n\t\t\n\t\treturn records;\n\t}", "private static <T extends RealType<T>> float[] floatArray(\n\t\tfinal RandomAccessibleInterval<T> image, final double min, final double max)\n\t{\n\t\tfinal RandomAccess<T> source = image.randomAccess();\n\t\tfinal long[] dims = Intervals.dimensionsAsLongArray(image);\n\n\t\tfinal ArrayImg<FloatType, FloatArray> dest = ArrayImgs.floats(dims);\n\t\tfinal Cursor<FloatType> destCursor = dest.localizingCursor();\n\n\t\tif (min == min && max == max) {\n\t\t\t// Normalize the data.\n\t\t\tfinal double range = max - min;\n\t\t\twhile (destCursor.hasNext()) {\n\t\t\t\tdestCursor.fwd();\n\t\t\t\tsource.setPosition(destCursor);\n\t\t\t\tfinal double value = (source.get().getRealDouble() - min) / range;\n\t\t\t\tdestCursor.get().setReal(value);\n\t\t\t}\n\t\t}\n\t\telse {\n\t\t\t// Do not perform normalization.\n\t\t\twhile (destCursor.hasNext()) {\n\t\t\t\tdestCursor.fwd();\n\t\t\t\tsource.setPosition(destCursor);\n\t\t\t\tdestCursor.get().setReal(source.get().getRealDouble());\n\t\t\t}\n\t\t}\n\n\t\treturn dest.update(null).getCurrentStorageArray();\n\t}", "public static PVector[] readFromFile(String filename) {\n ArrayList<PVector> ledPositionsList= new ArrayList<PVector> ();\n //try to read data from file\n try {\n File file = new File(filename);\n Scanner scanner = new Scanner(file);\n while (scanner.hasNextLine()) {\n String line = scanner.nextLine();\n String[] pieces = line.split(\"\\t\");\n if (pieces.length>3) {\n ledPositionsList.add(new PVector( (Float.parseFloat(pieces[1])/4.0f), Float.parseFloat(pieces[2])/4.0f, Float.parseFloat(pieces[3])/4.0f)); //initialize Leds x,y,z,r,g,b\n }\n }\n scanner.close();\n } \n catch (FileNotFoundException ex) {\n ex.printStackTrace();\n }\n //convert to vanilla Java Array\n PVector[] ledPositions= new PVector[ledPositionsList.size()];\n for (int i=0; i<ledPositionsList.size(); i++) {\n ledPositions[i]=ledPositionsList.get(i);\n }\n return ledPositions;\n }", "public void readFile() {\r\n try {\r\n final String file = \"ConjuntoDeDatosCon\" + this.numberOfBees + \"abejas.txt\";\r\n double average = 0;\r\n BufferedReader br = new BufferedReader(new FileReader(file));\r\n String line = br.readLine();\r\n line = br.readLine();\r\n String[] splited = line.split(\",\");\r\n this.maxLA = Double.parseDouble(splited[0]);\r\n this.minLA = Double.parseDouble(splited[0]);\r\n this.maxLO = Double.parseDouble(splited[1]);\r\n this.minLO = Double.parseDouble(splited[1]);\r\n this.maxH = Math.abs(Double.parseDouble(splited[2]));\r\n this.minH = Math.abs(Double.parseDouble(splited[2]));\r\n int index = 0;\r\n double x;\r\n double y;\r\n double z;\r\n while (line != null) {\r\n String[] splitedString = line.split(\",\");\r\n x = Double.parseDouble(splitedString[0]);\r\n y = Double.parseDouble(splitedString[1]);\r\n z = Math.abs(Double.parseDouble(splitedString[2]));\r\n average += y;\r\n if (x > maxLA) {\r\n maxLA = x;\r\n } else if (x < minLA) {\r\n minLA = x;\r\n }\r\n if (y > maxLO) {\r\n maxLO = y;\r\n } else if (y < minLO) {\r\n minLO = y;\r\n }\r\n if (z > maxH) {\r\n maxH = z;\r\n } else if (z < minH) {\r\n minH = z;\r\n }\r\n Bee3D newBee = new Bee3D(x, y, z);\r\n this.beesArray[index++] = newBee;\r\n line = br.readLine();\r\n }\r\n average = average / this.numberOfBees;\r\n System.out.println(\"Maximum latitude: \" + maxLA + \" Minimum latitude: \" + minLA);\r\n System.out.println(\"Maximum longitude: \" + maxLO + \" Minimum longitude: \" + minLO);\r\n System.out.println(\"Maximum height: \" + maxH + \" Minimum height: \" + minH);\r\n this.distanceLongi = getDistanceBetween(average);\r\n System.out.println(\"Distance between the most distant latitudes \" + (int) (Math.abs(Math.abs(maxLA) - Math.abs(minLA)) * distanceLat) + \" m\");\r\n System.out.println(\"Distance between the most distant longitudes: \" + (int) (Math.abs(Math.abs(maxLO) - Math.abs(minLO)) * distanceLongi) + \" m\");\r\n System.out.println(\"Distance between the most distant heights: \" + (int) (Math.abs(Math.abs(maxH) - Math.abs(minH))) + \" m\");\r\n System.out.println(\"Average distance between longitudes: \" + distanceLongi + \" m\");\r\n this.offset *= 2;\r\n this.offset += 10;\r\n this.BeesCollision = new LinkedList[(int) ((Math.abs(Math.abs(maxLO) - Math.abs(minLO)) * distanceLongi / precission) + offset)][(int) ((Math.abs(Math.abs(maxLA) - Math.abs(minLA)) * distanceLat / precission) + offset)][(int) (Math.abs((Math.abs(maxH) - Math.abs(minH)) / precission) + offset)];\r\n this.offset -= 10;\r\n this.offset /= 2;\r\n } catch (IOException ioe) {\r\n File file = new File(\"ConjuntoDeDatosCon\" + this.numberOfBees + \"abejas.txt\");\r\n System.out.println(\"Something went wrong reading the file\");\r\n System.out.println(\"File exist: \" + file.exists());\r\n }\r\n }", "public static PointD[] fillData() {\n ArrayList<PointD> vals = new ArrayList();\n while (scn.hasNextLine()) {\n String[] xandy = scn.nextLine().split(\"\\\\s*,\\\\s*\");\n vals.add(new PointD(Double.parseDouble(xandy[0]), Double.parseDouble(xandy[1])));\n }\n PointD[] vals2 = new PointD[vals.size()];\n for (int x = 0; x < vals.size(); x++) {\n vals2[x] = vals.get(x);\n }\n return vals2;\n }", "private ArrayList<Integer> fileReader() {\n ArrayList<Integer> data = new ArrayList<>();\n try {\n Scanner scanner = new Scanner(new File(\"andmed.txt\"));\n while (scanner.hasNextLine()) {\n data.add(Integer.valueOf(scanner.nextLine()));\n }\n scanner.close();\n } catch (FileNotFoundException e) {\n e.printStackTrace();\n }\n return data;\n }", "public HashMap<String, float[]> getAllInRange(float range, float [] obj_pos){\n HashMap<String, float[]> objs = new HashMap<>();\n float [] pos = new float [3];\n String name;\n float distance;\n for (int i = 0; i < field.length; i++){\n //euclidean distance and only add those in range\n //NOTE: could replace with (x<range && y<range && z<range)\n distance = (float)Math.sqrt(((obj_pos[0]-field[i].x)*(obj_pos[0]-field[i].x)) + ((obj_pos[1]-field[i].y)\n *(obj_pos[1]-field[i].y)) + ((obj_pos[2]-field[i].z)*(obj_pos[2]-field[i].z)));\n if (distance <= range) {\n name = \"Asteroid\" + i;\n pos[0] = field[i].x;\n pos[1] = field[i].y;\n pos[2] = field[i].z;\n objs.put(name, pos);\n }\n }\n return objs;\n }", "void readFile(String location) throws FileNotFoundException,GPSException{\n\t\tFile file = new File(location);\n\t\tif(!file.exists()) {\n\t\t\tthrow new FileNotFoundException(\"Address doesn't exist\");\n\t\t}\n\t\t//Use scanner to get the data from the file\n\t\tScanner scanner = new Scanner(new File(location));\n\t\t//Read data line-by-line\n\t\tScanner valuescanner = new Scanner(scanner.nextLine());\n\t\tint count = 0,num1=0;//count is used to decide where the data should be put, num1 is to get the total amount of available points\n\t\tdo{\n\t\t\tvaluescanner = new Scanner(scanner.nextLine());\n\t\t\tvaluescanner.useDelimiter(\",\");//split up the line on commas\n\t\t\tZonedDateTime time=null;\n\t\t\tdouble longi=0,latit=0,eleva=0;\n\t\t\twhile(count<4) {\n\t\t\t\tString data = valuescanner.next();\n\t\t\t\t//if data doesn't finish fetching but scanner fetch no data,then there is an exception\n\t\t\t\tif(count<3&&!valuescanner.hasNext()) {\n\t\t\t\t\tthrow new GPSException(\"Missing Data\");\n\t\t\t\t}\n\t\t\t\tif(count==0) {\n\t\t\t\t\t//timetamp is put\n\t\t\t\t\ttime= ZonedDateTime.parse(data);\n\t\t\t\t\tcount++;\n\t\t\t\t}\n\t\t\t\telse if(count==1) {\n\t\t\t\t\t//longitude is put\n\t\t\t\t\tlongi = Double.parseDouble(data);\n\t\t\t\t\tcount++;\n\t\t\t\t}\n\t\t\t\telse if(count==2) {\n\t\t\t\t\t//latitude is put\n\t\t\t\t\tlatit= Double.parseDouble(data);\n\t\t\t\t\tcount++;\n\t\t\t\t}\n\t\t\t\telse if(count==3) {\n\t\t\t\t\t//elevation is put\n\t\t\t\t\televa= Double.parseDouble(data);\n\t\t\t\t\tcount++;\n\t\t\t\t}\n\t\t\t}\n\t\t\tPoint res = new Point(time,longi,latit,eleva);//initialize the point to be put into the sequence\n\t\t\tpoints[num1]=res;\n\t\t\tcount=0;\n\t\t\tnum1++;\n\t\t}while(scanner.hasNextLine()&&num1<=200);\n\t\tsize=num1;//get the size in advance\n\t\tscanner.close();\n\t\tvaluescanner.close();\n\t}", "public static HashMap readVF(String mapF) throws IOException{\n\t\tBufferedReader input = new BufferedReader(new InputStreamReader(new FileInputStream(mapF)));\n\t\tString line = input.readLine();//pair\n\t\tHashMap map = new HashMap();\n\t\twhile(line!=null){\n\t\t\tString vector = input.readLine();\n\t\t\tmap.put(line.substring(1), vector);\n\t\t\tline = input.readLine();\n\t\t}\n\t\tinput.close();\n\t\treturn map;\n\t}", "@Test(timeout = 4000)\n public void test41() throws Throwable {\n Range range0 = Range.of((-1732L), 1102L);\n Range.of(1102L);\n range0.toString();\n Range.CoordinateSystem range_CoordinateSystem0 = Range.CoordinateSystem.ZERO_BASED;\n range0.getEnd(range_CoordinateSystem0);\n Range.CoordinateSystem range_CoordinateSystem1 = Range.CoordinateSystem.RESIDUE_BASED;\n range0.toString(range_CoordinateSystem1);\n Range.CoordinateSystem range_CoordinateSystem2 = Range.CoordinateSystem.ZERO_BASED;\n Range.Builder range_Builder0 = new Range.Builder(range_CoordinateSystem2, (-2525L), 1965L);\n long long0 = (-1345L);\n range_Builder0.expandBegin((-1345L));\n range_Builder0.contractBegin((-2525L));\n Range range1 = range_Builder0.build();\n range1.startsBefore(range0);\n Range.of((-1345L));\n Range.CoordinateSystem range_CoordinateSystem3 = Range.CoordinateSystem.RESIDUE_BASED;\n // Undeclared exception!\n try { \n Range.parseRange(\"file can not be null\", range_CoordinateSystem3);\n fail(\"Expecting exception: IllegalArgumentException\");\n \n } catch(IllegalArgumentException e) {\n //\n // can not parse file can not be null into a Range\n //\n verifyException(\"org.jcvi.jillion.core.Range\", e);\n }\n }", "protected void readCollection(Collection<Integer> series)\n {\n size = series.size();\n if(size==0)\n return;\n x = new double[size];\n Iterator<Integer> i = series.iterator();\n for(int t = 0; i.hasNext(); t++)\n x[t] = (i.next()).doubleValue();\n if(size<2)\n return;\n r = new double[size - 1];\n for(int t = 1; t<size; t++)\n r[t - 1] = Math.log(x[t]/x[t - 1]); \n }", "public GradeFileReader( String fileName ) throws Exception {\n\t\tthis.gradeValues = new ArrayList<Double>();\n\t\t\n\t\tFile file = new File(fileName);\n\t\tScanner fileReader = new Scanner(file);\n\t\tfileReader.useDelimiter(\",|\\\\n\");\n\t\t\n\t\tString readValue;\n\t\tDouble value;\n\t\twhile (fileReader.hasNext() ) {\n\t\t\treadValue = fileReader.next();\n\t\t\tvalue = Double.parseDouble(readValue);\n\t\t\tgradeValues.add(value);\n\t\t}\n\t\t\n\t\tfileReader.close();\n\t}", "public float getLimit_lin_x_upper() throws IOException\n\t{\n\t\tif ((__io__pointersize == 8)) {\n\t\t\treturn __io__block.readFloat(__io__address + 36);\n\t\t} else {\n\t\t\treturn __io__block.readFloat(__io__address + 28);\n\t\t}\n\t}", "private static void caso4(ArrayList<Float> listaValores) {\n \n }", "@Override public void setMinMax(float minValue, float maxValue) {\n this.valueTrack.min = minValue; this.valueTrack.max = maxValue;\n }", "protected ArrayList<Attraction> TryParseRange(String i, ArrayList<Attraction> toRunOn) throws Exception {\n ArrayList<Attraction> toReturn = new ArrayList<>();\n try {\n String[] range = i.split(\"-\");\n if (range.length > 2)\n throw new Exception(\"Error parsing\");\n final int low = Integer.parseInt(range[0]);\n final int high = Integer.parseInt(range[1]);\n for (Attraction item : toRunOn) {\n float price = item.getPrice();\n if (price >= low && price <= high)\n toReturn.add(item);\n }\n } catch (Exception ex) {\n return toReturn;\n }\n return toReturn;\n }", "@Test\n public void testScanRange() throws IOException {\n Reader reader = new Reader(fs.open(path), fs.getFileStatus(path).getLen(), conf);\n Assert.assertFalse(reader.isSorted());\n Assert.assertEquals(((int) (reader.getEntryCount())), 4);\n Scanner scanner = reader.createScanner();\n try {\n // read key and value\n byte[] kbuf = new byte[TestTFileUnsortedByteArrays.BUF_SIZE];\n int klen = scanner.entry().getKeyLength();\n scanner.entry().getKey(kbuf);\n Assert.assertEquals(new String(kbuf, 0, klen), \"keyZ\");\n byte[] vbuf = new byte[TestTFileUnsortedByteArrays.BUF_SIZE];\n int vlen = scanner.entry().getValueLength();\n scanner.entry().getValue(vbuf);\n Assert.assertEquals(new String(vbuf, 0, vlen), \"valueZ\");\n scanner.advance();\n // now try get value first\n vbuf = new byte[TestTFileUnsortedByteArrays.BUF_SIZE];\n vlen = scanner.entry().getValueLength();\n scanner.entry().getValue(vbuf);\n Assert.assertEquals(new String(vbuf, 0, vlen), \"valueM\");\n kbuf = new byte[TestTFileUnsortedByteArrays.BUF_SIZE];\n klen = scanner.entry().getKeyLength();\n scanner.entry().getKey(kbuf);\n Assert.assertEquals(new String(kbuf, 0, klen), \"keyM\");\n } finally {\n scanner.close();\n reader.close();\n }\n }", "public float[] getFloatArray(String property)\n\tthrows PropertiesPlusException\n\t{\n\t\tString value = getProperty(property);\n\t\tif (value == null)\n\t\t\treturn null;\n\t\ttry\n\t\t{\n\t\t\tScanner in = new Scanner(value.trim().replaceAll(\",\", \" \"));\n\t\t\tArrayListFloat flt = new ArrayListFloat();\n\t\t\twhile (in.hasNext())\n\t\t\t\tflt.add(in.nextFloat());\n\t\t\tin.close();\n\n\t\t\treturn flt.toArray();\n\t\t}\n\t\tcatch (NumberFormatException ex)\n\t\t{\n\t\t\tthrow new PropertiesPlusException(String.format(\n\t\t\t\t\t\"%s = %s cannot be converted to type double[]\", property, value));\n\t\t}\n\t}", "private native float Df1_Read_Float(String plcAddress) throws Df1LibraryNativeException;" ]
[ "0.5966048", "0.5958239", "0.5878128", "0.56543773", "0.56426555", "0.5584048", "0.55600065", "0.55516225", "0.5536247", "0.5464596", "0.544041", "0.5344757", "0.5279332", "0.526864", "0.5265176", "0.5258291", "0.5254997", "0.5250033", "0.52416223", "0.5204", "0.5156913", "0.51512", "0.5143467", "0.5110792", "0.50954646", "0.5040695", "0.5039543", "0.5038801", "0.50357074", "0.50300676", "0.5019141", "0.5007756", "0.49934855", "0.49883103", "0.49849468", "0.49741575", "0.49454314", "0.4900954", "0.48857507", "0.48818913", "0.4872546", "0.48698315", "0.4868452", "0.4851016", "0.4849496", "0.4840542", "0.48275697", "0.48007712", "0.47998926", "0.47923914", "0.4787936", "0.47870842", "0.47788942", "0.47788134", "0.47741106", "0.4764395", "0.47542506", "0.47507808", "0.47436324", "0.47404578", "0.47376755", "0.47297028", "0.47254485", "0.47217834", "0.47183305", "0.4718286", "0.47179005", "0.47176525", "0.4716214", "0.47125557", "0.47108364", "0.46975493", "0.46885645", "0.46823734", "0.46786278", "0.46742246", "0.46742225", "0.46676448", "0.466724", "0.46606445", "0.46588042", "0.46573374", "0.46570587", "0.46534684", "0.46531758", "0.46496153", "0.4646298", "0.46462384", "0.4639567", "0.46379673", "0.46379066", "0.46374348", "0.46343786", "0.46319836", "0.4628474", "0.46270537", "0.46270475", "0.46213937", "0.4620126", "0.46196207" ]
0.74867404
0
return result of func if a is not null else null
public static <A, B> B ifnull(A a, Function<A,B> func){ if(a==null) { return null; } else { return func.apply(a); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static <A,B> B passThruNull(A a, Function<A, B> myfunc)\r\n\t{\r\n\t\treturn (a == null ? null : myfunc.apply(a));\r\n\t}", "public static <A, B> B ifnull(A a, Function<A,B> funcArg, Supplier<B> funcNull){\n\t\tif(a==null) {\n\t\t\treturn funcNull.get();\n\t\t} else {\n\t\t\treturn funcArg.apply(a);\n\t\t}\n\t}", "T getOrElse(Supplier<T> fn);", "public abstract Optional<A> val();", "public Object getElseValue();", "@Override\n public <A> Function1<Object, A> andThen$mcVF$sp (Function1<BoxedUnit, A> arg0)\n {\n return null;\n }", "@Override\n public <A> Function1<Object, A> andThen$mcZF$sp (Function1<Object, A> arg0)\n {\n return null;\n }", "@Override\n public <A> Function1<Object, A> andThen$mcVI$sp (Function1<BoxedUnit, A> arg0)\n {\n return null;\n }", "@Override\n public <A> Function1<Object, A> andThen$mcDJ$sp (Function1<Object, A> arg0)\n {\n return null;\n }", "@Override\n public <A> Function1<Object, A> andThen$mcFI$sp (Function1<Object, A> arg0)\n {\n return null;\n }", "@Override\n public <A> Function1<Object, A> andThen$mcZJ$sp (Function1<Object, A> arg0)\n {\n return null;\n }", "@Override\n public <A> Function1<Object, A> andThen$mcVJ$sp (Function1<BoxedUnit, A> arg0)\n {\n return null;\n }", "@Override\n public <A> Function1<A, Object> compose$mcDJ$sp (Function1<A, Object> arg0)\n {\n return null;\n }", "@Override\n public <A> Function1<Object, A> andThen$mcJF$sp (Function1<Object, A> arg0)\n {\n return null;\n }", "@Override\n public <A> Function1<Object, A> andThen$mcVD$sp (Function1<BoxedUnit, A> arg0)\n {\n return null;\n }", "@Override\n public <A> Function1<Object, A> andThen$mcJI$sp (Function1<Object, A> arg0)\n {\n return null;\n }", "@Override\n public <A> Function1<A, Object> compose$mcZF$sp (Function1<A, Object> arg0)\n {\n return null;\n }", "@Override\n public <A> Function1<Object, A> andThen$mcJD$sp (Function1<Object, A> arg0)\n {\n return null;\n }", "@Override\n public <A> Function1<Object, A> andThen$mcZD$sp (Function1<Object, A> arg0)\n {\n return null;\n }", "@Override\n public <A> Function1<Object, A> andThen$mcIJ$sp (Function1<Object, A> arg0)\n {\n return null;\n }", "Optional<Funcionario> buscarPorId(Long id);", "@Override\n public <A> Function1<A, Object> compose$mcJI$sp (Function1<A, Object> arg0)\n {\n return null;\n }", "T getOrElse(T value);", "@Override\n public <A> Function1<A, Object> compose$mcJD$sp (Function1<A, Object> arg0)\n {\n return null;\n }", "@Override\n public <A> Function1<A, Object> compose$mcZJ$sp (Function1<A, Object> arg0)\n {\n return null;\n }", "@Override\n public <A> Function1<Object, A> andThen$mcDD$sp (Function1<Object, A> arg0)\n {\n return null;\n }", "@Override\n public <A> Function1<Object, A> andThen$mcFJ$sp (Function1<Object, A> arg0)\n {\n return null;\n }", "public scala.Function1 foo() { return null; }", "public void test6(){\n User user = null;\n\n String name = Optional.ofNullable(user).map(User :: getName).orElse(\"taotao\");\n\n System.out.println(name);\n }", "@Override\n public <A> Function1<Object, A> andThen$mcIF$sp (Function1<Object, A> arg0)\n {\n return null;\n }", "@Override\n public <A> Function1<Object, A> andThen$mcFD$sp (Function1<Object, A> arg0)\n {\n return null;\n }", "@Override\n public <A> Function1<A, Object> compose$mcFJ$sp (Function1<A, Object> arg0)\n {\n return null;\n }", "@Override\n public <A> Function1<Object, A> andThen$mcII$sp (Function1<Object, A> arg0)\n {\n return null;\n }", "@Override\n public <A> Function1<A, Object> compose$mcFI$sp (Function1<A, Object> arg0)\n {\n return null;\n }", "public Object getResult()\n/* */ {\n/* 129 */ Object resultToCheck = this.result;\n/* 130 */ return resultToCheck != RESULT_NONE ? resultToCheck : null;\n/* */ }", "@Override\n public <A> Function1<Object, A> andThen$mcZI$sp (Function1<Object, A> arg0)\n {\n return null;\n }", "@Nullable\n public\n Object\n foo () {\n return null;\n }", "@Override\n public <A> Function1<A, Object> compose$mcFD$sp (Function1<A, Object> arg0)\n {\n return null;\n }", "@Override\n public <A> Function1<Object, A> andThen$mcFF$sp (Function1<Object, A> arg0)\n {\n return null;\n }", "@Override\n public <A> Function1<A, Object> compose$mcJF$sp (Function1<A, Object> arg0)\n {\n return null;\n }", "public T caseLlamadaFuncion(LlamadaFuncion object)\n {\n return null;\n }", "@Override\n public <A> Function1<A, Object> compose$mcIF$sp (Function1<A, Object> arg0)\n {\n return null;\n }", "T getNullValue();", "@Override\n public <A> Function1<A, Object> compose$mcDD$sp (Function1<A, Object> arg0)\n {\n return null;\n }", "@Override\n public <A> Function1<A, Object> compose$mcZD$sp (Function1<A, Object> arg0)\n {\n return null;\n }", "boolean getComputeSumNull();", "boolean getNullable();", "@Override\n public <A> Function1<Object, A> andThen$mcDI$sp (Function1<Object, A> arg0)\n {\n return null;\n }", "public boolean anyNull () ;", "@Override\n public <A> Function1<Object, A> andThen$mcDF$sp (Function1<Object, A> arg0)\n {\n return null;\n }", "public T caseFunciones(Funciones object)\n {\n return null;\n }", "public boolean b(atr paramatr)\r\n/* 468: */ {\r\n/* 469:481 */ if (paramatr.r().l()) {\r\n/* 470:482 */ return true;\r\n/* 471: */ }\r\n/* 472:485 */ amj localamj = a(this.c);\r\n/* 473:486 */ if (localamj != null) {\r\n/* 474:487 */ return localamj.b(paramatr);\r\n/* 475: */ }\r\n/* 476:489 */ return false;\r\n/* 477: */ }", "public T caseFunctionCall(FunctionCall object)\n {\n return null;\n }", "@Override\n public <A> Function1<A, Object> compose$mcIJ$sp (Function1<A, Object> arg0)\n {\n return null;\n }", "@Override\n public <A> Function1<A, Object> compose$mcII$sp (Function1<A, Object> arg0)\n {\n return null;\n }", "@Override\n public <A> Function1<A, Object> compose$mcZI$sp (Function1<A, Object> arg0)\n {\n return null;\n }", "@FunctionalInterface\n interface NonnullFunction<T, R> {\n\n /**\n * Applies this function to the given argument.\n *\n * @param t the function argument\n * @return the function result\n */\n @Nonnull\n R apply(@Nonnull T t);\n }", "public boolean f()\n/* */ {\n/* 216 */ return (this.c != null) && (this.c.a() != null);\n/* */ }", "@Override\n public <A> Function1<A, Object> compose$mcFF$sp (Function1<A, Object> arg0)\n {\n return null;\n }", "default V getOrElse(V value) {\n return isEmpty() ? value : get();\n }", "@Override\n public <A> Function1<Object, A> andThen$mcJJ$sp (Function1<Object, A> arg0)\n {\n return null;\n }", "public float a(atr paramatr)\r\n/* 375: */ {\r\n/* 376:395 */ float f1 = 1.0F;\r\n/* 377:396 */ if (this.a[this.c] != null) {\r\n/* 378:397 */ f1 *= this.a[this.c].a(paramatr);\r\n/* 379: */ }\r\n/* 380:399 */ return f1;\r\n/* 381: */ }", "@Override\n public <A> Function1<A, BoxedUnit> compose$mcVF$sp (Function1<A, Object> arg0)\n {\n return null;\n }", "@Nullable\n /* renamed from: a */\n public abstract C4891ao mo18474a(Object obj, boolean z);", "@Override\n public <A> Function1<A, Object> compose$mcDF$sp (Function1<A, Object> arg0)\n {\n return null;\n }", "String getIfElse();", "public THING orElseNull() {\n return directlyGetOrElse(null);\n }", "@Override\n public <A> Function1<A, BoxedUnit> compose$mcVJ$sp (Function1<A, Object> arg0)\n {\n return null;\n }", "static io.reactivex.Scheduler applyRequireNonNull(io.reactivex.functions.Function<java.util.concurrent.Callable<io.reactivex.Scheduler>, io.reactivex.Scheduler> r3, java.util.concurrent.Callable<io.reactivex.Scheduler> r4) {\n /*\n java.lang.Object r0 = apply(r3, r4)\n io.reactivex.Scheduler r0 = (io.reactivex.Scheduler) r0\n if (r0 != 0) goto L_0x0011\n java.lang.NullPointerException r1 = new java.lang.NullPointerException\n java.lang.String r2 = \"Scheduler Callable returned null\"\n r1.<init>(r2)\n throw r1\n L_0x0011:\n return r0\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.taobao.plugins.RxAndroidPlugins.applyRequireNonNull(io.reactivex.functions.Function, java.util.concurrent.Callable):io.reactivex.Scheduler\");\n }", "public static BinaryExpression coalesce(Expression expression0, Expression expression1, LambdaExpression lambdaExpression) { throw Extensions.todo(); }", "boolean getActiveNull();", "protected abstract Object convertNonNull(Object o);", "Try<T> orElse(Supplier<Try<T>> fn);", "Optional<X> elem();", "@Override\n public <A> Function1<A, Object> compose$mcJJ$sp (Function1<A, Object> arg0)\n {\n return null;\n }", "public boolean supportNullRowForAggregateFunctions() {\n return true;\n }", "boolean checkNull();", "@Override\n public R visit(IRIrefOrFunction n, A argu) {\n R _ret = null;\n n.iRIref.accept(this, argu);\n n.nodeOptional.accept(this, argu);\n return _ret;\n }", "public T caseFunction(Function object) {\n\t\treturn null;\n\t}", "public T caseFunction(Function object) {\n\t\treturn null;\n\t}", "public T caseFnCallExpr(FnCallExpr object) {\n\t\treturn null;\n\t}", "public class_1562 method_207() {\r\n return null;\r\n }", "@Nullable\r\n/* */ private static aej e(int ☃) {\r\n/* 272 */ aej aej1 = aej.a(☃);\r\n/* */ \r\n/* 274 */ return e.contains(aej1) ? aej1 : null;\r\n/* */ }", "public boolean a(InventoryCrafting var1)\n {\n return this.b(var1) != null;\n }", "boolean getRecursiveNull();", "boolean getSearchValueNull();", "public static <E> Function<E, E> replaceNullWith(E val) {\r\n\t\treturn new ReplaceNulls<E>(val);\n\t}", "public A get(int i){\n return null;\n }", "@Override\n protected <T> T replaceIfNotNull(T previousVal, T newVal) {\n return newVal;\n }", "@Override\r\n\tpublic String getFunc() {\n\t\treturn null;\r\n\t}", "@Override\n public <A> Function1<A, BoxedUnit> compose$mcVI$sp (Function1<A, Object> arg0)\n {\n return null;\n }", "public static BinaryExpression coalesce(Expression expression0, Expression expression1) { throw Extensions.todo(); }", "@Override\n public Watermark getNullableResult(CallableStatement cs, int columnIndex) throws SQLException {\n return new Watermark();\n }", "@Override\n public Object get(final C a, final C b) {\n return null;\n }", "boolean getValueLanguageIdNull();", "@FunctionalInterface\n interface NonnullBiFunction<T, U, R> {\n\n /**\n * Applies this function to the given arguments.\n *\n * @param t the first function argument\n * @param u the second function argument\n * @return the function result\n */\n @Nonnull\n R apply(@Nonnull T t, @Nonnull U u);\n }", "@Override\n public <A> Function1<A, BoxedUnit> compose$mcVD$sp (Function1<A, Object> arg0)\n {\n return null;\n }", "int functionB() {\n int hasil = functionA() + memberA;\n return hasil;\n }", "@Override\n public <A> Function1<Object, A> andThen$mcID$sp (Function1<Object, A> arg0)\n {\n return null;\n }", "public amj a(int paramInt1, int paramInt2)\r\n/* 322: */ {\r\n/* 323:344 */ amj[] arrayOfamj = this.a;\r\n/* 324:345 */ if (paramInt1 >= this.a.length)\r\n/* 325: */ {\r\n/* 326:346 */ arrayOfamj = this.b;\r\n/* 327:347 */ paramInt1 -= this.a.length;\r\n/* 328: */ }\r\n/* 329:350 */ if (arrayOfamj[paramInt1] != null)\r\n/* 330: */ {\r\n/* 331:351 */ if (arrayOfamj[paramInt1].b <= paramInt2)\r\n/* 332: */ {\r\n/* 333:352 */ localamj = arrayOfamj[paramInt1];\r\n/* 334:353 */ arrayOfamj[paramInt1] = null;\r\n/* 335:354 */ return localamj;\r\n/* 336: */ }\r\n/* 337:356 */ amj localamj = arrayOfamj[paramInt1].a(paramInt2);\r\n/* 338:357 */ if (arrayOfamj[paramInt1].b == 0) {\r\n/* 339:358 */ arrayOfamj[paramInt1] = null;\r\n/* 340: */ }\r\n/* 341:360 */ return localamj;\r\n/* 342: */ }\r\n/* 343:363 */ return null;\r\n/* 344: */ }" ]
[ "0.7358668", "0.682009", "0.61921513", "0.6089755", "0.5958947", "0.57312626", "0.5723966", "0.56462914", "0.56193644", "0.5616762", "0.56165516", "0.56116605", "0.56010115", "0.55861473", "0.557166", "0.55650896", "0.553756", "0.55345786", "0.55168945", "0.55073476", "0.54764414", "0.54732525", "0.54675436", "0.5435086", "0.54280776", "0.54274035", "0.5423157", "0.5405818", "0.539375", "0.5388756", "0.5386069", "0.53762996", "0.535055", "0.53426987", "0.533643", "0.5336112", "0.5330231", "0.5325735", "0.5324066", "0.53227687", "0.53220737", "0.52918977", "0.52878606", "0.52750975", "0.52531636", "0.5249404", "0.5224701", "0.52159756", "0.51966625", "0.5190702", "0.516719", "0.51625264", "0.5157278", "0.5147456", "0.5144849", "0.5139975", "0.511204", "0.50974876", "0.5092418", "0.5092155", "0.5087623", "0.5083778", "0.5081931", "0.5080677", "0.507244", "0.5055845", "0.50404817", "0.50320923", "0.49867743", "0.4985983", "0.49797565", "0.49655104", "0.4963974", "0.4960385", "0.49557194", "0.49550465", "0.49538904", "0.4939188", "0.49347258", "0.49347258", "0.4929268", "0.49001354", "0.48939353", "0.48802188", "0.48696297", "0.48681918", "0.48597473", "0.48581043", "0.48546046", "0.4850169", "0.48446983", "0.48330316", "0.48328674", "0.48319855", "0.48261952", "0.4822257", "0.48175326", "0.48104438", "0.48063332", "0.47972336" ]
0.778577
0
return result of funcArg if a is not null else result of funcNull
public static <A, B> B ifnull(A a, Function<A,B> funcArg, Supplier<B> funcNull){ if(a==null) { return funcNull.get(); } else { return funcArg.apply(a); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static <A, B> B ifnull(A a, Function<A,B> func){\n\t\tif(a==null) {\n\t\t\treturn null;\n\t\t} else {\n\t\t\treturn func.apply(a);\n\t\t}\n\t}", "public static <A,B> B passThruNull(A a, Function<A, B> myfunc)\r\n\t{\r\n\t\treturn (a == null ? null : myfunc.apply(a));\r\n\t}", "@Override\n public <A> Function1<Object, A> andThen$mcZF$sp (Function1<Object, A> arg0)\n {\n return null;\n }", "@Override\n public <A> Function1<Object, A> andThen$mcVF$sp (Function1<BoxedUnit, A> arg0)\n {\n return null;\n }", "@Override\n public <A> Function1<Object, A> andThen$mcZJ$sp (Function1<Object, A> arg0)\n {\n return null;\n }", "@MaybeNull\n Object invoke(Object[] argument) throws Throwable;", "@Override\n public <A> Function1<Object, A> andThen$mcVJ$sp (Function1<BoxedUnit, A> arg0)\n {\n return null;\n }", "@Override\n public <A> Function1<Object, A> andThen$mcVI$sp (Function1<BoxedUnit, A> arg0)\n {\n return null;\n }", "@Override\n public <A> Function1<Object, A> andThen$mcJF$sp (Function1<Object, A> arg0)\n {\n return null;\n }", "@Override\n public <A> Function1<Object, A> andThen$mcJI$sp (Function1<Object, A> arg0)\n {\n return null;\n }", "@Override\n public <A> Function1<Object, A> andThen$mcFI$sp (Function1<Object, A> arg0)\n {\n return null;\n }", "@Override\n public <A> Function1<Object, A> andThen$mcVD$sp (Function1<BoxedUnit, A> arg0)\n {\n return null;\n }", "@Override\n public <A> Function1<Object, A> andThen$mcJD$sp (Function1<Object, A> arg0)\n {\n return null;\n }", "@Override\n public <A> Function1<Object, A> andThen$mcZD$sp (Function1<Object, A> arg0)\n {\n return null;\n }", "@Override\n public <A> Function1<Object, A> andThen$mcDJ$sp (Function1<Object, A> arg0)\n {\n return null;\n }", "@Override\n public <A> Function1<Object, A> andThen$mcIJ$sp (Function1<Object, A> arg0)\n {\n return null;\n }", "@Override\n public R visit(IRIrefOrFunction n, A argu) {\n R _ret = null;\n n.iRIref.accept(this, argu);\n n.nodeOptional.accept(this, argu);\n return _ret;\n }", "public T caseFunctionArguments(FunctionArguments object)\n {\n return null;\n }", "boolean getCalledOnNullInput();", "@Override\n public <A> Function1<Object, A> andThen$mcDD$sp (Function1<Object, A> arg0)\n {\n return null;\n }", "public T caseFunctionArgumentBody(FunctionArgumentBody object)\n {\n return null;\n }", "@Override\n public <A> Function1<Object, A> andThen$mcFJ$sp (Function1<Object, A> arg0)\n {\n return null;\n }", "@Override\n public <A> Function1<A, Object> compose$mcZF$sp (Function1<A, Object> arg0)\n {\n return null;\n }", "@Override\n public <A> Function1<Object, A> andThen$mcII$sp (Function1<Object, A> arg0)\n {\n return null;\n }", "@Override\n public <A> Function1<Object, A> andThen$mcIF$sp (Function1<Object, A> arg0)\n {\n return null;\n }", "@Override\n public <A> Function1<Object, A> andThen$mcZI$sp (Function1<Object, A> arg0)\n {\n return null;\n }", "public abstract Optional<A> val();", "@Override\n public <A> Function1<Object, A> andThen$mcFD$sp (Function1<Object, A> arg0)\n {\n return null;\n }", "@Override\n public <A> Function1<Object, A> andThen$mcFF$sp (Function1<Object, A> arg0)\n {\n return null;\n }", "public T caseArg(Arg object) {\n\t\treturn null;\n\t}", "@Override\n public <A> Function1<A, Object> compose$mcDJ$sp (Function1<A, Object> arg0)\n {\n return null;\n }", "@Override\n public <A> Function1<A, Object> compose$mcJI$sp (Function1<A, Object> arg0)\n {\n return null;\n }", "@Override\n public <A> Function1<A, Object> compose$mcZJ$sp (Function1<A, Object> arg0)\n {\n return null;\n }", "public String visit(SpilledArg n, Object argu)\r\n\t {\r\n\t\t return null;\r\n\t }", "public T caseFunctionCall(FunctionCall object)\n {\n return null;\n }", "@Override\n public <A> Function1<A, Object> compose$mcJD$sp (Function1<A, Object> arg0)\n {\n return null;\n }", "public T caseFunctionArgumentDeclaration(FunctionArgumentDeclaration object)\n {\n return null;\n }", "public Object getElseValue();", "@Override\n public <A> Function1<Object, A> andThen$mcDI$sp (Function1<Object, A> arg0)\n {\n return null;\n }", "@Nullable\n /* renamed from: a */\n public abstract C4891ao mo18474a(Object obj, boolean z);", "@FunctionalInterface\n interface NonnullFunction<T, R> {\n\n /**\n * Applies this function to the given argument.\n *\n * @param t the function argument\n * @return the function result\n */\n @Nonnull\n R apply(@Nonnull T t);\n }", "public T caseFnCallExpr(FnCallExpr object) {\n\t\treturn null;\n\t}", "@Override\n public <A> Function1<Object, A> andThen$mcDF$sp (Function1<Object, A> arg0)\n {\n return null;\n }", "@Override\n public <A> Function1<A, Object> compose$mcFJ$sp (Function1<A, Object> arg0)\n {\n return null;\n }", "public boolean b(atr paramatr)\r\n/* 468: */ {\r\n/* 469:481 */ if (paramatr.r().l()) {\r\n/* 470:482 */ return true;\r\n/* 471: */ }\r\n/* 472:485 */ amj localamj = a(this.c);\r\n/* 473:486 */ if (localamj != null) {\r\n/* 474:487 */ return localamj.b(paramatr);\r\n/* 475: */ }\r\n/* 476:489 */ return false;\r\n/* 477: */ }", "public T caseArgument(Argument object) {\n\t\treturn null;\n\t}", "@Override\n public <A> Function1<Object, A> andThen$mcJJ$sp (Function1<Object, A> arg0)\n {\n return null;\n }", "public scala.Function1 foo() { return null; }", "@Override\n public <A> Function1<A, Object> compose$mcJF$sp (Function1<A, Object> arg0)\n {\n return null;\n }", "@Override\n public <A> Function1<A, Object> compose$mcFD$sp (Function1<A, Object> arg0)\n {\n return null;\n }", "@Override\n public <A> Function1<A, BoxedUnit> compose$mcVF$sp (Function1<A, Object> arg0)\n {\n return null;\n }", "public boolean anyNull () ;", "@Test\n public void testCheckNull() {\n Helper.checkNull(\"non-null\", \"non-null name\");\n }", "@Override\n public <A> Function1<A, Object> compose$mcFI$sp (Function1<A, Object> arg0)\n {\n return null;\n }", "@Override\n public <A> Function1<A, Object> compose$mcDD$sp (Function1<A, Object> arg0)\n {\n return null;\n }", "public T caseLlamadaFuncion(LlamadaFuncion object)\n {\n return null;\n }", "@Override\n public <A> Function1<A, Object> compose$mcIF$sp (Function1<A, Object> arg0)\n {\n return null;\n }", "public T caseFunciones(Funciones object)\n {\n return null;\n }", "@Override\n public <A> Function1<A, Object> compose$mcZD$sp (Function1<A, Object> arg0)\n {\n return null;\n }", "boolean getComputeSumNull();", "public float a(atr paramatr)\r\n/* 375: */ {\r\n/* 376:395 */ float f1 = 1.0F;\r\n/* 377:396 */ if (this.a[this.c] != null) {\r\n/* 378:397 */ f1 *= this.a[this.c].a(paramatr);\r\n/* 379: */ }\r\n/* 380:399 */ return f1;\r\n/* 381: */ }", "@Override\n public <A> Function1<CIMSubsetter<?>, A> andThen (Function1<BoxedUnit, A> arg0)\n {\n return null;\n }", "boolean checkNull();", "@Override\n public <A> Function1<A, Object> compose$mcZI$sp (Function1<A, Object> arg0)\n {\n return null;\n }", "AstroArg empty();", "public bcm a(World paramaqu, int paramInt)\r\n/* 17: */ {\r\n/* 18: 37 */ return null;\r\n/* 19: */ }", "@Override\n public <A> Function1<A, Object> compose$mcII$sp (Function1<A, Object> arg0)\n {\n return null;\n }", "public FnNull(){\n\t}", "@Override\n public String visit(NullLiteralExpr n, Object arg) {\n return null;\n }", "@Override\n public <A> Function1<A, BoxedUnit> compose$mcVJ$sp (Function1<A, Object> arg0)\n {\n return null;\n }", "@Override\n\tpublic void visit(IsNullExpression arg0) {\n\n\t}", "public T caseFunction(Function object) {\n\t\treturn null;\n\t}", "public T caseFunction(Function object) {\n\t\treturn null;\n\t}", "@Override\n public <A> Function1<A, Object> compose$mcIJ$sp (Function1<A, Object> arg0)\n {\n return null;\n }", "private static void checkArg(Object paramObject) {\n/* 687 */ if (paramObject == null)\n/* 688 */ throw new NullPointerException(\"Argument must not be null\"); \n/* */ }", "@Override\n\tpublic void visit(IsNullExpression arg0) {\n\t\t\n\t}", "@Override\n public <A> Function1<A, Object> compose$mcFF$sp (Function1<A, Object> arg0)\n {\n return null;\n }", "public boolean a(InventoryCrafting var1)\n {\n return this.b(var1) != null;\n }", "@Test\n public void testCheckNullForInjectedValue() {\n Helper.checkNullForInjectedValue(\"obj\", \"obj\");\n }", "protected abstract Object convertNonNull(Object o);", "@FunctionalInterface\n interface NonnullBiFunction<T, U, R> {\n\n /**\n * Applies this function to the given arguments.\n *\n * @param t the first function argument\n * @param u the second function argument\n * @return the function result\n */\n @Nonnull\n R apply(@Nonnull T t, @Nonnull U u);\n }", "T getOrElse(Supplier<T> fn);", "@Override\n public <A> Function1<Object, A> andThen$mcID$sp (Function1<Object, A> arg0)\n {\n return null;\n }", "@Test\n public void testCheckNullWithLogging() {\n Helper.checkNullWithLogging(\"obj\", \"obj\", \"method\", LogManager.getLog());\n }", "public TestCase notNull( Object obj );", "public boolean c(amj paramamj)\r\n/* 559: */ {\r\n/* 560:598 */ for (int i = 0; i < this.b.length; i++) {\r\n/* 561:599 */ if ((this.b[i] != null) && (this.b[i].a(paramamj))) {\r\n/* 562:600 */ return true;\r\n/* 563: */ }\r\n/* 564: */ }\r\n/* 565:603 */ for (i = 0; i < this.a.length; i++) {\r\n/* 566:604 */ if ((this.a[i] != null) && (this.a[i].a(paramamj))) {\r\n/* 567:605 */ return true;\r\n/* 568: */ }\r\n/* 569: */ }\r\n/* 570:608 */ return false;\r\n/* 571: */ }", "@Override\n public <A> Function1<A, Object> compose$mcDF$sp (Function1<A, Object> arg0)\n {\n return null;\n }", "public void testTransformWithNullCaller() throws Exception {\n try {\n instance.transform(element, document, null);\n fail(\"IllegalArgumentException is excepted[\" + suhClassName + \"].\");\n } catch (IllegalArgumentException iae) {\n // pass\n }\n }", "public int a(String paramString, float paramFloat1, float paramFloat2, int paramInt, boolean paramBoolean)\r\n/* 244: */ {\r\n/* 245:251 */ cjm.enableAlphaTest();\r\n/* 246:252 */ e();\r\n/* 247: */ int i1;\r\n/* 248:256 */ if (paramBoolean)\r\n/* 249: */ {\r\n/* 250:257 */ i1 = b(paramString, paramFloat1 + 1.0F, paramFloat2 + 1.0F, paramInt, true);\r\n/* 251:258 */ i1 = Math.max(i1, b(paramString, paramFloat1, paramFloat2, paramInt, false));\r\n/* 252: */ }\r\n/* 253: */ else\r\n/* 254: */ {\r\n/* 255:260 */ i1 = b(paramString, paramFloat1, paramFloat2, paramInt, false);\r\n/* 256: */ }\r\n/* 257:263 */ return i1;\r\n/* 258: */ }", "private int a(alq paramalq, int paramInt)\r\n/* 40: */ {\r\n/* 41: 61 */ for (int i = 0; i < this.a.length; i++) {\r\n/* 42: 62 */ if ((this.a[i] != null) && (this.a[i].b() == paramalq) && (this.a[i].i() == paramInt)) {\r\n/* 43: 63 */ return i;\r\n/* 44: */ }\r\n/* 45: */ }\r\n/* 46: 66 */ return -1;\r\n/* 47: */ }", "@Override\n public String visit(LambdaExpr n, Object arg) {\n return null;\n }", "public Arginfo visit(Expression n, Arginfo argu) {\n Arginfo _ret=null;\n Arginfo temp=n.f0.accept(this, argu);\n \n return temp;\n }", "@Test\n public void noneNullArgumentIsNullTest() throws GeneralException {\n for (String noneNullArgument : SAMLCorrelationRule.NONE_NULL_ARGUMENTS_NAME) {\n\n JavaRuleContext testRuleContext = buildTestJavaRuleContext();\n testRuleContext.getArguments().remove(noneNullArgument);\n\n assertThrows(GeneralException.class, () -> testRule.execute(testRuleContext));\n verify(testRule).internalValidation(eq(testRuleContext));\n verify(testRule, never()).internalExecute(eq(testRuleContext), any());\n }\n }", "@Override\n public R visit(FunctionCall n, A argu) {\n R _ret = null;\n n.iRIref.accept(this, argu);\n n.argList.accept(this, argu);\n return _ret;\n }", "public boolean b(alq paramalq)\r\n/* 259: */ {\r\n/* 260:278 */ int i = c(paramalq);\r\n/* 261:279 */ if (i < 0) {\r\n/* 262:280 */ return false;\r\n/* 263: */ }\r\n/* 264:283 */ return true;\r\n/* 265: */ }", "@Override\n public R visit(TriplesBlock n, A argu) {\n R _ret = null;\n n.triplesSameSubject.accept(this, argu);\n n.nodeOptional.accept(this, argu);\n return _ret;\n }", "@Override\n public <A> Function1<A, Object> compose$mcJJ$sp (Function1<A, Object> arg0)\n {\n return null;\n }", "@Override\n public String visit(IfStmt n, Object arg) {\n return null;\n }", "@Override\n public R visit(ConditionalOrExpression n, A argu) {\n R _ret = null;\n n.conditionalAndExpression.accept(this, argu);\n n.nodeListOptional.accept(this, argu);\n return _ret;\n }", "@Override\n public String visit(UnaryExpr n, Object arg) {\n return null;\n }" ]
[ "0.73894775", "0.72274685", "0.60435754", "0.5969514", "0.5869522", "0.58575", "0.58362526", "0.5802884", "0.5797619", "0.5796389", "0.57832867", "0.57648456", "0.57569283", "0.5741859", "0.57382876", "0.5697779", "0.5679107", "0.5667772", "0.5636817", "0.5633124", "0.5627837", "0.56177187", "0.5591424", "0.55879647", "0.55871564", "0.5579907", "0.5548062", "0.5544847", "0.5530206", "0.5528825", "0.54971296", "0.5456137", "0.54531866", "0.54371667", "0.5436832", "0.54324615", "0.5430538", "0.5411939", "0.539505", "0.53868204", "0.5380211", "0.53800774", "0.5364132", "0.53586036", "0.53446645", "0.53191805", "0.5314512", "0.5314126", "0.53021586", "0.529925", "0.5288251", "0.5287877", "0.5276322", "0.52697706", "0.52576315", "0.52532434", "0.5242002", "0.5239721", "0.5239559", "0.519016", "0.51831716", "0.5183035", "0.5181128", "0.51564103", "0.51530176", "0.5151286", "0.5146102", "0.5122665", "0.5119503", "0.51175565", "0.51161176", "0.51069844", "0.51069844", "0.5095736", "0.5095207", "0.5085762", "0.5081582", "0.5077276", "0.50716627", "0.50624573", "0.5058557", "0.50501645", "0.50485003", "0.50471276", "0.5046397", "0.50429076", "0.5035837", "0.50348383", "0.502694", "0.5022975", "0.50221056", "0.502002", "0.50165296", "0.4995215", "0.49852392", "0.49798387", "0.49738815", "0.49670082", "0.4966974", "0.4965912" ]
0.748684
0
creates a map of all entries in one section of an "ini"file
public static Map<String, String> readIniSectionMap(Section section) { Map<String,String> sectionMap = new HashMap<String, String>(); for(String key:section.keySet()) { if(!key.equals("NaN")) { if(section.getAll(key).size()>1) { // TODO always == 1 ??? log.warn("multiple entries: "+key+" from "+section.getName()); } sectionMap.put(key, section.get(key)); } else { log.warn("NaN key"); } } return sectionMap; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void initialilzeMapEntry(String file){\n\t\tmap.put(file, new LinkedList<HashMap<Integer, Integer>>());\n\t}", "public ArrayList<HashMap<String, String>> getIniContent() {\n return this.sections;\n }", "public static void parseIni() {\r\n\t\t//Find the indexes of the division headers.\r\n\t\tint namesIndex = findIndex(\"[names]\");\r\n\t\tint defaultIndex = findIndex(\"[defaults]\");\r\n\t\tint soundIndex = findIndex(\"[sounds]\");\r\n\t\t\r\n\t\t//Extract the information from the ini Array List.\r\n\t\tnames = extractSettings(namesIndex);\r\n\t\tdefaults = extractSettings(defaultIndex);\r\n\t\tsounds = extractSettings(soundIndex);\r\n\r\n\t\t//Sort the names Array List and copy it to the main names Array List.\r\n\t\tCollections.sort(names);\r\n\t\tMain.names = names;\r\n\t\t\r\n\t\t//Set the sounds to their variables.\r\n\t\tsetSounds();\r\n\t\t\r\n\t\t//Set the default game configurations.\r\n\t\tsetDefaults();\r\n\r\n\t}", "public static void createIni() {\r\n\t\t//Clear the contents of the ini array list if not null.\r\n\t\tif (Main.ini != null) Main.ini.clear();\r\n\t\t\r\n\t\t//Start putting in the data.\r\n\t\tMain.ini.add(\"[Names]\");\r\n\t\t\r\n\t\t//Loop through the entire names array list.\r\n\t\tfor (int i = 0; i < names.size(); i++) {\r\n\t\t\tMain.ini.add(names.get(i));\r\n\t\t}\r\n\t\t\r\n\t\t//Start putting in the data.\r\n\t\tMain.ini.add(\"\");\r\n\t\tMain.ini.add(\"[Defaults]\");\r\n\t\t\r\n\t\t//Loop through the entire defaults array list.\r\n\t\tfor (int i = 0; i < defaults.size(); i++) {\r\n\t\t\tMain.ini.add(defaults.get(i));\r\n\t\t}\r\n\t\t\r\n\t\t//Start putting in the data.\r\n\t\tMain.ini.add(\"\");\r\n\t\tMain.ini.add(\"[Sounds]\");\r\n\t\t\r\n\t\t//Loop through the entire names array list.\r\n\t\tfor (int i = 0; i < sounds.size(); i++) {\r\n\t\t\tMain.ini.add(sounds.get(i));\r\n\t\t}\r\n\t}", "public Map<String, List<Set<Integer>>> readMappingsFromFile(String fname)\n\t\t\tthrows IOException {\n\t\tMap<String, List<Set<Integer>>> mappings = new HashMap<String, List<Set<Integer>>>();\n\n\t\tBufferedReader br = null;\n\n\t\tif (fname != null) {\n\t\t\tInputStream st = getClass().getResourceAsStream(fname);\n\t\t\tif (st != null) {\n\t\t\t\tbr = new BufferedReader(new InputStreamReader(st));\n\t\t\t} else {\n\t\t\t\tSystem.err.println(\"Could not find \" + fname + \" in classpath\");\n\t\t\t}\n\t\t}\n\t\tString line = null;\n\t\twhile ((line = br.readLine()) != null) {\n\t\t\tString colsplit[] = line.split(\":\");\n\t\t\tString prefix = colsplit[0];\n\t\t\tString integers[] = colsplit[1].split(\"[, ]+\");\n\n\t\t\tList<Set<Integer>> mapping = null;\n\t\t\tif (!mappings.containsKey(prefix)) {\n\t\t\t\tmapping = new ArrayList<Set<Integer>>();\n\t\t\t\tmappings.put(prefix, mapping);\n\t\t\t}\n\t\t\tmapping = mappings.get(prefix);\n\n\t\t\tSet<Integer> given_mapping = new HashSet<Integer>();\n\t\t\tfor (String Int : integers) {\n\t\t\t\tif (Int.length() > 0) {\n\t\t\t\t\tgiven_mapping.add(Integer.parseInt(Int));\n\t\t\t\t}\n\t\t\t}\n\t\t\tmapping.add(given_mapping);\n\t\t\tmappings.put(prefix, mapping);\n\t\t}\n\t\tbr.close();\n\n\t\treturn mappings;\n\t}", "protected synchronized Hashtable getMappingsFromFile() throws Exception {\n\n \t\n\t\tInputStream path = null;\n\n\t\tpath = getClass().getResourceAsStream(\"../../../config/mappings.txt\");\n\n\t\tSystem.out.println(\"Path is - \" + path);\n\n\t\tBufferedReader reader = new BufferedReader(new InputStreamReader(path));\n/*\t\tStringBuilder sb = new StringBuilder();\n\t\tString line1 = null;\n\t\twhile ((line1 = reader.readLine()) != null) {\n\t\t\tsb.append(line1 + \"\\n\");\n\t\t}\n*/\t\t//System.out.println(\"String is - \" + sb.toString());\n\t\t\n/* \tFile f = new File(\"src/edu/ucsd/crbs/incf/components/services/emage/mappings.txt\");\n System.out.println(\"Mapping - \" + f.getAbsolutePath());\n\n*/ /*if(sb.toString().trim().equals(\"\") || sb.toString() == null ) {\n System.err.println(\"bisel.ReadMappings cannot find mapping file\");\n System.exit(1);\n }*/\n\n Hashtable mappings = new Hashtable(17, new Float(1.25).floatValue());\n\n\n //BufferedReader br = new BufferedReader(new FileReader(f));\n String line = reader.readLine();\n while(line != null) { \n StringTokenizer st = new StringTokenizer(line, \"*\");\n String aba = st.nextToken();\n String emap = st.nextToken();\n mappings.put(aba, emap);\n line = reader.readLine();\n }\n\n reader.close();\n return mappings;\n }", "public static Map<String, String> parse(File file) throws IOException {\n List<String> configs = Files.readAllLines(file.toPath());\n return configs.stream()\n .map(it -> it.split(\"\\t\"))\n .collect(toMap(splitted -> splitted[0], splitted -> splitted[1]));\n }", "public static Map readingFilesMap(String file) {\n\n Stream<String> lines = null;\n try {\n lines = Files.lines(Paths.get(file));\n } catch (IOException e) {\n e.printStackTrace();\n }\n\n /* lines = lines.filter(line -> line.trim().length() > 0)\n .map(line -> line.substring(line.lastIndexOf(\" \")));\n*/\n Map map = lines.collect(Collectors.toMap(\n line -> line.substring(line.lastIndexOf(\" \")),\n line -> line.substring(0, line.lastIndexOf(\" \"))\n ));//.forEach(System.out::print);\n //lines.forEach(Collections.list());\n\n map.forEach((k, v) -> {\n System.out.println(\"key:\"+k+ \" Value=\"+v);\n } );\n return map;\n\n //set.forEach(System.out::print);\n\n\n }", "public void createIDMap()\n {\n IDMap = new HashMap<>();\n idFile.open(\"idpassword.txt\");\n String line = idFile.getNextLine();\n\n\n\n while(line!=null) {\n String[] fields = line.split(\",\");\n IDMap.put(fields[0], fields[1]);\n\n line = idFile.getNextLine();\n\n }\n\n }", "public static Map loadMap(String MapFile){\n int Bottle =0;\n int Bottle1= 0;\n Map Object = new Map(0,0);\n \n try {\n \n Scanner scan = new Scanner(new File(MapFile));\n FileReader fr = new FileReader(MapFile);\n while(scan.hasNextLine()){\n if (scan.hasNextInt()){\n Bottle = scan.nextInt();\n Bottle1 = scan.nextInt();\n\n }\n Object = new Map(Bottle,Bottle1);\n }\n fr.close();\n }\n \n catch (Exception e){\n System.out.println(\"Sorry Nothing Found\");\n System.out.println(e.toString());\n e.printStackTrace(); \n } \n \n return Object;\n }", "private Map<String, Integer> createRootNotes(String file) throws FileNotFoundException {\n Map<String, Integer> tempNotes = new HashMap<String, Integer>();\n Scanner noteScan = new Scanner(new File(file));\n while (noteScan.hasNextLine()) {\n Scanner line = new Scanner(noteScan.nextLine());\n String note = line.next();\n int value = line.nextInt();\n tempNotes.put(note, value);\n }\n return tempNotes;\n }", "public Map<String, File> getInLines() {\r\n\t\treturn inLines;\r\n\t}", "private Map<String, ArrayList<Integer>> createModes(String file) throws FileNotFoundException {\n Map<String, ArrayList<Integer>> tempModes = new HashMap<String, ArrayList<Integer>>();\n Scanner modeScan = new Scanner(new File(file));\n while (modeScan.hasNextLine()) {\n Scanner line = new Scanner(modeScan.nextLine());\n String name = line.next();\n ArrayList<Integer> notes = new ArrayList<Integer>();\n while (line.hasNextInt()) {\n notes.add(line.nextInt());\n }\n tempModes.put(name, notes);\n }\n return tempModes;\n }", "public void addToMap(Scanner in) {\n while(in.hasNext()) {\n myList.put(in.next(), 0);\n }\n }", "public static Map<String, String> readMap() {\n\n\n // take resource from jar file (in the project they are in the \"target\" folder)\n InputStream playlist =\n PlaylistPrepare.class.getClassLoader()\n .getResourceAsStream(\"playlist.txt\");\n\n InputStreamReader reader = new InputStreamReader(playlist);\n BufferedReader br = new BufferedReader(reader);\n\n Map<String, String> map = new HashMap<>();\n\n try {\n String line;\n while ((line = br.readLine()) != null) {\n String[] split = line.split(\"¦\");\n// System.out.println(split[1] + \"; \" + split[2]);\n map.put(split[1], split[2]);\n }\n\n } catch (IOException e) {\n e.printStackTrace();\n }\n return map;\n }", "public static int[][] loadMap(String fileName) throws Exception{\n FileReader fr=new FileReader(fileName);\n int c;\n String str=\"\";\n List<String> strA=new ArrayList<>(); //list of lines\n //process out newlines from midline\n while((c=fr.read())!=-1){\n System.out.print((char)c); //show map\n if(!(((char)c=='\\n') || ((char)c=='\\r'))){str=str+(char)c;}\n else if(((char)c=='\\n' || (char)c=='\\r')){\n if(strA.size()<1) {strA.add(str);str=\"\";}\n else if(strA.size()>0 && strA.get(0).length()>str.length()){} //newline char found midline\n else {strA.add(str);str=\"\";}\n }\n else System.out.println(\"Err: \"+(char)c);\n }\n strA.add(str);\n System.out.println(\"\\nWidth: \"+str.length()+\"\\nHeight: \"+strA.size());\n //now that size is known, fill info array\n int[][] map=fillMap(strA);\n \n return map;\n }", "public static Map<String, String> readMap(File inFile, String kColumn, String vColumn) throws IOException {\n Map<String, String> retVal = new HashMap<String, String>();\n try (TabbedLineReader inStream = new TabbedLineReader(inFile)) {\n int kCol = inStream.findField(kColumn);\n int vCol = inStream.findField(vColumn);\n for (Line line : inStream)\n retVal.put(line.get(kCol), line.get(vCol));\n }\n return retVal;\n }", "private static String[][] getMap(String inputFile, String[][] Map) {\n\t\tFile text = new File(inputFile);\t\r\n\t\tint j = 0;\r\n\r\n\t\ttry {\r\n\t\t\tScanner s = new Scanner(text);\r\n\t\t\tString nex = s.nextLine();\r\n\t\t\t\r\n\t\t\twhile(s.hasNextLine())\r\n\t\t\t{\r\n\t\t\tnex = s.nextLine();\r\n\t\t\tfor (int i = 0; i < nex.length(); i++)\r\n\t\t\t{\r\n\t\t\t\tchar c = nex.charAt(i);\r\n\t\t\t\tString d = Character.toString(c);\r\n\t\t\t\tMap[j][i] = d;\t\r\n\t\t\t}\r\n\t\t\tj++;\r\n\t\t\t}\t\r\n\t\t\ts.close();\r\n\t\t} catch (FileNotFoundException e) {\r\n\t\t\t// TODO Auto-generated catch block\r\n\t\t\te.printStackTrace();\r\n\t\t}\t\t\r\n\t\treturn Map;\r\n}", "public static void loadTargetTerm2IdMapping(File input) throws IOException {\n\t\t\tm_namesMap = new SimpleBidirectionalMap<String, Integer>();\n\t\t\tString encoding = FileUtils.getFileEncoding(input);\n\t\t\tBufferedReader reader = new BufferedReader(new InputStreamReader(new FileInputStream(input), encoding));\n\t\t\tString line = reader.readLine();\n\t\t\tint lineNum = 1;\n\t\t\tboolean testFormat = false;\n\t\t\tif(StringUtils.checkIfNumber(line.split(\"\\t\")[0]))\n\t\t\t\ttestFormat = true;\n\t\t\twhile(line!= null) {\n\t\t\t\tif(line.equals(\"@@@\"))\n\t\t\t\t\tbreak;\n\t\t\t\tif(testFormat) {\n\t\t\t\t\tString num = line.split(\"\\t\")[0];\n\t\t\t\t\tSystem.out.println(\"key: \"+line.trim().substring(num.length()+1) + \" value: \" + Integer.parseInt(num));\n\t\t\t\t\tm_namesMap.put(line.trim().substring(num.length()+1), Integer.parseInt(num));\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\tSystem.out.println(\"key????\" + lineNum + \"instead of \" + line.split(\"\\t\")[0]);\n\t\t\t\t\tm_namesMap.put(line.trim(), lineNum);\n\t\t\t\t}\n\t\t\t\tline = reader.readLine();\n\t\t\t\tlineNum ++;\n\t\t\t}\n\t\t}", "public static Map readMap(MapName s)\n {\n Map map = new Map(1);\n try\n {\n MapReader run = new MapReader();\n System.out.println(s.toString());\n Scanner mapReader = new Scanner(run.getClass().getResourceAsStream(\"/\"+s.toString()+\".jwmap\"));\n ArrayList<String[]> numberLines = new ArrayList<String[]>();\n int dim = mapReader.nextInt();\n mapReader.nextLine();\n for(int gh = 0 ; gh < dim; gh++)\n {\n String[] nums = mapReader.nextLine().split(\" \");\n numberLines.add(nums);\n }\n int[][] newMap = new int[numberLines.size()][numberLines.size()];\n \n for(int i = 0; i < numberLines.size();i++)\n {\n for(int h = 0; h < numberLines.get(i).length;h++)\n {\n newMap[i][h] = Integer.parseInt(numberLines.get(i)[h]);\n }\n }\n map.loadMap(newMap);\n \n TreeMap<Integer,ArrayList<Integer>> spawn1 = map.getSpawn1();\n TreeMap<Integer,ArrayList<Integer>> spawn2 = map.getSpawn2();\n \n String line = \"\";\n while(mapReader.hasNextLine() && (line = mapReader.nextLine()).contains(\"spawn1\"))\n {\n Scanner in = new Scanner(line);\n in.next();\n int x = in.nextInt();\n spawn1.put(x, new ArrayList<Integer>());\n while(in.hasNextInt())\n {\n spawn1.get(x).add(in.nextInt());\n }\n }\n \n if(!line.equals(\"\"))\n {\n Scanner in = new Scanner(line);\n in.next();\n int x = in.nextInt();\n spawn2.put(x, new ArrayList<Integer>());\n while(in.hasNextInt())\n {\n spawn2.get(x).add(in.nextInt());\n }\n }\n while(mapReader.hasNextLine() && (line = mapReader.nextLine()).contains(\"spawn2\"))\n {\n Scanner in = new Scanner(line);\n in.next();\n int x = in.nextInt();\n spawn2.put(x, new ArrayList<Integer>());\n while(in.hasNextInt())\n {\n spawn2.get(x).add(in.nextInt());\n }\n }\n }\n catch (Exception ex)\n {\n JOptionPane.showMessageDialog(null, \"Corrupted file!\");\n }\n return map;\n }", "public static Map<String, String> getPropertiesMap(String filename) throws IOException{\n Map<String, String> map = new LinkedHashMap();\n Properties p = new Properties();\n loadProperties(p, filename);\n Set<String> keys = p.stringPropertyNames();\n for (String k : keys) {\n map.put(k, p.getProperty(k));\n }\n return map;\n }", "private static HashMap makeLabelMapping(String szlabelmapping) throws IOException\n {\n\tHashMap hmlabelExtend = new HashMap();\n\tif (szlabelmapping != null)\n\t{\n BufferedReader bridlabel = Util.getBufferedReader(szlabelmapping);\n\t String szLine;\n\n\t //Loading in a mapping from state ID to a label description\n\n\t while ((szLine = bridlabel.readLine())!=null)\n {\n\t StringTokenizer st = new StringTokenizer(szLine,\"\\t\");\n\t String szID = st.nextToken().trim();\n\t String szLabelExtend = st.nextToken().trim();\n\t hmlabelExtend.put(szID,szLabelExtend);\n\t }\n\t bridlabel.close();\n\t}\n\n\treturn hmlabelExtend;\n }", "Map<String, Defines> getDefinesMap();", "public HashMap<String,String> readMapFile(String filename) throws IOException {\n\t\tHashMap<String,String> valueMap = new HashMap<String,String>();\t\t\n List<String> cols = new ArrayList<String>(); \n\t\t\n try{\n \t buf = new BufferedReader(new FileReader(filename)); \n\t String strRead; \n\t while ((strRead=buf.readLine())!=null) {\n\t \tcols = Arrays.asList(strRead.split(\"\\t\")); \t\n\t \tif(cols.size() != 2)\n\t \t\tcontinue; \t\n\t \tvalueMap.put(cols.get(0),cols.get(1)); \t\n\t \t }\n\t } catch(IOException e){\n\t e.printStackTrace();\n\t } finally {\n\t \tbuf.close(); \n\t }\n\t\t\t\n\t\treturn valueMap;\n\t}", "public static Map readMap(File f)\n {\n Map map = new Map(1);\n try\n {\n MapReader run = new MapReader();\n Scanner mapReader = new Scanner(f);\n ArrayList<String[]> numberLines = new ArrayList<String[]>();\n int dim = mapReader.nextInt();\n mapReader.nextLine();\n for(int gh = 0 ; gh < dim; gh++)\n {\n String[] nums = mapReader.nextLine().split(\" \");\n numberLines.add(nums);\n }\n int[][] newMap = new int[numberLines.size()][numberLines.size()];\n \n for(int i = 0; i < numberLines.size();i++)\n {\n for(int h = 0; h < numberLines.get(i).length;h++)\n {\n newMap[i][h] = Integer.parseInt(numberLines.get(i)[h]);\n }\n }\n map.loadMap(newMap);\n \n TreeMap<Integer,ArrayList<Integer>> spawn1 = map.getSpawn1();\n TreeMap<Integer,ArrayList<Integer>> spawn2 = map.getSpawn2();\n \n String line = \"\";\n while(mapReader.hasNextLine() && (line = mapReader.nextLine()).contains(\"spawn1\"))\n {\n Scanner in = new Scanner(line);\n in.next();\n int x = in.nextInt();\n spawn1.put(x, new ArrayList<Integer>());\n while(in.hasNextInt())\n {\n spawn1.get(x).add(in.nextInt());\n }\n }\n \n if(!line.equals(\"\"))\n {\n Scanner in = new Scanner(line);\n in.next();\n int x = in.nextInt();\n spawn2.put(x, new ArrayList<Integer>());\n while(in.hasNextInt())\n {\n spawn2.get(x).add(in.nextInt());\n }\n }\n while(mapReader.hasNextLine() && (line = mapReader.nextLine()).contains(\"spawn2\"))\n {\n Scanner in = new Scanner(line);\n in.next();\n int x = in.nextInt();\n spawn2.put(x, new ArrayList<Integer>());\n while(in.hasNextInt())\n {\n spawn2.get(x).add(in.nextInt());\n }\n }\n }\n catch (Exception ex)\n {\n JOptionPane.showMessageDialog(null, \"Corrupted file!\");\n }\n return map;\n }", "private Map getAsMap(BuildStatus bs) {\n String lines[] = bs.toExternalForm().split(\"\\n\");\n Map m = new HashMap();\n for (int i = 0; i < lines.length; i++) {\n String line = lines[i];\n String parts[] = line.split(\"=\");\n String name = parts[0];\n String value = parts[1];\n m.put(name + \"=\", value);\n }\n return m;\n }", "public static MobilityMap parseMap( String filename ) throws FileNotFoundException\r\n {\r\n File f = new File( filename );\r\n return parseMap( f );\r\n }", "private static void readWordsIntoMap(SimpleReader in,\n Map<String, Integer> wordMap, char[] seps) {\n String line = \"\";\n wordMap.clear();\n\n while (!in.atEOS()) {\n line = in.nextLine();\n for (char sep : seps) {\n line = line.replace(sep, ':');\n }\n\n String[] words = line.split(\":\");\n\n for (String word : words) {\n if (!wordMap.hasKey(word) && word != \" \") {\n wordMap.add(word, 1);\n } else {\n int count = wordMap.value(word);\n count++;\n wordMap.replaceValue(word, count);\n }\n }\n }\n\n }", "public ArrayList<Map> readMaps(ArrayList<TileSet> tileSets) throws IOException\r\n\t{\n\t\tPattern mapAttributesPattern = Pattern.compile(\"\\\\tmap_attributes\\\\s+\");\r\n\t\tArrayList<Map> maps = new ArrayList<>();\r\n\t\t\r\n\t\tFile mapAttributesFile = dir.toPath().resolve(\"data/maps/attributes.asm\").toFile();\r\n\t\tArrayList<String> mapAttributesScript = this.readScript(mapAttributesFile);\r\n\t\tHashMap<String, Map> mapsByName = new HashMap<>();\r\n\t\tHashMap<String, Map> mapsByConstName = new HashMap<>();\r\n\t\t\r\n\t\tfor (String line : mapAttributesScript) if (mapAttributesPattern.matcher(line).find())\r\n\t\t{\r\n\t\t\tString backup = line;\r\n\t\t\tline = this.commentPattern.matcher(line).replaceFirst(\"\");\r\n\t\t\tline = this.trailingWhitespacePattern.matcher(line).replaceFirst(\"\");\r\n\t\t\tline = mapAttributesPattern.matcher(line).replaceFirst(\"\");\r\n\t\t\tString[] args = this.commaSeparatorPattern.split(line);\r\n\t\t\t\r\n\t\t\tMap map = new Map();\r\n\t\t\tif (args.length != 4) throw new IOException(\"map_attributes did not contain 4 arguments: \\\"\" + backup + \"\\\"\");\r\n\t\t\tmap.setName(args[0]);\r\n\t\t\tmap.setConstName(args[1]);\r\n\t\t\t\r\n\t\t\tmaps.add(map);\r\n\t\t\tmapsByName.put(map.getName(), map);\r\n\t\t\tmapsByConstName.put(map.getConstName(), map);\r\n\t\t}\r\n\r\n\t\tPattern connectionPattern = Pattern.compile(\"\\\\tconnection\\\\s+\");\r\n\t\tMap currentMap = null;\r\n\t\tfor (String line : mapAttributesScript)\r\n\t\t{\r\n\t\t\tString backup = line;\r\n\t\t\tline = this.commentPattern.matcher(line).replaceFirst(\"\");\r\n\t\t\tline = this.trailingWhitespacePattern.matcher(line).replaceFirst(\"\");\r\n\t\t\t\r\n\t\t\tif (mapAttributesPattern.matcher(line).find())\r\n\t\t\t{\r\n\t\t\t\tline = mapAttributesPattern.matcher(line).replaceFirst(\"\");\r\n\t\t\t\tString[] args = this.commaSeparatorPattern.split(line);\r\n\t\t\t\tif (args.length != 4) throw new IOException(\"map_attributes did not contain 4 arguments: \\\"\" + backup + \"\\\"\");\r\n\t\t\t\t\r\n\t\t\t\tcurrentMap = mapsByConstName.get(args[1]);\r\n\t\t\t}\r\n\t\t\telse if (currentMap != null && connectionPattern.matcher(line).find())\r\n\t\t\t{\r\n\t\t\t\tline = connectionPattern.matcher(line).replaceFirst(\"\");\r\n\t\t\t\tString[] args = this.commaSeparatorPattern.split(line);\r\n\t\t\t\tif (args.length != 4) throw new IOException(\"connection did not contain 4 arguments: \\\"\" + backup + \"\\\"\");\r\n\t\t\t\t\r\n\t\t\t\tfor (Cardinal cardinal : Cardinal.values()) if (cardinal.name().equals(args[0].toUpperCase()))\r\n\t\t\t\t{\r\n\t\t\t\t\tMap connection = mapsByConstName.get(args[2]);\r\n\t\t\t\t\tif (connection == null) throw new IOException(\"Could not find a map with const name \" + args[2] + \": \\\"\" + backup + \"\\\"\");\r\n\t\t\t\t\tcurrentMap.getConnections().put(cardinal, new MapConnection(connection, Integer.parseInt(args[3])));\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\t//Get map sizes from constants/map_constants.asm\r\n\t\tPattern mapConstPattern = Pattern.compile(\"^\\\\tmap_const\\\\s+\");\r\n\t\tFile mapConstantsFile = dir.toPath().resolve(\"constants/map_constants.asm\").toFile();\r\n\t\tArrayList<String> mapConstantsScript = this.readScript(mapConstantsFile);\r\n\t\tfor (String line : mapConstantsScript) if (mapConstPattern.matcher(line).find())\r\n\t\t{\r\n\t\t\tString backup = line;\r\n\t\t\tline = this.commentPattern.matcher(line).replaceFirst(\"\");\r\n\t\t\tline = this.trailingWhitespacePattern.matcher(line).replaceFirst(\"\");\r\n\t\t\tline = mapConstPattern.matcher(line).replaceFirst(\"\");\r\n\t\t\tString[] args = this.commaSeparatorPattern.split(line);\r\n\t\t\t\r\n\t\t\tMap map = mapsByConstName.get(args[0]);\r\n\t\t\tif (map == null) throw new IOException(\"Could not find a map with name \" + args[0] + \": \\\"\" + backup + \"\\\"\");\r\n\t\t\tmap.setXCapacity(Integer.parseInt(args[1]));\r\n\t\t\tmap.setYCapacity(Integer.parseInt(args[2]));\r\n\t\t}\r\n\t\t\r\n\t\tArrayList<Constant> tileSetConstants = this.importConstants(this.dir.toPath().resolve(\"constants/tileset_constants.asm\").toFile());\r\n\t\t\r\n\t\tPattern mapPattern = Pattern.compile(\"^\\\\tmap\\\\s+\");\r\n\t\tFile mapDataFile = this.dir.toPath().resolve(\"data/maps/maps.asm\").toFile();\r\n\t\tArrayList<String> mapDataScript = this.readScript(mapDataFile);\r\n\t\tfor (String line : mapDataScript) if (mapPattern.matcher(line).find())\r\n\t\t{\r\n\t\t\tline = this.commentPattern.matcher(line).replaceFirst(\"\");\r\n\t\t\tline = this.trailingWhitespacePattern.matcher(line).replaceFirst(\"\");\r\n\t\t\tline = mapPattern.matcher(line).replaceFirst(\"\");\r\n\t\t\tString[] args = this.commaSeparatorPattern.split(line);\r\n\t\t\t\r\n\t\t\tfor (Map map : maps) if (map.getName().equals(args[0]))\r\n\t\t\t{\r\n\t\t\t\tString tileSetConstName = args[1];\r\n\t\t\t\tfor (int i = 0; i < tileSetConstants.size(); i++)\r\n\t\t\t\t{\r\n\t\t\t\t\tConstant tileSetConstant = tileSetConstants.get(i);\r\n\t\t\t\t\tif (tileSetConstant.getName().equals(tileSetConstName))\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tmap.setTileSet(tileSets.get(tileSetConstant.getValue()));\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\tbreak;\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\tPattern blocksLabelPattern = Pattern.compile(\"_Blocks:\");\r\n\t\tFile blocksScriptFile = this.dir.toPath().resolve(\"data/maps/blocks.asm\").toFile();\r\n\t\tArrayList<String> blocksScript = this.readScript(blocksScriptFile);\r\n\t\tArrayList<Map> currentLabels = new ArrayList<>();\r\n\t\tfor (String line : blocksScript)\r\n\t\t{\r\n\t\t\tline = this.commentPattern.matcher(line).replaceFirst(\"\");\r\n\t\t\tline = this.trailingWhitespacePattern.matcher(line).replaceFirst(\"\");\r\n\t\t\t\r\n\t\t\tMatcher blocksLabelMatcher = blocksLabelPattern.matcher(line);\r\n\t\t\tMatcher incbinMatcher = this.incbinPattern.matcher(line);\r\n\t\t\t\r\n\t\t\tif (blocksLabelMatcher.find())\r\n\t\t\t{\r\n\t\t\t\tString mapName = blocksLabelMatcher.replaceFirst(\"\");\r\n\t\t\t\tfor (Map map : maps) if (map.getName().equals(mapName)) currentLabels.add(map);\r\n\t\t\t}\r\n\t\t\telse if (incbinMatcher.find())\r\n\t\t\t{\r\n\t\t\t\tif (currentLabels.size() == 0) continue;\r\n\t\t\t\tString filePath = incbinMatcher.replaceFirst(\"\");\r\n\t\t\t\tfilePath = filePath.replace(\"\\\"\", \"\");\r\n\t\t\t\tFile file = this.dir.toPath().resolve(filePath).toFile();\r\n\t\t\t\tif (!file.exists()) throw new FileNotFoundException(\"Could not find file \" + file.getAbsolutePath());\r\n\t\t\t\tbyte[] blockIndices = Files.readAllBytes(file.toPath());\r\n\t\t\t\tfor (Map map : currentLabels) if (!map.getTileSet().equals(currentLabels.get(0).getTileSet())) throw new IOException(\"Maps using the same blocks use different tile sets\");\r\n\t\t\t\tArrayList<Block> blockSetBlocks = currentLabels.get(0).getTileSet().getBlockSet().getBlocks();\r\n\t\t\t\tMapBlocks mapBlocksObject = new MapBlocks();\r\n\t\t\t\tmapBlocksObject.setXCapacity(currentLabels.get(0).getXCapacity());\r\n\t\t\t\tmapBlocksObject.setYCapacity(currentLabels.get(0).getYCapacity());\r\n\t\t\t\tBlock[] mapBlocks = new Block[blockIndices.length];\r\n\t\t\t\tfor (int i = 0; i < blockIndices.length; i++) mapBlocks[i] = blockSetBlocks.get(blockIndices[i]);\r\n\t\t\t\tmapBlocksObject.setBlocks(mapBlocks);\r\n\t\t\t\tmapBlocksObject.setName(file.getName().replace(\".blk\", \"\"));\r\n\t\t\t\tfor (Map map : currentLabels) map.setBlocks(mapBlocksObject);\r\n\t\t\t\tcurrentLabels.clear();\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\tFile mapsFolderIn = dir.toPath().resolve(\"maps/\").toFile();\r\n\t\tFile[] mapsFiles = mapsFolderIn.listFiles();\r\n\t\tfor (File file : mapsFiles) if (file.getName().endsWith(\".asm\"))\r\n\t\t{\r\n\t\t\tString mapName = file.getName().replaceAll(\".asm\", \"\");\r\n\t\t\tMap map = mapsByName.get(mapName);\r\n\t\t\tif (map == null) throw new IOException(\"Could not find a map with name \" + mapName);\r\n\t\t\tmap.setScript(this.readScript(file));\r\n\t\t}\r\n\t\t\r\n\t\tPattern warpEventPattern = Pattern.compile(\"\\\\twarp_event\\\\s+\");\r\n\t\tfor (Map map : maps) if (map.getScript() != null) for (String line : map.getScript()) if (warpEventPattern.matcher(line).find()) map.getWarps().add(new Warp());\r\n\t\t\r\n\t\tfor (Map map : maps)\r\n\t\t{\r\n\t\t\tint count = 0;\r\n\t\t\tif (map.getScript() != null) for (String line : map.getScript()) if (warpEventPattern.matcher(line).find())\r\n\t\t\t{\r\n\t\t\t\tString backup = line;\r\n\t\t\t\tline = this.commentPattern.matcher(line).replaceFirst(\"\");\r\n\t\t\t\tline = this.trailingWhitespacePattern.matcher(line).replaceFirst(\"\");\r\n\t\t\t\tline = warpEventPattern.matcher(line).replaceFirst(\"\");\r\n\t\t\t\tString[] args = this.commaSeparatorPattern.split(line);\r\n\t\t\t\t\r\n\t\t\t\tWarp warp = map.getWarps().get(count);\r\n\t\t\t\twarp.setX(Integer.parseInt(args[0]));\r\n\t\t\t\twarp.setY(Integer.parseInt(args[1]));\r\n\t\t\t\twarp.setMap(map);\r\n\t\t\t\tint destinationIndex = Integer.parseInt(args[3]) - 1;\r\n\r\n\t\t\t\tMap mapTo = mapsByConstName.get(args[2]);\r\n\t\t\t\tif (mapTo == null) throw new IOException(\"Could not find a map with name \" + args[2] + \": \\\"\" + backup + \"\\\"\");\r\n\t\t\t\tif (destinationIndex >= mapTo.getWarps().size()) throw new IllegalStateException();\r\n\t\t\t\tif (destinationIndex >= 0) warp.setDestination(mapTo.getWarps().get(destinationIndex));\r\n\t\t\t\t\r\n\t\t\t\tcount++;\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\treturn maps;\r\n\t}", "public Map<String, Image> loadImages(ZipInputStream in) throws IOException {\n Map<String, Image> images = new HashMap<>();\n ZipEntry entry = in.getNextEntry();\n while (entry != null) {\n String name = entry.getName();\n Image image = imageFactory.makeImage(name, in);\n if (image != null) {\n images.put(name, image);\n }\n entry = in.getNextEntry();\n }\n return images;\n }", "private static HashMap<String, String> buildHashMap() {\n HashMap<String, String> capitals;\n Scanner fileReader;\n String states;\n \n capitals = new HashMap<>();\n \n // Load the file\n try {\n fileReader = new Scanner(\n new BufferedReader(\n new FileReader(FILEPATH)\n )\n );\n } catch(FileNotFoundException ex) {\n System.out.println(FILEPATH + \" not found\");\n System.exit(-1);\n return null;\n }\n \n // Unmarchal the data\n System.out.println(\"=====\\nHERE ARE THE STATES:\");\n states = \"\";\n while (fileReader.hasNextLine()) {\n String currentLine, state, capital;\n String[] data;\n \n currentLine = fileReader.nextLine();\n data = currentLine.split(\"::\");\n if (data.length != 2) {\n System.out.println(\"Invalid file format\");\n System.exit(-1);\n return null;\n }\n \n state = data[0];\n capital = data[1];\n capitals.put(state, capital);\n states += state + \" \";\n }\n System.out.println(states);\n \n return capitals;\n }", "public void buildMap(){\n this.map = new HashMap<String, String>();\n map.put(\"user\", \"user\");\n map.put(\"pw\", \"pass\");\n map.put(\"quit\", \"quit\");\n map.put(\"features\", \"feat\");\n map.put(\"cd\", \"cwd\");\n map.put(\"dir\", \"list\");\n map.put(\"get\", \"retr\");\n }", "private void createMap(File inFile)\r\n\t\tthrows Exception\r\n\t{\n\t\tBufferedReader in = new BufferedReader(new FileReader(inFile));\r\n\r\n\t\t// Chromosomes\r\n\t\tString[] chrms = in.readLine().split(\",\");\r\n\t\t// Marker positions\r\n\t\tString[] mrkrs = in.readLine().split(\",\");\r\n\t\tin.close();\r\n\r\n\r\n\t\t// Now rewrite it in Flapjack map format\r\n\t\tBufferedWriter out = new BufferedWriter(new FileWriter(new File(wrkDir, \"map\")));\r\n\t\tout.write(\"# fjFile = MAP\");\r\n\t\tout.newLine();\r\n\r\n\t\tfor (int i = 0; i < chrms.length; i++)\r\n\t\t{\r\n\t\t\tMarker m = new Marker(i, chrms[i], mrkrs[i]);\r\n\t\t\tmarkers.add(m);\r\n\r\n\t\t\tout.write(m.name + \"\\t\" + m.chr + \"\\t\" + m.pos);\r\n\t\t\tout.newLine();\r\n\t\t}\r\n\t\tout.close();\r\n\r\n\t\tmarkers.stream().forEach(marker -> {\r\n\r\n\t\t\tSystem.out.println(marker.name);\r\n\r\n\t\t});\r\n\t}", "public int getIni() {\r\n return ini;\r\n }", "private static List<Pair<String, Object>> getSectionMap(ConfigurationSection section) {\n //Creating an empty ArrayList.\n List<Pair<String, Object>> list = new ArrayList<>();\n\n //Going through all the keys and adding them in the same order.\n for (String key : section.getKeys(false)) {\n list.add(new Pair<>(key, section.get(key)));\n }\n\n return list;\n }", "static Map<Integer, Map<String, Object>> readTxt(BufferedReader in) throws IOException {\n\t\t\n\t\t// reads the key names (column names) and stores them\n\t\tString colString = in.readLine();\n\t\tString[] col = colString.split(\"\\t\");\n\n\t\t//instantiates the object being returned so we can add in objects\n\t\tMap<Integer, Map<String, Object>> dict = new HashMap<Integer, Map<String, Object>>();\n\t\t\n\t\t//loops while there is still more data to read\n\t\twhile (in.ready()) {\n\t\t\t\n\t\t\t//pulls the next line and splits it apart by the delimiter\n\t\t\tString valString = in.readLine();\n\t\t\tString[] val = valString.split(\"\\t\");\n\t\t\t\n\t\t\t//instantiates the object to be put in the list\n\t\t\tMap<String, Object> map = new HashMap<String, Object>();\n\t\t\t\n\t\t\t//loops per amount of columns\n\t\t\tfor (int i = 0; i < col.length; i++) {\n\t\t\t\t\n\t\t\t\t//instantiates to be put into the map and checks if it is a numeric data type\n\t\t\t\tObject value = val[i];\n\t\t\t\tif (isDouble((String) value)) {\n\t\t\t\t\tvalue = Double.parseDouble((String) value);\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t//puts the object into the map\n\t\t\t\tmap.put(col[i], value);\n\t\t\t\t\n\t\t\t}\t//end for\n\n\t\t\t//since map.get(\"StudentID\") is a double, we cast it to an int so we can have a Integer Key for the outside map\n\t\t\tint i = ((Double) map.get(\"StudentID\")).intValue();\n\t\t\t\n\t\t\t//puts the map into the outside container\n\t\t\tdict.put(i, map);\n\t\t\t\n\t\t}\t//end while\n\n\t\t//closes the BufferedReader\n\t\tin.close();\n\n\t\t//returns our data structure\n\t\treturn dict;\n\t}", "public HashMap<String, String> convertToString() throws IOException\n\t{\n\t HashMap<String, String> map = new HashMap<String, String>();\n\n\t String line;\n\t BufferedReader reader;\n\t String multiple_line=null;\n\t\ttry {\n\t\t\treader = new BufferedReader(new FileReader(filePath));\n\t\t\t\n\t\t\twhile ((line = reader.readLine()) != null)\n\t\t {\n\t\t String[] parts = (line.replaceAll(\"\\\"\", \"\").split(\"=\", 2)); //tolto replaceAll\n\t\t if (parts.length >= 2)\n\t\t {\n\t\t String key = parts[0];\n\t\t multiple_line=key;\n\t\t String value = parts[1];\n\t\t map.put(key, value);\n\t\t } else {\n\t\t \n\t\t String line2=map.get(multiple_line);\n\t\t map.put(multiple_line, line2+\"\\n\"+line);\n\t\t }\n\t\t }\n\t\t\t\n\t\t\t//for (String key : map.keySet())\n\t\t //{\n\t\t // System.out.println(key + \":\" + map.get(key));\n\t\t // }\n\t\t reader.close();\n\t\t} catch (FileNotFoundException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t \n\t \n\t return map;\n\t}", "Map(String input) {\n row = 0;\n col = 0;\n\n String line;\n Scanner fin = null;\n try\n {\n fin = new Scanner(new File(input));\n }\n catch (FileNotFoundException x)\n {\n System.out.println(\"Error: \" + x);\n System.exit(0);\n }\n // Take first line and get mapLength and mapHeight. Initialize map array\n line = fin.nextLine();\n String[] temp = line.split(\" \");\n maxR = Integer.parseInt(temp[0].toString());\n maxC = Integer.parseInt(temp[1].toString());\n map = new String[maxR][maxC];\n\n for(int j = 0; j < maxR; j++) {\n line = fin.nextLine();\n for(int i = 0; i < maxC; i++){\n map[j][i] = (line.charAt(i)) + \"\";\n }\n }\n }", "public static HashMap<String, String> getNamesMap(File uniprotNamesFile) throws IOException {\n\n HashMap<String, String> namesMap = new HashMap<>();\n\n InputStream fileStream = new FileInputStream(uniprotNamesFile);\n InputStream gzipStream = new GZIPInputStream(fileStream);\n Reader decoder = new InputStreamReader(gzipStream, encoding);\n\n char[] separators = {'[', '('};\n\n try (BufferedReader br = new BufferedReader(decoder)) {\n\n String line = br.readLine();\n while ((line = br.readLine()) != null) {\n\n String[] lineSplit = line.split(\"\\t\");\n\n String accession = lineSplit[0];\n String proteinName = lineSplit[1];\n\n int separatorIndex = indexOf(proteinName, separators, 7);\n\n if (separatorIndex > -1) {\n\n proteinName = proteinName.substring(0, separatorIndex - 1);\n\n }\n\n namesMap.put(accession, proteinName);\n }\n }\n\n return namesMap;\n }", "private void loadCSVFileIntoHashmap(){\n try {\n postCodesFileReader = new FileReader(postCodesFileLocation);\n String line;\n //Open up the buffered reader so we can start looping through our CSV file\n BufferedReader br = new BufferedReader(postCodesFileReader);\n while ((line = br.readLine()) != null) {\n String[] country = line.split(fieldSeperator);\n if(country.length<=3){\n //Add the region code and matching country to the hashmap\n postCodesMap.put(country[0].trim(), country[2].trim());\n }\n }\n br.close();\n } \n catch (Exception e) {\n //Ideally we would use a custom log file, but for the sake of a quick demo use the stderr \n e.printStackTrace();\n } \n }", "@Override\r\n public Map getData(String fileName) {\r\n Map<String, Integer> map = new HashMap<>();\r\n \r\n File file = new File(fileName);\r\n \r\n try (BufferedReader bufferedReader =\r\n new BufferedReader(new FileReader(file))) {\r\n \r\n String line;\r\n while ((line = bufferedReader.readLine()) != null) {\r\n \r\n //if the word have already been in the map,\r\n //increases the number of occurances,\r\n //otherwise sets this number to 1\r\n //and puts a new value to the map\r\n String[] words = line.split(\" \");\r\n for (String word : words) {\r\n Integer value = map.get(word);\r\n if (value == null) {\r\n value = 1;\r\n } else {\r\n value++;\r\n }\r\n map.put(word, value);\r\n }\r\n }\r\n } catch(IOException e) {\r\n System.out.println(e.getMessage());\r\n return null;\r\n }\r\n \r\n return map;\r\n }", "public void readConfigFile() throws IOException {\r\n Wini iniFileParser = new Wini(new File(configFile));\r\n\r\n databaseDialect = iniFileParser.get(DATABASESECTION, \"dialect\", String.class);\r\n databaseDriver = iniFileParser.get(DATABASESECTION, \"driver\", String.class);\r\n databaseUrl = iniFileParser.get(DATABASESECTION, \"url\", String.class);\r\n databaseUser = iniFileParser.get(DATABASESECTION, \"user\", String.class);\r\n databaseUserPassword = iniFileParser.get(DATABASESECTION, \"userPassword\", String.class);\r\n\r\n repositoryName = iniFileParser.get(REPOSITORYSECTION, \"name\", String.class);\r\n\r\n partitions = iniFileParser.get(DEFAULTSECTION, \"partitions\", Integer.class);\r\n logFilename = iniFileParser.get(DEFAULTSECTION, \"logFilename\", String.class);\r\n logLevel = iniFileParser.get(DEFAULTSECTION, \"logLevel\", String.class);\r\n\r\n maxNGramSize = iniFileParser.get(FEATURESSECTION, \"maxNGramSize\", Integer.class);\r\n maxNGramFieldSize = iniFileParser.get(FEATURESSECTION, \"maxNGramFieldSize\", Integer.class);\r\n String featureGroupsString = iniFileParser.get(FEATURESSECTION, \"featureGroups\", String.class);\r\n\r\n if ( databaseDialect == null )\r\n throw new IOException(\"Database dialect not found in config\");\r\n if ( databaseDriver == null )\r\n throw new IOException(\"Database driver not found in config\");\r\n if ( databaseUrl == null )\r\n throw new IOException(\"Database URL not found in config\");\r\n if ( databaseUser == null )\r\n throw new IOException(\"Database user not found in config\");\r\n if ( databaseUserPassword == null )\r\n throw new IOException(\"Database user password not found in config\");\r\n\r\n if (repositoryName == null)\r\n throw new IOException(\"Repository name not found in config\");\r\n\r\n if (partitions == null)\r\n partitions = 250;\r\n if ( logFilename == null )\r\n logFilename = \"FeatureExtractor.log\";\r\n if ( logLevel == null )\r\n logLevel = \"INFO\";\r\n\r\n if ( featureGroupsString != null ) {\r\n featureGroups = Arrays.asList(featureGroupsString.split(\"\\\\s*,\\\\s*\"));\r\n }\r\n if (maxNGramSize == null)\r\n maxNGramSize = 5;\r\n if (maxNGramFieldSize == null)\r\n maxNGramFieldSize = 500;\r\n\r\n }", "public HashMap<String, String[]> convertToArray() throws IOException\n\t{\n\t HashMap<String, String[]> map = new HashMap<String, String[]>();\n\t String[] list;\n\t \n\t String line;\n\t BufferedReader reader;\n\t\t\n\t try {\n\t\t\treader = new BufferedReader(new FileReader(filePath));\n\t\t\t\n\t\t\twhile ((line = reader.readLine()) != null)\n\t\t {\n\t\t\t\tString key = line;\n\t\t\t\tString value = \"\";\n\t\t\t\tString tmp;\n\t\t\t\t\n\t\t\t\twhile(!(tmp=reader.readLine()).equals(\"$\"))\n\t\t\t\t{\t\n\t\t\t\t\tvalue = value+tmp; \n\t\t\t\t}\n\t\t\t\tString values = value.replaceAll(\"\\\"\", \"\");\n\t\t\t\t\n\t\t\t\tString[] parts = values.split(\",\");\n\t\t map.put(key, parts);\n\t\t }\n\t\t\t\n\t\t\t/*for (String key : map.keySet())\n\t\t {\n\t\t System.out.println(key);\n\t\t for(int i=0; i < map.get(key).length; i++)\n\t\t {\n\t\t \tSystem.out.println(map.get(key)[i]);\n\t\t }\n\t\t }*/\n\t\t\t\n\t\t reader.close();\n\t\t} catch (FileNotFoundException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t \n\t \n\t return map;\n\t}", "public UPOSMapper(String mappingFile){\n map = new ConcurrentHashMap<>();\n try {\n for(String line: Files.readAllLines(Paths.get(mappingFile))){\n line = line.trim();\n if(line.isEmpty()) continue;\n String[] tags = line.split(\"\\t\");\n map.put(tags[0], tags[1]);\n }\n } catch (IOException e) {\n e.printStackTrace();\n }\n }", "public String getIniLocation() {\n return iniLocation;\n }", "@Nullable\n private static Map<Integer, String> readNwsoSubCenter(String path) {\n Map<Integer, String> result = new HashMap<>();\n\n try (InputStream is = GribResourceReader.getInputStream(path);\n BufferedReader br = new BufferedReader(new InputStreamReader(is, StandardCharsets.UTF_8))) {\n while (true) {\n String line = br.readLine();\n if (line == null) {\n break;\n }\n if ((line.isEmpty()) || line.startsWith(\"#\")) {\n continue;\n }\n\n StringBuilder lineb = new StringBuilder(line);\n StringUtil2.removeAll(lineb, \"'+,/\");\n String[] flds = lineb.toString().split(\"[:]\");\n\n int val = Integer.parseInt(flds[0].trim()); // must have a number\n String name = flds[1].trim() + \": \" + flds[2].trim();\n\n result.put(val, name);\n }\n return Collections.unmodifiableMap(result); // all at once - thread safe\n\n } catch (IOException ioError) {\n logger.warn(\"An error occurred in Grib1Tables while trying to open the table \" + path + \" : \" + ioError);\n return null;\n }\n }", "public static HashMap readVF(String mapF) throws IOException{\n\t\tBufferedReader input = new BufferedReader(new InputStreamReader(new FileInputStream(mapF)));\n\t\tString line = input.readLine();//pair\n\t\tHashMap map = new HashMap();\n\t\twhile(line!=null){\n\t\t\tString vector = input.readLine();\n\t\t\tmap.put(line.substring(1), vector);\n\t\t\tline = input.readLine();\n\t\t}\n\t\tinput.close();\n\t\treturn map;\n\t}", "public static void addtoHashMap (File filename){\n\t\tFileInputStream fin;\n\t\ttry{\n\t\t\tfin = new FileInputStream(filename);\n\t\t\tBufferedReader br = new BufferedReader(new InputStreamReader(fin));\n\t\t\tString n;\n\t\t\ttry{\n\t\t\t\twhile ((n = br.readLine()) != null){\n\t\t\t\t\tif(h.containsKey(n)){\n\t\t\t\t\t\tint i = (Integer) h.get(n);\n\t\t\t\t\t\th.put(n, (i+1));\n\t\t\t\t\t}else{\n\t\t\t\t\t\th.put(n, 1);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}catch(IOException e){\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t\t\n\t\t}catch(FileNotFoundException e){\n\t\t\te.printStackTrace();\n\t\t}\n\t\t\n\t}", "public Gini() {\r\n\t\thmAttrNames = new HashMap<String, Integer>();\r\n\t\tbuildAttrNamesSet();\r\n\t}", "protected Map<String,List<PageViewVO>> initializePageMap() {\n\t\tMap<String,List<PageViewVO>> pm = new HashMap<>();\n\t\tfor (Section sect : Section.values()) {\n\t\t\tpm.put(sect.name(), new ArrayList<>());\n\t\t}\n\t\treturn pm;\n\t}", "public static void main(String[] args) {\n ReadMappings rs = new ReadMappings();\n try {\n Hashtable result = rs.getMappingsFromFile();\n Enumeration en = result.elements();\n while(en.hasMoreElements()) {\n System.out.println(en.nextElement());\n }\n\n System.out.println(\"Pons:\"+result.get(\"Pons\"));\n System.out.println(\"Hypothalamus:\"+result.get(\"Hypothalamus\"));\n System.out.println(\"Medulla:\"+result.get(\"Medulla\"));\n } catch(Exception e) {\n e.printStackTrace();\n }\n }", "public static Map<String, Integer> getStartingPositions(File file)\n\t\t\tthrows IOException, FileNotFoundException {\n\t\tMap<String, Integer> startPositions = new HashMap<String, Integer>();\n\t\ttry {\n\t\t\tString line;\n\t\t\tBufferedReader in;\n\t\t\tString extension = PdbHelper.getFileExtension(file);\n\t\t\tif (extension.equals(\"gz\")) {\n\t\t\t\tin = new BufferedReader(new InputStreamReader(\n\t\t\t\t\t\tnew GZIPInputStream(new FileInputStream(file))));\n\t\t\t} else {\n\t\t\t\tin = new BufferedReader(new FileReader(file));\n\t\t\t}\n\n\t\t\twhile ((line = in.readLine()) != null) {\n\t\t\t\tif (line.startsWith(\"DBREF \") || line.startsWith(\"DBREF1\")) {\n\t\t\t\t\tString chainLabel = line.substring(13 - 1, 13);\n\t\t\t\t\tint seqBegin = Integer.parseInt(line.substring(15 - 1, 18)\n\t\t\t\t\t\t\t.trim());\n\t\t\t\t\tstartPositions.put(chainLabel, seqBegin);\n\t\t\t\t\tif (line.startsWith(\"SEQADV \")) {\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\tin.close();\n\t\t} catch (IOException e) {\n\t\t\tSystem.out.println(e);\n\t\t}\n\t\treturn startPositions;\n\t}", "Map<File, File> getOutputFileMap();", "private static Map<String, String> getArgMap(String[] args) {\n \t\r\n Map<String,String> argMap = new HashMap<String,String>();\r\n for (int i = 0; i < args.length; i++) {\r\n \tlogger.info(\"arg[\"+i+\"]=\"+args[i]);\r\n String[] argArray = args[i].split(\"=\"); //$NON-NLS-1$\r\n\r\n if (argArray.length == 2) {\r\n argMap.put(argArray[0], argArray[1]);\r\n }\r\n }\r\n return argMap;\r\n }", "@SuppressWarnings({ \"unchecked\", \"rawtypes\" })\n public static Map<String, String>loadPropertiesAsMap(final String filePath)\n throws FileNotFoundException, IOException {\n final Properties properties = loadProperties(filePath);\n return new HashMap<String, String>((Map) properties);\n }", "java.util.Map<java.lang.Integer, java.lang.Integer>\n getInfoMap();", "public static void read(String configFile){\n\t\ttry {\n\t\t\tif(configFile.startsWith(\"$setu\")){\n\t\t\t\t\n\t\t\t\tString path=AppProperties.getProperty(\"setu\");\n\t\t\t\tif((path.substring(path.length()-1)).equals(\"/\")){\n\t\t\t\t\tpath=path.substring(0,path.length()-1);\n\t\t\t\t}\n\t\t\t\tconfigFile=path.concat(configFile.substring(5));\n\t\t\t}\n\n\t\t\tBufferedReader bcfr = new BufferedReader(new InputStreamReader(new FileInputStream(configFile), \"UTF8\"));\n\t\t\tString varPrefix = \"\";\n\t\t\tString varName;\n\t\t\tString value;\n\t\t\tint indexOfEqual;\n\t\t\tString line = null;\n\t\t\tconfig = new HashMap<String,String>();\n\t\t\twhile((line = bcfr.readLine()) != null){\n\t\t\t\tif(line.equals(\"\"))\n\t\t\t\t\tcontinue;\n\t\t\t\tif(line.startsWith(\"[\") && line.trim().endsWith(\"]\")){\n\t\t\t\t\tvarPrefix = line.substring(1, line.indexOf(\"]\"))+\".\";\n\t\t\t\t}\n\t\t\t\telse{\n\t\t\t\t\tindexOfEqual = line.indexOf(\"=\");\n\t\t\t\t\tvarName = line.substring(0, indexOfEqual).trim();\n\t\t\t\t\tvalue = line.substring(indexOfEqual + 1).trim();\n\t\t\t\t\tconfig.put(varPrefix + varName, value);\n\t\t\t\t}\n\t\t\t}\n\t\t} catch (UnsupportedEncodingException e) {\n\t\t\te.printStackTrace();\n\t\t} catch (FileNotFoundException e) {\n\t\t\te.printStackTrace();\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "private static void initializeMap() {\n\t\tmap = new HashMap<String, MimeTransferEncoding>();\n\t\tfor (MimeTransferEncoding mte : MimeTransferEncoding.values()) {\n\t\t\tmap.put(mte.string, mte);\n\t\t}\n\t}", "private void reLoadIndexesFromFileToIndexMap(File file) throws IOException {\n BufferedReader reader = new BufferedReader(new FileReader(file));\n for (String line = reader.readLine(); line != null; line = reader\n .readLine()) {\n String[] termIndex = line.split(\" \");\n String key = termIndex[0];\n LinkedList<TermPositions> value = new LinkedList<>();\n String postingList = termIndex[1];\n // split the posting lists 1:1,2,4;2:4\n String[] subPostings = postingList.split(\";\");\n for (String posting : subPostings) {\n String[] docPosting = posting.split(\":\");\n int docId = Integer.parseInt(docPosting[0]);\n String[] positions = docPosting[1].split(\",\");\n LinkedList<Integer> positionsList = new LinkedList<>();\n for (String position : positions) {\n positionsList.add(Integer.parseInt(position));\n }\n TermPositions termPositions = new TermPositions(docId, positionsList);\n value.add(termPositions);\n }\n indexMap.put(key, value);\n\n }\n\n }", "void readMap()\n {\n try {\n FileReader\t\tmapFile = new FileReader(file);\n StringBuffer\tbuf = new StringBuffer();\n int\t\t\t\tread;\n boolean\t\t\tdone = false;\n \n while (!done)\n {\n read = mapFile.read();\n if (read == -1)\n done = true;\n else\n buf.append((char) read);\n }\n \n mapFile.close();\n \n parseMap(buf.toString());\n \n } catch (Exception e) {\n ErrorHandler.displayError(\"Could not read the map file data.\", ErrorHandler.ERR_OPEN_FAIL);\n }\n }", "private void createHisMap(Customer customer)\n {\n hisMap= new HashMap<>();\n idFile.open(\"history.txt\");\n String line=idFile.getNextLine();\n String name = customer.getUsername();\n specificLine=-1;\n int i=0;\n while (line!=null)\n {\n int j=0;\n String[] fields = line.split(\",\");\n if(fields[0].equals(name))\n {\n specificLine=i;\n }\n\n String[] fields2 = fields[1].split(\"%\");\n\n\n while (j<fields2.length)\n {\n if(hisMap.get(fields[0])==null)\n {\n hisMap.put(fields[0],new ArrayList<>());\n hisMap.get(fields[0]).add(fields2[j]);\n\n }\n else\n {\n hisMap.get(fields[0]).add(fields2[j]);\n }\n j++;\n }\n\n line=idFile.getNextLine();\n i++;\n }\n if(specificLine== -1)\n specificLine=i;\n }", "Map<String, Object> readConfig(Request request, String id);", "@SuppressWarnings(\"resource\")\n\tpublic void loadSetupConfig() throws IOException, BadConfigFormatException { \t// Method to read in rooms from legend and store them in a map\n\t\tFileReader setupInput = new FileReader(setupConfigFile);\t\t\t\t\t\t\t// File reader to parse the setup file\n\t\tScanner input = new Scanner(setupInput);\t\t\t\t\t\t\t\t\t\t\t// Scanner to use the data from the File Reader\n\n\t\twhile(input.hasNextLine()) {\n\t\t\tString currentLine = input.nextLine();\t\t\t\t\t\t\t\t\t\t\t// Grabs the next line from the setup file\n\t\t\tString list[] = currentLine.split(\", \"); \t\t\t\t\t\t\t\t\t\t// Need to get ahold of the final letter and .put it with the preceding string\n\t\t\tif(list.length > 1) {\n\t\t\t\tif(list[0].equalsIgnoreCase(\"Room\") || list[0].equalsIgnoreCase(\"Space\")) { // Catches all of the strings that begin with a Monacre for a room\n\t\t\t\t\tchar tempKey = list[2].charAt(0);\t\t\t\t\t\t\t\t\t\t// creating a temporary roomMap key\n\t\t\t\t\tRoom tempRoom = new Room(list[1]);\t\t\t\t\t\t\t\t\t\t// creating a temporary roomMap room\n\t\t\t\t\troomMap.put(tempKey, tempRoom);\t\t\t\t\t\t\t\t\t\t\t// adding those temporary values to the room map\n\t\t\t\t} else {\n\t\t\t\t\tthrow new BadConfigFormatException(\"incorrectly labeled space in setup file.\"); // Custom exception for BadConfigFormatException\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t//setupInput.close();\n\t}", "public Map<String, ProductInfo> parseProductInfo(InputStream in) {\n\t\tMap<String,ProductInfo> pInfoMap = null;\n\t\tDocumentBuilderFactory dbFac = DocumentBuilderFactory.newInstance();\n\t\tDocumentBuilder documentBuilder;\n\t\ttry {\n\t\t\tdocumentBuilder = dbFac.newDocumentBuilder();\n\t\t\tDocument doc = documentBuilder.parse(in);\n\t\t\tpInfoMap = parseProductInfo(doc);\n\t\t} catch (ParserConfigurationException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t} catch (SAXException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t} catch (IOException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\n\t\treturn pInfoMap;\n\n\t}", "private void readData() {\n try (BufferedReader br = new BufferedReader(new InputStreamReader(getClass().getClassLoader().getResourceAsStream(fileName)))) {\n String line;\n while ((line = br.readLine()) != null) {\n String[] parts = line.split(\",\");\n int zip = Integer.parseInt(parts[0]);\n String name = parts[1];\n\n zipMap.put(zip, name);\n }\n } catch (IOException e) {\n e.printStackTrace();\n }\n }", "private void loadConversationMap() throws IOException {\n\t\tBufferedReader br = new BufferedReader(new FileReader(DATA_DIR + \"/assistant.txt\"));\r\n\t\tString line, currentCategory;\r\n\t\tint iline = 0;\r\n\t\tcurrentCategory = \"\";\r\n\t\twhile ((line = br.readLine()) != null) {\r\n\t\t\tline = line.trim();\t\t\t\r\n\t\t\tif ( !line.isEmpty() ) {\r\n\t\t\t\tif (iline % 2 == 0) {\r\n\t\t\t\t\tcurrentCategory = line;\r\n\t\t\t\t\tconversationMap.put(currentCategory, new ArrayList<String>(10));\r\n\t\t\t\t} else {\r\n\t\t\t\t\tint pos = 0;\r\n\t\t\t\t\tint nextSemicolonPos = line.indexOf(\";\");\r\n\t\t\t\t\tif (nextSemicolonPos == -1)\r\n\t\t\t\t\t\tconversationMap.get(currentCategory).add(line);\r\n\t\t\t\t\twhile ( pos < line.length() ) {\r\n\t\t\t\t\t\tif (nextSemicolonPos != -1) {\r\n\t\t\t\t\t\t\tconversationMap.get(currentCategory).add(line.substring(pos, nextSemicolonPos));\r\n\t\t\t\t\t\t\tpos = nextSemicolonPos + 1;\r\n\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\tconversationMap.get(currentCategory).add(line.substring(pos));\r\n\t\t\t\t\t\t\tpos = line.length();\r\n\t\t\t\t\t\t}\t\t\t\t\t\t\r\n\t\t\t\t\t\tnextSemicolonPos = line.indexOf(\";\", nextSemicolonPos + 1);\r\n\t\t\t\t\t}\t\t\t\t\t\r\n\t\t\t\t}\r\n\t\t\t\t\t\r\n\t\t\t\tiline++; \r\n\t\t\t} \r\n\t\t}\r\n\t\tbr.close();\t\t\t\r\n\t}", "public void loadMap(String filepath) {\n\n\t\ttry {\n\n\t\t\tInputStream in = getClass().getResourceAsStream(filepath);\n\t\t\tBufferedReader br = new BufferedReader(new InputStreamReader(in));\n\n\t\t\tnumCols = Integer.parseInt(br.readLine());\n\t\t\tnumRows = Integer.parseInt(br.readLine());\n\t\t\tmap = new int[numRows][numCols];\n\t\t\twidth = numCols * tileSize;\n\t\t\theight = numRows * tileSize;\n\n\t\t\tString delims = \"\\\\s+\";\n\t\t\tfor (int row = 0; row < numRows; row++) {\n\t\t\t\tString line = br.readLine();\n\t\t\t\tString[] tokens = line.split(delims);\n\t\t\t\tfor (int col = 0; col < numCols; col++) {\n\t\t\t\t\tmap[row][col] = Integer.parseInt(tokens[col]);\n\t\t\t\t}\n\t\t\t}\n\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n\n\t}", "public static void load(Context context) throws IOException {\n // read the file\n String raw = File.readFile(\"vaccine.txt\", context);\n\n // clear the map and load contents of file into the map\n map.clear();\n for (String line : raw.split(\"\\n\")) {\n if (line.equals(\"\")) {\n continue;\n }\n String[] data = line.split(\",\");\n if (data[0].equals(\"\") || data.length != 3) {\n continue;\n }\n map.put(data[0], Boolean.getBoolean(data[1]));\n dateMap.put(data[0], data[2]);\n }\n }", "public interface CacheConfigurationParser {\n\n\tMap<String, CacheConfigurationEntry> parseEntries(String[] entries);\n\n\tCacheConfigurationEntry parseEntry(String entry);\n}", "public static HashMap<String, Integer> readHashMap(Hessian2Input dis, Integer[] allInts) {\n int count;\n HashMap<String, Integer> tileMap = null;\n String[] keys;\n try {\n // TODO - The following read is necessary, but could be removed in a future version\n dis.readInt();//size = dis.readInt();\n count = dis.readInt();\n tileMap = new HashMap<String, Integer>(count);\n keys = new String[count];\n for (int i = 0; i < keys.length; i++) {\n keys[i] = dis.readString();\n }\n for (int i = 0; i < count; i++) {\n tileMap.put(keys[i], allInts[dis.readInt()]);\n }\n\n } catch (IOException e) {\n MessageGenerator.briefErrorAndExit(\"Error in readHashMap()\");\n }\n return tileMap;\n }", "public void readFile(String fileName)\r\n {\n String key = new String();\r\n String value = new String();\r\n\r\n boolean readInfo = false;\r\n String out =\"\";\r\n String infoTag = \"\";\r\n String infoTagContent = \"\";\r\n\r\n try{\r\n System.out.println(\"Readig file \"+fileName+\" ...\");\r\n BufferedReader filereader = new BufferedReader(new FileReader(fileName));\r\n\r\n String line = new String();\r\n line = filereader.readLine();\r\n\r\n while(line != null){\r\n infoTag = \"\";\r\n infoTagContent = \"\";\r\n\r\n if((line.indexOf(\"=\") != -1) && (line.indexOf(\"#\") == -1))\r\n {\r\n key = line.substring(0, line.indexOf(\"=\"));\r\n value = line.substring(line.indexOf(\"=\")+1);\r\n\r\n key = key.trim();\r\n value = value.trim();\r\n\r\n if(key.equals(\"PREFIX\")){\r\n this.tagPrefix = value;\r\n } else {\r\n value = tagPrefix+\".\"+value;\r\n tagHash.put(key, value);\r\n }\r\n\r\n readInfo = false;\r\n infoHash.put(key, out);\r\n out = \"\";\r\n }\r\n\r\n\r\n if((line.indexOf(\"#\") == 0) && (line.indexOf(\"@\") != -1) && (line.indexOf(\"=\") != -1))\r\n {\r\n readInfo = true;\r\n infoTag = line.substring(line.indexOf(\"@\"), line.indexOf(\"=\"));\r\n infoTag.trim();\r\n infoTagContent = line.substring(line.indexOf(\"=\")+1);\r\n if(infoTagContent.trim().length() > 0) infoTagContent = infoTagContent+NL;\r\n out = out+infoTag+\": \"+NL+infoTagContent;\r\n }else if((line.indexOf(\"#\") == 0) && readInfo){\r\n // alreadey reading a tagInfo, means NL between entries\r\n out = out+line.substring(line.indexOf(\"#\")+1)+NL;\r\n }\r\n\r\n line = filereader.readLine();\r\n }\r\n\r\n filereader.close();\r\n\r\n //System.out.println(tagHash);\r\n\r\n }catch (Exception e){\r\n System.out.println(\"Exception in readFile: \"+e);\r\n }\r\n }", "Map<String, Constant> getConstantMap();", "private void populateDictionary() {\n Scanner scanner = null;\n try {\n scanner = new Scanner(new FileInputStream(filePath));\n while(scanner.hasNextLine()) {\n String word = scanner.nextLine();\n rwDictionary.put(reducedWord(word), word);\n lcDictionary.put(word.toLowerCase(), word);\n }\n } catch(IOException e) {\n System.err.println(e.toString());\n e.printStackTrace();\n } finally {\n if(scanner != null) {\n scanner.close();\n }\n }\n }", "public static Map<Long, Book> readToMap() throws ApplicationException {\r\n ArrayList<String> bookList = readFile();\r\n Map<Long, Book> books = new HashMap<>();\r\n\r\n for (int i = 0; i < bookList.size(); i++) {\r\n String[] rows = bookList.get(i).split(COMMA_DELIMITER, -1);\r\n Book book = readBookString(rows);\r\n books.put(book.getId(), book);\r\n LOG.debug(String.format(\"%s has been added to the Map\", book.getAuthor()));\r\n\r\n }\r\n\r\n return books;\r\n\r\n }", "private void parseINI() throws IOException{\n // If the labtainersPath not set in the main.ini file, set it to the System environmenta variable LABTAINER_DIR \n labtainerPath = pathProperties.getProperty(\"labtainerPath\");\n if(labtainerPath == null || labtainerPath.isEmpty()){\n System.out.println(\"No labtainer path set yet\");\n labtainerPath = System.getenv(\"LABTAINER_DIR\");\n FileOutputStream out = new FileOutputStream(iniFile);\n writeValueToINI(out, \"labtainerPath\", System.getenv(\"LABTAINER_DIR\"));\n }\n else{\n labtainerPath.trim();\n }\n\n // If textEditorPref is empty, set it to 'vi' and write to the main.ini file\n textEditorPref = pathProperties.getProperty(\"textEditor\");\n if(textEditorPref == null || textEditorPref.isEmpty()){\n textEditorPref = \"vi\";\n FileOutputStream out = new FileOutputStream(iniFile);\n writeValueToINI(out, \"textEditor\", textEditorPref);\n }\n else{\n textEditorPref.trim();\n }\n\n updateLabtainersPath();\n\n // If a lab has been loaded before then load that lab\n String iniPrevLab = pathProperties.getProperty(\"prevLab\");\n if(iniPrevLab != null && !iniPrevLab.isEmpty()){\n File prevLab = new File(iniPrevLab);\n if(prevLab.isDirectory())\n openLab(prevLab);\n }\n }", "private Map createSpecimenArrayMap(SpecimenArrayForm specimenArrayForm)\r\n\t{\r\n\t\tfinal Map arrayContentMap = new HashMap();\r\n\t\tString value = \"\";\r\n\t\tfinal int rowCount = specimenArrayForm.getOneDimensionCapacity();\r\n\t\tfinal int columnCount = specimenArrayForm.getTwoDimensionCapacity();\r\n\r\n\t\tfor (int i = 0; i < rowCount; i++)\r\n\t\t{\r\n\t\t\tfor (int j = 0; j < columnCount; j++)\r\n\t\t\t{\r\n\t\t\t\tfor (int k = 0; k < AppletConstants.ARRAY_CONTENT_ATTRIBUTE_NAMES.length; k++)\r\n\t\t\t\t{\r\n\t\t\t\t\tvalue = \"\";\r\n\t\t\t\t\tif (k == AppletConstants.ARRAY_CONTENT_ATTR_POS_DIM_ONE_INDEX)\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tvalue = String.valueOf(i + 1);\r\n\t\t\t\t\t}\r\n\t\t\t\t\tif (k == AppletConstants.ARRAY_CONTENT_ATTR_POS_DIM_TWO_INDEX)\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tvalue = String.valueOf(j + 1);\r\n\t\t\t\t\t}\r\n\t\t\t\t\tarrayContentMap.put(SpecimenArrayAppletUtil\r\n\t\t\t\t\t\t\t.getArrayMapKey(i, j, columnCount, k), value);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn arrayContentMap;\r\n\t}", "Map <String, List <String> > parse (List <String> keys, List <String> lines);", "private HashMap<String, SubsetElement> LoadFile(String fileName) {\n final HashMap<String, SubsetElement> tempMap = new HashMap<String, SubsetElement>();\r\n try {\r\n final Scanner input = new Scanner(new File(fileName));\r\n String line = input.nextLine();\r\n final String[] headers = line.split(\"\\t\");\r\n\r\n Integer i = 1;\r\n while (input.hasNext()) {\r\n line = input.nextLine();\r\n final String[] values = line.split(\"\\t\");\r\n // if(values.length!=headers.length){\r\n // System.out.println(\"Missing values in data row \"+ i);\r\n // break;\r\n // }\r\n\r\n final SubsetElement element = new SubsetElement(headers,\r\n values, this.subsetIdName, this.conceptIdName);\r\n tempMap.put(element.getHash(), element);\r\n i++;\r\n }\r\n input.close();\r\n\r\n } catch (final FileNotFoundException e) {\r\n System.err.println(\"Unable to open and parse file \" + fileName);\r\n e.printStackTrace();\r\n }\r\n\r\n return tempMap;\r\n }", "public INIPreferences(Path fileName) throws IOException {\n this.fileName = Objects.requireNonNull(fileName);\n\n map = new HashMap<>();\n\n if(Files.exists(fileName)) {\n load(fileName);\n }\n }", "public static <V extends Parcelable> Map<String, V> readMap(Parcel in,\n Class<? extends V> type) {\n\n Map<String, V> map = new HashMap<String, V>();\n if (in != null) {\n String[] keys = in.createStringArray();\n Bundle bundle = in.readBundle(type.getClassLoader());\n for (String key : keys)\n map.put(key, type.cast(bundle.getParcelable(key)));\n }\n return map;\n }", "public String ReadINI(String Section, String Key, String FilePath) {\n String sValue = \"\";\n int iRetVal = -2;\n String[] FileLines = null;\n String sTemp = \"\";\n boolean bKeyFound = false;\n boolean bSectionFound = false;\n int i = 0;\n int counter = 0;\n try {\n FileLines = ReadAllFileLines(FilePath);\n\n for (i = 0; i < FileLines.length; i++) {\n sTemp = FileLines[i].trim();\n if (sTemp.charAt(0) == '[' && sTemp.charAt(sTemp.length() - 1) == ']') {\n if (sTemp.substring(1, sTemp.length() - 1).equalsIgnoreCase(Section)) {\n bSectionFound = true;\n counter = i + 1;\n while (!bKeyFound) {\n\n }\n\n }\n }\n if (bKeyFound) {\n break;\n }\n }\n\n if (!bKeyFound) {\n throw new Exception(\" : Section :\" + Section + \" : key : \" + Key + \" :Not found\");\n }\n } catch (Exception exp) {\n iRetVal = -2;\n }\n return sValue;\n }", "public Map<String, ConfigItem<String, State>> getMap() {\n\t\treturn cfg;\n\t}", "public static Map<String, Set<String>> parse(\n CommandManager mgr, \n String fileName\n ) throws CLIException\n {\n BufferedReader in = null;\n Map<String, Set<String>> attrValues = \n new HashMap<String, Set<String>>();\n \n try {\n in = new BufferedReader(new FileReader(fileName));\n String line = in.readLine();\n while (line != null) {\n line = line.trim();\n if (line.length() > 0) {\n int idx = line.indexOf('=');\n if ((idx == -1) || (idx == 0) || (idx == (line.length() -1))\n ) {\n throw createIncorrectFormatException(mgr, line);\n }\n \n String key = line.substring(0, idx).trim();\n String value = line.substring(idx+1).trim();\n Set<String> values = attrValues.get(key);\n if (values == null) {\n values = new HashSet<String>();\n attrValues.put(key, values);\n }\n values.add(value);\n }\n line = in.readLine();\n }\n } catch (IOException e) {\n throw new CLIException(e, ExitCodes.IO_EXCEPTION);\n } finally {\n if (in !=null ) {\n try {\n in.close();\n } catch (IOException e) {\n //ignore cannot close input stream\n }\n }\n }\n return attrValues;\n }", "public void populateDictionary() throws IOException {\n\t\tScanner scan = new Scanner(new File(\"dictionary.txt\"));\n\t\twhile(scan.hasNextLine()) {\n\t\t\tString curr = scan.nextLine().toLowerCase();\n\t\t\tthis.dictionary.add(curr);\n\t\t}\n\t}", "public static void readMap(Scanner scanner) {\n // getting the pair of nodes from the input until an empty line is found\n while (true) {\n // read the current line of input\n String line = scanner.nextLine();\n // break the loop when the line is empty\n if (line.equals(\"\")) {\n break;\n }\n readLine(line);\n }\n }", "Map<Class<?>, Object> yangAugmentedInfoMap();", "Map<Class<?>, Object> yangAugmentedInfoMap();", "private static Map<String,NetNode> parseAddresses(String ipAddrsFile) throws IOException {\n\t\tfinal Map<String,NetNode> nodes = new LinkedHashMap<String,NetNode>();\n\t\tfinal BufferedReader reader = new BufferedReader(new FileReader(new File(ipAddrsFile)));\n\t\tfor (String line = reader.readLine(); line != null; line = reader.readLine()) {\n\t\t\tfinal NetNode node = new NetNode(line);\n\t\t\tif (nodes.put(node.port, node) != null)\n\t\t\t\tthrow new IllegalArgumentException(\"Duplicate ip address specification: \" + line);\n\t\t}\n\t\treturn nodes;\n\t}", "private Map<String, String> toMap(final Attributes atts) {\r\n\t\tfinal Map<String, String> values = Maps.newLinkedHashMap();\r\n\t\t\r\n\t\tfor (int index = 0; index < atts.getLength(); index++) {\r\n\t\t\tvalues.put(atts.getLocalName(index), atts.getValue(index));\r\n\t\t}\r\n\t\t\r\n\t\treturn values;\r\n\t}", "private static Map<String, String> readMappingFromXML(List<String> args, String XMLDocument)\n\t\t\tthrows ParserConfigurationException, SAXException, IOException, UnkownOrInvalidDOIException {\n\t\tMap<String, String> mapping = new HashMap<>();\n\n\t\tDocumentBuilderFactory dbFactory = DocumentBuilderFactory.newInstance();\n\t\tDocumentBuilder dBuilder = dbFactory.newDocumentBuilder();\n\t\tDocument doc = dBuilder.parse(new StringBufferInputStream(XMLDocument));\n\n\t\tdoc.getDocumentElement().normalize();\n\n\t\tif (!doc.getDocumentElement().getAttribute(\"status\").equals(\"ok\"))\n\t\t\tthrow new UnkownOrInvalidDOIException(\"One or more of the requested IDs are not valid:\" + args);\n\n\t\tNodeList nList = doc.getElementsByTagName(\"record\");\n\t\tfor (int temp = 0; temp < nList.getLength(); temp++) {\n\n\t\t\tNode nNode = nList.item(temp);\n\n\t\t\tif (nNode.getNodeType() == Node.ELEMENT_NODE) {\n\n\t\t\t\tElement eElement = (Element) nNode;\n\n\t\t\t\tfinal String DOI = eElement.getAttribute(\"requested-id\");\n\t\t\t\tfinal String PMCID = eElement.getAttribute(\"pmcid\");\n\n\t\t\t\tmapping.put(DOI, PMCID);\n\t\t\t}\n\t\t}\n\t\treturn mapping;\n\t}", "private void ini_MapPaks()\r\n\t{\r\n\r\n\t}", "public static void buildDictionary() throws IOException {\n\t\t\n \tSystem.out.println(\"Loading dictionary...\");\n \t\n \tBufferedReader input = new BufferedReader( new FileReader(entities) );\n \tMapDictionary<String> dictionary = new MapDictionary<String>();\t\n \tString aux = null;\n \t\n\t\twhile ((aux=input.readLine())!=null) {\t\t\t\n\t\t\tif (aux.length()==0)\n\t\t\t\tcontinue;\n\n\t\t\taux.replaceAll(\"([A-Z])\",\" $1\").trim();\t\t\t\n\t\t\tdictionary.addEntry(new DictionaryEntry<String>(aux,aux,CHUNK_SCORE));\n\t \n\t\t}\n\t\t\n chunker = new ExactDictionaryChunker(dictionary,IndoEuropeanTokenizerFactory.INSTANCE,true,true);\n System.out.println(\"Dictionary contains \" + dictionary.size() + \" entries.\");\n }", "private static Map<Integer, Integer> readState(String stateFile) throws Exception {\n\n Map<Integer, Integer> ret = new HashMap<>();\n\n File f = new File(stateFile);\n if (f.exists()) {\n //LOG.info(\"File exists\");\n List<String> lines = FileUtils.readLines(f, null);\n for (String line: lines) {\n //LOG.info(\"Line: \" + line);\n String[] toks = line.split(\":\");\n String channelId = toks[0];\n String messageId = toks[1];\n ret.put(Integer.valueOf(channelId), Integer.valueOf(messageId));\n }\n }\n\n //LOG.info(\"Read from file into map size \" + ret.size());\n\n return ret;\n }", "public HashMap<String, NeonValue> getMap();", "public Map<String, List<String>> processIncidenceFile(String fileName) throws AggregateFileInitializationException {\n \t\t\tFile file = new File(fileName);\n \t\t\tHashMap<String, List<String>> data = new HashMap<String,List<String>>();\n \t\t\t\n \t\t\ttry {\n \t\t String record; \n \t\t String header;\n \t\t int recCount = 0;\n \t\t List<String> headerElements = new ArrayList<String>();\n \t\t FileInputStream fis = new FileInputStream(file); \n \t\t BufferedReader d = new BufferedReader(new InputStreamReader(fis));\n \t\t \n \t\t //\n \t\t // Read the file header\n \t\t //\n \t\t if ( (header=d.readLine()) != null ) { \n \t\t \t\n \t\t\t StringTokenizer st = new StringTokenizer(header );\n \t\t\t \n \t\t\t while (st.hasMoreTokens()) {\n \t\t\t \t String val = st.nextToken(\",\");\n \t\t\t \t headerElements.add(val.trim());\n \t\t\t }\n \t\t } // read the header\n \t\t /////////////////////\n \t\t \n \t\t // set up the empty lists\n \t\t int numColumns = headerElements.size();\n \t\t for (int i = 0; i < numColumns; i ++) {\n \t\t \tString key = headerElements.get(i);\n \t\t \tdata.put(key, new ArrayList<String>());\n \t\t }\n \t\t \n \t\t // Here we check the type of the data file\n \t\t // by checking the header elements\n \t\t \n \t\t \n \t\t \n \t\t \n \t //////////////////////\n \t // Read the data\n \t //\n \t while ( (record=d.readLine()) != null ) { \n \t recCount++; \n \t \n \t StringTokenizer st = new StringTokenizer(record );\n \t int tcount = 0;\n \t\t\t\t\twhile (st.hasMoreTokens()) {\n \t\t\t\t\t\tString val = st.nextToken(\",\");\n \t\t\t\t\t\tString key = headerElements.get(tcount);\n \t\t\t\t\t\t(data.get(key)).add(val.trim());\n \t\t\t\t\t\ttcount ++;\n \t\t\t\t\t}\n \t\t\t\t} // while file has data\n \t } catch (IOException e) { \n \t // catch io errors from FileInputStream or readLine()\n \t \t Activator.logError(\" IOException error!\", e);\n \t \t throw new AggregateFileInitializationException(e);\n \t }\n \t return data;\n \t\t }", "@SuppressWarnings({ \"unchecked\", \"rawtypes\" })\n @KonfigVerdi\n @Produces\n public <V> Map<String, V> getKonfigVerdiMap(final InjectionPoint ip) {\n KonfigVerdi annotation = getAnnotation(ip);\n String key = annotation.value();\n Converter converter = getConverter(annotation.converter());\n Map<String, V> verdier = getVerdi(ip, annotation, KonfigVerdiProviderOutput.MAP, key, converter);\n return verdier;\n }", "private void ReadConfig()\n {\n try\n {\n Yaml yaml = new Yaml();\n\n BufferedReader reader = new BufferedReader(new FileReader(confFileName));\n\n yamlConfig = yaml.loadAll(reader);\n\n for (Object confEntry : yamlConfig)\n {\n //System.out.println(\"Configuration object type: \" + confEntry.getClass());\n\n Map<String, Object> confMap = (Map<String, Object>) confEntry;\n //System.out.println(\"conf contents: \" + confMap);\n\n\n for (String keyName : confMap.keySet())\n {\n //System.out.println(keyName + \" = \" + confMap.get(keyName).toString());\n\n switch (keyName)\n {\n case \"lineInclude\":\n\n for ( String key : ((Map<String, String>) confMap.get(keyName)).keySet())\n {\n lineFindReplace.put(key, ((Map<String, String>) confMap.get(keyName)).get(key).toString());\n }\n\n lineIncludePattern = ConvertToPattern(lineFindReplace.keySet().toString());\n\n break;\n case \"lineExclude\":\n lineExcludePattern = ConvertToPattern(confMap.get(keyName).toString());\n break;\n case \"fileExclude\":\n fileExcludePattern = ConvertToPattern(confMap.get(keyName).toString());\n break;\n case \"fileInclude\":\n fileIncludePattern = ConvertToPattern(confMap.get(keyName).toString());\n break;\n case \"dirExclude\":\n dirExcludePattern = ConvertToPattern(confMap.get(keyName).toString());\n break;\n case \"dirInclude\":\n dirIncludePattern = ConvertToPattern(confMap.get(keyName).toString());\n break;\n case \"urlPattern\":\n urlPattern = ConvertToPattern(confMap.get(keyName).toString());\n break;\n }\n }\n }\n\n } catch (Exception e)\n {\n System.err.format(\"Exception occurred trying to read '%s'.\", confFileName);\n e.printStackTrace();\n }\n }", "public Map<String, Object> getInfo();", "void loadFaidx() {\n\t\tString file = phastConsDir + \"/genome.fai\";\n\t\tif (!Gpr.exists(file)) { throw new RuntimeException(\"Cannot find fasta index file '\" + file + \"'\\n\\tYou can create one by running 'samtools faidx' command and copying the resulting index file to \" + file + \"\\n\\n\"); }\n\n\t\t// Read and parse file\n\t\tchromoSize = new HashMap<>();\n\t\tString txt = Gpr.readFile(file);\n\t\tfor (String line : txt.split(\"\\n\")) {\n\t\t\tString fields[] = line.split(\"\\\\s+\");\n\t\t\tString chrName = Chromosome.simpleName(fields[0]);\n\t\t\tint len = Gpr.parseIntSafe(fields[1]);\n\n\t\t\tchromoSize.put(chrName, len);\n\t\t}\n\t}", "private HashMap<ASTNode, NodeInfo> parseFile(String file) {\n ASTParser parser = ASTParser.newParser(AST.JLS3);\n parser.setSource(file.toCharArray());\n parser.setKind(ASTParser.K_COMPILATION_UNIT);\n final CompilationUnit cu = (CompilationUnit) parser.createAST(null);\n ASTStatsCollector astStatsCollector = new ASTStatsCollector(cu);\n cu.accept(astStatsCollector);\n\n\n return astStatsCollector.nodeSubNodeMap;\n }" ]
[ "0.61706233", "0.61288655", "0.6037109", "0.58764195", "0.5875147", "0.5829386", "0.58175343", "0.5764613", "0.5751704", "0.5672278", "0.5631507", "0.5551332", "0.55451727", "0.55066764", "0.5498245", "0.54856247", "0.54628223", "0.5458867", "0.53736156", "0.53661674", "0.53546524", "0.5342695", "0.5329102", "0.53205264", "0.5309533", "0.5306655", "0.53022844", "0.52844876", "0.52739525", "0.52602243", "0.52560896", "0.52526987", "0.525004", "0.5242829", "0.52073383", "0.5201503", "0.5200263", "0.5180786", "0.515663", "0.5150567", "0.5150149", "0.51342005", "0.5130954", "0.5122817", "0.50916207", "0.50883985", "0.50845736", "0.5079305", "0.5072306", "0.50628215", "0.50458354", "0.50452065", "0.50002617", "0.4963695", "0.49596", "0.49595517", "0.4956816", "0.49508175", "0.49373123", "0.49329796", "0.4930606", "0.49278578", "0.49228412", "0.49177146", "0.49167833", "0.49137083", "0.4910264", "0.49099874", "0.49082434", "0.49075514", "0.48979357", "0.48899963", "0.4889654", "0.4884716", "0.48843965", "0.48677668", "0.48667902", "0.48662698", "0.4861527", "0.48610547", "0.48598236", "0.48541754", "0.48516148", "0.48515815", "0.484828", "0.48460174", "0.48460174", "0.48451748", "0.48449516", "0.48445097", "0.48440024", "0.48348066", "0.482879", "0.48184186", "0.48096496", "0.48091912", "0.4805959", "0.4800282", "0.479613", "0.47937858" ]
0.6841836
0
overrid mathod define in class Thread
public void run(){ for(;;) System.out.println("Hello" + name); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "NetThread(){}", "private ThreadUtil() {\n \n }", "@Override\n public void threadStarted() {\n }", "@WorkerThread\n public abstract void zzaso();", "public void createThread() {\n }", "public Thread getThread();", "public void setThread(Thread t);", "public abstract int getThreadNumber();", "@Override\n // Thread creation\n // Run method from the Runnable class.\n public void run() {\n p.println(\"Current thread = \" + Thread.currentThread().getName());\n // Shows when a task is being executed concurrently with another thread,\n // then puts the thread to bed (I like saying that)\n try {\n p.println(\"Doing a task during : \" + name);\n Thread.currentThread().sleep(time);\n }\n // Exception for when a thread is interrupted.\n catch (InterruptedException e) {\n e.printStackTrace();\n }\n }", "public ThreadState(KThread thread) \n {\n this.thread = thread;\n setPriority(priorityDefault);\n }", "@Override\n\tpublic void run() {\n\t\tSystem.out.println(\"Thread 클래스를 상속\");\n\t}", "public void run() {/* THE CODE HERE IS A THE @OVERRIDE FOR START() METHOD */\n\t}", "private ThreadUtil() {\n }", "@Override\n\tpublic Thread newThread(Runnable r) {\n\t\t\n\t\tThread th = new Thread(r,\" custum Thread\");\n\t\treturn th;\n\t}", "public final /* bridge */ /* synthetic */ String mo50910a(Object obj) {\n return m62902a((Thread) obj);\n }", "public MainThread()\n {\n super();\n setPriority(1);\n setId(0x55); \n }", "@Override\r\n\t\tprotected void run() {\n\t\t\t\r\n\t\t}", "public void run(){\n System.out.println(\"Thread class extends \" + getName());\n }", "private static String m62902a(Thread thread) {\n StringBuffer stringBuffer = new StringBuffer();\n stringBuffer.append(\"Thread: \");\n stringBuffer.append(thread.getName());\n return stringBuffer.toString();\n }", "@Override\r\n\tpublic int call(Runnable thread_base, String strMsg) {\n\t\treturn 0;\r\n\t}", "public void run() {\n\t\t\t\t\t\t}", "void startThread();", "public void run() {\r\n }", "public FuncCallExecutor(ThreadRuntime rt) {\r\n\t\tthis.rt = rt;\r\n\t}", "@Override\r\n\t\t\tpublic void run() {\n\t\t\t\t\r\n\t\t\t}", "@Override\r\n\t\t\tpublic void run() {\n\t\t\t\t\r\n\t\t\t}", "@Override\n\tpublic int resp(Runnable thread_base, String strMsg) {\n\t\treturn 0;\n\t}", "ThreadStart createThreadStart();", "public abstract void mo30313a(C41366e c41366e, Runnable runnable);", "public void run() {\n }", "public void run() {\n }", "@Override\n\t\tpublic void run() {\n\t\t\t\n\t\t}", "@Override\n\t\tpublic void run() {\n\t\t\t\n\t\t}", "private ShutdownThread() {}", "@Override\n\t\t\tpublic Thread newThread(final Runnable r) {\n\t\t\t\tint id = threadNumber.getAndIncrement();\n\t\t\t\tString threadName = leftPad(String.valueOf(id), 2, \"0\");\n\t\t\t\tThread th = new Thread(r);\n\t\t\t\tth.setName(threadName);\n\t\t\t\tth.setDaemon(false);\n\t\t\t\treturn th;\n\t\t\t}", "@Override\n public void run(){\n }", "long getThreadId();", "@Override\n\t\t\tpublic void run() {\n\t\t\t\t\n\t\t\t}", "@Override\n\t\t\tpublic void run() {\n\t\t\t\t\n\t\t\t}", "public void run() {\n\t\t\t\t\n\t\t\t}", "public void run() {\n\t\t\n\t}", "private static void ThreadCreationOldWay() {\r\n\t\tThread t1 = new Thread(new Runnable() {\r\n\t\t\tpublic void run() {\r\n\t\t\t\tSystem.out.println(\"This is a runnable method done in old fashion < 1.8\");\r\n\t\t\t}\r\n\t\t});\r\n\t\tt1.start();\r\n\t}", "public static void main(String[] args) {\n\t\n System.out.println(ANSI_Black+\"Hello from Main thread\");\n\tThread extendThread = new ThreadExtendsExample();\n\textendThread.setName(\"ThreadByExtends1~\");\n\textendThread.start();\n\t\n\t//java.lang.IllegalThreadStateException, same thread cannot be started again\n\t//extendThread.start();\n\tThread extendThread2 = new ThreadExtendsExample();\n\textendThread2.setName(\"ThreadByExtends2~\");\n\textendThread2.start();\n\t\n\t\n\t\n\tThreadImplExample implThread = new ThreadImplExample();\n\timplThread.run();\n\t\n\t\n\tThread runnableThread = new Thread(new ThreadImplExample());\n\trunnableThread.start();\n\t\n\t\n\t\n\tSystem.out.println(ANSI_Black+\"Hello Again from Main thread\");\n\t\n}", "public interface ThreadExecutor extends Executor {\n}", "public ThreadState(KThread thread) {\n this.thread = thread;\n this.time = 0;\n this.placement = 0;\n this.priority = priorityDefault;\n setPriority(priorityDefault);\n effectivePriority = priorityMinimum;\n }", "private void startNormalThread() {\n customThread = new CustomThread();\n customThread.start();\n }", "@Override\n public void run() {\n }", "@Override\n public void run() {\n }", "@Override\n public void run() {\n }", "public ThreadAvnet(Element element) {\n this.element = element;\n // run();\n }", "@Override\n public void co() {\n Object object;\n int n;\n object = this.mw;\n // MONITORENTER : object\n this.tV = gi.submit(this.tU);\n // MONITOREXIT : object\n try {\n object = this.tV.get(60000, TimeUnit.MILLISECONDS);\n n = -2;\n }\n catch (TimeoutException var2_2) {\n gs.W(\"Timed out waiting for native ad.\");\n n = 2;\n object = null;\n }\n catch (ExecutionException var2_3) {\n n = 0;\n object = null;\n }\n catch (InterruptedException var2_4) {\n object = null;\n n = -1;\n }\n catch (CancellationException var2_5) {\n object = null;\n n = -1;\n }\n if (object == null) {\n object = this.r(n);\n }\n gr.wC.post(new Runnable((fz)object){\n final /* synthetic */ fz ts;\n\n @Override\n public void run() {\n fn.this.tm.a(this.ts);\n }\n });\n }", "public void run() {\n }", "worker(long workOn) {\n this.workOn = workOn;\n }", "public Thread getThread(int type, String name, Runnable r);", "public MyRunnable(){\t\n\t}", "public void run()\r\n\t{\r\n\t\t\r\n\t}", "@Override\r\n\tpublic void runn() {\n\t\t\r\n\t}", "@Override\n public void run() {\n }", "@Override\n public void run() {\n }", "public static void main(String args[]) throws Exception\n {\n ImplementsRunnable rc = new ImplementsRunnable();\n Thread t1 = new Thread(rc);\n t1.start();\n Thread.sleep(1000); // Waiting for 1 second before starting next thread\n Thread t2 = new Thread(rc);\n t2.start();\n Thread.sleep(1000); // Waiting for 1 second before starting next thread\n Thread t3 = new Thread(rc);\n t3.start();\n \n // Modification done here. Only one object is shered by multiple threads\n // here also.\n ExtendsThread extendsThread = new ExtendsThread();\n Thread thread11 = new Thread(extendsThread);\n thread11.start();\n Thread.sleep(1000);\n Thread thread12 = new Thread(extendsThread);\n thread12.start();\n Thread.sleep(1000);\n Thread thread13 = new Thread(extendsThread);\n thread13.start();\n Thread.sleep(1000);\n }", "public void run()\n {\n }", "public void run()\n {\n }", "public void run(){\n //logic to execute in a thread \n }", "public void run()\n {\n\n }", "@Override\n public void run() {\n }", "@Override\n public void run() {\n }", "@Override\n public void run() {\n }", "@Override\n public void run() {\n }", "@Override\n public void run() {\n }", "@Override\n public void run() {\n }", "@Override\n public void run() {\n }", "public void run() {\n\n\t}", "public void run() {\n\n\t}", "@Override\n public void run() {\n }", "@Override\n public void run() {\n }", "public ThreadDecl(java.lang.String name, java.util.LinkedList<VarDecl> fields, java.util.LinkedList<MethodDecl> methods){\r\n\t\tsuper(name,null, fields, methods);\r\n\t}", "public void run() {\n\n\n }", "public abstract void zza(zzk zzk, Thread thread);", "public void run()\n\t{\n\t}", "@Override\r\n\t\t\t\tpublic void run() {\n\r\n\t\t\t\t}", "@Override\r\n\t\t\t\tpublic void run() {\n\r\n\t\t\t\t}", "public void run() {\n System.out.println(\"Thread \" + this.id + \" iniciou!\");\n for (int i=(this.id); i<Lab6.N; i+=Lab6.NThreads) {\n //verificando se o numero é par\n if((Lab6.vetor[i])%2==0) this.s.inc(); \n }\n System.out.println(\"Thread \" + this.id + \" terminou!\"); \n }", "private Thread getThreadFor(Agent ag) {\n return getDataFor(ag).thread;\n }", "public void run() {\n }", "public void run() {\n\n }", "@Override\n\tpublic void run() {\n\t\t\n\t\t\t\t\t\t\n\t}", "ThreadCounterRunner() {}", "public void run() {\n }", "public void run() {\n }", "public void run() {\n }", "public void run() {\n }", "SchreibThread(Puffer puf) {\n this.puf = puf;\n }", "public LoadThread getThread() {\r\n return thread;\r\n }", "public ThreadTimeoutHandler(Thread thread) {\n\t this.thread = thread;\n\t}", "@Override\n public void run() {\n }", "private void YeWuMethod(String name) {\n\n for (int j = 0; j < 10; j++) {\n\n\n// Runnable task = new RunnableTask();\n// Runnable ttlRunnable = TtlRunnable.get(task);\n\n// executor.execute(ttlRunnable);\n\n executor.execute(() -> {\n System.out.println(\"==========\"+name+\"===\"+threadLocal.get());\n });\n }\n\n// for (int i = 0; i < 10; i++) {\n// new Thread(() -> {\n// System.out.println(name+\"===\"+threadLocal.get());\n// }, \"input thread name\").start();\n// }\n\n\n\n\n }", "@Override\n\t\t\tpublic void run() {\n\n\t\t\t}", "public void run() {\n\t}", "public void run() {\n\t}", "@Override\n\tpublic void run() {\n\t\t\n\t}", "@Override\n\tpublic void run() {\n\t\t\n\t}" ]
[ "0.6690146", "0.65984905", "0.652539", "0.65091753", "0.6437531", "0.6418294", "0.6413191", "0.63193345", "0.62536806", "0.62316936", "0.62004226", "0.6184327", "0.61354685", "0.6133561", "0.6118065", "0.6087504", "0.6055459", "0.6043336", "0.6040799", "0.60246295", "0.6021881", "0.6020036", "0.60181487", "0.60160387", "0.59925854", "0.59925854", "0.5976485", "0.5974227", "0.596783", "0.5964673", "0.5964673", "0.59583014", "0.59583014", "0.59563196", "0.59522676", "0.5950949", "0.59499687", "0.5949519", "0.5949519", "0.59447837", "0.5938137", "0.5930757", "0.5929379", "0.5916604", "0.59148544", "0.59115595", "0.5908108", "0.5908108", "0.5908108", "0.5908005", "0.5906131", "0.5903929", "0.58857286", "0.58835495", "0.5877603", "0.5875002", "0.58749676", "0.58709705", "0.58709705", "0.5870696", "0.5866184", "0.5866184", "0.586175", "0.5861482", "0.58586335", "0.58586335", "0.58586335", "0.58586335", "0.58586335", "0.58586335", "0.58586335", "0.58510226", "0.58510226", "0.58501977", "0.58501977", "0.584898", "0.584622", "0.58438224", "0.5837613", "0.5833616", "0.5833616", "0.58328223", "0.58306557", "0.5829934", "0.5828543", "0.58247447", "0.58237886", "0.582232", "0.582232", "0.582232", "0.582232", "0.5820396", "0.58126694", "0.58125436", "0.5808285", "0.580408", "0.5803153", "0.5799557", "0.5799557", "0.5791949", "0.5791949" ]
0.0
-1
The class holding records for this type
@Override public Class<CarmodelRecord> getRecordType() { return CarmodelRecord.class; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public RecordRecord() {\n\t\tsuper(org.jooq.examples.cubrid.demodb.tables.Record.RECORD);\n\t}", "public Class<?> getRecordClass() \n\t{\n\t return recordClass ;\n\t}", "public DataRecord() {\n super(DataTable.DATA);\n }", "@Override\n public Class<Record> getRecordType() {\n return Record.class;\n }", "@Override\n public Class<Record> getRecordType() {\n return Record.class;\n }", "@Override\n public Class<Record> getRecordType() {\n return Record.class;\n }", "@Override\n public Class<Record> getRecordType() {\n return Record.class;\n }", "public Record() {\n data = new int[DatabaseManager.fieldNames.length];\n }", "@Override\n public Class<PgClassRecord> getRecordType() {\n return PgClassRecord.class;\n }", "@Override\n public Class<ModelRecord> getRecordType() {\n return ModelRecord.class;\n }", "@Override\n\tpublic java.lang.Class<org.jooq.Record> getRecordType() {\n\t\treturn __RECORD_TYPE;\n\t}", "@Override\n\tpublic java.lang.Class<org.jooq.Record> getRecordType() {\n\t\treturn __RECORD_TYPE;\n\t}", "@Override\n\tpublic java.lang.Class<org.jooq.Record> getRecordType() {\n\t\treturn __RECORD_TYPE;\n\t}", "public ARecord() {\n super(A.A);\n }", "@Override\n\tpublic java.lang.Class<org.jooq.Record> getRecordType() {\n\t\treturn org.jooq.Record.class;\n\t}", "@Override\n\tpublic java.lang.Class<org.jooq.Record> getRecordType() {\n\t\treturn org.jooq.Record.class;\n\t}", "@Override\n\tpublic java.lang.Class<org.jooq.Record> getRecordType() {\n\t\treturn org.jooq.Record.class;\n\t}", "public ObjectRecord() {\n\t\tsuper(org.jooq.test.hsqldb.generatedclasses.tables.Object.OBJECT);\n\t}", "public WERecordDataModel()\n\t{\n\t\tsuper();\n\t\tsetEqFileName(RECORD_NAME);\n\t\tinitMessages();\n\t}", "public Record toRecord() {\n return new Record().setColumns(this);\n }", "DataHRecordData() {}", "@Override\n public Class<ResourcesRecord> getRecordType() {\n return ResourcesRecord.class;\n }", "public GO_RecordType() {\n }", "@Override\n public Class<QsRecord> getRecordType() {\n return QsRecord.class;\n }", "public ItemRecord() {\n super(Item.ITEM);\n }", "public Record getRecord() {\n return record;\n }", "public Record getRecord() {\n return record;\n }", "@Override\n\tpublic Class<Record> getRecordType() {\n\t\treturn Record.class;\n\t}", "@Override\n\tpublic Class<Record> getRecordType() {\n\t\treturn Record.class;\n\t}", "@Override\n public Class<LinearmodelRecord> getRecordType() {\n return LinearmodelRecord.class;\n }", "@JsonProperty(\"Records\") abstract List<?> getRecords();", "public Item_Record() {\n super(Item_.ITEM_);\n }", "@Override\n public Class<MytableRecord> getRecordType() {\n return MytableRecord.class;\n }", "@Override\n protected Class<RecordType> getBoundType() {\n return RecordType.class;\n }", "@Override\n public Class<PatientRecord> getRecordType() {\n return PatientRecord.class;\n }", "public interface CollectionRecord {\n\n\t/**\n\t * Gets the id attribute of the CollectionRecord object\n\t *\n\t * @return The id value\n\t */\n\tpublic String getId();\n\n\n\t/**\n\t * Gets the setSpec attribute of the CollectionRecord object\n\t *\n\t * @return The setSpec value\n\t */\n\tpublic String getSetSpec();\n\n\n\t/**\n\t * Gets the metadataHandle attribute of the CollectionRecord object\n\t *\n\t * @param collectionSetSpec setSpec (e.g., \"dcc\")\n\t * @return The metadataHandle value\n\t * @exception Exception if there is a webservice error\n\t */\n\tpublic String getMetadataHandle(String collectionSetSpec) throws Exception;\n\n\n\t/**\n\t * Gets the handleServiceBaseUrl attribute of the CollectionRecord object\n\t *\n\t * @return The handleServiceBaseUrl value\n\t */\n\tpublic String getHandleServiceBaseUrl();\n\n\t/* \tpublic String getNativeFormat();\n\tpublic DcsDataRecord getDcsDataRecord();\n\tpublic MetaDataFramework getMetaDataFramework();\n\tpublic Document getLocalizedDocument(); */\n}", "@Override\n\tpublic Class<QuotesRecord> getRecordType() {\n\t\treturn QuotesRecord.class;\n\t}", "@Override\n public Class<AnalysisRecord> getRecordType() {\n return AnalysisRecord.class;\n }", "public Record() {\n this.symptoms = new LinkedHashSet<>();\n this.diagnoses = new LinkedHashSet<>();\n this.prescriptions = new LinkedHashSet<>();\n }", "public OpenERPRecordSet() {\r\n\t\trecords = new Vector<OpenERPRecord>();\r\n\t}", "@Override\n public Class<QuestionForBuddysRecord> getRecordType() {\n return QuestionForBuddysRecord.class;\n }", "public QuestionsRecord() {\n\t\tsuper(sooth.entities.tables.Questions.QUESTIONS);\n\t}", "public Data() {\n this.customers = new HashMap<>();\n this.orders = new HashMap<>();\n this.siteVisits = new HashMap<>();\n this.imageUploads = new HashMap<>();\n }", "public GenericData.Record serialize() {\n return null;\n }", "public GenericTcalRecord() {\n this(-1);\n }", "public StudentRecord() {\n\t\tscores = new ArrayList<>();\n\t\taverages = new double[5];\n\t}", "@Override\n public Class<MemberRecord> getRecordType() {\n return MemberRecord.class;\n }", "public BookRecord() {\n super(Book.BOOK);\n }", "@Override\n public Class<SearchLogsRecord> getRecordType() {\n return SearchLogsRecord.class;\n }", "@Override\n public Class<EasytaxTaxationsRecord> getRecordType() {\n return EasytaxTaxationsRecord.class;\n }", "public SalesRecords() {\n super();\n }", "public SongRecord(){\n\t}", "@Override\n public Class<LangsRecord> getRecordType() {\n return LangsRecord.class;\n }", "public PersonRecord(){\n\t\tlistNames = new ArrayList<String>();\n\t}", "@Override\n public Class<RoomRecord> getRecordType() {\n return RoomRecord.class;\n }", "@Override\n public Class<CalcIndicatorAccRecordInstanceRecord> getRecordType() {\n return CalcIndicatorAccRecordInstanceRecord.class;\n }", "public ArrayList<Record> getRecords() {\r\n\t\treturn records;\r\n\t}", "@Override\n public Class<CourseRecord> getRecordType() {\n return CourseRecord.class;\n }", "@Override\n public Class<CabTripDataRecord> getRecordType() {\n return CabTripDataRecord.class;\n }", "@Override\n public Class<TripsRecord> getRecordType() {\n return TripsRecord.class;\n }", "public Item_Record(Integer _Id_, String name_, String description_, String code_, Double price_, Double retailPrice_, Double costPrice_, Object _Search_, String[] _Types_, String _LastModified_, Integer _Version_) {\n super(Item_.ITEM_);\n\n set(0, _Id_);\n set(1, name_);\n set(2, description_);\n set(3, code_);\n set(4, price_);\n set(5, retailPrice_);\n set(6, costPrice_);\n set(7, _Search_);\n set(8, _Types_);\n set(9, _LastModified_);\n set(10, _Version_);\n }", "@Override\r\n\tpublic List<T> getRecords() {\n\t\treturn null;\r\n\t}", "@Override\n public Class<StudentCourseRecord> getRecordType() {\n return StudentCourseRecord.class;\n }", "@Override\n public Class<ZTest1Record> getRecordType() {\n return ZTest1Record.class;\n }", "public OfcRecordRecord() {\n\t\tsuper(org.openforis.collect.persistence.jooq.tables.OfcRecord.OFC_RECORD);\n\t}", "public Class<gDBR> getRecordClass() \n {\n return this.rcdClass;\n }", "public RecordingRepository() {\r\n recordings = new ArrayList<>();\r\n recordingMap = new HashMap<>();\r\n recordingsByMeetingIDMap = new HashMap<>();\r\n update();\r\n }", "@Override\n public Class<GchCarLifeBbsRecord> getRecordType() {\n return GchCarLifeBbsRecord.class;\n }", "@Override\n\tpublic java.lang.Class<nesi.jobs.tables.records.HourlyRecordRecord> getRecordType() {\n\t\treturn nesi.jobs.tables.records.HourlyRecordRecord.class;\n\t}", "@Override\n public Class<AccountRecord> getRecordType() {\n return AccountRecord.class;\n }", "public ExperimentRecord() {\n super(Experiment.EXPERIMENT);\n }", "public MealRecord() {\n\t\tsuper(Meal.MEAL);\n\t}", "@Override\n public Class<StaffRecord> getRecordType() {\n return StaffRecord.class;\n }", "public LateComingRecord() {\n\t\t}", "@Override\n public Class<AssessmentStudenttrainingworkflowRecord> getRecordType() {\n return AssessmentStudenttrainingworkflowRecord.class;\n }", "public UsersRecord() {\n super(Users.USERS);\n }", "@Override\n public Class<MyMenuRecord> getRecordType() {\n return MyMenuRecord.class;\n }", "public DataPersistence() {\n storage = new HashMap<>();\n idCounter = 0;\n }", "public AnswerRecord() {\n super(Answer.ANSWER);\n }", "public DatasetReader()\n\t{\n\t\treviews = new ArrayList<Review>();\n\t\tratings = new HashMap<Double,List<Double>>();\n\t\tproducts = new HashMap<String, Map<String,Double>>();\n\t\tproductRatings = new HashMap<String, List<Double>>();\n\t\treInstanceList = new ArrayList<ReviewInstance>();\n\t\treInstanceMap = new HashMap<String, ReviewInstance>();\n\t}", "@Override\n public Class<JournalEntryLineRecord> getRecordType() {\n return JournalEntryLineRecord.class;\n }", "@Override\n public Class<CommentsRecord> getRecordType() {\n return CommentsRecord.class;\n }", "@Override\n public Class<SpeedAlertsHistoryRecord> getRecordType() {\n return SpeedAlertsHistoryRecord.class;\n }", "@Override\n public Class<RatingsRecord> getRecordType() {\n return RatingsRecord.class;\n }", "@Override\n public Class<TOpLogsRecord> getRecordType() {\n return TOpLogsRecord.class;\n }", "@Override\n\tpublic java.lang.Class<net.user1.union.zz.common.model.tables.records.ZzcronRecord> getRecordType() {\n\t\treturn __RECORD_TYPE;\n\t}", "@SuppressWarnings(\"unchecked\")\n\tpublic RelationClass() {\n\t\t\n\t\tParser pars = new Parser(FILE_NAME); \t\t\t\t\t\t\t\n\t\tint bucketlength = 0;\n\t\tbucketlength = (int) (pars.getNumOfLines()*BUCKET_MULTIPLIER);\n\t\tbuckets = (Node<k,v>[]) new Node<?,?>[bucketlength];\n\t\tpars.process(this);\t\t\t\t\t\t\t\t\t\t\t\t\n\t}", "@Override\n\tpublic java.lang.Class<persistencia.tables.records.AsientoRecord> getRecordType() {\n\t\treturn persistencia.tables.records.AsientoRecord.class;\n\t}", "@Override\n public Class<StatsRecord> getRecordType() {\n return StatsRecord.class;\n }", "@Override\n\tpublic Class<QuestionRecord> getRecordType() {\n\t\treturn QuestionRecord.class;\n\t}", "public MetricSchemaRecord() { }", "public PedidoRecord() {\n super(Pedido.PEDIDO);\n }", "@Override\n public Class<DynamicSchemaRecord> getRecordType() {\n return DynamicSchemaRecord.class;\n }", "public PersonRecord() {}", "@Override\n\tpublic Class<RentalRecord> getRecordType() {\n\t\treturn RentalRecord.class;\n\t}", "public PagesRecord() {\n super(Pages.PAGES);\n }", "@Override\n public Class<AbsenceRecord> getRecordType() {\n return AbsenceRecord.class;\n }", "@Override\n public Class<RedpacketConsumingRecordsRecord> getRecordType() {\n return RedpacketConsumingRecordsRecord.class;\n }", "@Override\n\tpublic java.lang.Class<jooq.model.tables.records.TBasicSalaryRecord> getRecordType() {\n\t\treturn jooq.model.tables.records.TBasicSalaryRecord.class;\n\t}", "public YearlyRecord() {\n this.wordToCount = new HashMap<String, Integer>();\n this.wordToRank = new HashMap<String, Integer>();\n this.countToWord = new HashMap<Integer, Set<String>>();\n }" ]
[ "0.68004626", "0.66954035", "0.64103794", "0.6398801", "0.6398801", "0.6398801", "0.6398801", "0.6393993", "0.6354873", "0.6192012", "0.61258304", "0.61258304", "0.61258304", "0.6104736", "0.60470754", "0.60470754", "0.60470754", "0.6040716", "0.6029211", "0.6020949", "0.6008978", "0.60082155", "0.6006576", "0.59716636", "0.59703285", "0.5949182", "0.5949182", "0.59396815", "0.59396815", "0.5936131", "0.5935658", "0.5895888", "0.5895527", "0.5893964", "0.5884042", "0.58751285", "0.58681023", "0.5865894", "0.5864961", "0.5855157", "0.5851545", "0.58495414", "0.58392423", "0.58338994", "0.58154637", "0.58069575", "0.578939", "0.57841045", "0.5779981", "0.5753099", "0.5741735", "0.57333666", "0.57321835", "0.5731796", "0.57317585", "0.572287", "0.5720141", "0.5712233", "0.56939065", "0.56927073", "0.5685293", "0.56847894", "0.5683809", "0.56834316", "0.56828403", "0.56666017", "0.56607187", "0.56579894", "0.5648655", "0.56438047", "0.5620551", "0.561873", "0.5609984", "0.55931836", "0.55871445", "0.5586237", "0.55789423", "0.55779636", "0.55737203", "0.55702287", "0.55692416", "0.5561011", "0.5559403", "0.5543905", "0.5541634", "0.5536858", "0.5522634", "0.5517553", "0.5517258", "0.5512109", "0.5509594", "0.55070907", "0.5496529", "0.54921997", "0.5491354", "0.5486711", "0.5481696", "0.54758567", "0.5471066", "0.54659206" ]
0.57927567
46
Create a gara.CarModel table reference
public Carmodel() { this("CarModel", null); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public TableDefinition(Class<T> model){\n this.singleton = this;\n this.model = model;\n try {\n OBJECT = Class.forName(model.getName());\n createTableDefinition();\n } catch (Exception e) {\n e.printStackTrace();\n }\n }", "Model createModel();", "Model createModel();", "Model createModel();", "Model createModel();", "Model createModel();", "Model createModel();", "Model createModel();", "public static void createCarFeaturesTable() throws SQLException {\n\t\tConnection conn = null;\n\t\tStatement stmt = null;\n\t\tResultSet rs = null;\n\t\tString create = \"CREATE TABLE \" + carFeaturesTable + \"(\" +\n\t\t\t\tcarFeaturesIDCol + \" INTEGER PRIMARY KEY GENERATED ALWAYS AS IDENTITY (START WITH 1, INCREMENT BY 1), \" +\n\t\t\t\tvinNumberIDCol + \" VARCHAR(17), \"+\n\t\t\t\tfeatureIDCol + \" INTEGER, \" +\n\t\t\t\t\"FOREIGN KEY (\" + vinNumberIDCol + \") REFERENCES \" + carsTable +\" (\" + vinNumberIDCol + \"), \" +\n\t\t\t\t\"FOREIGN KEY (\" + featureIDCol + \") REFERENCES \" + featuresTable +\" (\" + featureIDCol + \"))\";\n\t\t\t\t\t\t\t\t\n\t\ttry {\n\t\t\tconn = DriverManager.getConnection(connString);\n\t\t\trs = conn.getMetaData().getTables(null, null, carFeaturesTable.toUpperCase(), new String[] {\"TABLE\"});\n\t\t\tif(rs.next()) {\n\t\t\t\treturn;\n\t\t\t}\n\t\t\tstmt = conn.createStatement();\n\t\t\tstmt.executeUpdate(create);\n\t\t} catch (SQLException e) {\n\t\t\tSystem.out.println(\"Something is wrong with the createCarFeaturesTable database connection...\");\n\t\t\te.printStackTrace();\n\t\t}finally {\n\t\t\ttry {\n\t\t\t\tif(stmt != null)\n\t\t\t\t\tstmt.close();\n\t\t\t\tif(conn != null)\n\t\t\t\t\tconn.close();\n\t\t\t}\n\t\t\tcatch(SQLException e) {\n\t\t\t\tthrow e;\n\t\t\t}\n\t }\n\t}", "@Transactional\n\tpublic Car createCar(String name, String makeOfCar, Integer numSeats, String carType, Integer numDoors, String driveType) {\n\t\tCar car = new Car();\n\t\tcar.setName(name);\n\t\tcar.setMakeOfCar(makeOfCar);\n\t\tcar.setNumSeats(numSeats);\n\t\tcar.setCarType(carType);\n\t\tcar.setNumDoors(numDoors);\n\t\tcar.setDriveType(driveType);\n\t\tentityManager.persist(car);\n\t\treturn car;\n\t}", "CsticModel createInstanceOfCsticModel();", "void create(Model model) throws Exception;", "public T createModel(Cursor cursor, String id);", "public Device createObject(String brand, String model, Integer price, String photo, String date);", "FromTable createFromTable();", "TableInstance createTableInstance();", "@Override\n public void onCreate(SQLiteDatabase db) {\n try {\n db.execSQL(\"CREATE TABLE \" + CARDS_TABLE_NAME + \" (\" +\n CARDS_COLUMN_ID + \" INTEGER PRIMARY KEY AUTOINCREMENT, \" +\n CARDS_COLUMN_NAME + \" VARCHAR(255), \" +\n CARDS_COLUMN_NUMBER + \" VARCHAR(255), \" +\n CARDS_COLUMN_CATEGORY + \" VARCHAR(255), \" +\n CARDS_COLUMN_FORMAT + \" VARCHAR(255), \" +\n CARDS_COLUMN_IMAGE + \" VARCHAR(255));\"\n );\n Log.d(\"DBHelper\", \"Table Created\");\n }catch(SQLException e){\n e.printStackTrace();\n }\n }", "tbls createtbls();", "private ICarModel ICarModel(Car car) {\r\n\t\t// TODO Auto-generated method stub\r\n\t\treturn null;\r\n\t}", "public Car saveCar(Car car) {\r\n return repository.save(car);\r\n }", "public void createTable(Class<?> clz) {\n\t\tcreateTable(getWritableDatabase(), clz);\n\t}", "Vehicle createVehicle();", "Vehicle createVehicle();", "@Test\n\tpublic void testCreateNullCarModel() {\n\t\tCarFactory _carFactory = new CarFactory();\n\n\t\tCarType _carType = CarType.valueOf((\"coupe\".toUpperCase()));\n\t\tString _make = \"BMW\";\n\t\tString _model = null;\n\t\tString _color = \"invalid_color\";\n\t\tint _year = 1999;\n\n\t\t// ---------------------------------------------\n\t\t// Creating an null model car.\n\t\ttry {\n\t\t\t@SuppressWarnings(\"unused\")\n\t\t\tAbstractCar _unknown = _carFactory.buildCar(_carType, _make, _model, _color, _year);\n\n\t\t\tfail(\"Successfully created an invalid car (should not work).\");\n\t\t} catch (Exception expected_) {\n\t\t}\n\n\t}", "public Car create(Car car) {\n if (car.getStation() == null) {\n throw new IllegalArgumentException(messages.get(\"carStationNotNull\"));\n }\n if (car.getStation().getId() == null || !stationService.existsById(car.getStation().getId())) {\n throw new EntityNotFoundException(messages.get(\"stationNotFound\"));\n }\n if (carRepository.existsById(car.getRegistrationNr())) {\n throw new EntityExistsException(messages.get(\"carAlreadyExists\"));\n }\n return carRepository.save(car);\n }", "public Car(Integer id, String make, String logoFileName, String makeUrl, String model, Integer year, Integer price, Integer mileage, Integer cityMPG, Integer highwayMPG, String engineType, String driveType) {\n this.id = id;\n this.make = make;\n this.logoFileName = logoFileName;\n this.makeUrl = makeUrl;\n this.model = model;\n this.year = year;\n this.price = price;\n this.mileage = mileage;\n this.cityMPG = cityMPG;\n this.highwayMPG = highwayMPG;\n this.engineType = engineType;\n this.driveType = driveType;\n }", "@Test\n\tpublic void testCreateEmptyCarModel() {\n\t\tCarFactory _carFactory = new CarFactory();\n\n\t\tCarType _carType = CarType.valueOf((\"coupe\".toUpperCase()));\n\t\tString _make = \"BMW\";\n\t\tString _model = \"\";\n\t\tString _color = \"invalid_color\";\n\t\tint _year = 1999;\n\n\t\t// ---------------------------------------------\n\t\t// Creating an empty model car.\n\t\ttry {\n\t\t\t@SuppressWarnings(\"unused\")\n\t\t\tAbstractCar _unknown = _carFactory.buildCar(_carType, _make, _model, _color, _year);\n\n\t\t\tfail(\"Successfully created an invalid car (should not work).\");\n\t\t} catch (Exception expected_) {\n\t\t}\n\n\t}", "public TableCreation(Table table) {\n this.table = table;\n }", "@Override\n public Class<CarmodelRecord> getRecordType() {\n return CarmodelRecord.class;\n }", "public Car createCar(String name, String modelName, String type) {\r\n return new Car(name, modelName, type);\r\n }", "public Car createListings(int year, String brand, String model, int mileage, int bidPrice) {\r\n\r\n car = new Car(year, brand, model, mileage, bidPrice);\r\n\r\n cars.addCar(car);\r\n\r\n return car;\r\n\r\n }", "public Car(String primaryKey, String name, String dealerKey, int year, Category category,\r\n double price, String displacementCC, int maxPower,\r\n String powerRPM, double torqueFtLb, String torqueRPM, DriveTrain driveTrain,\r\n Aspiration aspiration, double length, double width, double height, double weight,\r\n double maxSpeed, double acceleration, double braking, double cornering, double stability) {\r\n this.primaryKey = primaryKey;\r\n this.name = name;\r\n this.manufacturerKey = dealerKey;\r\n this.year = year;\r\n this.category = category;\r\n this.price = price;\r\n this.displacementCC = displacementCC;\r\n this.maxPower = maxPower;\r\n this.powerRPM = powerRPM;\r\n this.torqueFtLb = torqueFtLb;\r\n this.torqueRPM = torqueRPM;\r\n this.driveTrain = driveTrain;\r\n this.aspiration = aspiration;\r\n this.length = length;\r\n this.width = width;\r\n this.height = height;\r\n this.weight = weight;\r\n this.maxSpeed = maxSpeed;\r\n this.acceleration = acceleration;\r\n this.braking = braking;\r\n this.cornering = cornering;\r\n this.stability = stability;\r\n }", "public Car(String registrationNumber, String make, String model) {\r\n super(registrationNumber, make, model);\r\n }", "public Carmodel(String alias) {\n this(alias, CARMODEL);\n }", "ForeignKey createForeignKey();", "public CarModel registerCar(final CarModel carModel) {\n Optional<Car> carOptional = carRepository.findByCarId(carModel.getCarId());\n\n if (!carOptional.isPresent()) {\n Car carSaved = carRepository.save(Car.builder()\n .driver(getDriverIfExists(carModel.getDriver()))\n .model(carModel.getModel())\n .status(carModel.getStatus())\n .carId(carModel.getCarId()).build());\n\n return CarModel.builder().carId(carSaved.getCarId()).build();\n } else {\n throw new CarAlreadyExistsException(carModel.getCarId());\n }\n }", "private void populateTable() {\n \n DefaultTableModel dtm = (DefaultTableModel) tblAllCars.getModel();\n dtm.setRowCount(0);\n \n for(Car car : carFleet.getCarFleet()){\n \n Object[] row = new Object[8];\n row[0]=car.getBrandName();\n row[1]=car.getModelNumber();\n row[2]=car.getSerialNumber();\n row[3]=car.getMax_seats();\n row[4]=car.isAvailable();\n row[5]=car.getYearOfManufacturing();\n row[6]=car.isMaintenenceCerticateExpiry();\n row[7]=car.getCity();\n \n dtm.addRow(row);\n \n }\n }", "TABLE createTABLE();", "RoomModel createRoomModel(RoomModel roomModel);", "Relationship createRelationship();", "public void addCar(String nif, String carRegistrationId, String brand, String model, String color) throws PersistenceException {\r\n\r\n\t\tCarJPA car = new CarJPA();\r\n\t\tcar.setNif(nif);\r\n\t\tcar.setCarRegistrationId(carRegistrationId);\r\n\t\tcar.setBrand(brand);\r\n\t\tcar.setModel(model);\r\n\t\tcar.setColor(color);\r\n\t\ttry\r\n\t\t{\r\n\t\t\tentman.persist(car);\r\n\t\t\t\r\n\t\t}catch (PersistenceException e) {\r\n\t\t\tSystem.out.println(e);\r\n\t\t} \r\n\t}", "BTable createBTable();", "PriceModel createInstanceOfPriceModel();", "DataModel createDataModel();", "public void crearVehiculo( clsVehiculo vehiculo ){\n if( vehiculo.obtenerTipoMedioTransporte().equals(\"Carro\") ){\n //Debo llamar el modelo de CARRO\n modeloCarro.crearCarro( (clsCarro) vehiculo );\n } else if (vehiculo.obtenerTipoMedioTransporte().equals(\"Camion\")){\n //Debo llamar el modelo de CAMIÓN\n }\n }", "public static String AssetRef_CreateTable()\n\t{\n\t\tString str = \"create table assetref (\" \n\t\t\t\t+ \"id INTEGER PRIMARY KEY,\"\n\t\t\t\t+ \"uniqueId string,\"\n\t\t\t\t+ \"path string,\"\n\t\t\t\t+ \"name string,\"\n\t\t\t\t+ \"size int,\"\n\t\t\t\t+ \"lastChanged time\"\n\t\t\t\t+ \")\";\n\t\treturn str;\t\n\t}", "public ModelOfCar saveModel(ModelOfCar modelOfCar) {\n\t\tModelOfCar existingModel = repository.findByName(modelOfCar.getName());\n\t\tif (existingModel == null)\n\t\t\treturn repository.save(modelOfCar);\n\t\telse\n\t\t\t{\n\t\t\tLOGGER.error(\"Spring Boot informerar mig om att ett fel har inträffat. Model finns i tabell\");\n\t\t\tthrow new OurCustomExceptions(\"Model finns i tabell\");}\n\n\t}", "HdbdtiModel createHdbdtiModel();", "Relation createRelation();", "public void getAllVehicles(DefaultTableModel dataTableModel, String brand, String model) {\n// dataTableModel.setColumnIdentifiers(Vehicle.getVehicleDefinition());\n// dataTableModel.addRow(Vehicle.getVehicleDefinition());\n// ResultSet rs = db.getAllVehicles(brand, model);\n// try {\n// while (rs.next()) {\n Vehicle vehicle = createVehicle(/*rs*/);\n// dataTableModel.addRow(vehicle.vehicleToArray());\n// }\n// } catch (SQLException e) {\n// e.printStackTrace();\n// }\n }", "public Car(){\n\t\t\n\t}", "public void createModel() {\n\t\tmyShop = ShopFactory.eINSTANCE.createShop();\n\n\t\tfinal Country dk = ShopFactory.eINSTANCE.createCountry();\n\t\tdk.setName(\"Denmark\");\n\t\tdk.setAbbreviation(\"DK\");\n\t\tmyShop.getCountries().add(dk);\n\n\t\tfinal Country se = ShopFactory.eINSTANCE.createCountry();\n\t\tse.setName(\"Sweden\");\n\t\tse.setAbbreviation(\"SE\");\n\t\tmyShop.getCountries().add(se);\n\n\t\tfinal Contact a = ShopFactory.eINSTANCE.createContact();\n\t\ta.setName(\"a\");\n\t\ta.setCity(\"A\");\n\t\ta.setCountry(dk);\n\t\tmyShop.getContacts().add(a);\n\n\t\tfinal Contact b = ShopFactory.eINSTANCE.createContact();\n\t\tb.setName(\"b\");\n\t\tb.setCity(\"A\");\n\t\tb.setCountry(se);\n\t\tmyShop.getContacts().add(b);\n\t}", "private Vehicle createVehicle(/*ResultSet rs*/) {\n // creates a vehicle using the specific form data\n //Form would get every field\n //This is dummy data\n Vehicle vehicle = new Vehicle();\n// try {\n int id = 1;\n String marca = \"marca\";\n String modelo = \"modelo\";\n double cilindrada = 2.0;\n int cavalos = 120;\n double preco = 1000.0;\n int quilometros = 200000;\n java.sql.Date date = new Date(1996-10-21);\n String combustivel = \"combustivel\";\n// //ADICIONAR\n vehicle.setId(id);\n vehicle.setMarca(marca);\n vehicle.setModelo(modelo);\n vehicle.setCilindrada(cilindrada);\n vehicle.setCavalos(cavalos);\n vehicle.setPreco(preco);\n vehicle.setDate(date);\n vehicle.setQuilometros(quilometros);\n vehicle.setCombustivel(Combustiveis.valueOf(combustivel));\n\n// } catch (SQLException e) {\n// e.printStackTrace();\n// }\n return vehicle;\n }", "public void onCreate() {\r\n\t\tcreatorClass.onCreate(table);\r\n\t}", "Table createTable();", "@PostMapping(\"/add-car\")\n public String addCar(@ModelAttribute Car car){\n cars.add(car);\n\n return \"redirect:/car\";\n }", "public String insertSelective(Car record) {\n SQL sql = new SQL();\n sql.INSERT_INTO(\"`basedata_car`\");\n \n if (record.getCarId() != null) {\n sql.VALUES(\"car_id\", \"#{carId,jdbcType=INTEGER}\");\n }\n \n if (record.getCarBrandId() != null) {\n sql.VALUES(\"car_brand_id\", \"#{carBrandId,jdbcType=INTEGER}\");\n }\n \n if (record.getCarModel() != null) {\n sql.VALUES(\"car_model\", \"#{carModel,jdbcType=VARCHAR}\");\n }\n \n if (record.getCarType() != null) {\n sql.VALUES(\"car_type\", \"#{carType,jdbcType=TINYINT}\");\n }\n \n if (record.getAlias() != null) {\n sql.VALUES(\"alias\", \"#{alias,jdbcType=VARCHAR}\");\n }\n \n if (record.getSeatType() != null) {\n sql.VALUES(\"seat_type\", \"#{seatType,jdbcType=TINYINT}\");\n }\n \n if (record.getSeatNum() != null) {\n sql.VALUES(\"seat_num\", \"#{seatNum,jdbcType=TINYINT}\");\n }\n \n if (record.getCarClass() != null) {\n sql.VALUES(\"car_class\", \"#{carClass,jdbcType=INTEGER}\");\n }\n \n if (record.getGuestNum() != null) {\n sql.VALUES(\"guest_num\", \"#{guestNum,jdbcType=INTEGER}\");\n }\n \n if (record.getLuggageNum() != null) {\n sql.VALUES(\"luggage_num\", \"#{luggageNum,jdbcType=INTEGER}\");\n }\n \n if (record.getSpell() != null) {\n sql.VALUES(\"spell\", \"#{spell,jdbcType=VARCHAR}\");\n }\n \n if (record.getEnName() != null) {\n sql.VALUES(\"en_name\", \"#{enName,jdbcType=VARCHAR}\");\n }\n \n if (record.getUpdatedAt() != null) {\n sql.VALUES(\"updated_at\", \"#{updatedAt,jdbcType=TIMESTAMP}\");\n }\n \n if (record.getCreatedAt() != null) {\n sql.VALUES(\"created_at\", \"#{createdAt,jdbcType=TIMESTAMP}\");\n }\n \n return sql.toString();\n }", "@Transactional\r\n\tpublic Car addCar(Car c) {\n\t\t\r\n\t\treturn cr.save(c);\r\n\t\t\r\n\t}", "@SuppressWarnings({ \"unchecked\", \"null\" })\n public static void createTableDefinition() throws Exception{\n\n if(OBJECT.isAnnotationPresent(Table.class)){\n Annotation annotation = OBJECT.getAnnotation(Table.class);\n Method method = annotation.getClass().getMethod(\"name\");\n Object object = method.invoke(annotation);\n\n TABLE_NAME = object.toString().toUpperCase();\n\n CREATE_STATEMENT = new StringBuilder();\n FOREIGN_KEY = new StringBuilder();\n COLUMNS = new StringBuilder();\n LIST_FIELD_MODEL = new ArrayList<FieldModel>();\n\n }else{\n CREATE_STATEMENT = null;\n throw new Exception(\"Annotation @Table not declared in class \"+OBJECT.getSimpleName());\n }\n\n\n FIELD_DEFINITION = OBJECT.getDeclaredFields();\n\n ARRAY_COLUMNS = new String[FIELD_DEFINITION.length];\n\n for (int i = 0; i < FIELD_DEFINITION.length ; i++){\n Field field = FIELD_DEFINITION[i];\n Annotation annotation = null;\n Method methodName = null;\n Method methodSize = null;\n Object objectName = null;\n Object sizeField = null;\n String type;\n String primaryKeyText = \"\";\n\n\n if(field.isAnnotationPresent(Column.class)){\n annotation = field.getAnnotation(Column.class);\n methodName = annotation.getClass().getMethod(\"name\");\n methodSize = annotation.getClass().getMethod(\"size\");\n sizeField = methodSize.invoke(annotation);\n objectName = methodName.invoke(annotation);\n if(objectName == null || objectName.toString() == \"\"){\n objectName = field.getName();\n }\n\n\n }else{\n CREATE_STATEMENT = null;\n throw new Exception(\"Annotation @Column not declared in the field --> \"+field.getName());\n }\n\n if(field.isAnnotationPresent(PrimaryKey.class)){\n PK = objectName.toString();\n\n Annotation pKey_annotation = field.getAnnotation(PrimaryKey.class);\n Method pkey_methodAutoIncrement = pKey_annotation.getClass().getMethod(\"autoIncrement\");\n Object pkey_autoIncrement = pkey_methodAutoIncrement.invoke(pKey_annotation);\n\n primaryKeyText = \" PRIMARY KEY \";\n\n if(Boolean.valueOf(pkey_autoIncrement.toString())){\n primaryKeyText = primaryKeyText + \" AUTOINCREMENT \";\n }\n\n }\n if(field.isAnnotationPresent(Codigo.class)){\n setCOD(objectName.toString());\n }\n if(field.isAnnotationPresent(ForeignKey.class)){\n Annotation fkey_annotation = field.getAnnotation(ForeignKey.class);\n Method fkey_methodTableReference = fkey_annotation.getClass().getMethod(\"tableReference\");\n Object fkey_tableReferenceName = fkey_methodTableReference.invoke(fkey_annotation);\n\n Method fkey_methodOnUpCascade = fkey_annotation.getClass().getMethod(\"onUpdateCascade\");\n Object fkey_OnUpCascadeValue = fkey_methodOnUpCascade.invoke(fkey_annotation);\n\n Method fkey_methodOnDelCascade = fkey_annotation.getClass().getMethod(\"onDeleteCascade\");\n Object fkey_OnDelCascadeValue = fkey_methodOnDelCascade.invoke(fkey_annotation);\n\n Method fkey_methodColumnReference = fkey_annotation.getClass().getMethod(\"columnReference\");\n Object fkey_columnReference = fkey_methodColumnReference.invoke(fkey_annotation);\n\n String columnReference = fkey_columnReference.toString();\n if(columnReference == \"\"){\n columnReference = \"_id\";\n }\n\n FOREIGN_KEY.append(\", FOREIGN KEY (\"+objectName.toString()+\") REFERENCES \"+fkey_tableReferenceName.toString().toUpperCase()+\" (\"+columnReference+\")\");\n\n if(Boolean.valueOf(fkey_OnUpCascadeValue.toString())){\n FOREIGN_KEY.append(\" ON UPDATE CASCADE \");\n }\n if(Boolean.valueOf(fkey_OnDelCascadeValue.toString())){\n FOREIGN_KEY.append(\" ON DELETE CASCADE \");\n }\n\n\n }\n\n\n if(field.getType() == int.class || field.getType() == Integer.class || field.getType() == Long.class || field.getType() == long.class){\n type = \" INTEGER \";\n }else\tif(field.getType() == String.class || field.getType() == char.class ){\n type = \" TEXT \";\n }else\tif(field.getType() == Double.class || field.getType() == Float.class || field.getType() == double.class){\n type = \" REAL \";\n }else if(field.getType() == BigDecimal.class){\n type = \" REAL \";\n }else if(field.getType() == Date.class){\n type = \" TIMESTAMP \";\n }\n else if(field.getType() == java.sql.Timestamp.class){\n type = \" TIMESTAMP \";\n }else if(field.getType() == Boolean.class || field.getType() == boolean.class){\n type = \" BOOLEAN \";\n }else{\n type = \" NONE \";\n }\n if(!sizeField.equals(\"\") ){\n type = type+\"(\"+sizeField.toString()+\") \";\n setSIZE(Integer.parseInt(sizeField.toString()));\n }\n // Log.d(\"afalOG\", \"TAMANHO\" + type+sizeField.toString());\n if(i == FIELD_DEFINITION.length-1){\n if(objectName != null){\n CREATE_STATEMENT.append(objectName.toString()+\" \"+type+primaryKeyText);\n COLUMNS.append(objectName.toString());\n }else{\n CREATE_STATEMENT = null;\n throw new Exception(\"Property 'name' not declared in the field --> \"+field.getName());\n }\n }else{\n if(objectName != null){\n CREATE_STATEMENT.append(objectName.toString()+\" \"+type+primaryKeyText+\", \");\n COLUMNS.append(objectName.toString()+\" , \");\n }else{\n CREATE_STATEMENT = null;\n throw new Exception(\"Property 'name' not declared in the field --> \"+field.getName());\n }\n }\n ARRAY_COLUMNS[i] = objectName.toString();\n if(! primaryKeyText.contains(\"AUTOINCREMENT\")){\n FieldModel fieldModel = new FieldModel();\n fieldModel.setColumnName(objectName.toString());\n fieldModel.setFieldName(field.getName());\n LIST_FIELD_MODEL.add(fieldModel);\n }\n }\n\n if(FOREIGN_KEY.toString() != \"\"){\n CREATE_STATEMENT.append(FOREIGN_KEY);\n }\n CREATE_STATEMENT.append(\");\");\n\n\n if(getPK() == \"\"){\n StringBuilder sb = new StringBuilder();\n sb.append(\"CREATE TABLE \" + TABLE_NAME + \" (\");\n sb.append(BaseColumns._ID +\" INTEGER PRIMARY KEY AUTOINCREMENT, \" );\n sb.append(CREATE_STATEMENT);\n\n String[] columns = new String[ARRAY_COLUMNS.length+1];\n columns[0] = BaseColumns._ID;\n for(int i = 0; i < ARRAY_COLUMNS.length; i++){\n columns[i+1] = ARRAY_COLUMNS[i];\n }\n\n ARRAY_COLUMNS = columns;\n\n CREATE_STATEMENT = sb;\n }else{\n StringBuilder sb = new StringBuilder();\n sb.append(\"CREATE TABLE \" + TABLE_NAME + \" (\");\n sb.append(CREATE_STATEMENT);\n\n CREATE_STATEMENT = sb;\n }\n }", "public void addCars(User user, int idCar){\n ContentValues values= new ContentValues();\n values.put(COLUMN_IDUSER, user.getId());\n values.put(COLUMN_MODELEID, idCar);\n\n db.insert(TABLE_MODELE_SALVATE, null, values);\n }", "@Override\r\n public void createTable() {\n String sql = \"create table \" + TABLE_NAME + \"(\";\r\n sql += ID + \" INTEGER primary key,\";\r\n sql += NAME + \" VARCHAR(50),\";\r\n sql += LON + \" FLOAT(10,6),\";\r\n sql += LAT + \" FLOAT(10,6)\";\r\n sql += \")\";\r\n database.execSQL(sql);\r\n }", "public void add(ComplexCar[] cars) throws DatabaseTestException;", "public void createTable() throws LRException\n\t{\n\t\tgetBackground();\n\t\tDataHRecordData myData=(DataHRecordData)getData();\n\t\t// Create a new (empty) record\n\t\tcreate(new Hashtable(),myData);\n\t\tif (myData.record==null) throw new LRException(DataRMessages.nullRecord(getName()));\n\t\ttry\n\t\t{\n\t\t\tbackground.newTransaction();\n\t\t\tmyData.record.createNewTable(background.getClient(),true);\n\t\t}\n\t\tcatch (LDBException e) { setStatus(e); }\n\t}", "public Car() {\n }", "public Car(String make, String model, int maxSpeedKmph, double secTo100Kmph, double litersPer100km) {\n counter++;\n uniqueId = counter;\n this.make = make;\n this.model = model;\n this.maxSpeedKmph = maxSpeedKmph;\n this.secTo100Kmph = secTo100Kmph;\n this.litersPer100km = litersPer100km;\n\n }", "public Curso model2entity (CursoModel cursoModel) {\r\n\t\tCurso curso = new Curso();\r\n\t\tcurso.setNombre(cursoModel.getNombre());\r\n\t\tcurso.setDescripcion(cursoModel.getDescripcion());\r\n\t\tcurso.setHoras(cursoModel.getHoras());\r\n\t\tcurso.setPrecio(cursoModel.getPrecio());\r\n\t\treturn curso;\r\n\t\t\r\n\t}", "public Car() {\n }", "@Override\n public void onCreate(SQLiteDatabase database, ConnectionSource connectionSource) {\n try {\n TableUtils.createTable(connectionSource, PlaceType.class);\n\n String[] initialPlaceTypes = context.getResources().getStringArray(R.array.starting_types);\n List<PlaceType> list = new ArrayList<PlaceType>();\n\n for (int cont=0; cont < initialPlaceTypes.length; cont++) {\n PlaceType type = new PlaceType(initialPlaceTypes[cont]);\n list.add(type);\n }\n\n getPlaceTypeDAO().create(list);\n\n TableUtils.createTable(connectionSource, Place.class);\n TableUtils.createTable(connectionSource, Routine.class);\n } catch (java.sql.SQLException e) {\n e.printStackTrace();\n Log.e(DatabaseHelper.class.getName(), \"onCreate\", e);\n throw new RuntimeException(e);\n }\n }", "private void createTable() {\n\t\t// Tao dataModel & table \n\t\tdataModel = new DefaultTableModel(headers, 0);\n\t\ttable.setModel(dataModel);\n\t\t\n\t\tnapDuLieuChoBang();\n\t}", "@Override\r\n\tpublic void createTable(Connection con) throws SQLException {\r\n\t\tString sql = \"CREATE TABLE \" + tableName\r\n\t\t\t\t+ \"(pc_id integer, class_id varchar(20), level integer,\"\r\n\t\t\t\t+ \" PRIMARY KEY (pc_id,class_id,level) )\";\r\n\r\n\t\tif (DbUtils.doesTableExist(con, tableName)) {\r\n\r\n\t\t} else {\r\n\t\t\ttry (PreparedStatement ps = con.prepareStatement(sql);) {\r\n\t\t\t\tps.execute();\r\n\t\t\t}\r\n \r\n\t\t}\r\n\r\n\r\n\r\n\t\tString[] newInts = new String[] { \r\n\t\t\t\t\"hp_Increment\",};\r\n\t\tDAOUtils.createInts(con, tableName, newInts);\r\n\r\n\t}", "public Car () {\n\n Make = \"\";\n Model = \"\";\n Year = 2017;\n Price = 0.00;\n }", "int insert(TVmManufacturer record);", "public String createTable(){\r\n return \"CREATE TABLE Doctor \" +\r\n \"(idDoctor decimal primary key, \" +\r\n \"firstNameDoctor char(14), \" +\r\n \"lastNameDoctor char(14), \" +\r\n \"costPerVisit integer,\" +\r\n \"qualification varchar(32))\";\r\n }", "@Override\n public String getCreate() {\n return \"CREATE TABLE IF NOT EXISTS StoreController (\\n\" +\n \"\\tstoreID INTEGER NOT NULL UNIQUE,\\n\" +\n \"\\tstoreShelves INTEGER NOT NULL,\\n\" +\n \"\\tnumberOfShelves INTEGER NOT NULL,\\n\" +\n \"\\tdiscountCounter INTEGER NOT NULL,\\n\" +\n \"\\ttypeCounter INTEGER NOT NULL,\\n\" +\n \"\\tcategoryCounter INTEGER NOT NULL,\\n\"+\n \"\\tFOREIGN KEY(\\\"storeID\\\") REFERENCES \\\"Branches\\\"(\\\"BID\\\"),\\n\" +\n \"\\tPRIMARY KEY(\\\"storeID\\\")\\n\" +\n \");\";\n }", "public void crearModelo() {\n modeloagr = new DefaultTableModel(null, columnasAgr) {\n public boolean isCellEditable(int fila, int columna) {\n return false;\n }\n };\n tbl.llenarTabla(AgendarA.tblAgricultor, modeloagr, columnasAgr.length, \"SELECT idPersonalExterno,cedula,CONCAT(nombres,' ',apellidos),municipios.nombre,telefono,telefono2,telefono3 FROM personalexterno,municipios WHERE tipo='agricultor' AND personalexterno.idMunicipio=municipios.idMunicipio\");\n tbl.alinearHeaderTable(AgendarA.tblAgricultor, headerColumnas);\n tbl.alinearCamposTable(AgendarA.tblAgricultor, camposColumnas);\n tbl.rowNumberTabel(AgendarA.tblAgricultor);\n }", "public void createVirtualTable(){\n\n\t\t\n\t\tif(DBHandler.getConnection()==null){\n\t\t\treturn;\n\t\t}\n\n\t\tif(DBHandler.tableExists(name())){\n\t\t\treturn;\n\t\t}\n\t\t\n\t\ttry {\n\t\t\tStatement s = DBHandler.getConnection().createStatement();\n\t\t\ts.execute(\"create virtual table \"+name()+\" using fts4(\"+struct()+\")\");\n\n\t\t} catch (SQLException e) {\n\t\t\te.printStackTrace();\n\t\t\tMainFrame.print(e.getMessage());\n\t\t}\n\t}", "public static Model createModel(RepositoryConnection connection, Resource context)\n { \n Graph graph = new GraphRepository(connection, context) ;\n return ModelFactory.createModelForGraph(graph) ;\n }", "public static void createTable(SQLiteDatabase db, Class<?> clz) {\n// StringBuilder builder=new StringBuilder();\n// Field[] fields=clz.getDeclaredFields();\n// for (int i=0;i<fields.length;i++){\n// Field field=fields[i];\n// builder.append(getOneColumnStmt(field));\n// if (i!=fields.length-1)\n// builder.append(\",\");\n// }\n// String sql=\"create table \"+getTableName(clz)+\"(\"+builder+\")\";\n// db.execSQL(sql);\n ArrayList<String> stmts=getCreateTableStmt(clz);\n for (String stmt:stmts) {\n db.execSQL(stmt);\n }\n }", "public void createTable() {\r\n\t\tclient.createTable();\r\n\t}", "Table8 create(Table8 table8);", "public interface RdbModel {\n\n public Object setThisModelFields(CrawlerData data);\n public InsertSqlModel insertSqlModelBuilder(String tableName);\n}", "public static MlTableModel createModel(MlObjectTable table) {\n\n MlTableModel model = null;\n switch (table.getType()) {\n case Contact:\n model = new ContactTableModel(table);\n break;\n case Task:\n model = new TaskTableModel(table);\n break;\n case Image:\n model = new ImageTableModel(table);\n break;\n case Knowlet:\n case Collection:\n case Map:\n case Container:\n case Any:\n model = new AllObjectTableModel(table);\n break;\n default:\n throw new IllegalStateException(\"No table model found for specified object class: \" + table.getType().name());\n }\n return model;\n }", "@Override\n\tpublic Integer handleModelInfo(Map<String, Object> reqParams, Integer serialId) {\n\t\tInteger srcId = Integer.valueOf(reqParams.get(\"i\").toString());\n\t\tString name = reqParams.get(\"t\").toString();// key\n\t\tlastModelName = name;\n\t\tSystem.out.println(\">>> [\" + lastModelName + \"]\");\n\t\tCarModel carType = null;\n\t\tif (serialId != null) {\n\t\t\tcarType = this.carService.getCarModelByRefId(srcId);\n\t\t\tif (carType == null) {\n\t\t\t\tcarType = this.carService.getCarModelBySerialIdAndName(serialId, name);\n\t\t\t\tif (carType == null) {\n\t\t\t\t\tcarType = new CarModel();\n\t\t\t\t\tcarType.setSerialId(serialId);\n\t\t\t\t\tcarType.setName(name);\n\t\t\t\t\tcarType.setRefId(srcId);\n\t\t\t\t\tcarType.setRefName(name);\n\n\t\t\t\t\tthis.carService.saveCarModel(carType);\n\n\t\t\t\t\tSystem.out.println(\"新增 车型 => \" + lastBrandName + \" \\\\ \" + lastSerialName + \" \\\\ \" + lastModelName);\n\t\t\t\t\tinsertModels++;\n\t\t\t\t} else {\n\t\t\t\t\tcarType.setRefId(srcId);\n\t\t\t\t\tcarType.setRefName(name);\n\n\t\t\t\t\tthis.carService.saveCarModel(carType);\n\n\t\t\t\t\tSystem.out.println(\"绑定 车型 srcId => [\" + srcId + \"]\" + lastBrandName + \" \\\\ \" + lastSerialName + \" \\\\ \" + lastModelName);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t//\n\t\treturn carType == null || carType.getDisabled() ? null : carType.getId();\n\t}", "public ClassSQLContract(SQLTagsGeneratorTable sqlTagsGeneratorTable){\n //---------------------------------------------------------------------------\n this.sqlTagsGeneratorTable=sqlTagsGeneratorTable;\n this.tableName=sqlTagsGeneratorTable.getTableName();\n createClassSQLContract();\n }", "@RequestMapping(\"/eDBTest\")\n public String eDBTest(Model model){\n\n System.out.println(\"Creating tables\");\n testRepository.jdbcTemplate.execute(\"drop table customers if exists\");\n testRepository.jdbcTemplate.execute(\"create table customers(\" +\n \"id serial, first_name varchar(255), last_name varchar(255))\");\n\n\n String[] names = \"John Woo;Jeff Dean;Josh Bloch;Josh Long\".split(\";\");\n for (String fullname : names) {\n String[] name = fullname.split(\" \");\n System.out.printf(\"Inserting customer record for %s %s\\n\", name[0], name[1]);\n testRepository.jdbcTemplate.update(\n \"INSERT INTO customers(first_name,last_name) values(?,?)\",\n name[0], name[1]);\n }\n\n List<Customer> customers = testRepository.getAllCustomers();\n customers.forEach(System.out::println);\n model.addAttribute(\"customers\", customers);\n\n return \"customers\";\n }", "private Car(Integer carID, String make, String model, Integer productionYear) {\r\n setCarID(carID);\r\n setMake(make);\r\n setModel(model);\r\n setProductionYear(productionYear);\r\n }", "public Car(String carname) {\n this.carname = carname;\n }", "public long createCategory(CategoryModel categoryModel){\n //access the database\n SQLiteDatabase db = this.getWritableDatabase();\n\n //set the parameters\n ContentValues values = new ContentValues();\n values.put(InventoryContract.CategoryEntry.COLUMN_CATEGORY_NAME, categoryModel.getName());\n\n //insert the row\n long category_id = db.insert(CategoryEntry.TABLE_NAME, null, values);\n\n return category_id;\n }", "InstanceModel createInstanceOfInstanceModel();", "@Test\n public void testCreateCars() throws Exception {\n Car car = carService.generateACarObject();\n testCreateCars(new ElectricCar(car)); // Test to see if electric cars are saved right!\n testCreateCars(new GasCar(car)); // Test to see if gas cars are saved right!\n testCreateCars(new DieselCar(car)); // Test to see if diesel cars are saved right!\n }", "public void makeCars()\r\n\t{\r\n\t\tString[] names = new String[]{\"BOB\",\"SUE\",\"JOE\",\"NEATO\",\"FALCON\"};\r\n\t\tfor(int i=0; i<cars.length; i++)\r\n\t\t{\r\n\t\t\tString name = names[(int)(Math.random()*names.length)];\r\n\t\t\tColor color = new Color((int)(Math.random()*256),(int)(Math.random()*256),(int)(Math.random()*256));\r\n\t\t\tdouble speed = Math.random()*5+1;\r\n\t\t\tcars[i] = new Car(Math.random()*(-SCREEN_WIDTH),Math.random()*SCREEN_HEIGHT,name,color,speed);\r\n\t\t}\r\n\t}", "private void carregarTabela() {\n try {\n\n Vector<String> cabecalho = new Vector();\n cabecalho.add(\"Id\");\n cabecalho.add(\"Nome\");\n cabecalho.add(\"Telefone\");\n cabecalho.add(\"Titular\");\n cabecalho.add(\"Data de Nascimento\");\n\n Vector detalhe = new Vector();\n\n for (Dependente dependente : new NDependente().listar()) {\n Vector<String> linha = new Vector();\n\n linha.add(dependente.getId() + \"\");\n linha.add(dependente.getNome());\n linha.add(dependente.getTelefone());\n linha.add(new NCliente().consultar(dependente.getCliente_id()).getNome());\n linha.add(dependente.getDataNascimento().toString());\n detalhe.add(linha);\n\n }\n\n tblDependentes.setModel(new DefaultTableModel(detalhe, cabecalho));\n\n } catch (Exception e) {\n JOptionPane.showMessageDialog(this, e.getMessage());\n }\n\n }", "public Car() {\n\t\t\tmake = \"GM\";\n\t\t\tyear = 1900;\n\t\t\tmileage= 0;\n\t\t\tcarCost = 0;\n\t\t}", "public Car() {\r\n super();\r\n }", "Rental createRental();", "public static Model createModel(RepositoryConnection connection)\n { \n Graph graph = new GraphRepository(connection) ;\n return ModelFactory.createModelForGraph(graph) ;\n }", "public static Model newOf(Model model) {\n\t\tModel newModel = Model.newOf();\n\t\tnewModel.setTitle(model.getTitle());\n\t\tnewModel.setTableCode(model.getTableCode());\n\t\tnewModel.setDescription(model.getDescription());\n\t\treturn newModel;\n\t}", "public void AddCarGUI(Car newCar){\n \n switch (newCar.path) { \n case 0:\n carModel.addRow(new Object[]{newCar.carId,\"East\",\"West\",newCar.status, newCar.timeLeft});\n break;\n case 1: \n carModel.addRow(new Object[]{newCar.carId,\"East\",\"South\",newCar.status, newCar.timeLeft});\n break; \n case 2: \n carModel.addRow(new Object[]{newCar.carId,\"West\",\"South\",newCar.status, newCar.timeLeft});\n break; \n case 3: \n carModel.addRow(new Object[]{newCar.carId,\"West\",\"East\",newCar.status, newCar.timeLeft}); \n break; \n case 4: \n carModel.addRow(new Object[]{newCar.carId,\"South\",\"East\",newCar.status, newCar.timeLeft}); \n break; \n case 5: \n carModel.addRow(new Object[]{newCar.carId,\"South\",\"West\",newCar.status, newCar.timeLeft});\n break; \n default: \n System.out.println(\"Car not reaching crossing\"); \n break; \n } \n }", "public com.huqiwen.demo.book.model.Books create(long bookId);", "@Override\n public void execute(Realm realm) {\n Book newbook = realm.createObject(Book.class, UUID.randomUUID().toString());\n newbook.setBook_name(newBookName);\n newbook.setAuthor_name(newAuthorName);\n }" ]
[ "0.60008365", "0.59704787", "0.59704787", "0.59704787", "0.59704787", "0.59704787", "0.59704787", "0.59704787", "0.587301", "0.58429927", "0.5666859", "0.566088", "0.564998", "0.56082016", "0.5599159", "0.5596713", "0.5576229", "0.5565854", "0.5540268", "0.5529169", "0.5503381", "0.5497547", "0.5497547", "0.54846233", "0.5442003", "0.543887", "0.5438766", "0.5438632", "0.5434869", "0.5429889", "0.54261583", "0.54135716", "0.53953165", "0.53907114", "0.5375106", "0.5369386", "0.53650534", "0.53637344", "0.5355862", "0.53526217", "0.5335131", "0.5319874", "0.53165066", "0.5312921", "0.53092223", "0.52895975", "0.52636343", "0.5257638", "0.52517855", "0.5246744", "0.5246153", "0.5240309", "0.52398497", "0.5215342", "0.52030814", "0.51989746", "0.5194701", "0.51882315", "0.51874375", "0.5181188", "0.51799285", "0.51781976", "0.51686096", "0.51597345", "0.5157734", "0.51463234", "0.5144079", "0.5143311", "0.5135151", "0.513382", "0.5128184", "0.51152015", "0.5114437", "0.5107525", "0.51062596", "0.50972164", "0.50969625", "0.5093566", "0.50928223", "0.508745", "0.50830203", "0.50817454", "0.50669736", "0.5065884", "0.5064795", "0.50467896", "0.5044329", "0.5042431", "0.5040489", "0.5038493", "0.50307524", "0.5024546", "0.5022813", "0.5022568", "0.5019668", "0.5013165", "0.5012893", "0.50106376", "0.5003623", "0.49955064" ]
0.6100884
0
Create an aliased gara.CarModel table reference
public Carmodel(String alias) { this(alias, CARMODEL); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "FromTableJoin createFromTableJoin();", "TableOrAlias createTableOrAlias();", "FromTable createFromTable();", "public TableDefinition(Class<T> model){\n this.singleton = this;\n this.model = model;\n try {\n OBJECT = Class.forName(model.getName());\n createTableDefinition();\n } catch (Exception e) {\n e.printStackTrace();\n }\n }", "public Mytable(Name alias) {\n this(alias, MYTABLE);\n }", "private void appendPrimaryTableName() {\n super.appendTableName(Constants.FROM, joinQueryInputs.primaryTableName);\n }", "public Model(Name alias) {\n this(alias, MODEL);\n }", "public Mytable(String alias) {\n this(DSL.name(alias), MYTABLE);\n }", "private static AdqlValidator.ValidatorTable\n toValidatorTable( TopcatModel tcModel, final String tname ) {\n StarTable dataTable = tcModel.getDataModel();\n int ncol = dataTable.getColumnCount();\n final AdqlValidator.ValidatorColumn[] vcols =\n new AdqlValidator.ValidatorColumn[ ncol ];\n final AdqlValidator.ValidatorTable vtable =\n new AdqlValidator.ValidatorTable() {\n public String getName() {\n return tname;\n }\n public AdqlValidator.ValidatorColumn[] getColumns() {\n return vcols;\n }\n };\n for ( int ic = 0; ic < ncol; ic++ ) {\n final String cname = dataTable.getColumnInfo( ic ).getName();\n vcols[ ic ] = new AdqlValidator.ValidatorColumn() {\n public String getName() {\n return cname;\n }\n public AdqlValidator.ValidatorTable getTable() {\n return vtable;\n }\n };\n }\n return vtable;\n }", "TableInstance createTableInstance();", "private void appendFullTableNameAndAlias(String stageName) {\n builder.append(getFullTableName(stageName)).append(AS).append(getTableAlias(stageName));\n }", "public TableName name();", "public Model(String alias) {\n this(DSL.name(alias), MODEL);\n }", "tbls createtbls();", "public Carmodel() {\n this(\"CarModel\", null);\n }", "public AgentTable(String alias) {\n this(alias, AGENT);\n }", "ForeignKey createForeignKey();", "TableId table();", "public static String AssetRef_CreateTable()\n\t{\n\t\tString str = \"create table assetref (\" \n\t\t\t\t+ \"id INTEGER PRIMARY KEY,\"\n\t\t\t\t+ \"uniqueId string,\"\n\t\t\t\t+ \"path string,\"\n\t\t\t\t+ \"name string,\"\n\t\t\t\t+ \"size int,\"\n\t\t\t\t+ \"lastChanged time\"\n\t\t\t\t+ \")\";\n\t\treturn str;\t\n\t}", "public void getAllVehicles(DefaultTableModel dataTableModel, String brand, String model) {\n// dataTableModel.setColumnIdentifiers(Vehicle.getVehicleDefinition());\n// dataTableModel.addRow(Vehicle.getVehicleDefinition());\n// ResultSet rs = db.getAllVehicles(brand, model);\n// try {\n// while (rs.next()) {\n Vehicle vehicle = createVehicle(/*rs*/);\n// dataTableModel.addRow(vehicle.vehicleToArray());\n// }\n// } catch (SQLException e) {\n// e.printStackTrace();\n// }\n }", "Table createTable();", "Relation createRelation();", "public static void createLinkTablesForMrefs(Model model, MolgenisOptions options) throws MolgenisModelException\r\n\t{\r\n\t\tlogger.debug(\"add linktable entities for mrefs...\");\r\n\t\t// find the multi-ref fields\r\n\t\tfor (Entity xref_entity_from : model.getEntities())\r\n\t\t{\r\n\r\n\t\t\t// iterate through all fields including those inherited from\r\n\t\t\t// interfaces\r\n\t\t\tfor (Field xref_field_from : xref_entity_from.getImplementedFieldsOf(new MrefField()))\r\n\t\t\t{\r\n\t\t\t\ttry\r\n\t\t\t\t{\r\n\t\t\t\t\t// retrieve the references to the entity+field\r\n\t\t\t\t\tEntity xref_entity_to = xref_field_from.getXrefEntity();\r\n\t\t\t\t\tField xref_field_to = xref_field_from.getXrefField();\r\n\r\n\t\t\t\t\t// TODO: check whether this link is already present\r\n\r\n\t\t\t\t\t// create the new entity for the link, if explicitly named\r\n\t\t\t\t\tString mref_name = xref_field_from.getMrefName(); // explicit\r\n\r\n\t\t\t\t\t// if mref_name longer than 30 throw error\r\n\t\t\t\t\tif (options.db_driver.toLowerCase().contains(\"oracle\") && mref_name.length() > 30)\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tthrow new MolgenisModelException(\"mref_name cannot be longer then 30 characters, found: \"\r\n\t\t\t\t\t\t\t\t+ mref_name);\r\n\t\t\t\t\t}\r\n\r\n\t\t\t\t\t// check if the mref already exists\r\n\t\t\t\t\tEntity mrefEntity = null;\r\n\t\t\t\t\ttry\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tmrefEntity = model.getEntity(mref_name);\r\n\t\t\t\t\t}\r\n\t\t\t\t\tcatch (Exception e)\r\n\t\t\t\t\t{\r\n\t\t\t\t\t}\r\n\r\n\t\t\t\t\t// if mref entity doesn't exist: create\r\n\t\t\t\t\tif (mrefEntity == null)\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tmrefEntity = new Entity(mref_name, mref_name, model.getDatabase());\r\n\t\t\t\t\t\tmrefEntity.setNamespace(xref_entity_from.getNamespace());\r\n\t\t\t\t\t\tmrefEntity.setAssociation(true);\r\n\t\t\t\t\t\tmrefEntity.setDescription(\"Link table for many-to-many relationship '\"\r\n\t\t\t\t\t\t\t\t+ xref_entity_from.getName() + \".\" + xref_field_from.getName() + \"'.\");\r\n\t\t\t\t\t\tmrefEntity.setSystem(true);\r\n\r\n\t\t\t\t\t\t// create id field to ensure ordering\r\n\t\t\t\t\t\tField idField = new Field(mrefEntity, new IntField(), \"autoid\", \"autoid\", true, false, false,\r\n\t\t\t\t\t\t\t\tnull);\r\n\t\t\t\t\t\tidField.setHidden(true);\r\n\t\t\t\t\t\tidField.setDescription(\"automatic id field to ensure ordering of mrefs\");\r\n\t\t\t\t\t\tmrefEntity.addField(idField);\r\n\t\t\t\t\t\tmrefEntity.addKey(idField.getName(), \"unique auto key to ensure ordering of mrefs\");\r\n\r\n\t\t\t\t\t\t// create the fields for the linktable\r\n\t\t\t\t\t\tField field;\r\n\t\t\t\t\t\tVector<String> unique = new Vector<String>();\r\n\r\n\t\t\t\t\t\tfield = new Field(mrefEntity, new XrefField(), xref_field_from.getMrefRemoteid(), null, false,\r\n\t\t\t\t\t\t\t\tfalse, false, null);\r\n\t\t\t\t\t\tfield.setXRefVariables(xref_entity_to.getName(), xref_field_to.getName(),\r\n\t\t\t\t\t\t\t\txref_field_from.getXrefLabelNames());\r\n\t\t\t\t\t\tif (xref_field_from.isXrefCascade()) field.setXrefCascade(true);\r\n\t\t\t\t\t\tmrefEntity.addField(field);\r\n\r\n\t\t\t\t\t\tunique.add(field.getName());\r\n\r\n\t\t\t\t\t\t// add all the key-fields of xref_entity_from\r\n\t\t\t\t\t\tfor (Field key : xref_entity_from.getKeyFields(Entity.PRIMARY_KEY))\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tfield = new Field(mrefEntity, new XrefField(), xref_field_from.getMrefLocalid(), null,\r\n\t\t\t\t\t\t\t\t\tfalse, false, false, null);\r\n\r\n\t\t\t\t\t\t\t// null xreflabel\r\n\t\t\t\t\t\t\tfield.setXRefVariables(xref_entity_from.getName(), key.getName(), null);\r\n\r\n\t\t\t\t\t\t\tmrefEntity.addField(field);\r\n\t\t\t\t\t\t\tunique.add(field.getName());\r\n\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t\t// create the unique combination\r\n\t\t\t\t\t\tmrefEntity.addKey(unique, false, null);\r\n\r\n\t\t\t\t\t}\r\n\t\t\t\t\t// if mrefEntity does not exist, check xref_labels\r\n\t\t\t\t\telse\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\t// field is xref_field, does it have label(s)?\r\n\t\t\t\t\t\tField xrefField = mrefEntity.getAllField(xref_field_to.getName());\r\n\r\n\t\t\t\t\t\t// verify xref_label\r\n\t\t\t\t\t\tif (xrefField != null)\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t// logger.debug(\"adding xref_label \"+xref_field_to.getXrefLabelNames()+\"'back' for \"+xrefField.getName());\r\n\t\t\t\t\t\t\txrefField.setXrefLabelNames(xref_field_from.getXrefLabelNames());\r\n\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\r\n\t\t\t\t\t// set the linktable reference in the xref-field\r\n\t\t\t\t\txref_field_from.setMrefName(mrefEntity.getName());\r\n\t\t\t\t}\r\n\t\t\t\tcatch (Exception e)\r\n\t\t\t\t{\r\n\t\t\t\t\te.printStackTrace();\r\n\t\t\t\t\tSystem.exit(-1);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t}", "public OntModel convertInstancesToOWL(Connection conn, OntModel ontModel) throws SQLException {\n String sqlStmt = \"SELECT \" + columns.get(0).getName();\r\n for (int i = 1; i < columns.size(); i++) {\r\n sqlStmt += \", \" + columns.get(i).getName();\r\n }\r\n sqlStmt += \" FROM \" + name;\r\n ///XXX ER Disabled limit because some associations doesn't work\r\n ///sqlStmt += \" LIMIT 10\";\r\n \r\n PreparedStatement preparedStmt = conn.prepareStatement(sqlStmt);\r\n ResultSet rs = preparedStmt.executeQuery();\r\n if (rs != null) {\r\n ResultSetMetaData rsmd = rs.getMetaData();\r\n int colsCount = rsmd.getColumnCount();\r\n while (rs.next()) {\r\n // First iteration cycle: Compose instance URI of PK columns values only\r\n // If table does not have primary keys, concatenate values of ALL columns\r\n String instanceUri = RDBNamingUtility.getInstanceURI(database.getName(), name);\r\n for (int i = 1; i <= colsCount; i++) {\r\n if (primaryKeyColumns.size() != 0 \r\n && getPrimaryKeyColumn(rsmd.getColumnName(i)) == null)\r\n continue;\r\n ///XXX ER Replaced colVal to check null values\r\n //String colVal = rs.getString(i).replace(\" \", \"_\");\r\n String colVal = (rs.getString(i) == null) ? \"\" : rs.getString(i).replace(\" \", \"_\");\r\n instanceUri += \"_\" + colVal;\r\n }\r\n // Create instance\r\n Individual ontInst = ontModel.createIndividual(instanceUri, ontModel.getOntClass(RDBNamingUtility.getClassURI(database.getName(), name)));\r\n \r\n // 2. Second iteration cycle: Instantiate datatype properties of each column\r\n for (int i = 1; i <= colsCount; i++) {\r\n String colName = rsmd.getColumnName(i);\r\n ///XXX ER Replace next line\r\n //String colVal = rs.getString(i);\r\n String colVal = (rs.getString(i) == null) ? \"\" : rs.getString(i);\r\n ontInst.addProperty(ontModel.getProperty(RDBNamingUtility.getDTPropURI(database.getName(), colName)), \r\n colVal,\r\n RDBNamingUtility.getXsdDataType(getColumn(colName).getType()));\r\n }\r\n }\r\n rs.close();\r\n }\r\n preparedStmt.close();\r\n \r\n return ontModel;\r\n }", "public String getReferencedTableName();", "public interface CarTable {\r\n\r\n\tCar getCar();\r\n\tvoid setCar(Car car);\r\n\t\r\n\tint getMaxX();\r\n\tint getMaxY();\r\n}", "private String createLabelTableSQL()\n\t{\n\t\treturn \"LABEL ON TABLE \" + getFullPath() + \" IS '\" + SQLToolbox.cvtToSQLFieldColHdg(function.getLabel()) + \"'\";\n\t}", "public interface PathAliasHandler {\n String toAliasedColumn(FieldExpression fieldExpression);\n}", "@Override\n\tprotected String getTableName() {\n\t\treturn super.getTableName();\n\t}", "public ExampleTable toExampleTable() { return new ExampleTableImpl(this); }", "public void setup() {\r\n // These setters could be used to override the default.\r\n // this.setDatabasePolicy(new null());\r\n // this.setJDBCHelper(JDBCHelperFactory.create());\r\n this.setTableName(\"chm62edt_habitat_syntaxa\");\r\n this.setTableAlias(\"A\");\r\n this.setReadOnly(true);\r\n\r\n this.addColumnSpec(\r\n new CompoundPrimaryKeyColumnSpec(\r\n new StringColumnSpec(\"ID_HABITAT\", \"getIdHabitat\",\r\n \"setIdHabitat\", DEFAULT_TO_ZERO, NATURAL_PRIMARY_KEY),\r\n new StringColumnSpec(\"ID_SYNTAXA\", \"getIdSyntaxa\",\r\n \"setIdSyntaxa\", DEFAULT_TO_EMPTY_STRING,\r\n NATURAL_PRIMARY_KEY)));\r\n this.addColumnSpec(\r\n new StringColumnSpec(\"RELATION_TYPE\", \"getRelationType\",\r\n \"setRelationType\", DEFAULT_TO_NULL));\r\n this.addColumnSpec(\r\n new StringColumnSpec(\"ID_SYNTAXA_SOURCE\", \"getIdSyntaxaSource\",\r\n \"setIdSyntaxaSource\", DEFAULT_TO_EMPTY_STRING, REQUIRED));\r\n\r\n JoinTable syntaxa = new JoinTable(\"chm62edt_syntaxa B\", \"ID_SYNTAXA\",\r\n \"ID_SYNTAXA\");\r\n\r\n syntaxa.addJoinColumn(new StringJoinColumn(\"NAME\", \"setSyntaxaName\"));\r\n syntaxa.addJoinColumn(new StringJoinColumn(\"AUTHOR\", \"setSyntaxaAuthor\"));\r\n this.addJoinTable(syntaxa);\r\n\r\n JoinTable syntaxasource = new JoinTable(\"chm62edt_syntaxa_source C\",\r\n \"ID_SYNTAXA_SOURCE\", \"ID_SYNTAXA_SOURCE\");\r\n\r\n syntaxasource.addJoinColumn(new StringJoinColumn(\"SOURCE\", \"setSource\"));\r\n syntaxasource.addJoinColumn(\r\n new StringJoinColumn(\"SOURCE_ABBREV\", \"setSourceAbbrev\"));\r\n syntaxasource.addJoinColumn(new IntegerJoinColumn(\"ID_DC\", \"setIdDc\"));\r\n this.addJoinTable(syntaxasource);\r\n }", "AliasStatement createAliasStatement();", "@Test\n public void testAliasedTableColumns()\n {\n assertEquals(\n runner.execute(\"SELECT * FROM orders AS t (a, b, c, d, e, f, g, h, i)\"),\n runner.execute(\"SELECT * FROM orders\"));\n }", "BTable createBTable();", "String tableName2Name(String name);", "public Curso model2entity (CursoModel cursoModel) {\r\n\t\tCurso curso = new Curso();\r\n\t\tcurso.setNombre(cursoModel.getNombre());\r\n\t\tcurso.setDescripcion(cursoModel.getDescripcion());\r\n\t\tcurso.setHoras(cursoModel.getHoras());\r\n\t\tcurso.setPrecio(cursoModel.getPrecio());\r\n\t\treturn curso;\r\n\t\t\r\n\t}", "private static HashMap<String,String> buildColumnMapCar() {\r\n HashMap<String,String> map = new HashMap<String,String>();\r\n map.put(KEY_POINTS, KEY_POINTS);\r\n\r\n map.put(BaseColumns._ID, \"rowid AS \" +\r\n BaseColumns._ID);\r\n\r\n return map;\r\n }", "public static void createCarFeaturesTable() throws SQLException {\n\t\tConnection conn = null;\n\t\tStatement stmt = null;\n\t\tResultSet rs = null;\n\t\tString create = \"CREATE TABLE \" + carFeaturesTable + \"(\" +\n\t\t\t\tcarFeaturesIDCol + \" INTEGER PRIMARY KEY GENERATED ALWAYS AS IDENTITY (START WITH 1, INCREMENT BY 1), \" +\n\t\t\t\tvinNumberIDCol + \" VARCHAR(17), \"+\n\t\t\t\tfeatureIDCol + \" INTEGER, \" +\n\t\t\t\t\"FOREIGN KEY (\" + vinNumberIDCol + \") REFERENCES \" + carsTable +\" (\" + vinNumberIDCol + \"), \" +\n\t\t\t\t\"FOREIGN KEY (\" + featureIDCol + \") REFERENCES \" + featuresTable +\" (\" + featureIDCol + \"))\";\n\t\t\t\t\t\t\t\t\n\t\ttry {\n\t\t\tconn = DriverManager.getConnection(connString);\n\t\t\trs = conn.getMetaData().getTables(null, null, carFeaturesTable.toUpperCase(), new String[] {\"TABLE\"});\n\t\t\tif(rs.next()) {\n\t\t\t\treturn;\n\t\t\t}\n\t\t\tstmt = conn.createStatement();\n\t\t\tstmt.executeUpdate(create);\n\t\t} catch (SQLException e) {\n\t\t\tSystem.out.println(\"Something is wrong with the createCarFeaturesTable database connection...\");\n\t\t\te.printStackTrace();\n\t\t}finally {\n\t\t\ttry {\n\t\t\t\tif(stmt != null)\n\t\t\t\t\tstmt.close();\n\t\t\t\tif(conn != null)\n\t\t\t\t\tconn.close();\n\t\t\t}\n\t\t\tcatch(SQLException e) {\n\t\t\t\tthrow e;\n\t\t\t}\n\t }\n\t}", "private void populateTable() {\n \n DefaultTableModel dtm = (DefaultTableModel) tblAllCars.getModel();\n dtm.setRowCount(0);\n \n for(Car car : carFleet.getCarFleet()){\n \n Object[] row = new Object[8];\n row[0]=car.getBrandName();\n row[1]=car.getModelNumber();\n row[2]=car.getSerialNumber();\n row[3]=car.getMax_seats();\n row[4]=car.isAvailable();\n row[5]=car.getYearOfManufacturing();\n row[6]=car.isMaintenenceCerticateExpiry();\n row[7]=car.getCity();\n \n dtm.addRow(row);\n \n }\n }", "public interface RdbModel {\n\n public Object setThisModelFields(CrawlerData data);\n public InsertSqlModel insertSqlModelBuilder(String tableName);\n}", "public void insertClassNameIntoMaster(String tableName, String className) throws RelationException;", "Table8 create(Table8 table8);", "public TwoTieredTable(String name) \n\t{\n\t\tthis.name = name;\n\t}", "public DynamicSchemaTable(String alias) {\n this(alias, DYNAMIC_SCHEMA);\n }", "public void loadAllManufacturesTable(){\n \n \n try {\n String query = \"SELECT manufacture.maID as 'Manufacture ID', name as 'Manufacture Name', address as 'Manufacture Address', email as 'Manufacture Email', manufacture_phone.phone as 'Phone' FROM manufacture left outer join manufacture_phone ON manufacture.maID=manufacture_phone.maID ORDER BY manufacture.maID\";\n ps = connection.prepareStatement(query);\n rs = ps.executeQuery();\n \n allManufactureTable.setModel(DbUtils.resultSetToTableModel(rs));\n \n //change row height\n allManufactureTable.setRowHeight(30);\n \n //change column width of column two\n /* TableColumnModel columnModel = allManufactureTable.getColumnModel();\n columnModel.getColumn(0).setPreferredWidth(10);\n columnModel.getColumn(1).setPreferredWidth(70);\n columnModel.getColumn(2).setPreferredWidth(5);\n columnModel.getColumn(3).setPreferredWidth(70); */\n \n } catch (SQLException ex) {\n Logger.getLogger(viewAllBrands.class.getName()).log(Level.SEVERE, null, ex);\n }\n }", "TABLE createTABLE();", "public String getNextTableSqlAlias() {\n return \"t\"+(aliasCounter++);\n }", "private ICarModel ICarModel(Car car) {\r\n\t\t// TODO Auto-generated method stub\r\n\t\treturn null;\r\n\t}", "public static Model newOf(Model model) {\n\t\tModel newModel = Model.newOf();\n\t\tnewModel.setTitle(model.getTitle());\n\t\tnewModel.setTableCode(model.getTableCode());\n\t\tnewModel.setDescription(model.getDescription());\n\t\treturn newModel;\n\t}", "@Override\n public void resolveReferences(WdkModel model) throws WdkModelException {\n if ((_aliasQueryRef == null ? 0 : 1) + (_aliasPluginClassName == null ? 0 : 1) != 1) {\n throw new WdkModelException(\"Primary key definition of record class '\" +\n _recordClass.getFullName() + \"' must have exactly one of 'aliasQueryRef' or 'aliasPluginClassName'\");\n }\n\n // if alias query specified, resolve/prepare it and create query based plugin\n if (_aliasQueryRef != null) {\n Query aliasQuery = QueryBasedPrimaryKeyAliasPlugin\n .prepareAliasQuery(_aliasQueryRef, getColumnRefs(), _recordClass);\n _aliasPlugin = new QueryBasedPrimaryKeyAliasPlugin(aliasQuery);\n }\n\n // otherwise, resolve the configured alias plugin\n else {\n try {\n _aliasPlugin = Class\n .forName(_aliasPluginClassName)\n .asSubclass(PrimaryKeyAliasPlugin.class)\n .getDeclaredConstructor()\n .newInstance();\n }\n catch (InstantiationException | IllegalAccessException | IllegalArgumentException |\n InvocationTargetException | NoSuchMethodException | SecurityException | ClassNotFoundException e) {\n throw new WdkModelException(\"Failed instantiating aliasPlugin for class \" + _aliasPluginClassName, e);\n }\n }\n }", "private void reloadShoppingCarTable() {\n\t\t\r\n\t}", "Table getBaseTable();", "public interface LoaiPhongVanBanNoiBoModel extends BaseModel {\n public LoaiPhongVanBanNoiBoPK getPrimaryKey();\n\n public void setPrimaryKey(LoaiPhongVanBanNoiBoPK pk);\n\n public long getLoaiVanBanNoiBoId();\n\n public void setLoaiVanBanNoiBoId(long loaiVanBanNoiBoId);\n\n public long getPhongVanBanNoiBoId();\n\n public void setPhongVanBanNoiBoId(long phongVanBanNoiBoId);\n\n public LoaiPhongVanBanNoiBo toEscapedModel();\n}", "private Builder() {\n super(org.apache.gora.cascading.test.storage.TestRow.SCHEMA$);\n }", "public String getTable() {\n return \"museum_taxon\";\n }", "Column referencedColumn();", "Table getReferencedTable();", "CsticModel createInstanceOfCsticModel();", "public ClassSQLContract(SQLTagsGeneratorTable sqlTagsGeneratorTable){\n //---------------------------------------------------------------------------\n this.sqlTagsGeneratorTable=sqlTagsGeneratorTable;\n this.tableName=sqlTagsGeneratorTable.getTableName();\n createClassSQLContract();\n }", "public From table(String table) {\r\n\t\tString alias = null;\r\n\t\tif (table.toUpperCase()\r\n\t\t\t\t.contains(\" AS \"))\r\n\t\t\ttable = table.replaceAll(\"\\\\s+[Aa][Ss]\\\\s+\", \" \");\r\n\t\tfinal String[] parts = table.split(\"\\\\s+\");\r\n\t\tif (parts.length > 1) {\r\n\t\t\ttable = parts[0];\r\n\t\t\talias = parts[1];\r\n\t\t}\r\n\t\torigins.add(new FromOrigin().table(table)\r\n\t\t\t\t.alias(alias));\r\n\t\treturn this;\r\n\t}", "Table getTable();", "OrTable createOrTable();", "public void crearModelo() {\n modeloagr = new DefaultTableModel(null, columnasAgr) {\n public boolean isCellEditable(int fila, int columna) {\n return false;\n }\n };\n tbl.llenarTabla(AgendarA.tblAgricultor, modeloagr, columnasAgr.length, \"SELECT idPersonalExterno,cedula,CONCAT(nombres,' ',apellidos),municipios.nombre,telefono,telefono2,telefono3 FROM personalexterno,municipios WHERE tipo='agricultor' AND personalexterno.idMunicipio=municipios.idMunicipio\");\n tbl.alinearHeaderTable(AgendarA.tblAgricultor, headerColumnas);\n tbl.alinearCamposTable(AgendarA.tblAgricultor, camposColumnas);\n tbl.rowNumberTabel(AgendarA.tblAgricultor);\n }", "@Override\n\tpublic String getTableName() {\n\t\treturn \"DMDB.GY_DM_ZJLX\";\n\t}", "public interface ISQLiteJoinTableCreator {\n\n}", "public CursoModel entity2model (Curso curso) {\r\n\t\t\r\n\t\tCursoModel cursoModel = new CursoModel();\r\n\t\t\r\n\t\tcursoModel.setNombre(curso.getNombre());\r\n\t\tcursoModel.setDescripcion(curso.getDescripcion());\r\n\t\tcursoModel.setHoras(curso.getHoras());\r\n\t\tcursoModel.setPrecio(curso.getPrecio());\r\n\t\t\r\n\t\treturn cursoModel;\r\n\t}", "ReferenceTreatment createReferenceTreatment();", "ColumnOrAlias createColumnOrAlias();", "@Override\n public Map<String, String> createFieldToPropertyMapping() {\n final Map<String, String> mapping = super.createFieldToPropertyMapping();\n mapping.put(this.tableName + \".rsres_id\", \"id\");\n mapping.put(this.tableName + \".resource_id\", \"resourceId\");\n mapping.put(this.tableName + \".quantity\", QUANTITY);\n mapping.put(this.tableName + \".cost_rsres\", \"cost\");\n\n return mapping;\n }", "@SuppressWarnings({\"unchecked\", \"fallthrough\"})\n public static Class<? extends DataObject> modelFromTables(Connection connection, String classname, Action action, String... tablenames) throws Exception {\n\n /*\n SQL generation\n\n INSERT INTO T ( cols ) VALUES ( vals );\n UPDATE T SET cols WHERE vals;\n DELETE FROM T WHERE vals;\n SELECT * FROM cols WHERE vals;\n */\n\n ClassPool pool = ClassPool.getDefault();\n // this line is necessary for web applications (web container class loader in play)\n pool.appendClassPath(new LoaderClassPath(org.xillium.data.DataObject.class.getClassLoader()));\n\n CtClass cc = pool.makeClass(classname);\n cc.addInterface(pool.getCtClass(\"org.xillium.data.DataObject\"));\n ConstPool cp = cc.getClassFile().getConstPool();\n\n List<String> fragments = new ArrayList<String>();\n Set<String> unique = new HashSet<String>();\n\n/*SQL*/ StringBuilder\n cols = new StringBuilder(), // CREATE: COLUMNS, RETRIEVE: TABLES, UPDATE: SET CLAUSES, DELETE: (not used), SEARCH: TABLES\n vals = new StringBuilder(), // CREATE: VALUES, RETRIEVE: COND'S, UPDATE: COND'S, DELETE: COND'S, SEARCH: COND'S\n flds = new StringBuilder();\n\n // for SEARCH only\n Map<String, List<Pair<Integer, Integer>>> voptional = new HashMap<String, List<Pair<Integer, Integer>>>();\n Map<String, List<Pair<Integer, Integer>>> foptional = new HashMap<String, List<Pair<Integer, Integer>>>();\n Map<String, String> nametrans = new HashMap<String, String>();\n\n DatabaseMetaData meta = connection.getMetaData();\n String schema = meta.getUserName();\n List<String> dominant = new ArrayList<String>();\n\n for (int i = 0; i < tablenames.length; ++i) {\n // Dominant tables are recognized and maintained in 'dominant' list\n if (tablenames[i].charAt(0) == DOMINANT_INDICATOR) {\n tablenames[i] = tablenames[i].substring(1);\n dominant.add(tablenames[i]);\n }\n\n PreparedStatement stmt = connection.prepareStatement(\"SELECT * FROM \" + tablenames[i]);\n ResultSetMetaData rsmeta = stmt.getMetaData();\n Map<String, Integer> colref = new HashMap<String, Integer>();\n for (int j = 1, jj = rsmeta.getColumnCount(); j <= jj; ++j) {\n colref.put(rsmeta.getColumnLabel(j), new Integer(j));\n }\n\n Set<String> primaryKeys = new HashSet<String>();\n ResultSet keys = meta.getPrimaryKeys(connection.getCatalog(), schema, tablenames[i]);\n while (keys.next()) {\n primaryKeys.add(keys.getString(PKEY_COLUMN));\n }\n keys.close();\n\n // RETRIEVE is not compatible with tables without a primary key\n if (primaryKeys.isEmpty() && action.op == Operation.RETRIEVE) {\n throw new RuntimeException(\"Primary key expected for RETRIEVE command, but missing on table \" + tablenames[i]);\n }\n\n // ISA keys and table join conditions\n Set<String> isaKeys = new HashSet<String>();\n if (i > 0) {\n keys = meta.getImportedKeys(connection.getCatalog(), schema, tablenames[i]);\n while (keys.next()) {\n String jointable = null;\n for (int j = 0; j < i; ++j) {\n if (keys.getString(FKEY_REFERENCED_TABLE).equals(tablenames[j])) {\n jointable = tablenames[j];\n break;\n }\n }\n if (jointable != null) {\n String column = keys.getString(FKEY_REFERENCING_COLUMN);\n isaKeys.add(column);\n if (action.op == Operation.RETRIEVE || action.op == Operation.SEARCH) {\n /*SQL*/ vals.append(tablenames[i]).append('.').append(column).append('=').append(jointable).append('.').append(column).append(\" AND \");\n }\n }\n }\n keys.close();\n }\n\n String alias = ((action.op == Operation.RETRIEVE || action.op == Operation.SEARCH) && tablenames.length > 1) ? tablenames[i]+'.' : \"\";\n\n if (action.op != Operation.RETRIEVE && action.op != Operation.SEARCH) {\n cols.setLength(0);\n vals.setLength(0);\n flds.setLength(0);\n } else {\n /*SQL*/ if (cols.length() > 0) cols.append(',');\n /*SQL*/ cols.append(tablenames[i]);\n }\n\n // Go through all columns in action.args for UPDATE and SEARCH operations\n Set<String> requested = new HashSet<String>();\n Set<String> required = new HashSet<String>();\n if (action.op == Operation.UPDATE) {\n // UPDATE: the elements in the SET clause => cols\n for (String column: calcUpdateColumns(action.args, colref, primaryKeys)) {\n // skip all key columns, which might be legally included through the restriction list\n if (primaryKeys.contains(column)) continue;\n // ... and SET others\n Integer idx = colref.get(column);\n if (idx != null) {\n /*SQL*/ if (cols.length() > 0) cols.append(',');\n /*SQL*/ String restriction = action.restriction == null ? null : action.restriction.get(column);\n if (restriction == null) {\n boolean reqd = action.isRequired(column);\n if (reqd) {\n /*SQL*/ cols.append(column).append(\"=?\");\n } else {\n /*SQL*/ cols.append(column).append(\"=COALESCE(?,\").append(column).append(')');\n }\n /*SQL*/ if (flds.length() > 0) flds.append(',');\n flds.append(fieldName(tablenames[i], column)).append(':').append(rsmeta.getColumnType(idx.intValue()));\n requested.add(column);\n if (reqd) required.add(column);\n } else {\n /*SQL*/ cols.append(column).append('=').append(restriction);\n }\n }\n }\n } else if (action.op == Operation.SEARCH && action.args != null) {\n // SEARCH: the elements in the WHERE clause => vals\n for (int c = 0; c < action.args.length; ++c) {\n // skip all ISA columns, which might be legally included through the restriction list\n if (isaKeys.contains(action.args[c])) continue;\n // else ...\n Integer idx = colref.get(action.args[c]);\n if (idx != null) {\n /*SQL*/ String restriction = action.restriction == null ? null : action.restriction.get(action.args[c]);\n /*SQL*/ if (restriction == null || restriction.charAt(0) == NEGATIVE_INDICATOR) {\n if (restriction != null) {\n /*SQL*/ vals.append(tablenames[i]).append('.').append(action.args[c]).append(\"<>\").append(restriction.substring(1)).append(\" AND \");\n }\n int vstart = vals.length(), fstart = flds.length();\n /*SQL*/ vals.append(tablenames[i]).append('.').append(action.args[c]).append(action.cmps[c]).append(\"? AND \");\n flds.append(fieldName(tablenames[i], action.args[c])).append(':').append(rsmeta.getColumnType(idx.intValue())).append(',');\n if (!action.reqd[c]) {\n traceOptional(voptional, action.args[c], vstart, vals.length());\n traceOptional(foptional, action.args[c], fstart, flds.length());\n }\n requested.add(action.args[c]);\n if (action.reqd[c]) required.add(action.args[c]);\n } else {\n /*SQL*/ vals.append(tablenames[i]).append('.').append(action.args[c]).append('=').append(restriction).append(\" AND \");\n }\n }\n }\n }\n\n ResultSet columns = meta.getColumns(connection.getCatalog(), schema, tablenames[i], \"%\");\n columns:while (columns.next()) {\n String name = columns.getString(COLUMN_NAME), fname = fieldName(tablenames[i], name);\n int idx = colref.get(name).intValue();\n\n if ((action.op == Operation.RETRIEVE || action.op == Operation.DELETE) && !primaryKeys.contains(name)) {\n continue;\n } else if (action.op == Operation.UPDATE && !requested.contains(name) && !primaryKeys.contains(name)) {\n continue;\n } else if (action.op == Operation.SEARCH && !requested.contains(name)) {\n continue;\n }\n\n /*SQL*/ String restriction = action.restriction == null ? null : action.restriction.get(name);\n switch (action.op) {\n case CREATE:\n if (action.args != null) for (int j = 0; j < action.args.length; ++j) {\n if (action.args[j].equals(name)) continue columns;\n }\n /*SQL*/ if (cols.length() > 0) {\n /*SQL*/ cols.append(',');\n /*SQL*/ vals.append(',');\n /*SQL*/ }\n /*SQL*/ cols.append(name);\n /*SQL*/ if (restriction == null || restriction.charAt(0) == NEGATIVE_INDICATOR) {\n /*SQL*/ vals.append('?');\n /*SQL*/ if (flds.length() > 0) flds.append(',');\n flds.append(fname).append(':').append(rsmeta.getColumnType(idx));\n } else {\n /*SQL*/ vals.append(restriction);\n }\n break;\n case RETRIEVE:\n if (i > 0) {\n // NOTE: ISA relation dictates that sub-tables' primary key == super-table's primary key\n // therefore the join condition generated above is sufficient already\n break;\n }\n // fall through for the super-table\n case DELETE:\n // only primary key columns\n generateCondition(restriction, vals, flds, alias + name, fname, rsmeta.getColumnType(idx));\n break;\n case UPDATE:\n // only primary key & updating columns\n if (primaryKeys.contains(name)) {\n generateCondition(restriction, vals, flds, name, fname, rsmeta.getColumnType(idx));\n }\n break;\n case SEARCH:\n // file optionals lists under field names\n nametrans.put(name, fname);\n voptional.put(fname, voptional.get(name));\n foptional.put(fname, foptional.get(name));\n break;\n }\n\n if ((restriction != null && restriction.charAt(0) != NEGATIVE_INDICATOR) || isaKeys.contains(name)) {\n continue;\n } else if (unique.contains(name)) {\n continue;\n //throw new RuntimeException(\"Duplicate column in ISA relationship detected \" + tablenames[i] + ':' + name);\n } else {\n unique.add(name);\n }\n\n CtField field = new CtField(pool.getCtClass(MetaDataHelper.getClassName(rsmeta, idx)), fname, cc);\n field.setModifiers(java.lang.reflect.Modifier.PUBLIC);\n AnnotationsAttribute attr = new AnnotationsAttribute(cp, AnnotationsAttribute.visibleTag);\n\n if (required.contains(name)) {\n addAnnotation(attr, cp, \"org.xillium.data.validation.required\");\n } else if (columns.getInt(IS_NULLABLE) == DatabaseMetaData.attributeNoNulls) {\n if ((action.op != Operation.UPDATE || primaryKeys.contains(name)) && action.op != Operation.SEARCH) {\n addAnnotation(attr, cp, \"org.xillium.data.validation.required\");\n }\n }\n\n if (rsmeta.getPrecision(idx) != 0) {\n addAnnotation(attr, cp, \"org.xillium.data.validation.size\", \"value\", new IntegerMemberValue(cp, rsmeta.getPrecision(idx)));\n }\n\n addAnnotation(attr, cp, \"org.xillium.data.persistence.crud.tablename\", \"value\", new StringMemberValue(tablenames[i], cp));\n\n field.getFieldInfo().addAttribute(attr);\n cc.addField(field);\n }\n columns.close();\n stmt.close();\n\n switch (action.op) {\n case CREATE:\n fragments.add(\"org.xillium.data.persistence.ParametricStatement\");\n fragments.add(flds.toString());\n fragments.add(\"INSERT INTO \" + tablenames[i] + '(' + cols.toString() + \") VALUES(\" + vals.toString() + ')');\n fragments.add(Strings.toCamelCase(tablenames[i], '_'));\n break;\n case UPDATE:\n if (cols.length() > 0) {\n fragments.add(\"org.xillium.data.persistence.ParametricStatement\");\n fragments.add(flds.toString());\n fragments.add(\"UPDATE \" + tablenames[i] + \" SET \" + cols.toString() + \" WHERE \" + vals.toString().replaceAll(\" AND *$\", \"\"));\n fragments.add(Strings.toCamelCase(tablenames[i], '_'));\n }\n break;\n case DELETE:\n fragments.add(\"org.xillium.data.persistence.ParametricStatement\");\n fragments.add(flds.toString());\n fragments.add(\"DELETE FROM \" + tablenames[i] + \" WHERE \" + vals.toString().replaceAll(\" AND *$\", \"\"));\n fragments.add(Strings.toCamelCase(tablenames[i], '_'));\n break;\n case RETRIEVE:\n case SEARCH:\n break;\n }\n }\n\n if (action.op == Operation.RETRIEVE) {\n fragments.add(\"org.xillium.data.persistence.ParametricQuery\");\n fragments.add(flds.toString());\n fragments.add(\"SELECT \" + selectTarget(dominant) + \" FROM \" + cols + \" WHERE \" + vals.toString().replaceAll(\" AND *$\", \"\"));\n fragments.add(\"\");\n } else if (action.op == Operation.SEARCH) {\n if (action.opts != null) {\n for (int i = 0; i < action.opts.length; ++i) {\n action.opts[i] = nametrans.get(action.opts[i]);\n }\n int count = 1 << action.opts.length;\n\n String vtext = vals.toString(), ftext = flds.toString();\n for (int i = 0; i < count; ++i) {\n char[] vchars = vtext.toCharArray(), fchars = ftext.toCharArray();\n for (int j = 0; j < action.opts.length; ++j) {\n List<Pair<Integer, Integer>> vlist = voptional.get(action.opts[j]);\n List<Pair<Integer, Integer>> flist = foptional.get(action.opts[j]);\n if (vlist == null || flist == null) {\n throw new RuntimeException(\"Column{\"+action.opts[j]+\"}NotInRelevantTables\");\n }\n if ((i & (1 << j)) == 0) {\n for (Pair<Integer, Integer> part: vlist) Arrays.fill(vchars, part.first, part.second, ' ');\n for (Pair<Integer, Integer> part: flist) Arrays.fill(fchars, part.first, part.second, ' ');\n }\n }\n\n fragments.add(\"org.xillium.data.persistence.ParametricQuery\");\n fragments.add(new String(fchars).replaceAll(\"\\\\s+\", \" \"));\n String vals0 = new String(vchars).replaceAll(\"\\\\s+\", \" \").replaceAll(\" AND *$\", \"\").trim();\n if (vals0.length() > 0) {\n fragments.add(\"SELECT \" + selectTarget(dominant) + \" FROM \" + cols + \" WHERE \" + vals0);\n } else {\n fragments.add(\"SELECT \" + selectTarget(dominant) + \" FROM \" + cols);\n }\n fragments.add(\"\");\n }\n } else {\n fragments.add(\"org.xillium.data.persistence.ParametricQuery\");\n fragments.add(flds.toString());\n if (vals.length() > 0) {\n fragments.add(\"SELECT \" + selectTarget(dominant) + \" FROM \" + cols + \" WHERE \" + vals.toString().replaceAll(\" AND *$\", \"\"));\n } else {\n fragments.add(\"SELECT \" + selectTarget(dominant) + \" FROM \" + cols);\n }\n fragments.add(\"\");\n }\n }\n\n CtField field = new CtField(pool.getCtClass(\"org.xillium.data.persistence.ParametricStatement[]\"), STATEMENT_FIELD_NAME, cc);\n field.setModifiers(java.lang.reflect.Modifier.PUBLIC | java.lang.reflect.Modifier.STATIC | java.lang.reflect.Modifier.FINAL);\n cc.addField(field, CtField.Initializer.byCallWithParams(\n pool.getCtClass(CrudCommand.class.getName()), \"buildStatements\", fragments.toArray(new String[fragments.size()])\n ));\n\n return (Class<? extends DataObject>)cc.toClass(CrudCommand.class.getClassLoader(), CrudCommand.class.getProtectionDomain());\n }", "public void createVirtualTable(){\n\n\t\t\n\t\tif(DBHandler.getConnection()==null){\n\t\t\treturn;\n\t\t}\n\n\t\tif(DBHandler.tableExists(name())){\n\t\t\treturn;\n\t\t}\n\t\t\n\t\ttry {\n\t\t\tStatement s = DBHandler.getConnection().createStatement();\n\t\t\ts.execute(\"create virtual table \"+name()+\" using fts4(\"+struct()+\")\");\n\n\t\t} catch (SQLException e) {\n\t\t\te.printStackTrace();\n\t\t\tMainFrame.print(e.getMessage());\n\t\t}\n\t}", "public String insertSelective(Car record) {\n SQL sql = new SQL();\n sql.INSERT_INTO(\"`basedata_car`\");\n \n if (record.getCarId() != null) {\n sql.VALUES(\"car_id\", \"#{carId,jdbcType=INTEGER}\");\n }\n \n if (record.getCarBrandId() != null) {\n sql.VALUES(\"car_brand_id\", \"#{carBrandId,jdbcType=INTEGER}\");\n }\n \n if (record.getCarModel() != null) {\n sql.VALUES(\"car_model\", \"#{carModel,jdbcType=VARCHAR}\");\n }\n \n if (record.getCarType() != null) {\n sql.VALUES(\"car_type\", \"#{carType,jdbcType=TINYINT}\");\n }\n \n if (record.getAlias() != null) {\n sql.VALUES(\"alias\", \"#{alias,jdbcType=VARCHAR}\");\n }\n \n if (record.getSeatType() != null) {\n sql.VALUES(\"seat_type\", \"#{seatType,jdbcType=TINYINT}\");\n }\n \n if (record.getSeatNum() != null) {\n sql.VALUES(\"seat_num\", \"#{seatNum,jdbcType=TINYINT}\");\n }\n \n if (record.getCarClass() != null) {\n sql.VALUES(\"car_class\", \"#{carClass,jdbcType=INTEGER}\");\n }\n \n if (record.getGuestNum() != null) {\n sql.VALUES(\"guest_num\", \"#{guestNum,jdbcType=INTEGER}\");\n }\n \n if (record.getLuggageNum() != null) {\n sql.VALUES(\"luggage_num\", \"#{luggageNum,jdbcType=INTEGER}\");\n }\n \n if (record.getSpell() != null) {\n sql.VALUES(\"spell\", \"#{spell,jdbcType=VARCHAR}\");\n }\n \n if (record.getEnName() != null) {\n sql.VALUES(\"en_name\", \"#{enName,jdbcType=VARCHAR}\");\n }\n \n if (record.getUpdatedAt() != null) {\n sql.VALUES(\"updated_at\", \"#{updatedAt,jdbcType=TIMESTAMP}\");\n }\n \n if (record.getCreatedAt() != null) {\n sql.VALUES(\"created_at\", \"#{createdAt,jdbcType=TIMESTAMP}\");\n }\n \n return sql.toString();\n }", "void setDataModelOracle( Path project,\n DataModelOracle oracle );", "@Override\r\n\tprotected String getTable() {\n\t\treturn TABLE;\r\n\t}", "public interface TableDefinition extends BaseColumns {\n\n String tableName();\n\n String createStatement();\n\n String dropStatement();\n \n}", "@Override\n\tpublic String getTableName() {\n\t\tString sql=\"dip_dataurl\";\n\t\treturn sql;\n\t}", "@Mapper(componentModel = \"spring\", uses = {})\npublic interface Owner3Mapper extends EntityMapper <Owner3DTO, Owner3> {\n \n @Mapping(target = \"car3S\", ignore = true)\n Owner3 toEntity(Owner3DTO owner3DTO); \n default Owner3 fromId(Long id) {\n if (id == null) {\n return null;\n }\n Owner3 owner3 = new Owner3();\n owner3.setId(id);\n return owner3;\n }\n}", "@Override\r\n\tpublic String getTableName() {\n\t\treturn \"contract\";\r\n\t}", "static String getAlterArtifactInstancesAddAccountIdConstraintTemplate() {\n // Each \"%s\" will be replaced with the relevant TYPE_instances table name.\n return \"ALTER TABLE %s\"\n + \" ADD CONSTRAINT account_id_fk foreign key (account_id) references accounts(id)\";\n }", "public abstract List<CarTO> findCarByModel(String model);", "public Table<Integer, Integer, String> getAnonymizedData();", "public PgTable(final String name) {\n this.name = name;\n }", "public void setDbTable(String v) {this.dbTable = v;}", "TdxCompanyTaxArrears selectByPrimaryKey(Integer id);", "public abstract void queryReferences(CoreEditorTableModel model) throws SQLException;", "public ATExpression base_tableExpression();", "public abstract @NotNull LibraryTable getLibraryTable();", "private String getCloneSetLinkTableQuery() {\n \t\tfinal StringBuilder builder = new StringBuilder();\n \n \t\tbuilder.append(\"create table CLONE_SET_LINK(\");\n \t\tbuilder.append(\"CLONE_SET_LINK_ID LONG PRIMARY KEY,\");\n \t\tbuilder.append(\"BEFORE_ELEMENT_ID LONG,\");\n \t\tbuilder.append(\"AFTER_ELEMENT_ID LONG,\");\n \t\tbuilder.append(\"BEFORE_REVISION_ID LONG,\");\n \t\tbuilder.append(\"AFTER_REVISION_ID LONG,\");\n \t\tbuilder.append(\"CHANGED_ELEMENTS INTEGER,\");\n \t\tbuilder.append(\"ADDED_ELEMENTS INTEGER,\");\n \t\tbuilder.append(\"DELETED_ELEMENTS INTEGER,\");\n \t\tbuilder.append(\"CO_CHANGED_ELEMENTS INTEGER,\");\n \t\tbuilder.append(\"CODE_FRAGMENT_LINKS TEXT NOT NULL\");\n \t\tbuilder.append(\")\");\n \n \t\treturn builder.toString();\n \t}", "@Override\n protected Map<TableUniqueName, String> tableSubstitution() {\n return ImmutableMap.of();\n }", "@SuppressWarnings({ \"unchecked\", \"null\" })\n public static void createTableDefinition() throws Exception{\n\n if(OBJECT.isAnnotationPresent(Table.class)){\n Annotation annotation = OBJECT.getAnnotation(Table.class);\n Method method = annotation.getClass().getMethod(\"name\");\n Object object = method.invoke(annotation);\n\n TABLE_NAME = object.toString().toUpperCase();\n\n CREATE_STATEMENT = new StringBuilder();\n FOREIGN_KEY = new StringBuilder();\n COLUMNS = new StringBuilder();\n LIST_FIELD_MODEL = new ArrayList<FieldModel>();\n\n }else{\n CREATE_STATEMENT = null;\n throw new Exception(\"Annotation @Table not declared in class \"+OBJECT.getSimpleName());\n }\n\n\n FIELD_DEFINITION = OBJECT.getDeclaredFields();\n\n ARRAY_COLUMNS = new String[FIELD_DEFINITION.length];\n\n for (int i = 0; i < FIELD_DEFINITION.length ; i++){\n Field field = FIELD_DEFINITION[i];\n Annotation annotation = null;\n Method methodName = null;\n Method methodSize = null;\n Object objectName = null;\n Object sizeField = null;\n String type;\n String primaryKeyText = \"\";\n\n\n if(field.isAnnotationPresent(Column.class)){\n annotation = field.getAnnotation(Column.class);\n methodName = annotation.getClass().getMethod(\"name\");\n methodSize = annotation.getClass().getMethod(\"size\");\n sizeField = methodSize.invoke(annotation);\n objectName = methodName.invoke(annotation);\n if(objectName == null || objectName.toString() == \"\"){\n objectName = field.getName();\n }\n\n\n }else{\n CREATE_STATEMENT = null;\n throw new Exception(\"Annotation @Column not declared in the field --> \"+field.getName());\n }\n\n if(field.isAnnotationPresent(PrimaryKey.class)){\n PK = objectName.toString();\n\n Annotation pKey_annotation = field.getAnnotation(PrimaryKey.class);\n Method pkey_methodAutoIncrement = pKey_annotation.getClass().getMethod(\"autoIncrement\");\n Object pkey_autoIncrement = pkey_methodAutoIncrement.invoke(pKey_annotation);\n\n primaryKeyText = \" PRIMARY KEY \";\n\n if(Boolean.valueOf(pkey_autoIncrement.toString())){\n primaryKeyText = primaryKeyText + \" AUTOINCREMENT \";\n }\n\n }\n if(field.isAnnotationPresent(Codigo.class)){\n setCOD(objectName.toString());\n }\n if(field.isAnnotationPresent(ForeignKey.class)){\n Annotation fkey_annotation = field.getAnnotation(ForeignKey.class);\n Method fkey_methodTableReference = fkey_annotation.getClass().getMethod(\"tableReference\");\n Object fkey_tableReferenceName = fkey_methodTableReference.invoke(fkey_annotation);\n\n Method fkey_methodOnUpCascade = fkey_annotation.getClass().getMethod(\"onUpdateCascade\");\n Object fkey_OnUpCascadeValue = fkey_methodOnUpCascade.invoke(fkey_annotation);\n\n Method fkey_methodOnDelCascade = fkey_annotation.getClass().getMethod(\"onDeleteCascade\");\n Object fkey_OnDelCascadeValue = fkey_methodOnDelCascade.invoke(fkey_annotation);\n\n Method fkey_methodColumnReference = fkey_annotation.getClass().getMethod(\"columnReference\");\n Object fkey_columnReference = fkey_methodColumnReference.invoke(fkey_annotation);\n\n String columnReference = fkey_columnReference.toString();\n if(columnReference == \"\"){\n columnReference = \"_id\";\n }\n\n FOREIGN_KEY.append(\", FOREIGN KEY (\"+objectName.toString()+\") REFERENCES \"+fkey_tableReferenceName.toString().toUpperCase()+\" (\"+columnReference+\")\");\n\n if(Boolean.valueOf(fkey_OnUpCascadeValue.toString())){\n FOREIGN_KEY.append(\" ON UPDATE CASCADE \");\n }\n if(Boolean.valueOf(fkey_OnDelCascadeValue.toString())){\n FOREIGN_KEY.append(\" ON DELETE CASCADE \");\n }\n\n\n }\n\n\n if(field.getType() == int.class || field.getType() == Integer.class || field.getType() == Long.class || field.getType() == long.class){\n type = \" INTEGER \";\n }else\tif(field.getType() == String.class || field.getType() == char.class ){\n type = \" TEXT \";\n }else\tif(field.getType() == Double.class || field.getType() == Float.class || field.getType() == double.class){\n type = \" REAL \";\n }else if(field.getType() == BigDecimal.class){\n type = \" REAL \";\n }else if(field.getType() == Date.class){\n type = \" TIMESTAMP \";\n }\n else if(field.getType() == java.sql.Timestamp.class){\n type = \" TIMESTAMP \";\n }else if(field.getType() == Boolean.class || field.getType() == boolean.class){\n type = \" BOOLEAN \";\n }else{\n type = \" NONE \";\n }\n if(!sizeField.equals(\"\") ){\n type = type+\"(\"+sizeField.toString()+\") \";\n setSIZE(Integer.parseInt(sizeField.toString()));\n }\n // Log.d(\"afalOG\", \"TAMANHO\" + type+sizeField.toString());\n if(i == FIELD_DEFINITION.length-1){\n if(objectName != null){\n CREATE_STATEMENT.append(objectName.toString()+\" \"+type+primaryKeyText);\n COLUMNS.append(objectName.toString());\n }else{\n CREATE_STATEMENT = null;\n throw new Exception(\"Property 'name' not declared in the field --> \"+field.getName());\n }\n }else{\n if(objectName != null){\n CREATE_STATEMENT.append(objectName.toString()+\" \"+type+primaryKeyText+\", \");\n COLUMNS.append(objectName.toString()+\" , \");\n }else{\n CREATE_STATEMENT = null;\n throw new Exception(\"Property 'name' not declared in the field --> \"+field.getName());\n }\n }\n ARRAY_COLUMNS[i] = objectName.toString();\n if(! primaryKeyText.contains(\"AUTOINCREMENT\")){\n FieldModel fieldModel = new FieldModel();\n fieldModel.setColumnName(objectName.toString());\n fieldModel.setFieldName(field.getName());\n LIST_FIELD_MODEL.add(fieldModel);\n }\n }\n\n if(FOREIGN_KEY.toString() != \"\"){\n CREATE_STATEMENT.append(FOREIGN_KEY);\n }\n CREATE_STATEMENT.append(\");\");\n\n\n if(getPK() == \"\"){\n StringBuilder sb = new StringBuilder();\n sb.append(\"CREATE TABLE \" + TABLE_NAME + \" (\");\n sb.append(BaseColumns._ID +\" INTEGER PRIMARY KEY AUTOINCREMENT, \" );\n sb.append(CREATE_STATEMENT);\n\n String[] columns = new String[ARRAY_COLUMNS.length+1];\n columns[0] = BaseColumns._ID;\n for(int i = 0; i < ARRAY_COLUMNS.length; i++){\n columns[i+1] = ARRAY_COLUMNS[i];\n }\n\n ARRAY_COLUMNS = columns;\n\n CREATE_STATEMENT = sb;\n }else{\n StringBuilder sb = new StringBuilder();\n sb.append(\"CREATE TABLE \" + TABLE_NAME + \" (\");\n sb.append(CREATE_STATEMENT);\n\n CREATE_STATEMENT = sb;\n }\n }", "String getTableName();", "Model createModel();", "Model createModel();", "Model createModel();", "Model createModel();", "Model createModel();", "Model createModel();", "Model createModel();", "public void bindingTable(){\n String[] header={\"Region Id\",\"Region Name\"};\n DefaultTableModel defaultTableModel = new DefaultTableModel(header, 0);\n for (Region region : regionController.binding()) {\n// for (Region binding : regionController.binding(\"region_id\",\"asc\")) {\n Object[] region1 ={\n region.getRegionId(),region.getRegionName()\n };\n defaultTableModel.addRow(region1);\n }\n tableRegion.setModel(defaultTableModel);\n }", "public String toString() {\n\t\treturn \"JoinTableSpec(\"+leftTable.toString()+\" INNER JOIN \"+rightTable.toString()\n\t\t\t\t+\" ON \"+leftCell.toString()+\" = \"+rightCell.toString()+\")\";\n\t}" ]
[ "0.53084", "0.5291946", "0.5275585", "0.5195287", "0.51599604", "0.51221997", "0.50836784", "0.507634", "0.4986283", "0.49192402", "0.49074113", "0.4905656", "0.48918802", "0.4877816", "0.476132", "0.47147003", "0.47094467", "0.4688216", "0.46878773", "0.4675855", "0.46492797", "0.4648071", "0.46412772", "0.46362945", "0.46296495", "0.46249673", "0.46209282", "0.46136975", "0.46050742", "0.46000004", "0.45955238", "0.45952863", "0.45923918", "0.4585679", "0.45830992", "0.4582666", "0.45711893", "0.4561675", "0.45559952", "0.45501465", "0.4547919", "0.45473874", "0.45454752", "0.45433098", "0.4540542", "0.45377547", "0.45366868", "0.45354694", "0.4521881", "0.45198104", "0.4499608", "0.44956067", "0.4493455", "0.44881865", "0.44862658", "0.44828045", "0.44794273", "0.44750702", "0.44724706", "0.44723654", "0.44677603", "0.4462753", "0.44593805", "0.4456074", "0.44540828", "0.44502443", "0.44453803", "0.44402745", "0.44388995", "0.44372168", "0.44325495", "0.44295993", "0.4428104", "0.44235918", "0.44172192", "0.44128656", "0.44080272", "0.4406092", "0.4402368", "0.43921876", "0.4390072", "0.438246", "0.4378961", "0.43768814", "0.43761125", "0.43752676", "0.43706006", "0.43701655", "0.43683952", "0.4367683", "0.43638134", "0.4361371", "0.4361371", "0.4361371", "0.4361371", "0.4361371", "0.4361371", "0.4361371", "0.43572977", "0.4354525" ]
0.57042867
0
Use this factory method to create a new instance of this fragment using the provided parameters.
public static PickPowerFragment newInstance(String param1, String param2) { PickPowerFragment fragment = new PickPowerFragment(); Bundle args = new Bundle(); args.putString(ARG_PARAM1, param1); args.putString(ARG_PARAM2, param2); fragment.setArguments(args); return fragment; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static FragmentTousWanted newInstance() {\n FragmentTousWanted fragment = new FragmentTousWanted();\n Bundle args = new Bundle();\n fragment.setArguments(args);\n return fragment;\n }", "protected abstract Fragment createFragment();", "public void createFragment() {\n\n }", "@Override\n protected Fragment createFragment() {\n Intent intent = getIntent();\n\n long id = intent.getLongExtra(MovieDetailFragment.EXTRA_ID, -1);\n return MovieDetailFragment.newInstance(id);\n }", "public CuartoFragment() {\n }", "public StintFragment() {\n }", "public ExploreFragment() {\n\n }", "public RickAndMortyFragment() {\n }", "public FragmentMy() {\n }", "public LogFragment() {\n }", "public FeedFragment() {\n }", "public HistoryFragment() {\n }", "public HistoryFragment() {\n }", "public static MyFeedFragment newInstance() {\n return new MyFeedFragment();\n }", "public WkfFragment() {\n }", "public static ScheduleFragment newInstance() {\n ScheduleFragment fragment = new ScheduleFragment();\n Bundle args = new Bundle();\n //args.putString(ARG_PARAM1, param1);\n //args.putString(ARG_PARAM2, param2);\n fragment.setArguments(args);\n return fragment;\n }", "public ProfileFragment(){}", "public WelcomeFragment() {}", "public static ForumFragment newInstance() {\n ForumFragment fragment = new ForumFragment();\n Bundle args = new Bundle();\n fragment.setArguments(args);\n\n return fragment;\n }", "public static NotificationFragment newInstance() {\n NotificationFragment fragment = new NotificationFragment();\n Bundle args = new Bundle();\n// args.putString(ARG_PARAM1, param1);\n// args.putString(ARG_PARAM2, param2);\n fragment.setArguments(args);\n return fragment;\n }", "public progFragment() {\n }", "public HeaderFragment() {}", "public static RouteFragment newInstance() {\n RouteFragment fragment = new RouteFragment();\n Bundle args = new Bundle();\n //fragment.setArguments(args);\n return fragment;\n }", "public EmployeeFragment() {\n }", "public Fragment_Tutorial() {}", "public NewShopFragment() {\n }", "public FavoriteFragment() {\n }", "public static MyCourseFragment newInstance() {\n MyCourseFragment fragment = new MyCourseFragment();\r\n// fragment.setArguments(args);\r\n return fragment;\r\n }", "public static MessageFragment newInstance() {\n MessageFragment fragment = new MessageFragment();\n Bundle args = new Bundle();\n\n fragment.setArguments(args);\n return fragment;\n }", "public static ReservationFragment newInstance() {\n\n ReservationFragment _fragment = new ReservationFragment();\n// Bundle args = new Bundle();\n// args.putString(ARG_PARAM1, param1);\n// args.putString(ARG_PARAM2, param2);\n// fragment.setArguments(args);\n return _fragment;\n }", "public CreateEventFragment() {\n // Required empty public constructor\n }", "public static RecipeListFragment newInstance() {\n RecipeListFragment fragment = new RecipeListFragment();\n// Bundle args = new Bundle();\n// args.putString(ARG_PARAM1, param1);\n// args.putString(ARG_PARAM2, param2);\n// fragment.setArguments(args);\n return fragment;\n }", "public static Fragment newInstance() {\n\t\treturn new ScreenSlidePageFragment();\n\t}", "public NoteActivityFragment() {\n }", "public static WeekViewFragment newInstance(int param1, int param2) {\n WeekViewFragment fragment = new WeekViewFragment();\n //WeekViewFragment 객체 생성\n Bundle args = new Bundle();\n //Bundle 객체 생성\n args.putInt(ARG_PARAM1, param1);\n //ARG_PARAM1에 param1의 정수값 넣어서 args에 저장\n args.putInt(ARG_PARAM2, param2);\n //ARG_PARAM2에 param2의 정수값 넣어서 args에 저장\n fragment.setArguments(args);\n //args를 매개변수로 한 setArguments() 메소드 수행하여 fragment에 저장\n return fragment; //fragment 반환\n }", "public static Fragment0 newInstance(String param1, String param2) {\n Fragment0 fragment = new Fragment0();\n Bundle args = new Bundle();\n args.putString(ARG_PARAM1, param1);\n args.putString(ARG_PARAM2, param2);\n fragment.setArguments(args);\n return fragment;\n }", "public static QueenBEmbassyF newInstance() {\n QueenBEmbassyF fragment = new QueenBEmbassyF();\n //the way to pass arguments between fragments\n Bundle args = new Bundle();\n\n fragment.setArguments(args);\n return fragment;\n }", "public static Fragment newInstance() {\n StatisticsFragment fragment = new StatisticsFragment();\n Bundle args = new Bundle();\n fragment.setArguments(args);\n return fragment;\n }", "public EventHistoryFragment() {\n\t}", "public HomeFragment() {}", "public PeopleFragment() {\n // Required empty public constructor\n }", "public static FeedFragment newInstance() {\n FeedFragment fragment = new FeedFragment();\n return fragment;\n }", "public static MainFragment newInstance(String param1, String param2) {\n MainFragment fragment = new MainFragment();\n Bundle args = new Bundle();\n fragment.setArguments(args);\n return fragment;\n }", "public VantaggiFragment() {\n // Required empty public constructor\n }", "public AddressDetailFragment() {\n }", "public ArticleDetailFragment() { }", "public static DropboxMainFrag newInstance() {\n DropboxMainFrag fragment = new DropboxMainFrag();\n // set arguments in Bundle\n return fragment;\n }", "public RegisterFragment() {\n }", "public EmailFragment() {\n }", "public static CommentFragment newInstance() {\n CommentFragment fragment = new CommentFragment();\n\n return fragment;\n }", "public static FragmentComida newInstance(String param1) {\n FragmentComida fragment = new FragmentComida();\n Bundle args = new Bundle();\n args.putString(ARG_PARAM1, param1);\n fragment.setArguments(args);\n return fragment;\n\n\n }", "public static ParqueosFragment newInstance() {\n ParqueosFragment fragment = new ParqueosFragment();\n return fragment;\n }", "public ForecastFragment() {\n }", "public FExDetailFragment() {\n \t}", "public static AddressFragment newInstance(String param1) {\n AddressFragment fragment = new AddressFragment();\n\n Bundle args = new Bundle();\n args.putString(ARG_PARAM1, param1);\n fragment.setArguments(args);\n\n return fragment;\n }", "public TripNoteFragment() {\n }", "public ItemFragment() {\n }", "public NoteListFragment() {\n }", "public CreatePatientFragment() {\n\n }", "public DisplayFragment() {\n\n }", "public static frag4_viewcompliment newInstance(String param1, String param2) {\r\n frag4_viewcompliment fragment = new frag4_viewcompliment();\r\n Bundle args = new Bundle();\r\n args.putString(ARG_PARAM1, param1);\r\n args.putString(ARG_PARAM2, param2);\r\n fragment.setArguments(args);\r\n return fragment;\r\n }", "public static fragment_profile newInstance(String param1, String param2) {\n fragment_profile fragment = new fragment_profile();\n Bundle args = new Bundle();\n args.putString(ARG_PARAM1, param1);\n args.putString(ARG_PARAM2, param2);\n fragment.setArguments(args);\n return fragment;\n }", "@Override\n\tprotected Fragment createFragment() {\n\t\treturn new FormFragment();\n\t}", "public static MainFragment newInstance() {\n MainFragment fragment = new MainFragment();\n Bundle args = new Bundle();\n fragment.setArguments(args);\n return fragment;\n }", "public ProfileFragment() {\n\n }", "public BackEndFragment() {\n }", "public CustomerFragment() {\n }", "public static FriendsFragment newInstance(int sectionNumber) {\n \tFriendsFragment fragment = new FriendsFragment();\n Bundle args = new Bundle();\n args.putInt(ARG_SECTION_NUMBER, sectionNumber);\n fragment.setArguments(args);\n return fragment;\n }", "public ArticleDetailFragment() {\n }", "public ArticleDetailFragment() {\n }", "public ArticleDetailFragment() {\n }", "public static Fragment newInstance() {\n return new SettingsFragment();\n }", "public SummaryFragment newInstance()\n {\n return new SummaryFragment();\n }", "public PeersFragment() {\n }", "public TagsFragment() {\n }", "public static ProfileFragment newInstance() {\n ProfileFragment fragment = new ProfileFragment();\n Bundle args = new Bundle();\n args.putString(ARG_PARAM1, \"\");\n args.putString(ARG_PARAM2, \"\");\n fragment.setArguments(args);\n return fragment;\n }", "public static FriendsFragment newInstance() {\n FriendsFragment fragment = new FriendsFragment();\n\n return fragment;\n }", "public HomeSectionFragment() {\n\t}", "public static FirstFragment newInstance(String text) {\n\n FirstFragment f = new FirstFragment();\n Bundle b = new Bundle();\n b.putString(\"msg\", text);\n\n f.setArguments(b);\n\n return f;\n }", "public PersonDetailFragment() {\r\n }", "public static LogFragment newInstance(Bundle params) {\n LogFragment fragment = new LogFragment();\n fragment.setArguments(params);\n return fragment;\n }", "public RegisterFragment() {\n // Required empty public constructor\n }", "public VehicleFragment() {\r\n }", "public static Fine newInstance(String param1, String param2) {\n Fine fragment = new Fine();\n Bundle args = new Bundle();\n args.putString(ARG_PARAM1, param1);\n args.putString(ARG_PARAM2, param2);\n fragment.setArguments(args);\n return fragment;\n }", "public static FriendsFragment newInstance(String param1, String param2) {\n FriendsFragment fragment = new FriendsFragment();\n Bundle args = new Bundle();\n fragment.setArguments(args);\n return fragment;\n }", "public static ChangesViewFragment newInstance() {\n\t\tChangesViewFragment fragment = new ChangesViewFragment();\n\t\tBundle args = new Bundle();\n\t\targs.putInt(HomeViewActivity.ARG_SECTION_NUMBER, 2);\n\t\tfragment.setArguments(args);\n\t\treturn fragment;\n\t}", "public static NoteFragment newInstance(String param1, String param2) {\n NoteFragment fragment = new NoteFragment();\n Bundle args = new Bundle();\n args.putString(ARG_PARAM1, param1);\n args.putString(ARG_PARAM2, param2);\n fragment.setArguments(args);\n return fragment;\n }", "public static MainFragment newInstance(Context context) {\n MainFragment fragment = new MainFragment();\n if(context != null)\n fragment.setVariables(context);\n return fragment;\n }", "@Override\n\tprotected Fragment createFragment() {\n\t\treturn new CrimeListFragment();\n\t}", "public static MoneyLogFragment newInstance() {\n MoneyLogFragment fragment = new MoneyLogFragment();\n return fragment;\n }", "public static ForecastFragment newInstance() {\n\n //Create new fragment\n ForecastFragment frag = new ForecastFragment();\n return(frag);\n }", "public static MainFragment newInstance(String param1, String param2) {\n MainFragment fragment = new MainFragment();\n Bundle args = new Bundle();\n args.putString(ARG_PARAM1, param1);\n args.putString(ARG_PARAM2, param2);\n fragment.setArguments(args);\n return fragment;\n }", "public static MainFragment newInstance(String param1, String param2) {\n MainFragment fragment = new MainFragment();\n Bundle args = new Bundle();\n args.putString(ARG_PARAM1, param1);\n args.putString(ARG_PARAM2, param2);\n fragment.setArguments(args);\n return fragment;\n }", "public static MainFragment newInstance(String param1, String param2) {\n MainFragment fragment = new MainFragment();\n Bundle args = new Bundle();\n args.putString(ARG_PARAM1, param1);\n args.putString(ARG_PARAM2, param2);\n fragment.setArguments(args);\n return fragment;\n }", "public static MyTaskFragment newInstance(String param1) {\n MyTaskFragment fragment = new MyTaskFragment();\n Bundle args = new Bundle();\n args.putString(ARG_PARAM1, param1);\n fragment.setArguments(args);\n return fragment;\n }", "public static MyProfileFragment newInstance(String param1, String param2) {\n MyProfileFragment fragment = new MyProfileFragment();\n return fragment;\n }", "public static MainFragment newInstance(int param1, String param2) {\n MainFragment fragment = new MainFragment();\n Bundle args = new Bundle();\n args.putInt(ARG_PARAM1, param1);\n\n args.putString(ARG_PARAM2, param2);\n fragment.setArguments(args);\n return fragment;\n }", "public PlaylistFragment() {\n }", "public static HistoryFragment newInstance() {\n HistoryFragment fragment = new HistoryFragment();\n return fragment;\n }", "public static SurvivorIncidentFormFragment newInstance(String param1, String param2) {\n// SurvivorIncidentFormFragment fragment = new SurvivorIncidentFormFragment();\n// Bundle args = new Bundle();\n// args.putString(ARG_PARAM1, param1);\n// args.putString(ARG_PARAM2, param2);\n// fragment.setArguments(args);\n// return fragment;\n\n SurvivorIncidentFormFragment fragment = new SurvivorIncidentFormFragment();\n Bundle args = new Bundle();\n args.putString(ARG_PARAM1, param1);\n args.putString(ARG_PARAM2, param2);\n fragment.setArguments(args);\n return fragment;\n\n\n }", "public static PersonalFragment newInstance(String param1, String param2) {\n PersonalFragment fragment = new PersonalFragment();\n Bundle args = new Bundle();\n args.putString(ARG_PARAM1, param1);\n args.putString(ARG_PARAM2, param2);\n fragment.setArguments(args);\n return fragment;\n }" ]
[ "0.7259329", "0.72331375", "0.71140355", "0.69909847", "0.69902235", "0.6834592", "0.683074", "0.68134046", "0.6801526", "0.6801054", "0.67653185", "0.6739714", "0.6739714", "0.6727412", "0.6717231", "0.6705855", "0.6692112", "0.6691661", "0.66869426", "0.66606814", "0.6646188", "0.66410166", "0.6640725", "0.6634425", "0.66188246", "0.66140765", "0.6608169", "0.66045964", "0.65977716", "0.6592119", "0.659137", "0.65910816", "0.65830594", "0.65786606", "0.6562876", "0.65607685", "0.6557126", "0.65513307", "0.65510213", "0.65431285", "0.6540448", "0.65336084", "0.6532555", "0.6528302", "0.6524409", "0.652328", "0.6523149", "0.6516528", "0.65049976", "0.6497274", "0.6497235", "0.64949715", "0.64944136", "0.6484968", "0.6484214", "0.64805835", "0.64784926", "0.64755154", "0.64710265", "0.6466466", "0.6457089", "0.645606", "0.6454554", "0.6452161", "0.64520335", "0.6450325", "0.64488834", "0.6446765", "0.64430225", "0.64430225", "0.64430225", "0.64420956", "0.6441306", "0.64411277", "0.6438451", "0.64345145", "0.64289486", "0.64287597", "0.6423755", "0.64193285", "0.6418699", "0.6414679", "0.6412867", "0.6402168", "0.6400724", "0.6395624", "0.6395109", "0.6391252", "0.63891554", "0.63835025", "0.63788056", "0.63751805", "0.63751805", "0.63751805", "0.6374796", "0.63653135", "0.6364529", "0.6360922", "0.63538784", "0.6351111", "0.635067" ]
0.0
-1
TODO: Rename method, update argument and hook method into UI event
public void onButtonPressed(Uri uri) { if (mListener != null) { mListener.onFragmentInteraction(uri); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\t\t\t\tpublic void handle(ActionEvent event) {\n\t\t\t\t}", "@Override\n\t\t\t\tpublic void handle(ActionEvent event) {\n\n\t\t\t\t}", "@Override\n\t\t\tpublic void handle(ActionEvent event) {\n\t\t\t\t\n\t\t\t}", "@Override\n\t\t\tpublic void handle(ActionEvent event) {\n\t\t\t\t\n\t\t\t}", "@Override\n\t\t\tpublic void handle(ActionEvent event) {\n\t\t\t}", "public abstract void update(UIReader event);", "@Override\r\n\t\t\tpublic void handle(ActionEvent arg0) {\n\t\t\t}", "@Override\n\tpublic void handle(ActionEvent event) {\n\t\t\n\t}", "@Override\n\tpublic void handle(ActionEvent event) {\n\n\t}", "@Override\n\tpublic void handleUpdateUI(String text, int code) {\n\t\t\n\t}", "@Override\n\tpublic void update(Event e) {\n\t}", "public abstract void onInvoked(CommandSender sender, String[] args);", "@Override\r\n public void updateUI() {\r\n }", "@Override\r\n\tpublic void handle(ActionEvent arg0) {\n\t\t\r\n\t}", "@Override\n\tprotected void UpdateUI() {\n\t\t\n\t}", "@Override\n\tprotected void UpdateUI() {\n\t\t\n\t}", "@Override\n\tpublic void processEvent(Event e) {\n\n\t}", "@Override\n\t\t\tpublic void handleEvent(Event event) {\n\t\t\t\t \n\t\t\t}", "@Override\n\t\t\tpublic void handleEvent(Event event) {\n\t\t\t\t \n\t\t\t}", "@Override\n\tpublic void processCommand(JMVCommandEvent arg0) {\n\t}", "@Override\n\tpublic void inputChanged( Viewer arg0, Object arg1, Object arg2 ) {\n\t}", "@Override\n\tpublic void handleEvent(Event arg0) {\n\t\t\n\t}", "@Override\r\n\tpublic void onCustomUpdate() {\n\t\t\r\n\t}", "public void updateUI(){}", "private synchronized void updateScreen(String arg){\n Platform.runLater(new Runnable() {\n @Override\n public void run() {\n setChanged();\n notifyObservers(arg);\n }\n });\n }", "@Override\n\t\t\tpublic void actionPerformed(ActionEvent arg0) {\n\n\t\t\t}", "@Override\n\t\t\tpublic void actionPerformed(ActionEvent arg0) {\n\n\t\t\t}", "@Override\r\n public void actionPerformed( ActionEvent e )\r\n {\n }", "@Override\n\t\t\tpublic void handleEvent(Event event) {\n\n\t\t\t}", "@Override\n\t\t\tpublic void handleEvent(Event event) {\n\n\t\t\t}", "@Override\n\t\t\tpublic void handleEvent(Event event) {\n\n\t\t\t}", "@Override\n\t\t\tpublic void handleEvent(Event event) {\n\n\t\t\t}", "@Override\n\t\t\tpublic void handleEvent(Event event) {\n\n\t\t\t}", "@Override\r\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\t\r\n\t\t\t}", "@Override\r\n\tpublic void updateObjectListener(ActionEvent e) {\n\t\t\r\n\t}", "Event () {\n // Nothing to do here.\n }", "void onArgumentsChanged();", "@Override\n\t\t\tpublic void actionPerformed(ActionEvent arg0) {\n\t\t\t\t\n\t\t\t}", "@Override\n\t\t\tpublic void handleEvent(Event event) {\n\t\t\t}", "@Override\n\t\t\tpublic void handleEvent(Event event) {\n\t\t\t}", "@Override\n\t\t\tpublic void handleEvent(Event event) {\n\t\t\t}", "@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t}", "@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t}", "@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t}", "void eventChanged();", "@Override\r\n\t\t\tpublic void execute(LiftEvent e) {\n\t\t\t\t\r\n\t\t\t}", "@Override\r\n\t\t\tpublic void execute(LiftEvent e) {\n\t\t\t\t\r\n\t\t\t}", "@Override public void handle(ActionEvent e)\n\t {\n\t }", "@Override\r\n\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\r\n\t\t}", "@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\n\t\t\t}", "@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\n\t\t\t}", "@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\n\t\t\t}", "@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\n\t\t\t}", "@Override //se repita\r\n public void actionPerformed(ActionEvent ae) {\r\n \r\n }", "@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\t\n\t\t\t}", "public abstract CommandResponse onCommand(CommandSender sender, String label, String[] args);", "@Override\n public void actionPerformed(ActionEvent actionEvent) {\n }", "@Override\n\t\t\tpublic void actionPerformed(java.awt.event.ActionEvent e) {\n\t\t\t\t\n\t\t\t}", "@Override\n\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t}", "@Override\r\n public void actionPerformed(ActionEvent e) {\n \r\n }", "public abstract void onCommand(MessageEvent context) throws Exception;", "@Override\r\n\tpublic void onEvent(Event arg0) {\n\r\n\t}", "private void addParameterEventHandler(){\n\t\t\n\t\tgetParameterNameListBox().addDoubleClickHandler(new DoubleClickHandler() {\n\t\t\t@Override\n\t\t\tpublic void onDoubleClick(DoubleClickEvent event) {\n\t\t\t\tparameterAceEditor.clearAnnotations();\n\t\t\t\tparameterAceEditor.removeAllMarkers();\n\t\t\t\tparameterAceEditor.redisplay();\n\t\t\t\tSystem.out.println(\"In addParameterEventHandler on DoubleClick isPageDirty = \" + getIsPageDirty() + \" selectedIndex = \" + getParameterNameListBox().getSelectedIndex());\n\t\t\t\tsetIsDoubleClick(true);\n\t\t\t\tsetIsNavBarClick(false);\n\t\t\t\tif (getIsPageDirty()) {\n\t\t\t\t\tshowUnsavedChangesWarning();\n\t\t\t\t} else {\n\t\t\t\t\tint selectedIndex = getParameterNameListBox().getSelectedIndex();\n\t\t\t\t\tif (selectedIndex != -1) {\n\t\t\t\t\t\tfinal String selectedParamID = getParameterNameListBox().getValue(selectedIndex);\n\t\t\t\t\t\tcurrentSelectedParamerterObjId = selectedParamID;\n\t\t\t\t\t\tif(getParameterMap().get(selectedParamID) != null){\n\t\t\t\t\t\t\tgetParameterNameTxtArea().setText(getParameterMap().get(selectedParamID).getParameterName());\n\t\t\t\t\t\t\tgetParameterAceEditor().setText(getParameterMap().get(selectedParamID).getParameterLogic());\n\t\t\t\t\t\t\tSystem.out.println(\"In Parameter DoubleClickHandler, doing setText()\");\n\t\t\t\t\t\t\t//disable parameterName and Logic fields for Default Parameter\n\t\t\t\t\t\t\tboolean isReadOnly = getParameterMap().get(selectedParamID).isReadOnly();\n\t\t\t\t\t\t\tgetParameterButtonBar().getDeleteButton().setTitle(\"Delete\");\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tif(MatContext.get().getMeasureLockService()\n\t\t\t\t\t\t\t\t\t.checkForEditPermission()){\n\t\t\t\t\t\t\t\tsetParameterWidgetReadOnly(!isReadOnly);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t// load most recent used cql artifacts\n\t\t\t\t\t\t\tMatContext.get().getMeasureService().getUsedCQLArtifacts(MatContext.get().getCurrentMeasureId(), new AsyncCallback<GetUsedCQLArtifactsResult>() {\n\n\t\t\t\t\t\t\t\t@Override\n\t\t\t\t\t\t\t\tpublic void onFailure(Throwable caught) {\n\t\t\t\t\t\t\t\t\tWindow.alert(MatContext.get().getMessageDelegate().getGenericErrorMessage());\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t\t@Override\n\t\t\t\t\t\t\t\tpublic void onSuccess(GetUsedCQLArtifactsResult result) {\n\t\t\t\t\t\t\t\t\tif(result.getUsedCQLParameters().contains(getParameterMap().get(selectedParamID).getParameterName())) {\n\t\t\t\t\t\t\t\t\t\tgetParameterButtonBar().getDeleteButton().setEnabled(false);\n\t\t\t\t\t\t\t\t\t} \n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t});\n\t\t\t\t\t\t}\n\t\t\t\t\t} \n\t\t\t\t\t\n\t\t\t\t\tsuccessMessageAlert.clearAlert();\n\t\t\t\t\terrorMessageAlert.clearAlert();\n\t\t\t\t\twarningMessageAlert.clearAlert();\n\n\t\t\t\t}\n\t\t\t\t\n\t\t\t}\n\t\t});\n\t}", "@Override\n public void handle(Event event) {\n }", "@Override\n\t\tpublic void actionPerformed(ActionEvent arg0) {\n\t\t\t\n\t\t}", "@Override\n\t\tpublic void actionPerformed(ActionEvent arg0) {\n\t\t\t\n\t\t}", "@Override\n public void actionPerformed(AnActionEvent e) {\n }", "@Override\n public void actionPerformed(ActionEvent e) {\n \n }", "@Override\n public void actionPerformed(ActionEvent e) {\n \n }", "@Override\n public void actionPerformed(ActionEvent e) {\n \n }", "@Override\n public void actionPerformed(ActionEvent e) {\n \n }", "@Override\r\n\tpublic void handleEvent(Event event) {\n\r\n\t}", "public void ImageView(ActionEvent event) {\n\t}", "@Override\n public void updateUi() {\n\n }", "@Override\n public void updateUi() {\n\n }", "@Override\n public void updateUi() {\n\n }", "@Override\n\t\t\t\t\t\tpublic void mouseDown(MouseEvent arg0) {\n\n\t\t\t\t\t\t}", "@Override\n\t\t\t\t\t\tpublic void mouseDown(MouseEvent arg0) {\n\n\t\t\t\t\t\t}", "@Override\n\t\t\t\t\t\tpublic void mouseDown(MouseEvent arg0) {\n\n\t\t\t\t\t\t}", "@Override\n\t\t\t\t\t\tpublic void mouseDown(MouseEvent arg0) {\n\n\t\t\t\t\t\t}", "@Override\n\t\t\t\t\t\tpublic void mouseDown(MouseEvent arg0) {\n\n\t\t\t\t\t\t}", "@Override\n\t\t\t\t\t\tpublic void mouseDown(MouseEvent arg0) {\n\n\t\t\t\t\t\t}", "@Override\n\t\t\t\t\t\tpublic void mouseDown(MouseEvent arg0) {\n\n\t\t\t\t\t\t}", "public void runInUi(ElexisEvent ev){}", "@Override\n public void delta() {\n \n }", "@Override\n\tpublic void onClick(ClickEvent arg0) {\n\t\t\n\t}", "@Override\n public void actionPerformed(ActionEvent e) {\n }", "@Override\n public void actionPerformed(ActionEvent e) {\n }", "@Override\n\tprotected void OnClick() {\n\t\t\n\t}", "@Override\n public void actionPerformed(ActionEvent ev) {\n }", "@Override\n public void actionPerformed(ActionEvent e)\n {\n \n }", "@Override\r\n\tpublic void actionPerformed(ActionEvent arg0) {\n\t\t\r\n\t}", "@Override\r\n\tpublic void actionPerformed(ActionEvent arg0) {\n\t\t\r\n\t}", "@Override\r\n\tpublic void actionPerformed(ActionEvent arg0) {\n\t\t\r\n\t}", "@Override\r\n\tpublic void actionPerformed(ActionEvent arg0) {\n\t\t\r\n\t}", "@Override\r\n\tpublic void actionPerformed(ActionEvent arg0) {\n\t\t\r\n\t}", "@Override\r\n\tpublic void actionPerformed(ActionEvent arg0) {\n\t\t\r\n\t}", "@Override\n public void update(Observable o, Object arg)\n {\n \n }", "@Override\n public void actionPerformed(ActionEvent e) {\n\n }", "@Override\n\t\t\tpublic void actionPerformed(ActionEvent arg0) {\n\t\t\t\tupdate();\n\t\t\t}", "@Override\r\n public void processEvent(IAEvent e) {\n\r\n }" ]
[ "0.6619185", "0.65246344", "0.6473144", "0.6473144", "0.64351684", "0.6325494", "0.62368196", "0.6189416", "0.6158721", "0.61455715", "0.6123594", "0.6107332", "0.6101038", "0.6092755", "0.6049496", "0.6049496", "0.60442764", "0.604003", "0.604003", "0.6007846", "0.59999037", "0.59848183", "0.59776366", "0.59587413", "0.5940049", "0.5925668", "0.5925668", "0.59208333", "0.5915737", "0.5915737", "0.5915737", "0.5915737", "0.5915737", "0.5915554", "0.5909643", "0.5895144", "0.58947057", "0.589277", "0.58885247", "0.58885247", "0.58885247", "0.58671176", "0.58671176", "0.58671176", "0.58636886", "0.5862447", "0.5862447", "0.58613557", "0.5855828", "0.5846504", "0.5846504", "0.5846504", "0.5846504", "0.5837475", "0.58366984", "0.5820788", "0.58068436", "0.58022934", "0.5772422", "0.57714665", "0.5770862", "0.5765655", "0.5763872", "0.57544947", "0.57542855", "0.57542855", "0.57450074", "0.57441026", "0.57441026", "0.57441026", "0.5741053", "0.574037", "0.5739314", "0.57367086", "0.57367086", "0.57367086", "0.57322264", "0.57322264", "0.57322264", "0.57322264", "0.57322264", "0.57322264", "0.57322264", "0.57235956", "0.57232994", "0.5721006", "0.571978", "0.571978", "0.57187414", "0.57177836", "0.57133436", "0.57110935", "0.57110935", "0.57110935", "0.57110935", "0.57110935", "0.57110935", "0.5707859", "0.5707546", "0.5704973", "0.57016516" ]
0.0
-1
This interface must be implemented by activities that contain this fragment to allow an interaction in this fragment to be communicated to the activity and potentially other fragments contained in that activity. See the Android Training lesson Communicating with Other Fragments for more information.
public interface OnFragmentInteractionListener { // TODO: Update argument type and name void onFragmentInteraction(Uri uri); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public interface OnFragmentInteractionListener {\n void onFragmentMessage(String TAG, Object data);\n}", "public interface FragmentInteraction {\n void switchToBoardView();\n void switchToPinsView();\n void switchToPins(PDKBoard pdkBoard);\n void switchToDescription(PDKPin pin);\n}", "public interface IFragmentView {\n public Activity getActivity();\n public void onItemClick(int position);\n}", "public interface OnFragmentInteractionListener {\n void onMainFragmentInteraction(String string);\n }", "@Override\n public void onAttach(Context context) {\n super.onAttach(context);\n if (context instanceof RequestFragmentInterface) {\n mInterface = (RequestFragmentInterface) context;\n } else {\n throw new RuntimeException(context.toString()\n + \" must implement OnFragmentInteractionListener\");\n }\n }", "public interface OnFragmentInteractionListener {\n // TODO: Update argument type and name\n public void onCallBellPressed(MessageReason reason);\n }", "void onFragmentInteraction();", "void onFragmentInteraction();", "void onFragmentInteraction();", "public interface OnFragmentInteractionListener {\n // TODO: Update argument type and name\n\n\n void onFragmentInteraction(String mId, String mProductName, String mItemRate, int minteger, int update);\n }", "public interface OnFragmentInteractionListener {\n public void onFragmentInteraction(String id);\n }", "public interface OnFragmentInteractionListener {\n // TODO: Update argument type and name\n void onFragmentInteraction();\n }", "public interface OnFragmentInteractionListener {\n // TODO: Update argument type and name\n public void onComidaSelected(int comidaId);\n }", "public interface OnFragmentInteractionListener {\n public void onFragmentInteraction(Qualification q);\n }", "public interface OnFragmentInteractionListener {\n void onReceiverAcceptRequest(int nextState, String requestId);\n }", "public interface FragMainLife\n{\n\tpublic void onResumeFragMainLife();\n}", "public interface OnFragmentListener {\n\n void onAction(Intent intent);\n}", "public interface IBaseFragmentActivity {\n void onFragmentExit(BaseFragment fragment);\n\n void onFragmentStartLoading(BaseFragment fragment);\n\n void onFragmentFinishLoad(BaseFragment fragment);\n}", "public interface OnFragmentInteractionListener {\n // TODO: Update argument type and name\n void onFragmentInteraction(String string);\n }", "void onFragmentInteraction(Object ref);", "public interface OnParametersFragmentInteractionListener {\n public void startTask();\n }", "public interface OnFragmentInteractionListener {\n // Update argument type and name\n public void onFragmentInteraction(String id);\n }", "public interface OnFragmentInteractionListener {\n void onFragmentInteraction(Parcelable selectedItem);\n }", "public interface OnFragmentInteractionListener {\n public void onFragmentInteraction(String key);\n }", "public interface FragmentInterface {\r\n void fragmentBecameVisible();\r\n}", "public interface OnFragmentInteractionListener {\n void newList();\n\n void searchList();\n }", "public interface OnFragmentInteractionListener {\n // TODO: Update argument type and name\n void pasarALista();\n }", "public interface OnFragmentInteractionListener {\n // TODO: Update argument type and name\n\n /**\n * This interface's single method. The hosting Activity must implement this interface and\n * provide an implementation of this method so that this Fragment can communicate with the\n * Activity.\n *\n * @param spotId\n */\n// void onFragmentInteraction(Uri uri);\n void onFragmentInteraction(int spotId);\n// void onFragmentInteraction(LatLng spotPosition);\n\n }", "public interface MainGameActivityCallBacks {\n public void onMsgFromFragmentToMainGame(String sender, String strValue);\n}", "public interface IFragment {\n void onFragmentRefresh();\n\n void onMenuClick();\n}", "public interface FragmentInterface {\n\n void onCreate();\n\n void initLayout();\n\n void updateLayout();\n\n void sendInitialRequest();\n}", "public interface OnFragmentInteractionListener {\n void onFragmentInteraction(String accessToken, String network);\n }", "public interface OnFragmentInteractionListener {\n // TODO: Update argument type and name\n void onFragmentInteraction(View v);\n }", "public interface OnFragmentInteractionListener {\n void swapFragments(SetupActivity.SetupActivityFragmentType type);\n\n void addServer(String name, String ipAddress, String port);\n }", "public interface OnFragmentInteractionListener {\n\t\tvoid restUp(IGameState gameState);\n\t\tvoid restartGame();\n\t}", "public interface OnFragmentInteractionListener\n {\n // TODO: Update argument type and name\n public void onFragmentInteraction(String id);\n }", "public interface PersonalFragmentView extends BaseMvpView {\n\n}", "public interface OnFragmentInteractionListener {\n void onFinishCreatingRequest();\n }", "void onFragmentInteraction(View v);", "public interface OnFragmentInteractionListener {\n // TODO: Update argument type and name\n public void onFragmentInteraction(String id);\n }", "public interface OnFragmentInteractionListener {\n // TODO: Update argument type and name\n public void onFragmentInteraction(String id);\n }", "public interface OnFragmentInteractionListener {\n // TODO: Update argument type and name\n public void onFragmentInteraction(String id);\n }", "public interface OnFragmentInteractionListener {\n // TODO: Update argument type and name\n public void onFragmentInteraction(String id);\n }", "public interface OnFragmentInteractionListener {\n // TODO: Update argument type and name\n public void onFragmentInteraction(String id);\n }", "public interface OnFragmentInteractionListener {\n // TODO: Update argument type and name\n public void onFragmentInteraction(String id);\n }", "public interface OnFragmentInteractionListener {\n // TODO: Update argument type and name\n public void onFragmentInteraction(String id);\n }", "public interface OnFragmentInteractionListener {\n // TODO: Update argument type and name\n public void onFragmentInteraction(String id);\n }", "public interface OnFragmentInteractionListener {\n // TODO: Update argument type and name\n public void onFragmentInteraction(String id);\n }", "public interface OnFragmentInteractionListener {\n // TODO: Update argument type and name\n void onFragmentInteraction(ArrayList<Recepie> recepieList);\n }", "public interface OnFragmentInteractionListener {\n // TODO: Update argument type and name\n void onFragmentInteraction(String id);\n }", "void onFragmentInteractionMain();", "public interface OnFragmentInteractionListener {\n // TODO: Update argument type and name\n public void showRestaurantDetail(Map<String, Object> objectMap);\n\n public void showAddRestaurantFragment(String location);\n }", "public interface FragmentNavigator {\n\n void SwitchFragment(Fragment fragment);\n}", "public interface FragmentModellnt {\n void FragmentM(OnFinishListener onFinishListener,String dataId);\n}", "public interface OnFragmentInteractionListener {\n // TODO: Update argument type and name\n //void onFragmentInteraction(Uri uri);\n }", "void onFragmentInteraction(String id);", "public interface OnFragmentInteractionListener {\n // TODO: Update argument type and name\n void onFragmentInteraction(ArrayList naleznosci, String KLUCZ);\n }", "public interface OnFragmentInteractionListener {\r\n // TODO: Update argument type and name\r\n void onEditFragmentInteraction(Student student);\r\n }", "public interface OnFragmentInteractionListener {\n void onStartFragmentStarted();\n\n void onStartFragmentStartTracking();\n\n void onStartFragmentStopTracking();\n }", "public interface OnFragmentInteractionListener {\n // TODO: Update argument type and name\n Long onFragmentInteraction();\n }", "public interface OnFragmentInteractionListener {\n void onFragmentInteraction(Uri uri);\n void onFragmentInteraction(String id);\n}", "public interface IBaseFragment extends IBaseView {\n /**\n * 出栈到目标fragment\n * @param targetFragmentClass 目标fragment\n * @param includeTargetFragment 是否包涵目标fragment\n * true 目标fragment也出栈\n * false 出栈到目标fragment,目标fragment不出栈\n */\n void popToFragment(Class<?> targetFragmentClass, boolean includeTargetFragment);\n\n /**\n * 跳转到新的fragment\n * @param supportFragment 新的fragment继承SupportFragment\n */\n void startNewFragment(@NonNull SupportFragment supportFragment);\n\n /**\n * 跳转到新的fragment并出栈当前fragment\n * @param supportFragment\n */\n void startNewFragmentWithPop(@NonNull SupportFragment supportFragment);\n\n /**\n * 跳转到新的fragment并返回结果\n * @param supportFragment\n * @param requestCode\n */\n void startNewFragmentForResult(@NonNull SupportFragment supportFragment,int requestCode);\n\n /**\n * 设置fragment返回的result\n * @param requestCode\n * @param bundle\n */\n void setOnFragmentResult(int requestCode, Bundle bundle);\n\n /**\n * 跳转到新的Activity\n * @param clz\n */\n void startNewActivity(@NonNull Class<?> clz);\n\n /**\n * 携带数据跳转到新的Activity\n * @param clz\n * @param bundle\n */\n void startNewActivity(@NonNull Class<?> clz,Bundle bundle);\n\n /**\n * 携带数据跳转到新的Activity并返回结果\n * @param clz\n * @param bundle\n * @param requestCode\n */\n void startNewActivityForResult(@NonNull Class<?> clz,Bundle bundle,int requestCode);\n\n /**\n * 当前Fragment是否可见\n * @return true 可见,false 不可见\n */\n boolean isVisiable();\n\n /**\n * 获取当前fragment绑定的activity\n * @return\n */\n Activity getBindActivity();\n\n}", "public void onFragmentInteraction(String id);", "public void onFragmentInteraction(String id);", "public void onFragmentInteraction(String id);", "public void onFragmentInteraction(String id);", "public void onFragmentInteraction(String id);", "public void onFragmentInteraction(String id);", "public void onFragmentInteraction(String id);", "public void onFragmentInteraction(String id);", "public void onFragmentInteraction(String id);", "public void onFragmentInteraction(String id);", "public void onFragmentInteraction(String id);", "public interface OnFragmentInteractionListener {\n // TODO: Update argument type and name\n void onSocialLoginInteraction();\n }", "public interface OnFragmentInteractionListener {\n /**\n * On fragment interaction.\n *\n * @param uri the uri\n */\n// TODO: Update argument type and name\n public void onFragmentInteraction(Uri uri);\n }", "public interface OnFragmentListener {\n void onClick(Fragment fragment);\n}", "public interface OnFragmentInteractionListener {\n void playGame(Uri location);\n }", "public interface LoginFragmentListener {\n public void OnRegisterClicked();\n public void OnLoginClicked(String User, String Pass);\n}", "public interface MoveFragment {\n\n\n public void moveFragment(Fragment selectedFragment);\n\n}", "public interface ChangeFragmentListener {\n void changeFragment();\n}", "public interface OnProductItemFragmentInteraction{\r\n public void itemSelected(Producto product);\r\n }", "public interface FragmentInterface {\n public void fragmentResult(Fragment fragment, String title);\n}", "@Override\n public void onAttach(Context context) {\n super.onAttach(context);\n //this registers this fragment to recieve any EventBus\n EventBus.getDefault().register(this);\n }", "void onFragmentInteraction(int position);", "public interface AddFarmFragmentView extends BaseView {\n\n\n}", "void OpenFragmentInteraction();", "public interface OnFragmentInteractionListener {\n\t\t// TODO: Update argument type and name\n\t\tpublic void onFragmentInteraction(Uri uri);\n\t}", "public interface FragmentDataObserver {\n void getDataFromActivity(String data);\n\n}", "public interface OnFragInteractionListener {\n\n // replace top fragment with this fragment\n interface OnMainFragInteractionListener {\n void onWifiFragReplace();\n void onHistoryFragReplace();\n void onHistoryWithOsmMapFragReplace();\n void onMainFragReplace();\n }\n\n // interface for WifiPresenterFragment\n interface OnWifiScanFragInteractionListener {\n void onGetDataAfterScanWifi(ArrayList<WifiLocationModel> list);\n void onAllowToSaveWifiHotspotToDb(String ssid, String pass, String encryption, String bssid);\n }\n\n // interface for HistoryPresenterFragment\n interface OnHistoryFragInteractionListener {\n // get wifi info\n void onGetWifiHistoryCursor(Cursor cursor);\n // get mobile network generation\n void onGetMobileHistoryCursor(Cursor cursor);\n // get wifi state and date\n void onGetWifiStateAndDateCursor(Cursor cursor);\n }\n\n interface OnMapFragInteractionListerer {\n void onGetWifiLocationCursor(Cursor cursor);\n }\n}", "public interface PesonageFragmentView extends MvpView {\n\n}", "public interface OnUsersFragmentInteractionListener {\n void onListFragmentInteraction(User item);\n }", "public interface MainScreeInteractionListener {\n // TODO: Update argument type and name\n void onFragmentInteractionMain();\n }", "public interface OnFragmentInteractionListener {\n // TODO: Update argument type and name\n void onClickNextTurn();\n }", "public interface OnFragmentInteractionListener {\n // TODO: Update argument type and name\n void onFragmentInteraction();\n\n void changeBottomNavSelection(int menuItem);\n }", "public interface OnFragmentInteractionListener {\n void onFragmentInteraction(Uri uri);\n}", "public interface OnFragmentInteractionListener {\n public void onFragmentInteraction(Uri uri);\n }", "public interface OnFragmentInteractionListener {\n public void onFragmentInteraction(Uri uri);\n }", "public interface OnFragmentInteractionListener {\n public void onFragmentInteraction(Uri uri);\n }", "public interface OnFragmentInteractionListener {\n void onSignoutClicked();\n\n void onExtraScopeRequested();\n }", "interface OnMainFragInteractionListener {\n void onWifiFragReplace();\n void onHistoryFragReplace();\n void onHistoryWithOsmMapFragReplace();\n void onMainFragReplace();\n }", "public interface OnListFragmentInteractionListener {\n void onListFragmentInteraction(Note note);\n}" ]
[ "0.73245984", "0.72083515", "0.71344024", "0.7124397", "0.7121651", "0.7015244", "0.69770265", "0.69770265", "0.69770265", "0.6974299", "0.6967729", "0.6966127", "0.69612694", "0.69538033", "0.694325", "0.69331574", "0.69292706", "0.6927241", "0.6923228", "0.69110304", "0.690297", "0.68973196", "0.68943197", "0.68817276", "0.6881559", "0.68756723", "0.6864657", "0.6861271", "0.686012", "0.685779", "0.6854849", "0.6843982", "0.68401647", "0.68304354", "0.68180305", "0.681689", "0.68096936", "0.6786359", "0.6769924", "0.6769685", "0.6769685", "0.6769685", "0.6769685", "0.6769685", "0.6769685", "0.6769685", "0.6769685", "0.6769685", "0.6766966", "0.6761711", "0.67558855", "0.6753921", "0.66984934", "0.6680787", "0.6673983", "0.6670958", "0.66700584", "0.66618216", "0.6661248", "0.6655532", "0.6651844", "0.66448575", "0.6643978", "0.6643978", "0.6643978", "0.6643978", "0.6643978", "0.6643978", "0.6643978", "0.6643978", "0.6643978", "0.6643978", "0.6643978", "0.66384566", "0.6636147", "0.66316783", "0.66252905", "0.6624636", "0.66182214", "0.66100127", "0.6609113", "0.6608689", "0.6605501", "0.6598087", "0.6596676", "0.65879196", "0.6572657", "0.6568728", "0.65603936", "0.65595835", "0.6555348", "0.65497047", "0.6548923", "0.6543644", "0.65386736", "0.65341485", "0.65341485", "0.65341485", "0.65194017", "0.6517115", "0.65170354" ]
0.0
-1
TODO: Update argument type and name
void onFragmentInteraction(Uri uri);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n public String getFirstArg() {\n return name;\r\n }", "@Override\n public int getNumberArguments() {\n return 1;\n }", "java.lang.String getArg();", "@Override\n public int getArgLength() {\n return 4;\n }", "Argument createArgument();", "@Override\r\n\tpublic String getFirstArg() {\n\t\treturn null;\r\n\t}", "@Override\n protected PacketArgs.ArgumentType[] getArgumentTypes() {\n return new PacketArgs.ArgumentType[] { PacketArgs.ArgumentType.String };\n }", "@Override\n\tpublic void traverseArg(UniArg node) {\n\t}", "@Override\n\t\t\t\t\tpublic Parameter handleParameter(Method parent,\n\t\t\t\t\t\t\tEParamType direction, FArgument src) {\n\t\t\t\t\t\treturn super.handleParameter(parent, direction, src);\n\t\t\t\t\t}", "Object[] getArguments();", "Object[] getArguments();", "String getArguments();", "@Override\n\tpublic void handleArgument(ArrayList<String> argument) {\n\t\t\n\t}", "@Override\n public final int parseArguments(Parameters params) {\n return 1;\n }", "ArgList createArgList();", "public Object[] getArguments() { return args;}", "@Override\n public String getInputArg(String argName) {\n Log.w(TAG, \"Test input args is not supported.\");\n return null;\n }", "@Override\n protected String getName() {return _parms.name;}", "private static AbstractType<?>[] argumentsType(@Nullable StringType algorithmArgumentType)\n {\n return algorithmArgumentType == null\n ? DEFAULT_ARGUMENTS\n : new AbstractType<?>[]{ algorithmArgumentType };\n }", "uicargs createuicargs();", "java.util.List<com.mwr.jdiesel.api.Protobuf.Message.Argument> \n getArgumentList();", "java.util.List<com.mwr.jdiesel.api.Protobuf.Message.Argument> \n getArgumentList();", "public static void main(String[] args) {\n\t\t\tmeth(args);\r\n\t\t\targument_test:meth(args);\r\n\t}", "@Override\r\n\tpublic int getSecondArg() {\n\t\treturn 0;\r\n\t}", "public getType_args(getType_args other) {\n }", "Object[] args();", "protected void validateArguments( Object[] args ) throws ActionExecutionException {\n\n Annotation[][] annotations = method.getParameterAnnotations();\n for (int i = 0; i < annotations.length; i++) {\n\n Annotation[] paramAnnotations = annotations[i];\n\n for (Annotation paramAnnotation : paramAnnotations) {\n if (paramAnnotation instanceof Parameter) {\n Parameter paramDescriptionAnnotation = (Parameter) paramAnnotation;\n ValidationType validationType = paramDescriptionAnnotation.validation();\n\n String[] validationArgs;\n\n // if we are checking for valid constants, then the\n // args array should contain\n // the name of the array holding the valid constants\n if (validationType == ValidationType.STRING_CONSTANT\n || validationType == ValidationType.NUMBER_CONSTANT) {\n try {\n String arrayName = paramDescriptionAnnotation.args()[0];\n\n // get the field and set access level if\n // necessary\n Field arrayField = method.getDeclaringClass().getDeclaredField(arrayName);\n if (!arrayField.isAccessible()) {\n arrayField.setAccessible(true);\n }\n Object arrayValidConstants = arrayField.get(null);\n\n // convert the object array to string array\n String[] arrayValidConstatnsStr = new String[Array.getLength(arrayValidConstants)];\n for (int j = 0; j < Array.getLength(arrayValidConstants); j++) {\n arrayValidConstatnsStr[j] = Array.get(arrayValidConstants, j).toString();\n }\n\n validationArgs = arrayValidConstatnsStr;\n\n } catch (IndexOutOfBoundsException iobe) {\n // this is a fatal error\n throw new ActionExecutionException(\"You need to specify the name of the array with valid constants in the 'args' field of the Parameter annotation\");\n } catch (Exception e) {\n // this is a fatal error\n throw new ActionExecutionException(\"Could not get array with valid constants - action annotations are incorrect\");\n }\n } else {\n validationArgs = paramDescriptionAnnotation.args();\n }\n\n List<BaseType> typeValidators = createBaseTypes(paramDescriptionAnnotation.validation(),\n paramDescriptionAnnotation.name(),\n args[i], validationArgs);\n //perform validation\n for (BaseType baseType : typeValidators) {\n if (baseType != null) {\n try {\n baseType.validate();\n } catch (TypeException e) {\n throw new InvalidInputArgumentsException(\"Validation failed while validating argument \"\n + paramDescriptionAnnotation.name()\n + e.getMessage());\n }\n } else {\n log.warn(\"Could not perform validation on argument \"\n + paramDescriptionAnnotation.name());\n }\n }\n }\n }\n }\n }", "@Test\n void getArgString() {\n }", "@Override\n\t\t\t\t\tpublic Parameter handleParameter(Method parent,\n\t\t\t\t\t\t\tEParamType direction, FEnumerator src) {\n\t\t\t\t\t\treturn super.handleParameter(parent, direction, src);\n\t\t\t\t\t}", "@Override\n public void prepareArguments(ActionInvocation invocation)\n throws InvalidValueException {\n }", "@Override\n public void prepareArguments(ActionInvocation invocation)\n throws InvalidValueException {\n }", "@Override\n public void prepareArguments(ActionInvocation invocation)\n throws InvalidValueException {\n }", "@Override\n public void prepareArguments(ActionInvocation invocation)\n throws InvalidValueException {\n }", "@Override\n public void prepareArguments(ActionInvocation invocation)\n throws InvalidValueException {\n }", "@Override\n public void prepareArguments(ActionInvocation invocation)\n throws InvalidValueException {\n }", "@Override\n public void prepareArguments(ActionInvocation invocation)\n throws InvalidValueException {\n }", "@Override\n public void prepareArguments(ActionInvocation invocation)\n throws InvalidValueException {\n }", "@Override\n public void prepareArguments(ActionInvocation invocation)\n throws InvalidValueException {\n }", "@Override\n public void prepareArguments(ActionInvocation invocation)\n throws InvalidValueException {\n }", "@Override\n public void prepareArguments(ActionInvocation invocation)\n throws InvalidValueException {\n }", "@Override\n public void prepareArguments(ActionInvocation invocation)\n throws InvalidValueException {\n }", "@Override\n public void prepareArguments(ActionInvocation invocation)\n throws InvalidValueException {\n }", "@Override\n public void prepareArguments(ActionInvocation invocation)\n throws InvalidValueException {\n }", "@Override\n public void prepareArguments(ActionInvocation invocation)\n throws InvalidValueException {\n }", "@Override\n public void prepareArguments(ActionInvocation invocation)\n throws InvalidValueException {\n }", "@Override\n public void prepareArguments(ActionInvocation invocation)\n throws InvalidValueException {\n }", "int getArgIndex();", "@Override\n\tpublic void addArg(FormulaElement arg){\n\t}", "public Type[] getArgumentTypes() {\n/* 236 */ return Type.getArgumentTypes(this.desc);\n/* */ }", "@Override\n public Object[] getArguments() {\n return null;\n }", "public login_1_argument() {\n }", "Optional<String[]> arguments();", "private Main(String... arguments) {\n this.operations = new ArrayDeque<>(List.of(arguments));\n }", "@Override\n\tprotected GATKArgumentCollection getArgumentCollection() {\n\t\treturn argCollection;\n\t}", "protected void sequence_Argument(ISerializationContext context, Argument semanticObject) {\n\t\tif (errorAcceptor != null) {\n\t\t\tif (transientValues.isValueTransient(semanticObject, TdlPackage.Literals.ARGUMENT__NAME) == ValueTransient.YES)\n\t\t\t\terrorAcceptor.accept(diagnosticProvider.createFeatureValueMissing(semanticObject, TdlPackage.Literals.ARGUMENT__NAME));\n\t\t}\n\t\tSequenceFeeder feeder = createSequencerFeeder(context, semanticObject);\n\t\tfeeder.accept(grammarAccess.getArgumentAccess().getNameSTRINGTerminalRuleCall_0_0(), semanticObject.getName());\n\t\tfeeder.finish();\n\t}", "void setArguments(String arguments);", "@Override\n\tpublic List<String> getArgumentDesc() {\n\t\treturn desc;\n\t}", "OpFunctionArgAgregate createOpFunctionArgAgregate();", "protected abstract Feature<T,?> convertArgument(Class<?> parameterType, Feature<T,?> originalArgument);", "void visitArgument(Argument argument);", "public Thaw_args(Thaw_args other) {\r\n }", "@Override\r\n\tpublic List<String> getArguments()\r\n\t{\n\t\treturn null;\r\n\t}", "private static String getArgumentString(Object arg) {\n if (arg instanceof String) {\n return \"\\\\\\\"\"+arg+\"\\\\\\\"\";\n }\n else return arg.toString();\n }", "public interface Param {\n\n int[] args();\n String exec(ExecutePack pack);\n String label();\n}", "@Override\n public void verifyArgs(ArrayList<String> args) throws ArgumentFormatException {\n super.checkNumArgs(args);\n _args = true;\n }", "public abstract ValidationResults validArguments(String[] arguments);", "public ArgumentException() {\n super(\"Wrong arguments passed to function\");\n }", "public String getArgumentString() {\n\t\treturn null;\n\t}", "@Override\n public String kind() {\n return \"@param\";\n }", "@Override\n\t\t\t\t\tpublic Parameter handleParameter(Method parent,\n\t\t\t\t\t\t\tEParamType direction, FEnumerationType src) {\n\t\t\t\t\t\treturn super.handleParameter(parent, direction, src);\n\t\t\t\t\t}", "public void addArgumentTypeSerialization(String functionName, String argumentName, TensorType type) {\n wrappedSerializationContext.addArgumentTypeSerialization(functionName, argumentName, type);\n }", "void setArgument(int idx,int v) \t\t{ setArgument(idx,Integer.valueOf(v)); }", "@Override\n\tprotected byte[] getArgByte() {\n\t\treturn paramsJson.getBytes();\n\t}", "void onArgumentsChanged();", "com.google.protobuf.ByteString\n\t\tgetArgBytes();", "@Override public int getNumArguments()\t\t\t{ return arg_list.size(); }", "MyArg(int value){\n this.value = value;\n }", "public ArgList(Object arg1) {\n super(1);\n addElement(arg1);\n }", "public Clear_args(Clear_args other) {\r\n }", "private ParameterInformation processArgumentReference(Argument argument,\n List<NameDescriptionType> argTypeSet,\n SequenceEntryType seqEntry,\n int seqIndex)\n {\n ParameterInformation argumentInfo = null;\n\n // Initialize the argument's attributes\n String argName = argument.getName();\n String dataType = null;\n String arraySize = null;\n String bitLength = null;\n BigInteger argBitSize = null;\n String enumeration = null;\n String description = null;\n UnitSet unitSet = null;\n String units = null;\n String minimum = null;\n String maximum = null;\n\n // Step through each command argument type\n for (NameDescriptionType argType : argTypeSet)\n {\n // Check if this is the same command argument referenced in the argument list (by\n // matching the command and argument names between the two)\n if (argument.getArgumentTypeRef().equals(argType.getName()))\n {\n boolean isInteger = false;\n boolean isUnsigned = false;\n boolean isFloat = false;\n boolean isString = false;\n\n // Check if this is an array parameter\n if (seqEntry instanceof ArrayParameterRefEntryType)\n {\n arraySize = \"\";\n\n // Store the reference to the array parameter type\n ArrayDataTypeType arrayType = (ArrayDataTypeType) argType;\n argType = null;\n\n // Step through each dimension for the array variable\n for (Dimension dim : ((ArrayParameterRefEntryType) seqEntry).getDimensionList().getDimension())\n {\n // Check if the fixed value exists\n if (dim.getEndingIndex().getFixedValue() != null)\n {\n // Build the array size string\n arraySize += String.valueOf(Integer.valueOf(dim.getEndingIndex().getFixedValue()) + 1)\n + \",\";\n }\n }\n\n arraySize = CcddUtilities.removeTrailer(arraySize, \",\");\n\n // The array parameter type references a non-array parameter type that\n // describes the individual array members. Step through each data type in the\n // parameter type set in order to locate this data type entry\n for (NameDescriptionType type : argTypeSet)\n {\n // Check if the array parameter's array type reference matches the data\n // type name\n if (arrayType.getArrayTypeRef().equals(type.getName()))\n {\n // Store the reference to the array parameter's data type and stop\n // searching\n argType = type;\n break;\n }\n }\n }\n\n // Check if a data type entry for the parameter exists in the parameter type set\n // (note that if the parameter is an array the steps above locate the data type\n // entry for the individual array members)\n if (argType != null)\n {\n long dataTypeBitSize = 0;\n\n // Check if the argument is an integer data type\n if (argType instanceof IntegerArgumentType)\n {\n IntegerArgumentType icmd = (IntegerArgumentType) argType;\n\n // Get the number of bits occupied by the argument\n argBitSize = icmd.getSizeInBits();\n\n // Get the argument units reference\n unitSet = icmd.getUnitSet();\n\n // Check if integer encoding is set to 'unsigned'\n if (icmd.getIntegerDataEncoding().getEncoding().equalsIgnoreCase(\"unsigned\"))\n {\n isUnsigned = true;\n }\n\n // Determine the smallest integer size that contains the number of bits\n // occupied by the argument\n dataTypeBitSize = 8;\n\n while (argBitSize.longValue() > dataTypeBitSize)\n {\n dataTypeBitSize *= 2;\n }\n\n // Get the argument alarm\n IntegerArgumentType.ValidRangeSet alarmType = icmd.getValidRangeSet();\n\n // Check if the argument has an alarm\n if (alarmType != null)\n {\n // Get the alarm range\n List<IntegerRangeType> alarmRange = alarmType.getValidRange();\n\n // Check if the alarm range exists\n if (alarmRange != null)\n {\n // Store the minimum alarm value\n minimum = alarmRange.get(0).getMinInclusive();\n\n // Store the maximum alarm value\n maximum = alarmRange.get(0).getMaxInclusive();\n }\n }\n\n isInteger = true;\n }\n // Check if the argument is a floating point data type\n else if (argType instanceof FloatArgumentType)\n {\n // Get the float argument attributes\n FloatArgumentType fcmd = (FloatArgumentType) argType;\n dataTypeBitSize = fcmd.getSizeInBits().longValue();\n unitSet = fcmd.getUnitSet();\n\n // Get the argument alarm\n FloatArgumentType.ValidRangeSet alarmType = fcmd.getValidRangeSet();\n\n // Check if the argument has an alarm\n if (alarmType != null)\n {\n // Get the alarm range\n List<FloatRangeType> alarmRange = alarmType.getValidRange();\n\n // Check if the alarm range exists\n if (alarmRange != null)\n {\n // Get the minimum value\n Double min = alarmRange.get(0).getMinInclusive();\n\n // Check if a minimum value exists\n if (min != null)\n {\n // Get the minimum alarm value\n minimum = String.valueOf(min);\n }\n\n // Get the maximum value\n Double max = alarmRange.get(0).getMaxInclusive();\n\n // Check if a maximum value exists\n if (max != null)\n {\n // Get the maximum alarm value\n maximum = String.valueOf(max);\n }\n }\n }\n\n isFloat = true;\n }\n // Check if the argument is a string data type\n else if (argType instanceof StringDataType)\n {\n // Get the string argument attributes\n StringDataType scmd = (StringDataType) argType;\n dataTypeBitSize = Integer.valueOf(scmd.getStringDataEncoding()\n .getSizeInBits()\n .getFixed()\n .getFixedValue());\n unitSet = scmd.getUnitSet();\n isString = true;\n }\n // Check if the argument is an enumerated data type\n else if (argType instanceof EnumeratedDataType)\n {\n EnumeratedDataType ecmd = (EnumeratedDataType) argType;\n EnumerationList enumList = ecmd.getEnumerationList();\n\n // Check if any enumeration parameters are defined\n if (enumList != null)\n {\n // Step through each enumeration parameter\n for (ValueEnumerationType enumType : enumList.getEnumeration())\n {\n // Check if this is the first parameter\n if (enumeration == null)\n {\n // Initialize the enumeration string\n enumeration = \"\";\n }\n // Not the first parameter\n else\n {\n // Add the separator for the enumerations\n enumeration += \", \";\n }\n\n // Begin building this enumeration\n enumeration += enumType.getValue() + \" | \" + enumType.getLabel();\n }\n\n argBitSize = ecmd.getIntegerDataEncoding().getSizeInBits();\n unitSet = ecmd.getUnitSet();\n\n // Check if integer encoding is set to 'unsigned'\n if (ecmd.getIntegerDataEncoding().getEncoding().equalsIgnoreCase(\"unsigned\"))\n {\n isUnsigned = true;\n }\n\n // Determine the smallest integer size that contains the number of bits\n // occupied by the argument\n dataTypeBitSize = 8;\n\n while (argBitSize.longValue() > dataTypeBitSize)\n {\n dataTypeBitSize *= 2;\n }\n\n isInteger = true;\n }\n }\n\n // Get the name of the data type from the data type table that matches the base\n // type and size of the parameter\n dataType = getMatchingDataType(dataTypeBitSize / 8,\n isInteger,\n isUnsigned,\n isFloat,\n isString,\n dataTypeHandler);\n\n // Check if the description exists\n if (argType.getLongDescription() != null)\n {\n // Store the description\n description = argType.getLongDescription();\n }\n\n // Check if the argument bit size exists\n if (argBitSize != null && argBitSize.longValue() != dataTypeBitSize)\n {\n // Store the bit length\n bitLength = argBitSize.toString();\n }\n\n // Check if the units exists\n if (unitSet != null)\n {\n List<UnitType> unitType = unitSet.getUnit();\n\n // Check if the units is set\n if (!unitType.isEmpty())\n {\n // Store the units\n units = unitType.get(0).getContent();\n }\n }\n\n argumentInfo = new ParameterInformation(argName,\n dataType,\n arraySize,\n bitLength,\n enumeration,\n units,\n minimum,\n maximum,\n description,\n 0,\n seqIndex);\n }\n\n break;\n }\n }\n\n return argumentInfo;\n }", "public abstract interface QueryArgs {\n\n /** Return the catalog associated with this object */\n public Catalog getCatalog();\n\n /** Set the value for the ith parameter */\n public void setParamValue(int i, Object value);\n\n /** Set the value for the parameter with the given label */\n public void setParamValue(String label, Object value);\n\n /** Set the min and max values for the parameter with the given label */\n public void setParamValueRange(String label, Object minValue, Object maxValue);\n\n /** Set the int value for the parameter with the given label */\n public void setParamValue(String label, int value);\n\n /** Set the double value for the parameter with the given label */\n public void setParamValue(String label, double value);\n\n /** Set the double value for the parameter with the given label */\n public void setParamValueRange(String label, double minValue, double maxValue);\n\n /** Set the array of parameter values directly. */\n public void setParamValues(Object[] values);\n\n /** Get the value of the ith parameter */\n public Object getParamValue(int i);\n\n /** Get the value of the named parameter\n *\n * @param label the parameter name or id\n * @return the value of the parameter, or null if not specified\n */\n public Object getParamValue(String label);\n\n /**\n * Get the value of the named parameter as an integer.\n *\n * @param label the parameter label\n * @param defaultValue the default value, if the parameter was not specified\n * @return the value of the parameter\n */\n public int getParamValueAsInt(String label, int defaultValue);\n\n /**\n * Get the value of the named parameter as a double.\n *\n * @param label the parameter label\n * @param defaultValue the default value, if the parameter was not specified\n * @return the value of the parameter\n */\n public double getParamValueAsDouble(String label, double defaultValue);\n\n /**\n * Get the value of the named parameter as a String.\n *\n * @param label the parameter label\n * @param defaultValue the default value, if the parameter was not specified\n * @return the value of the parameter\n */\n public String getParamValueAsString(String label, String defaultValue);\n\n\n /**\n * Return the object id being searched for, or null if none was defined.\n */\n public String getId();\n\n /**\n * Set the object id to search for.\n */\n public void setId(String id);\n\n\n /**\n * Return an object describing the query region (center position and\n * radius range), or null if none was defined.\n */\n public CoordinateRadius getRegion();\n\n /**\n * Set the query region (center position and radius range) for\n * the search.\n */\n public void setRegion(CoordinateRadius region);\n\n\n /**\n * Return an array of SearchCondition objects indicating the\n * values or range of values to search for.\n */\n public SearchCondition[] getConditions();\n\n /** Returns the max number of rows to be returned from a table query */\n public int getMaxRows();\n\n /** Set the max number of rows to be returned from a table query */\n public void setMaxRows(int maxRows);\n\n\n /** Returns the query type (an optional string, which may be interpreted by some catalogs) */\n public String getQueryType();\n\n /** Set the query type (an optional string, which may be interpreted by some catalogs) */\n public void setQueryType(String queryType);\n\n /**\n * Returns a copy of this object\n */\n public QueryArgs copy();\n\n /**\n * Optional: If not null, use this object for displaying the progress of the background query\n */\n public StatusLogger getStatusLogger();\n}", "@Override\n public void doExeception(Map<String, Object> args)\n {\n \n }", "@Override\n public void doExeception(Map<String, Object> args)\n {\n \n }", "@Override\n\tprotected Collection<ArgumentTypeDescriptor> getArgumentTypeDescriptors() {\n\t\treturn Arrays.asList(new VCFWriterArgumentTypeDescriptor(engine, System.out, bisulfiteArgumentSources), new SAMReaderArgumentTypeDescriptor(engine),\n\t\t\t\tnew SAMFileWriterArgumentTypeDescriptor(engine, System.out), new OutputStreamArgumentTypeDescriptor(engine, System.out));\n\t}", "@Override\n public int getArgent() {\n return _argent;\n }", "private static @NonNull String resolveInputName(@NonNull Argument<?> argument) {\n String inputName = argument.getAnnotationMetadata().stringValue(Bindable.NAME).orElse(null);\n if (StringUtils.isEmpty(inputName)) {\n inputName = argument.getName();\n }\n return inputName;\n }", "private Object[] getArguments (String className, Object field)\n\t{\n\t\treturn ((field == null) ? new Object[]{className} : \n\t\t\tnew Object[]{className, field});\n\t}", "PermissionSerializer (GetArg arg) throws IOException, ClassNotFoundException {\n\tthis( \n\t create(\n\t\targ.get(\"targetType\", null, Class.class),\n\t\targ.get(\"type\", null, String.class),\n\t\targ.get(\"targetName\", null, String.class),\n\t\targ.get(\"targetActions\", null, String.class) \n\t )\n\t);\n }", "public Type getArgumentDirection() {\n return direction;\n }", "public String argTypes() {\n return \"I\";//NOI18N\n }", "public static void main(String arg[]) {\n\n }", "godot.wire.Wire.Value getArgs(int index);", "@Override\n protected String[] getArguments() {\n String[] args = new String[1];\n args[0] = _game_file_name;\n return args;\n }", "public void setArgs(java.lang.String value) {\n this.args = value;\n }", "private Argument(Builder builder) {\n super(builder);\n }", "@Override\n public void execute(String[] args) {\n\n }", "@Override\n\tprotected final void setFromArgument(CommandContext<ServerCommandSource> context, String name) {\n\t}", "UUID createArgument(ArgumentCreateRequest request);", "@Override\n public void initialise(String[] arguments) {\n\n }", "public static ParameterExpression parameter(Class type, String name) { throw Extensions.todo(); }", "protected abstract void parseArgs() throws IOException;" ]
[ "0.7164074", "0.6946075", "0.6714363", "0.65115863", "0.63969076", "0.6375468", "0.63481104", "0.63162106", "0.6260299", "0.6208487", "0.6208487", "0.62070644", "0.6197276", "0.61806154", "0.6177103", "0.61530507", "0.61472267", "0.61243707", "0.60771817", "0.6054482", "0.59906125", "0.59906125", "0.5984017", "0.59791875", "0.5977681", "0.59532714", "0.5946838", "0.59457266", "0.59452903", "0.59352577", "0.59352577", "0.59352577", "0.59352577", "0.59352577", "0.59352577", "0.59352577", "0.59352577", "0.59352577", "0.59352577", "0.59352577", "0.59352577", "0.59352577", "0.59352577", "0.59352577", "0.59352577", "0.59352577", "0.5909717", "0.5889277", "0.588111", "0.5871162", "0.5866624", "0.58613646", "0.58519953", "0.58381283", "0.58083445", "0.58059824", "0.5795826", "0.57816726", "0.57670826", "0.57556796", "0.57471323", "0.57418406", "0.5729463", "0.57291526", "0.5716928", "0.5713024", "0.56974274", "0.56782854", "0.56723106", "0.5664594", "0.5664104", "0.5660337", "0.5652865", "0.5647883", "0.5642134", "0.5635645", "0.5634968", "0.562251", "0.56210977", "0.56167537", "0.56138444", "0.56044126", "0.56044126", "0.5602371", "0.56012225", "0.55986875", "0.55893147", "0.5588273", "0.5583255", "0.5582767", "0.55681497", "0.55626017", "0.55577534", "0.55524325", "0.5549442", "0.55378276", "0.5536797", "0.5527675", "0.5511817", "0.55099154", "0.550257" ]
0.0
-1
/ access modifiers changed from: protected / renamed from: zzj
public zzeo zzc(IBinder iBinder) { return zzeo.zza.zzp(iBinder); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private stendhal() {\n\t}", "public abstract void mo2624j();", "@Override\n protected void prot() {\n }", "public abstract Object mo26777y();", "public final void zzjk() {\n }", "public abstract void mo70713b();", "private final zzgy zzgb() {\n }", "private void kk12() {\n\n\t}", "public abstract void mo27385c();", "public abstract void mo27386d();", "private zza.zza()\n\t\t{\n\t\t}", "public abstract void mo56925d();", "private Rekenhulp()\n\t{\n\t}", "@Override\n public void func_104112_b() {\n \n }", "private abstract void privateabstract();", "@Override\n\tpublic void jugar() {\n\t\t\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "public abstract String mo41079d();", "public abstract void mo42331g();", "public abstract void mo42329d();", "public abstract String mo118046b();", "protected void h() {}", "@Override\r\n\tprotected void func03() {\n\t\t\r\n\t}", "public abstract int zzbej();", "@Override\n\tpublic void jugar() {}", "public abstract void mo30696a();", "public abstract String mo9239aw();", "public abstract void mo6549b();", "public abstract void mo35054b();", "@Override\r\n\tpublic void smthAbstr() {\n\t\t\r\n\t}", "public abstract String mo13682d();", "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "public void mo21785J() {\n }", "public void mo21779D() {\n }", "private Dex2JarProxy() {\r\n\t}", "public abstract Object mo1185b();", "@Override\r\n\tpublic void rozmnozovat() {\n\t}", "@Override\n\tpublic void anular() {\n\n\t}", "public abstract void mo102899a();", "public abstract void mo27464a();", "public void mo97908d() {\n }", "public void mo21825b() {\n }", "public final void mo91715d() {\n }", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "private void ss(){\n }", "public abstract void mo45765b();", "@Override\n public void perish() {\n \n }", "private test5() {\r\n\t\r\n\t}", "public void method_4270() {}", "public abstract int mo41077c();", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "public abstract void m15813a();", "private JadTool() { }", "public abstract String mo11611b();", "private void m50366E() {\n }", "public void smell() {\n\t\t\n\t}", "public abstract void mo42330e();", "@Override\r\n\t\t\tpublic void func02() {\n\t\t\t\t\r\n\t\t\t}", "private static void cajas() {\n\t\t\n\t}", "public /* bridge */ /* synthetic */ void mo55096c() {\n super.mo55096c();\n }", "public abstract Object mo1771a();", "protected Doodler() {\n\t}", "public void mo21782G() {\n }", "public abstract String mo41086i();", "@Override\n\tpublic void nadar() {\n\t\t\n\t}", "public abstract void mo3994a();", "public void mo23813b() {\n }", "private void someUtilityMethod() {\n }", "private void someUtilityMethod() {\n }", "public void mo21793R() {\n }", "@Override\n\tpublic void ligar() {\n\t\t\n\t}", "public void m23075a() {\n }", "public abstract void mo4359a();", "zzafe mo29840Y() throws RemoteException;", "public abstract String mo9091a();", "public void mo3749d() {\n }", "void mo57277b();", "public abstract void mo957b();", "public void mo21878t() {\n }", "public abstract Member mo23408O();", "public abstract int mo9745j();", "protected boolean func_70814_o() { return true; }", "public void mo21877s() {\n }", "public void mo21786K() {\n }", "@Override\n\tprotected void interr() {\n\t}", "@Override\n\tpublic void sacrifier() {\n\t\t\n\t}", "public final void mo51373a() {\n }", "public void mo56167c() {\n }", "public abstract int mo4375b();", "private MigrationInstantiationUtil() {\n\t\tthrow new IllegalAccessError();\n\t}", "protected abstract String getZ();", "public void mo6944a() {\n }", "public abstract C0270jy mo5354b();", "void m1864a() {\r\n }", "static void jhat() {\n\n }", "private void __sep__Constructors__() {}", "public void mo38117a() {\n }", "public /* bridge */ /* synthetic */ void mo55097d() {\n super.mo55097d();\n }" ]
[ "0.68510145", "0.6708894", "0.667761", "0.6565258", "0.6519668", "0.6495956", "0.6490065", "0.6484957", "0.6482457", "0.6465639", "0.64366025", "0.64340657", "0.6408734", "0.63986146", "0.6380117", "0.63542825", "0.6321485", "0.6318071", "0.6277723", "0.6276835", "0.6269605", "0.62540126", "0.62470317", "0.6245958", "0.62368494", "0.62322927", "0.6230147", "0.6205669", "0.6204393", "0.6182031", "0.61717147", "0.6133428", "0.6124358", "0.61007863", "0.60894704", "0.6082787", "0.60813266", "0.6078885", "0.6074143", "0.60553646", "0.6054786", "0.6052761", "0.6046604", "0.6046305", "0.6046305", "0.6044568", "0.6040393", "0.60394776", "0.6029436", "0.6025679", "0.60042447", "0.598229", "0.5982154", "0.5982154", "0.59814453", "0.59787", "0.5961598", "0.5958631", "0.5958285", "0.5955797", "0.5953673", "0.59536386", "0.5932491", "0.5931486", "0.59310645", "0.5923168", "0.59227794", "0.5922127", "0.590794", "0.5906803", "0.5896103", "0.5896103", "0.5886884", "0.5886455", "0.5883157", "0.5878844", "0.5870217", "0.5866434", "0.5861433", "0.5859571", "0.5857558", "0.5852813", "0.5852189", "0.5848042", "0.58467275", "0.5833407", "0.58312416", "0.5829859", "0.58288753", "0.58273214", "0.58270645", "0.5823994", "0.5823944", "0.5822426", "0.5820472", "0.58196545", "0.58173794", "0.5815744", "0.581065", "0.5806077", "0.5799597" ]
0.0
-1
TODO Autogenerated method stub
@Override public void realFun() { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExras() {\n\n\t}", "@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}", "@Override\n\tpublic void entrenar() {\n\t\t\n\t}", "@Override\n\tpublic void nadar() {\n\t\t\n\t}", "@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}", "@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}", "@Override\n\tprotected void interr() {\n\t}", "@Override\n\tpublic void emprestimo() {\n\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "@Override\n\tpublic void gravarBd() {\n\t\t\n\t}", "@Override\r\n\tpublic void rozmnozovat() {\n\t}", "@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}", "@Override\n protected void getExras() {\n }", "@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}", "@Override\n\tpublic void nefesAl() {\n\n\t}", "@Override\n\tpublic void ligar() {\n\t\t\n\t}", "@Override\n public void func_104112_b() {\n \n }", "@Override\n\tprotected void initdata() {\n\n\t}", "@Override\n\tpublic void nghe() {\n\n\t}", "@Override\n public void function()\n {\n }", "@Override\n public void function()\n {\n }", "public final void mo51373a() {\n }", "@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}", "@Override\n public void inizializza() {\n\n super.inizializza();\n }", "@Override\n\tprotected void initData() {\n\t\t\n\t}", "@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}", "@Override\n\tpublic void sacrifier() {\n\t\t\n\t}", "@Override\r\n\tprotected void InitData() {\n\t\t\r\n\t}", "public void designBasement() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}", "public void gored() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\r\n\t}", "@Override\n\tpublic void einkaufen() {\n\t}", "@Override\n protected void initialize() {\n\n \n }", "public void mo38117a() {\n }", "@Override\n\tprotected void getData() {\n\t\t\n\t}", "Constructor() {\r\n\t\t \r\n\t }", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\n\tpublic void one() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "private stendhal() {\n\t}", "@Override\n\tprotected void update() {\n\t\t\n\t}", "@Override\n\t\t\tpublic void ic() {\n\t\t\t\t\n\t\t\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n public void init() {\n\n }", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\n\tpublic void debite() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "public contrustor(){\r\n\t}", "@Override\n\tprotected void initialize() {\n\n\t}", "@Override\r\n\tpublic void dispase() {\n\r\n\t}", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "@Override\n\tpublic void dtd() {\n\t\t\n\t}", "@Override\n\tprotected void logic() {\n\n\t}", "@Override\n\tprotected void lazyLoad() {\n\t\t\n\t}", "public void mo4359a() {\n }", "@Override\r\n\tprotected void initialize() {\n\r\n\t}", "@Override\n public void memoria() {\n \n }", "@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}", "private RepositorioAtendimentoPublicoHBM() {\r\t}", "@Override\n protected void initialize() \n {\n \n }", "@Override\r\n\tpublic void getProposition() {\n\r\n\t}", "@Override\n\tpublic void particular1() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n protected void prot() {\n }", "@Override\r\n\tpublic void init()\r\n\t{\n\t}", "@Override\n\tprotected void initValue()\n\t{\n\n\t}", "public void mo55254a() {\n }" ]
[ "0.6671074", "0.6567672", "0.6523024", "0.6481211", "0.6477082", "0.64591026", "0.64127725", "0.63762105", "0.6276059", "0.6254286", "0.623686", "0.6223679", "0.6201336", "0.61950207", "0.61950207", "0.61922914", "0.6186996", "0.6173591", "0.61327106", "0.61285484", "0.6080161", "0.6077022", "0.6041561", "0.6024072", "0.6020252", "0.59984857", "0.59672105", "0.59672105", "0.5965777", "0.59485507", "0.5940904", "0.59239364", "0.5910017", "0.5902906", "0.58946234", "0.5886006", "0.58839184", "0.58691067", "0.5857751", "0.58503544", "0.5847024", "0.58239377", "0.5810564", "0.5810089", "0.5806823", "0.5806823", "0.5800025", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5790187", "0.5789414", "0.5787092", "0.57844025", "0.57844025", "0.5774479", "0.5774479", "0.5774479", "0.5774479", "0.5774479", "0.5761362", "0.57596046", "0.57596046", "0.575025", "0.575025", "0.575025", "0.5747959", "0.57337177", "0.57337177", "0.57337177", "0.5721452", "0.5715831", "0.57142824", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.5711723", "0.57041645", "0.56991017", "0.5696783", "0.56881124", "0.56774884", "0.56734604", "0.56728", "0.56696945", "0.5661323", "0.5657007", "0.5655942", "0.5655942", "0.5655942", "0.56549734", "0.5654792", "0.5652974", "0.5650185" ]
0.0
-1
TODO Autogenerated method stub
@Override public void run() { realFun(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExras() {\n\n\t}", "@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}", "@Override\n\tpublic void entrenar() {\n\t\t\n\t}", "@Override\n\tpublic void nadar() {\n\t\t\n\t}", "@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}", "@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}", "@Override\n\tprotected void interr() {\n\t}", "@Override\n\tpublic void emprestimo() {\n\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "@Override\n\tpublic void gravarBd() {\n\t\t\n\t}", "@Override\r\n\tpublic void rozmnozovat() {\n\t}", "@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}", "@Override\n protected void getExras() {\n }", "@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}", "@Override\n\tpublic void nefesAl() {\n\n\t}", "@Override\n\tpublic void ligar() {\n\t\t\n\t}", "@Override\n public void func_104112_b() {\n \n }", "@Override\n\tprotected void initdata() {\n\n\t}", "@Override\n\tpublic void nghe() {\n\n\t}", "@Override\n public void function()\n {\n }", "@Override\n public void function()\n {\n }", "public final void mo51373a() {\n }", "@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}", "@Override\n public void inizializza() {\n\n super.inizializza();\n }", "@Override\n\tprotected void initData() {\n\t\t\n\t}", "@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}", "@Override\n\tpublic void sacrifier() {\n\t\t\n\t}", "@Override\r\n\tprotected void InitData() {\n\t\t\r\n\t}", "public void designBasement() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}", "public void gored() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\r\n\t}", "@Override\n\tpublic void einkaufen() {\n\t}", "@Override\n protected void initialize() {\n\n \n }", "public void mo38117a() {\n }", "@Override\n\tprotected void getData() {\n\t\t\n\t}", "Constructor() {\r\n\t\t \r\n\t }", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\n\tpublic void one() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "private stendhal() {\n\t}", "@Override\n\tprotected void update() {\n\t\t\n\t}", "@Override\n\t\t\tpublic void ic() {\n\t\t\t\t\n\t\t\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n public void init() {\n\n }", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\n\tpublic void debite() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "public contrustor(){\r\n\t}", "@Override\n\tprotected void initialize() {\n\n\t}", "@Override\r\n\tpublic void dispase() {\n\r\n\t}", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "@Override\n\tpublic void dtd() {\n\t\t\n\t}", "@Override\n\tprotected void logic() {\n\n\t}", "@Override\n\tprotected void lazyLoad() {\n\t\t\n\t}", "public void mo4359a() {\n }", "@Override\r\n\tprotected void initialize() {\n\r\n\t}", "@Override\n public void memoria() {\n \n }", "@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}", "private RepositorioAtendimentoPublicoHBM() {\r\t}", "@Override\n protected void initialize() \n {\n \n }", "@Override\r\n\tpublic void getProposition() {\n\r\n\t}", "@Override\n\tpublic void particular1() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n protected void prot() {\n }", "@Override\r\n\tpublic void init()\r\n\t{\n\t}", "@Override\n\tprotected void initValue()\n\t{\n\n\t}", "public void mo55254a() {\n }" ]
[ "0.6671074", "0.6567672", "0.6523024", "0.6481211", "0.6477082", "0.64591026", "0.64127725", "0.63762105", "0.6276059", "0.6254286", "0.623686", "0.6223679", "0.6201336", "0.61950207", "0.61950207", "0.61922914", "0.6186996", "0.6173591", "0.61327106", "0.61285484", "0.6080161", "0.6077022", "0.6041561", "0.6024072", "0.6020252", "0.59984857", "0.59672105", "0.59672105", "0.5965777", "0.59485507", "0.5940904", "0.59239364", "0.5910017", "0.5902906", "0.58946234", "0.5886006", "0.58839184", "0.58691067", "0.5857751", "0.58503544", "0.5847024", "0.58239377", "0.5810564", "0.5810089", "0.5806823", "0.5806823", "0.5800025", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5790187", "0.5789414", "0.5787092", "0.57844025", "0.57844025", "0.5774479", "0.5774479", "0.5774479", "0.5774479", "0.5774479", "0.5761362", "0.57596046", "0.57596046", "0.575025", "0.575025", "0.575025", "0.5747959", "0.57337177", "0.57337177", "0.57337177", "0.5721452", "0.5715831", "0.57142824", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.5711723", "0.57041645", "0.56991017", "0.5696783", "0.56881124", "0.56774884", "0.56734604", "0.56728", "0.56696945", "0.5661323", "0.5657007", "0.5655942", "0.5655942", "0.5655942", "0.56549734", "0.5654792", "0.5652974", "0.5650185" ]
0.0
-1
method to return input from result page
public String checkInput() { return ((WebElement) links.get(0)).getAttribute("alt"); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private String getResponse()\n {\n System.out.println();\n System.out.println(\"Enter id number to look up, 'd' to display list, 'q' to quit\");\n System.out.print(\"Your choice: \");\n return scanner.nextLine();\n }", "String askForData();", "@GetMapping(\"\")\n public Object get(RetrieveInput input, BindingResult result) {\n if (result.hasErrors()) {\n throw new BadRequestException(result.getAllErrors());\n }\n EntitySpecification<Exam> specification = new EntitySpecification<>();\n specification.addIfValueNotEmpty(new SearchCriteria(\"title\", input.getFilterValue(), SearchOperation.MATCH));\n specification.addIfValueNotEmpty(new SearchCriteria(\"courseCode\", input.getCourseCode(), SearchOperation.MATCH));\n specification.addIfValueNotEmpty(new SearchCriteria(\"note\", input.getNote(), SearchOperation.MATCH));\n return examsService.retrieve(specification, PageRequest.of(input.getPageIndex(), input.getPageSize()))\n .map(exam -> conversionService.convert(exam, ExamDTO.class));\n }", "public String getResult();", "public String getResult();", "public String getResult();", "public String readResultBy(){ //le resultado para\n return driver.getTitle();\n }", "public abstract String getResult();", "public abstract void displayResult(Result result);", "private static String getResponseTo(String s) { // get user input as a string\r\n\t\tSystem.out.print(s);\r\n\t\treturn (scan.nextLine());\r\n\t}", "@Override\n\tpublic String getResult() {\n\t\treturn result;\n\t}", "public String extractresult(String search) {\n\t\tfd.findElement(By.id(\"sb_form_q\")).sendKeys(search);\r\n\t\tfd.findElement(By.id(\"sb_form_go\")).click();\r\n\t\t\r\n\t\treturn fd.findElement(By.className(\"sb_count\")).getText();\t\r\n\t}", "private String readResult() throws IOException {\n return reader.readLine();\n }", "@SuppressWarnings(\"unchecked\")\r\n\t@Override\r\n\tpublic String getResult() {\n\t\treturn this.result;\r\n\r\n\t}", "public String getReturnPage() {return returnPage;}", "Result getResult();", "void requestOutput();", "private void retrieveResult() {\n if (result == null) {\n this.setResult(((DocumentBuilder)this.getHandler()).getResult());\n }\n }", "private static String getUserPage() \n\t{\n\t\tString userInput = \"\";\n\t\ttry \n\t\t{\n\t\t\tSystem.out.println(\"What page?\");\n\t\t\tSystem.out.print(\"-> \");\n\t\t\tScanner scanner = new Scanner(System.in);\n\t\t\tuserInput = scanner.nextLine();\n\t\t\t\n\t\t\t// Check to see if their input is greater than the maxLength.\n\t\t\t// Error and quit with the message below if it is.\n\t\t\tif(userInput.length() > maxLength)\n\t\t\t{\n\t\t\t\tthrow new Exception(\"Please request a page with fewer characters.\");\n\t\t\t}\n\t\t} catch (Exception e) \n\t\t{\n\t\t\terrorQuit(e.getMessage());\n\t\t}\t\t\n\t\treturn userInput;\n\t\t\t \n\t}", "public void returnResult() {\n\t\tSystem.out.printf(\"Result of your Numbers are: %d\", result());\n\t}", "java.lang.String getResult();", "String getInput();", "private Scene takeResponse()\n {\n System.out.println(\"Enter the number which corresponds to the option you would like to choose\");\n System.out.print(\"> \");\n\n int choice = in.nextInt();\n\n if(isValidOption(choice, options.length)){\n return options[choice - 1].getNextScene();\n }else{\n return null;\n }\n }", "String getAnswerResponse();", "private void GetPByActionValue(HttpServletRequest request, HttpServletResponse response) throws IOException, NumberFormatException {\n String fullClassPath = request.getParameter(\"fullClassPath\");\n String indexStr = request.getParameter(\"index\");\n String type = request.getParameter(\"type\");\n int ElementIndex = Integer.parseInt(indexStr);\n\n String result = XMLTree.getInstance().getPValuesByActionValue(fullClassPath, ElementIndex, type);\n response.getWriter().write(result);\n }", "String getResponse();", "void showBookResult(Book book);", "public java.lang.String getResultPost() {\n return result_post;\n }", "public String getResults() {\r\n return returnObject.getResults();\r\n }", "@Override\n \tpublic Object getResult() {\n \t\treturn result;\n \t}", "@Override\n public String execute(HttpServletRequest request, HttpServletResponse response) throws Exception {\n String myresult = \"My result\";\n// Collection <Player> myresult = fullTeamService.getTeam();\n\n request.setAttribute(\"myresult\", myresult);\n\n return \"view/anotherResultMul.jsp\";\n\n\n\n }", "private String getResponse(String input) {\n try {\n CommandResult result = logicManager.execute(input);\n if (result.isExit()) {\n handleExit();\n }\n return result.getFeedbackToUser();\n } catch (CommandException | ParserException e) {\n return e.getMessage();\n }\n }", "String getUsersInput(String outForUser) throws IOException;", "java.lang.String getLastrunresult();", "@Override\n\tpublic void execute(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n\t\t\n\t\tBufferedReader br = request.getReader();\n\t\t\n\t\tSystem.out.println(br.readLine());\n\t\t\n\t\tSystem.out.println(request.getParameter(\"name\"));\n//\t\t\n\t\tPrintWriter pw = response.getWriter();\n\t\t\n\t\tpw.println(\"ajaxTest8return\");\n\t\t\n\t}", "public java.lang.String getResultPost() {\n return result_post;\n }", "private void getResults(GetResultRequestEvent e){\n\t\ttable.generateTable(tf.getItemIDList(),\n\t\t\t\te.getBuySystem(), e.getBuyType(),\n\t\t\t\te.getSellSystem(), e.getSellType(),\n\t\t\t\te.getMinimumMargin());\n\t}", "public String getResult()\r\n\t{\r\n\t\treturn result;\r\n\t}", "@Override\n\tprotected void parseResult() {\n\t\t\n\t}", "Variable getReturn();", "@Override\n protected Document input() {\n Decision decision = getStakeholderDecision();\n if (decision == null)\n return null;\n\n Map<String, Node> inputs = new HashMap<String, Node>();\n inputs.put(\"decision\", makeNode(decision)); //$NON-NLS-1$\n inputs.put(\"user\", makeNode(getUser())); //$NON-NLS-1$\n Document resultDoc =\n XMLUtil.makeDocFromNodes(\n CallCenterNamespaceContext.HTTP_WWW_JOELSGARAGE_COM_CALLCENTER,\n HistoryBasedScenePlayer.INPUT, inputs);\n Logger.getLogger(GetStakeholder.class).info(\"input: \" + XMLUtil.writeXML(resultDoc)); //$NON-NLS-1$\n return resultDoc;\n }", "public abstract String getResponse();", "public String getActionResult(){\r\n return resultOfLastAction;\r\n }", "public String inputForm() {\n return inputDataTraveler.validateData();\n }", "public String getResultsString()\r\n {\r\n String ResultsString = null;\r\n try\r\n {\r\n ResultsString = ResultsDocument.getText(ResultsDocument.getStartPosition().getOffset(),\r\n ResultsDocument.getLength() );\r\n }\r\n catch (BadLocationException InputException)\r\n {\r\n\t System.out.println(\"GrepFrame.getResultsString: Results document not initialised: \"\r\n\t + InputException);\r\n }\r\n return ResultsString;\r\n }", "public String submitText();", "protected void invokeResults() {\r\n\t\t// Create the intent.\r\n\t\tIntent plantResultsIntent = new Intent(this, PlantResultsActivity.class);\r\n\t\t\r\n\t\t// create a bundle to pass data to the results screen.\r\n\t\tBundle data = new Bundle();\r\n\t\tdata.putString(PLANT_SEARCH_TERM, actPlantName.getText().toString());\r\n\t\t// add the bundle to the intent\r\n\t\tplantResultsIntent.putExtras(data);\r\n\t\t// start the intent, and tell it we want results.\r\n\t\tstartActivityForResult(plantResultsIntent, \t1);\r\n\t}", "public String getResult() \n\t{\n\t\treturn strResult;\n\t}", "public interface SearchResult\n{\n /**\n * Title of search result item.\n * \n * @return String title\n */\n String getTitle();\n /**\n * Name of search result item.\n * \n * @return String title\n */\n String getName();\n /**\n * Select the link of the search result item.\n * \n * @return true if link found and selected\n */\n HtmlPage clickLink();\n /**\n * Verify if folder or not, true if search row represent\n * a folder.\n * \n * @return boolean true if search result is of folder\n */\n boolean isFolder();\n \n /**\n * Date of search result item.\n * \n * @return String Date\n */\n \n String getDate();\n \n /**\n * Site of search result item.\n * \n * @return String Site\n */\n \n String getSite();\n \n /**\n * Select the site link of the search result item.\n * \n * @return true if link found and selected\n */\n HtmlPage clickSiteLink();\n \n /**\n * Select the Date link of the search result item.\n * \n * @return true if link found and selected\n */\n \n\t HtmlPage clickDateLink();\n\t \n\t /**\n * Actions of search result item.\n * \n * @return enum ActionSet\n */\n\t ActionsSet getActions();\n\n /**\n * Method to click on content path in the details section\n *\n * @return SharePage\n */\n public HtmlPage clickContentPath();\n\n /**\n * Method to get thumbnail url\n *\n * @return String\n */\n public String getThumbnailUrl();\n\n /**\n * Method to get preview url\n *\n * @return String\n */\n public String getPreViewUrl();\n\n /**\n * Method to get thumbnail of element\n *\n * @return String\n */\n public String getThumbnail();\n\n /**\n * Method to click on Download icon for the element\n */\n public void clickOnDownloadIcon();\n\n /**\n * Select the site link of the search result item.\n *\n * @return true if link found and selected\n */\n HtmlPage clickSiteName();\n\t \n\t/**\n * Select the Image link of the search result item.\n * \n * @return PreViewPopUpPage if link found and selected\n */\n\tPreViewPopUpPage clickImageLink();\n\n\tHtmlPage selectItemCheckBox();\n\n\tboolean isItemCheckBoxSelected();\n\t\n}", "String searchBoxUserRecord();", "public void setReturnPage(String returnPage) {this.returnPage=returnPage;}", "protected String getResponse(String input) {\n boolean isTerminated;\n String result;\n input = input.trim();\n try {\n Command c = Parser.parse(input);\n result = c.execute(tasklist, ui, storage);\n isTerminated = c.isTerminated();\n } catch (Exception e) {\n return e.toString();\n }\n if (isTerminated) {\n return ui.sendBye();\n }\n return result;\n }", "private void onValider() {\n recuperation​(Reponse.getText());\r\n\r\n }", "String getUserInput();", "public String getOutput() {\n\t\treturn results.getOutput() ;\n\t}", "public void display(String result);", "org.naru.park.ParkModel.UIParkResponse getResponse();", "public String getResult()\n {\n return result;\n }", "private String getResponse(String input) throws DukeException {\n String toReturn = \"\";\n\n try {\n toReturn = duke.getResponse(input);\n } catch (DukeException e) {\n throw e;\n }\n\n return toReturn;\n }", "protected void handleResult(String result) {}", "@RequestMapping(\"/getResult\")\r\n @ResponseBody\r\n public String prob(@RequestParam String URL){\n \tHashSet<String> res= new CrawlerService().getPageLinks(URL); \t\r\n \tStringBuffer result =new StringBuffer(); \t\r\n \tfor (String item:res){\r\n \t\tresult.append(item+\"<br>\");\r\n \t} \t\r\n return result.toString();\r\n\r\n }", "@Override\n\tpublic String getResult() {\n\t\treturn null;\n\t}", "public String input() throws Exception {\r\n\t\treturn INPUT;\r\n\t}", "public native String getResult() /*-{\n\t\treturn this.target.result;\n\t}-*/;", "private void process(HttpServletRequest request, HttpServletResponse response)\n\t\t\tthrows ServletException, IOException {\n\t\tAddModel model = Util.getModel(request, Const.RESULT);\n\t\t\n\t\t// Print the \"VIEW\" using the \"MODEL\"\n\t\tprintView(response, model);\n\t}", "@Override\n\t\t\tpublic void run() {\n\t\t\t\ttry {\n\t\t\t\t\tgetResultByKeyword(page);\n\t\t\t\t} catch (Exception e) {\n\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\t\t\t}", "@Override\n\t\t\tpublic void run() {\n\t\t\t\ttry {\n\t\t\t\t\tgetResultByKeyword(page);\n\t\t\t\t} catch (Exception e) {\n\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\t\t\t}", "private void process(HttpServletRequest req, HttpServletResponse resp)\n\t\t\tthrows ServletException, IOException {\n\n\t\tresp.setHeader(\"Cache-Control\", \"no-store, no-cache, must-revalidate\"); //$NON-NLS-1$ //$NON-NLS-2$\n\t\tresp.setCharacterEncoding(\"UTF-8\"); //$NON-NLS-1$\n\n\t\tint indexCompletion = 0;\n\t\tString locale = UrlUtil.getLocale(req, resp);\n\t\tSearchProgressMonitor pm = SearchProgressMonitor\n\t\t\t\t.getProgressMonitor(locale);\n\t\tif (pm.isDone()) {\n\t\t\tindexCompletion = 100;\n\t\t} else {\n\t\t\tindexCompletion = pm.getPercentage();\n\t\t\tif (indexCompletion >= 100) {\n\t\t\t\t// 38573 We do not have results, so index cannot be 100\n\t\t\t\tindexCompletion = 100 - 1;\n\t\t\t}\n\t\t}\n\n\t\tString returnType = req.getParameter(Utils.RETURN_TYPE);\n\t\tboolean isXML = Utils.XML.equalsIgnoreCase(returnType);\n\t\tif (isXML) {\n\t\t\tresp.setContentType(\"application/xml\"); //$NON-NLS-1$\n\t\t\tresp.getWriter().write(toXML(indexCompletion));\n\t\t} else {\n\t\t\tresp.setContentType(\"text/plain\"); //$NON-NLS-1$\n\t\t\tresp.getWriter().write(toString(indexCompletion));\n\t\t}\n\t\tresp.getWriter().flush();\n\t}", "protected abstract String answer();", "public String getPageText();", "@Override\n\tpublic String input() throws Exception {\n\t\treturn null;\n\t}", "@Override\n\tpublic String input() throws Exception {\n\t\treturn null;\n\t}", "public String process() throws Exception\r\n\t{\r\n\t\treturn result;\r\n\t}", "java.lang.String getOutput();", "public String getSearchResultsText() {\n System.out.println(\"[step] getSearchResultsText\");\n return page.findElement(signSearch).getText();\n }", "public String getInput()\t\n\t{\t//start of getInput method\n\t\treturn inputMsg;\n\t}", "public String searchResult(){\n return getText(first_product_title);\n }", "@RequestMapping(value = \"getinput.htm\")\n public ModelAndView getInput() {\n ModelAndView modelAndView = new ModelAndView();\n modelAndView.addObject(\"inputentity\", new InputFormBean());\n return modelAndView;\n }", "public Result getResults()\r\n {\r\n return result;\r\n }", "String searchBoxUserRecordSelected();", "java.lang.String getResponse();", "public ResponseContext execute(ResponseContext resc) {\n\t\tresc.setTarget(\"input\");\r\n \t//String url = \"/WEB-INF/jsp/input.jsp\";\r\n\t\treturn resc;\r\n\t}", "String pageDetails();", "public abstract Object getOutput ();", "String userChosen();", "public String getUserInput(String question) {\r\n System.out.print(question);\r\n return scanner.next();\r\n }", "public void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n\t\tString search = req.getParameter(\"searchBook\");\n\t\tString output=search;\n\n\t\t//redirect output to view search.jsp\n\t\treq.setAttribute(\"output\", output);\n\t\tresp.setContentType(\"text/json\");\n\t\tRequestDispatcher view = req.getRequestDispatcher(\"search.jsp\");\n\t\tview.forward(req, resp);\n\t\t\t\n\t}", "String userInputFromTextArea();", "public T getResult();", "private void searchResult(HttpServletRequest request,\n\t\t\tHttpServletResponse response) throws ServletException, IOException {\n\t\ttry {\n\t\t\trequest.setCharacterEncoding(\"UTF-8\");\n\t\t\tresponse.setContentType(\"text/html;charset=UTF-8\");\n\t\t\tString page = request.getParameter(\"page\"); // 当前页数\n\t\t\tString rows = request.getParameter(\"rows\"); // 每页显示行数\n\t\t\tString dealNo = request.getParameter(\"dealNo\");\n\t\t\tString msg = null;\n\t\t\tif (dealNo != null && dealNo.trim().length() > 0 && page != null\n\t\t\t\t\t&& page.trim().length() > 0 && rows != null\n\t\t\t\t\t&& rows.trim().length() > 0) {\n\t\t\t\tGZHQueryService gzhQueryService = new GZHQueryService();\n\t\t\t\tList<MoneyDataInfo> moneyDataList = gzhQueryService\n\t\t\t\t\t\t.getMoneyDataListPage(page, rows, dealNo);\n\t\t\t\tint total = gzhQueryService.getResultCount(dealNo);\n\t\t\t\tPagination pagination = new Pagination();\n\t\t\t\t// pagination.setRows(moneyDataList);\n\t\t\t\tpagination.setTotal(total);\n\t\t\t\tGson gson = new Gson();\n\t\t\t\tmsg = gson.toJson(pagination);\n\t\t\t} else {\n\t\t\t\tmsg = \"notfount\";\n\t\t\t}\n\t\t\tresponse.getWriter().write(msg);\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "public String getResult() {\n return result;\n }", "public String getResult() {\n return result;\n }", "public String getResult() {\n return result;\n }", "@Override\n public String doSearchResult() {\n return null;\n }", "public void foreachResultCreateHTML(ParameterHelper _aParam)\n {\n // TODO: auslagern in eine function, die ein Interface annimmt.\n String sInputPath = _aParam.getInputPath();\n File aInputPath = new File(sInputPath);\n// if (!aInputPath.exists())\n// {\n// GlobalLogWriter.println(\"Error, InputPath or File in InputPath doesn't exists. Please check: '\" + sInputPath + \"'\");\n// assure(\"Error, InputPath or File in InputPath doesn't exists. Please check: '\" + sInputPath + \"'\", false);\n// }\n\n // call for a single ini file\n if (sInputPath.toLowerCase().endsWith(\".ini\") )\n {\n callEntry(sInputPath, _aParam);\n }\n else\n {\n // check if there exists an ini file\n String sPath = FileHelper.getPath(sInputPath); \n String sBasename = FileHelper.getBasename(sInputPath);\n\n runThroughEveryReportInIndex(sPath, sBasename, _aParam);\n \n // Create a HTML page which shows locally to all files in .odb\n if (sInputPath.toLowerCase().endsWith(\".odb\"))\n {\n String sIndexFile = FileHelper.appendPath(sPath, \"index.ini\");\n File aIndexFile = new File(sIndexFile);\n if (aIndexFile.exists())\n { \n IniFile aIniFile = new IniFile(sIndexFile);\n\n if (aIniFile.hasSection(sBasename))\n {\n // special case for odb files\n int nFileCount = aIniFile.getIntValue(sBasename, \"reportcount\", 0);\n ArrayList<String> aList = new ArrayList<String>();\n for (int i=0;i<nFileCount;i++)\n {\n String sValue = aIniFile.getValue(sBasename, \"report\" + i);\n\n String sPSorPDFName = getPSorPDFNameFromIniFile(aIniFile, sValue);\n if (sPSorPDFName.length() > 0)\n {\n aList.add(sPSorPDFName);\n }\n }\n if (aList.size() > 0)\n {\n // HTML output for the odb file, shows only all other documents.\n HTMLResult aOutputter = new HTMLResult(sPath, sBasename + \".ps.html\" );\n aOutputter.header(\"content of DB file: \" + sBasename);\n aOutputter.indexSection(sBasename);\n \n for (int i=0;i<aList.size();i++)\n {\n String sPSFile = aList.get(i);\n\n // Read information out of the ini files\n String sIndexFile2 = FileHelper.appendPath(sPath, sPSFile + \".ini\");\n IniFile aIniFile2 = new IniFile(sIndexFile2);\n String sStatusRunThrough = aIniFile2.getValue(\"global\", \"state\");\n String sStatusMessage = \"\"; // aIniFile2.getValue(\"global\", \"info\");\n aIniFile2.close();\n\n\n String sHTMLFile = sPSFile + \".html\";\n aOutputter.indexLine(sHTMLFile, sPSFile, sStatusRunThrough, sStatusMessage);\n }\n aOutputter.close();\n\n// String sHTMLFile = FileHelper.appendPath(sPath, sBasename + \".ps.html\");\n// try\n// {\n//\n// FileOutputStream out2 = new FileOutputStream(sHTMLFile);\n// PrintStream out = new PrintStream(out2);\n//\n// out.println(\"<HTML>\");\n// out.println(\"<BODY>\");\n// for (int i=0;i<aList.size();i++)\n// {\n// // <A href=\"link\">blah</A>\n// String sPSFile = (String)aList.get(i);\n// out.print(\"<A href=\\\"\");\n// out.print(sPSFile + \".html\");\n// out.print(\"\\\">\");\n// out.print(sPSFile);\n// out.println(\"</A>\");\n// out.println(\"<BR>\");\n// }\n// out.println(\"</BODY></HTML>\");\n// out.close();\n// out2.close();\n// }\n// catch (java.io.IOException e)\n// {\n// \n// }\n }\n }\n aIniFile.close();\n }\n\n }\n }\n }", "protected SimulatorValue giveResult() {\n\tthis.evalExpression();\n\treturn value;\n }", "interface Result {\n\n /** The page which contains matches. */\n @NotNull\n Resource getTarget();\n\n /** The content child of the page which contains matches. */\n @NotNull\n Resource getTargetContent();\n\n /** A link that shows the target, including search terms with {@link #PARAMETER_SEARCHTERM} */\n @NotNull\n String getTargetUrl();\n\n /** The title of the search result. */\n @NotNull\n String getTitle();\n\n /** The score of the search result. */\n Float getScore();\n\n /**\n * One or more descendants of {@link #getTarget()} that potentially match the search expression. Mostly useful\n * for generating excerpts; can contain false positives in some search algorithms.\n */\n @NotNull\n List<Resource> getMatches();\n\n /** The fulltext search expression for which this result was found. */\n @NotNull\n String getSearchExpression();\n\n /**\n * A basic excerpt from the matches that demonstrates the occurrences of the terms from {@link\n * #getSearchExpression()} in this result. Might be empty if not applicable (e.g. if the search terms were found\n * in meta information). If there are several matches, we just give one excerpt. You might want to provide your\n * own implementation for that to accommodate for specific requirements.\n *\n * @return a text with the occurrences of the words marked with HTML tag em .\n */\n @NotNull\n String getExcerpt() throws SearchTermParseException;\n }", "public String getUser1()\n {\n return userInput1;\n }", "private String getResult() {\n String result;\n if (location == null && requireGeolocation) {\n result = null;\n } else if (textEntry.isEnabled() && textEntry.getVisibility() == View.VISIBLE && !textEntry.getText().toString().isEmpty()\n && textEntry.getText().toString().matches(\"\\\\d+\")) {\n result = textEntry.getText().toString();\n } else if (radioButtons.getCheckedRadioButtonId() != -1) {\n result = radioButtons.getCheckedRadioButtonId() == R.id.radio_success ? \"true\" : \"false\";\n } else {\n // Result is not valid\n result = null;\n }\n return result;\n }", "String getValueText();", "OutputPin getResult();" ]
[ "0.6213819", "0.61651564", "0.6153666", "0.61259514", "0.61259514", "0.61259514", "0.61218494", "0.5988201", "0.59844047", "0.5974194", "0.58771056", "0.5804802", "0.57793635", "0.57698333", "0.57474244", "0.5737294", "0.5721991", "0.5701802", "0.56939524", "0.5687184", "0.56854", "0.5683222", "0.5674587", "0.56652564", "0.56523377", "0.5633104", "0.5629566", "0.5625045", "0.5606242", "0.55913115", "0.55907106", "0.55872244", "0.55654514", "0.55628055", "0.5557391", "0.5547205", "0.5546183", "0.55454284", "0.5541799", "0.5539938", "0.5538711", "0.55371106", "0.5498147", "0.54647183", "0.54405403", "0.54342973", "0.54335433", "0.54325765", "0.5431823", "0.54277277", "0.54253554", "0.5420275", "0.5418214", "0.54176104", "0.54148716", "0.541126", "0.5409901", "0.5404571", "0.5400117", "0.53931856", "0.53895605", "0.5389074", "0.5385448", "0.536854", "0.53488266", "0.5346422", "0.5346422", "0.53342265", "0.5332761", "0.53181416", "0.53114617", "0.53114617", "0.53080976", "0.5307084", "0.5307021", "0.5297035", "0.52834743", "0.52771264", "0.5276097", "0.5274", "0.5271848", "0.52662235", "0.5256746", "0.52519274", "0.52516365", "0.52508724", "0.52499366", "0.5248832", "0.524821", "0.5243653", "0.5241314", "0.5241314", "0.5241314", "0.5235833", "0.52353895", "0.5232452", "0.5231756", "0.5227661", "0.52134764", "0.520575", "0.5205399" ]
0.0
-1
method to return result from result page
public String getResult() { return ((WebElement) links.get(1)).getAttribute("alt"); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "Result getResult();", "public String getResult();", "public String getResult();", "public String getResult();", "public abstract String getResult();", "public Result getResults()\r\n {\r\n return result;\r\n }", "public String getResults() {\r\n return returnObject.getResults();\r\n }", "@Override\n \tpublic Object getResult() {\n \t\treturn result;\n \t}", "private void retrieveResult() {\n if (result == null) {\n this.setResult(((DocumentBuilder)this.getHandler()).getResult());\n }\n }", "public QueryResult<T> getResult();", "public abstract void displayResult(Result result);", "@Override\n\tpublic String getResult() {\n\t\treturn result;\n\t}", "java.lang.String getResult();", "@Override\n public String execute(HttpServletRequest request, HttpServletResponse response) throws Exception {\n String myresult = \"My result\";\n// Collection <Player> myresult = fullTeamService.getTeam();\n\n request.setAttribute(\"myresult\", myresult);\n\n return \"view/anotherResultMul.jsp\";\n\n\n\n }", "public String readResultBy(){ //le resultado para\n return driver.getTitle();\n }", "Object getSingleResult(View view, Settings settings);", "public Object getResult()\n\t{\n\t\treturn getResult( getSession().getSessionContext() );\n\t}", "protected R getResult() {\n\t\treturn result;\n\t}", "com.rpg.framework.database.Protocol.ResponseCode getResult();", "com.rpg.framework.database.Protocol.ResponseCode getResult();", "com.rpg.framework.database.Protocol.ResponseCode getResult();", "com.rpg.framework.database.Protocol.ResponseCode getResult();", "com.rpg.framework.database.Protocol.ResponseCode getResult();", "@Override\n\tpublic Result getResult() {\n\t\treturn m_Result;\n\t}", "public T getResult();", "@SuppressWarnings(\"unchecked\")\r\n\t@Override\r\n\tpublic String getResult() {\n\t\treturn this.result;\r\n\r\n\t}", "interface Result {\n\n /** The page which contains matches. */\n @NotNull\n Resource getTarget();\n\n /** The content child of the page which contains matches. */\n @NotNull\n Resource getTargetContent();\n\n /** A link that shows the target, including search terms with {@link #PARAMETER_SEARCHTERM} */\n @NotNull\n String getTargetUrl();\n\n /** The title of the search result. */\n @NotNull\n String getTitle();\n\n /** The score of the search result. */\n Float getScore();\n\n /**\n * One or more descendants of {@link #getTarget()} that potentially match the search expression. Mostly useful\n * for generating excerpts; can contain false positives in some search algorithms.\n */\n @NotNull\n List<Resource> getMatches();\n\n /** The fulltext search expression for which this result was found. */\n @NotNull\n String getSearchExpression();\n\n /**\n * A basic excerpt from the matches that demonstrates the occurrences of the terms from {@link\n * #getSearchExpression()} in this result. Might be empty if not applicable (e.g. if the search terms were found\n * in meta information). If there are several matches, we just give one excerpt. You might want to provide your\n * own implementation for that to accommodate for specific requirements.\n *\n * @return a text with the occurrences of the words marked with HTML tag em .\n */\n @NotNull\n String getExcerpt() throws SearchTermParseException;\n }", "public String getResult()\r\n\t{\r\n\t\treturn result;\r\n\t}", "org.apache.calcite.avatica.proto.Responses.ResultSetResponse getResults(int index);", "public void returnResult() {\n\t\tSystem.out.printf(\"Result of your Numbers are: %d\", result());\n\t}", "@Override\n\t\t\tpublic void run() {\n\t\t\t\ttry {\n\t\t\t\t\tgetResultByKeyword(page);\n\t\t\t\t} catch (Exception e) {\n\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\t\t\t}", "@Override\n\t\t\tpublic void run() {\n\t\t\t\ttry {\n\t\t\t\t\tgetResultByKeyword(page);\n\t\t\t\t} catch (Exception e) {\n\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\t\t\t}", "@Override\n\tprotected void parseResult() {\n\t\t\n\t}", "public Result getResult() {\n return result;\n }", "List<T> getResults();", "public String getResult() \n\t{\n\t\treturn strResult;\n\t}", "protected T retrieve() {\n return _result;\n }", "public Result getResult() {\n return result;\n }", "public String getResult()\n {\n return result;\n }", "public T result() {\n return result;\n }", "@RequestMapping(\"/getResult\")\r\n @ResponseBody\r\n public String prob(@RequestParam String URL){\n \tHashSet<String> res= new CrawlerService().getPageLinks(URL); \t\r\n \tStringBuffer result =new StringBuffer(); \t\r\n \tfor (String item:res){\r\n \t\tresult.append(item+\"<br>\");\r\n \t} \t\r\n return result.toString();\r\n\r\n }", "public String getReturnPage() {return returnPage;}", "public Object getResult() {\n if (result == null) {\n return defaultResult();\n } else {\n return result;\n }\n }", "@RequestMapping(value = \"/\", method = RequestMethod.GET)\n\tpublic String result(ModelMap model) {\n\t\tmodel.put(\"page\", 0);\n\n\t\treturn \"index\";\n\t}", "private void getResults(GetResultRequestEvent e){\n\t\ttable.generateTable(tf.getItemIDList(),\n\t\t\t\te.getBuySystem(), e.getBuyType(),\n\t\t\t\te.getSellSystem(), e.getSellType(),\n\t\t\t\te.getMinimumMargin());\n\t}", "private void searchResult(HttpServletRequest request,\n\t\t\tHttpServletResponse response) throws ServletException, IOException {\n\t\ttry {\n\t\t\trequest.setCharacterEncoding(\"UTF-8\");\n\t\t\tresponse.setContentType(\"text/html;charset=UTF-8\");\n\t\t\tString page = request.getParameter(\"page\"); // 当前页数\n\t\t\tString rows = request.getParameter(\"rows\"); // 每页显示行数\n\t\t\tString dealNo = request.getParameter(\"dealNo\");\n\t\t\tString msg = null;\n\t\t\tif (dealNo != null && dealNo.trim().length() > 0 && page != null\n\t\t\t\t\t&& page.trim().length() > 0 && rows != null\n\t\t\t\t\t&& rows.trim().length() > 0) {\n\t\t\t\tGZHQueryService gzhQueryService = new GZHQueryService();\n\t\t\t\tList<MoneyDataInfo> moneyDataList = gzhQueryService\n\t\t\t\t\t\t.getMoneyDataListPage(page, rows, dealNo);\n\t\t\t\tint total = gzhQueryService.getResultCount(dealNo);\n\t\t\t\tPagination pagination = new Pagination();\n\t\t\t\t// pagination.setRows(moneyDataList);\n\t\t\t\tpagination.setTotal(total);\n\t\t\t\tGson gson = new Gson();\n\t\t\t\tmsg = gson.toJson(pagination);\n\t\t\t} else {\n\t\t\t\tmsg = \"notfount\";\n\t\t\t}\n\t\t\tresponse.getWriter().write(msg);\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "EList<Parameter> returnResult();", "public WebElement getResultTable() {\n System.out.println(\"[step] getResultTable\");\n return page.findElement(resultTable);\n }", "public abstract String getResponse();", "public String marriageLicenseSearchPageLoad() {\n return SUCCESS;\n }", "public String getActionResult(){\r\n return resultOfLastAction;\r\n }", "public interface SearchResult\n{\n /**\n * Title of search result item.\n * \n * @return String title\n */\n String getTitle();\n /**\n * Name of search result item.\n * \n * @return String title\n */\n String getName();\n /**\n * Select the link of the search result item.\n * \n * @return true if link found and selected\n */\n HtmlPage clickLink();\n /**\n * Verify if folder or not, true if search row represent\n * a folder.\n * \n * @return boolean true if search result is of folder\n */\n boolean isFolder();\n \n /**\n * Date of search result item.\n * \n * @return String Date\n */\n \n String getDate();\n \n /**\n * Site of search result item.\n * \n * @return String Site\n */\n \n String getSite();\n \n /**\n * Select the site link of the search result item.\n * \n * @return true if link found and selected\n */\n HtmlPage clickSiteLink();\n \n /**\n * Select the Date link of the search result item.\n * \n * @return true if link found and selected\n */\n \n\t HtmlPage clickDateLink();\n\t \n\t /**\n * Actions of search result item.\n * \n * @return enum ActionSet\n */\n\t ActionsSet getActions();\n\n /**\n * Method to click on content path in the details section\n *\n * @return SharePage\n */\n public HtmlPage clickContentPath();\n\n /**\n * Method to get thumbnail url\n *\n * @return String\n */\n public String getThumbnailUrl();\n\n /**\n * Method to get preview url\n *\n * @return String\n */\n public String getPreViewUrl();\n\n /**\n * Method to get thumbnail of element\n *\n * @return String\n */\n public String getThumbnail();\n\n /**\n * Method to click on Download icon for the element\n */\n public void clickOnDownloadIcon();\n\n /**\n * Select the site link of the search result item.\n *\n * @return true if link found and selected\n */\n HtmlPage clickSiteName();\n\t \n\t/**\n * Select the Image link of the search result item.\n * \n * @return PreViewPopUpPage if link found and selected\n */\n\tPreViewPopUpPage clickImageLink();\n\n\tHtmlPage selectItemCheckBox();\n\n\tboolean isItemCheckBoxSelected();\n\t\n}", "@Override\n public String doSearchResult() {\n return null;\n }", "int getResult();", "public Result getResult() {\n\t\treturn this._result;\n\t}", "T getResult();", "T getResult();", "public E getResult(){\r\n\t\treturn this.result;\r\n\t}", "public String dataResult() {\r\n\r\n final String theRows = this.getParam(\"rows\");\r\n final String thePage = this.getParam(\"page\");\r\n final String theSortBy = this.getParam(\"sidx\");\r\n final String theSortType = this.getParam(\"sord\");\r\n\r\n this.extractItems();\r\n\r\n // Remove all items update and add the update version.\r\n if (this.addAdded()) {\r\n Set < String > keySet = this.updatedGroups.keySet();\r\n List < Sortable > sortables = this.storedData.getListOfSortable();\r\n for (String key : keySet) {\r\n Iterator < Sortable > itSortable = sortables.iterator();\r\n boolean findItem = false;\r\n while (itSortable.hasNext() && !findItem) {\r\n Subject aSubject = (Subject) itSortable.next();\r\n if (aSubject.getId().equals(key)) {\r\n this.storedData.delRowDataResult(aSubject);\r\n this.storedData.addRowDataResult(this.updatedGroups.get(key));\r\n findItem = true;\r\n }\r\n }\r\n }\r\n }\r\n\r\n this.storedData.setIsExistingAddedItem(this.getIsExistAddedItems());\r\n this.storedData.setNbResultDisplay(theRows);\r\n this.storedData.setCurrentPage(thePage);\r\n\r\n TableData tableData = TableDataFactory.populate(this.storedData, this.sortableRowDataWrapper, theSortBy,\r\n theSortType);\r\n\r\n return this.xmlProducerWrapper.wrap(TableDataFactory.getProducer(tableData));\r\n }", "public int getResult(){\r\n\t\t return result;\r\n\t }", "public TO result();", "public ResultType getResult() {\r\n return result;\r\n }", "protected void handleResult(String result) {}", "String pageDetails();", "@Override\r\n\tprotected String go() throws Exception {\n\t\tif(userSize==0)\r\n\t\t{\r\n\t\t\tuserSize=3;\r\n\t\t}\r\n\t\ttry{\r\n\t\t\tint userid=(Integer)this.get(\"currentUserid\");\r\n\t\t\tProDiaryService proDiaryService=(ProDiaryService)this.getBean(\"proDiaryService\");\r\n\t\t\t\r\n\t\t\tpage=proDiaryService.getCurrProDiaryListByUserID(userid,userSize,pageNo);\r\n\t\t\tPagefoot pagefoot = new Pagefoot();\r\n\t\t\tpageString = pagefoot.packString(page, pageNo,\"getPage\",userSize);\r\n\t\t\t \r\n\t\t\t}catch(Exception e){\r\n\t\t\t\tSystem.out.println(e.getMessage());\r\n\t\t\t}\r\n\t return \"success\";\r\n\t}", "@Override\r\n\tpublic String select() {\n\t\tList<Object> paramList=new ArrayList<Object>();\r\n\t\tparamList.add(numPerPage*(pageIndex-1));\r\n\t\tparamList.add(numPerPage);\r\n\t\tthis.setResultMesg(adminDao.doCount(), adminDao.doSelect(paramList));\r\n\t\treturn SUCCESS;\r\n\t}", "@Override\r\n public Object call() throws Exception { \r\n \r\n String pParameters = null;\r\n String locTitle; \r\n Naloga locNalogaErr = null;\r\n try {\r\n Naloga locContent = this.sendGet(glUrl, pParameters, 0, 0);\r\n \r\n locTitle=this.getTitle(locContent.getContent());\r\n Naloga locNaloga = new Naloga(glCallCounter, locTitle, locContent.getUrl(), 0);\r\n\r\n Thread.sleep(1000); \r\n \r\n \r\n\r\n return locNaloga;\r\n } catch (Exception ex) {\r\n locNalogaErr = new Naloga(glCallCounter, \"Error occured\", glUrl, 1);\r\n Logger.getLogger(CallPages.class.getName()).log(Level.INFO, null, ex);\r\n \r\n }\r\n return locNalogaErr;\r\n }", "public int getResultsPage()\r\n\t{\r\n\t\treturn this.resultsPage;\r\n\t}", "public String getResult() {\n return result;\n }", "public String getResult() {\n return result;\n }", "public String getResult() {\n return result;\n }", "SearchResult findNext(SearchResult result);", "public void onSuccess(Object result) {\n\t\t\tSystem.err.println(\"showing results...\");\n\t\t\t//refgview.getNavPanel().getBrowseView().displayTargets((NodeDTO[])result);\n\n\t\t\trefgview.getSearchPanel().displaySearchTargets((NodeDTO[])result);\n\t\t}", "private void process(HttpServletRequest req, HttpServletResponse resp)\n\t\t\tthrows ServletException, IOException {\n\n\t\tresp.setHeader(\"Cache-Control\", \"no-store, no-cache, must-revalidate\"); //$NON-NLS-1$ //$NON-NLS-2$\n\t\tresp.setCharacterEncoding(\"UTF-8\"); //$NON-NLS-1$\n\n\t\tint indexCompletion = 0;\n\t\tString locale = UrlUtil.getLocale(req, resp);\n\t\tSearchProgressMonitor pm = SearchProgressMonitor\n\t\t\t\t.getProgressMonitor(locale);\n\t\tif (pm.isDone()) {\n\t\t\tindexCompletion = 100;\n\t\t} else {\n\t\t\tindexCompletion = pm.getPercentage();\n\t\t\tif (indexCompletion >= 100) {\n\t\t\t\t// 38573 We do not have results, so index cannot be 100\n\t\t\t\tindexCompletion = 100 - 1;\n\t\t\t}\n\t\t}\n\n\t\tString returnType = req.getParameter(Utils.RETURN_TYPE);\n\t\tboolean isXML = Utils.XML.equalsIgnoreCase(returnType);\n\t\tif (isXML) {\n\t\t\tresp.setContentType(\"application/xml\"); //$NON-NLS-1$\n\t\t\tresp.getWriter().write(toXML(indexCompletion));\n\t\t} else {\n\t\t\tresp.setContentType(\"text/plain\"); //$NON-NLS-1$\n\t\t\tresp.getWriter().write(toString(indexCompletion));\n\t\t}\n\t\tresp.getWriter().flush();\n\t}", "public T getResult() {\n return result;\n }", "public T getResult() {\n return result;\n }", "public static int doGetList(Result r) {\n // Make an HTTP GET passing the name on the URL line\n r.setValue(\"\");\n String response = \"\";\n HttpURLConnection conn;\n int status = 0;\n try {\n \n URL url = new URL(\"https://intense-lake-93564.herokuapp.com/menusection/\");\n conn = (HttpURLConnection) url.openConnection();\n conn.setRequestMethod(\"GET\");\n // tell the server what format we want back\n conn.setRequestProperty(\"Accept\", \"text/plain\");\n // wait for response\n status = conn.getResponseCode();\n // If things went poorly, don't try to read any response, just return.\n if (status != 200) {\n // not using msg\n String msg = conn.getResponseMessage();\n return conn.getResponseCode();\n }\n String output = \"\";\n // things went well so let's read the response\n BufferedReader br = new BufferedReader(new InputStreamReader(\n (conn.getInputStream()))); \n while ((output = br.readLine()) != null) {\n response += output; \n } \n conn.disconnect();\n \n }\n catch (MalformedURLException e) {\n e.printStackTrace();\n } catch (IOException e) {\n e.printStackTrace();\n } \n // return value from server\n // set the response object\n r.setValue(response);\n // return HTTP status to caller\n return status;\n }", "V result() throws Exception;", "public void foreachResultCreateHTML(ParameterHelper _aParam)\n {\n // TODO: auslagern in eine function, die ein Interface annimmt.\n String sInputPath = _aParam.getInputPath();\n File aInputPath = new File(sInputPath);\n// if (!aInputPath.exists())\n// {\n// GlobalLogWriter.println(\"Error, InputPath or File in InputPath doesn't exists. Please check: '\" + sInputPath + \"'\");\n// assure(\"Error, InputPath or File in InputPath doesn't exists. Please check: '\" + sInputPath + \"'\", false);\n// }\n\n // call for a single ini file\n if (sInputPath.toLowerCase().endsWith(\".ini\") )\n {\n callEntry(sInputPath, _aParam);\n }\n else\n {\n // check if there exists an ini file\n String sPath = FileHelper.getPath(sInputPath); \n String sBasename = FileHelper.getBasename(sInputPath);\n\n runThroughEveryReportInIndex(sPath, sBasename, _aParam);\n \n // Create a HTML page which shows locally to all files in .odb\n if (sInputPath.toLowerCase().endsWith(\".odb\"))\n {\n String sIndexFile = FileHelper.appendPath(sPath, \"index.ini\");\n File aIndexFile = new File(sIndexFile);\n if (aIndexFile.exists())\n { \n IniFile aIniFile = new IniFile(sIndexFile);\n\n if (aIniFile.hasSection(sBasename))\n {\n // special case for odb files\n int nFileCount = aIniFile.getIntValue(sBasename, \"reportcount\", 0);\n ArrayList<String> aList = new ArrayList<String>();\n for (int i=0;i<nFileCount;i++)\n {\n String sValue = aIniFile.getValue(sBasename, \"report\" + i);\n\n String sPSorPDFName = getPSorPDFNameFromIniFile(aIniFile, sValue);\n if (sPSorPDFName.length() > 0)\n {\n aList.add(sPSorPDFName);\n }\n }\n if (aList.size() > 0)\n {\n // HTML output for the odb file, shows only all other documents.\n HTMLResult aOutputter = new HTMLResult(sPath, sBasename + \".ps.html\" );\n aOutputter.header(\"content of DB file: \" + sBasename);\n aOutputter.indexSection(sBasename);\n \n for (int i=0;i<aList.size();i++)\n {\n String sPSFile = aList.get(i);\n\n // Read information out of the ini files\n String sIndexFile2 = FileHelper.appendPath(sPath, sPSFile + \".ini\");\n IniFile aIniFile2 = new IniFile(sIndexFile2);\n String sStatusRunThrough = aIniFile2.getValue(\"global\", \"state\");\n String sStatusMessage = \"\"; // aIniFile2.getValue(\"global\", \"info\");\n aIniFile2.close();\n\n\n String sHTMLFile = sPSFile + \".html\";\n aOutputter.indexLine(sHTMLFile, sPSFile, sStatusRunThrough, sStatusMessage);\n }\n aOutputter.close();\n\n// String sHTMLFile = FileHelper.appendPath(sPath, sBasename + \".ps.html\");\n// try\n// {\n//\n// FileOutputStream out2 = new FileOutputStream(sHTMLFile);\n// PrintStream out = new PrintStream(out2);\n//\n// out.println(\"<HTML>\");\n// out.println(\"<BODY>\");\n// for (int i=0;i<aList.size();i++)\n// {\n// // <A href=\"link\">blah</A>\n// String sPSFile = (String)aList.get(i);\n// out.print(\"<A href=\\\"\");\n// out.print(sPSFile + \".html\");\n// out.print(\"\\\">\");\n// out.print(sPSFile);\n// out.println(\"</A>\");\n// out.println(\"<BR>\");\n// }\n// out.println(\"</BODY></HTML>\");\n// out.close();\n// out2.close();\n// }\n// catch (java.io.IOException e)\n// {\n// \n// }\n }\n }\n aIniFile.close();\n }\n\n }\n }\n }", "@Override\r\n\tpublic Porduct GetResult() {\n\t\treturn product;\r\n\t}", "public TResult getResult() {\n return result;\n }", "public Collection<T> getResults();", "@Override\r\n\tpublic String execute() throws Exception {\n\t\tPage page = new Page();\r\n\t\tpage.setEveryPage(10);\r\n\t\tpage.setCurrentPage(currentPage);\r\n\t\tPageResult pageResult = subjectService.likeQueryBySubjectTitle(subjectTitle, page);\r\n\t\tList<Subject> subjects = pageResult.getList();\r\n\t\tList<Subject>newSubjects = new ArrayList<Subject>();\t\r\n\t\tpage = pageResult.getPage();\r\n\t\tHttpServletRequest request = ServletActionContext.getRequest();\r\n\t\trequest.setAttribute(\"subjects\", subjects);\r\n\t\trequest.setAttribute(\"page\", page);\r\n\t\treturn SUCCESS;\r\n\t}", "public IStatus getResult();", "@Override\n public void onSuccess(ResultSet result) {\n }", "public int getResult() {return resultCode;}", "String getResponse();", "public Object getResults( int _intSelector ) throws Exception {\n\t\t\n\t\tObject resultToReturn = new Object();\n\t\t\n\t\tResultsContainerI resultsContainer;\n\t\tresultsContainer = this.appTda_.getResults();\n\t\tResultGeneric res;\n\t\t\n\t\tres = resultsContainer.getResult( _intSelector );\n\t\t\n\t\t// Check all allowable \"specific\" result types\n\t\t// (we need to cast here because Api \"consumers\" such as Matlab otherwise\n\t\t// can't make sense of the generic return type (and so wouldn't be\n\t\t// able to get to the results)\n\t\tif ( res.getResult() instanceof ResultsCollection ) {\n\t\t\t\n\t\t\tresultToReturn = (ResultsCollection) res.getResult();\n\t\t}\n\t\telse {\n\t\t\t\n\t\t\t// default (TODO)\n\t\t\tresultToReturn = res.getResult();\n\t\t}\n\t\t\n\t\treturn resultToReturn;\n\t}", "@java.lang.Override\n public entities.Torrent.NodeSearchResult getResults(int index) {\n return results_.get(index);\n }", "@Override\r\n\tpublic Product retrieveResult() {\n\t\treturn product;\r\n\t}", "@Override\n\tpublic String getResult() {\n\t\treturn null;\n\t}", "void showBookResult(Book book);", "protected abstract O getResult();", "public native String getResult() /*-{\n\t\treturn this.target.result;\n\t}-*/;", "java.lang.String getLastrunresult();", "public void setResult() {\n }", "public String extractresult(String search) {\n\t\tfd.findElement(By.id(\"sb_form_q\")).sendKeys(search);\r\n\t\tfd.findElement(By.id(\"sb_form_go\")).click();\r\n\t\t\r\n\t\treturn fd.findElement(By.className(\"sb_count\")).getText();\t\r\n\t}", "public java.lang.String getResultPost() {\n return result_post;\n }", "void mo24178a(ResultData resultdata);", "org.naru.park.ParkModel.UIParkResponse getResponse();", "public void setResult(String result) {\n this.result = result;\n }" ]
[ "0.66391253", "0.6507641", "0.6507641", "0.6507641", "0.6402793", "0.6365042", "0.63197035", "0.6319495", "0.6313332", "0.62052155", "0.61935437", "0.61713624", "0.61352074", "0.6129759", "0.6121543", "0.60849273", "0.60786533", "0.6047976", "0.6024471", "0.6024471", "0.60238063", "0.60222054", "0.60222054", "0.59948456", "0.59777784", "0.5970624", "0.59699446", "0.5957725", "0.5946657", "0.5928424", "0.5921587", "0.5921587", "0.5907765", "0.59056526", "0.589889", "0.5866936", "0.58581674", "0.5857303", "0.58439773", "0.58307135", "0.5823282", "0.5809967", "0.5809547", "0.5804857", "0.57797736", "0.5777476", "0.5771712", "0.57595223", "0.57392263", "0.5737965", "0.57364696", "0.5733618", "0.57288915", "0.5713483", "0.57126784", "0.57069516", "0.57069516", "0.5701318", "0.5692785", "0.56920123", "0.56893903", "0.56822765", "0.56808424", "0.5679897", "0.56753033", "0.5674347", "0.5671186", "0.5659516", "0.5639558", "0.5639558", "0.5639558", "0.5631392", "0.5628677", "0.56242967", "0.5623735", "0.5623735", "0.56219995", "0.5616215", "0.5611337", "0.56108725", "0.56108046", "0.56105834", "0.56071395", "0.56070614", "0.5606791", "0.5598479", "0.5582079", "0.5570237", "0.5559571", "0.5556608", "0.5555744", "0.55538595", "0.55524623", "0.55418336", "0.5537319", "0.5525696", "0.5518614", "0.551126", "0.5508745", "0.549826", "0.5496207" ]
0.0
-1
Called when the activity is first created.
@Override public void onCreate(Bundle savedInstanceState) { //requestWindowFeature(Window.FEATURE_INDETERMINATE_PROGRESS); super.onCreate(savedInstanceState); setContentView(R.layout.video_list); mPreference =getSharedPreferences(Const.PREF_SETTING_FILE_NAME, 0); mShowIcon=mPreference.getBoolean(PREF_KEY_SHOW_ICON, false); mPreference.registerOnSharedPreferenceChangeListener(this); View v=findViewById(R.id.title_button_thumb); v.setSelected(mShowIcon); //mPlayListId=getIntent().getExtras().getString(Const.EXTRA_PLAYLIST_ID); //mTitle=getIntent().getExtras().getString(Const.EXTRA_TITLE); ContentValues cv=getIntent().getParcelableExtra(Const.EXTRA_PLAYLIST_PARCEL); mPlayListId=cv.getAsString(YT.PRJ_PLAYLIST_ID); mTitle=cv.getAsString(YT.PRJ_TITLE); ((TextView)findViewById(R.id.title_text)).setText(mTitle); Logging.d("playlistId="+mPlayListId); findViewById(R.id.title_button_refresh).setVisibility(View.VISIBLE); findViewById(R.id.title_button_thumb).setVisibility(View.VISIBLE); //initButtonLayout(); mListView=getListView(); mAdapter= new SimpleCursorAdapter( this, R.layout.main_list_item, mCursor, new String[]{ YT.PRJ_TITLE,},// YT.PRJ_DURATION}, new int[] {R.id.main_list_text,},// R.id.main_list_text_desc } SimpleCursorAdapter.FLAG_REGISTER_CONTENT_OBSERVER ){ @Override public View getView(int position, View convertView, ViewGroup parent){ View v= super.getView(position, convertView, parent); mCursor.moveToPosition(position); int i=mCursor.getInt(mCursor.getColumnIndex(YT.PRJ_DURATION)); TextView tv=(TextView)v.findViewById(R.id.main_list_text_small); String time=timeToString(i); tv.setText(time); tv.setVisibility(View.VISIBLE); //tv.setGravity() if(mSelectMode){ ImageView check=(ImageView)v.findViewById(R.id.main_list_check); check.setVisibility(View.VISIBLE); boolean next=mCheckData.get(position); Drawable d=getResources().getDrawable(android.R.drawable.checkbox_off_background); if(next){ d=getResources().getDrawable(android.R.drawable.checkbox_on_background); } check.setImageDrawable(d); }else{ ImageView check=(ImageView)v.findViewById(R.id.main_list_check); check.setVisibility(View.GONE); } ImageView iv=(ImageView)v.findViewById(R.id.main_list_image); if(mShowIcon){ AQuery aq=new AQuery(iv); aq.image(mCursor.getString(mCursor.getColumnIndex(YT.PRJ_SQDEFAULT))).visible(); }else{ iv.setVisibility(View.GONE); } return v; } @Override public void bindView(View view, Context context, Cursor cursor) { super.bindView(view, context, cursor); //Logging.d("Video List Bind View Called"); } }; mListView.setOnItemClickListener(new OnItemClickListener(){ @Override public void onItemClick(AdapterView<?> parent, View view, int position, long id) { if(mSelectMode){ boolean prev=mCheckData.get(position); mCheckData.set(position, !prev); boolean next=mCheckData.get(position); ImageView iv=(ImageView)view.findViewById(R.id.main_list_check); Drawable d=getResources().getDrawable(android.R.drawable.checkbox_off_background); if(next){ d=getResources().getDrawable(android.R.drawable.checkbox_on_background); } iv.setImageDrawable(d); }else{ mCursor.moveToPosition(position); String videoId=mCursor.getString(mCursor.getColumnIndex(YT.PRJ_VIDEO_ID)); String url="http://www.youtube.com/watch?v="+videoId; Intent intent = new Intent(Intent.ACTION_VIEW, Uri.parse("vnd.youtube:" + videoId)); List<ResolveInfo> list = getPackageManager().queryIntentActivities(intent, PackageManager.MATCH_DEFAULT_ONLY); if (list.size() == 0) { intent = new Intent(Intent.ACTION_VIEW, Uri.parse(url)); intent=new Intent(Intent.ACTION_VIEW); intent.setData(Uri.parse((String)url)); Logging.d("Watching :"+url); } startActivity(intent); } } }); startProgress(); mQueryHandler=new QueryHandler(getContentResolver()){ }; //Uri uri=Uri.parse(Const.URI_STRING+"/videolist/"+mPlayListId); Uri uri=Uri.parse("content://"+getPackageName()+".YouTubeProvider/"+YT.TABLE_PLAYLIST+"/"+mPlayListId); mQueryHandler.startQuery(0, null, uri, null, null, null, null); invalidateImportantButton(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tpublic void onActivityCreated(Bundle savedInstanceState) {\n\t\tsuper.onActivityCreated(savedInstanceState);\n\t\tinit();\n\t}", "@Override\r\n\tpublic void onActivityCreated(Bundle savedInstanceState) {\n\t\tsuper.onActivityCreated(savedInstanceState);\r\n\t}", "@Override\n\tpublic void onActivityCreated(Bundle savedInstanceState) {\n\t\tsuper.onActivityCreated(savedInstanceState);\n\t}", "@Override\n\tpublic void onActivityCreated(Bundle savedInstanceState) {\n\t\tsuper.onActivityCreated(savedInstanceState);\n\t}", "@Override\n\tpublic void onActivityCreated(Bundle savedInstanceState) {\n\t\tsuper.onActivityCreated(savedInstanceState);\n\t}", "@Override\n\tpublic void onActivityCreated(Bundle savedInstanceState) {\n\t\tsuper.onActivityCreated(savedInstanceState);\n\t}", "@Override\n\tpublic void onActivityCreated(Bundle savedInstanceState) {\n\t\tsuper.onActivityCreated(savedInstanceState);\n\t}", "@Override\n\tpublic void onActivityCreated(Bundle savedInstanceState) {\n\t\tsuper.onActivityCreated(savedInstanceState);\n\t}", "@Override\n public void onActivityCreated(Bundle savedInstanceState) {\n super.onActivityCreated(savedInstanceState);\n }", "@Override\n public void onActivityCreated(Bundle savedInstanceState) {\n super.onActivityCreated(savedInstanceState);\n }", "@Override\n public void onCreate() {\n super.onCreate();\n initData();\n }", "@Override\n public void onActivityCreated(Bundle savedInstanceState) {\n super.onActivityCreated(savedInstanceState);\n\n }", "@Override\n public void onActivityCreated(Bundle savedInstanceState) {\n super.onActivityCreated(savedInstanceState);\n\n }", "protected void onCreate() {\n }", "@Override\r\n\tpublic void onActivityCreated(Bundle savedInstanceState) {\n\t\tsuper.onActivityCreated(savedInstanceState);\r\n\t\tLog.e(TAG, \"onActivityCreated-------\");\r\n\t}", "@Override\r\n\tpublic void onActivityCreated(Bundle savedInstanceState) {\n\t\tsuper.onActivityCreated(savedInstanceState);\r\n\t\tLog.e(TAG, \"onActivityCreated-------\");\r\n\t}", "@Override\n\tpublic void onActivityCreated(Bundle arg0) {\n\t\tsuper.onActivityCreated(arg0);\n\t}", "@Override\r\n\tpublic void onActivityCreated(Bundle savedInstanceState) {\n\t\tsuper.onActivityCreated(savedInstanceState);\r\n\t\tinitData(savedInstanceState);\r\n\t}", "@Override\r\n\tpublic void onActivityCreated(Bundle savedInstanceState) {\r\n\t\t// TODO Auto-generated method stub\r\n\t\tsuper.onActivityCreated(savedInstanceState);\r\n\t\t\r\n\t\tinitView();\r\n\t}", "@Override\r\n\tpublic void onActivityCreated(Bundle savedInstanceState) {\n\t\tsuper.onActivityCreated(savedInstanceState);\r\n\t\tsetview();\r\n\t}", "@Override\n public void onCreate()\n {\n\n super.onCreate();\n }", "@Override\n public void onCreate() {\n initData();\n }", "@Override\n\tpublic void onActivityCreated(Bundle savedInstanceState) {\n\t\tLogUtil.d(TAG, \"onActivityCreated---------\");\n\t\tinitData(savedInstanceState);\n\t\tsuper.onActivityCreated(savedInstanceState);\n\t}", "@Override\n public void onCreate() {\n super.onCreate();\n }", "@Override\n public void onCreate() {\n super.onCreate();\n }", "@Override\n\tpublic void onActivityCreated(@Nullable Bundle savedInstanceState) {\n\t\tinitView();\n\t\tinitListener();\n\t\tinitData();\n\t\tsuper.onActivityCreated(savedInstanceState);\n\t}", "@Override\n public void onCreate() {\n L.d(\"onCreate is called\");\n super.onCreate();\n }", "@Override\n\tpublic void onActivityCreated(Activity activity, Bundle savedInstanceState)\n\t{\n\t}", "@Override\n\tpublic void onCreate() {\n\t\tsuper.onCreate();\n\n\t}", "protected void onFirstTimeLaunched() {\n }", "@Override\n public void onActivityCreated(@Nullable Bundle savedInstanceState) {\n super.onActivityCreated(savedInstanceState);\n initData(savedInstanceState);\n }", "@Override\n\tpublic void onCreate() {\n\t\tsuper.onCreate();\n\t\t\n\t}", "@Override\n\tpublic void onCreate() {\n\t\tsuper.onCreate();\n\t\t\n\t}", "@Override\n public void onActivityCreated(Activity activity, Bundle bundle) {}", "@Override\n\tpublic void onCreate() {\n\t\tsuper.onCreate();\n\t}", "@Override\n\tpublic void onCreate() {\n\t\tsuper.onCreate();\n\t}", "@Override\n public void onActivityCreated(Activity activity, Bundle bundle) {\n }", "@Override\n public void onCreate() {\n }", "@Override\n\tpublic void onActivityCreated(Bundle savedInstanceState) {\n\t\tsuper.onActivityCreated(savedInstanceState);\n\t\tsetupTextviews();\n\t\tsetupHorizontalScrollViews();\n\t\tsetupHorizontalSelectors();\n\t\tsetupButtons();\n\t}", "@Override\n public void onCreate() {\n\n }", "@Override\r\n\tpublic void onActivityCreated(Bundle savedInstanceState) {\n\t\tsuper.onActivityCreated(savedInstanceState);\r\n\t\t\r\n\t\tinitViewPager();\r\n\t\t\r\n\t\tinitView();\r\n\r\n\t\tinitCursor();\r\n\t\t\r\n\t\tinithuanxin(savedInstanceState);\r\n\t\r\n \r\n\t}", "public void onCreate() {\n }", "@Override\n\tpublic void onCreate() {\n\t\tLog.i(TAG, \"onCreate\");\n\t\tsuper.onCreate();\n\t}", "@Override\n protected void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n init();\n }", "@Override\n\tprotected void onCreate(Bundle savedInstanceState) {\n\t\tsetContentView(R.layout.caifushi_record);\n\t\tsuper.onCreate(savedInstanceState);\n\t\tinitview();\n\t\tMyApplication.getInstance().addActivity(this);\n\t\t\n\t}", "@Override\n\tprotected void onCreate(Bundle savedInstanceState) {\n\t\tsuper.onCreate(savedInstanceState);\n\t\tsetContentView(R.layout.activity_recent_activity);\n\t\tsetTitleFromActivityLabel(R.id.title_text);\n\t\tsetupStartUp();\n\t}", "@Override\n\tpublic void onCreate() {\n\n\t}", "@Override\n\tpublic void onCreate() {\n\t\tsuper.onCreate();\n\n\t\tgetLocation();\n\n\t\tregisterReceiver();\n\n\t}", "@Override\n public void onActivityCreated(Activity activity, Bundle savedInstanceState) {\n eventManager.fire(Event.ACTIVITY_ON_CREATE, activity);\n }", "@Override\n public void onCreate()\n {\n\n\n }", "@Override\n\tprotected void onCreate() {\n\t}", "@Override\r\n\tprotected void onCreate(Bundle savedInstanceState) {\n\t\tsuper.onCreate(savedInstanceState);\r\n\t\tAnnotationProcessor.processActivity(this);\r\n\t}", "@Override\n protected void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n\n if (!KramPreferences.hasStartedAppBefore(this)) {\n // First time app is started\n requestFirstHug();\n HugRequestService.scheduleHugRequests(this);\n KramPreferences.putHasStartedAppBefore(this);\n }\n\n setContentView(R.layout.activity_main);\n initMonthView(savedInstanceState);\n }", "@Override\n\tprotected void onCreate(Bundle savedInstanceState) {\n\t\tsuper.onCreate(savedInstanceState);\n\t\tsetContentView(R.layout.act_myinfo);\n\t\tinitView();\n\t\tinitEvents();\n\n\t}", "public void onCreate();", "public void onCreate();", "@Override\n protected void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n setContentView(R.layout.auth_activity);\n connectVariablesToViews();\n listenToFields();\n WorkSpace.authorizationCompleted = false;\n }", "@Override\n public void onCreate() {\n Log.d(TAG, TAG + \" onCreate\");\n }", "@Override\r\n\tprotected void onCreate(Bundle savedInstanceState) \r\n\t{\n\t\tsuper.onCreate(savedInstanceState);\r\n\t\t\t\r\n\t\t// Get a reference to the tranistbuddy model.\r\n\t\tTransitBuddyApp app = (TransitBuddyApp)this.getApplicationContext();\r\n\t\tmModel = app.getTransitBuddyModel();\r\n\t\tmSettings = app.getTransitBuddySettings();\r\n\t\t\r\n\t\tsetTitle( getString(R.string.title_prefix) + \" \" + mSettings.getSelectedCity());\r\n\t}", "@Override\r\n\tprotected void onCreate(Bundle savedInstanceState) {\r\n\t\tsuper.onCreate(savedInstanceState);\r\n\t\tinit();\r\n\t}", "@Override\n\tpublic void onActivityCreated(Bundle savedInstanceState) {\n // Prepare the loader. Either re-connect with an existing one,\n // or start a new one.\n\t\tgetLoaderManager().initLoader(FORECAST_LOADER_ID, null, this);\n\t\tsuper.onActivityCreated(savedInstanceState); // From instructor correction\n\t}", "@Override\n\tpublic void onCreate(Bundle savedInstanceState) {\n\t\tsuper.onCreate(savedInstanceState);\n\n\t\tDisplayMetrics dm = new DisplayMetrics();\n\t\tgetWindowManager().getDefaultDisplay().getMetrics(dm);\n\n\t\tintScreenX = dm.widthPixels;\n\t\tintScreenY = dm.heightPixels;\n\t\tscreenRect = new Rect(0, 0, intScreenX, intScreenY);\n\n\t\thideTheWindowTitle();\n\n\t\tSampleView view = new SampleView(this);\n\t\tsetContentView(view);\n\n\t\tsetupRecord();\n\t}", "@Override\n\tpublic void onCreate() {\n\t\tsuper.onCreate();\n\t\tif (BuildConfig.DEBUG) {\n\t\t\tLogger.init(getClass().getSimpleName()).setLogLevel(LogLevel.FULL).hideThreadInfo();\n\t\t} else {\n\t\t\tLogger.init(getClass().getSimpleName()).setLogLevel(LogLevel.NONE).hideThreadInfo();\n\t\t}\n\t\tBaseApplication.totalList.add(this);\n\t}", "@Override\n public void onActivityPreCreated(@NonNull Activity activity, @Nullable Bundle savedInstanceState) {/**/}", "@Override\n protected void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n }", "@Override\n protected void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n setContentView(R.layout.activity_main);\n\n setupAddPotLaunch();\n setupListView();\n setupPotClick();\n }", "public void onStart() {\n super.onStart();\n ApplicationStateMonitor.getInstance().activityStarted();\n }", "@Override\n\tpublic void onCreate() {\n\t\tsuper.onCreate();\n\t\tcontext = getApplicationContext();\n\t\t\n\t\tApplicationContextUtils.init(context);\n\t}", "@Override\n protected void onCreate(Bundle savedInstanceState) {\n\n }", "@Override\n public void onCreate(@Nullable Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n\n initArguments();\n }", "@Override\n\tprotected void onCreate(Bundle savedInstanceState) {\n\t\tsuper.onCreate(savedInstanceState);\t\t\n\t\tappManager = AppManager.getAppManager();\n\t\tappManager.addActivity(this);\n\t}", "@Override\n\tpublic void onActivityCreated(Bundle savedInstanceState) {\n\t\tsuper.onActivityCreated(savedInstanceState);\n\n\t\tmContext = (LFActivity) getActivity();\n\t\tinit();\n\t}", "@Override\n public void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n }", "@Override\n public void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n }", "@Override\n public void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n }", "@Override\n public void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n }", "@Override\n public void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n }", "@Override\n public void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n }", "@Override\n public void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n }", "@Override\n public void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n }", "@Override\n public void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n }", "@Override\n public void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n }", "@Override\n public void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n }", "@Override\n public void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n }", "@Override\n public void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n }", "@Override\n\tprotected void onCreate(Bundle savedInstanceBundle)\n\t{\n\t\tsuper.onCreate(savedInstanceBundle);\n\t\tView initView = initView();\n\t\tsetBaseView(initView);\n\t\tinitValues();\n\t\tinitListeners();\n\t}", "@Override\n protected void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n\n }", "@Override\n public void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n setContentView(R.layout.listexcursionscreen);\n\n ActionsDelegator.getInstance().synchronizeActionsWithServer(this);\n runId = PropertiesAdapter.getInstance(this).getCurrentRunId();\n\n RunDelegator.getInstance().loadRun(this, runId);\n ResponseDelegator.getInstance().synchronizeResponsesWithServer(this, runId);\n\n }", "@Override\n\tprotected void onCreate() {\n\t\tSystem.out.println(\"onCreate\");\n\t}", "@Override\n protected void onStart() {\n Log.i(\"G53MDP\", \"Main onStart\");\n super.onStart();\n }", "@Override\n\tprotected void onCreate(Bundle savedInstanceState) {\n\t\tsuper.onCreate(savedInstanceState);\n\t\tAppManager.getInstance().addActivity(this);\n\t}", "@Override\n public void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n\n }", "@Override\n\tpublic void onCreate() {\n\t\t// TODO Auto-generated method stub\n\t\tsuper.onCreate();\n\t}", "@Override\r\n\tprotected void onCreate(Bundle savedInstanceState) {\n\t\tsuper.onCreate(savedInstanceState);\r\n\r\n\t}", "@Override\n protected void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n setContentView(R.layout.add_daily_task);\n init_database();\n init_view();\n init_click();\n init_data();\n init_picker();\n }", "@Override\n\tpublic void onActivityCreated(Bundle savedInstanceState) {\n\t\t\n\t\tactivity = (MainActivity)getActivity(); \n\t\t\n\t\tactivity.setContListener(this);\n\t\t\n\t\tif(MODE == Const.MODE_DEFAULT){\n\t\t\tinitializeInfoForm();\n\t\t}else{\n\t\t\tinitializeAddEditForm();\t\t\t\n\t\t}\n\t\t\n\t\tsuper.onActivityCreated(savedInstanceState);\n\t}", "@Override\r\n\tpublic void onCreate(Bundle savedInstanceState) {\n\t\tsuper.onCreate(savedInstanceState);\r\n\r\n\t}", "@Override\n\tprotected void onCreate(Bundle savedInstanceState) {\n\t\tsuper.onCreate(savedInstanceState);\n\n\t\tinitView();\n\n\t\tinitData();\n\n\t\tinitEvent();\n\n\t\tinitAnimation();\n\n\t\tshowUp();\n\t}", "@Override\n public void onCreate() {\n Thread.setDefaultUncaughtExceptionHandler(new TryMe());\n\n super.onCreate();\n\n // Write the content of the current application\n context = getApplicationContext();\n display = context.getResources().getDisplayMetrics();\n\n\n // Initializing DB\n App.databaseManager.initial(App.context);\n\n // Initialize user secret\n App.accountModule.initial();\n }", "@Override\r\n\tpublic void onCreate(Bundle savedInstanceState) {\r\n\t\tsuper.onCreate(savedInstanceState);\r\n\r\n\t}", "@Override\n protected void onCreate(@Nullable Bundle savedInstanceState) {\n\n super.onCreate(savedInstanceState);\n }" ]
[ "0.791686", "0.77270156", "0.7693263", "0.7693263", "0.7693263", "0.7693263", "0.7693263", "0.7693263", "0.7637394", "0.7637394", "0.7629958", "0.76189965", "0.76189965", "0.7543775", "0.7540053", "0.7540053", "0.7539505", "0.75269467", "0.75147736", "0.7509639", "0.7500879", "0.74805456", "0.7475343", "0.7469598", "0.7469598", "0.7455178", "0.743656", "0.74256307", "0.7422192", "0.73934627", "0.7370002", "0.73569906", "0.73569906", "0.7353011", "0.7347353", "0.7347353", "0.7333878", "0.7311508", "0.72663945", "0.72612154", "0.7252271", "0.72419256", "0.72131634", "0.71865886", "0.718271", "0.71728176", "0.7168954", "0.7166841", "0.71481615", "0.7141478", "0.7132933", "0.71174103", "0.7097966", "0.70979583", "0.7093163", "0.7093163", "0.7085773", "0.7075851", "0.7073558", "0.70698684", "0.7049258", "0.704046", "0.70370424", "0.7013127", "0.7005552", "0.7004414", "0.7004136", "0.69996923", "0.6995201", "0.69904065", "0.6988358", "0.69834954", "0.69820535", "0.69820535", "0.69820535", "0.69820535", "0.69820535", "0.69820535", "0.69820535", "0.69820535", "0.69820535", "0.69820535", "0.69820535", "0.69820535", "0.69820535", "0.69783133", "0.6977392", "0.69668365", "0.69660246", "0.69651115", "0.6962911", "0.696241", "0.6961096", "0.69608897", "0.6947069", "0.6940148", "0.69358927", "0.6933102", "0.6927288", "0.69265485", "0.69247025" ]
0.0
-1
TODO Autogenerated method stub
@Override public void onClick(View v) { switch(v.getId()){ case R.id.title_button_refresh:{ startProgress(); Uri uri=Uri.parse("content://"+getPackageName()+".YouTubeProvider/"+YT.TABLE_PLAYLIST+"/"+mPlayListId); mQueryHandler.startQuery(0, null, uri, null, null, null, null); } break; case R.id.title_button_thumb:{ toggleThumb(); } break; case R.id.title_button_important:{ toggleImportantButton(); break; } case R.id.video_list_play_web: //playAllorRandom(false); playStandAlone(); break; case R.id.video_list_play_youtube:{ playAllYouTube(); break; } case R.id.video_list_button_select_mode: case R.id.video_list_button_play_mode: toggleButtonLayout(); initCheckData(); break; case R.id.video_list_button_add_selected: startProgress(); new AsyncTask<Object, Object, Object>(){ @Override protected Object doInBackground(Object... params) { addSelectedtoFavorites(); return null; } @Override protected void onPostExecute(Object o){ stopProgress(); int count=mCheckData.size(); int stringId=R.string.ids_added_to_favorites; if(count==0){ stringId=R.string.ids_no_item_selected; } Toast.makeText(VideoListActivity.this, getString(stringId), Toast.LENGTH_SHORT).show(); initCheckData(); mListView.invalidateViews(); } }.execute(""); break; case R.id.video_list_button_play_all: case R.id.main_list_footer_play_all: playAllorRandom(false); break; case R.id.video_list_button_play_random: case R.id.main_list_footer_play_random: playAllorRandom(true); break; case R.id.main_list_footer_play_selected: case R.id.video_list_button_play_selected: playSelected(); break; } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExras() {\n\n\t}", "@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}", "@Override\n\tpublic void entrenar() {\n\t\t\n\t}", "@Override\n\tpublic void nadar() {\n\t\t\n\t}", "@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}", "@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}", "@Override\n\tprotected void interr() {\n\t}", "@Override\n\tpublic void emprestimo() {\n\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "@Override\n\tpublic void gravarBd() {\n\t\t\n\t}", "@Override\r\n\tpublic void rozmnozovat() {\n\t}", "@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}", "@Override\n protected void getExras() {\n }", "@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}", "@Override\n\tpublic void nefesAl() {\n\n\t}", "@Override\n\tpublic void ligar() {\n\t\t\n\t}", "@Override\n public void func_104112_b() {\n \n }", "@Override\n\tprotected void initdata() {\n\n\t}", "@Override\n\tpublic void nghe() {\n\n\t}", "@Override\n public void function()\n {\n }", "@Override\n public void function()\n {\n }", "public final void mo51373a() {\n }", "@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}", "@Override\n public void inizializza() {\n\n super.inizializza();\n }", "@Override\n\tprotected void initData() {\n\t\t\n\t}", "@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}", "@Override\n\tpublic void sacrifier() {\n\t\t\n\t}", "@Override\r\n\tprotected void InitData() {\n\t\t\r\n\t}", "public void designBasement() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}", "public void gored() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\r\n\t}", "@Override\n\tpublic void einkaufen() {\n\t}", "@Override\n protected void initialize() {\n\n \n }", "public void mo38117a() {\n }", "@Override\n\tprotected void getData() {\n\t\t\n\t}", "Constructor() {\r\n\t\t \r\n\t }", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\n\tpublic void one() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "private stendhal() {\n\t}", "@Override\n\tprotected void update() {\n\t\t\n\t}", "@Override\n\t\t\tpublic void ic() {\n\t\t\t\t\n\t\t\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n public void init() {\n\n }", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\n\tpublic void debite() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "public contrustor(){\r\n\t}", "@Override\n\tprotected void initialize() {\n\n\t}", "@Override\r\n\tpublic void dispase() {\n\r\n\t}", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "@Override\n\tpublic void dtd() {\n\t\t\n\t}", "@Override\n\tprotected void logic() {\n\n\t}", "@Override\n\tprotected void lazyLoad() {\n\t\t\n\t}", "public void mo4359a() {\n }", "@Override\r\n\tprotected void initialize() {\n\r\n\t}", "@Override\n public void memoria() {\n \n }", "@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}", "private RepositorioAtendimentoPublicoHBM() {\r\t}", "@Override\n protected void initialize() \n {\n \n }", "@Override\r\n\tpublic void getProposition() {\n\r\n\t}", "@Override\n\tpublic void particular1() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n protected void prot() {\n }", "@Override\r\n\tpublic void init()\r\n\t{\n\t}", "@Override\n\tprotected void initValue()\n\t{\n\n\t}", "public void mo55254a() {\n }" ]
[ "0.6671074", "0.6567672", "0.6523024", "0.6481211", "0.6477082", "0.64591026", "0.64127725", "0.63762105", "0.6276059", "0.6254286", "0.623686", "0.6223679", "0.6201336", "0.61950207", "0.61950207", "0.61922914", "0.6186996", "0.6173591", "0.61327106", "0.61285484", "0.6080161", "0.6077022", "0.6041561", "0.6024072", "0.6020252", "0.59984857", "0.59672105", "0.59672105", "0.5965777", "0.59485507", "0.5940904", "0.59239364", "0.5910017", "0.5902906", "0.58946234", "0.5886006", "0.58839184", "0.58691067", "0.5857751", "0.58503544", "0.5847024", "0.58239377", "0.5810564", "0.5810089", "0.5806823", "0.5806823", "0.5800025", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5790187", "0.5789414", "0.5787092", "0.57844025", "0.57844025", "0.5774479", "0.5774479", "0.5774479", "0.5774479", "0.5774479", "0.5761362", "0.57596046", "0.57596046", "0.575025", "0.575025", "0.575025", "0.5747959", "0.57337177", "0.57337177", "0.57337177", "0.5721452", "0.5715831", "0.57142824", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.5711723", "0.57041645", "0.56991017", "0.5696783", "0.56881124", "0.56774884", "0.56734604", "0.56728", "0.56696945", "0.5661323", "0.5657007", "0.5655942", "0.5655942", "0.5655942", "0.56549734", "0.5654792", "0.5652974", "0.5650185" ]
0.0
-1
/ PRJ_TITLE+" text, "+ PRJ_PLAYLIST_ID+" text, "+ PRJ_DESCRIPTION+" text, "+ PRJ_DURATION+" text, "+ PRJ_THUMNAIL+" text, "+ PRJ_VIDEO_ID+" text"+
private void addSelectedtoFavorites(){ Cursor c=getContentResolver().query(Uri.parse(Const.URI_STRING+"/videolist/"+mPlayListId), null, null, null, null); if(mCheckData==null || c==null){ Logging.e("Error Data NULL"); return; } if(mCheckData.size()!=c.getCount()){ Logging.e("Error Data and Cursor count has different value"); } if(c!=null){ Logging.d("Insert Start"); for(int i=0;i<c.getCount();i++){ Boolean tagged=mCheckData.get(i); if(tagged){ c.moveToPosition(i); ContentValues cv=new ContentValues(); cv.put(MyList.PRJ_TITLE, c.getString(c.getColumnIndex(PlayList.PRJ_TITLE))); cv.put(MyList.PRJ_PLAYLIST_ID, mTitle); cv.put(MyList.PRJ_DESCRIPTION, c.getString(c.getColumnIndex(PlayList.PRJ_DESCRIPTION))); cv.put(MyList.PRJ_DURATION, c.getString(c.getColumnIndex(PlayList.PRJ_DURATION))); cv.put(MyList.PRJ_THUMNAIL, c.getString(c.getColumnIndex(PlayList.PRJ_THUMNAIL))); cv.put(MyList.PRJ_VIDEO_ID, c.getString(c.getColumnIndex(PlayList.PRJ_VIDEO_ID))); getContentResolver().insert(Uri.parse("content://"+Const.MYLIST_AUTHORITY+"/videolist"), cv); Logging.d("Insert "+i); } } c.close(); Logging.d("Insert End"); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String playlistToString(){\n String out = \"\";\n out =\"********** Playlist **********\\n\"+\n \"** Title: \"+name+\"\\n\"+\n \"** Duration: \"+timeToFormat(updateDuration())+\"\\n\"+\n \"** Genre: \"+changeGendersOfPlaylist(playlistAllGenders())+\"\\n\";\n\n return out;\n }", "@Override\n public void onCreate(Bundle savedInstanceState) {\n \t//requestWindowFeature(Window.FEATURE_INDETERMINATE_PROGRESS);\n super.onCreate(savedInstanceState);\n setContentView(R.layout.video_list);\n \n mPreference =getSharedPreferences(Const.PREF_SETTING_FILE_NAME, 0);\n mShowIcon=mPreference.getBoolean(PREF_KEY_SHOW_ICON, false);\n mPreference.registerOnSharedPreferenceChangeListener(this);\n View v=findViewById(R.id.title_button_thumb);\n v.setSelected(mShowIcon);\n \n //mPlayListId=getIntent().getExtras().getString(Const.EXTRA_PLAYLIST_ID);\n //mTitle=getIntent().getExtras().getString(Const.EXTRA_TITLE);\n ContentValues cv=getIntent().getParcelableExtra(Const.EXTRA_PLAYLIST_PARCEL);\n mPlayListId=cv.getAsString(YT.PRJ_PLAYLIST_ID);\n mTitle=cv.getAsString(YT.PRJ_TITLE);\n ((TextView)findViewById(R.id.title_text)).setText(mTitle);\n Logging.d(\"playlistId=\"+mPlayListId);\n\n findViewById(R.id.title_button_refresh).setVisibility(View.VISIBLE);\n findViewById(R.id.title_button_thumb).setVisibility(View.VISIBLE);\n\n //initButtonLayout();\n \n mListView=getListView();\n \n mAdapter= new SimpleCursorAdapter(\n this, \n R.layout.main_list_item,\n mCursor,\n new String[]{ YT.PRJ_TITLE,},// YT.PRJ_DURATION}, \n new int[] {R.id.main_list_text,},// R.id.main_list_text_desc }\n SimpleCursorAdapter.FLAG_REGISTER_CONTENT_OBSERVER\n ){\n \t@Override\n \tpublic View \t\n \tgetView(int position, View convertView, ViewGroup parent){\n \t\tView v= super.getView(position, convertView, parent);\n \t\t\n \t\tmCursor.moveToPosition(position);\n \t\tint i=mCursor.getInt(mCursor.getColumnIndex(YT.PRJ_DURATION));\n \t\t\n \t\tTextView tv=(TextView)v.findViewById(R.id.main_list_text_small);\n \t\tString time=timeToString(i);\n \t\ttv.setText(time);\n \t\ttv.setVisibility(View.VISIBLE);\n \t\t//tv.setGravity()\n \t\t\n \t\tif(mSelectMode){\n \t\tImageView check=(ImageView)v.findViewById(R.id.main_list_check);\n \t\t\tcheck.setVisibility(View.VISIBLE);\n \t\t\t\tboolean next=mCheckData.get(position);\n \t\t\t\tDrawable d=getResources().getDrawable(android.R.drawable.checkbox_off_background);\n \t\t\t\tif(next){\n \t\t\t\t\td=getResources().getDrawable(android.R.drawable.checkbox_on_background);\n \t\t\t\t}\n \t\t\t\tcheck.setImageDrawable(d); \t\t\t\n \t\t}else{\n \t\tImageView check=(ImageView)v.findViewById(R.id.main_list_check);\n \t\t\tcheck.setVisibility(View.GONE); \t\t\t\n \t\t}\n \t\t\n \t\tImageView iv=(ImageView)v.findViewById(R.id.main_list_image);\n \t\tif(mShowIcon){\n \t\t\tAQuery aq=new AQuery(iv);\n \t\t\taq.image(mCursor.getString(mCursor.getColumnIndex(YT.PRJ_SQDEFAULT))).visible();\n \t\t}else{\n \t\t\tiv.setVisibility(View.GONE);\n \t\t}\n\n\t\t\t\t\n \t\treturn v;\n \t}\n \t\n \t@Override\n \tpublic void bindView(View view, Context context, Cursor cursor) {\n \t\tsuper.bindView(view, context, cursor);\n \t\t//Logging.d(\"Video List Bind View Called\");\n \t} \t\n \t\n }; \n \n mListView.setOnItemClickListener(new OnItemClickListener(){\n\n\t\t\t@Override\n\t\t\tpublic void onItemClick(AdapterView<?> parent, View view,\n\t\t\t\t\tint position, long id) {\n\t\t\t\tif(mSelectMode){\n\t\t\t\t\tboolean prev=mCheckData.get(position);\n\t\t\t\t\tmCheckData.set(position, !prev);\n\t\t\t\t\t\n\t\t\t\t\tboolean next=mCheckData.get(position);\n\t\t\t\t\tImageView iv=(ImageView)view.findViewById(R.id.main_list_check);\n\t\t\t\t\tDrawable d=getResources().getDrawable(android.R.drawable.checkbox_off_background);\n\t\t\t\t\tif(next){\n\t\t\t\t\t\td=getResources().getDrawable(android.R.drawable.checkbox_on_background);\n\t\t\t\t\t}\n\t\t\t\t\tiv.setImageDrawable(d);\t\t\t\t\t\n\t\t\t\t}else{\n\t\t\t\t\tmCursor.moveToPosition(position);\n\t\t\t\t\tString videoId=mCursor.getString(mCursor.getColumnIndex(YT.PRJ_VIDEO_ID));\n\t\t\t\t\t\n\t\t\t\t\tString url=\"http://www.youtube.com/watch?v=\"+videoId;\n\t\t\t\t\tIntent intent = new Intent(Intent.ACTION_VIEW, Uri.parse(\"vnd.youtube:\" + videoId)); \n\t\t\t\t\tList<ResolveInfo> list = getPackageManager().queryIntentActivities(intent, PackageManager.MATCH_DEFAULT_ONLY); \n\t\t\t\t\tif (list.size() == 0) {\n\t\t\t\t\t\tintent = new Intent(Intent.ACTION_VIEW, Uri.parse(url));\n\t\t\t\t\t\tintent=new Intent(Intent.ACTION_VIEW);\n\t\t\t\t\t\tintent.setData(Uri.parse((String)url));\n\t\t\t\t\t\tLogging.d(\"Watching :\"+url);\n\t\t\t\t\t}\n\n\t\t\t\t\tstartActivity(intent);\t\t\t\t\t\n\t\t\t\t}\t\n\t\t\t}\n });\n \n startProgress();\n mQueryHandler=new QueryHandler(getContentResolver()){\n \t\n };\n //Uri uri=Uri.parse(Const.URI_STRING+\"/videolist/\"+mPlayListId);\n Uri uri=Uri.parse(\"content://\"+getPackageName()+\".YouTubeProvider/\"+YT.TABLE_PLAYLIST+\"/\"+mPlayListId);\n mQueryHandler.startQuery(0, null, uri, null, null, null, null);\n \n \n invalidateImportantButton();\n \n }", "public String showPlayList(){\n String dataPlayList = \"\";\n for(int i = 0; i<MAX_PLAYLIST; i++){\n if(thePlayLists[i] != null){\n thePlayLists[i].uptadeDurationFormat(thePlayLists[i].uptadeDuration());\n thePlayLists[i].changeGender(thePlayLists[i].uptadeGender());\n dataPlayList += thePlayLists[i].showDatePlayList();\n }\n }\n return dataPlayList;\n }", "public String toString() { \r\n\t return \"{Song = Title: \" + title + \", Artist: \" + artist + \", Song length: \" + minutes + \":\" + seconds + \"}\";\r\n\t}", "public String showPlayListInformation(){\n\t\t\n\t\tString text = \"\";\n\t\t\n\t\treturn text;\n\t}", "public String printSongInOneLine(){\n\t\tString str = aTitle +\n\t\t\t\t\" - \" +\n\t\t\t\taArtist +\n\t\t\t\t\" - \" +\n\t\t\t\taTime;\n\t\tSet<String> customTagKeys = aCustomTags.keySet();\n\t\tif(customTagKeys.size()!=0){\n\t\t\tfor(String key:customTagKeys){\n\t\t\t\tstr += \" - \" + key + \":\"+ aCustomTags.get(key);\n\t\t\t}\n\t\t}\n\t\treturn str;\n\t}", "private void setPlayList() {\n int[] rawValues = {\n R.raw.bensoundbrazilsamba,\n R.raw.bensoundcountryboy,\n R.raw.bensoundindia,\n R.raw.bensoundlittleplanet,\n R.raw.bensoundpsychedelic,\n R.raw.bensoundrelaxing,\n R.raw.bensoundtheelevatorbossanova\n };\n String[] countryList = {\n \"Brazil\",\n \"USA\",\n \"India\",\n \"Iceland\",\n \"South Korea\",\n \"Indonesia\",\n \"Brazil\"\n };\n String [] descriptions = {\n \"Samba is a Brazilian musical genre and dance style, with its roots in Africa via the West African slave trade religious particularly of Angola and African traditions.\",\n \"Country music is a genre of American popular originated Southern States in the 1920s music that in the United\",\n \"The music of India includes multiple varieties of folk music, pop, and Indian classical music. India's classical music tradition, including Hindustani music and Carnatic, has a history spanning millennia and developed over several eras\",\n \"The music of Iceland includes vibrant folk and pop traditions. Well-known artists from Iceland include medieval music group Voces Thules, alternative rock band The Sugarcubes, singers Björk and Emiliana Torrini, post- rock band Sigur Rós and indie folk/indie pop band Of Monsters and Men\",\n \"The Music of South Korea has evolved over the course of the decades since the end of the Korean War, and has its roots in the music of the Korean people, who have inhabited the Korean peninsula for over a millennium. Contemporary South Korean music can be divided into three different categories: Traditional Korean folk music, popular music, or K- pop, and Western- influenced non-popular music\",\n \"The music of Indonesia demonstrates its cultural diversity, the local musical creativity, as well as subsequent foreign musical influences that shaped contemporary music scenes of Indonesia. Nearly thousands Indonesian having its own cultural and artistic history and character Nearly of islands\",\n \"Samba is a Brazilian musical genre and dance style, with its roots in Africa via the West African slave trade religious particularly of Angola\"\n };\n\n for (int i = 0; i < rawValues.length; i++) {\n this.mPlayList.add(rawValues[i]);\n this.mTrackList.add(new Track(this.getResources().getResourceEntryName(rawValues[i]),\n countryList[i],descriptions[i],rawValues[i]));\n }\n }", "@Override\n\t\tpublic String toString()\n\t\t{\n\t\t\treturn String.format(\"#%1$d *%2$s* (%3$s@doc): %4$s\\n%5$s\",\n\t\t\t id, poster_name, poster_uid, title,\n\t\t\t mlong.replaceAll(\"</?(br|BR)( ?/)?>\", \"\").replaceAll(\"</?(p|P) ( ?/)?>\", \"\\n\")\n\t\t\t);\n\t\t}", "@Override\n public String toString()\n {\n return \"Video: \" + videoTitle + \"\\nCreated By: \" + videoCreator;\n }", "public void setPlaybackInfo(Track track) {\n RelativeLayout playbackInfoTop = (RelativeLayout) findViewById(R.id.playback_info_top);\n LinearLayout playbackInfoBottom = (LinearLayout) findViewById(R.id.playback_info_bottom);\n if (playbackInfoTop != null)\n playbackInfoTop.setClickable(false);\n if (playbackInfoBottom != null)\n playbackInfoBottom.setClickable(false);\n\n if (track != null) {\n ImageView playbackInfoAlbumArtTop = (ImageView) findViewById(R.id.playback_info_album_art_top);\n TextView playbackInfoArtistTop = (TextView) findViewById(R.id.playback_info_artist_top);\n TextView playbackInfoTitleTop = (TextView) findViewById(R.id.playback_info_title_top);\n ImageView playbackInfoAlbumArtBottom = (ImageView) findViewById(R.id.playback_info_album_art_bottom);\n TextView playbackInfoArtistBottom = (TextView) findViewById(R.id.playback_info_artist_bottom);\n TextView playbackInfoTitleBottom = (TextView) findViewById(R.id.playback_info_title_bottom);\n Bitmap albumArt = null;\n if (track.getAlbum() != null)\n albumArt = track.getAlbum().getAlbumArt();\n if (playbackInfoAlbumArtTop != null && playbackInfoArtistTop != null && playbackInfoTitleTop != null) {\n if (albumArt != null)\n playbackInfoAlbumArtTop.setImageBitmap(albumArt);\n else\n playbackInfoAlbumArtTop.setImageDrawable(getResources().getDrawable(\n R.drawable.no_album_art_placeholder));\n playbackInfoArtistTop.setText(track.getArtist().toString());\n playbackInfoTitleTop.setText(track.getTitle());\n playbackInfoTop.setClickable(true);\n }\n if (playbackInfoAlbumArtBottom != null && playbackInfoArtistBottom != null && playbackInfoTitleBottom != null) {\n if (albumArt != null)\n playbackInfoAlbumArtBottom.setImageBitmap(albumArt);\n else\n playbackInfoAlbumArtBottom.setImageDrawable(getResources().getDrawable(\n R.drawable.no_album_art_placeholder));\n playbackInfoArtistBottom.setText(track.getArtist().toString());\n playbackInfoTitleBottom.setText(track.getTitle());\n playbackInfoBottom.setClickable(true);\n }\n } else\n return;\n }", "@Override\n public String toString() {\n return this.title + \": \" + this.duration;\n //next step 6 create an album class\n }", "@Override\r\n\tpublic void onPrepared(MediaPlayer arg0) {\n\t\tint dur = vid.getDuration();\r\n\t\tduration.setText(dur);\r\n\t}", "private void populatePlayList()\r\n {\r\n \tCursor songs = playlist.getSongs();\r\n \tcurAdapter = new SimpleCursorAdapter(this, R.layout.song_item, songs, new String[]{Library.KEY_ROWID}, new int[] {R.id.SongText});\r\n \tcurAdapter.setViewBinder(songViewBinder);\r\n \tsetListAdapter(curAdapter);\r\n }", "@Override\n\t protected PlaylistItem doInBackground(Void... voids) {\n\t \t YouTube youtube = new YouTube.Builder(transport, jsonFactory,\n\t\t\t\t\t\tcredential).setApplicationName(Constants.APP_NAME)\n\t\t\t\t\t\t.build();\n\t \t \n\t \t ResourceId resourceId = new ResourceId();\n\t \t resourceId.setKind(\"youtube#video\");\n\t \t resourceId.setVideoId(videoId);\n\t \t \n\t \t PlaylistItemSnippet playlistItemSnippet = new PlaylistItemSnippet();\n\t \t playlistItemSnippet.setPlaylistId(MainActivity.favoriteListId);\n\t \t playlistItemSnippet.setResourceId(resourceId);\n\t \t \n\t \t PlaylistItem playlistItem = new PlaylistItem();\n\t \t playlistItem.setSnippet(playlistItemSnippet);\n\t \t \n\t \t PlaylistItem returnedPlaylistItem = null;\n\t \t \n\t\t try {\n\t\t\t\t\treturnedPlaylistItem = youtube.playlistItems().insert(\"snippet,contentDetails\", playlistItem).execute();\n\t\t\t } catch (IOException e) {\n\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\te.printStackTrace();\n\t\t\t }\n\t \t \n\t return returnedPlaylistItem;\n\t }", "@Override\n\tpublic String toString() {\n\t\tStringBuilder builder = new StringBuilder();\n\t\treturn builder.append(title)\n\t\t\t.append(\"(\")\n\t\t\t.append(year)\n\t\t\t.append(\", \")\n\t\t\t.append(duration)\n\t\t\t.append(\" mn)#\")\n\t\t\t.append(id)\n\t\t\t.toString(); // finalize String result\n\t}", "public void mo71540w() {\n boolean z;\n VideoItemParams requestId = VideoItemParams.newBuilder().setFragment(this.f73947d).setAweme(this.f73950g).setAwemeFromPage(this.f73953m).setEventType(this.f73944a).setMyProfile(this.f73946c).setPageType(this.f73954n).setEnterMethodValue(this.f74254j).setRequestId(this.f73952l);\n if (this.f74252h != null) {\n this.f74252h.mo60134a(\"video_params\", (Object) requestId);\n }\n mo71773u();\n User author = this.f73950g.getAuthor();\n if (author != null) {\n this.mTitleView.setText(this.f73949f.getString(R.string.b5s, new Object[]{author.getNickname()}));\n this.mTitleView.getPaint().setFakeBoldText(true);\n } else {\n this.mTitleView.setText(\"\");\n }\n if (this.f73950g == null || this.f73950g.isCanPlay()) {\n this.mTitleView.setVisibility(0);\n } else {\n this.mTitleView.setVisibility(4);\n }\n this.tagLayout.setEventType(this.f73944a);\n List videoLabels = this.f73950g.getVideoLabels();\n m91744a(videoLabels);\n if (!RelationLabelHelper.hasDuoShanLabel(this.f73950g)) {\n if (C6319n.m19594a(this.f73944a, \"homepage_hot\")) {\n this.tagLayout.mo61051c(this.f73950g, videoLabels, new C23440a(7, 20));\n } else {\n this.tagLayout.mo61050b(this.f73950g, videoLabels, new C23440a(7, 20));\n }\n }\n if (TextUtils.isEmpty(this.f73950g.getExtra()) || !C6399b.m19928c()) {\n this.mTxtExtra.setVisibility(8);\n } else {\n this.mTxtExtra.setText(this.f73950g.getExtra());\n this.mTxtExtra.setVisibility(0);\n }\n if (this.f73950g.getUserDigg() == 1) {\n z = true;\n } else {\n z = false;\n }\n mo71770a(z);\n if (this.f73953m == 1) {\n mo71533d(m91740N());\n }\n AwemeStatus status = this.f73950g.getStatus();\n if (status == null) {\n this.mAwemeInCheckLayout.setVisibility(8);\n } else if (status.isInReviewing()) {\n this.mAwemeInCheckLayout.setVisibility(0);\n } else {\n this.mAwemeInCheckLayout.setVisibility(8);\n }\n }", "@Override\n public void onCreate(Bundle savedInstanceState) {\n \tsuper.onCreate(savedInstanceState);\n \tsetContentView(R.layout.video_info);\n \t\n \tBundle extras = getIntent().getExtras();\n \tfinal Integer pos = extras.getInt(\"video_pos\", 0);\n \t\n \t\n \tswitch (pos) {\n \t\tcase 0: \n \t\t\ttitle = \"Title\";//(String) getResources().getText(R.string.v1_title);\n \t\t\tdescription = \"Description\";// (String) getResources().getText(R.string.v1_description);\n \t\t\turl = \"URL\";//(String) getResources().getText(R.string.v1_url);\n \t\t\thash = \"\";//(String) getResources().getText(R.string.v1_hash);\n \t\t\ttracker = \"\";//(String) getResources().getText(R.string.v1_tracker);\n \t\t\tdestination = \"\";// (String) getResources().getText(R.string.v1_destination);\n\n \t}\n \t\n \tTextView t = (TextView) findViewById(R.id.title);\n \tt.setText(title);\n \tt = (TextView) findViewById(R.id.description);\n \tt.setText(description);\n\n \tButton b_play = (Button) findViewById(R.id.b_play);\n \t \n \tb_play.setOnClickListener(new OnClickListener() {\n \t public void onClick(View view) {\n \t \tIntent intent = new Intent(getBaseContext(), VideoPlayerActivity.class);\n \t \tintent.putExtra(\"hash\", hash);\n \t \tintent.putExtra(\"tracker\", tracker);\n \t \tintent.putExtra(\"destination\", destination);\n \t \tstartActivity(intent);\n \t }\n \t});\n \t\n \tButton b_web_info = (Button) findViewById(R.id.b_web_info);\n \t \t \n \tb_web_info.setOnClickListener(new OnClickListener() {\n \t public void onClick(View view) {\n \t \t//Start video\n \t \tIntent intent = new Intent(Intent.ACTION_VIEW, Uri.parse(url));\n \t \tstartActivity(intent);\n \t }\n \t});\n }", "private void bindPlayerContentDescription(MediaData data) {\n if (mMediaViewHolder == null) {\n return;\n }\n\n CharSequence contentDescription;\n if (mMediaViewController.isGutsVisible()) {\n contentDescription = mMediaViewHolder.getGutsViewHolder().getGutsText().getText();\n } else if (data != null) {\n contentDescription = mContext.getString(\n R.string.controls_media_playing_item_description,\n data.getSong(),\n data.getArtist(),\n data.getApp());\n } else {\n contentDescription = null;\n }\n mMediaViewHolder.getPlayer().setContentDescription(contentDescription);\n }", "@Override\n public String getDescription() {\n return \"Just Videos\";\n }", "public String showSongName(){\n String nameSong = \"\";\n for (int i = 0; i<MAX_SONG; i++){\n if(poolSong[i] != null){\n nameSong += \"[\"+(i+1)+\"]\"+poolSong[i].getTittleSong()+\"\\n\";\n }\n }\n return nameSong;\n }", "public static void setAllDetails(FullMovieInfo movie){\n\n\n head.setText(movie.getSubject());\n description.setText(movie.getBody());\n\n if (movie.getUrl().equals(\"\")) {\n image.setBackgroundResource(R.drawable.nopic);\n image.getBackground().setAlpha(150);\n } else {\n new DownloadImageTask(activity,l,context, image, movie.getUrl()).execute();\n }\n\n String voteText;\n if(0==movie.getVote_average()){//check if there are an available score\n rate.setVisibility(View.GONE);\n vote.setVisibility(View.VISIBLE);\n voteText = activity.getString(R.string.noinfomration2);\n }else {\n voteText = movie.getVote_average()+\"\";\n if((float)6<=movie.getVote_average()){//check if the score is high or low and paint the color red\\green in result\n movieLinear.setBackgroundResource(R.drawable.layoutstylegreen);\n }else{\n movieLinear.setBackgroundResource(R.drawable.layoutstylered);\n }\n }\n//-----------------all string is from the strings values so i could change language\n vote.setText(activity.getString(R.string.score)+\" \"+voteText);\n rate.setNumStars(5);\n rate.setMax(5);\n float rating = (float) 0.5*movie.getVote_average();\n rate.setStepSize((float)0.05);\n rate.setRating(rating);\n date.setText(activity.getString(R.string.releasedate)+\" \"+movie.getRelease_date());\n String money;\n if(0==movie.getBudget()){\n money = activity.getString(R.string.noinformation);\n }else {\n money = movie.getBudget() + \"\";\n }\n budget.setText(activity.getString(R.string.budget)+\" \"+money);\n if(0!=movie.getRuntime()) {\n int hours = movie.getRuntime() / 60;\n int minutes = movie.getRuntime() % 60;\n runtime.setText(activity.getString(R.string.movielenght)+\" \" + hours+\" \" + activity.getString(R.string.movielength2)+\" \" + minutes+\" \" + activity.getString(R.string.movielength3)+\" \");\n }else{\n runtime.setText(R.string.noinformationexisted);\n }\n\n movieName = movie.getSubject().toString();\n movieScore = movie.getVote_average()+\"\";\n }", "public String toString(){\n\t\tString s1 = \"\\n======= \" + title + \" =========\";\n\t\tString s3 = \"\\n========================================\\n\";\n\t\treturn s1 + \"\\nTitle: \" + title + \"\\nArtist Name: \" + artistName + \"\\nGenre: \" + genre + \n\t\t\t\t\"\\nRating: \" + rating + \"\\nLength: \" + time + s3;\n\t}", "public void updateTrackDetails() {\n if (mTracks != null && !mTracks.isEmpty()) {\n Track track = mTracks.get(mPlayingIndex);\n if (track != null) {\n mArtistName.setText(track.getArtistName());\n mAlbumName.setText(track.getAlbumName());\n Picasso.with(getActivity()).load(track.getThumbnailImageUrl())\n .into(mAlbumArtWork);\n mTrackName.setText(track.getTrackName());\n mTrackDuration.setText(Utilities.getFormatedTime(30000));\n mNowPlaying = \"#NowPlaying \" + track.getTrackUrl();\n if (mShareActionProvider != null) {\n mShareActionProvider.setShareIntent(createShareNowPlayingIntent());\n }\n }\n }\n }", "public String getSubtitle();", "private String addMusic() {\n\t\t// One Parameter: MusicName\n\t\tStringBuilder tag = new StringBuilder();\n\t\ttag.append(\"|music:\" + parameters[0]);\n\t\treturn tag.toString();\n\n\t}", "private void setVideoTitle(final String moduleId) {\n Realm realm = Realm.getDefaultInstance();\n\n try {\n item = realm.where(ModuleItem.class).equalTo(\"itemId\", moduleId).findFirst();\n if (item != null && item.isValid()) {\n video_title.setText(item.getItemName());\n }\n } catch (Exception e) {\n if (BuildConfig.DEBUG) Log.e(TAG, \"setVideoTitle: \" + e.getMessage());\n } finally {\n realm.close();\n }\n }", "@Override\n public void onCreate(SQLiteDatabase db) {\n String query = \"CREATE TABLE \" + TABLE_PLAYED + \"(\"\n + VIENGLISH + \" TEXT,\"+ VIMATHS + \" TEXT,\" + VISCIENCE + \" TEXT,\" + VISSC + \" TEXT,\" + VIGK + \" TEXT,\"\n + VIIENGLISH + \" TEXT,\" + VIIMATHS + \" TEXT,\" + VIISCIENCE + \" TEXT,\" + VIISSC + \" TEXT,\" + VIIGK + \" TEXT,\"\n + VIIIENGLISH + \" TEXT,\" + VIIIMATHS + \" TEXT,\" + VIIIPHYSICS + \" TEXT,\" + VIIICHEM + \" TEXT,\"\n + VIIIBIO + \" TEXT,\"+ VIIIHISTORY + \" TEXT,\"+ VIIICIVIC + \" TEXT,\"+ VIIIGEO + \" TEXT,\"+ VIIIECO + \" TEXT,\"\n + VIIIGK + \" TEXT,\"\n + IXENGLISH + \" TEXT,\" + IXMATHS + \" TEXT,\" + IXPHYSICS + \" TEXT,\" + IXCHEM + \" TEXT,\"\n + IXBIO + \" TEXT,\"+ IXHISTORY + \" TEXT,\"+ IXCIVIC + \" TEXT,\"+ IXGEO + \" TEXT,\"+ IXECO + \" TEXT,\"\n + IXGK + \" TEXT,\"\n + XENGLISH + \" TEXT,\" + XMATHS + \" TEXT,\" + XPHYSICS + \" TEXT,\" + XCHEM + \" TEXT,\"\n + XBIO + \" TEXT,\"+ XHISTORY + \" TEXT,\"+ XCIVIC + \" TEXT,\"+ XGEO + \" TEXT,\"+ XECO + \" TEXT,\"\n + XGK + \" TEXT,\"\n + XIENGLISH + \" TEXT,\" + XIMATHS + \" TEXT,\" + XIPHYSICS + \" TEXT,\" + XICHEM + \" TEXT,\"\n + XIBIO + \" TEXT,\" + XIGK + \" TEXT,\"\n + XIIENGLISH + \" TEXT,\" + XIIMATHS + \" TEXT,\" + XIIPHYSICS + \" TEXT,\" + XIICHEM + \" TEXT,\"\n + XIIBIO + \" TEXT,\" + XIIGK + \" TEXT\"+\")\";\n\n db.execSQL(query);\n\n }", "private void initLayoutData() {\n\t\tImageLoader.getInstance().displayImage(squareLiveModel.getVideoIco(), iv_user_logo, BaseApp.circleOptions);\n\t\tif (squareLiveModel!=null && squareLiveModel.getTitle().split(\" \").length>1) {\n\t\t\ttv_main_title.setText(squareLiveModel.getTitle().split(\" \")[1]);\n\t\t} else {\n\t\t\ttv_main_title.setText(squareLiveModel.getTitle());\n\t\t}\n\t\t\n\t\ttv_subtitle.setText(squareLiveModel.getSubTitle());\n\t\ttv_look_num.setText(squareLiveModel.getChatPeopleCount()+\"\");\n\t\t\n\t\t\n\t\t//0:未开始,1:进行中 2:已结束\n\t\tif (squareLiveModel.getEventsProgress() == 0) {//未开始\n\t\t\ttv_status.setText(\"距离开始\"+ DateHelper.getIntervalDays(squareLiveModel.getEventsStart()));\n\t\t} else if (squareLiveModel.getEventsProgress() == 1) {//进行中\n\t\t\ttv_status.setText(\"进行中\");\n\t\t} else if (squareLiveModel.getEventsProgress() == 2) {//已结束\n\t\t\ttv_status.setText(\"已经结束\");\n\t\t}\n\t}", "void putdata()\n {\n System.out.printf(\"\\nCD Title \\\"%s\\\", is of %d minutes length and of %d rupees.\",title,length,price);\n }", "public Playlist(String titel) {\n this.titel = titel;\n }", "@Override\n\tprotected void onCreate(Bundle savedInstanceState) {\n\t\tsuper.onCreate(savedInstanceState);\n\t\tsetContentView(R.layout.activity_video);\n\t\tex = getIntent().getExtras();\n\t\t \n\n\t HashMap<String, String> mp = new HashMap<String, String>();\n\t\t mp.put(\"tag\", \"realVid\");\n\t\t if(ex.getString(\"cat\").equals(new String(\"ppv\")))\n\t\t {\n\t\t\t String vidttl =\"\";\n String vidtitle = ex.getString(\"title\");\n\t\t \t int pos = vidtitle.indexOf(\"Pay Per View\");\n\t\t\t\tif(pos!= -1)\n\t\t\t\t\tvidttl = vidtitle.substring(0,pos-1);\n\t\t\t\tmp.put(\"title\",vidttl);\n\t\t }\n\t\t else\n\t\t\t mp.put(\"title\", ex.getString(\"title\"));\n\t\t GetRealVidData gvd = new GetRealVidData(mp,this);\n\t\t gvd.execute(serverUrl);\n\t\t youTubeView1 = (YouTubePlayerView)findViewById(R.id.youtube_view1);\n\t\t \n\t\t \n\t\t/*\n\t\t if(ex!=null)\n\t\t \tvid = ex.getString(\"url\");\n\t\t//TextView tv = (TextView)findViewById(R.id.textView1);\n\t\t//VideoView videoView = (VideoView)findViewById(R.id.videoV);\n\t\tint pos = vid.indexOf(\"?rel\");\n\t\tif(pos!= -1)\n\t\t\tvidid = vid.substring(0, pos);\n\t\telse \n\t\t\tvidid = vid;\n\t\t\n\t\tVIDEO = vidid;\n YouTubePlayerView youTubeView = (YouTubePlayerView)findViewById(R.id.youtube_view);\n */\n // youTubeView.initialize(DEVELOPER_KEY, this);\n\n }", "@Override\r\n public void onCreate(SQLiteDatabase sqLiteDatabase) {\n final String CREATE_TABLE = \"CREATE TABLE \" + FavoriteEntry.TABLE_NAME + \" (\" +\r\n FavoriteEntry._ID + \" INTEGER PRIMARY KEY, \" +\r\n FavoriteEntry.COLUMN_MOVIE_ID + \" INTEGER UNIQUE NOT NULL, \" +\r\n FavoriteEntry.COLUMN_TITLE + \" TEXT NOT NULL, \" +\r\n FavoriteEntry.COLUMN_ORIGINAL_TITLE + \" TEXT NOT NULL, \" +\r\n FavoriteEntry.COLUMN_OVERVIEW + \" TEXT NOT NULL, \" +\r\n FavoriteEntry.COLUMN_POSTER_PATH + \" TEXT NOT NULL, \" +\r\n FavoriteEntry.COLUMN_RELEASE_DATE + \" DATE NOT NULL, \" +\r\n FavoriteEntry.COLUMN_RELEASE_TIME + \" VARCHAR(60) NOT NULL, \" +\r\n FavoriteEntry.COLUMN_RUNNING_TIME + \" VARCHAR(60) NOT NULL, \" +\r\n FavoriteEntry.COLUMN_VOTE_COUNT + \" INTEGER NOT NULL, \" +\r\n FavoriteEntry.COLUMN_VOTE_AVG + \" SMALLINT NOT NULL, \" +\r\n FavoriteEntry.COLUMN_POPULARITY + \" INTEGER NOT NULL, \" +\r\n FavoriteEntry.COLUMN_VIDEO + \" BOOLEAN NOT NULL);\";\r\n\r\n sqLiteDatabase.execSQL(CREATE_TABLE);\r\n }", "public String showSong(){\n String dataSong =\"\";\n for(int i = 0; i<MAX_SONG; i++){\n if(poolSong[i] != null){\n dataSong += poolSong[i].showDataSong();\n }\n }\n return dataSong;\n }", "public String toString(){\n return \"Title: \" + title + \"\\r\\nThe release date: \" + releaseDate.toString() + \"\\r\\nThe length: \" + length + \" min\";\n }", "public void setDetails(){\n\n TextView moviename = (TextView) findViewById(R.id.moviename);\n TextView moviedate = (TextView) findViewById(R.id.moviedate);\n TextView theatre = (TextView) findViewById(R.id.theatre);\n\n TextView seats = (TextView) findViewById(R.id.seats);\n\n moviename.setText(ticket.movieName);\n moviedate.setText(ticket.getMovieDate());\n theatre.setText(ticket.theatreDetails);\n\n seats.setText(ticket.seats);\n }", "public void setPollTitle(String title){\n this.pollTitle = title;\n TextView textView = (TextView)findViewById(R.id.poll_object_poll_title);\n textView.setText(this.pollTitle);\n }", "public void createPlayList(String title, String description) {\n if (!playListPanels.containsKey(title)) {//if this playlist doesn't exist.\n PlayListPanel newPlayListPanel = new PlayListPanel(emptyPlayListImage, title, description, this, this);\n playListPanels.put(title, newPlayListPanel);\n }\n }", "private void createYourMusicTitle() {\n\t\tjpYourMusic = new JPanel(new GridLayout(1,1));\n\t\tjpYourMusic.setOpaque(false);\n\t\tJLabel jlYourMusic = new JLabel(\"YOUR MUSIC\");\t\t\n\t\tjlYourMusic.setFont(new java.awt.Font(\"Century Gothic\",0, 17));\n\t\tjlYourMusic.setForeground(new Color(250,250,250));\n\t\tjpYourMusic.add(jlYourMusic);\n\t}", "public void addSongToPlayList(String playListTitle, String description, String songDirectory) {\n if (!playListPanels.containsKey(playListTitle)) {//if this playlist doesn't exist.\n createPlayList(playListTitle, description);//creating new one\n }\n try {//adding song to playlist\n MP3Info currentSong = new MP3Info(songDirectory);//creating mp3 info file\n AlbumPanel songAlbum = albumPanels.get(currentSong.getAlbum());//getting song's album\n for (SongPanel songPanel : songAlbum.getSongPanels()) {\n if (songPanel.getMp3Info().getTitle().equals(currentSong.getTitle())) {//if we found that song\n playListPanels.get(playListTitle).getPlayListSongs().add(songPanel);//adding to given playlist\n playListPanels.get(playListTitle).updateImage();//updating playlist image\n break;\n }\n }\n } catch (IOException | NoSuchFieldException e) {\n JOptionPane.showMessageDialog(null, \"Error reading mp3 file\", \"An Error Occurred\", JOptionPane.ERROR_MESSAGE);\n }\n }", "public String getCaption(){\n return this.caption;\n }", "private void initPlayerUI() {\n if (playableMediaItem instanceof Podcast) {\n tvPlayerTitle.setText(((Podcast) playableMediaItem).getSelectedTrack().getTitle().trim());\n } else {\n tvPlayerTitle.setText(playableMediaItem.getName().trim());\n }\n tvPlayserSubtitle.setText(playableMediaItem.getSubHeader().trim());\n if (playableMediaItem.getCoverImageUrl() == null) {\n final LetterBitmap letterBitmap = new LetterBitmap(getActivity());\n Bitmap letterTile = letterBitmap.getLetterTile(playableMediaItem.getName(), playableMediaItem.getName(), COVER_IMAGE_SIZE, COVER_IMAGE_SIZE);\n imgPlayerCover.setImageBitmap(letterTile);\n int dominantColor = UIHelper.getDominantColor(letterTile);\n rlTopSectionBckg.setBackgroundColor(dominantColor);\n } else {\n Glide.with(getActivity()).load(playableMediaItem.getCoverImageUrl()).crossFade().into(new GlideDrawableImageViewTarget(imgPlayerCover) {\n @Override\n public void onResourceReady(GlideDrawable drawable, GlideAnimation anim) {\n super.onResourceReady(drawable, anim);\n Bitmap bitmap = ((GlideBitmapDrawable) drawable).getBitmap();\n int dominantColor = UIHelper.getDominantColor(bitmap);\n rlTopSectionBckg.setBackgroundColor(dominantColor);\n }\n });\n }\n if (playableMediaItem instanceof Podcast) {\n Track selectedTrack = ((Podcast) playableMediaItem).getSelectedTrack();\n tvTrackDuration.setText(selectedTrack.getDuration());\n sbPlayerProgress.setOnSeekBarChangeListener(new SeekBar.OnSeekBarChangeListener() {\n @Override\n public void onProgressChanged(SeekBar seekBar, int progress, boolean fromUser) {\n\n }\n\n @Override\n public void onStartTrackingTouch(SeekBar seekBar) {\n isChangingProgress = true;\n }\n\n @Override\n public void onStopTrackingTouch(SeekBar seekBar) {\n isChangingProgress = false;\n int progress = seekBar.getProgress();\n int position = (int) ((maxDuration * progress) / 100);\n seekBar.setProgress(progress);\n universalPlayer.seekTo(position);\n }\n });\n }\n if (playableMediaItem instanceof RadioItem) {\n sbPlayerProgress.setOnTouchListener(new View.OnTouchListener() {\n @Override\n public boolean onTouch(View v, MotionEvent event) {\n return true;\n }\n });\n }\n\n //playableMediaItem.syncWithDB();\n if (playableMediaItem.isSubscribed) {\n itemFavorites.setIcon(getResources().getDrawable(R.drawable.ic_heart_black_24dp));\n } else {\n itemFavorites.setIcon(getResources().getDrawable(R.drawable.ic_heart_white_24dp));\n }\n }", "@Override\n\t\t\tpublic void onItemClick(AdapterView<?> parent, View view,\n\t\t\t\t\tint position, long id) {\n\t\t\t\tArrayList<VideoInfo> videoinfo = new ArrayList<VideoInfo>();\n\t\t\t\tfor(int i = 0;i<now_source.size();i++){\n\t\t\t\t\tVideoInfo vinfo = new VideoInfo();\n\t\t\t\t\tvinfo.title = now_source.get(i).getTitle();\n\t\t\t\t\tvinfo.url = now_source.get(i).getUrl();\n\t\t\t\t\tvideoinfo.add(vinfo);\n\t\t\t\t}\n\t\t\t\tif(null!=videoinfo&&videoinfo.size()>0){\n\t\t\t\t\tIntent intent = null;\n\t\t\t\t\tintent = new Intent(VodDetailsActivity.this,WebVideoPlayerActivity.class);\n//\t\t\t\t\tif(null!=domain && domain.contains(\"pps\")||domain.contains(\"qiyi\")){\n//\t\t\t\t\t\tintent = new Intent(VodDetailsActivity.this,MeidaActivity.class);\n//\t\t\t\t\t}else{\n//\t\t\t\t\t\tintent = new Intent(VodDetailsActivity.this,VideoPlayerActivity.class);\n//\t\t\t\t\t}\n\t\t\t\t\tintent.putParcelableArrayListExtra(\"videoinfo\",videoinfo);//数据集合\n\t\t\t\t\tintent.putExtra(\"albumPic\",albumPic);//图片路径\n\t\t\t\t\tintent.putExtra(\"vodtype\", vodtype);//影片类型\n\t\t\t\t\tintent.putExtra(\"vodstate\", vodstate);//影片情势\n\t\t\t\t\tintent.putExtra(\"nextlink\", nextlink);\n\t\t\t\t\tintent.putExtra(\"videoId\", videoId);//影片ID\n\t\t\t\t\tintent.putExtra(\"vodname\", vodname);//电影的名字\n\t\t\t\t\tintent.putExtra(\"sourceId\", sourceId);//源id\n\t\t\t\t\tintent.putExtra(\"domain\", domain);//domain\n\t\t\t\t\tintent.putExtra(\"playIndex\",gv_postion*10+position);//剧集标\n\t\t\t\t\tstartActivity(intent);\n\t\t\t\t\toverridePendingTransition(android.R.anim.fade_in,android.R.anim.fade_out);\n\t\t\t\t}else{\n\t\t\t\t\tUtils.showToast(context,\n\t\t\t\t\t\t\t\"对不起!没有找到数据源,请切换其它源。\",\n\t\t\t\t\t\t\tR.drawable.toast_err);\n\t\t\t\t}\n\t\t\t}", "public String showPlayListNames(){\n String namePlayList = \"\";\n for(int i = 0; i<MAX_PLAYLIST; i++){\n if(thePlayLists[i] != null){\n namePlayList += \"[\"+(i+1)+\"]\"+thePlayLists[i].getNamePlayList()+\"\\n\";\n }\n }\n return namePlayList;\n }", "@Override\n\t\t\t\tpublic void onPrepared(MediaPlayer mediaPlayer) {\n\t\t\t\t\tmediaPlayer.setPlaybackSpeed(1.0f);\n\t\t\t\t\tmVideoView.addTimedTextSource(subtitle_path);\n\t\t\t\t\tmVideoView.setTimedTextShown(true);\n\t\t\t\t\tmVideoView.setVideoLayout(VideoView.VIDEO_LAYOUT_STRETCH, 0);\n\n\t\t\t\t}", "private static StringBuilder generateSqlForVideo(MetaDataType type, IndexParams params) {\n \n StringBuilder sbSQL = new StringBuilder(\"SELECT vd.id\");\n sbSQL.append(SQL_COMMA_SPACE_QUOTE).append(type).append(SQL_AS_VIDEO_TYPE);\n sbSQL.append(\", vd.title, vd.title_original AS originalTitle, vd.title_sort AS sortTitle\");\n sbSQL.append(\", vd.publication_year AS videoYear, vd.release_date as releaseDate\");\n sbSQL.append(\", null AS seriesId, vd.season_id AS seasonId, null AS season, vd.episode AS episode \");\n\t\tif (!params.getLibrary_item()) { sbSQL.append(\", null AS library_base \");}\n sbSQL.append(\", vd.watched AS watched, vd.create_timestamp as createTimestamp \");\n \n sbSQL.append(DataItemTools.addSqlDataItems(params.getDataItems(), \"vd\"));\n\n if (params.checkNewest()) {\n String source = params.getNewestSource();\n if (LITERAL_CREATION.equalsIgnoreCase(source)) {\n sbSQL.append(\", vd.create_timestamp AS newest\");\n } else if (LITERAL_LASTSCAN.equalsIgnoreCase(source)) {\n sbSQL.append(\", vd.last_scanned AS newest\");\n } else {\n params.addParameter(LITERAL_EXTRA, Boolean.FALSE);\n\n sbSQL.append(\", (SELECT MAX(sf.file_date) FROM stage_file sf \");\n sbSQL.append(\"JOIN mediafile mf ON mf.id=sf.mediafile_id JOIN mediafile_videodata mv ON mv.mediafile_id=mf.id \");\n sbSQL.append(\"WHERE mv.videodata_id=vd.id AND sf.file_type\");\n sbSQL.append(SQL_SELECTABLE_VIDEOS);\n sbSQL.append(\"AND sf.status\");\n sbSQL.append(SQL_IGNORE_STATUS_SET);\n sbSQL.append(\"AND mf.extra=:extra) AS newest\");\n }\n }\n\t\tif (params.getLibrary_item()) {\n\t\t\tsbSQL.append(\" ,l.base_directory as library_base from videodata_libraries vl join library l on l.id = vl.library_id join videodata vd on vd.id = vl.data_id WHERE vd.episode\");\n }\n\t\telse {sbSQL.append(\" FROM videodata vd WHERE vd.episode\");}\n \n sbSQL.append(type == MOVIE ? \"<0\" : \">-1\");\n\n if (params.getId() > 0L) {\n sbSQL.append(\" AND vd.id=\").append(params.getId());\n }\n\n if (params.includeYear()) {\n sbSQL.append(\" AND vd.publication_year=\").append(params.getYear());\n } else if (params.excludeYear()) {\n sbSQL.append(\" AND vd.publication_year!=\").append(params.getYear());\n }\n if (params.getYearStart() > 0) {\n sbSQL.append(\" AND vd.publication_year>=\").append(params.getYearStart());\n }\n if (params.getYearEnd() > 0) {\n sbSQL.append(\" AND vd.publication_year<=\").append(params.getYearEnd());\n }\n\n if (params.getWatched() != null) {\n sbSQL.append(\" AND vd.watched=\");\n sbSQL.append(params.getWatched().booleanValue() ? \"1\" : \"0\");\n }\n\t\t\n // check genre inclusion/exclusion\n includeOrExcludeGenre(type, params, sbSQL);\n\n // check studio inclusion/exclusion\n includeOrExcludeStudio(type, params, sbSQL);\n\t\t\n\t\t// check library inclusion/exclusion\n includeOrExcludeLibrary(type, params, sbSQL);\n\n // check country inclusion/exclusion\n includeOrExcludeCountry(type, params, sbSQL);\n\n // check certification inclusion/exclusion\n includeOrExcludeCertification(type, params, sbSQL);\n\n // check award inclusion/exclusion\n includeOrExcludeAward(type, params, sbSQL);\n\n // check video source inclusion/exclusion\n includeOrExcludeVideoSource(type, params, sbSQL);\n\n // check resolution inclusion/exclusion\n includeOrExcludeResolution(type, params, sbSQL);\n\n // check rating inclusion/exclusion\n includeOrExcludeRating(type, params, sbSQL);\n\n // check boxed set inclusion/exclusion\n includeOrExcludeBoxedSet(type, params, sbSQL);\n\n // check newest\n final String newestSource = params.getNewestSource();\n if (newestSource != null) {\n Date newestDate = params.getNewestDate();\n params.addParameter(LITERAL_NEWEST_DATE, newestDate);\n\n if (LITERAL_CREATION.equalsIgnoreCase(newestSource)) {\n if (params.includeNewest()) {\n sbSQL.append(\" AND vd.create_timestamp >= :newestDate\");\n } else {\n sbSQL.append(\" AND vd.create_timestamp < :newestDate\");\n }\n } else if (LITERAL_LASTSCAN.equalsIgnoreCase(newestSource)) {\n if (params.includeNewest()) {\n sbSQL.append(\" AND (vd.last_scanned is null or vd.last_scanned >= :newestDate)\");\n } else {\n sbSQL.append(\" AND vd.last_scanned is not null AND vd.last_scanned < :newestDate\");\n }\n } else {\n params.addParameter(LITERAL_EXTRA, Boolean.FALSE);\n \n addExistsOrNot(params.includeNewest(), sbSQL);\n sbSQL.append(\"SELECT 1 FROM stage_file sf JOIN mediafile mf ON mf.id=sf.mediafile_id \");\n sbSQL.append(\"JOIN mediafile_videodata mv ON mv.mediafile_id=mf.id \");\n sbSQL.append(\"WHERE mv.videodata_id=vd.id AND sf.file_type\");\n sbSQL.append(SQL_SELECTABLE_VIDEOS);\n sbSQL.append(\"AND sf.status!='DUPLICATE' AND mf.extra=:extra AND sf.file_date >= :newestDate)\");\n }\n }\n\n // add the search string, this will be empty if there is no search required\n return sbSQL.append(params.getSearchString(false));\n }", "private void populateUserPlaylitstsSection() {\n \tPlaylist dumyPlaylist = new Playlist();\n \tMap<Long, Playlist> playlistsMap = mDataManager.getStoredPlaylists();\n \tList<Playlist> playlists = new ArrayList<Playlist>();\n \t\n \t// Convert from Map<Long, Playlist> to List<Itemable> \n \tif (playlistsMap != null && playlistsMap.size() > 0) {\n \t\tfor(Map.Entry<Long, Playlist> p : playlistsMap.entrySet()){\n \t\t\tplaylists.add(p.getValue());\n \t\t}\n \t}\n\t\t\n \t// populates the favorite playlists.\n \tif (!Utils.isListEmpty(playlists)) {\n \t\tmContainerMyPlaylists.setVisibility(View.VISIBLE);\n \t\t// shows any internal component except the empty text.\n \t\tmTextMyPlaylist1Name.setVisibility(View.VISIBLE);\n \t\tmTextMyPlaylist2Name.setVisibility(View.VISIBLE);\n \t\tmTextMyPlaylist3Name.setVisibility(View.VISIBLE);\n \t\tmImageMoreIndicator.setVisibility(View.VISIBLE);\n \t\tmTextMyPlaylistEmpty.setVisibility(View.GONE);\n \t\t\n \t\tmTextMyPlaylistsValue.setText(Integer.toString(playlists.size()));\n \t\t\n \t\tStack<TextView> playlistsNames = new Stack<TextView>();\n \t\tplaylistsNames.add(mTextMyPlaylist3Name);\n \t\tplaylistsNames.add(mTextMyPlaylist2Name);\n \t\tplaylistsNames.add(mTextMyPlaylist1Name);\n\n \t\tTextView songName = null;\n \t\t\n \t\tfor (Playlist playlist : playlists) {\n \t\t\tif (playlistsNames.isEmpty())\n \t\t\t\tbreak;\n \t\t\t\n \t\t\tsongName = playlistsNames.pop();\n \t\t\tsongName.setText(playlist.getName());\n\t\t\t}\n \t\t\n \t} else {\n \t\tmContainerMyPlaylists.setVisibility(View.GONE);\n \t}\n\t}", "public void play() { \r\n\t System.out.printf(\"Playing Song: artist=%-20s title=%s\\n\", artist, title);\r\n\t}", "private void initVideoView(Context context) {\n IjkMediaPlayer.loadLibrariesOnce(null);\n IjkMediaPlayer.native_profileBegin(\"libijkplayer.so\");\n\n mAppContext = context.getApplicationContext();\n mActivity = (Activity) context;\n if (mActivity != null) {\n this.mBrightness = mActivity.getWindow().getAttributes().screenBrightness;\n }\n this.mAudioManager = (AudioManager) mAppContext.getSystemService(Context.AUDIO_SERVICE);\n this.mVolume = mAudioManager.getStreamVolume(AudioManager.STREAM_MUSIC);\n if (mMediaController != null) {\n mMediaController.setVideoView(this);\n }\n screenWidthPixels = getScreenWidth(context);\n\n setRender(mCurrentRender);\n\n mVideoWidth = 0;\n mVideoHeight = 0;\n // REMOVED: getHolder().addCallback(mSHCallback);\n // REMOVED: getHolder().setType(SurfaceHolder.SURFACE_TYPE_PUSH_BUFFERS);\n setFocusable(true);\n setFocusableInTouchMode(true);\n requestFocus();\n // REMOVED: mPendingSubtitleTracks = new Vector<Pair<InputStream, MediaFormat>>();\n setCurrentState(STATE_IDLE);\n mTargetState = STATE_IDLE;\n\n subtitleDisplay = new TextView(context);\n subtitleDisplay.setTextSize(16);\n subtitleDisplay.setShadowLayer(3, 5, 5, getResources().getColor(R.color.black));\n subtitleDisplay.setGravity(Gravity.CENTER);\n subtitleDisplay.setTextColor(getResources().getColor(R.color.white));\n// subtitleDisplay.setBackgroundResource(R.color.red);\n LayoutParams layoutParams_txt = new LayoutParams(\n LayoutParams.MATCH_PARENT,\n LayoutParams.WRAP_CONTENT,\n Gravity.BOTTOM);\n addView(subtitleDisplay, layoutParams_txt);\n }", "private void prepareYoutubeVideo() {\r\n LinearLayout main = findViewById(R.id.eventMainLayout);\r\n\r\n YouTubePlayerView playerView = findViewById(R.id.youtube_player_view);\r\n if (playerView != null) {\r\n main.removeView(findViewById(R.id.textVideoTitle));\r\n main.removeView(playerView);\r\n }\r\n\r\n TextView videoTitle = (TextView) getLayoutInflater().inflate(R.layout.component_videotitle, null);\r\n LinearLayout.LayoutParams params = new LinearLayout.LayoutParams(\r\n LinearLayout.LayoutParams.WRAP_CONTENT,\r\n LinearLayout.LayoutParams.WRAP_CONTENT\r\n );\r\n int marginTitle = (int) ResolutionUtil.convertDpToPixels(this, 16);\r\n params.setMargins(marginTitle, 0,0, marginTitle);\r\n videoTitle.setLayoutParams(params);\r\n\r\n YouTubePlayerView view = (YouTubePlayerView) getLayoutInflater().inflate(R.layout.component_youtubeview, null);\r\n\r\n view.addYouTubePlayerListener(new AbstractYouTubePlayerListener() {\r\n @Override\r\n public void onReady(YouTubePlayer youTubePlayer) {\r\n String videoId = YoutubeUtil.getYoutubeVideoIdFromUrl(event.youtubeUrl);\r\n youTubePlayer.loadVideo(videoId, 0);\r\n youTubePlayer.pause();\r\n }\r\n });\r\n\r\n main.addView(videoTitle);\r\n main.addView(view);\r\n }", "@Override\r\n\t\tpublic void onVideoPlayInfoNotify(int infoCode) {\n\t\t\tUtils.printLog(TAG, \"onVideoPlayInfoNotify infoCode=\"+infoCode);\r\n\t\t\tif(infoCode == CommonConst.GET_DATA_TIMEOUT){ //WJ\r\n\t\t\t\tmVideoPlayerHander.removeMessages(DISMISS_DIALOG_FOR_TIMEOUT);\r\n\t\t\t\tmVideoPlayerHander.sendEmptyMessageDelayed(DISMISS_DIALOG_FOR_TIMEOUT, 30000);\r\n\t\t\t Log.d(TAG,\"send time out message 30s later\");\r\n\t\t\t}\r\n\t\t\tif (infoCode == CommonConst.media_player_buffering) {\r\n\t\t\t\tmVideoPlayerHander.sendEmptyMessage(SHOW_WAIT_DIALOG);\r\n\t\t\t\tmVideoPlayerHander.removeMessages(DISMISS_DIALOG_FOR_TIMEOUT);\r\n\t\t\t\tmVideoPlayerHander.sendEmptyMessageDelayed(DISMISS_DIALOG_FOR_TIMEOUT, 30000);\r\n\t\t\t Log.d(TAG,\"send time out message 30s later\");\r\n\t\t\t} else if (infoCode == CommonConst.media_player_buffered) {\r\n\t\t\t\tmVideoPlayerHander.removeMessages(DISMISS_DIALOG_FOR_TIMEOUT);\r\n\t\t\t\tLog.d(TAG,\"remove time out message 30s later\");\r\n\t\t\t\tmVideoPlayerHander.sendEmptyMessage(DISSMISS_WAIT_DIALOG);\r\n\r\n\t\t\t} else if (infoCode == CommonConst.media_player_subtitle_update) {\r\n\t\t\t\tString subtitle = mVideoContrl.getCurrentSubtitleText();\r\n\t\t\t\tUtils.printLog(TAG, \"setsubtiteltext = \" + subtitle);\r\n\t\t\t\tmSubtitleTextView.setText(subtitle);\r\n\t\t\t} else if (infoCode == CommonConst.media_player_subtitle_null) {\r\n\t\t\t\tmSubtitleTextView.setText(\"\");\r\n\r\n\t\t\t} else if(infoCode == ErrorConsts.media_player_getsubtitleinfo_mtk){\r\n//\t\t\t\tint subnum = mVideoContrl.getSubtitleNms();\r\n\t\t\t\tLog.d(TAG,\"now get mtk subtitle info get\");\r\n\t\t\t\t\r\n\t\t\t}\r\n\r\n\t\t\telse if (infoCode == CommonConst.media_player_startplayer_firstframe) {\r\n\t\t\t\tmSurfaceView.setBackgroundColor(getResources().getColor(R.color.transparent_background));\r\n\t\t\t\tif(clienttype.contains(\"CN\")||clienttype.contains(\"HK\")){\r\n\t\t\t//\tif (splitArrayStrings.length<2 || splitArrayStrings[1] == null || splitArrayStrings[1].equals(\"CN\") || splitArrayStrings[1].equals(\"HK\")) // now\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// is\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// CN\r\n\t\t\t\t\tLog.d(TAG, \"now is CN method======\");\r\n\r\n\t\t\t\t\tsetTVToFullScreen(); // add here for 小窗口播放问�?20151027\r\n\t\t\t\t\t// setCNScreenMode();\r\n\t\t\t\t\t// refreshPicMode();\r\n\t\t\t\t} else {\r\n\t\t\t\t\tLog.d(TAG, \"now is EM method======\");\r\n\t\t\t\t\tsetTVToFullScreen(); // add here for 小窗口播放问�?20151027\r\n\t\t\t\t\t// setEMScreenMode();\r\n\t\t\t\t\t// refreshPicMode();\r\n\t\t\t\t}\r\n\r\n\t\t\t\tif (mVideoContrl != null && mVideoContrl.isMediaPlayerPrepared() && mTvmanager != null) {\r\n\t\t\t\t\tint dolbyvision = mVideoContrl.isDolbyVision(mTvmanager);\r\n\t\t\t\t\tint isdts = mVideoContrl.isDTS();\r\n\t\t\t\t\tLog.d(TAG, \"-------------dolby=\"+dolbyvision); //for video\r\n\t\t\t\t\tLog.d(TAG, \"-------------isdts=\"+isdts); //for audio\r\n\t\t\t\t\tif(dolbyvision == CommonConst.VIDEO_DOBBY_VISION){//2 dobbyvision\r\n\t\t\t\t\t\tUtils.printLog(TAG, \"Current audio is dobby vision\");\r\n\t\t\t\t\t\tmVideoPlayerHander.sendEmptyMessage(REFRESH_DOLBY_PLUS_IMAGE);\r\n\t\t\t\t\t}\r\n\t\t\t\t\tif (isdts == CommonConst.STREAM_DOLBY) {//1 --audio AC3 //open here for 938 96947\r\n\t\t\t\t\t\tUtils.printLog(TAG, \"Current audio is DOLBY\");\r\n\t\t\t\t\t\tmVideoPlayerHander.sendEmptyMessage(REFRESH_DOLBY_IMAGE);\r\n\t\t\t\t\t}else if (isdts == CommonConst.STREAM_DOLBY_PLUS) {//2 audio_EAC3\r\n\t\t\t\t\t\tUtils.printLog(TAG, \"Current audio is DOLBY_plus\");\r\n\t\t\t\t\t\tmVideoPlayerHander.sendEmptyMessage(REFRESH_DOLBY_IMAGE);\r\n\t\t\t\t\t}else if (isdts == CommonConst.STREAM_DTS) {//3\r\n\t\t\t\t\t\tUtils.printLog(TAG, \"Current audio is DTS\");\r\n\t\t\t\t\t\tmVideoPlayerHander.sendEmptyMessage(REFRESH_DTS_IMAGE);\r\n\t\t\t\t\t}else if (isdts == CommonConst.STREAM_DTSHD_MASTER_AUDIO) {//4\r\n\t\t\t\t\t\t\tUtils.printLog(TAG, \"Current audio is DTS_MASTER_AUDIO)\");\r\n\t\t\t\t\t\t\tmVideoPlayerHander.sendEmptyMessage(REFRESH_DTSHD_MASTER_AUDIO_IMAGE);\r\n\t\t\t\t\t}else if (isdts == CommonConst.STREAM_DTS_EXPRESS) {//5\r\n\t\t\t\t\t\t\tUtils.printLog(TAG, \"Current audio is DTS_EXPRESS\");\r\n\t\t\t\t\t\t\tmVideoPlayerHander.sendEmptyMessage(REFRESH_DTS_EXPRESS_IMAGE);\r\n\t\t\t\t\t}\r\n\t\t\t\t\t\r\n\r\n\t\t\t\t}\r\n\t\t\t\tplayStatus = PLAYING;\r\n\t\t\t\tdmrSetPlayStatus(playStatus);\r\n\t\t\t\tsendPlayEventBroadCast(mCurrIndex,playStatus);\r\n\r\n\t\t\t}else if(infoCode == CommonConst.unknown_video_format){\t\r\n\t\t\t\tmMediaHanler.sendEmptyMessage(infoCode);\t\r\n\t\t\t}else if(infoCode == CommonConst.unknown_audio_format){\r\n\t\t\t\tmMediaHanler.sendEmptyMessage(infoCode);\r\n\t\t\t}else {\r\n\t\t\t\tif (infoCode == CommonConst.media_player_not_seekable) {\r\n\t\t\t\t\tmIsSeeking = false;\r\n\t\t\t\t\tmVideoPlayerHander.sendEmptyMessage(DISSMISS_WAIT_DIALOG);\r\n\t\t\t\t}\r\n\t\t\t\tmMediaHanler.removeMessages(infoCode);\r\n\t\t\t\tmMediaHanler.sendEmptyMessageDelayed(infoCode, 500);\r\n\t\t\t} \r\n\t\t}", "@Override\n public void onClick(View v) {\n Toast.makeText(getApplicationContext(),\n \"like to watch: \"+((Movie)v.getTag()).title,\n Toast.LENGTH_SHORT).show();\n }", "public String toString(){\n\t\treturn this.title+\" av \"+this.painter+\", \"+this.year;\n\t\t\n\t}", "public String toString()\n {\n String output = \"--------------My Playlist---------------\\n\";\n for (int s = 0; s< countSong; s++)\n {\n output+= playlist[s].toString() + \"\\n\";\n output+=\"--------------------------------\\n\";\n\n }\n return output;\n }", "@Override\n public String getDescription() {\n return \"Phasing vote casting\";\n }", "@Override\n\tpublic void setSubtitle(int resId) {\n\t\t\n\t}", "@Override\n\t\tpublic void onClick(View v) {\n\t\t\tif (v == null || v.getTag() == null) {\n\t\t\t\treturn;\n\t\t\t}\n\t\t\tfinal Playlist mList = new Playlist();\n\t\t\tmList.setDescribe(playlist.getDescribe());\n\n\t\t\tIterator<Integer> iterator = mOptList.keySet().iterator();\n\t\t\twhile (iterator.hasNext()) {\n\t\t\t\tPlaylistEntry value = mOptList.get(iterator.next());\n\t\t\t\tmList.addPlaylistEntry(value);\n\t\t\t}\n\n\t\t\tString tag = v.getTag().toString();\n\t\t\tif (tag.equals(CONTROL1)) // 全选\n\t\t\t{\n\t\t\t\tif (isSelectAll) {\n\t\t\t\t\tisSelectAll = false;\n\t\t\t\t\tmOptList.clear();\n\t\t\t\t} else {\n\t\t\t\t\tisSelectAll = true;\n\t\t\t\t\tmOptList.clear();\n\t\t\t\t\tfor (int m = 0; m < playlist.size(); m++) {\n\t\t\t\t\t\tTrack mTrack = playlist.getEntry(m).getTrack();\n\t\t\t\t\t\tmOptList.put(m, playlist.getEntry(m));\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\trenew();\n\t\t\t}\n\t\t\tif (mOptList.isEmpty()) {\n\t\t\t\treturn;\n\t\t\t}\n\n\t\t\tif (tag.equals(CONTROL2)) // 播放\n\t\t\t{\n\t\t\t\tfinal MusicApplication mMusic = MusicApplication.getInstance();\n\n\t\t\t\tnew BaseTask() {\n\t\t\t\t\t@Override\n\t\t\t\t\tprotected String doInBackground(String... params) {\n\t\t\t\t\t\tint select = 0;\n\t\t\t\t\t\tfor (int i = 0; i < mList.size(); i++) {\n\t\t\t\t\t\t\tif (i == 0) {\n\t\t\t\t\t\t\t\tselect = mMusic.fetchPlaylist()\n\t\t\t\t\t\t\t\t\t\t.addPlaylistEntry(mList.getEntry(i));\n\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\tmMusic.fetchPlaylist().addPlaylistEntry(\n\t\t\t\t\t\t\t\t\t\tmList.getEntry(i));\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t\tpublishProgress(select);\n\t\t\t\t\t\treturn null;\n\n\t\t\t\t\t}\n\n\t\t\t\t\t@Override\n\t\t\t\t\tprotected void onProgressUpdate(Integer... values) {\n\t\t\t\t\t\tif (values.length == 1) {\n\t\t\t\t\t\t\tmMusic.fetchPlaylist().select(values[0]);\n\t\t\t\t\t\t\tmMusic.getPlayerEngine().openPlaylist(\n\t\t\t\t\t\t\t\t\tmMusic.fetchPlaylist());\n\t\t\t\t\t\t\tmMusic.getPlayerEngine().play();\n\t\t\t\t\t\t}\n\t\t\t\t\t};\n\n\t\t\t\t\tprotected void onPostExecute(String result) {\n\t\t\t\t\t\tsuper.onPostExecute(result);\n\t\t\t\t\t\tToast.makeText(getContext(), \"开始播放\", Toast.LENGTH_SHORT)\n\t\t\t\t\t\t\t\t.show();\n\t\t\t\t\t};\n\n\t\t\t\t}.execute();\n\t\t\t}\n\t\t\tif (tag.equals(CONTROL3)) // 添加\n\t\t\t{\n\t\t\t\tMusicUtil.addMusicList(getContext(), mList, false);\n\t\t\t}\n\t\t\tif (tag.equals(CONTROL4)) // 删除/下载\n\t\t\t{\n\t\t\t\tif (mCollectView != null) {\n\t\t\t\t\tmCollectView.remove(mList);\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t\tMusicUtil.deleteMusicList(getContext(), mList, playlist,\n\t\t\t\t\t\tnew OnClickListener() {\n\t\t\t\t\t\t\t@Override\n\t\t\t\t\t\t\tpublic void onClick(View v) {\n\t\t\t\t\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\t\t\t\t\tmOptList.clear();\n\t\t\t\t\t\t\t\trenew();\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}, playlist == MusicApplication.getInstance()\n\t\t\t\t\t\t\t\t.getLocalList()\n\t\t\t\t\t\t\t\t|| playlist == DownloadManager.getInstance()\n\t\t\t\t\t\t\t\t\t\t.getFinishList());\n\n\t\t\t}\n\t\t\trenew();\n\t\t}", "@Override\n protected void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n setContentView(R.layout.activity_now_playing);\n\n mOnNavigationItemSelectedListener = NavigationListener.getInstance(getApplicationContext());\n\n try{\n mTextMessage = (TextView) findViewById(R.id.message);\n\n hDbHelper = new HistoryDbHelper(getApplicationContext());\n\n\n BottomNavigationView navigation = (BottomNavigationView) findViewById(R.id.navigation);\n navigation.setSelectedItemId(R.id.navigation_music);\n navigation.setOnNavigationItemSelectedListener(mOnNavigationItemSelectedListener);\n\n playerView = (YouTubePlayerView) findViewById(R.id.player_view);\n\n latestVideo = new VideoItem();\n\n if (getIntent().getStringExtra(\"VIDEO_ID\") != null) {\n\n latestVideo = new VideoItem();\n\n latestVideo.setTitle(getIntent().getStringExtra(\"TITLE\"));\n latestVideo.setDescription(getIntent().getStringExtra(\"DESCRIPTION\"));\n latestVideo.setThumbnailURL(getIntent().getStringExtra(\"THUMBNAILURL\"));\n latestVideo.setId(getIntent().getStringExtra(\"VIDEO_ID\"));\n\n description = getIntent().getStringExtra(\"DESCRIPTION\");\n thumbnailURL = getIntent().getStringExtra(\"THUMBNAILURL\");\n title = getIntent().getStringExtra(\"TITLE\");\n id = getIntent().getStringExtra(\"VIDEO_ID\");\n\n SharedPreferences preferences = getSharedPreferences(\"lastVideoWatched\", MODE_PRIVATE);\n preferences.edit().putString(\"id\", id).apply();\n }else {\n id = getSharedPreferences(\"lastVideoWatched\", MODE_PRIVATE).getString(\"id\", null);\n \n VideoItem latestvideo = getVideoByID(getApplicationContext() , id);\n description = latestvideo.getDescription();\n thumbnailURL = latestvideo.getThumbnailURL();\n title = latestvideo.getTitle();\n }\n\n insertIntoHistory(id, title, thumbnailURL, description);\n\n FrameLayout titelFrame = (FrameLayout) findViewById(R.id.titel);\n View to_add = getLayoutInflater().inflate(R.layout.video_item, titelFrame, false);\n\n ImageView videoThumbnail = (ImageView) to_add.findViewById(R.id.video_thumbnail);\n TextView videoTitle = (TextView) to_add.findViewById(R.id.video_title);\n TextView videoDescription = (TextView) to_add.findViewById(R.id.video_description);\n\n Picasso.with(getApplicationContext()).load(thumbnailURL).into(videoThumbnail);\n videoTitle.setText(title);\n videoDescription.setText(description);\n titelFrame.addView(to_add);\n\n playerView.initialize(YoutubeConnector.KEY, this);\n }catch (Exception e){\n AlertDialog.Builder builder = new AlertDialog.Builder(getApplicationContext());\n builder.setTitle(\"Fehlermeldung\");\n\n builder\n .setMessage(\"Wähle bitte zuerst einen Titel aus!\")\n .setCancelable(false)\n .setPositiveButton(\"Yes\",new DialogInterface.OnClickListener() {\n public void onClick(DialogInterface dialog,int id) {\n // if this button is clicked, close\n // current activity\n dialog.cancel();\n }\n });\n\n // create alert dialog\n AlertDialog alertDialog = builder.create();\n alertDialog.show();\n }\n }", "private String getPlayTimeString() {\n double fltPlayPositionInFrames = (fltPlayPercent/100.0f) * lngTimelineDataAmountInRmsFrames;\n double fltTime = (double)(fltPlayPositionInFrames * fltRmsFramePeriodInMs)/1000.0f;\n return new DecimalFormat(\"000.00\").format(fltTime); // String.format(\"%3.1f\", fltTime);\n }", "private static String getFullTitle(JSONObject volumeInfo) throws JSONException {\n String title = volumeInfo.getString(\"title\");\n String subTitle = volumeInfo.optString(\"subtitle\");\n if (!TextUtils.isEmpty(subTitle)) {\n title += \"\\n\" + subTitle;\n }\n return title;\n }", "private void updateTitle() {\n\t\tAbstractFolderModel folderModel = FolderModelManager.getInstance().getCurrentModel();\n\t\tTextView titleTV = (TextView) findViewById(R.id.title);\n\t\ttitleTV.setText(folderModel.title());\n\n\t\t\t\t\n\t\tint imgCount=FolderModelManager.getInstance().getCurrentModel().files().length;\n\t\tint folderCount=FolderModelManager.getInstance().getCurrentModel().subfolders().length-1;\n\t\t\n\t\tStringBuilder sb=new StringBuilder(); \n\t\tif (imgCount>0){\n\t\t\tsb.append(Utility.getResourceString(R.string.IMAGE));\n\t\t\tsb.append(\":\");\n\t\t\tsb.append(imgCount);\n\t\t}\n\t\tsb.append(' ');\n\t\tif (folderCount>0){\n\t\t\tsb.append(Utility.getResourceString(R.string.SUBFOLDER));\n\t\t\tsb.append(\":\");\n\t\t\tsb.append(folderCount);\n\t\t}\n\t\t\n\t\tTextView titleRight = (TextView) findViewById(R.id.title_right);\n\t\ttitleRight.setText(sb);\n\t\tsb=null;\t\n\t}", "@Override\r\n\tprotected void onCreate(Bundle savedInstanceState) {\n\t\tsuper.onCreate(savedInstanceState);\r\n\t\tsetContentView(R.layout.player);\r\n\t\tIntent intent= getIntent();\r\n\t\tmp3Info=(Mp3Info) intent.getSerializableExtra(\"mp3Info\");\r\n\t\tbeginButton=(ImageButton) findViewById(R.id.begin);\r\n\t\tpauseButton=(ImageButton) findViewById(R.id.pause);\r\n\t\tstopButton=(ImageButton) findViewById(R.id.stop);\r\n\t\ttalk=(TextView) findViewById(R.id.talk);\r\n\t\tshowtalk=(TextView) findViewById(R.id.showtalk);\r\n\t\t\r\n\t\tpre=(ImageButton) findViewById(R.id.imageButtonpre);\r\n\t\tdanqu=(ImageButton) findViewById(R.id.imageButtondanqu);\r\n\t\tnext=(ImageButton) findViewById(R.id.imageButtonnext);\r\n\t\t\r\n\t\tlrcText=(TextView) findViewById(R.id.lrcText);\r\n\t\tOnClickListener listener=new Listener();\r\n\t\tbeginButton.setOnClickListener(listener);\r\n\t\tpauseButton.setOnClickListener(listener);\r\n\t\tstopButton.setOnClickListener(listener);\r\n\t\tpre.setOnClickListener(listener);\r\n\t\tdanqu.setOnClickListener(listener);\r\n\t\tnext.setOnClickListener(listener);\r\n\t\t\r\n\t\tfindtalk ft=new findtalk();\r\n\t\tft.execute();\r\n\t}", "@Override\n protected Bitmap doInBackground(PlaylistItem... params) {\n item=params[0];\n Log.d(TAG,mActivity.ld.toString());\n return downloadBitmap(mActivity.ld, mActivity.thumbnail_width, item.id);\n }", "public void onFinishInflate() {\n super.onFinishInflate();\n this.o = getResources().getDimensionPixelSize(R.dimen.view_dimen_1000);\n this.p = getResources().getDimensionPixelSize(R.dimen.view_dimen_561);\n this.f5336c = (TextView) findViewById(R.id.title);\n this.f5337d = (TextView) findViewById(R.id.video_repeat);\n this.e = (RelativeLayout) findViewById(R.id.video_container);\n this.f = (ImageView) findViewById(R.id.banner);\n this.i = (ShowTextCountTextView) findViewById(R.id.content);\n this.m = (ImageView) findViewById(R.id.sounds_btn);\n this.i.setTexColor(getResources().getColor(R.color.color_black_trans_40));\n this.j = (DataNetVideoPlayBtn) findViewById(R.id.video_play_btn);\n this.n = (RelativeLayout) findViewById(R.id.jump_view);\n this.r = (PlayerView) findViewById(R.id.player_view);\n this.r.setControllerVisibilityListener(this);\n this.r.requestFocus();\n if (Build.VERSION.SDK_INT < 26) {\n ((SurfaceView) this.r.getVideoSurfaceView()).getHolder().setFormat(-3);\n }\n this.j.setOnClickListener(this);\n this.m.setOnClickListener(this);\n this.i.setOnClickListener(this);\n this.n.setOnClickListener(this);\n this.f5337d.setOnClickListener(this);\n this.s = a(true);\n this.v = new DefaultTrackSelector.ParametersBuilder().build();\n this.l = (ImageView) findViewById(R.id.loading);\n this.k = ObjectAnimator.ofFloat(this.l, AnimatedProperty.PROPERTY_NAME_ROTATION, new float[]{0.0f, 719.0f});\n this.k.setDuration(3000);\n this.k.setRepeatCount(-1);\n this.k.setInterpolator(new LinearInterpolator());\n }", "@Override\n\t\tprotected void onPostExecute(TencentTeleplaysReInfo tencentTeleplaysInfo) {\n\t\t\tsuper.onPostExecute(tencentTeleplaysInfo);\n\t\t\tif (tencentTeleplaysInfo != null) {\n\t\t\t\tString[] titile=tencentTeleplaysInfo.getTitle();\n\t String[] uri=tencentTeleplaysInfo.getUri();\n\t String[] description=tencentTeleplaysInfo.getDescription();\n\t String[] pic_470_630=tencentTeleplaysInfo.getPic_470_630();\n\t String[] year=tencentTeleplaysInfo.getPresent_year();\n\t String[] item_id=tencentTeleplaysInfo.getItem_id();\n\t String[] director=tencentTeleplaysInfo.getDirectors();\n\t String[] viewPoint=tencentTeleplaysInfo.getS_title();\n\t String[] actor=tencentTeleplaysInfo.getActor();\n\t String[] s_title=tencentTeleplaysInfo.getS_title();\n\n\t\t\t\tSharedPreferences.Editor editor = context.getSharedPreferences(\n\t\t\t\t\t\tConstant.SAVE_TENCENT_TELEPLAYSINFO, context.MODE_PRIVATE)\n\t\t\t\t\t\t.edit();\n\t\t\t\tfor (int i = 0, j = 0; i < pic_470_630.length; i++) {\n\t\t\t\t\tif (pic_470_630[i] != null) {\n\n\n\t\t\t\t\t\teditor.putString(\"teleplay_image_\"+j, i + \".jpg\");\n\t\t editor.putString(\"teleplay_uri_\"+j, uri[i]);\n\t\t editor.putString(\"teleplay_name_\"+j, s_title[i]);\n\t\t editor.putString(\"teleplay_year_\" + j, year[i]);\n\t\t editor.putString(\"teleplay_item_id_\" + j, item_id[i]);\n\t\t editor.putString(\"teleplay_director_\"+j, director[i]);\n\t\t editor.putString(\"teleplay_description_\"+j, description[i]);\n\t\t editor.putString(\"teleplay_actor_\"+j, actor[i]);\n\t\t editor.putString(\"teleplay_director_\"+j, director[i]);\n\t\t editor.putString(\"teleplay_title_\"+j, titile[i]);\n\t\t editor.putString(\"teleplay_s_title_\"+j, s_title[i]);\n\t\t\t\t\t\tj++;\n\t\t\t\t\t}\n\t\t\t\t}\n\t/*\t\t\teditor.putBoolean(\"isFirstBoot\", false);*/\n\t\t\t\teditor.commit();\n\t\t\t\teditor.commit();\n\n\t\t\t\tisTeleplaysLoadSucess = true;\n\t\t\t\thomeHandler.sendEmptyMessageDelayed(Constant.IMAGE_DATA_SUCESS,\n\t\t\t\t\t\t0);\n\t\t\t}\n\t\t\t/*\n\t\t\t * Message msg=WasuHandler.obtainMessage(Constants.UPDATAWASU_MS);\n\t\t\t * WasuHandler.sendMessage(msg);\n\t\t\t */\n\t\t}", "void setTitleUnitSound(List<String> listTitle);", "@Override\r\n\t\tpublic void onPrepared(MediaPlayer arg0) {\n\t\t\tupdateLayoutListener(1);\t\r\n\t\t}", "@Override\n public void onPrepared(MediaPlayer mediaPlayer) {\n\n }", "public String toString(){\n return \"Title: \\\"\" + title + \"\\\", author: \" + author + \", (\" + year + \")\";\n }", "private void displayTrailerInfo(List<Trailer> trailers) {\n //checks if the Trailer object has a name. If not, assigns a default name to it\n if (trailers.get(0).getName() == null) {\n setDefaultTrailerName(trailers.get(0));\n }\n //sets the value for the trailer name\n video1.setText(trailers.get(0).getName());\n //sets the trailer's tag to be used when launching Youtube app to view the trailer\n play1.setTag(trailers.get(0).getKey());\n play1.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n playVideo(v);\n }\n });\n\n //if there is more than 1 trailer, show the second one\n if (trailers.size() > 1) {\n //checks if the Trailer object has a name. If not, assigns a default name to it\n if (trailers.get(1).getName() == null) {\n setDefaultTrailerName(trailers.get(1));\n }\n //sets the value for the trailer name\n video2.setText(trailers.get(1).getName());\n //sets the trailer's tag to be used when launching Youtube app to view the trailer\n play2.setTag(trailers.get(1).getKey());\n play2.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n playVideo(v);\n }\n });\n //makes the \"play\" image and the name text view visible\n video2.setVisibility(View.VISIBLE);\n play2.setVisibility(View.VISIBLE);\n }\n //if there are more than 2 trailers, show the third one\n if (trailers.size() > 2) {\n //checks if the Trailer object has a name. If not, assigns a default name to it\n if (trailers.get(2).getName() == null) {\n setDefaultTrailerName(trailers.get(2));\n }\n //sets the value for the trailer name\n video3.setText(trailers.get(2).getName());\n //sets the trailer's tag to be used when launching Youtube app to view the trailer\n play3.setTag(trailers.get(2).getKey());\n play3.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n playVideo(v);\n }\n });\n //makes the \"play\" image and the name text view visible\n video3.setVisibility(View.VISIBLE);\n play3.setVisibility(View.VISIBLE);\n }\n\n }", "public String showPlayListPublic(){\n String playListPublic = \"\";\n int posicion = 0;\n for(int i = 0; i<MAX_PLAYLIST; i++){\n if(thePlayLists[i] != null){\n if(thePlayLists[i] instanceof PublicP){\n playListPublic += \"[\"+(posicion+1)+\"]\"+thePlayLists[i].getNamePlayList()+\"\\n\";\n posicion++;\n }\n }\n }\n return playListPublic;\n }", "private void parseResponse(String response, List<NewsDetailItem> items) {\n\n Pattern pText = Pattern.compile(ITEM_TEXT_PREF + \".*?\" + ITEM_TEXT_POSTF);\n Pattern pTitle = Pattern.compile(TITLE_PREF + \".*?\" + TITLE_POSTF);\n Pattern pDate = Pattern.compile(\"class=\\\"metadata\\\">.*?</a>\");\n Pattern pDate2 = Pattern.compile(\"</strong>.*?<\");\n\n Pattern pImage2 = Pattern.compile(IMG_PREF + \".*?\" + IMG_POSTF);\n\n Pattern pVideo = Pattern.compile(VIDEO_PREF + \".*?\" + VIDEO_POSTF);\n\n Pattern pImageUrl = Pattern.compile(IMG_URL_PREF + \".*?\" + IMG_URL_POSTF);\n\n Pattern pComment = Pattern.compile(\"li class=\\\" item\\\" id=\\\"comment.*?</li>\");\n Pattern pAuthor = Pattern.compile(\"class=\\\"commentauthor\\\".*?</span>\");\n\n Pattern pAuthorName1 = Pattern.compile(\"'>.*?</span>\");\n Pattern pAuthorName2 = Pattern.compile(\"/>.*?</span>\");\n Pattern pAuthorImage = Pattern.compile(AUTHOR_IMAGE_PREF + \".*?\" + AUTHOR_IMAGE_POSTF);\n\n Pattern pCommentText = Pattern.compile(\"<span id=\\\"co_.*?</li>\");\n Pattern pCommentId = Pattern.compile(COMMENT_ID_PREFIX + \".*?\" + COMMENT_ID_POSTFIX);\n\n Pattern pCommentTex2t = Pattern.compile(\"dislike-counter.*?comment-toolbar\"); //Pattern.compile(COMMENT_PREFIX + \".*?\" + COMMENT_POSTFIX);\n Pattern pCommentText3 = Pattern.compile(COMMENT_PREFIX + \".*?\" + COMMENT_POSTFIX);\n Pattern pThumbsDown = Pattern.compile(\"dislike-counter-comment.*?</span>\");\n Pattern pThumbsUp = Pattern.compile(\"like-counter-comment.*?</span>\");\n Pattern pThumb2 = Pattern.compile(THUMB_PREF + \".*?\" + THUMB_POSTF);\n\n Pattern pCommentDate = Pattern.compile(COMMENTDATE_PREF + \".*?\" + COMMENTDATE_POSTF);\n Pattern pWidth = Pattern.compile(WIDTH_PREF + \".*?\" + WIDTH_POSTF);\n Pattern pHeight = Pattern.compile(HEIGHT_PREF + \".*?\" + HEIGHT_POSTF);\n\n Pattern pAkismet = Pattern.compile(\"vortex_ajax_comment\"+\".*?\"+\";\");\n\n Pattern pAkismet2 = Pattern\n .compile(\"\\\"nonce\\\":\\\".*?\"+\"\\\"\");\n\n Pattern pValue = Pattern.compile(\"value=\\\".*?\\\"\");\n\n Pattern pAk_js = Pattern\n .compile(\"id=\\\"ak_js\\\".*?/>\");\n\n\n String akismet = \"\";\n String ak_js = \"\";\n String postId = \"\";\n Matcher makismet_comment = pAkismet.matcher(response);\n if (makismet_comment.find()) {\n Matcher mvalue = pAkismet2.matcher(makismet_comment.group());\n if (mvalue.find()) {\n akismet = mvalue.group();\n akismet = akismet.replace(\"\\\"\", \"\");\n akismet = akismet.replace(\"nonce:\", \"\");\n }\n }\n\n Matcher mak_js = pAk_js.matcher(response);\n if (mak_js.find()) {\n Matcher mvalue = pValue.matcher(mak_js.group());\n if (mvalue.find()) {\n ak_js = mvalue.group();\n ak_js = ak_js.replace(\"\\\"\", \"\");\n ak_js = ak_js.replace(\"value=\", \"\");\n }\n }\n\n\n Pattern ppost_id = Pattern.compile(\"name=\\\"comment_post_ID\\\".*?/>\");\n Matcher mpost_id = ppost_id.matcher(response);\n if (mpost_id.find()) {\n Matcher mvalue = pValue.matcher(mpost_id.group());\n if (mvalue.find()) {\n postId = mvalue.group();\n postId = postId.replace(\"\\\"\", \"\");\n postId = postId.replace(\"value=\", \"\");\n }\n }\n\n Matcher itemMatcher;\n itemMatcher = pDate.matcher(response);\n String date = \"\";\n if (itemMatcher.find()) {\n itemMatcher = pDate2.matcher(itemMatcher.group());\n if (itemMatcher.find()) {\n date = itemMatcher.group().substring(10);\n date = date.substring(0, date.length() - 2);\n }\n }\n\n Matcher mTitle = pTitle.matcher(response);\n if (mTitle.find()) {\n String itemText = mTitle.group().substring(TITLE_PREF.length()); //(\" dc:title=\\\"\".length()).replace(\"\\\"\", \"\");\n itemText = itemText.substring(0, itemText.length() - TITLE_POSTF.length());\n NewsDetailItem item = new NewsDetailItem();\n item.setText(itemText);\n item.setDate(date);\n item.setContentType(NewsDetailDBHelper.NewsItemType.TITLE.ordinal());\n item.setPostUrl(mUrl);\n item.setCommentId(postId);\n item.setAkismet(akismet);\n item.setAk_js(ak_js);\n items.add(item);\n }\n\n Matcher mText = pText.matcher(response);\n int imageEnd = 0;\n int textStart;\n\n if (mText.find()) {\n String text = mText.group().substring(ITEM_TEXT_PREF.length());\n text = text.substring(0, text.length() - ITEM_TEXT_POSTF.length());\n Matcher mImage = pImage2.matcher(text);\n while (mImage.find()) {\n int textEnd = mImage.start();\n textStart = imageEnd;\n imageEnd = mImage.end();\n String itemText = text.substring(textStart, textEnd);\n addTextItem(items, itemText);\n processImageItem(items, mImage.group(), pImageUrl, pWidth, pHeight);\n }\n\n Matcher mVideo = pVideo.matcher(text);\n while (mVideo.find()) {\n int textEnd = mVideo.start();\n textStart = imageEnd;\n imageEnd = mVideo.end();\n String itemText = \"\";\n if (textEnd >= textStart) {\n itemText = text.substring(textStart, textEnd);\n }\n addTextItem(items, itemText);\n processVideoItem(items, mVideo.group(), pImageUrl, pWidth, pHeight);\n }\n\n text = text.substring(imageEnd);\n addTextItem(items, text);\n }\n\n\n NewsDetailItem item = new NewsDetailItem();\n item.setContentType(NewsDetailDBHelper.NewsItemType.REPLY_HEADER.ordinal());\n item.setPostUrl(mUrl);\n items.add(item);\n\n Matcher mComment = pComment.matcher(response);\n while (mComment.find()) {\n item = new NewsDetailItem();\n item.setContentType(NewsDetailDBHelper.NewsItemType.REPLY.ordinal());\n item.setPostUrl(mUrl);\n items.add(item);\n item.setAkismet(akismet);\n String comment = mComment.group();\n\n // if (comment.contains(CAN_CHANGE_KARMA_PREFIX)) {\n item.setCanChangeKarma(1);\n // } else {\n // item.setCanChangeKarma(0);\n // }\n\n Matcher mAuthor = pAuthor.matcher(comment);\n if (mAuthor.find()) {\n String authorText = mAuthor.group();\n item.setAuthorImage(getAuthorImgage(authorText, pAuthorImage));\n item.setAuthor(getAuthorName(authorText, pAuthorName1, pAuthorName2));\n }\n Matcher mCommentText = pCommentText.matcher(comment);\n if (mCommentText.find()) {\n String s = mCommentText.group();\n mCommentText = pCommentTex2t.matcher(s);\n if (mCommentText.find()) {\n mCommentText = pCommentText3.matcher(mCommentText.group());\n if (mCommentText.find()) {\n String commentText = mCommentText.group().substring(COMMENT_PREFIX.length());\n commentText = commentText.substring(0, commentText.length() - COMMENT_POSTFIX.length());\n commentText = commentText.replace(\"<p>\", \"\");\n commentText = commentText.replace(\"</p>\", \"\");\n item.setText(commentText);\n }\n }\n }\n Matcher mCommentId = pCommentId.matcher(comment);\n if (mCommentId.find()) {\n String commentId = mCommentId.group().substring(COMMENTDATE_PREF.length());\n commentId = commentId.substring(0, commentId.length() - COMMENT_ID_POSTFIX.length());\n item.setCommentId(commentId);\n }\n Matcher mCommentDate = pCommentDate.matcher(comment);\n if (mCommentDate.find()) {\n String commentDate = mCommentDate.group().substring(COMMENTDATE_PREF.length());\n commentDate = commentDate.substring(0, commentDate.length() - COMMENTDATE_POSTF.length());\n item.setDate(commentDate);\n }\n item.setKarmaUp(getKarma(comment, pThumbsUp, pThumb2));\n item.setkarmaDown(getKarma(comment, pThumbsDown, pThumb2));\n }\n }", "void showFullDesc(String desc, String title, String startDate);", "@Test\n public void panelTitleTest() {\n Player.GetItem item = getPlayerHandler().getMediaItem();\n onView(withId(R.id.title)).check(matches(withText(item.getTitle())));\n }", "String get_title()\n {\n return title;\n }", "@Override\n protected void onProgressUpdate(Integer... params) {\n now_tx.setText(String.valueOf(params)); // 계속 현재 포지션 계속 보여주기. ex) 3/14\n if(params[0] == -1){ // 일시 정지 걸렸을 때,\n // --- show the 'pause' sight --\n// text.setText(\"PAUSED\");\n\n }\n }", "@Override\n public void run() {\n gameleaderboardList.setAdapter(new PlayByPlayAdapter(GameScreenActivity.this, playByPlayArrayList, pointsSharedPreference.getString(Utility.game.getId() + \"\", \"0\")));\n gameleaderboardList.setDividerHeight(1);\n try {\n\n lastPlayPostionValueTextView.setText(playByPlayArrayList.get(0).getPlaybyPlayComments());\n resultViewHitRegion.setText(playByPlayArrayList.get(0).getPlaybyPlayComments());\n\n } catch (Exception e) {\n lastPlayPostionValueTextView.setText(\"err +NA\");\n }\n\n }", "private void dg_ui_detail_video_type_banner(RecyclerView.ViewHolder viewHolder, ArticleBean bean) {\n DG_DetailVideoViewHolder db_video_banner_holder = (DG_DetailVideoViewHolder) viewHolder;\n boolean isAppExclusive = bean.getSid() != null && bean.getSid().equals(\"\" + THPConstants.APP_EXCLUSIVE_SECTION_ID);\n if (isAppExclusive) {\n db_video_banner_holder.mTitleTextView.setText(Html.fromHtml(\"<i>\" + \"\\\"\" + bean.getTi() + \"\\\"\" + \"</i>\"));\n db_video_banner_holder.mTitleTextView.setTextSize(TypedValue.COMPLEX_UNIT_SP, 25);\n db_video_banner_holder.mAuthorTextView.setVisibility(View.GONE);\n db_video_banner_holder.mUpdatedTextView.setVisibility(View.GONE);\n db_video_banner_holder.mCreatedDateTextView.setVisibility(View.GONE);\n db_video_banner_holder.mHeaderImageView.setVisibility(View.GONE);\n db_video_banner_holder.mMultiMediaButton.setVisibility(View.GONE);\n db_video_banner_holder.mCaptionTextView.setVisibility(View.GONE);\n db_video_banner_holder.mCaptionDevider.setVisibility(View.GONE);\n } else {\n db_video_banner_holder.mTitleTextView.setText(bean.getTi());\n db_video_banner_holder.mArticleLocationView.setText(bean.getLocation());\n String author = bean.getAu();\n if (author != null && !TextUtils.isEmpty(author)) {\n db_video_banner_holder.mAuthorTextView.setVisibility(View.VISIBLE);\n db_video_banner_holder.mAuthorTextView.setText(author.replace(\",\\n\", \" | \").replace(\",\", \" | \"));\n } else {\n db_video_banner_holder.mAuthorTextView.setVisibility(View.GONE);\n }\n\n db_video_banner_holder.mUpdatedTextView.setText(AppDateUtil.getTopNewsFormattedDate(AppDateUtil.changeStringToMillisGMT(bean.getPd())));\n db_video_banner_holder.mCreatedDateTextView.setText(AppDateUtil.getPlaneTopNewsFormattedDate(AppDateUtil.changeStringToMillis(bean.getOd())));\n\n final ArrayList<MeBean> mImageList = bean.getMe();\n if (mImageList != null && mImageList.size() > 0) {\n String imageUrl = mImageList.get(0).getIm_v2();\n if (!ResUtil.isEmpty(imageUrl)) {\n PicassoUtil.loadImageWithFilePH(db_video_banner_holder.itemView.getContext(), db_video_banner_holder.mHeaderImageView, imageUrl);\n }\n String caption = mImageList.get(0).getCa();\n if (caption != null && !TextUtils.isEmpty(caption)) {\n db_video_banner_holder.mCaptionTextView.setText(Html.fromHtml(caption));\n } else {\n db_video_banner_holder.mCaptionTextView.setVisibility(View.GONE);\n }\n }\n db_video_banner_holder.mHeaderImageView.setOnClickListener(v -> {\n if (bean.getVid() != null && !TextUtils.isEmpty(bean.getVid())) {\n IntentUtil.openJWVideoPayerActivity(v.getContext(), bean.getVid());\n } else {\n IntentUtil.openYoutubeActivity(v.getContext(), bean.getYoutube_video_id());\n }\n });\n // To shows Article Type Image\n articleTypeImage(bean.getArticleType(), bean, db_video_banner_holder.mMultiMediaButton);\n db_video_banner_holder.mMultiMediaButton.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n if (bean.getVid() != null && !TextUtils.isEmpty(bean.getVid())) {\n IntentUtil.openJWVideoPayerActivity(v.getContext(), bean.getVid());\n } else {\n IntentUtil.openYoutubeActivity(v.getContext(), bean.getYoutube_video_id());\n }\n }\n });\n }\n }", "@Override\n public int getItemCount(){\n return playlistname.size();\n }", "@Override\n\tpublic void writeToParcel(Parcel dest, int flags) {\n\t\tdest.writeString(ID);\n\t\tdest.writeString(Title);\n\t\tdest.writeString(More);\n\t\tdest.writeString(Tag);\n\t\tdest.writeString(PosterUrl);\n\t\tdest.writeString(VideoUrl);\n\t\tdest.writeString(Director);\n\t\tdest.writeString(Actor);\n\t\tdest.writeString(Grade);\n\t\tdest.writeString(Contents);\n\t\tdest.writeString(RunningTime);\n\t\tdest.writeString(HD);\n\t\tdest.writeString(Price);\n\t}", "@Override\n public String getSubtitle() {\n return null;\n }", "public void prepareTitle()\n {\n DuelTitle title = new DuelTitle();\n addObject(title, 539, 186);\n }", "@Override\n\tpublic View getView(int position, View convertView, ViewGroup parent)\n\t{\n\t\tView row = convertView;\n\t\t// a static holder. From what I gather this makes things more efficient. Other tutorials didn't use it\n\t\tVideoItemHolder holder = null;\n\t\tif(row == null)\n\t\t{\n\t\t\tLayoutInflater inflater = ((Activity)context).getLayoutInflater();\n\t\t\trow = inflater.inflate(layoutResourceId, parent, false);\n\t\t\t\n\t\t\tholder = new VideoItemHolder();\n\t\t\tholder.txtTitle = (TextView)row.findViewById(R.id.txtTitle);\n\t\t\trow.setTag(holder);\n\t\t}\n\t\telse\n\t\t{\n\t\t\tholder = (VideoItemHolder)row.getTag();\n\t\t}\n\t\t\n\t\tVideoItem videoItem = data[position];\n\t\tholder.txtTitle.setText(videoItem.Title);\n\t\t\n\t\treturn row;\n\t\n\t}", "public String toString() {\t\t\n\t\treturn (\"Caption: \" + this.caption + \", Filename: \" + this.filename + \", Rating: \" + this.rating);\n\t}", "@Override\n public void onResponse(JSONObject response) {\n try {\n JSONObject videoJson = response;\n JSONArray videoArray = videoJson.getJSONArray(\"items\");\n for (int i = 0; i < videoArray.length(); i++) {\n JSONObject videoObject = videoArray.getJSONObject(i);\n JSONObject snippet = videoObject.getJSONObject(TAG_SNIPPET);\n JSONObject contentDetails = videoObject.getJSONObject(TAG_CONTENTDETAILS);\n JSONObject thumbnails = snippet.getJSONObject(TAG_THUMB).getJSONObject(TAG_THUMB_MEDIUM);\n\n String title = snippet.getString(TAG_TITLE);\n String description = snippet.getString(TAG_DESCRIPTION);\n String id = contentDetails.getString(TAG_ID);\n String thumbnailUrl = thumbnails.getString(TAG_THUMB_MEDIUM_URL);\n\n videoContent.addItem(videoContent.createVideoItem(id,title,description,thumbnailUrl));\n }\n\n progressBar.setVisibility(View.GONE);\n videoRecyclerViewAdapter.notifyDataSetChanged();\n\n\n }\n // Try and catch are included to handle any errors due to JSON\n catch (JSONException e) {\n // If an error occurs, this prints the error to the log\n e.printStackTrace();\n }\n }", "public String toString(){ \n\t\tString s = String.format(\"%s: %d, rating: %f, price:%f\", TITLE, YEAR_RELEASED, user_rating, getPrice());\n\t\treturn s; \n\t}", "protected void addPodcastSubtitleParameterPropertyDescriptor(Object object) {\r\n\t\titemPropertyDescriptors.add\r\n\t\t\t(createItemPropertyDescriptor\r\n\t\t\t\t(((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(),\r\n\t\t\t\t getResourceLocator(),\r\n\t\t\t\t getString(\"_UI_MPublishNewMp3Step_podcastSubtitleParameter_feature\"),\r\n\t\t\t\t getString(\"_UI_PropertyDescriptor_description\", \"_UI_MPublishNewMp3Step_podcastSubtitleParameter_feature\", \"_UI_MPublishNewMp3Step_type\"),\r\n\t\t\t\t LogicPackage.Literals.MPUBLISH_NEW_MP3_STEP__PODCAST_SUBTITLE_PARAMETER,\r\n\t\t\t\t false,\r\n\t\t\t\t false,\r\n\t\t\t\t false,\r\n\t\t\t\t ItemPropertyDescriptor.GENERIC_VALUE_IMAGE,\r\n\t\t\t\t null,\r\n\t\t\t\t null));\r\n\t}", "public String GetMediaTitle() {\n\t\treturn mediatitle;\n\t}", "@Override\n public void onBindViewHolder(final MyViewHolder holder, final int position) {\n\n final Playlist playlist = mPlayListData.get(position);\n\n // holder.title.setText(playlist.getTitle());\n // loading album cover using Glide library\n\n\n if (pos == 0) {\n holder.thumbnail.setImageDrawable(ContextCompat.getDrawable(mContext,R.drawable.im_ano_2017));\n pos++;\n } else if (pos == 1) {\n holder.thumbnail.setImageDrawable(ContextCompat.getDrawable(mContext,R.drawable.im_ano_2016));\n\n pos++;\n } else if (pos == 2) {\n holder.thumbnail.setImageDrawable(ContextCompat.getDrawable(mContext,R.drawable.im_ano_2015));\n\n pos++;\n }\n\n\n }", "public Playlist(String playListName){\n\tgenresList = new Genre[6];\n\tsongList = new Song[30];\n\tthis.playListName = playListName;\n\t}", "private String addTitle(StringBuilder finalText) {\n\t\t// One Parameter: DisplayName\n\t\tMainController.titleName = parameters[0];\n\t\tStringBuilder tag = new StringBuilder();\n\t\ttag.append(\"|title:\" + parameters[0]);\n\t\treturn tag.toString();\n\t}", "@Override\n\tprotected void initTitle() {\n\t\tsetTitleText(\"所有产品\");\n\t\tsetLeftButton(R.drawable.back, \"保存\",new OnClickMyListener() {\n\t\t\t\n\t\t\t@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\tIntent intent = new Intent();\n\t\t\t\tintent.putExtra(\"alartProductList\", (Serializable)alterProductList);\n\t\t\t\tintent.putExtra(\"addProductList\", (Serializable)addProductList);\n\t\t\t\tintent.putExtra(\"delProductIdList\", (Serializable)delProductIdList);\n\t\t\t\tintent.putExtra(\"currentPosition\", currentPosition);\n\t\t\t\tsetResult(RESULT_SETPRODUCTLIST, intent);\n\t\t\t\tfinish();\n\t\t\t}\n\t\t});\n\t\tsetRightText(\"添加\", new OnClickMyListener() {\n\t\t\t\n\t\t\t@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\tisNewProduct = true;\n\t\t\t\tIntent intent = new Intent(context,AddProductActivity.class);\n\t\t\t\tstartActivityForResult(intent, REQUEST_SETPRODUCTITEM);\n\t\t\t}\n\t\t});\n\t\t\n\t\tproductList = (List<ProductItem>)getIntent().getSerializableExtra(\"productList\");\n\t\talterProductList = (List<ProductItem>)getIntent().getSerializableExtra(\"alterProductList\");\n\t\taddProductList = (List<ProductItem>)getIntent().getSerializableExtra(\"addProductList\");\n\t\tdelProductIdList = (List<String>)getIntent().getSerializableExtra(\"delProductIdList\");\n\t\tcurrentPosition = getIntent().getStringExtra(\"currentPosition\");\n\t}", "@Override\n public View getView(final int position, View convertView, ViewGroup parent) {\n final VodMedia item = getItem(position);\n\n ViewHolder holder;\n if (convertView == null) {\n convertView = View.inflate(context, R.layout.item_singer_song, null);\n holder = new ViewHolder(convertView);\n convertView.setTag(holder);\n } else {\n holder = (ViewHolder) convertView.getTag();\n }\n String Userpic, name, singerName;//歌曲地址,歌曲名,歌手名\n if (item != null) {\n// Userpic = item.getImgAlbumUrl();\n Userpic = null;\n ImageLoader.getImageViewLoad(holder.showimager, Userpic, R.drawable.tv_mv);\n name = item.getSongName();\n singerName = item.getSinger();\n songId = item.getSongbm();\n// musicType = item.getType();\n musicType = \"video\";\n\n try {\n double filesize = FileUtil.getFileOrFilesSize(item.getPath(), 3);\n java.text.DecimalFormat df = new java.text.DecimalFormat(\"#.#\");\n// holder.file_size.setText(\"(\" + df.format(filesize) + \"M)\");\n String size = df.format(filesize);\n if (size != null && !size.equals(\"\") && !size.equals(\"0\")) {\n holder.sizeTv.setText(\"(\" + size + \"M)\");\n } else {\n holder.sizeTv.setText(R.string.fileSize);\n }\n } catch (Exception e) {\n e.printStackTrace();\n }\n if (name != null) {\n holder.tvSong.setText(name);\n }\n if (singerName != null) {\n holder.tvSinger.setText(singerName);\n }\n// if (\"video\".equals(songList.get(position).getType())) {\n holder.tag.setText(R.string.ktv_tag);\n// }else {\n// holder.tag.setText(R.string.mp3_tag);\n// }\n try {\n int num = Integer.parseInt(item.getCloudPlay(), 0);\n SongDataNumb.shownum2view(num, holder.playedNum);//点播量\n } catch (Exception e) {\n e.printStackTrace();\n }\n }\n// int statue = isDownloadList.get(position);\n//\n// isDownloadList.put(position, statue);\n holder.showimager.setOnClickListener(new OnClickListener() {// home_choose_song1/听歌\n\n @Override\n public void onClick(View arg0) {\n excuterQXRItem(1, position, songList);\n\n }\n });\n// holder.playedNum.setText(item.getName());//收听量\n// try {\n// SongDataNumb.shownum2view(Integer.parseInt(item.getName()), holder.playedNum);//收听数 tv_listen_count\n// }catch (Exception e){\n// e.printStackTrace();\n// }\n holder.statueTv.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n if (isDownloadList.get(position) == 3) {//练歌\n excuterQXRItem(2, position, songList);\n } else if (isDownloadList.get(position) == 1) {//取消等待\n excuterQXRItem(5, position, songList);\n } else {//下载\n excuterQXRItem(3, position, songList);\n }\n }\n });\n holder.flikerProgressBar.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n excuterQXRItem(4, position, null);\n }\n });\n return convertView;\n }", "private void createYourListsTitle() {\n\t\tjlYourLists = new JLabel(\"PLAYLISTS\");\t\t\n\t\tjlYourLists.setFont(new java.awt.Font(\"Century Gothic\",0, 17));\n\t\tjlYourLists.setForeground(new Color(250,250,250));\n\t}", "@Override\n \tpublic String toString() {\n \t\treturn title;\n \t}", "public String toString() {\r\n return this.title + \" by \" + this.artist;\r\n }", "String getDisplay_description();", "public void listSong(int index)\n {\n SimpleDateFormat formatDate = new SimpleDateFormat(\"yyyy.MM.dd\");\n System.out.println(\"file: \" + songs.get(index).getFile() + \" | \" +\n \"singer: \" + songs.get(index).getSinger() + \" | \" +\n \"release date: \" + formatDate.format( songs.get(index).getReleaseDate() ) );\n }", "public interface OnPlaylistPreparedListener {\n void OnPlaylistPrepared (ArrayList<Object> autoGeneratedPlaylistMetaDataHashMap, ArrayList<PlaylistMetaData> userGeneratedPlaylistMetaDataHashMap);\n}", "@Override\n\t protected YoutubePlaylist doInBackground(YoutubePlaylist... playlists) {\n\t \t YouTube youtube = new YouTube.Builder(transport, jsonFactory,\n\t\t\t\t\t\tcredential).setApplicationName(Constants.APP_NAME)\n\t\t\t\t\t\t.build();\n\t \t \n\t \t ResourceId resourceId = new ResourceId();\n\t \t resourceId.setKind(\"youtube#video\");\n\t \t resourceId.setVideoId(videoId);\n\t \t \n\t \t PlaylistItemSnippet playlistItemSnippet = new PlaylistItemSnippet();\n\t \t playlistItemSnippet.setPlaylistId(playlists[0].getListId());\n\t \t playlistItemSnippet.setResourceId(resourceId);\n\t \t \n\t \t PlaylistItem playlistItem = new PlaylistItem();\n\t \t playlistItem.setSnippet(playlistItemSnippet);\n\t \t \n\t \t PlaylistItem returnedPlaylistItem = null;\n\t \t \n\t\t try {\n\t\t\t\t\treturnedPlaylistItem = youtube.playlistItems().insert(\"snippet,contentDetails\", playlistItem).execute();\n\t\t\t } catch (IOException e) {\n\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\te.printStackTrace();\n\t\t\t }\n\t \t \n\t\t if (returnedPlaylistItem!=null){\n\t\t \t return playlists[0];\n\t\t }else{\n\t\t \t return null;\n\t\t }\n\t }", "@Override\n public String toString() {\n return this.caption;\n }", "public void addPlaylistSong(int playlist_id, String song_id) {\n SQLiteDatabase db = this.getWritableDatabase();\n\n ContentValues values = new ContentValues();\n values.put(KEY_HOST, host);\n values.put(KEY_PLAYLIST_ID, playlist_id);\n values.put(KEY_SONG_ID, song_id);\n\n long insertedId = db.insert(TABLE_PLAYLIST_SONG, null, values);\n db.close(); // Closing database connection\n }" ]
[ "0.6216823", "0.6148112", "0.5917581", "0.5906783", "0.5768484", "0.57216305", "0.5696869", "0.56568974", "0.5638026", "0.55705565", "0.55697453", "0.5555814", "0.55330104", "0.55261433", "0.55219907", "0.54791737", "0.5453971", "0.5442871", "0.54369164", "0.53826946", "0.5351472", "0.53146863", "0.5311848", "0.53057885", "0.5285389", "0.5279439", "0.52781326", "0.52753067", "0.5271886", "0.5265911", "0.5254358", "0.524068", "0.5233804", "0.5230388", "0.5228787", "0.52177703", "0.5216845", "0.521382", "0.52110684", "0.5204322", "0.5197626", "0.5185762", "0.51785207", "0.5171495", "0.51622397", "0.51558906", "0.51380885", "0.5132279", "0.51272273", "0.5117034", "0.51147175", "0.5110877", "0.5109689", "0.51076025", "0.5098841", "0.5095402", "0.5095047", "0.5090924", "0.5090866", "0.5088874", "0.5084354", "0.50781757", "0.5077549", "0.5068585", "0.50630534", "0.5044206", "0.5040387", "0.503499", "0.5032951", "0.5014082", "0.5013041", "0.5012781", "0.5011857", "0.50068194", "0.5003292", "0.4998016", "0.49967283", "0.4995623", "0.49799317", "0.49796543", "0.49711794", "0.49690095", "0.49678788", "0.49563757", "0.49537358", "0.4947701", "0.49473956", "0.49423143", "0.49382386", "0.49377275", "0.4936695", "0.49364313", "0.49304995", "0.49295333", "0.49292743", "0.49285954", "0.49234518", "0.49213716", "0.49202263", "0.4916396", "0.49085256" ]
0.0
-1
TODO Change to check event only if new window is created
@TargetApi(Build.VERSION_CODES.JELLY_BEAN_MR2) @Override public void onAccessibilityEvent(AccessibilityEvent event) { int eventType = event.getEventType(); Log.i(TAG, "UI event detected!" + getEventText(eventType) + " from " + event.getPackageName()); if (eventType == AccessibilityEvent.TYPE_WINDOW_STATE_CHANGED) { if (event.getPackageName() != null && event.getClassName() != null) { ComponentName componentName = new ComponentName( event.getPackageName().toString(), event.getClassName().toString() ); ActivityInfo activityInfo = tryGetActivity(componentName); boolean isActivity = activityInfo != null; if (isActivity) { Log.i("CurrentActivity", componentName.flattenToShortString()); } } } AccessibilityNodeInfo nodeInfo = event.getSource(); if (nodeInfo == null) { return; } LayoutData layoutData = new LayoutData(); layoutData.setPkg(event.getPackageName().toString()); if (eventType == AccessibilityEvent.TYPE_VIEW_CLICKED) { String eventText = getEventText(eventType); ContentValues values = new ContentValues(); values.put(MyContentProvider.LAYOUT_DATA, eventText); getContentResolver().delete(EVENT_TYPE_CONTENT_URI, null, null); Uri uri = getContentResolver().insert(EVENT_TYPE_CONTENT_URI, values); Log.w(TAG, "Event type " + eventText + " stored: " + uri); getContentResolver().delete(WHO_CONTENT_URI, null, null); // TODO Insert Relative position of the node at the layout values = new ContentValues(); // Make sure we're running on JELLY_BEAN or higher to use getRid APIs if (Build.VERSION.SDK_INT > Build.VERSION_CODES.JELLY_BEAN) { try { values.put(MyContentProvider.LAYOUT_DATA, nodeInfo.getViewIdResourceName()); Log.w(TAG, "Rid: " + nodeInfo.getViewIdResourceName()); if (nodeInfo.getViewIdResourceName() == null || nodeInfo.getViewIdResourceName().isEmpty()) { Log.w(TAG, "Empty rid!"); } else { uri = getContentResolver().insert(WHO_CONTENT_URI, values); Log.w(TAG, "Who stored: " + uri); } } catch (Exception e) { e.printStackTrace(); } } } Log.i(TAG, "Examine current page..."); AccessibilityNodeInfo rootNode = getRootInActiveWindow(); try { DocumentBuilderFactory docFactory = DocumentBuilderFactory.newInstance(); DocumentBuilder docBuilder = docFactory.newDocumentBuilder(); // root elements Document doc = docBuilder.newDocument(); Element rootElement = doc.createElement("hierarchy"); doc.appendChild(rootElement); checkNodeInfo(rootNode, doc, rootElement, layoutData.getTexts()); if (toXml) { // write the content into xml file TransformerFactory transformerFactory = TransformerFactory.newInstance(); Transformer transformer = transformerFactory.newTransformer(); DOMSource source = new DOMSource(doc); // FIXME Correct the path //StreamResult result = new StreamResult( //new File(Environment.getExternalStorageDirectory().getAbsolutePath() + // "/COSMOS/" + "test.xml")); // Output to console for testing /* StreamResult result = new StreamResult(System.out); transformer.transform(source, result); Log.w(TAG, result.getOutputStream().toString());*/ try { StringWriter writer = new StringWriter(); StreamResult result = new StreamResult(writer); // TransformerFactory tFactory = TransformerFactory.newInstance(); // Transformer transformer = tFactory.newTransformer(); transformer.transform(source, result); String strResult = writer.toString(); Log.i(TAG, "XML: " + strResult); ContentValues values = new ContentValues(); values.put(MyContentProvider.LAYOUT_DATA, strResult); getContentResolver().delete(LAYOUT_CONTENT_URI, null, null); Uri uri = getContentResolver().insert(LAYOUT_CONTENT_URI, values); Log.i(TAG, "Layout XML stored: " + uri); //MainApplication.write2FileExternally("layout.xml", strResult); } catch (Exception e) { e.printStackTrace(); } } else { StringBuilder stringBuilder = new StringBuilder(); for (String text : layoutData.getTexts()) { stringBuilder.append(text + ";"); } Log.i(TAG, "Texts: " + stringBuilder.toString()); //ContentValues values = new ContentValues(); //values.put(MyContentProvider.LAYOUT_DATA, stringBuilder.toString()); File cacheDir = getCacheDir(); File outFile = new File(cacheDir, "layout.data"); try { FileOutputStream fileOutputStream = new FileOutputStream(outFile); ObjectOutputStream os = new ObjectOutputStream(fileOutputStream); os.writeObject(layoutData); os.close(); Log.i(TAG, "layoutData saved."); } catch (IOException e) { e.printStackTrace(); } } } catch (ParserConfigurationException | TransformerException pce){ pce.printStackTrace(); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void windowOpened(WindowEvent e) {\n \n }", "@Override public void windowOpened(WindowEvent evt) { }", "@Override public void windowOpened(WindowEvent evt) { }", "@Override\r\n public void windowOpened(WindowEvent e) {\n }", "@Override\n public void windowOpened(WindowEvent e) {\n }", "@Override\n public void windowOpened(WindowEvent e) {\n }", "@Override\n public void windowOpened(WindowEvent e) {\n }", "@Override\n public void windowOpened(WindowEvent e) {\n }", "@Override\n public void windowOpened(WindowEvent e) {\n }", "@Override\n public void windowOpened(WindowEvent e) {\n }", "@Override\n public void windowOpened(WindowEvent e) {\n }", "@Override\n public void windowOpened(WindowEvent e) {\n }", "@Override\n public void windowOpened(WindowEvent e) {\n }", "@Override\n public void windowOpened(WindowEvent e) {\n }", "@Override\n public void windowOpened(WindowEvent e) {\n }", "@Override\n public void windowOpened(WindowEvent e) {\n }", "@Override\n public void windowOpened(WindowEvent e) {\n }", "@Override\n public void windowOpened(WindowEvent e) {\n }", "@Override\n public void windowOpened(WindowEvent e) {\n }", "@Override\n public void windowOpened(WindowEvent e) {\n }", "@Override\n public void windowOpened(WindowEvent e) {\n }", "@Override\n public void windowOpened(WindowEvent e) {\n }", "@Override\n public void windowOpened(WindowEvent e) {\n }", "@Override\n public void windowOpened(WindowEvent e) {\n }", "@Override\n public void windowOpened(WindowEvent e) {\n }", "@Override\n public void windowOpened(WindowEvent e)\n {\n\n }", "@Override\n\t\t\tpublic void windowOpened(WindowEvent e) {\n\t\t\t\t\n\t\t\t}", "@Override\n\t\t\tpublic void windowOpened(WindowEvent e) {\n\t\t\t\t\n\t\t\t}", "@Override\n\t\t\tpublic void windowOpened(WindowEvent e) {\n\t\t\t\t\n\t\t\t}", "@Override\n\t\t\tpublic void windowOpened(WindowEvent e) {\n\t\t\t\t\n\t\t\t}", "@Override\n\t\tpublic void windowOpened(WindowEvent e) {\n\t\t\t\n\t\t}", "@Override\n\tpublic void windowOpened(WindowEvent e) {\n\t}", "@Override\r\n\tpublic void windowOpened(WindowEvent e) {\n\t\t\r\n\t}", "@Override\r\n\tpublic void windowOpened(WindowEvent e) {\n\t\t\r\n\t}", "@Override\r\n\tpublic void windowOpened(WindowEvent e) {\n\t\t\r\n\t}", "@Override\r\n\tpublic void windowOpened(WindowEvent e) {\n\t\t\r\n\t}", "@Override\r\n\tpublic void windowOpened(WindowEvent e) {\n\t\t\r\n\t}", "public void windowOpened(WindowEvent e) { }", "@Override\n\tpublic void windowOpened(WindowEvent e) {\n\t\t\n\t}", "@Override\n\tpublic void windowOpened(WindowEvent e) {\n\t\t\n\t}", "@Override\n\tpublic void windowOpened(WindowEvent e) {\n\t\t\n\t}", "@Override\n\tpublic void windowOpened(WindowEvent e) {\n\t\t\n\t}", "@Override\n\tpublic void windowOpened(WindowEvent e) {\n\t\t\n\t}", "@Override\n\tpublic void windowOpened(WindowEvent e) {\n\t\t\n\t}", "@Override\n\tpublic void windowOpened(WindowEvent e) {\n\t\t\n\t}", "@Override\n\tpublic void windowOpened(WindowEvent e) {\n\n\t}", "@Override\n\tpublic void windowOpened(WindowEvent e) {\n\n\t}", "@Override\n\tpublic void windowOpened(WindowEvent e) {\n\n\t}", "@Override\n\tpublic void windowOpened(WindowEvent e) {\n\n\t}", "@Override\n\tpublic void windowOpened(WindowEvent e) {\n\n\t}", "@Override\r\n\t\t\tpublic void windowOpened(WindowEvent e) {\n\t\t\t\t\r\n\t\t\t}", "@Override\r\n\t\t\tpublic void windowOpened(WindowEvent e) {\n\t\t\t\t\r\n\t\t\t}", "@Override\n public void windowOpened(WindowEvent we) {\n }", "@Override\r\n\t\tpublic void windowOpened(WindowEvent e) {\n\t\t\t\r\n\t\t}", "public void windowOpened(WindowEvent event) { }", "@Override\n\t\t\t\tpublic void windowOpened(WindowEvent e) {\n\n\t\t\t\t}", "@Override\n\t\t\t\tpublic void windowOpened(WindowEvent e) {\n\n\t\t\t\t}", "@Override\n\t\t\t\tpublic void windowOpened(WindowEvent e) {\n\n\t\t\t\t}", "@Override\n\t\t\t\tpublic void windowOpened(WindowEvent e) {\n\n\t\t\t\t}", "@Override\n\tpublic void windowOpened(WindowEvent e)\n\t{\n\n\t}", "@Override\n\t\t\tpublic void windowOpened(WindowEvent e) {\n\n\t\t\t}", "@Override\n\t\t\tpublic void windowOpened(WindowEvent e) {\n\n\t\t\t}", "public void windowOpened(WindowEvent e) {\n\r\n\t}", "public void windowOpened(WindowEvent e) {\n\t}", "@Override\n\tpublic void windowOpened(WindowEvent e) {\n\t\t\n\t\t\n\t}", "@Override\n\t\t\tpublic void windowOpened(WindowEvent arg0) {\n\t\t\t\t\n\t\t\t}", "@Override\n\tpublic void windowOpened( WindowEvent e ) {\n\t\t\n\t}", "public void windowCreated()\n {\n return;\n }", "@Override\n\t\tpublic void windowOpened(WindowEvent arg0) {\n\t\t\t\n\t\t}", "@Override\n\t\t\tpublic void windowActivated(WindowEvent e) {\n\t\t\t\t\n\t\t\t}", "@Override\n\t\t\tpublic void windowActivated(WindowEvent e) {\n\t\t\t\t\n\t\t\t}", "@Override\n\t\t\tpublic void windowActivated(WindowEvent e) {\n\t\t\t\t\n\t\t\t}", "@Override\n\t\t\tpublic void windowActivated(WindowEvent e) {\n\t\t\t\t\n\t\t\t}", "@Override\n\t\t\tpublic void windowActivated(WindowEvent e) {\n\t\t\t\t\n\t\t\t}", "@Override\n\tpublic void windowOpened(WindowEvent arg0) {\n\t\t\n\t}", "@Override\n\tpublic void windowOpened(WindowEvent arg0) {\n\t\t\n\t}", "@Override\n\tpublic void windowOpened(WindowEvent arg0) {\n\t\t\n\t}", "@Override\n\tpublic void windowOpened(WindowEvent arg0) {\n\t\t\n\t}", "@Override\n\tpublic void windowOpened(WindowEvent arg0) {\n\t\t\n\t}", "@Override\n\tpublic void windowOpened(WindowEvent arg0) {\n\n\t}", "@Override\r\n\tpublic void windowOpened(WindowEvent arg0) {\n\t\t\r\n\t}", "@Override\r\n\tpublic void windowOpened(WindowEvent arg0) {\n\t\t\r\n\t}", "@Override\r\n\tpublic void windowOpened(WindowEvent arg0) {\n\t\t\r\n\t}", "@Override\r\n\tpublic void windowOpened(WindowEvent arg0) {\n\t\t\r\n\t}", "@Override\r\n\tpublic void windowOpened(WindowEvent arg0) {\n\t\t\r\n\t}", "@Override\r\n\tpublic void windowOpened(WindowEvent arg0) {\n\t\t\r\n\t}", "@Override\r\n\tpublic void windowOpened(WindowEvent arg0) {\n\t\t\r\n\t}", "public void windowActivated(WindowEvent event) {}", "@Override\r\n public void windowActivated(WindowEvent e) {\r\n\r\n }", "@Override\r\n\t\t\tpublic void windowOpened(WindowEvent arg0) {\n\t\t\t\t\r\n\t\t\t}", "public void windowOpened (WindowEvent we) { }", "@Override\n public void windowActivated(WindowEvent e)\n {\n\n }", "@Override\n\tpublic void windowOpened(WindowEvent arg0)\n\t{\n\t\t\n\t}", "@Override\n\tpublic void windowOpened(WindowEvent arg0)\n\t{\n\t\t\n\t}", "public void windowActivated(WindowEvent event)\n {\n\n\n }", "@Override\n public void windowActivated(WindowEvent e) {\n }", "@Override\n public void windowActivated(WindowEvent e) {\n }", "@Override\n public void windowActivated(WindowEvent e) {\n }", "@Override\n public void windowActivated(WindowEvent e) {\n }", "@Override\n public void windowActivated(WindowEvent e) {\n }", "@Override\n public void windowActivated(WindowEvent e) {\n }" ]
[ "0.69724286", "0.6960897", "0.6960897", "0.69043654", "0.6892428", "0.6892428", "0.6892428", "0.6892428", "0.6892428", "0.6892428", "0.6892428", "0.6892428", "0.6892428", "0.6892428", "0.6892428", "0.6892428", "0.6892428", "0.6892428", "0.6892428", "0.6892428", "0.6892428", "0.6892428", "0.6892428", "0.6892428", "0.6892428", "0.6889642", "0.68799424", "0.68799424", "0.68799424", "0.68799424", "0.68597615", "0.68381983", "0.68355775", "0.68355775", "0.68355775", "0.68355775", "0.68355775", "0.68280876", "0.68155324", "0.68155324", "0.68155324", "0.68155324", "0.68155324", "0.68155324", "0.68155324", "0.6813996", "0.6813996", "0.6813996", "0.6813996", "0.6813996", "0.68073934", "0.68073934", "0.6799862", "0.6798043", "0.6797849", "0.67859346", "0.67859346", "0.67859346", "0.67859346", "0.6777517", "0.677501", "0.677501", "0.67648095", "0.6762636", "0.6743497", "0.6731566", "0.6712121", "0.67102206", "0.6687488", "0.66460943", "0.66460943", "0.66460943", "0.66460943", "0.66460943", "0.6627595", "0.6627595", "0.6627595", "0.6627595", "0.6627595", "0.6618621", "0.660973", "0.660973", "0.660973", "0.660973", "0.660973", "0.660973", "0.660973", "0.66035414", "0.6601301", "0.65928024", "0.6590116", "0.6588635", "0.65874887", "0.65874887", "0.65872526", "0.6582104", "0.6582104", "0.6582104", "0.6582104", "0.6582104", "0.6582104" ]
0.0
-1
TODO Autogenerated method stub
@Override public void onInterrupt() { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExras() {\n\n\t}", "@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}", "@Override\n\tpublic void entrenar() {\n\t\t\n\t}", "@Override\n\tpublic void nadar() {\n\t\t\n\t}", "@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}", "@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}", "@Override\n\tprotected void interr() {\n\t}", "@Override\n\tpublic void emprestimo() {\n\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "@Override\n\tpublic void gravarBd() {\n\t\t\n\t}", "@Override\r\n\tpublic void rozmnozovat() {\n\t}", "@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}", "@Override\n protected void getExras() {\n }", "@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}", "@Override\n\tpublic void nefesAl() {\n\n\t}", "@Override\n\tpublic void ligar() {\n\t\t\n\t}", "@Override\n public void func_104112_b() {\n \n }", "@Override\n\tprotected void initdata() {\n\n\t}", "@Override\n\tpublic void nghe() {\n\n\t}", "@Override\n public void function()\n {\n }", "@Override\n public void function()\n {\n }", "public final void mo51373a() {\n }", "@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}", "@Override\n public void inizializza() {\n\n super.inizializza();\n }", "@Override\n\tprotected void initData() {\n\t\t\n\t}", "@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}", "@Override\n\tpublic void sacrifier() {\n\t\t\n\t}", "@Override\r\n\tprotected void InitData() {\n\t\t\r\n\t}", "public void designBasement() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}", "public void gored() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\r\n\t}", "@Override\n\tpublic void einkaufen() {\n\t}", "@Override\n protected void initialize() {\n\n \n }", "public void mo38117a() {\n }", "@Override\n\tprotected void getData() {\n\t\t\n\t}", "Constructor() {\r\n\t\t \r\n\t }", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\n\tpublic void one() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "private stendhal() {\n\t}", "@Override\n\tprotected void update() {\n\t\t\n\t}", "@Override\n\t\t\tpublic void ic() {\n\t\t\t\t\n\t\t\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n public void init() {\n\n }", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\n\tpublic void debite() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "public contrustor(){\r\n\t}", "@Override\n\tprotected void initialize() {\n\n\t}", "@Override\r\n\tpublic void dispase() {\n\r\n\t}", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "@Override\n\tpublic void dtd() {\n\t\t\n\t}", "@Override\n\tprotected void logic() {\n\n\t}", "@Override\n\tprotected void lazyLoad() {\n\t\t\n\t}", "public void mo4359a() {\n }", "@Override\r\n\tprotected void initialize() {\n\r\n\t}", "@Override\n public void memoria() {\n \n }", "@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}", "private RepositorioAtendimentoPublicoHBM() {\r\t}", "@Override\n protected void initialize() \n {\n \n }", "@Override\r\n\tpublic void getProposition() {\n\r\n\t}", "@Override\n\tpublic void particular1() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n protected void prot() {\n }", "@Override\r\n\tpublic void init()\r\n\t{\n\t}", "@Override\n\tprotected void initValue()\n\t{\n\n\t}", "public void mo55254a() {\n }" ]
[ "0.6671074", "0.6567672", "0.6523024", "0.6481211", "0.6477082", "0.64591026", "0.64127725", "0.63762105", "0.6276059", "0.6254286", "0.623686", "0.6223679", "0.6201336", "0.61950207", "0.61950207", "0.61922914", "0.6186996", "0.6173591", "0.61327106", "0.61285484", "0.6080161", "0.6077022", "0.6041561", "0.6024072", "0.6020252", "0.59984857", "0.59672105", "0.59672105", "0.5965777", "0.59485507", "0.5940904", "0.59239364", "0.5910017", "0.5902906", "0.58946234", "0.5886006", "0.58839184", "0.58691067", "0.5857751", "0.58503544", "0.5847024", "0.58239377", "0.5810564", "0.5810089", "0.5806823", "0.5806823", "0.5800025", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5790187", "0.5789414", "0.5787092", "0.57844025", "0.57844025", "0.5774479", "0.5774479", "0.5774479", "0.5774479", "0.5774479", "0.5761362", "0.57596046", "0.57596046", "0.575025", "0.575025", "0.575025", "0.5747959", "0.57337177", "0.57337177", "0.57337177", "0.5721452", "0.5715831", "0.57142824", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.5711723", "0.57041645", "0.56991017", "0.5696783", "0.56881124", "0.56774884", "0.56734604", "0.56728", "0.56696945", "0.5661323", "0.5657007", "0.5655942", "0.5655942", "0.5655942", "0.56549734", "0.5654792", "0.5652974", "0.5650185" ]
0.0
-1
The constructor for the MicrocontrollerProperties class creates a new instance with the specified register size, flash size, etc. All such fields are immutable, and the pin assignments and IO register assignments cannot be changed.
public MicrocontrollerProperties(int is, int ss, int fs, int es, int np, int ni, CodeSegment.Factory csf, HashMap pa, RegisterLayout rl, HashMap inta) { ioreg_size = is; sram_size = ss; flash_size = fs; eeprom_size = es; num_pins = np; num_interrupts = ni; codeSegmentFactory = csf; ioreg_name = new String[is]; interrupt_name = new String[ni]; pinAssignments = pa; layout = rl; interruptAssignments = inta; initIORNames(); initInterruptNames(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public AVRMemory()\n {\n super(32, 256, 4096, 65535);\n }", "public Property(int xLength, int yWidth, int xLeft, int yTop, int regNum) {\n setXLength(xLength);\n setYWidth(yWidth);\n setXLeft(xLeft);\n setYTop(yTop);\n setRegNum(regNum);\n }", "public MicroConfiguration() {\n this(\n System.getProperty(\"piranha.version\", MicroConfiguration.class.getPackage().getImplementationVersion()),\n System.getProperty(\"piranha.extensions\", \"micro-core,micro\"),\n System.getProperty(\"piranha.dependencies\", \"\"),\n System.getProperty(\"piranha.repositories\", \"https://repo1.maven.org/maven2\"),\n Boolean.valueOf(System.getProperty(\"piranha.offline\", \"false\")),\n Integer.valueOf(System.getProperty(\"piranha.port\", \"8080\")),\n System.getProperty(\"piranha.root\"),\n System.getProperty(\"piranha.http.server\", \"impl\"),\n\n\n null,\n null,\n null);\n }", "public ScaleInformation() {\n\t\tthis(0.0, 0.0, 800.0, 540.0, 800, 540);\n\t}", "public DimensionProperties() {\n }", "public Property(int xLength, int yWidth, int xLeft, int yTop) {\n this(xLength, yWidth, xLeft, yTop, DEFAULT_REGNUM);\n }", "public BareMetalMachinePowerOffParameters() {\n }", "public Property() {\n this(0, 0, 0, 0);\n }", "public ApplicationResourceProperties() {\n }", "public ModbusRegisterInfo()\n {\n // set default\n this.requestGapMillis = ModbusInfo.DEFAULT_REQUEST_GAP_MILLIS;\n this.requestTimeoutMillis = ModbusInfo.DEFAULT_REQUEST_TIMEOUT_MILLIS;\n }", "public Property(Property prop, int regNum) {\n // this code provided by Dave Houtman [2020] personal communication\n this(prop.getXLength(), prop.getYWidth(), prop.getXLeft(), prop.getYTop(), regNum);\n }", "public ScreenMonitor(){\n this(Configuration.SCREEN_MONITOR_UPDATE_DELAY,\n\t \t\tConfiguration.SCREEN_MONITOR_LOGS_SIZE, \n\t \t\tConfiguration.SCREEN_MONITOR_LINE_SEPERATOR,\n\t \t\tConfiguration.SCREEN_MONITOR_DATA_MEMORY,\n\t \t\tConfiguration.SCREEN_MONITOR_DATA_POWER);\n }", "public MaintenanceWindowsProperties() {\n }", "private TerminalProperties() {\n this(new TerminalPropertiesBuilder());\n }", "public PlugwiseMQTTDeviceInfo()\n\t{\n\t\t// initialize internal variables\n\t\tthis.macAddress = \"\";\n\t\tthis.type = \"circle\";\n\t}", "@Override\n\n // <editor-fold defaultstate=\"collapsed\" desc=\" UML Marker \"> \n // #[regen=yes,id=DCE.E1700BD9-298C-DA86-4BFF-194B41A6CF5E]\n // </editor-fold> \n protected String getProperties() {\n\n return \"Size = \" + size + \", Index = \" + value;\n\n }", "private LSLRComponentProperties(final String resourceName) {\n this.resourceName = resourceName;\n }", "public RolandMT32RhythmSetupTempDriver() {\n super(\"Rhythm Setup Temp\", \"Fred Jan Kraan\");\n sysexID = \"F041**16\";\n patchSize = HSIZE + SSIZE + 1;\n patchNameStart = 0;\n patchNameSize = 0;\n deviceIDoffset = 0;\n checksumStart = 5;\n checksumEnd = 10;\n checksumOffset = 0;\n bankNumbers = new String[] {\n \"\" };\n patchNumbers = new String[] {\n \"\" };\n }", "public Platform()\n\t{\n\t\t//Add code to scale image here\n\t\tgetImage().scale(100, 16);\n\t}", "public MyMemory(int size){\n super(size);\n printSize();\n loadMemory(); //loads memory with instructions to be executed during the instruction cycle\n }", "public ManagedHsmProperties() {\n }", "public ElectricShower() {\r\n\t\tthis(12, 0, 4);\r\n\t}", "public PropertyInfo(byte epc, boolean readable, boolean writable, boolean notifies, int size, byte[] data) {\n this.epc = epc;\n this.readable = readable;\n this.writable = writable;\n this.notifies = notifies;\n this.size = size;\n this.data = data;\n }", "public ComponentDescriptor() {\r\n\t\t// initialize empty collections\r\n\t\tconstructorParametersTypes = new LinkedList<List<Class<?>>>();\r\n//\t\trequiredProperties = new HashMap<String, MetaProperty>();\r\n//\t\toptionalProperties = new HashMap<String, MetaProperty>();\r\n\t}", "public NetworkDevicePatchParameters() {\n }", "public Rectangle() {\n super();\n properties = new HashMap<String, Double>();\n properties.put(\"Width\", null);\n properties.put(\"Length\", null);\n }", "public Television(String Brand, int size)\r\n {\r\n Manufacturer = Brand;\r\n SCREEN_SIZE = size;\r\n powerOn = false;\r\n volume = 20;\r\n channel = 2;\r\n }", "public ApplicationDefinitionProperties() {\n }", "public Properties() \r\n\t{\r\n\t\tsuper();\r\n\t\tthis.port = 1234;\r\n\t\tthis.ip = \"127.0.0.1\";\r\n\t}", "public ResourceConfiguration(String name, String namespace, Map properties) {\n this.name = name;\n this.namespace = namespace;\n \n if (properties == null) {\n this.properties = new HashMap();\n } else {\n this.properties = properties;\n }\n }", "public Properties(){\n\n }", "public Map(int size_pixels, double size_meters) {\n this.init(size_pixels, size_meters);\n\n // for public accessor\n this.size_meters = size_meters;\n }", "public MemoryInfo(com.google.appinventor.components.runtime.ComponentContainer r7) {\n /*\n r6 = this;\n r1 = r6\n r2 = r7\n r3 = r1\n r4 = r2\n com.google.appinventor.components.runtime.Form r4 = r4.$form()\n r3.<init>(r4)\n r3 = r1\n r4 = 1048576(0x100000, double:5.180654E-318)\n r3.hxYOFxFjLpN1maJuWNxUV40nExCGxsxkDPOTgtzMu4zlZCQb3bPlKsXo1SYJg6ME = r4\n r3 = r1\n r4 = r2\n android.app.Activity r4 = r4.$context()\n r3.context = r4\n r3 = r1\n r4 = r2\n r3.container = r4\n return\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.google.appinventor.components.runtime.MemoryInfo.<init>(com.google.appinventor.components.runtime.ComponentContainer):void\");\n }", "public NodePropertiesInternalFrame(Map<String, String> _info, String _nodeName, IConfigurerPrx _config) {\n initComponents();\n this.setClosable(true);\n this.setTitle(_nodeName + \" - properties\");\n initInfo(_info);\n config = _config;\n }", "public Thermometer(Person person){\r\n super(person);\r\n temperature = new MeasureUnit(\"Celsius\",\"º C\", 1);\r\n }", "public Temperature() {\n\t\tsuper();\n\t}", "public void setupProperties() {\n // left empty for subclass to override\n }", "public Resource() {\n\t\tsuper();\n\t\tfor (int i = 0; i < chopsticks.length; i++) {\n\t\t\tchopsticks[i] = 1;\n\t\t}\n\t}", "public Property(int location, String name, int group, int[] rent, boolean canBuild, int[] costs, Board myBoard) {\n type = Tile.Type.PROPERTY;\n this.location = location;\n this.name = name;\n this.groupName = group;\n this.rent = rent;\n this.canBuild = canBuild;\n this.costs = costs;\n owner = null;\n this.myBoard = myBoard;\n }", "public Computer() {\n\t\tmPC = new BitString();\n\t\tmPC.setValue(0);\n\t\tmIR = new BitString();\n\t\tmIR.setValue(0);\n\t\tmCC = new BitString();\n\t\tmCC.setBits(new char[] { '0', '0', '0' });\n\t\tmRegisters = new BitString[MAX_REGISTERS];\n\t\tfor (int i = 0; i < MAX_REGISTERS; i++) {\n\t\t\tmRegisters[i] = new BitString();\n\t\t\tmRegisters[i].setValue(i);\n\t\t}\n\n\t\tmMemory = new BitString[MAX_MEMORY];\n\t\tfor (int i = 0; i < MAX_MEMORY; i++) {\n\t\t\tmMemory[i] = new BitString();\n\t\t\tmMemory[i].setValue(0);\n\t\t}\n\t}", "void initProperties()\n\t{\n\t\tpropertyPut(LIST_SIZE, 10);\n\t\tpropertyPut(LIST_LINE, 1);\n\t\tpropertyPut(LIST_MODULE, 1); // default to module #1\n\t\tpropertyPut(COLUMN_WIDTH, 70);\n\t\tpropertyPut(UPDATE_DELAY, 25);\n\t\tpropertyPut(HALT_TIMEOUT, 7000);\n\t\tpropertyPut(BPNUM, 0);\t\t\t\t// set current breakpoint number as something bad\n\t\tpropertyPut(LAST_FRAME_DEPTH, 0);\t\t// used to determine how much context information should be displayed\n\t\tpropertyPut(CURRENT_FRAME_DEPTH, 0); // used to determine how much context information should be displayed\n\t\tpropertyPut(DISPLAY_FRAME_NUMBER, 0); // houses the current frame we are viewing\n\t\tpropertyPut(FILE_LIST_WRAP, 999999); // default 1 file name per line\n\t\tpropertyPut(NO_WAITING, 0);\n\t\tpropertyPut(INFO_STACK_SHOW_THIS, 1); // show this pointer for info stack\n\t}", "private Device buildDevice() {\n Device device = Device.builder()\n .text(Narrative.builder().div(Xhtml.of(\"<div xmlns=\\\"http://www.w3.org/1999/xhtml\\\">Generated</div>\")).status(NarrativeStatus.GENERATED).build())\n .meta(Meta.builder()\n .profile(Canonical.of(\"http://ibm.com/fhir/StructureDefinition/test-device|0.1.0\"))\n .build())\n .statusReason(CodeableConcept.builder().coding(Coding.builder().system(Uri.of(\"http://terminology.hl7.org/CodeSystem/device-status-reason\")).code(Code.of(\"online\")).build()).build())\n .specialization(Specialization.builder()\n .systemType(CodeableConcept.builder().coding(Coding.builder().system(Uri.of(ValidationSupport.BCP_47_URN)).code(Code.of(ENGLISH_US)).build()).build()).build())\n .extension(Extension.builder().url(\"http://ibm.com/fhir/StructureDefinition/test-language-primary-extension\")\n .value(CodeableConcept.builder().coding(Coding.builder().system(Uri.of(ValidationSupport.BCP_47_URN)).code(Code.of(ENGLISH_US)).build()).build()).build(),\n Extension.builder().url(\"http://ibm.com/fhir/StructureDefinition/test-language-secondary-extension\")\n .value(Coding.builder().system(Uri.of(ValidationSupport.BCP_47_URN)).code(Code.of(ENGLISH_US)).build()).build(),\n Extension.builder().url(\"http://ibm.com/fhir/StructureDefinition/test-language-tertiary-extension\")\n .value(Code.of(ENGLISH_US)).build())\n .build();\n return device;\n }", "public\n YutilProperties()\n {\n super(new Properties());\n }", "private mxPropertiesManager()\n\t{\n\t}", "public DepictionParameters() {\n this(200, 150, true, DEFAULT_BACKGROUND);\n }", "public FieldConfiguration(Configuration nearSwitch, Configuration scale, Configuration farSwitch) {\n this.nearSwitch = nearSwitch;\n this.scale = scale;\n this.farSwitch = farSwitch;\n }", "public Cell(int diameterInMicrometers, int growthIncrementInMicrometers) {\n if (diameterInMicrometers < 1\n || diameterInMicrometers > 41\n || growthIncrementInMicrometers < 1\n || growthIncrementInMicrometers > 6\n ) {\n throw new IllegalArgumentException(\"Bacterium size must start between 0 and 40 \" +\n \"and growth increment between 0 and 5\");\n }\n this.diameterInMicrometers = diameterInMicrometers;\n //growth increment can never be changed after construction\n this.growthIncrementInMicrometers = growthIncrementInMicrometers;\n }", "public Size(double width, double height)\r\n {\r\n this.width = width;\r\n this.height = height;\r\n }", "public Computer() {\n\t\tconfiguration = new HashMap<>();\n\t}", "private void initComponents() {\r\n\t\temulator = new Chip8();\r\n\t\tpanel = new DisplayPanel(emulator);\r\n\t\tregisterPanel = new EmulatorInfoPanel(emulator);\r\n\t\t\r\n\t\tcontroller = new Controller(this, emulator, panel, registerPanel);\r\n\t}", "public HwPeripheralFactoryImpl() {\r\n\t\tsuper();\r\n\t}", "public DeviceInfo() {}", "public MemoryImpl(int size) {\n\t\tif (size < 0) {\n\t\t\tthrow new IllegalArgumentException(\"The size of the memory should be greater than 0!\");\n\t\t}\n\t\tmemory = new Object[size];\n\t}", "public void settings() {\n size(640, 384);\n }", "public TemperatureUnit(double width, double height, double length, StorageLocation myLoc, int tempLvl)\n {\n super(width, height, length, myLoc);\n setTempLvl(tempLvl);\n }", "public WaterMeter()\r\n\t{\r\n\t\tsuper(DeviceTypeEnum.WATER_METER);\r\n\t}", "public HiloM() { }", "public JCProjectProperties() {\n this(null);\n }", "public DeviceDescription() {\n //Initialize lists\n this.capabilities = new ArrayList<>();\n this.attachments = new ArrayList<>();\n }", "public MemoryImpl(int size) {\n\t\tif(size < 1) {\n\t\t\tthrow new IllegalArgumentException(\"Memory size can not be lower than 1!\");\n\t\t}\n\t\tthis.memory = new Object[size];\n\t}", "public void initSize() {\n WIDTH = 320;\n //WIDTH = 640;\n HEIGHT = 240;\n //HEIGHT = 480;\n SCALE = 2;\n //SCALE = 1;\n }", "public PDFProperties (){\n\t\tthis.title = DEFAULT_TITLE;\n\t\tthis.subtitle = DEFAULT_SUBTITLE;\n\t\tthis.spacing = DEFAULT_SPACING;\n\t\tthis.elementsize = DEFAULT_ELEMENTSIZE;\n\t\tthis.pagesize = DEFAULT_PAGESIZE;\n\t\tthis.title_fontsize = DEFAULT_TITLE_FONTSIZE;\n\t\tthis.subtitle_fontsize = DEFAULT_SUBTITLE_FONTSIZE;\n\t\tthis.leftmargin = DEFAULT_LEFTMARGIN;\n\t\tthis.rightmargin = DEFAULT_RIGHTMARGIN;\n\t\tthis.measurespace = DEFAULT_MEASURESPACE;\n\t}", "public PixxPanel(PixxConfiguration config)\n {\n _pixxConfiguration=config;\n }", "public RetinaExtractor(AEChip chip) {\r\n super(chip);\r\n }", "public ElectricCar(String mfr, String color, Model model, Vehicle.PowerSource power, \n\t\t double safety, int range, boolean awd, int price, int rch,String batteryType, int VIN)\n{\n\t super(mfr, color, model, Vehicle.PowerSource.ELECTRIC_MOTOR, safety, range, awd, price, VIN);\n\t rechargeTime = rch;\n\t batteryType = \"Lithium\";\n}", "public DriveConfig(double wheelRadiusInches, double gearRatio, double trackWidth, HALDistanceUnit trackWidthUnit, double encoderTicksPerRev, double motorMaxRPM) {\n this(wheelRadiusInches, HALDistanceUnit.INCHES, gearRatio, trackWidth, trackWidthUnit, encoderTicksPerRev, motorMaxRPM);\n }", "public Property(int boardPosition, String name, int value, int rentPrice, int mortgagePrice, int redeemPrice) {\n this.boardPosition = boardPosition;\n this.name = name;\n this.value = value;\n this.rentPrice = rentPrice;\n this.mortgagePrice = mortgagePrice;\n this.isMortgaged = false;\n this.redeemPrice = redeemPrice;\n this.owner = null;\n }", "public ConstantProduct() {\n constProperty = \"constant\";\n constProperty2 = \"constant2\";\n }", "public State(int nRegisters) {\n if(TRACE_REGISTERS) System.out.println(\"Creating State \" + nRegisters);\n this.registers = new Object[nRegisters];\n }", "public FCB1010Driver() {\n super(Constants.FCB1010_PATCH_TYP_STR, Constants.AUTHOR);\n sysexID = Constants.FCB1010_SYSEX_MATCH_ID;\n\n patchSize = Constants.HDR_SIZE + Constants.FCB1010_NATIVE_SIZE + 1;\n deviceIDoffset = Constants.DEVICE_ID_OFFSET;\n bankNumbers = Constants.FCB1010_BANK_LIST;\n patchNumbers = Constants.FCB1010_PATCH_LIST;\n }", "public Size(int w, int h) {\n width = w;\n height = h;\n }", "protected NodeProperties() {\r\n }", "public MyMemory(){\n super();\n this.instruction = new Instruction(); //Only the IR register will use this attribute\n }", "private ResourceSpec() {\n\t\tthis.cpuCores = null;\n\t\tthis.taskHeapMemory = null;\n\t\tthis.taskOffHeapMemory = null;\n\t\tthis.managedMemory = null;\n\t}", "public void initFromResource() {\n String[] hwStrings = Resources.getSystem().getStringArray(17236074);\n if (hwStrings != null) {\n for (String hwString : hwStrings) {\n HardwareConfig hw = new MtkHardwareConfig(hwString);\n if (hw.type == 0) {\n updateOrInsert(hw, mModems);\n } else if (hw.type == 1) {\n updateOrInsert(hw, mSims);\n }\n }\n }\n }", "public void configureDigitalMeter()\n {\n\t\tsetFrameType(RectangularFrameType.RoundedSideThinRim);\n\t\tsetBackground(Color.black);\n\t\tsetCharacterType(DigitalCharacterType.Segment7Trapezoid);\n setCharacterCount(10);\n\t\tsetForeground(Color.WHITE);\n\t\tsetDimmedBrush(Color.black);\n\t\tsetCharacterOverflowAlignment(DigitalCharacterOverflowAlignment.Right);\n setCharacterPadding(1);\n setCharacterSpacing(1);\n\t\tsetItalic(false);\n }", "public Component() {\n\t\tlocation = new Point(0, 0);\n\t\tsize = new Dimension(100, 80);\n\t\tproperties = new LinkedHashMap<>();\n\t\tsubJobContainer= new LinkedHashMap<>();\n\t\tleftPortCount = 0;\n\t\trightPortCount = 0;\n\t\tbottomPortCount = 0;\n\t\tinputLinksHash = new Hashtable<String, ArrayList<Link>>();\n\n\t\tinputLinks = new ArrayList<Link>();\n\t\toutputLinksHash = new Hashtable<String, ArrayList<Link>>();\n\t\toutputLinks = new ArrayList<Link>();\n\t\tinputportTerminals = new ArrayList<String>();\n\t\toutputPortTerminals = new ArrayList<String>();\n\t\twatcherTerminals = new HashMap();\n\t\tnewInstance = true;\n\t\tvalidityStatus = ValidityStatus.WARN.name();\n\t\tcomponentName = DynamicClassProcessor.INSTANCE.getClazzName(this\n\t\t\t\t.getClass());\n\n\t\tcomponentLabel = new ComponentLabel(componentName);\n\t\tcomponentLabelMargin = 16;\n\n\t\tprefix = XMLConfigUtil.INSTANCE.getComponent(componentName)\n\t\t\t\t.getDefaultNamePrefix();\n\t\t\n\t\tdefaultPrefix=XMLConfigUtil.INSTANCE.getComponent(componentName)\n\t\t\t\t.getDefaultNamePrefix();\n\t\tinitPortSettings();\n\t\ttoolTipErrorMessages = new LinkedHashMap<>();\n\t\tstatus = ComponentExecutionStatus.BLANK;\n\t}", "public PhysicalMemory()\n {\n frames = new TreeMap<Long, MemoryFrame>();\n for (int i = 0; i < Const.MEM_FRAMES; i++) {\n MemoryFrame frame = new MemoryFrame(i);\n Long zero = new Long(i);\n frames.put(zero, frame);\n }\n }", "private StorageSystemConfiguration() {\r\n super(IStorageSystemConfiguration.TYPE_ID);\r\n }", "public Television(String brand, int size) {\r\n\t\tMANUFACTURER = brand;\r\n\t\tSCREEN_SIZE = size;\r\n\t\tpowerOn = false;\r\n\t\tvolume = 20;\r\n\t\tchannel = 2;\r\n\t\t// To do - Task 1 step 4\r\n\t}", "public void init(HardwareMap ahwMap) {\n // Save reference to Hardware map\n hwMap = ahwMap;\n\n // Define and Initialize Motors\n// leftRearMotor = hwMap.dcMotor.get(\"left_rear_drive\");\n// rightRearMotor = hwMap.dcMotor.get(\"right_rear_drive\");\n leftFrontMotor = hwMap.dcMotor.get(\"left_front_drive\");\n rightFrontMotor = hwMap.dcMotor.get(\"right_front_drive\");\n// liftMotor = hwMap.dcMotor.get(\"lift_motor\");\n brushMotor = hwMap.dcMotor.get(\"brush_motor\");\n leftSpinMotor = hwMap.dcMotor.get(\"left_spin_motor\");\n rightSpinMotor = hwMap.dcMotor.get(\"right_spin_motor\");\n tiltMotor = hwMap.dcMotor.get(\"tilt_motor\");\n\n// rangeSensor = hwMap.get(ModernRoboticsI2cRangeSensor.class, \"range sensor\");\n\n //define and initialize servos\n// loadServo = hwMap.servo.get(\"load_servo\");\n// loadServo.setPosition(BEGIN_SERVO);\n pushServo = hwMap.servo.get(\"push_servo\");\n pushServo.setPosition(MID_SERVO);\n leftLiftServo = hwMap.servo.get(\"left_lift_servo\");\n leftLiftServo.setPosition(MID_SERVO);\n rightLiftServo = hwMap.servo.get(\"right_lift_servo\");\n rightLiftServo.setPosition(MID_SERVO);\n\n //define and initialize buttons\n// bottomTouchButton = hwMap.touchSensor.get(\"bottom_touch_button\");\n// topTouchButton = hwMap.touchSensor.get(\"top_touch_button\");\n\n leftSpinMotor.setDirection(DcMotor.Direction.REVERSE);\n leftFrontMotor.setDirection(DcMotor.Direction.REVERSE); // Set to REVERSE if using AndyMark motors\n rightFrontMotor.setDirection(DcMotor.Direction.FORWARD); // Set to FORWARD if using AndyMark motors\n\n // Set all motors to zero power\n// leftRearMotor.setPower(0);\n// rightRearMotor.setPower(0);\n leftFrontMotor.setPower(0);\n rightFrontMotor.setPower(0);\n// liftMotor.setPower(0);\n brushMotor.setPower(0);\n leftSpinMotor.setPower(0);\n rightSpinMotor.setPower(0);\n tiltMotor.setPower(0);\n\n // Set all motors to run without encoders.\n // May want to use RUN_USING_ENCODERS if encoders are installed.\n// leftRearMotor.setMode(DcMotor.RunMode.RUN_WITHOUT_ENCODER);\n// rightRearMotor.setMode(DcMotor.RunMode.RUN_WITHOUT_ENCODER);\n leftFrontMotor.setMode(DcMotor.RunMode.RUN_WITHOUT_ENCODER);\n rightFrontMotor.setMode(DcMotor.RunMode.RUN_WITHOUT_ENCODER);\n// liftMotor.setMode(DcMotor.RunMode.RUN_WITHOUT_ENCODER);\n brushMotor.setMode(DcMotor.RunMode.RUN_WITHOUT_ENCODER);\n leftSpinMotor.setMode(DcMotor.RunMode.RUN_WITHOUT_ENCODER);\n// rightSpinMotor.setMode(DcMotor.RunMode.RUN_WITHOUT_ENCODER);\n tiltMotor.setMode(DcMotor.RunMode.RUN_USING_ENCODER);\n }", "public Hardware() {\n hwMap = null;\n }", "public void initialize() {\n \n super.initialize();\n \n PreferredSizeX = this.getPreferredSizeX();\n PreferredSizeY = this.getPreferredSizeY();\n this.setPreferredSize(new Dimension(PreferredSizeX, PreferredSizeY));\n \n this.createParameterPanel();\n \n }", "SensorDescription(){\n\n }", "public Rectangle() {\n this(50, 40);\n }", "public SampleMemory(int size) {\n this.memory = new double[size];\n this.pointer = 0;\n }", "public Properties() {\n\n\t\tconfig = new java.util.Properties();\n\n\t\ttry {\n\t\t\tInputStream input = new FileInputStream(new File(\n\t\t\t\t\t\"ConfigurationFile.txt\"));\n\t\t\tconfig.load(input);\n\n\t\t} catch (Exception e) {\n\n\t\t\te.printStackTrace();\n\t\t}\n\n\t}", "public KeyVaultProperties() {\n }", "public final void setStepSize( long micros )\n {\n if ( ( micros < 1L ) && ( micros != -1L ) )\n throw new IllegalArgumentException( \"micros must be -1 or greater then 0\" );\n \n this.stepMicros = micros;\n }", "private void setMemorySize() { }", "@Deprecated\r\n\tpublic QualityValue(){\r\n\t\tsuper();\r\n\t}", "public PropertiesFrame(FrameController fc) {\n this.fc = fc;\n objects = new ArrayList<IDataObject>();\n \n initComponents();\n reset();\n }", "public Pwm(int bus){\n instanceBus = bus;\n if(bus == unusedBus){\n \n }\n else{\n pwmInstance = new Jaguar(bus);\n Debug.output(\"Pwm constructor: created PWM on bus\", new Integer(bus), ConstantManager.deviceDebug);\n }\n }", "public DPropertyElement() {\n super(null, null);\n }", "public device() {\n\t\tsuper();\n\t}", "static void setDefaultProperties() {\n properties.put(\"VERSION\", \"6\");\n\n // Directories and file names\n properties.put(\"SOURCE_DIRECTORY\", \"jspin-examples\");\n properties.put(\"C_COMPILER\", \"clang\");\n properties.put(\"SPIN\", \"/home/victor/Spin/spin\");\n properties.put(\"PAN\", \"pan\");\n properties.put(\"DOT\", \"dot\");\n properties.put(\"HELP_FILE_NAME\", \"txt\" + sep + \"help.txt\");\n properties.put(\"ABOUT_FILE_NAME\", \"txt\" + sep + \"copyright.txt\");\n\n // Options for executing Spin\n properties.put(\"SINGLE_QUOTE\", Boolean.toString(false));\n properties.put(\"COMMON_OPTIONS\", \"-g -l -p -r -s\");\n // Check options changed for version 6 (for now)\n // properties.put(\"CHECK_OPTIONS\", \"-a -v\");\n properties.put(\"CHECK_OPTIONS\", \"-a\");\n properties.put(\"RANDOM_OPTIONS\", \"-X\");\n properties.put(\"INTERACTIVE_OPTIONS\", \"-i -X\");\n properties.put(\"VERIFY_OPTIONS\", \"-a\");\n properties.put(\"C_COMPILER_OPTIONS\", \"-o pan pan.c\");\n properties.put(\"PAN_OPTIONS\", \"-X\");\n properties.put(\"TRAIL_OPTIONS\", \"-t -X\");\n properties.put(\"TRANSLATE_OPTIONS\", \"-f\");\n\n // Settings\n properties.put(\"MAX_STEPS\", \"250\");\n properties.put(\"MAX_DEPTH\", \"2000\");\n properties.put(\"SEED\", \"0\");\n properties.put(\"NEGATE_LTL\", Boolean.toString(true));\n properties.put(\"FAIRNESS\", Boolean.toString(true));\n properties.put(\"VERIFY_MODE\", Safety);\n properties.put(\"RAW\", Boolean.toString(false));\n properties.put(\"PROCESS_WIDTH\", Integer.toString(7));\n properties.put(\"STATEMENT_WIDTH\", Integer.toString(18));\n properties.put(\"VARIABLE_WIDTH\", Integer.toString(10));\n properties.put(\"LINES_PER_TITLE\", Integer.toString(20));\n\n // Size of main frame\n properties.put(\"WIDTH\", Integer.toString(1000));\n properties.put(\"HEIGHT\", Integer.toString(700));\n\n // Select dialog\n properties.put(\"SELECT_BUTTON\", Integer.toString(220));\n properties.put(\"SELECT_HEIGHT\", Integer.toString(70));\n properties.put(\"SELECT_MENU\", Integer.toString(5));\n properties.put(\"UNEXECUTABLE\", Boolean.toString(false));\n\n // Location of dividers in JSplitPanes: Left-right and top-bottom\n properties.put(\"LR_DIVIDER\", Integer.toString(400));\n properties.put(\"TB_DIVIDER\", Integer.toString(500));\n properties.put(\"MIN_DIVIDER\", Integer.toString(50));\n\n // Font\n properties.put(\"FONT_FAMILY\", \"Lucida Sans Typewriter\");\n properties.put(\"FONT_STYLE\", Integer.toString(java.awt.Font.PLAIN));\n properties.put(\"FONT_SIZE\", Integer.toString(14));\n\n // Tab size in editor\n properties.put(\"TAB_SIZE\", Integer.toString(4));\n\n // Display of Spin output\n properties.put(\"WRAP\", Boolean.toString(true));\n properties.put(\"MSC\", Boolean.toString(false));\n properties.put(\"PROCESS_TITLE\", \"Process \");\n properties.put(\"STATEMENT_TITLE\", \"Statement \");\n\n // Delay while waiting for user input\n properties.put(\"POLLING_DELAY\", Integer.toString(200));\n }", "public WireDetails(WireColor wireColor) {\r\n\t\tsuper(DuctType.WIRE, WireType.COLORED.getCraftPermission());\r\n\t\tthis.wireType = WireType.COLORED;\r\n\t\tthis.wireColor = wireColor;\r\n\t}", "@Override\n\tpublic void initialize(URL location, ResourceBundle resources) {\n\t\tprogramConfigFromMenuBar.setDisable(true);\n\t\tprogramConfigFromToolBar.setDisable(true);\n\t\tlogHelpSplitpane.setMaxHeight(200.0);\n\t\tcheckFieldEditOrNot = false;\n\t\tendpointOneChanges = false;\n\t\tendpointTwoChanges = false;\n\t\tdeviceSettingsTabSplitpane.setVisible(false);\n\t\twelcomeScreen.setVisible(true);\n\n\t\tversionId.setText(\"Version 1.0_\" + RELEASE_DATE);\n\n\t\tuvcuacSettingsTab.setDisable(true);\n\t\tvideoSourceConfigTab.setDisable(true);\n\t\tlogDetails = new StringBuffer();\n\t\tSX3Manager.getInstance().setLogDetails(logDetails);\n\t\tlogDetails.append(new Date() + \" EZ-USB SX3 Configuration Utility Launched.<br>\");\n\t\tlogDetails.append(\"Create new EZ-USB SX3 Configuration : Click File &gt; New Configuration.<br>\");\n\t\tlogDetails.append(\"Load existing EZ-USB SX3 Configuration : Click File &gt;Load Configuration.<br>\");\n\t\tlogDetails1.getEngine().setUserStyleSheetLocation(\"data:,body{font: 12px Arial;}\");\n\t\tlogDetails1.getEngine().loadContent(logDetails.toString());\n\t\tSX3Manager.getInstance().setLogView(logDetails1);\n\t\tlogDetails1.getEngine().getLoadWorker().stateProperty().addListener(new ChangeListener<Worker.State>() {\n\t\t\t@Override\n\t\t\tpublic void changed(ObservableValue<? extends Worker.State> observable, Worker.State oldValue,\n\t\t\t\t\tWorker.State newValue) {\n\t\t\t\tif (newValue == Worker.State.SUCCEEDED)\n\t\t\t\t\tlogDetails1.getEngine().executeScript(\"window.scrollTo(0, document.body.scrollHeight);\");\n\t\t\t}\n\t\t});\n\n\t\thelpContent.getEngine().getLoadWorker().stateProperty()\n\t\t\t\t.addListener(new RegisterHyperlinkHandler(helpContent.getEngine(), application.getHostServices()));\n\t\tSX3Manager.getInstance().setHelpView(helpContent);\n\n\t\t/** ------ Show tooltip on new configuration icon --------------- **/\n\t\tTooltip newConfigToolTip = new Tooltip(DeviceSettingsConstant.NEW_COFIGURATION_TOOLTIP);\n\t\tnewConfig.setTooltip(newConfigToolTip);\n\t\tnewConfig.getTooltip().setOnShowing(s -> {\n\t\t\tBounds bounds = newConfig.localToScreen(newConfig.getBoundsInLocal());\n\t\t\tnewConfig.getTooltip().setX(bounds.getMaxX());\n\t\t});\n\n\t\t/** ------ Show tooltip on open configuration icon --------------- **/\n\t\tTooltip openConfigToolTip = new Tooltip(DeviceSettingsConstant.OPEN_COFIGURATION_TOOLTIP);\n\t\topenConfig.setTooltip(openConfigToolTip);\n\t\topenConfig.getTooltip().setOnShowing(s -> {\n\t\t\tBounds bounds = openConfig.localToScreen(openConfig.getBoundsInLocal());\n\t\t\topenConfig.getTooltip().setX(bounds.getMaxX());\n\t\t});\n\t\t\n\t\tTooltip exportTooltip = new Tooltip(DeviceSettingsConstant.EXPORT_COFIGURATION_TOOLTIP);\n\t\texportConfiguration.setTooltip(exportTooltip);\n\t\texportConfiguration.getTooltip().setOnShowing(s -> {\n\t\t\tBounds bounds = exportConfiguration.localToScreen(exportConfiguration.getBoundsInLocal());\n\t\t\texportConfiguration.getTooltip().setX(bounds.getMaxX());\n\t\t});\n\n\t\t/** ------ Show tooltip on save configuration icon --------------- **/\n\t\tTooltip saveConfigToolTip = new Tooltip(DeviceSettingsConstant.SAVE_COFIGURATION_TOOLTIP);\n\t\tsaveConfigFromToolBar.setTooltip(saveConfigToolTip);\n\t\tsaveConfigFromToolBar.getTooltip().setOnShowing(s -> {\n\t\t\tBounds bounds = saveConfigFromToolBar.localToScreen(saveConfigFromToolBar.getBoundsInLocal());\n\t\t\tsaveConfigFromToolBar.getTooltip().setX(bounds.getMaxX());\n\t\t});\n\n\t\t/** ------ Show tooltip on undo icon --------------- **/\n\t\tTooltip undoToolTip = new Tooltip(DeviceSettingsConstant.UNDO);\n\t\tundo.setTooltip(undoToolTip);\n\t\tundo.getTooltip().setOnShowing(s -> {\n\t\t\tBounds bounds = undo.localToScreen(undo.getBoundsInLocal());\n\t\t\tundo.getTooltip().setX(bounds.getMaxX());\n\t\t});\n\n\t\t/** ------ Show tooltip on redo icon --------------- **/\n\t\tTooltip redoToolTip = new Tooltip(DeviceSettingsConstant.REDO);\n\t\tredo.setTooltip(redoToolTip);\n\t\tredo.getTooltip().setOnShowing(s -> {\n\t\t\tBounds bounds = redo.localToScreen(redo.getBoundsInLocal());\n\t\t\tredo.getTooltip().setX(bounds.getMaxX());\n\t\t});\n\n\t\t/** ------ Show tooltip on program utility icon --------------- **/\n\t\tTooltip programConfigToolTip = new Tooltip(DeviceSettingsConstant.PROGRAM_COFIGURATION_TOOLTIP);\n\t\tprogramConfigFromToolBar.setTooltip(programConfigToolTip);\n\t\tprogramConfigFromToolBar.getTooltip().setOnShowing(s -> {\n\t\t\tBounds bounds = programConfigFromToolBar.localToScreen(programConfigFromToolBar.getBoundsInLocal());\n\t\t\tprogramConfigFromToolBar.getTooltip().setX(bounds.getMaxX());\n\t\t});\n\n\t\t/** ------ Show tooltip on save log button --------------- **/\n\t\tTooltip saveLogToolTip = new Tooltip(DeviceSettingsConstant.SAVE_LOG);\n\t\tsaveLog.setTooltip(saveLogToolTip);\n\t\tsaveLog.getTooltip().setOnShowing(s -> {\n\t\t\tBounds bounds = saveLog.localToScreen(saveLog.getBoundsInLocal());\n\t\t\tsaveLog.getTooltip().setX(bounds.getMaxX());\n\t\t});\n\n\t\tImageView saveImage = new ImageView(getClass().getResource(\"/resources/saveRow.png\").toString());\n\t\tsaveImage.setFitHeight(15);\n\t\tsaveImage.setFitWidth(15);\n\t\tsaveLog.setGraphic(saveImage);\n\n\t\t/** ------ Show tooltip on cancel log button --------------- **/\n\t\tTooltip clearLogToolTip = new Tooltip(DeviceSettingsConstant.CLEAR_LOG);\n\t\tclearLog.setTooltip(clearLogToolTip);\n\t\tclearLog.getTooltip().setOnShowing(s -> {\n\t\t\tBounds bounds = clearLog.localToScreen(clearLog.getBoundsInLocal());\n\t\t\tclearLog.getTooltip().setX(bounds.getMaxX());\n\t\t});\n\t\tImageView clearImage = new ImageView(getClass().getResource(\"/resources/deleteRow.png\").toString());\n\t\tclearImage.setFitHeight(15);\n\t\tclearImage.setFitWidth(15);\n\t\tclearLog.setGraphic(clearImage);\n\n\t\t/** --------- Log device settings tab text field ---------- **/\n\t\tlogDeviceSettingTabField();\n\n\t\t/** ----- Load welcome page html file ------- **/\n\t\tloadWelcomeContent();\n\n\t\t/** ------ Select Endpoint one ------- **/\n\t\tselectEndpointOne();\n\n\t\t/** ------ Select Endpoint Two ------- **/\n\t\tselectEndpointTwo();\n\n\t\t/** ------ Load Help content ------- **/\n\t\tloadHelpContent();\n\n\t\t/**\n\t\t * ------------- Load Tooltip and error properties file --------------\n\t\t **/\n\t\ttooltipAndErrorProperties = SX3ConfigurationTooltipController.getConfigProperties();\n\n\t}", "public Resistor() {\n\t\tcomponent = \"Resistor\";\n\t\tprice = 1.99;\n\t\tsize = DEFAULT_SIZE;\n\t\tx = 0;\n\t\ty = 0;\n\t\tcolor = new Color(255, 100, 50);\n\t\torientation = \"horizontal\";\n\t}", "public Thumbnail() {\n this(100, 100);\n }" ]
[ "0.5827998", "0.5611626", "0.54207563", "0.5320263", "0.5300164", "0.5265076", "0.51523244", "0.50988245", "0.50770456", "0.50733346", "0.5013976", "0.49805018", "0.4980215", "0.491957", "0.49039748", "0.4900787", "0.48731056", "0.4859421", "0.48479897", "0.48468018", "0.48396605", "0.48047602", "0.47999603", "0.4780504", "0.47774225", "0.47458482", "0.47337914", "0.47191337", "0.46960306", "0.46825007", "0.46793732", "0.46701118", "0.46642348", "0.4657119", "0.4639706", "0.46242434", "0.46176022", "0.46152383", "0.46118355", "0.4607233", "0.4607023", "0.46022895", "0.45916045", "0.45773438", "0.45634317", "0.45548368", "0.45500147", "0.45496836", "0.45432732", "0.45414475", "0.45367196", "0.45210093", "0.451524", "0.44981995", "0.44976318", "0.44973394", "0.44967815", "0.44924295", "0.44865173", "0.44850892", "0.44777086", "0.44628608", "0.4454047", "0.44318017", "0.44313315", "0.44291413", "0.44249055", "0.44234756", "0.44223666", "0.44217017", "0.44172144", "0.4415827", "0.44136816", "0.4410964", "0.44102305", "0.4409486", "0.44014078", "0.4399498", "0.43992913", "0.4398412", "0.43953073", "0.43898457", "0.43844047", "0.43826896", "0.43823162", "0.4377883", "0.43777096", "0.43771192", "0.4374815", "0.43747675", "0.4368407", "0.43663588", "0.43655932", "0.43644214", "0.43634093", "0.43633232", "0.43619967", "0.4360196", "0.4353641", "0.43457317" ]
0.5046412
10
The getPin() method retrieves the pin number for the given pin name for this microcontroller.
public int getPin(String n) { Integer i = (Integer)pinAssignments.get(n); if ( i == null ) throw new NoSuchElementException(StringUtil.quote(n)+" pin not found"); return i.intValue(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "int getPinNumber();", "public java.lang.String getPin() {\r\n return pin;\r\n }", "public String getPin() {\n\t\treturn pin;\n\t}", "public String getPin() {\n return this.pin;\n }", "public String getPIN();", "public static int getPin()\n\t{\n\n\t\tSystem.out.print(\"Please enter the PIN:\");\n\t\t//Scanner myscanner = new Scanner(System.in);\n\t\tint mypin = myscanner.nextInt();\n\t\treturn mypin;\n\t}", "public String getPIN() {\n return PIN;\n }", "String getPIN() {\n\t\treturn PIN;\n\t}", "public java.lang.String getPincode() {\r\n return pincode;\r\n }", "public void setPin(java.lang.String pin) {\r\n this.pin = pin;\r\n }", "public String getPincode() {\r\n\t\treturn pincode;\r\n\t}", "public String getPinKey() {\r\n return pinKey;\r\n }", "public int analogRead(int pin) { // (unsupported in HardAta.ino)\r\n int info = analogInputData[pin & MDB_msk];\r\n if (SpeakEasy){\r\n System.out.println(\"F%%F/analoRead #\" + pin + \" = \" + info);\r\n }\r\n return info;\r\n }", "public Node getNode(String name) {\n Node result = super.getNode(name);\n\n if (result == null) {\n byte type = gateClass.getPinType(name);\n int index = gateClass.getPinNumber(name);\n if (type == CompositeGateClass.INTERNAL_PIN_TYPE)\n result = internalPins[index];\n }\n\n return result;\n }", "private static void pins(final int pin, final String name) {\n assertEquals(pin, server.context.datas.pins(name));\n }", "public void setPin(int pin);", "@Override\n\tpublic int getPinCode() {\n\t\treturn _locMstLocation.getPinCode();\n\t}", "public void setPIN(String PIN) {\n this.PIN = PIN;\n }", "public int digitalRead(int pin) { // (unsupported in HardAta.ino)\r\n int info = digitalInputData[(pin >> 3) & MDB_msk], aBit = (info >> (pin & 7)) & 1;\r\n if (SpeakEasy){\r\n System.out.println(\"F%%F/digiRead #\" + pin + \" = \" + aBit + \"/\" + info);\r\n }\r\n return aBit;\r\n }", "public char GPIORead(int pin)\n\t{\n\t\treturn '0';\n\t}", "public MhZ19Pwm(String pin) throws IOException {\n PeripheralManagerService pioService = new PeripheralManagerService();\n mGpio = pioService.openGpio(pin);\n\n try {\n mGpio.setDirection(Gpio.DIRECTION_IN);\n mGpio.setEdgeTriggerType(Gpio.EDGE_BOTH);\n\n } catch (IOException|RuntimeException e) {\n try {\n close();\n } catch (IOException|RuntimeException ignored) {\n }\n throw e;\n }\n\n mThread = new PulseMesThread();\n mThread.start();\n Log.i(TAG,\"Start port read thread\");\n }", "InputPin getFirst();", "@Override\n public Pin rePin(int pinID, int boardID) {\n return pinDataMapper.getPin(pinID);\n }", "public java.lang.String getBnft_pin_num() {\n\t\treturn bnft_pin_num;\n\t}", "public void setPIN (String PIN);", "InputPin getSecond();", "Pin createPin();", "DigitalInputPin createDigitalInputPin();", "public String getNumber(String name){\r\n return theContacts.get(name).getNumber();\r\n }", "public Pin getOtherPin(Pin pin) {\n if(p1.equals(pin)) {\n return p2;\n } else if(p2.equals(pin)) {\n return p1;\n }\n return null;\n }", "void onPinEntered(String pin);", "public Pin(int pin) {\r\n if (is4Digit(pin))\r\n this.pin = pin;\r\n }", "@Override\n public double getValue(Pin pin) {\n super.getValue(pin);\n return isInitiated() ? readAnalog(toCommand((short) pin.getAddress())) : INVALID_VALUE;\n }", "public static int getPWM(String name) {\n return mapPWM.get(name);\n }", "public void pin();", "public void pin();", "public void setPincode(java.lang.String pincode) {\r\n this.pincode = pincode;\r\n }", "public static native int isPinSupported(int pin) throws RuntimeException;", "@Override \n public double getTemperature() { \n return pin.getValue();\n }", "DigitalPin createDigitalPin();", "public static int getCAN(String name) {\n return mapCAN.get(name);\n }", "private void doPinNames() {\n final String RESERVED = \"Reserved\";\n\n if (donePinNames) {\n return;\n }\n donePinNames = true;\n StringBuilder sb = new StringBuilder();\n sb.append(\n \"/**\\n\"+\n \" * LLWU pin sources\\n\"+\n \" */\\n\"+\n \"enum LlwuPin : uint32_t {\\n\"\n );\n InfoTable pinTable = getPeripheral().getSignalTables().get(0);\n for (int index=0; index<32; index++) {\n String choiceName = \"llwu_pe\"+((index/4)+1)+\"_wupe\"+index;\n ChoiceVariable choiceVar = safeGetChoiceVariable(choiceName);\n if (choiceVar == null) {\n continue;\n }\n String llwuPinName;\n if (index>=pinTable.table.size()) {\n // Pin not in table (doesn't exist)\n choiceVar.enable(false);\n llwuPinName = RESERVED;\n }\n else {\n // Look up possible pin mapping in table\n Signal signal = pinTable.table.elementAt(index);\n Pin mappablePin = null;\n if (signal != null) {\n TreeSet<MappingInfo> pinMappings = signal.getPinMapping();\n for (MappingInfo pinMapping:pinMappings) {\n if (pinMapping.getMux() == MuxSelection.mux1) {\n mappablePin = pinMapping.getPin();\n }\n }\n }\n if (mappablePin == null) {\n // No mappable pin\n choiceVar.enable(false);\n llwuPinName = RESERVED;\n }\n else {\n // Mappable pin\n choiceVar.enable(true);\n llwuPinName = mappablePin.getName();\n }\n }\n if (llwuPinName != RESERVED) {\n String llwuPinLine = String.format(\n \" LlwuPin_%-15s = %2d, //!< Wake-up pin LLWU_P%d\\n\", \n capitalCase(llwuPinName), index, index); \n sb.append(llwuPinLine);\n }\n choiceVar.setDescription(choiceVar.getDescription() + \" - \"+llwuPinName);\n }\n sb.append(\"};\\n\\n\");\n StringVariable llwuPinsVar = new StringVariable(\"LlwuPins\", getPeripheral().makeKey(\"LlwuPins\"));\n llwuPinsVar.setValue(sb.toString());\n llwuPinsVar.setDerived(true);\n getPeripheral().addVariable(llwuPinsVar);\n\n sb = new StringBuilder();\n sb.append(\n \"/**\\n\"+\n \" * LLWU peripheral sources\\n\"+\n \" */\\n\"+\n \"enum LlwuPeripheral : uint32_t {\\n\"\n );\n for (int index=0; index<=7; index++) {\n String choiceName = \"llwu_me_wume\"+index;\n BooleanVariable choiceVar = safeGetBooleanVariable(choiceName);\n String llwuPeripheralName;\n if (choiceVar != null) {\n llwuPeripheralName = choiceVar.getDescription();\n String llwuPeripheralLine = String.format(\n \" LlwuPeripheral_%-15s = (1<<%d), //!< Wake-up peripheral LLWU_M%dIF\\n\", \n capitalCase(llwuPeripheralName), index, index\n );\n sb.append(llwuPeripheralLine);\n }\n }\n sb.append(\"};\\n\\n\");\n StringVariable llwuPeripheralsVar = new StringVariable(\"LlwuPeripherals\", getPeripheral().makeKey(\"LlwuPeripherals\"));\n llwuPeripheralsVar.setValue(sb.toString());\n llwuPeripheralsVar.setDerived(true);\n getPeripheral().addVariable(llwuPeripheralsVar);\n }", "public boolean checkPin(String pin) {\n return this.pin.equals(pin);\n }", "private String getRandomPIN(int num) {\n\t\tStringBuilder randomPIN = new StringBuilder();\n\t\tfor (int i = 0; i < num; i++) {\n\t\t\trandomPIN.append((int) (Math.random() * 10));\n\t\t}\n\t\treturn randomPIN.toString();\n\t}", "private void convert(int pinNum) {\n\t\tgpio = GpioFactory.getInstance();\n\t\tif (pins[pinNum] == null) {\n\t\t\tswitch (pinNum) {\n\t\t\t// Pins for pi1\n\t\t\tcase 0:\n\t\t\t\tpins[pinNum] = gpio.provisionDigitalOutputPin(RaspiPin.GPIO_00, \"MyPin\", PinState.LOW);\n\t\t\t\tpins[pinNum].setShutdownOptions(true, PinState.LOW);\n\t\t\t\tbreak;\n\t\t\tcase 1:\n\t\t\t\tpins[pinNum] = gpio.provisionDigitalOutputPin(RaspiPin.GPIO_01, \"MyPin\", PinState.LOW);\n\t\t\t\tpins[pinNum].setShutdownOptions(true, PinState.LOW);\n\t\t\t\tbreak;\n\t\t\tcase 2:\n\t\t\t\tpins[pinNum] = gpio.provisionDigitalOutputPin(RaspiPin.GPIO_02, \"MyPin\", PinState.LOW);\n\t\t\t\tpins[pinNum].setShutdownOptions(true, PinState.LOW);\n\t\t\t\tbreak;\n\t\t\tcase 3:\n\t\t\t\tpins[pinNum] = gpio.provisionDigitalOutputPin(RaspiPin.GPIO_03, \"MyPin\", PinState.LOW);\n\t\t\t\tpins[pinNum].setShutdownOptions(true, PinState.LOW);\n\t\t\t\tbreak;\n\t\t\tcase 4:\n\t\t\t\tpins[pinNum] = gpio.provisionDigitalOutputPin(RaspiPin.GPIO_04, \"MyPin\", PinState.LOW);\n\t\t\t\tpins[pinNum].setShutdownOptions(true, PinState.LOW);\n\t\t\t\tbreak;\n\t\t\tcase 5:\n\t\t\t\tpins[pinNum] = gpio.provisionDigitalOutputPin(RaspiPin.GPIO_05, \"MyPin\", PinState.LOW);\n\t\t\t\tpins[pinNum].setShutdownOptions(true, PinState.LOW);\n\t\t\t\tbreak;\n\t\t\tcase 6:\n\t\t\t\tpins[pinNum] = gpio.provisionDigitalOutputPin(RaspiPin.GPIO_06, \"MyPin\", PinState.LOW);\n\t\t\t\tpins[pinNum].setShutdownOptions(true, PinState.LOW);\n\t\t\t\tbreak;\n\t\t\tcase 7:\n\t\t\t\tpins[pinNum] = gpio.provisionDigitalOutputPin(RaspiPin.GPIO_07, \"MyPin\", PinState.LOW);\n\t\t\t\tpins[pinNum].setShutdownOptions(true, PinState.LOW);\n\t\t\t\tbreak;\n\t\t\tcase 8:\n\t\t\t\tpins[pinNum] = gpio.provisionDigitalOutputPin(RaspiPin.GPIO_08, \"MyPin\", PinState.LOW);\n\t\t\t\tpins[pinNum].setShutdownOptions(true, PinState.LOW);\n\t\t\t\tbreak;\n\t\t\tcase 9:\n\t\t\t\tpins[pinNum] = gpio.provisionDigitalOutputPin(RaspiPin.GPIO_09, \"MyPin\", PinState.LOW);\n\t\t\t\tpins[pinNum].setShutdownOptions(true, PinState.LOW);\n\t\t\t\tbreak;\n\t\t\tcase 10:\n\t\t\t\tpins[pinNum] = gpio.provisionDigitalOutputPin(RaspiPin.GPIO_10, \"MyPin\", PinState.LOW);\n\t\t\t\tpins[pinNum].setShutdownOptions(true, PinState.LOW);\n\t\t\t\tbreak;\n\t\t\tcase 11:\n\t\t\t\tpins[pinNum] = gpio.provisionDigitalOutputPin(RaspiPin.GPIO_11, \"MyPin\", PinState.LOW);\n\t\t\t\tpins[pinNum].setShutdownOptions(true, PinState.LOW);\n\t\t\t\tbreak;\n\t\t\tcase 12:\n\t\t\t\tpins[pinNum] = gpio.provisionDigitalOutputPin(RaspiPin.GPIO_12, \"MyPin\", PinState.LOW);\n\t\t\t\tpins[pinNum].setShutdownOptions(true, PinState.LOW);\n\t\t\t\tbreak;\n\t\t\tcase 13:\n\t\t\t\tpins[pinNum] = gpio.provisionDigitalOutputPin(RaspiPin.GPIO_13, \"MyPin\", PinState.LOW);\n\t\t\t\tpins[pinNum].setShutdownOptions(true, PinState.LOW);\n\t\t\t\tbreak;\n\t\t\tcase 14:\n\t\t\t\tpins[pinNum] = gpio.provisionDigitalOutputPin(RaspiPin.GPIO_14, \"MyPin\", PinState.LOW);\n\t\t\t\tpins[pinNum].setShutdownOptions(true, PinState.LOW);\n\t\t\t\tbreak;\n\t\t\tcase 15:\n\t\t\t\tpins[pinNum] = gpio.provisionDigitalOutputPin(RaspiPin.GPIO_15, \"MyPin\", PinState.LOW);\n\t\t\t\tpins[pinNum].setShutdownOptions(true, PinState.LOW);\n\t\t\t\tbreak;\n\t\t\tcase 16:\n\t\t\t\tpins[pinNum] = gpio.provisionDigitalOutputPin(RaspiPin.GPIO_16, \"MyPin\", PinState.LOW);\n\t\t\t\tpins[pinNum].setShutdownOptions(true, PinState.LOW);\n\t\t\t\tbreak;\n\n\t\t\t// Pins for pi2, will not through exeption for pi1\n\t\t\tcase 17:\n\t\t\t\tpins[pinNum] = gpio.provisionDigitalOutputPin(RaspiPin.GPIO_17, \"MyPin\", PinState.LOW);\n\t\t\t\tpins[pinNum].setShutdownOptions(true, PinState.LOW);\n\t\t\t\tbreak;\n\t\t\tcase 18:\n\t\t\t\tpins[pinNum] = gpio.provisionDigitalOutputPin(RaspiPin.GPIO_18, \"MyPin\", PinState.LOW);\n\t\t\t\tpins[pinNum].setShutdownOptions(true, PinState.LOW);\n\t\t\t\tbreak;\n\t\t\tcase 19:\n\t\t\t\tpins[pinNum] = gpio.provisionDigitalOutputPin(RaspiPin.GPIO_19, \"MyPin\", PinState.LOW);\n\t\t\t\tpins[pinNum].setShutdownOptions(true, PinState.LOW);\n\t\t\t\tbreak;\n\t\t\tcase 20:\n\t\t\t\tpins[pinNum] = gpio.provisionDigitalOutputPin(RaspiPin.GPIO_20, \"MyPin\", PinState.LOW);\n\t\t\t\tpins[pinNum].setShutdownOptions(true, PinState.LOW);\n\t\t\t\tbreak;\n\t\t\tcase 21:\n\t\t\t\tpins[pinNum] = gpio.provisionDigitalOutputPin(RaspiPin.GPIO_21, \"MyPin\", PinState.LOW);\n\t\t\t\tpins[pinNum].setShutdownOptions(true, PinState.LOW);\n\t\t\t\tbreak;\n\t\t\tcase 22:\n\t\t\t\tpins[pinNum] = gpio.provisionDigitalOutputPin(RaspiPin.GPIO_22, \"MyPin\", PinState.LOW);\n\t\t\t\tpins[pinNum].setShutdownOptions(true, PinState.LOW);\n\t\t\t\tbreak;\n\t\t\tcase 23:\n\t\t\t\tpins[pinNum] = gpio.provisionDigitalOutputPin(RaspiPin.GPIO_23, \"MyPin\", PinState.LOW);\n\t\t\t\tpins[pinNum].setShutdownOptions(true, PinState.LOW);\n\t\t\t\tbreak;\n\t\t\tcase 24:\n\t\t\t\tpins[pinNum] = gpio.provisionDigitalOutputPin(RaspiPin.GPIO_24, \"MyPin\", PinState.LOW);\n\t\t\t\tpins[pinNum].setShutdownOptions(true, PinState.LOW);\n\t\t\t\tbreak;\n\t\t\tcase 25:\n\t\t\t\tpins[pinNum] = gpio.provisionDigitalOutputPin(RaspiPin.GPIO_25, \"MyPin\", PinState.LOW);\n\t\t\t\tpins[pinNum].setShutdownOptions(true, PinState.LOW);\n\t\t\t\tbreak;\n\t\t\tcase 26:\n\t\t\t\tpins[pinNum] = gpio.provisionDigitalOutputPin(RaspiPin.GPIO_26, \"MyPin\", PinState.LOW);\n\t\t\t\tpins[pinNum].setShutdownOptions(true, PinState.LOW);\n\t\t\t\tbreak;\n\t\t\tcase 27:\n\t\t\t\tpins[pinNum] = gpio.provisionDigitalOutputPin(RaspiPin.GPIO_27, \"MyPin\", PinState.LOW);\n\t\t\t\tpins[pinNum].setShutdownOptions(true, PinState.LOW);\n\t\t\t\tbreak;\n\t\t\tcase 28:\n\t\t\t\tpins[pinNum] = gpio.provisionDigitalOutputPin(RaspiPin.GPIO_28, \"MyPin\", PinState.LOW);\n\t\t\t\tpins[pinNum].setShutdownOptions(true, PinState.LOW);\n\t\t\t\tbreak;\n\t\t\tcase 29:\n\t\t\t\tpins[pinNum] = gpio.provisionDigitalOutputPin(RaspiPin.GPIO_29, \"MyPin\", PinState.LOW);\n\t\t\t\tpins[pinNum].setShutdownOptions(true, PinState.LOW);\n\t\t\t\tbreak;\n\n\t\t\t// Null if pin dosent exist\n\t\t\tdefault:\n\t\t\t\tpins[pinNum] = null;\n\t\t\t}\n\t\t}\n\t}", "public int registerInput( Wire w, String pinName ) {\n\tErrors.warn( \"Illegal input pin: \" + name + \" \" + pinName );\n\treturn -1;\n }", "public String generateUserPin(String name, String summary) {\n\t\t// Hash the name and description together\n\t\tint integerPin = (name.hashCode() + summary.hashCode());\n\t\tString stringPin = Integer.toString(integerPin);\n\t\tLog.d(TAG, stringPin);\n\t\tint pinLength = stringPin.length();\n\t\tString pin = \"PIN\";\n\t\tint salt = 0;\n\t\tif (pinLength > 4) {\n\t\t\t// If the pin length is greater than 4, truncate it to the first 4\n\t\t\t// characters\n\t\t\tCharacter one = stringPin.charAt(0);\n\t\t\tCharacter two = stringPin.charAt(1);\n\t\t\tCharacter three = stringPin.charAt(2);\n\t\t\tCharacter four = stringPin.charAt(3);\n\t\t\tString truncatedHash = \"\" + one + two + three + four;\n\t\t\tLog.d(TAG, truncatedHash);\n\t\t\t// Generate a random 4 digit salt\n\t\t\tsalt = (int) ((Math.random() * 9999) + 1);\n\t\t\t// Concatenate these to form the pin\n\t\t\tpin = truncatedHash + \"\" + salt;\n\t\t\tLog.d(TAG, pin);\n\t\t}\n\t\tif (pinLength <= 4) {\n\t\t\t// Find out how long the salt needs to be\n\t\t\tint saltLength = ((LENGTHOFPIN - pinLength) - 1);\n\t\t\t// String to hold the number of digits to multiply math.random by\n\t\t\tString saltyString = \"\";\n\t\t\tfor (int i = 0; i <= (saltLength); i++) {\n\t\t\t\tsaltyString += \"9\";\n\t\t\t}\n\t\t\tLog.d(TAG, saltyString);\n\t\t\t// Generate the random salt\n\t\t\tsalt = (int) ((Math.random() * Integer.parseInt(saltyString)) + 1);\n\t\t\tpin = stringPin + \"\" + salt;\n\t\t\tLog.d(TAG, pin);\n\t\t}\n\n\t\treturn pin;\n\t}", "public int getPinCount();", "public LED(int pin)\n {\n // Pin allocation is handled by a GpioController. So first we have to get that from the Factory.\n GpioController gpio = GpioFactory.getInstance();\n \n // Now we need to ask the Controller to allocate (provision) the pin for us as a Digital Output pin. \n // The parameter PinState.LOW means that initially, we want to set this pin to LOW (off).\n ledPin = gpio.provisionDigitalOutputPin(pinMap[pin], PinState.LOW);\n }", "private KeyStore askForPin() throws KeyStoreException, NoSuchAlgorithmException, CertificateException, IOException {\n char newPin[] = PinDialog.getPIN(this.providerDesc);\n try {\n KeyStore ks = getKeyStore(newPin);\n pin = newPin;\n return ks;\n } catch (IOException e2) {\n e2.printStackTrace();\n if (e2.getCause() instanceof LoginException) {\n JOptionPane.showMessageDialog(null, \"Wrong PIN\", \"Cryptographic card\", JOptionPane.WARNING_MESSAGE);\n }\n throw e2;\n }\n }", "@Override\n\tpublic int getPINByURL(String URL) {\n\t\tint PIN = 0;\n\t\ttry{\n\t\t\tPreparedStatement stmnt = connection.prepareStatement(\"SELECT PIN FROM TBL_PIN WHERE CAST(URL AS VARCHAR(128)) = ?\");\n\t\t\tstmnt.setString(1, URL);\n\t\t\t\n\t\t\tResultSet res = stmnt.executeQuery();\n\t\t\tlogger.info(\"The result set size is \"+res.getFetchSize());\n\t\t\twhile(res.next()){\n\t\t\t\tPIN = res.getInt(\"PIN\");\n\t\t\t\tlogger.info(\"PIN: \"+ PIN);\n\t\t\t}\n\t\t\tres.close();\n\t\t\tstmnt.close();\n\t\t\t\n\t\t}catch(Exception e){\n\t\t\tSystem.out.println(\"Caught Exception\");\n\t\t\te.printStackTrace();\n\t\t}\n\t\treturn PIN;\n\t}", "private boolean needPIN() {\n return datafacade.getInt(\"pin\")!=-1;\n }", "public Boolean getGPIO(String name) {\n\n Gpio_Get_Request request = Gpio_Get_Request.newBuilder().setName(name).build();\n\n Gpio_Get_Reply response;\n try {\n response = blockingStub.gpioGet(request);\n } catch (StatusRuntimeException e) {\n logger.log(Level.WARNING, \"RPC failed \" + e.getStatus() + \" \" + e.getMessage());\n throw e;\n }\n\n return response.getValue();\n }", "public Pokemon retrievePokemon(String pokemonName, int boxNum) {\r\n\t\tif(pokemonBoxes.get(boxNum).isInTheBox(pokemonName)) {\r\n\t\t\treturn pokemonBoxes.get(boxNum).getPokemon(pokemonName);\r\n\t\t}else {\r\n\t\t\tSystem.out.println(pokemonName + \" is not inside box \" + boxNum);\r\n\t\t\treturn null;\r\n\t\t}\r\n\t}", "@ApiOperation(value = \"getPNR\", notes = \"Returns PNR details for a given customer\")\n\t@ApiImplicitParams({ @ApiImplicitParam(name = \"pnr\", value = \"PNR\", required = true, dataType = \"string\", paramType = \"query\", defaultValue = \"Ashish\") })\n\t@RequestMapping(path = \"/getPNR\", method = RequestMethod.GET, headers = \"Accept=application/json\", produces = \"application/json\")\n\tpublic MapResponseBean getPNR(@RequestParam(name = \"pnr\") String pnr) {\n\t\tlogger.info(\"Test\");\n\t\tMapResponseBean sb = new MapResponseBean();\n\t\tsb.setPnr(pnr);\n\t\treturn sb;\n\t}", "public String getPincode()\n\t{\n\t\treturn this._email;\n\t}", "public String readChipID() {\r\n return mFactoryBurnUtil.readChipID();\r\n }", "public static native int getDirection(int pin) throws RuntimeException;", "@Override\r\n\tpublic Member getMemberByPin(String pinMember) {\n\t\tSession session = sessionFactory.getCurrentSession();\r\n\t\tQuery query = session.createQuery(\"FROM Member WHERE pinMember =:pinMember\");\r\n\t\tquery.setString(\"pinMember\", pinMember);\r\n\t\tList<Member> member = query.list();\r\n\t\tif(!member.isEmpty())\r\n\t\treturn member.get(0);\r\n\t\telse\r\n\t\t\treturn null;\r\n\t}", "public String getPostcode() {\n return (String) get(\"postcode\");\n }", "public void setPincode(String pincode) {\r\n\t\tthis.pincode = pincode;\r\n\t}", "java.lang.String getPhonenumber();", "public void getAndStoreLocation(String pin, String name, boolean isFirstRun) {\n\n\t\tLocation location = myLocation;\n\n\t\t// Get last know latitude and longitude as Strings\n\t\tString latitude = Double.toString(location.getLatitude());\n\t\tLog.d(TAG, latitude);\n\t\tString longditude = Double.toString(location.getLongitude());\n\t\tLog.d(TAG, longditude);\n\n\t\tif (!(isFirstRun)) {\n\t\t\t// Find the existing Parse object\n\t\t\tParseQuery query = new ParseQuery(\"Waypoints\");\n\t\t\tquery.whereEqualTo(\"pin\", pin);\n\t\t\tquery.getFirstInBackground(new GetCallback() {\n\t\t\t\tpublic void done(ParseObject object, ParseException e) {\n\t\t\t\t\tif (object == null) {\n\t\t\t\t\t\t//If the object could not be found\n\t\t\t\t\t\tLog.d(TAG, \"The request failed.\");\n\t\t\t\t\t} else {\n\t\t\t\t\t\t//Delete the object so it can be overwritten with new data.\n\t\t\t\t\t\tobject.deleteInBackground();\n\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t});\n\t\t}\n\t\t// Upload the data to Parse\n\t\tParseObject waypoint = new ParseObject(\"Waypoints\");\n\t\twaypoint.put(\"pin\", pin);\n\t\twaypoint.put(\"Title\", name);\n\t\twaypoint.put(\"type\", \"individual\");\n\t\twaypoint.put(\"longitude\", longditude);\n\t\twaypoint.put(\"latitude\", latitude);\n\t\twaypoint.saveInBackground();\n\t}", "boolean checkPIN(String PIN) {\n\t\treturn this.PIN.equals(PIN);\n\t}", "public synchronized String getIdentifier(String adaptorFullPath_p, String owBootstrapName_p)\r\n {\r\n String result = null;\r\n FileInputStream propStream = null;\r\n try\r\n {\r\n Properties currentProperties = adapter2PropsMap.get(adaptorFullPath_p);\r\n if (currentProperties == null)\r\n {\r\n currentProperties = new Properties();\r\n File propFile = new File(getPropertiesFullPath(adaptorFullPath_p));\r\n if (propFile.exists())\r\n {\r\n propStream = new FileInputStream(propFile);\r\n currentProperties.load(propStream);\r\n }\r\n }\r\n result = currentProperties.getProperty(owBootstrapName_p);\r\n }\r\n catch (Exception e)\r\n {\r\n LOG.error(\"Cannot read the mappings!\", e);\r\n }\r\n finally\r\n {\r\n if (propStream != null)\r\n {\r\n try\r\n {\r\n propStream.close();\r\n }\r\n catch (IOException e)\r\n {\r\n // TODO Auto-generated catch block\r\n e.printStackTrace();\r\n }\r\n }\r\n }\r\n return result;\r\n }", "public PhoneNumber getNumber(Person key) {\n\t\tBookEntry entry = getEntry(key);\n\t\tif (entry != null) {\n\t\t\treturn entry.getNumber(); //Returns the phoneNumber from the entry\n\t\t} else {\n\t\t\treturn null;\n\t\t}\n\t}", "public void releasePin(ARTIK_PINS pin) throws IOException {\n assertPinExported(pin);\n echoToPath(BASE_PIN_UNEXPORT_PATH, getPinNumber(pin));\n }", "public abstract boolean sjekkPIN(int pin);", "public long readTag(){\n if (!checkOpen()){\r\n return 0;\r\n }\r\n // arrays will hold return values from various calls to reader\r\n byte[] pLen = new byte[1];\r\n byte[] pTAG = new byte[1];\r\n byte[] pSN = new byte[10];\r\n byte[] pNumTagFound = new byte[1];\r\n short tag = cardReader.select(handle,pTAG, pLen, pSN);\r\n if (tag < 0 ){\r\n message = \"No card found\";\r\n System.err.println(message);\r\n return 0;\r\n }\r\n System.out.println(\"Tagtype:\"+pTAG[0] + \" SN[0]:\" + Integer.toHexString(pSN[0]) + \" return= \" + tag);\r\n long serial = 0;\r\n for(int i=0;i<pLen[0];i++) {\r\n // shift and bitwise-OR the bytes into one 64-bits integer\r\n serial = (serial << 8 ); // shift left 8 bits\r\n serial = serial | (pSN[i] & 0xFF); // bitwise OR byte into int\r\n }\r\n System.out.printf(\" serial = %d hex: %X\",serial, serial);\r\n message = \"String read\";\r\n // test card read/write+login functions; only with new cards\r\n //writeString(\"Hello RFID card\");\r\n //System.err.println(readString());\r\n return (int)serial;\r\n }", "public String get(RegistrationPlate plate){\n if(!this.registrationList.containsKey(plate))\n return null;\n\n return this.registrationList.get(plate);\n\n }", "private void OpenPinInput(int pin, int mode) { // = 0xE0.. // = 0x90..\r\n int whom = (((mode & 0x10) << 1) + 0x20) ^ mode; // -> ANALOG_/DIGITAL_MESSAGE\r\n Timer trix = EatOften;\r\n if (SpeakEasy){\r\n System.out.println(\"F%%F/OpPinInp #\" + pin + \" = \" + mode);\r\n }\r\n if(mode == Arduino.REPORT_VERSION){\r\n whom = mode; // = 0xF9\r\n } else if (mode == Arduino.PULSECOUNT){\r\n whom = mode; // = 7\r\n } else if (mode != Arduino.REPORT_DIGITAL){ // = 0xD0\r\n if (mode != Arduino.REPORT_ANALOG) {\r\n whom = 0; // = 0xC0\r\n }\r\n }\r\n if (whom > 0){\r\n ArduPiModes[pin & 15] = whom;\r\n } else {\r\n trix = null;\r\n }\r\n if (trix == null){ // log any failure..\r\n System.out.println(\" (F%%F/OpPinIn) failed: \" + whom + \"/\" + mode);\r\n return;\r\n } else if (trix.getDelay() == 0) { // start up input thread..\r\n trix.setDelay(1);\r\n trix.start();\r\n if (SpeakEasy){\r\n System.out.println(\" (F%%F/OpPinIn) Timer start OK\");\r\n }\r\n }\r\n Send3bytes(mode | pin & 15, 1, 0);\r\n }", "public int pinCheck(long mobileNumber,int pinNumber) throws Exception {\n\t\tConnection conn = Connect.connect();\n\t\tString passwordSql=\"select upi_passwd from login where mobile_no=?\";\n\t\tPreparedStatement stmt=conn.prepareStatement(passwordSql);\n\t\tstmt.setLong(1,mobileNumber);\n\t\tResultSet rs1=stmt.executeQuery();\n\t\tint pin=0,flag=0;\n\t\twhile(rs1.next()) {\n\t\t\tpin=rs1.getInt(\"upi_passwd\");\n\t\t}conn.close();\n\t\tif(pin==pinNumber) {\n\t\t\tflag=1;\n\t\t\t}\n\t\telse {\n\t\t\tflag=0;\n\t\t}\n\t\treturn flag;\n\t}", "@Override\n public int getPinState(){\n return 0;\n }", "@Override\n public int getNumber() {\n if(flightNumber == null)\n return 42;\n else\n return Integer.parseInt(flightNumber);\n }", "public void setPincode(String pincode)\n\t{\n\t\tthis._pincode=pincode;\n\t}", "@Override\r\n\tpublic int generatePin(int custId, int accNo) {\r\n\t\treturn 0;\r\n\t}", "private static String getSubcriptionAreaId(String subscriptionNumber){\n\t\tString pincode = \"\";\n\t\ttry {\n\t\t\tSQL:{\n\t\t\tConnection connection = DBConnection.createConnection();\n\t\t\tPreparedStatement preparedStatement = null;\n\t\t\tResultSet resultSet = null;\n\t\t\t/*String sql =\"SELECT area_id from fapp_subscription where subscription_no = ?\";*/\n\t\t\tString sql =\"SELECT pincode from fapp_subscription where subscription_no = ?\";\n\t\t\ttry {\n\t\t\t\tpreparedStatement = connection.prepareStatement(sql);\n\t\t\t\tpreparedStatement.setString(1, subscriptionNumber);\n\t\t\t\tresultSet = preparedStatement.executeQuery();\n\t\t\t\tif (resultSet.next()) {\n\t\t\t\t\t/*areaId = resultSet.getInt(\"area_id\");\t*/\n\t\t\t\t\tpincode = resultSet.getString(\"pincode\");\n\t\t\t\t}\n\t\t\t} catch (Exception e) {\n\t\t\t\te.printStackTrace();\n\t\t\t} finally{\n\t\t\t\tif(connection!=null){\n\t\t\t\t\tconnection.close();\n\t\t\t\t}\n\t\t\t}\t\n\t\t}\n\t\t} catch (Exception e) {\n\t\t\t// TODO: handle exception\n\t\t}\n\t\t/*System.out.println(\"area id-\"+areaId);\n \treturn areaId;*/\n\t\tSystem.out.println(\"pincode-\"+pincode);\n\t\treturn pincode;\n\t}", "@Override\n\tpublic String getArduinoIP() {\n\t\treturn ipaddress;\n\t}", "public void analogWrite(int pin, int data)\n\t{\n\t\tint analogMask = 1 << 5;\n\t\tint meta = analogMask | (pin);\n\t\twrite(meta);\n\t\twrite(data);\n\t}", "private boolean matchesPin(String pin) {\n String pin2 = getParentPin();\n return pin.equals(pin2);\n }", "OutputPin getResult();", "OutputPin getResult();", "String getSerial();", "private static Integer readRegister(RegisgerName_Value<String, Integer> pair)\n\t{\n\t\tif (pair != null && registerFile.containsKey(pair.getKey()))\n\t\t{\n\t\t\treturn registerFile.get(pair.getKey());\n\t\t}\n\t\treturn null;\n\t}", "public String getPhoneNumber(){\n\t\t \n\t\t TelephonyManager mTelephonyMgr;\n\t\t mTelephonyMgr = (TelephonyManager)\n\t\t activity.getSystemService(Context.TELEPHONY_SERVICE); \n\t\t return mTelephonyMgr.getLine1Number();\n\t\t \n\t\t}", "public void registerOutput( String pinName ) {\n\t//Bug: we do nothing about this here, it'll get more fun later\n }", "public static int getPCM(String name) {\n return mapPCM.get(name);\n }", "public native int kbAreaGetNumber();", "public final String getSerial(){\n return this.peripheralSerial;\n }", "public int getStreetNumber()\n \t{\n \t\treturn this.streetNumber;\n \t}", "public void loginPin(){\n\t\tstate = ATM_State.LOGINPIN;\n\t\tgui.setDisplay(\"Enter your account PIN: \\n\");\n\t}", "AnalogPin createAnalogPin();", "public Integer get(String name){\n\t\treturn blocks.getLast().get(name);\n\t}", "public void GPIOWrite(int pin, int data)\n\t{\n\t\tint gpioMask = 1 << 4;\n\t\tint meta = gpioMask | (pin);\n\t\twrite(meta);\n\t\twrite(data);\n\t}", "java.lang.String getPhoneNumber();", "java.lang.String getPhoneNumber();", "java.lang.String getPhoneNumber();", "protected Widget attachPinWidget(String node, String pin) {\n if (pin.endsWith(PIN_ID_DEFAULT_SUFFIX)) {\n return null;\n }\n EDMPinWidget widget = new EDMPinWidget(this);\n ((EDMNodeWidget) findWidget(node)).attachPinWidget(widget);\n revalidate();\n widget.getActions().addAction(createObjectHoverAction());\n widget.getActions().addAction(createSelectAction());\n\n return widget;\n }", "public int getStreetNo() {\n return streetNo;\n }", "private String getProjectNumber(ZipFile zipFile) throws ZipException\n {\n Pattern pattern = Pattern.compile( \"^P-[\\\\dA-F]{4}\", Pattern.CASE_INSENSITIVE);\n for (FileHeader fileHeader : zipFile.getFileHeaders ( ) ) {\n Matcher matcher = pattern.matcher(fileHeader.getFileName());\n if (matcher.find()) {\n return matcher.group();\n }\n }\n \n throw new PlcRuntimeException(\"Error determining project number.\");\n }" ]
[ "0.72068554", "0.70561844", "0.69067633", "0.68641615", "0.6381593", "0.62909275", "0.6213005", "0.61833775", "0.60353523", "0.59711593", "0.5882023", "0.5828697", "0.5717853", "0.5598607", "0.556245", "0.5553296", "0.5543528", "0.54023665", "0.53406495", "0.5319595", "0.5307791", "0.5291065", "0.522709", "0.5202251", "0.5187767", "0.51578265", "0.50967586", "0.5095291", "0.50524294", "0.50362635", "0.4940202", "0.49105734", "0.48339263", "0.4739031", "0.46925792", "0.46925792", "0.46886992", "0.46667233", "0.4659837", "0.46371633", "0.46300706", "0.46289986", "0.4623413", "0.46205077", "0.46177486", "0.46116665", "0.45921716", "0.4590064", "0.45641753", "0.45489842", "0.45358166", "0.45271713", "0.4505907", "0.44996864", "0.4490999", "0.44860646", "0.4467328", "0.44649497", "0.44619292", "0.44478118", "0.4445774", "0.4428853", "0.4423061", "0.44217348", "0.44154316", "0.43991032", "0.4385417", "0.4380882", "0.43607277", "0.43445346", "0.43287215", "0.4289782", "0.42753634", "0.42745438", "0.4272904", "0.42725754", "0.4264651", "0.4226009", "0.4213725", "0.42120308", "0.41993886", "0.41993886", "0.41757268", "0.41724238", "0.4171529", "0.416758", "0.41610596", "0.41574818", "0.4155298", "0.4150224", "0.41462457", "0.41402572", "0.41348827", "0.41238123", "0.41216984", "0.41216984", "0.41216984", "0.4109931", "0.4103901", "0.41008517" ]
0.61380106
8
The getIOReg() method retrieves the IO register number for the given IO Register name for this microcontroller.
public int getIOReg(String n) { return layout.getIOReg(n); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String getIORegName(int ioreg) {\n return ioreg_name[ioreg];\n }", "public int get_ioreg(int index)\n {\n if ((index < 0) || (index >= IO_REG_COUNT))\n return 0;\n else\n return getDataMemory(index+IO_REG_COUNT);\n }", "public int getRegister(int regInd) {\n return regs[regInd];\n }", "public int getReg(int reg) {\r\n\t\tswitch (reg) {\r\n\t\t\tcase 0:\r\n\t\t\t\treturn m_registers[R0];\r\n\t\t\tcase 1:\r\n\t\t\t\treturn m_registers[R1];\r\n\t\t\tcase 2:\r\n\t\t\t\treturn m_registers[R2];\r\n\t\t\tcase 3:\r\n\t\t\t\treturn m_registers[R3];\r\n\t\t\tcase 4:\r\n\t\t\t\treturn m_registers[R4];\r\n\t\t\tdefault:\r\n\t\t\t\t// Return default (should never be reached)\r\n\t\t\t\treturnError(ERROR_REG_DNE);\r\n\t\t\t\treturn 0;\r\n\t\t}\r\n\t}", "public int IORegCount() { return IO_REG_COUNT; }", "public int getReg() {\n\t\treturn -1;\n\t}", "public int getRegNum() {\n return regNum;\n }", "private int get_sreg() { return get_ioreg(SREG); }", "public java.lang.String getRegNumber() {\r\n return regNumber;\r\n }", "public long getRegType() {\r\n return regType;\r\n }", "public String getRegisterId() {\n\t return this.regId;\n\t }", "public String getRegName() {\r\n\t\treturn regName;\r\n\t}", "public boolean hasIOReg(String n) {\n return layout.hasIOReg(n);\n }", "public Object getRegister(Register r) {\n int i = r.getNumber(); \n if (s.registers[i] == null) {\n System.err.println(method+\" ::: Reg \"+i+\" is null\");\n System.err.println(this.bb.fullDump());\n }\n if(TRACE_REGISTERS) System.out.println(this.method + \": getting \" + i + \" <- \" + s.registers[i] + \" from \"\n + Arrays.asList(s.registers));\n return s.registers[i];\n }", "private static Integer readRegister(RegisgerName_Value<String, Integer> pair)\n\t{\n\t\tif (pair != null && registerFile.containsKey(pair.getKey()))\n\t\t{\n\t\t\treturn registerFile.get(pair.getKey());\n\t\t}\n\t\treturn null;\n\t}", "private String getVehicleRegNumber() {\n LOGGER.info(\"Please type the vehicle registration number \"\n + \"and press enter key\");\n return inputReaderUtil.readVehicleRegistrationNumber();\n }", "public String getIOType() {\n return this.iOType;\n }", "public String getIOType() {\n return this.iOType;\n }", "public String getIOType() {\n return this.iOType;\n }", "public String getRegno()\n {\n return regno;\n }", "public int getRequiredRegister()\n\t{\n\t\treturn requiredRegister;\n\t}", "public Long getRegId() {\n return regId;\n }", "public String getRegTypeName() {\r\n\t\treturn regTypeName;\r\n\t}", "public Register.Res getRegisterRes() {\n if (rspCase_ == 7) {\n return (Register.Res) rsp_;\n }\n return Register.Res.getDefaultInstance();\n }", "public int getNum() {\n System.out.println(\"There are altogether \" + num + \" registers created\");\n return num;\n }", "public java.lang.String getRegistNo() {\n return registNo;\n }", "public static String getRegistryValue(String registryName)\n {\n String registyValue = \"\";\n try\n {\n registyValue = (String)Registry.getVar(registryName);\n }\n catch(Exception e)\n {\n logger.debug(e);\n } \n return registyValue;\n }", "public MapReader getIo() {\n\t\treturn io;\n\t}", "public String getRegTypeId() {\r\n\t\treturn regTypeId;\r\n\t}", "public static int getCTRL(String name) {\n return mapCTRL.get(name);\n }", "RegisterParam getRegister();", "java.lang.String getRegistId();", "public Register.Req getRegisterReq() {\n return instance.getRegisterReq();\n }", "public String getRegisterNumber() { return registerNumber; }", "abstract public String getRegNum();", "public String getDeviceId() {\n String info = \"\";\n try {\n Uri queryurl = Uri.parse(REGINFO_URL + CHUNLEI_ID);\n ContentResolver resolver = mContext.getContentResolver();\n info = resolver.getType(queryurl);\n if (null == info && null != mContext) {\n info = getIMEI();\n }\n if (null == info) {\n info = \"\";\n }\n } catch (Exception e) {\n System.out.println(\"in or out strean exception\");\n }\n return info;\n }", "public void out(String reg) {\r\n// System.out.println(Arrays.toString(registerName.toArray()));\r\n// System.out.println(Arrays.toString(registerValues.toArray()));\r\n registerRegister.add(reg);\r\n int pos = registerRegister.indexOf(reg);\r\n int element = Integer.parseInt(registerValues.get(pos));\r\n System.out.printf(\"The register values of %s is %d\", reg, element);\r\n System.out.println();\r\n }", "public static int getDIO(String name) {\n return mapDIO.get(name);\n }", "public Register.Res getRegisterRes() {\n return instance.getRegisterRes();\n }", "public Unit getComponentValueByName(String name){\r\n switch(name){\r\n case \"R0\":\r\n return this.getCpu().getControlUnit().getGeneralPurposeRegister(0);\r\n case \"R1\":\r\n return this.getCpu().getControlUnit().getGeneralPurposeRegister(1);\r\n case \"R2\":\r\n return this.getCpu().getControlUnit().getGeneralPurposeRegister(2); \r\n case \"R3\":\r\n return this.getCpu().getControlUnit().getGeneralPurposeRegister(3);\r\n case \"X1\":\r\n return this.getCpu().getControlUnit().getIndexRegister(1);\r\n case \"X2\":\r\n return this.getCpu().getControlUnit().getIndexRegister(2);\r\n case \"X3\":\r\n return this.getCpu().getControlUnit().getIndexRegister(3);\r\n case \"MAR\":\r\n return this.getMemory().getMAR();\r\n case \"MBR\":\r\n return this.getMemory().getMBR();\r\n case \"PC\":\r\n return this.getCpu().getControlUnit().getProgramCounter();\r\n case \"CC\":\r\n return this.getCpu().getControlUnit().getConditionCodeRegister();\r\n case \"IR\":\r\n return this.getCpu().getControlUnit().getInstructionRegister();\r\n default:\r\n return new Unit(13,0);\r\n \r\n } \r\n }", "public Vehicle getRegNo(String regNo) {\n\t\tfor (int i = 0; i < vehicles.size(); i++) {\n\t\t\tVehicle temp = vehicles.get(i);\n\n\t\t\tif (temp.getRegNo().equals(regNo)) {\n\t\t\t\treturn temp;\n\t\t\t}\n\t\t}\n\n\t\treturn null;\n\t}", "public long getRegisterId();", "private static int requestRegNum() { // From Assignment2 Starter Code by Dave Houtman\r\n\t\treturn (Integer.parseInt(getResponseTo(\"Enter registration number : \")));\r\n\t}", "private void setRegNum(int regNum) {\n this.regNum = regNum;\n }", "public String getInterruptName(int inum) {\n return interrupt_name[inum];\n }", "@Override\n default ResourceLocation getRegistryName() {\n return getBlock().getRegistryName();\n }", "public int getRegAppid() {\n\t\t\treturn regAppid;\n\t\t}", "public String getRegisterId() {\r\n return registerId;\r\n }", "public String getRegisterId() {\r\n return registerId;\r\n }", "public com.bingo.server.msg.REQ.RegistryRequest getRegistry() {\n return registry_ == null ? com.bingo.server.msg.REQ.RegistryRequest.getDefaultInstance() : registry_;\n }", "public LinearRegister getRegister(int index)\n {\n if (index < 0 || index >= registers.size())\n {\n return new LinearRegister(\"0\");\n }\n \n return registers.get(index);\n }", "com.bingo.server.msg.REQ.RegistryRequest getRegistry();", "public Integer getRegistid() {\n return registid;\n }", "Register.Res getRegisterRes();", "public com.bingo.server.msg.REQ.RegistryRequest getRegistry() {\n if (registryBuilder_ == null) {\n return registry_ == null ? com.bingo.server.msg.REQ.RegistryRequest.getDefaultInstance() : registry_;\n } else {\n return registryBuilder_.getMessage();\n }\n }", "private String getReg ( String reg ) throws EVASyntaxException\r\n\t{\r\n\t\tString actual = reg;\r\n\t\tif ( reg.charAt(0) != '$' )\r\n\t\t{\r\n\t\t\t\t\t\tthrow ( new EVASyntaxException (\r\n\t\t\t\"Register must start with dollar sign\" ) );\r\n\t\t}\r\n\t\telse\r\n\t\t{\r\n\t\t\t//quitar el dolar\r\n\t\t\tactual = actual.substring(1,actual.length());\r\n\t\t}\r\n\t\tif ( actual.substring(0,2).equalsIgnoreCase(\"ra\") )\r\n\t\t{\r\n\t\t\treturn ra;\r\n\t\t}\r\n\t\telse if ( actual.charAt(0) == 'r' )\r\n\t\t{\r\n\t\t\t//quitar la r\r\n\t\t\tactual = actual.substring(1,actual.length());\r\n\t\t\t//a ve si es numero\r\n\t\t\tint regnum;\r\n\t\t\ttry\r\n\t\t\t{\r\n\t\t\t\tregnum = Integer.valueOf(actual).intValue();\r\n\t\t\t\treturn r[regnum];\r\n\t\t\t}\r\n\t\t\tcatch ( NumberFormatException NumExc )\r\n\t\t\t{\r\n\t\t\t\tthrow( new EVASyntaxException(\"Wrong register format\"));\r\n\t\t\t}\r\n\t\t}\r\n\t\telse if ( actual.charAt(0) == 'v' )\r\n\t\t{\r\n\t\t\t//quitar la v\r\n\t\t\tactual = actual.substring(1,actual.length());\r\n\t\t\t//a ve si es numero\r\n\t\t\tint regnum;\r\n\t\t\ttry\r\n\t\t\t{\r\n\t\t\t\tregnum = Integer.valueOf(actual).intValue();\r\n\t\t\t\treturn v[regnum];\r\n\t\t\t}\r\n\t\t\tcatch ( NumberFormatException NumExc )\r\n\t\t\t{\r\n\t\t\t\tthrow( new EVASyntaxException(\"Wrong register format\"));\r\n\t\t\t}\r\n\t\t}\r\n\t\telse if ( actual.charAt(0) == 'a' )\r\n\t\t{\r\n\t\t\t//quitar la r\r\n\t\t\tactual = actual.substring(1,actual.length());\r\n\t\t\t//a ve si es numero\r\n\t\t\tint regnum;\r\n\t\t\ttry\r\n\t\t\t{\r\n\t\t\t\tregnum = Integer.valueOf(actual).intValue();\r\n\t\t\t\treturn a[regnum];\r\n\t\t\t}\r\n\t\t\tcatch ( NumberFormatException NumExc )\r\n\t\t\t{\r\n\t\t\t\tthrow( new EVASyntaxException(\"Wrong register format\"));\r\n\t\t\t}\r\n\t\t}\r\n\t\telse if ( actual.substring(0,3).equalsIgnoreCase(\"exc\") )\r\n\t\t{\r\n\t\t\treturn exc;\r\n\t\t}\r\n\t\telse if ( actual.substring(0,3).equalsIgnoreCase(\"obj\") )\r\n\t\t{\r\n\t\t\treturn obj;\r\n\t\t}\r\n\t\telse\r\n\t\t{\r\n\t\t\tthrow( new EVASyntaxException(\"Wrong register format\"));\r\n\t\t}\r\n\t}", "public static String getDeviceRegId(String orderNo ){\n\t\tString deviceregId = \"\";\n\t\ttry {\n\t\t\tConnection connection = DBConnection.createConnection();\n\t\t\tPreparedStatement preparedStatement = null;\n\t\t\tResultSet resultSet = null;\n\t\t\tSQL:{\n\t\t\t\tString sql = \"SELECT device_reg_id FROM fapp_devices\"\n\t\t\t\t\t\t+\" WHERE email_id = (SELECT user_mail_id FROM fapp_orders\"\n\t\t\t\t\t\t+ \" WHERE order_id = (SELECT order_id from fapp_orders where order_no = ?) )\";\n\t\t\t\ttry {\n\t\t\t\t\tpreparedStatement = connection.prepareStatement(sql);\n\t\t\t\t\tpreparedStatement.setString(1, orderNo);\n\t\t\t\t\tresultSet = preparedStatement.executeQuery();\n\t\t\t\t\tif(resultSet.next()){\n\t\t\t\t\t\tdeviceregId = resultSet.getString(\"device_reg_id\");\n\t\t\t\t\t}\n\t\t\t\t} catch (Exception e) {\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}finally{\n\t\t\t\t\tif(connection !=null){\n\t\t\t\t\t\tconnection.close();\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t} catch (Exception e) {\n\t\t\t// TODO: handle exception\n\t\t}\n\t\treturn deviceregId;\n\t}", "public java.lang.String getRegaddress() {\r\n return localRegaddress;\r\n }", "public Integer getRegItemUid() {\n return regItemUid;\n }", "public void setRegName(String regName) {\r\n\t\tthis.regName = regName;\r\n\t}", "private Access getAvailableReg(Var3 variable) {\n Integer index = getVarIndex(variable);\n HashSet<Integer> description = addrDescriptor.get(index);\n if(!description.isEmpty()) {\n //take the first good register\n for(Integer i : description)\n return new Reg(getArmRegNum(i));\n }\n return null;\n }", "public byte read8(int ireg)\n {\n return this.read(ireg, 1)[0];\n }", "public String getRegIp() {\n\t\t\treturn regIp;\n\t\t}", "public String getDeviceRegistration() {\n return this.deviceRegistration;\n }", "public IRegistry getRegistry(String bundleName, String regName) {\n\n\t\tIRegistry reg = null;\n\t\ttry {\n\t\t\t// get the reg bundle\n\t\t\tMap regBundles = (Map)getProperty(\"reg_bundles\");\n\t\t\tRegistryBundle bundle = (RegistryBundle)\n\t\t\t\tregBundles.get(bundleName);\n\n\t\t\tif (bundle == null) {\n\t\t\t\tthrow new NullPointerException(\n\t\t\t\t\t\t\"No registry bundle named \" + bundleName);\n\t\t\t}\n\n\t\t\t// get the registry by name\n\t\t\treg = bundle.getRegistry(regName); \n\n\t\t\t// check out a new DB connection\n\t\t\tString dbId = bundle.getDbId(regName);\n\t\t\tDbPersistence conn = bundle.getDbConn(getThreadKey(), dbId);\n\n\t\t\t/*\n\t\t\tlogDebugMsg(\"Task.getRegistry: Checked out DB conn\\n\\tREGISTRY: \" + \n\t\t\t\t\tregName +\n\t\t\t\t\t\"\\n\\tBUNDLE: \" + bundleName + \n\t\t\t\t\t\"\\n\\tDB ID: \" + dbId);\n\t\t\t*/\n\n\t\t\t// set the registry's DB connection to the \n\t\t\t// checked out conn.\n\t\t\treg.setDbConn(conn);\n\n\t\t} catch (SQLException sex) {\n\t\t\tString msg = \"Unable to get registry.\";\n\t\t\treg = null;\n\t\t}\n\n\t\treturn reg;\n\t}", "public int getFirstRegisterNumber() {\n return firstRegisterNumber;\n }", "com.google.protobuf.ByteString getRegistIdBytes();", "public byte read_user_register() throws IOException {\n return (byte) HTU21D.READ_USER_REG.read(device);\n }", "public String readChipID() {\r\n return mFactoryBurnUtil.readChipID();\r\n }", "public String getRegIp() {\n return regIp;\n }", "public byte ReadInputs () throws IOException {\n return mDevice.readRegByte(GPIO);\n }", "public final int getDevice()\n\t{\n\t\treturn address & 0xFF;\n\t}", "@VisibleForTesting\n int getResourceId() {\n int resId = getResources().getIdentifier(\n REGULATORY_INFO_RESOURCE, \"drawable\", getPackageName());\n\n // When hardware sku property exists, use regulatory_info_<sku> resource if valid.\n final String sku = getSku();\n if (!TextUtils.isEmpty(sku)) {\n String regulatory_info_res = REGULATORY_INFO_RESOURCE + \"_\" + sku.toLowerCase();\n int id = getResources().getIdentifier(\n regulatory_info_res, \"drawable\", getPackageName());\n if (id != 0) {\n resId = id;\n }\n }\n\n // When hardware coo property exists, use regulatory_info_<sku>_<coo> resource if valid.\n final String coo = getCoo();\n if (!TextUtils.isEmpty(coo) && !TextUtils.isEmpty(sku)) {\n final String regulatory_info_coo_res =\n REGULATORY_INFO_RESOURCE + \"_\" + sku.toLowerCase() + \"_\" + coo.toLowerCase();\n final int id = getResources().getIdentifier(\n regulatory_info_coo_res, \"drawable\", getPackageName());\n if (id != 0) {\n resId = id;\n }\n }\n return resId;\n }", "@ApiModelProperty(required = true, value = \"The Registry Name, Major and Minor version used in MessageID construction.\")\n @JsonProperty(\"Registry\")\n public String getRegistry() {\n return registry;\n }", "public XnioIoThread getIoThread() {\n return readable.getIoThread();\n }", "public byte ReadOutputs() throws IOException {\n return mDevice.readRegByte(OLAT);\n }", "public void set_ioreg(int index, int RHS) throws AVR.RuntimeException\n {\n if ((index < 0) || (index >= IO_REG_COUNT))\n throw new RuntimeException(Constants.Error(Constants.INVALID_IO_REGISTER)+\" Register: \" +Utils.hex(index,4));\n else\n setDataMemory(index+IO_REG_COUNT,RHS);\n //data_memory[index+IO_REG_COUNT].setValue(RHS);\n }", "public int GeneralRegCount() { return GENERAL_REG_COUNT; }", "public Register.Req getRegisterReq() {\n if (reqCase_ == 7) {\n return (Register.Req) req_;\n }\n return Register.Req.getDefaultInstance();\n }", "public RegWindow getRegisterWindow()\n {\n synchronized (this.lock)\n {\n return this.registerWindow;\n }\n }", "public String getAircraftRegistry() {\n return aircraft.getRegistry();\n }", "public String getRegisterChannel() {\r\n return registerChannel;\r\n }", "public Registry registerEnum(EnumIO<?> eio, int id);", "public UserIO getUserIO() {\n\t\treturn this.userIO;\n\t}", "private InterestRegistration registerInterest(InterestRegistration reg) throws IOException {\n setupTimers();\n if (Log.isLoggable(Log.FAC_NETMANAGER, Level.FINEST)) Log.finest(Log.FAC_NETMANAGER, formatMessage(\"registerInterest for {0}, and obj is \" + _myInterests.hashCode()), reg.interest.name());\n synchronized (_myInterests) {\n _myInterests.add(reg.interest, reg);\n }\n return reg;\n }", "public int register() \n { \n File file = new File(MSB_REGISTION_FILE);\n if(!file.exists()) \n {\n LOGGER.info(\"Stop registering as can't find msb registion file:\" + file.getAbsolutePath()); \n return CommonConstant.MsbRegisterCode.MSDB_REGISTER_FILE_NOT_EXISTS;\n }\n\n Map<?, ?> msbRegistionBodyMap = getMsbRegistrationData();\n if(null == msbRegistionBodyMap)\n {\n LOGGER.info(\"Reading data from msb registion file failed:\" + file.getAbsolutePath()); \n return CommonConstant.MsbRegisterCode.MSDB_REGISTER_FILE_NOT_EXISTS;\n }\n\n LOGGER.info(\"Registering body: \" + JsonUtil.toJson(msbRegistionBodyMap));\n\n bRegistrationStatus = sendRequest(msbRegistionBodyMap);\n \n return bRegistrationStatus \n ? CommonConstant.MsbRegisterCode.MSDB_REGISTER_SUCESS \n : CommonConstant.MsbRegisterCode.MSDB_REGISTER_FAILED;\n }", "public Integer getRegbyid()\n {\n return regbyid; \n }", "@HTTP(\n method = \"GET\",\n path = \"/apis/config.openshift.io/v1/operatorhubs/{name}\"\n )\n @Headers({ \n \"Accept: */*\"\n })\n KubernetesCall<OperatorHub> readOperatorHub(\n @Path(\"name\") String name);", "public void setRegNumber(java.lang.String regNumber) {\r\n this.regNumber = regNumber;\r\n }", "public @Nullable Op getOp(int address) {\n return getTemplateNode(address).getOp();\n }", "public int getRegistrationIndex() {\n\t\treturn m_registrationIndex;\n\t}", "public void setRegType(long regType) {\r\n this.regType = regType;\r\n }", "public long getRegTime() {\n\t\t\treturn regTime;\n\t\t}", "private String getRegValueScorboard(String strReg) {\n\t\tString _strTemp = \"\";\n\t\tif (strReg.contains(\"R\") || strReg.contains(\"F\")) {\n\t\t\tif (strReg.length() == 2) {\n\t\t\t\t_strTemp = strReg.substring(1, 2);\n\t\t\t} else if (strReg.length() == 3) {\n\t\t\t\t_strTemp = strReg.substring(1, 3);\n\t\t\t}\n\t\t}\n\t\treturn _strTemp;\n\t}", "public ControllerRegister getCr() {\n return cr;\n }", "@ApiModelProperty(value = \"设备id\")\n\tpublic String getRegistrationId() {\n\t\treturn registrationId;\n\t}", "public String getRegtime() {\n return regtime;\n }", "@Override\r\n\tpublic FPGAResource getHardwareResourceUsage() {\r\n\t\tint lutCount = 0;\r\n\r\n\t\tValue inputValue = getDataPort().getValue();\r\n\t\tfor (int i = 0; i < inputValue.getSize(); i++) {\r\n\t\t\tBit inputBit = inputValue.getBit(i);\r\n\t\t\tif (!inputBit.isConstant() && inputBit.isCare()) {\r\n\t\t\t\tlutCount++;\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\tFPGAResource hwResource = new FPGAResource();\r\n\t\thwResource.addLUT(lutCount);\r\n\r\n\t\treturn hwResource;\r\n\t}", "public RegistryType getType() {\n return type;\n }", "public Integer getRegisterTime() {\n return registerTime;\n }" ]
[ "0.75345457", "0.71572804", "0.63783157", "0.62976927", "0.60675323", "0.58784044", "0.57070243", "0.5656056", "0.56413466", "0.54604274", "0.53990597", "0.53908896", "0.53228146", "0.5276711", "0.52044666", "0.5179526", "0.51139295", "0.51109815", "0.51109815", "0.5106269", "0.50745153", "0.50331676", "0.5005573", "0.49820969", "0.49762696", "0.4974993", "0.49459592", "0.49336195", "0.4904577", "0.48942703", "0.48887503", "0.4882715", "0.48767552", "0.48535103", "0.48472834", "0.48376498", "0.48362994", "0.48056382", "0.48015714", "0.4799036", "0.47807932", "0.47430286", "0.47365338", "0.47309336", "0.47281075", "0.47125813", "0.47066605", "0.4691708", "0.4691708", "0.46875232", "0.46735302", "0.4668769", "0.4668351", "0.4656068", "0.46509218", "0.46456382", "0.46435493", "0.4639436", "0.46096715", "0.4608086", "0.46074173", "0.45857525", "0.4579267", "0.4572511", "0.45710617", "0.456659", "0.45573583", "0.45414695", "0.4531623", "0.4523611", "0.45218226", "0.45015416", "0.45005924", "0.45005292", "0.4491409", "0.44913134", "0.44853917", "0.44846132", "0.4483275", "0.4474634", "0.44698465", "0.44660574", "0.4461957", "0.44597363", "0.44522372", "0.44381452", "0.4437749", "0.4408772", "0.4403521", "0.4390474", "0.43776393", "0.4370564", "0.4354454", "0.43415436", "0.43287742", "0.43201712", "0.43183267", "0.43137908", "0.43062213", "0.4301393" ]
0.74011844
1
The hasIOReg() method queries whether the IO register exists on this device.
public boolean hasIOReg(String n) { return layout.hasIOReg(n); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public boolean hasRegistry() {\n return registry_ != null;\n }", "boolean hasDevice();", "boolean hasRegistry();", "public boolean hasRegistry() {\n return registryBuilder_ != null || registry_ != null;\n }", "public int IORegCount() { return IO_REG_COUNT; }", "public boolean isBusy (int reg) {\n\t\treturn finalized[reg].isBusy();\n\t}", "boolean hasModbusProc();", "boolean hasDeviceId();", "boolean hasDeviceId();", "public boolean accessRegister(){\n\t\treturn accessRegister;\n\t}", "boolean isPeripheralAccess();", "public static boolean isIOSDriver()\n\t{\n\t\treturn LocalDriverManagerMobile.INSTANCE.getDriver() instanceof IOSDriver;\n\t}", "@java.lang.Override\n public boolean hasRegistrationRequest() {\n return registrationRequest_ != null;\n }", "public boolean isRegbyidInitialized() {\n return regbyid_is_initialized; \n }", "public boolean isRegisterCell(EdifCell cell) {\n return XilinxTools.isRegisterCell(cell);\n }", "public boolean isSetRegistered() {\n return EncodingUtils.testBit(__isset_bitfield, __REGISTERED_ISSET_ID);\n }", "public boolean hasRoboticon(){\r\n\t\treturn roboticon != null;\r\n\t}", "boolean hasPhy();", "protected boolean registerSensor() {\n final android.hardware.Sensor sensor = mSensorConfig.getUnderlyingSensor();\n final int reportingDelay = mSensorConfig.getReportingDelayUs();\n final int samplingDelay = mSensorConfig.getSamplingDelayUs();\n final SensorManager sensorManager = (SensorManager) mContext.getSystemService(Context.SENSOR_SERVICE);\n isRegistered = sensorManager.registerListener(this, sensor, samplingDelay, reportingDelay);\n return isRegistered;\n }", "public boolean isRegistered()\n {\n return getRegistrationState().equals(RegistrationState.REGISTERED);\n }", "boolean hasRegistrationRequest();", "@java.lang.Override\n public boolean hasDeviceSettings() {\n return deviceSettings_ != null;\n }", "public boolean canRegister() {\n return true;\n }", "public boolean hasRegistrationRequest() {\n return registrationRequestBuilder_ != null || registrationRequest_ != null;\n }", "public boolean isSetDeviceName() {\n return this.deviceName != null;\n }", "static synchronized boolean isRegistered(Tool tool) {\n\t\treturn getTool(tool.getItem()) != null;\n\t}", "public boolean asBoolean() {\r\n\t\ttry {\r\n\t\t\tboolean isreg = home.getConnection().isRegistered(objectName);\r\n\t\t\tif (logger.isLoggable(Level.FINER))\r\n\t\t\t\tlogger.log(Level.FINER, \"isRegistered \" + this + \" -> \" + isreg);\r\n\t\t\treturn isreg;\r\n\t\t} catch (IOException e) {\r\n\t\t\t// TODO clean exception before logging\r\n\t\t\tif (logger.isLoggable(Level.FINE))\r\n\t\t\t\tlogger.log(Level.INFO, \"exception \" + this + \" -> false\", e);\r\n\t\t\treturn false;\r\n\t\t}\r\n\t}", "boolean hasGcsFuseCsiDriverConfig();", "@java.lang.Override\n public boolean hasRegistrationResponse() {\n return registrationResponse_ != null;\n }", "public boolean isSetRegisterTime() {\n return __isset_bit_vector.get(__REGISTERTIME_ISSET_ID);\n }", "public boolean exists() {\n try {\n return open() != null;\n } catch (IOException e) {\n return false;\n }\n }", "public boolean hasDeviceId() {\n return ((bitField0_ & 0x00000001) == 0x00000001);\n }", "boolean hasInodeFile();", "public boolean hasDeviceId() {\n return ((bitField0_ & 0x00000001) == 0x00000001);\n }", "boolean hasResource();", "public boolean registered(String place) {\n return hotels != null && hotels.size() > 0;\n }", "public boolean isRegistered(Person person) {\n // TODO 2\n return members.contains(person);\n }", "public final boolean hasOpLock() {\n\t\treturn m_oplock != null ? true : false;\n\t}", "public boolean registersService() {\n return this.sr.registersService(this.m_oService);\n }", "boolean hasResourceType();", "boolean hasSaveSensor();", "public boolean hasFpu() {\r\n boolean hasfpu = false;\r\n\r\n if(isMips32()) {\r\n hasfpu = pic_.hasFPU();\r\n } else {\r\n // The .PIC files don't encode this the same way for Arm devices, so we have to dig for\r\n // it ourselves.\r\n\r\n // We don't need the \"edc:\" prefix here since we're using the MPLAB X API.\r\n Node peripheralListNode = pic_.first(\"PeripheralList\");\r\n\r\n if(null != peripheralListNode && peripheralListNode.hasChildNodes()) {\r\n NodeList children = peripheralListNode.getChildNodes();\r\n\r\n for(int i = 0; i < children.getLength(); ++i) {\r\n Node child = children.item(i);\r\n\r\n // We do need the \"edc:\" prefix here because these are not a part of the\r\n // MPLAB X API.\r\n if(!child.getNodeName().equals(\"edc:Peripheral\") || !child.hasAttributes()) {\r\n continue;\r\n }\r\n\r\n Node attributeNode = child.getAttributes().getNamedItem(\"edc:cname\");\r\n\r\n if(null == attributeNode || !attributeNode.getNodeValue().equals(\"FPU\")) {\r\n continue;\r\n }\r\n\r\n hasfpu = true;\r\n }\r\n }\r\n }\r\n\r\n return hasfpu;\r\n }", "boolean hasIosAppDataStream();", "public boolean isPushAvailable() {\n checkUsbLibState();\n return listDevices().size() > 0;\n }", "public boolean isIsPhysicalDevice() {\n return isPhysicalDevice;\n }", "boolean hasRegistrationResponse();", "@Override\r\n\tpublic boolean hasPendingAsyncInterrupt() {\r\n\t\treturn this.hasFailedAccessAttempt && this.tapeIo != null;\r\n\t}", "public boolean hasRegistrationResponse() {\n return registrationResponseBuilder_ != null || registrationResponse_ != null;\n }", "@java.lang.Override\n public boolean hasWidevine() {\n return widevine_ != null;\n }", "boolean hasHandle();", "boolean hasHandle();", "boolean hasHandle();", "public boolean isDeviceIdentifierIMEINoLabelPresent() {\r\n\t\treturn isElementPresent(vehicleName.replace(\"Vehicle Name\", \"Device Identifier / IMEI No.\"), SHORTWAIT);\r\n\t}", "boolean hasRfIdentifier();", "public boolean resourceExists(TIdentifiable resource) {\r\n return (m_resources.getIndex(resource) >= 0);\r\n }", "boolean isHasResources();", "public boolean isSetAnio() {\r\n return org.apache.thrift.EncodingUtils.testBit(__isset_bitfield, __ANIO_ISSET_ID);\r\n }", "boolean hasRead();", "boolean hasCharacteristicDescription();", "public void setWriteReg(){\r\n\t\twriteRegVal = read_writeReg;\r\n\t}", "public boolean isSetDeviceNo() {\n return this.DeviceNo != null;\n }", "public Boolean IsIOrequest() {\n Random r = new Random();\n int k = r.nextInt(100);\n //20%\n if (k <= 20) {\n return true;\n }\n return false;\n }", "boolean hasHasEnergyCF();", "public static boolean register() {\n try {\n buildSocket();\n ClientService.sendMessageToServer(connectionToServer, ClientService.requestRegistration());\n ClientService.receiveMessageFromServer(connectionToServer);\n closeSocket();\n } catch (Exception e) {\n e.printStackTrace();\n }\n return !ClientService.getLastMessageFromServer().contains(XML_Manager.XML_NODES.Error.toString());\n }", "@Override\n\tpublic boolean isBusy() throws DeviceException {\n\t\treturn false;\n\t}", "public boolean hasDisposableResources()\n {\n return this.disposableObjects.isEmpty();\n }", "public static boolean isCallLogIOFilterEnabled() {\n String operatorSpec = SystemProperties.get(\"persist.operator.optr\", \"\");\n String operatorSeg = SystemProperties.get(\"persist.operator.seg\", \"\");\n boolean isCtOperatorA = operatorSpec.equals(\"OP09\") && operatorSeg.equals(\"SEGDEFAULT\");\n // Return true on OP09 or OP02 mode\n if (operatorSpec.equals(\"OP02\") || isCtOperatorA) {\n return true;\n }\n return false;\n }", "boolean exists(String nickName) {\n // To avoid file scanning\n if (this.isOnline(nickName)) return true;\n try {\n this.loadUserRegistrationInfo(nickName);\n return true;\n } catch (NoSuchElementException e) {\n return false;\n }\n }", "private boolean isSupportedInternal() {\n boolean z = false;\n synchronized (this.mLock) {\n if (this.mServiceManager == null) {\n Log.e(TAG, \"isSupported: called but mServiceManager is null!?\");\n return false;\n }\n try {\n if (this.mServiceManager.getTransport(IWifi.kInterfaceName, HAL_INSTANCE_NAME) != (byte) 0) {\n z = true;\n }\n } catch (RemoteException e) {\n Log.wtf(TAG, \"Exception while operating on IServiceManager: \" + e);\n return false;\n }\n }\n }", "public boolean hasSaveSensor() {\n return saveSensor_ != null;\n }", "boolean hasGcePersistentDiskCsiDriverConfig();", "public boolean hasPhy() {\n return ((bitField0_ & 0x00000002) == 0x00000002);\n }", "public boolean isDeviceIdentifierIMEINoFieldPresent() {\r\n\t\treturn isElementPresent(vehicleNameField.replace(\"vehicle_name\", \"imei\"), SHORTWAIT);\r\n\t}", "private void checkForIOInterrupt() {\r\n\t\t// If there is no interrupt to process, do nothing\r\n\t\tif (m_IC.isEmpty()) {\r\n\t\t\treturn;\r\n\t\t}\r\n\t\t\r\n\t\t// Retreive the interrupt data\r\n\t\tint[] intData = m_IC.getData();\r\n\t\t\r\n\t\t// Report the data if in verbose mode\r\n\t\tif (m_verbose) {\r\n\t\t\tSystem.out.println(\"CPU received interrupt: type=\" + intData[0]\r\n\t\t\t\t\t+ \" dev=\" + intData[1] + \" addr=\" + intData[2] + \" data=\"\r\n\t\t\t\t\t+ intData[3]);\r\n\t\t}\r\n\t\t\r\n\t\t// Dispatch the interrupt to the OS\r\n\t\tswitch (intData[0]) {\r\n\t\t\tcase InterruptController.INT_READ_DONE:\r\n\t\t\t\tm_TH.interruptIOReadComplete(intData[1], intData[2], intData[3]);\r\n\t\t\t\tbreak;\r\n\t\t\tcase InterruptController.INT_WRITE_DONE:\r\n\t\t\t\tm_TH.interruptIOWriteComplete(intData[1], intData[2]);\r\n\t\t\t\tbreak;\r\n\t\t\tdefault:\r\n\t\t\t\tSystem.out.println(\"CPU ERROR: Illegal Interrupt Received.\");\r\n\t\t\t\tSystem.exit(-1);\r\n\t\t\t\tbreak;\r\n\t\t}// switch\r\n\t\t\r\n\t}", "public boolean hasRegisteredUser() {\n return registeredUser_ != null;\n }", "boolean hasWidevine();", "public boolean hasDeviceSettings() {\n return deviceSettingsBuilder_ != null || deviceSettings_ != null;\n }", "public int get_ioreg(int index)\n {\n if ((index < 0) || (index >= IO_REG_COUNT))\n return 0;\n else\n return getDataMemory(index+IO_REG_COUNT);\n }", "public Boolean getRegistered() {\n return registered;\n }", "public String getIORegName(int ioreg) {\n return ioreg_name[ioreg];\n }", "public boolean hasPhy() {\n return ((bitField0_ & 0x00000010) == 0x00000010);\n }", "public final boolean hasFilesystemObject() {\n \treturn m_filesysObj != null ? true : false;\n }", "boolean hasI16();", "boolean hasSendReading();", "boolean hasManufacturer();", "public boolean hasReadOnly() {\n checkNotUnknown();\n return (flags & ATTR_READONLY_ANY) != 0;\n }", "@Override\r\n\t@Test(groups = {\"function\",\"setting\"} ) \r\n\tpublic boolean readDeviceInfo() {\n\t\tboolean flag = oTest.readDeviceInfo();\r\n\t\tAssertion.verifyEquals(flag, true);\r\n\t\treturn flag;\r\n\t}", "private boolean checkDeviceResourcePermissions() {\n // Check if the user agrees to access the microphone\n boolean hasMicrophonePermission = checkPermissions(\n Manifest.permission.RECORD_AUDIO,\n REQUEST_MICROPHONE);\n boolean hasWriteExternalStorage = checkPermissions(\n Manifest.permission.WRITE_EXTERNAL_STORAGE,\n REQUEST_EXTERNAL_PERMISSION);\n\n if (hasMicrophonePermission && hasWriteExternalStorage) {\n return true;\n } else {\n return false;\n }\n }", "public boolean hasInodeDirectoryIdGenerator() {\n return ((bitField0_ & 0x00008000) == 0x00008000);\n }", "public Boolean isReady()\n {\n return (sensorModules != null && !sensorModules.isEmpty());\n }", "public boolean hasWidevine() {\n return ((bitField0_ & 0x00000001) != 0);\n }", "public Boolean checkifItHasExternalMemory() {\n\t\tString state = Environment.getExternalStorageState();\n\t\tif (Environment.MEDIA_MOUNTED.equals(state)) {\n\t\t\treturn true;\n\t\t}\n\t\t\n\t\treturn false;\n\t}", "public boolean isRegist(int no) {\n\t\treturn repository.isContract(no);\n\t}", "boolean hasForRead();", "public boolean hasInodeDirectoryIdGenerator() {\n return ((bitField0_ & 0x00008000) == 0x00008000);\n }", "@Override\n public boolean hasDeviceOwner() {\n final CallerIdentity caller = getCallerIdentity();\n Preconditions.checkCallAuthorization(isDefaultDeviceOwner(caller)\n || canManageUsers(caller) || isFinancedDeviceOwner(caller)\n || hasCallingOrSelfPermission(permission.MANAGE_PROFILE_AND_DEVICE_OWNERS));\n return mOwners.hasDeviceOwner();\n }", "public boolean isExists() {\n\t\treturn exists();\n\t}", "boolean hasNodeCharacteristicId();", "boolean hasNodeCharacteristicId();", "@java.lang.Override\n public boolean hasDrmSystems() {\n return drmSystems_ != null;\n }" ]
[ "0.6370547", "0.6323503", "0.62459075", "0.6147613", "0.5871864", "0.57587004", "0.56513166", "0.5577545", "0.5577545", "0.5502069", "0.5458207", "0.5407854", "0.5392375", "0.53690994", "0.52974534", "0.5293315", "0.5284759", "0.5283311", "0.52596617", "0.5255216", "0.52523553", "0.5237484", "0.5236288", "0.5209799", "0.5199069", "0.51799566", "0.5138363", "0.51315564", "0.5127941", "0.51251996", "0.5101692", "0.5092213", "0.50893694", "0.5080018", "0.5072695", "0.50586677", "0.5036597", "0.5012088", "0.49903965", "0.49871153", "0.49814186", "0.4969428", "0.4954736", "0.49506396", "0.49185693", "0.49173665", "0.49128217", "0.491109", "0.49025008", "0.48908576", "0.48908576", "0.48908576", "0.4862112", "0.48563448", "0.48555994", "0.48298696", "0.48283648", "0.4828013", "0.47788483", "0.47658277", "0.47654244", "0.47509998", "0.4747665", "0.47466418", "0.47422326", "0.4738304", "0.47326067", "0.47316906", "0.47299477", "0.4726313", "0.4726241", "0.47234705", "0.47230178", "0.4722688", "0.4717103", "0.47143784", "0.47117025", "0.4711193", "0.47109985", "0.47038886", "0.4698452", "0.4698336", "0.46911976", "0.4686939", "0.4685937", "0.4677628", "0.46739572", "0.46735305", "0.46733707", "0.46714473", "0.4668002", "0.46654692", "0.4653331", "0.46530384", "0.4651437", "0.46499392", "0.46390036", "0.46345633", "0.46345633", "0.46316695" ]
0.7513619
0
The getInterrupt() method retrieves the interrupt number for the given interrupt name for this microcontroller
public int getInterrupt(String n) { Integer i = (Integer)interruptAssignments.get(n); if ( i == null ) throw new NoSuchElementException(StringUtil.quote(n)+" interrupt not found"); return i.intValue(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String getInterruptName(int inum) {\n return interrupt_name[inum];\n }", "InterruptResource createInterruptResource();", "private void checkForIOInterrupt() {\r\n\t\t// If there is no interrupt to process, do nothing\r\n\t\tif (m_IC.isEmpty()) {\r\n\t\t\treturn;\r\n\t\t}\r\n\t\t\r\n\t\t// Retreive the interrupt data\r\n\t\tint[] intData = m_IC.getData();\r\n\t\t\r\n\t\t// Report the data if in verbose mode\r\n\t\tif (m_verbose) {\r\n\t\t\tSystem.out.println(\"CPU received interrupt: type=\" + intData[0]\r\n\t\t\t\t\t+ \" dev=\" + intData[1] + \" addr=\" + intData[2] + \" data=\"\r\n\t\t\t\t\t+ intData[3]);\r\n\t\t}\r\n\t\t\r\n\t\t// Dispatch the interrupt to the OS\r\n\t\tswitch (intData[0]) {\r\n\t\t\tcase InterruptController.INT_READ_DONE:\r\n\t\t\t\tm_TH.interruptIOReadComplete(intData[1], intData[2], intData[3]);\r\n\t\t\t\tbreak;\r\n\t\t\tcase InterruptController.INT_WRITE_DONE:\r\n\t\t\t\tm_TH.interruptIOWriteComplete(intData[1], intData[2]);\r\n\t\t\t\tbreak;\r\n\t\t\tdefault:\r\n\t\t\t\tSystem.out.println(\"CPU ERROR: Illegal Interrupt Received.\");\r\n\t\t\t\tSystem.exit(-1);\r\n\t\t\t\tbreak;\r\n\t\t}// switch\r\n\t\t\r\n\t}", "protected abstract void doExternalInterrupt(int number);", "public int ExternalInterruptCount() { return EXTERNAL_INTERRUPTS; }", "protected abstract void HandleInterrupts();", "public FrInterruptRequest(int interruptNumber, boolean NMI, int icr) {\r\n this.interruptNumber = interruptNumber;\r\n isNMI = NMI;\r\n this.icr = icr;\r\n }", "public void interrupt();", "public byte[] AcknowledgeInterrupt() throws IOException {\n byte ret[] = new byte[2];\n ret[0] = mDevice.readRegByte( INTF );\n ret[1] = mDevice.readRegByte( INTCAP );\n return ret;\n }", "public native int cStopInterrupt();", "public Number getIrHeaderId() {\n return (Number) getAttributeInternal(IRHEADERID);\n }", "public static int getCTRL(String name) {\n return mapCTRL.get(name);\n }", "public void interrupt() {\n this.f3567pI.interrupt();\n }", "public abstract void interrupt();", "public int getDI(int index) {\t\t\n\t\treturn mIKar07Lib.getDigitalInput(index);\n\t}", "public boolean isInterruptable() {\n\t\treturn interrupt;\n\t}", "public int getIconId(){\n return mIconId;\n }", "public int getFaultCode() {\n\t\treturn faultCode;\n\t}", "@Override\n public void interrupt(String exchangeId) {\n Exchange found = null;\n for (AsyncProcessorAwaitManager.AwaitThread entry : browse()) {\n Exchange exchange = entry.getExchange();\n if (exchangeId.equals(exchange.getExchangeId())) {\n found = exchange;\n break;\n }\n }\n\n if (found != null) {\n interrupt(found);\n }\n }", "public int getIconIndex() {\n return iconIndex;\n }", "public int getIOReg(String n) {\n return layout.getIOReg(n);\n }", "public int getSignalNameNumber(String name);", "public String getFaultCode() {\n return faultCode;\n }", "public int getICID() {\n return icid;\n }", "public int getRegister(int regInd) {\n return regs[regInd];\n }", "public int get_ioreg(int index)\n {\n if ((index < 0) || (index >= IO_REG_COUNT))\n return 0;\n else\n return getDataMemory(index+IO_REG_COUNT);\n }", "@Override\r\n\tpublic void onInterrupt() {\n\t\t\r\n\t}", "public final void serviceIRQorNMI() {\r\n // NMI requested?\r\n if (this.isNMILow && !this.lastNMIState) {\r\n // we need seven cycles just like for a BRK operation\r\n this.cycles += 7;\r\n // execute the interrupt routine\r\n serviceInterrupt(0xfffa);\r\n // IRQ requested?\r\n } else if (this.isIRQLow) {\r\n // is the interrupt allowed?\r\n if (!this.interruptFlag) {\r\n // we need seven cycles just like for a BRK operation\r\n this.cycles += 7;\r\n // execute the interrupt routine\r\n serviceInterrupt(0xfffe);\r\n }\r\n // we no longer have to check for interrupts as all NMI/IRQ requests have been serviced\r\n this.isCheckInterrupt = false;\r\n }\r\n // remember last NMI state in order to check on next\r\n this.lastNMIState = this.isNMILow;\r\n }", "public byte read8(int ireg)\n {\n return this.read(ireg, 1)[0];\n }", "@Override\n\t\tpublic void interrupt() {\n\t\t\t\n\t\t\t///why is this method not called?????\n\t\t\tSystem.out.println(\"here\");\n\t\t\tsuper.interrupt();\n\t\t}", "public String getIORegName(int ioreg) {\n return ioreg_name[ioreg];\n }", "public int getPriority() {\r\n return (isNMI?-0x10000:0) + (icr << 8) + interruptNumber;\r\n }", "public void interrupt() {\r\n ServerLogger.log(this.myID + \" interrupt()\");\r\n this.run = false;\r\n //super.interrupt(); //To change body of overridden methods use File | Settings | File Templates.\r\n }", "@HTTP(\n method = \"GET\",\n path = \"/apis/config.openshift.io/v1/ingresses/{name}\"\n )\n @Headers({ \n \"Accept: */*\"\n })\n KubernetesCall<Ingress> readIngress(\n @Path(\"name\") String name);", "String getFaultStringValue();", "public int getInt(String name) {\n Enumeration enumer = INTS.elements();\n while(enumer.hasMoreElements()) {\n SimpleMessageObjectIntItem item = (SimpleMessageObjectIntItem) enumer.nextElement();\n if(item.getName().compareTo(name) == 0) {\n return item.getValue();\n }\n }\n return -1;\n }", "public int receiveSignal() {\n try {\n return dIn.readInt();\n } catch (IOException e) {\n System.out.println(\"Signal not received\");\n e.printStackTrace();\n }\n return -1;\n }", "public void mo32110rq(int i) {\n }", "protected String getFaultName() {\n return mName;\n }", "@Override\n public int ReadStatusByte()\n throws IOException {\n\n int StatusByte;\n ShortByReference pShort = new ShortByReference();\n ByteByReference pByte = new ByteByReference();\n\n\n // read the status byte\n if (USE_4882 == true) {\n m_gpib32.ReadStatusByte(BOARD_NR, (short)m_UnitDescriptor, pShort);\n StatusByte = (int)pShort.getValue();\n } else {\n m_gpib32.ibrsp(m_UnitDescriptor, pByte);\n StatusByte = (int)pShort.getValue();\n }\n\n // error check\n String str = \"Could not read the Status Byte from the Instrument.\\n\";\n checkErrorGPIB(str, false);\n\n // return\n return StatusByte;\n }", "@Override\n public void interrupt() {\n super.interrupt(); //To change body of generated methods, choose Tools | Templates.\n }", "@Override\n public void onInterrupt() {\n }", "@Override\n public synchronized void interrupt(int savedProgramCounter, int deviceNumber) {\n\n // leave this code here\n CheckValid.deviceNumber(deviceNumber);\n if (!machine.cpu.runProg) {\n return;\n }\n // end of code to leave\n saveRegisters(savedProgramCounter);\n setBaseLimit();\n \n machine.interruptRegisters.register[deviceNumber] = false;\n IORequest oldhead = waitQ[deviceNumber].remove();\n Process_Table[oldhead.prognum].status = ProcessState.ready;\n \n IORequest next =null;\n \n switch (deviceNumber) {\n case 0: { //keyboard\n\n }\n case 1: { //console\n // If the queue is not empty write to console\n if (!waitQ[deviceNumber].isEmpty()) {\n // setting next so that write console has something to write to and know what it is writing \n next = waitQ[deviceNumber].peek();\n writeConsole(next);\n\n }\n break;\n }\n\n case 2: { //disk1\n if (!waitQ[deviceNumber].isEmpty()) {\n //set next to the nextprocess that should be ran in the correct order\n next = SSTF(deviceNumber, oldhead);\n System.out.println(\"Program number \"+next.prognum);\n }\n if (!waitQ[deviceNumber].isEmpty()) {\n try {\n //if requestType is 0 its a write if rr is 1 its a read\n if (next.requestType == DeviceControllerOperations.WRITE) {\n write(next);\n\n } else {\n // System.out.println(\"WHY YOU DONT WORK\");\n read(next);\n }\n } catch (MemoryFault ex) {\n Logger.getLogger(OperatingSystem.class.getName()).log(Level.SEVERE, null, ex);\n }\n\n \n\n }\n break;\n\n }\n case 3: { //disk2\n\n }\n\n }\n\n restoreRegisters();\n\n }", "public int getIconFromDamage(int i){\n\t\treturn 4;\n\t}", "@Override\n\tpublic void interrupt(UUID clientDatabaseGuid) {\n\t\t\n\t}", "public IntegerVariable getIntegerVariable(String name) {\n return integerVariableMap.get(name);\n }", "@Override\n public int getSignal() {\n return signal & 0xFF;\n }", "@Override\n\tpublic long getIconId() {\n\t\treturn _scienceApp.getIconId();\n\t}", "public void interrupt() {\n interrupted.set(true);\n Thread.currentThread().interrupt();\n }", "public static int getEventPort() {\r\n return eventPort.getValue();\r\n }", "int getIntegPort();", "public void interrupt() {\n\t\tinterrupted = true;\n\t}", "public int getInputForNumber() {\n\t\twhile (true) {\n\t\t\ttry {\n\t\t\t\treturn Integer.parseInt(bufferedReader.readLine());\n\t\t\t}\n\t\t\tcatch (Exception e) {\n\t\t\t\tSystem.err.println(e.getLocalizedMessage());\n\t\t\t}\n\t\t}\n\t}", "public CPU6502Instruction getInstruction(final int opCode) {\r\n return this.instructions[opCode];\r\n }", "private int getInstr(int index) {\n switch (index) {\n case 0:\n return R.drawable.chickpeacurry;\n case 1:\n return R.drawable.sweetpotatoblackbeanburger;\n case 2:\n return R.drawable.cabbagedietsoup;\n case 3:\n return R.drawable.instantpotvegetablesoup;\n case 4:\n return R.drawable.veganpumpkinsoup;\n\n default:\n return -1;\n }\n }", "public String getControlId() throws PixSourceException {\n\t\t\n\t\tSegment seg = getSegments().getByCodeAndIndex(MSA, 1);\n\t\tint fieldIndex = 1;\n\t\t\n\t\ttry {\n\t\t\treturn seg.forceField(fieldIndex).getAsString();\n\t\t} catch (HL7V2Exception e) {\n\t\t\tthrow new PixSourceException(e);\n\t\t}\n\t}", "public void IRQChange(IRQChangeEvent evt);", "public int readByte() {\n try {\n return in.read();\n } catch (IOException e) {\n print(\"Error reading byte from \" + portName);\n }\n return -1;\n }", "public String getSignalName(int index);", "public static ClientController getByIndex(int i) throws IOException {\n if (!indexAction.containsKey(i)) {\n throw new IOException();\n }\n return indexAction.get(i);\n }", "int getI11();", "protected void aTimerInterrupt()\r\n {\r\n \t\tSystem.out.println(\"|aTimerInterrupt| : time out.\");\r\n \t\tstartTimer(0,RxmtInterval);\r\n \t\tSystem.out.println(\"|aTimerInterrupt| : timer is started\");\r\n \t\t\r\n \t\tfor(int i=window_base% LimitSeqNo;i<next_seq_num % LimitSeqNo;i++)\r\n \t\t{\r\n \t\t\tif(packetBufferAry[i]!=null)\r\n \t\t\t{\r\n \t\t\t\tcount_retransmissions_by_A++;\r\n \t\t\t\tSystem.out.println(\"|aTimerInterrupt| : packet with seq number:\"+Integer.toString(packetBufferAry[i].getSeqnum())+\" is resent.\");\r\n \t\t\t\ttoLayer3(0,packetBufferAry[i]);\r\n \t\t\t}\r\n \t\t}\r\n \t\t/*\r\n \t\tif(state_sender == STATE_WAIT_FOR_ACK_OR_NAK_0)\r\n \t\t{\r\n \t\t\tSystem.out.println(\"aTimerInterrupt: time up for STATE_WAIT_FOR_ACK_OR_NAK_0\");\r\n \t\t\tresendPacket(packetBuffer);\r\n \t\t\tstartTimer(0,RxmtInterval);\r\n \t\t\tSystem.out.println(\"aTimerInterrupt: start sender timer\");\r\n \t\t\t\r\n \t\t}\r\n \t\telse if(state_sender == STATE_WAIT_FOR_ACK_OR_NAK_1)\r\n \t\t{\r\n \t\t\tSystem.out.println(\"aTimerInterrupt: time up for STATE_WAIT_FOR_ACK_OR_NAK_1\");\r\n \t\t\tresendPacket(packetBuffer);\r\n \t\t\tstartTimer(0,RxmtInterval);\r\n \t\t\tSystem.out.println(\"aTimerInterrupt: start sender timer\");\r\n \t\t}\r\n \t\t*/\r\n }", "public void rotInterrupt ()\r\n\t{\r\n\t\tthis.simTime = this.sim.getTimer();\r\n\t\t//Debug/System.out.println(Fmt.time(this.simTime)\r\n\t\t//Debug/\t+ \": <rotInterrupt> \" + this.request);\r\n\r\n\t\t//\tBased on simulated time, determine current sector.\r\n\t\tthis.setCurrSector();\r\n\r\n\t\t//\tVerify that the timing is correct and the sector we are at\r\n\t\t//\t(based on simulated time) is the sector that we should be at.\r\n\t\tif (this.sector != this.request.getSector())\r\n\t\t\tSystem.err.println(\"sector error: \" + this.request.getSector()\r\n\t\t\t\t+ \" : \" + this.sector);\r\n\r\n\t\t//\tUpdate satisfy time in request object.\r\n\t\tthis.request.setSatisfyTime(this.simTime);\r\n\t\tthis.sim.addEvent(new Event(Event.REQUEST_SATISFIED, this.simTime));\r\n\t}", "public IBusinessObject interruptProcess(IRState s, String comment)\n throws OculusException;", "public String getIntAttribute9() {\n return (String) getAttributeInternal(INTATTRIBUTE9);\n }", "public CartridgeHandle getCartridgeByName( String name )\n throws CdbException , InterruptedException {\n return _pvr.getCartridgeByName( name ) ;\n }", "String getFaultReasonValue();", "public int get_reading() {\n return (int)getUIntBEElement(offsetBits_reading(), 16);\n }", "String getFaultActor();", "public String readChipID() {\r\n return mFactoryBurnUtil.readChipID();\r\n }", "protected MessageBody cancel() {\n\t\tPlatformMessage msg = cancelRequest(incidentAddress).getMessage();\n\t\talarm.cancel(context, msg);\n\t\treturn msg.getValue();\n\t}", "int getI15();", "public String getIntAttribute8() {\n return (String) getAttributeInternal(INTATTRIBUTE8);\n }", "protected int getCurrentIfd() {\n return mIfdType;\n }", "public int getInstruction(int index){\n \tif (index % 4 != 0){ //check to see if the index is aligned\n\t\t\tSystem.out.println(\"Wrong number for PC\");\n\t\t\tSystem.exit(0);\n\t\t}\n\t\treturn memory[(index / 4)];\n }", "public int readInt() {\n\t\tif(!isInit) return 0;\n\t\tint result = 0;\n\t\tisListening = true;\n\t\twriteLine(\"Waiting for Integer input...\");\n\t\twhile(isListening) {\n\t\t\ttry {\n\t\t\t\tresult = Integer.parseInt(inputArea.getText());\n\t\t\t} catch(NumberFormatException nfe) {\n\t\t\t\tresult = 0;\n\t\t\t}\n\t\t}\n\t\tinputArea.setText(\"\");\n\t\twriteLine(\"Input: \" + result);\n\t\treturn result;\n\t}", "private Interrupt(Object semaphore, String interrupt_key) {\n this.semaphore = semaphore;\n this.interrupt_key = interrupt_key;\n }", "public int getKeyInventory() {\r\n return Input.Keys.valueOf(keyInventoryName);\r\n }", "public static ReasonCode fromInt(int i)\n {\n if (i == I2C_OPERATION_IN_PROGRESS.getValue()) return I2C_OPERATION_IN_PROGRESS;\n if (i == I2C_MASTER_BUSY.getValue()) return I2C_MASTER_BUSY;\n for (ReasonCode reasonCode : ReasonCode.values())\n {\n if (i == reasonCode.getValue())\n return reasonCode;\n }\n return PACKET_TYPE_ID_UNKNOWN;\n }", "public int getM_InOut_ID();", "public int read() throws FTD2XXException {\n byte[] c = new byte[1];\n int ret = read(c);\n return (ret == 1) ? (c[0] & 0xFF) : -1;\n }", "String intRead();", "public boolean isInterruptOnCancel()\r\n\t{\r\n\t\treturn interruptOnCancel;\r\n\t}", "public int getIcon()\n\t{\n\t\treturn getClass().getAnnotation(AccuAction.class).icon();\n\t}", "int getInPort();", "int getInPort();", "public int getInt(String name)\n/* */ {\n/* 908 */ return getInt(name, 0);\n/* */ }", "public XDI3Segment getXri();", "public FSIcon getIcon() {\n return icon;\n }", "protected void interrupted() {\n\t\tL.ogInterrupt(this);\n\t}", "public void seekInterrupt ()\r\n\t{\r\n\t\tthis.simTime = this.sim.getTimer();\r\n\t\t//Debug/System.out.println(Fmt.time(simTime)\r\n\t\t//Debug/\t+ \": <seekInterrupt> \" + request);\r\n\r\n\t\t//\tSet the cylinder, head, and sector.\r\n\t\tthis.cylinder = this.request.getCylinder();\r\n\t\tthis.head = this.request.getHead();\r\n\t\t//\tBased on simulated time, determine current sector.\r\n\t\tthis.setCurrSector();\r\n\t\tif (this.sector != this.request.getSector())\r\n\t\t\tthis.simTime += this.calcRotTime(this.request.getSector());\r\n\t\tthis.sim.addEvent(new Event(Event.ROT_SATISFIED, this.simTime));\r\n\t}", "String getFaultDetailValue();", "public org.hl7.fhir.CodeableConcept getEventArray(int i)\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.hl7.fhir.CodeableConcept target = null;\n target = (org.hl7.fhir.CodeableConcept)get_store().find_element_user(EVENT$0, i);\n if (target == null)\n {\n throw new IndexOutOfBoundsException();\n }\n return target;\n }\n }", "@Array({81}) \n\t@Field(9) \n\tpublic Pointer<Byte > InstrumentID() {\n\t\treturn this.io.getPointerField(this, 9);\n\t}", "public static IconId retrieveIconId(ComprehensionTlv ctlv) throws ResultException {\r\n IconId id = new IconId();\r\n byte[] rawValue = ctlv.getRawValue();\r\n int valueIndex = ctlv.getValueIndex();\r\n int valueIndex2 = valueIndex + 1;\r\n try {\r\n id.selfExplanatory = (rawValue[valueIndex] & OemCdmaTelephonyManager.OEM_RIL_CDMA_RESET_TO_FACTORY.RESET_DEFAULT) == 0;\r\n id.recordNumber = rawValue[valueIndex2] & OemCdmaTelephonyManager.OEM_RIL_CDMA_RESET_TO_FACTORY.RESET_DEFAULT;\r\n return id;\r\n } catch (IndexOutOfBoundsException e) {\r\n throw new ResultException(ResultCode.CMD_DATA_NOT_UNDERSTOOD);\r\n }\r\n }", "public char getIcon() {\n return this.icon;\n }", "public byte readByte() throws SerialPortException {\n\t\tif (this.available()) {\n\t\t\tbyte [] byteRead = port.readBytes(1);\n\t\t\tif(debug) {\n\t\t\t\tString byteName = String.format(\"%02x\", byteRead[0]);\n\t\t\t\tSystem.out.print(byteName + \"\\t\");;\n\t\t\t}\n\t\t\treturn byteRead[0];\n\t\t\t\n\t\t}\n\t\treturn -1;\n\t\t\n\t}", "public int getKeyDown() {\r\n return Input.Keys.valueOf(keyDownName);\r\n }", "public int read(int i);", "public int getEquipment() throws java.rmi.RemoteException;" ]
[ "0.737655", "0.5735445", "0.5466365", "0.53937596", "0.53803325", "0.53669626", "0.5231773", "0.52234936", "0.51608044", "0.51442856", "0.51249355", "0.51197284", "0.5019475", "0.49871314", "0.49538484", "0.48365474", "0.4814911", "0.4800804", "0.47801968", "0.47619718", "0.47375357", "0.47345677", "0.4731447", "0.47271845", "0.4683606", "0.46795112", "0.46788397", "0.4669178", "0.46640912", "0.46389097", "0.46004674", "0.45887408", "0.45666492", "0.45635402", "0.4563491", "0.45577046", "0.45487154", "0.45373115", "0.45363307", "0.453468", "0.45307493", "0.45267475", "0.4518439", "0.4508885", "0.45034656", "0.4502388", "0.4498087", "0.44975632", "0.4494687", "0.44900492", "0.44703507", "0.4448509", "0.4445239", "0.44380277", "0.4435244", "0.44264466", "0.44250527", "0.44236088", "0.44145036", "0.4409419", "0.4408491", "0.44066578", "0.4397841", "0.43962598", "0.43911937", "0.43887013", "0.43844837", "0.43804696", "0.4376244", "0.43758386", "0.435869", "0.43524182", "0.43508816", "0.43404406", "0.432413", "0.43240938", "0.43213677", "0.43120468", "0.43110532", "0.43108383", "0.43095085", "0.4308723", "0.4304334", "0.43034106", "0.43018436", "0.43018436", "0.42961618", "0.42925853", "0.42903873", "0.42803392", "0.42722097", "0.42700064", "0.42622235", "0.4261142", "0.42610002", "0.42596626", "0.4254764", "0.42530638", "0.42466015", "0.4243193" ]
0.7066798
1
The getIORegName() method returns the name of the IO register specified by the given number.
public String getIORegName(int ioreg) { return ioreg_name[ioreg]; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public int getIOReg(String n) {\n return layout.getIOReg(n);\n }", "public int get_ioreg(int index)\n {\n if ((index < 0) || (index >= IO_REG_COUNT))\n return 0;\n else\n return getDataMemory(index+IO_REG_COUNT);\n }", "public String getRegName() {\r\n\t\treturn regName;\r\n\t}", "public java.lang.String getRegNumber() {\r\n return regNumber;\r\n }", "public boolean hasIOReg(String n) {\n return layout.hasIOReg(n);\n }", "public String getName(IRandomAccess ra, long resourceBaseAddress) throws IOException {\n\t\tif (0 != (name & IMAGE_RESOURCE_NAME_IS_STRING)) {\n\t\t\t//\n\t\t\t// High bit is 1\n\t\t\t//\n\t\t\tint offset = name & OFFSET_MASK;\n\t\t\tra.seek((long) (resourceBaseAddress + offset));\n\t\t\tint len = (int) LittleEndian.readUShort(ra);\n\t\t\tbyte[] buff = new byte[(len * 2)]; // UTF-8 chars are 16 bits = 2 bytes\n\t\t\tfor (int i = 0; i < buff.length; i++) {\n\t\t\t\tbuff[i] = (byte) ra.read();\n\t\t\t}\n\t\t\ttry {\n\t\t\t\treturn new String(buff, Charset.forName(\"UTF-8\"));\n\t\t\t} catch (UnsupportedCharsetException e) {\n\t\t\t\te.printStackTrace();\n\t\t\t} catch (IllegalCharsetNameException e) {\n\t\t\t\te.printStackTrace();\n\t\t\t} catch (IllegalArgumentException e) {\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t}\n\t\t//\n\t\t// High bit is 0, or there was a bizarre Charset error.\n\t\t//\n\t\treturn LittleEndian.toHexString(name);\n\t}", "public String getRegTypeName() {\r\n\t\treturn regTypeName;\r\n\t}", "public int IORegCount() { return IO_REG_COUNT; }", "public String getInterruptName(int inum) {\n return interrupt_name[inum];\n }", "public int getRegNum() {\n return regNum;\n }", "public String getRegno()\n {\n return regno;\n }", "public void setRegNumber(java.lang.String regNumber) {\r\n this.regNumber = regNumber;\r\n }", "public int getRegister(int regInd) {\n return regs[regInd];\n }", "@Override\n default ResourceLocation getRegistryName() {\n return getBlock().getRegistryName();\n }", "private int get_sreg() { return get_ioreg(SREG); }", "private String getUniqueNodeName() {\n return String.format(\"N%d\", uniqueNode++);\n }", "private void setRegNum(int regNum) {\n this.regNum = regNum;\n }", "public String getDeviceNameForMacro() {\r\n String name = getDeviceName();\r\n\r\n if(name.startsWith(\"PIC32\")) {\r\n return name.substring(3); // \"32MX795F512L\"\r\n } else if(name.startsWith(\"ATSAM\")) {\r\n return name.substring(2); // \"SAME70Q21\"\r\n } else {\r\n return name;\r\n }\r\n }", "public void setRegName(String regName) {\r\n\t\tthis.regName = regName;\r\n\t}", "public String getRegisterNumber() { return registerNumber; }", "public String getIOType() {\n return this.iOType;\n }", "public String getRegisterId() {\n\t return this.regId;\n\t }", "private String getVehicleRegNumber() {\n LOGGER.info(\"Please type the vehicle registration number \"\n + \"and press enter key\");\n return inputReaderUtil.readVehicleRegistrationNumber();\n }", "public int getReg(int reg) {\r\n\t\tswitch (reg) {\r\n\t\t\tcase 0:\r\n\t\t\t\treturn m_registers[R0];\r\n\t\t\tcase 1:\r\n\t\t\t\treturn m_registers[R1];\r\n\t\t\tcase 2:\r\n\t\t\t\treturn m_registers[R2];\r\n\t\t\tcase 3:\r\n\t\t\t\treturn m_registers[R3];\r\n\t\t\tcase 4:\r\n\t\t\t\treturn m_registers[R4];\r\n\t\t\tdefault:\r\n\t\t\t\t// Return default (should never be reached)\r\n\t\t\t\treturnError(ERROR_REG_DNE);\r\n\t\t\t\treturn 0;\r\n\t\t}\r\n\t}", "public java.lang.String getRegistNo() {\n return registNo;\n }", "public String getIOType() {\n return this.iOType;\n }", "public String getIOType() {\n return this.iOType;\n }", "public String name()\n {\n\tint index = indexOf();\n\treturn (index < 0 || index >= 16 || cConstantNameList == null) ? null : cConstantNameList[index];\n }", "public String getName() {\n\t\treturn JWLC.nativeHandler().wlc_output_get_name(this.to());\n\t}", "public String getRegTypeId() {\r\n\t\treturn regTypeId;\r\n\t}", "public String getName(){\n StringBuilder name = new StringBuilder();\n for (int value : names) {\n name.append(\"> \").append(strings.get(value));\n }\n return name.toString();\n }", "private ObjectName getRMIRegistryNamingName()\n throws javax.management.MalformedObjectNameException {\n return ObjectName.getInstance(\"naming:type=rmiregistry\");\n }", "String codeToName(int code) throws IOException;", "public String getNodeName()\n {\n return Constants.ELEMNAME_NUMBER_STRING;\n }", "public void out(String reg) {\r\n// System.out.println(Arrays.toString(registerName.toArray()));\r\n// System.out.println(Arrays.toString(registerValues.toArray()));\r\n registerRegister.add(reg);\r\n int pos = registerRegister.indexOf(reg);\r\n int element = Integer.parseInt(registerValues.get(pos));\r\n System.out.printf(\"The register values of %s is %d\", reg, element);\r\n System.out.println();\r\n }", "public int getReg() {\n\t\treturn -1;\n\t}", "public String getName() {\n\t return this.device.getName() + \".\" + this.getType() + \".\"\n\t + this.getId();\n\t}", "public int getNum() {\n System.out.println(\"There are altogether \" + num + \" registers created\");\n return num;\n }", "public final String getInternalName(){\n return peripheralFriendlyName;\n }", "java.lang.String getRegistId();", "abstract public String getRegNum();", "public java.lang.String getOpcname() {\n\t\treturn getValue(test.generated.pg_catalog.tables.PgOpclass.PG_OPCLASS.OPCNAME);\n\t}", "public long getRegType() {\r\n return regType;\r\n }", "public String getName() {\n\t\treturn ((name != null) && !name.isEmpty()) ? name\n\t\t\t\t: (\"[\" + Long.toString(dciId) + \"]\"); //$NON-NLS-1$ //$NON-NLS-2$\n\t}", "public String GetGameName(int game_number)\n\t{\n\t\treturn gametype[game_number].GetName();\n\t}", "String getOperatingModeName();", "private javax.swing.JLabel getLblOSName() {\n\tif (ivjLblOSName == null) {\n\t\ttry {\n\t\t\tivjLblOSName = new javax.swing.JLabel();\n\t\t\tivjLblOSName.setName(\"LblOSName\");\n\t\t\tivjLblOSName.setText(\"Name:\");\n\t\t\tivjLblOSName.setBounds(10, 20, 140, 14);\n\t\t\t// user code begin {1}\n ivjLblOSName.setText(ResourceManager.getResource(PlatformInfoPanel.class, \"LblOSName_text\"));\n\t\t\t// user code end\n\t\t} catch (java.lang.Throwable ivjExc) {\n\t\t\t// user code begin {2}\n\t\t\t// user code end\n\t\t\thandleException(ivjExc);\n\t\t}\n\t}\n\treturn ivjLblOSName;\n}", "public java.lang.String getName()\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.apache.xmlbeans.SimpleValue target = null;\n target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(NAME$0, 0);\n if (target == null)\n {\n return null;\n }\n return target.getStringValue();\n }\n }", "public java.lang.String getName()\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.apache.xmlbeans.SimpleValue target = null;\n target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(NAME$0, 0);\n if (target == null)\n {\n return null;\n }\n return target.getStringValue();\n }\n }", "public String getNomeGiocatore(int i) {\n return null;\r\n }", "String getNodeName();", "public org.hl7.fhir.String getName()\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.hl7.fhir.String target = null;\n target = (org.hl7.fhir.String)get_store().find_element_user(NAME$8, 0);\n if (target == null)\n {\n return null;\n }\n return target;\n }\n }", "public String getName(int idx) {\n\t\treturn (String) nvPairs.get(idx << 1);\n\t}", "public void setRegTypeName(String regTypeName) {\r\n\t\tthis.regTypeName = regTypeName;\r\n\t}", "public java.lang.String getOpName() {\r\n return opName;\r\n }", "public String getResourceTypeName(int resId) {\n String nativeGetResourceTypeName;\n synchronized (this) {\n ensureValidLocked();\n nativeGetResourceTypeName = nativeGetResourceTypeName(this.mObject, resId);\n }\n return nativeGetResourceTypeName;\n }", "@Field(1) \n\tpublic Pointer<Byte > Name() {\n\t\treturn this.io.getPointerField(this, 1);\n\t}", "public java.lang.String getName()\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_element_user(NAME$0, 0);\r\n if (target == null)\r\n {\r\n return null;\r\n }\r\n return target.getStringValue();\r\n }\r\n }", "public String Name() {\t\t\r\n\t\treturn BrickFinder.getDefault().getName();\r\n\t}", "public String getSignalName(int index);", "@DISPID(9)\r\n\t// = 0x9. The runtime will prefer the VTID if present\r\n\t@VTID(15)\r\n\tjava.lang.String name();", "@Override\n @XmlElement(name = \"referenceSystemIdentifier\")\n public final ReferenceIdentifier getName() {\n ReferenceIdentifier name = super.getName();\n if (isLegacyMetadata) {\n name = RS_Identifier.wrap(name);\n }\n return name;\n }", "org.hl7.fhir.CodeableConcept getName();", "public static String getRegistryValue(String registryName)\n {\n String registyValue = \"\";\n try\n {\n registyValue = (String)Registry.getVar(registryName);\n }\n catch(Exception e)\n {\n logger.debug(e);\n } \n return registyValue;\n }", "private static Integer readRegister(RegisgerName_Value<String, Integer> pair)\n\t{\n\t\tif (pair != null && registerFile.containsKey(pair.getKey()))\n\t\t{\n\t\t\treturn registerFile.get(pair.getKey());\n\t\t}\n\t\treturn null;\n\t}", "public static String getNimbus() {\r\n return nimbus.getValue();\r\n }", "public org.hl7.fhir.String getName()\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.hl7.fhir.String target = null;\n target = (org.hl7.fhir.String)get_store().find_element_user(NAME$0, 0);\n if (target == null)\n {\n return null;\n }\n return target;\n }\n }", "public static String osName() {\r\n Object _osname=null;\r\n \r\n try {\r\n _osname=System.getProperty(\"os.name\");\r\n }\r\n catch (Exception ex) {\r\n _osname=null;\r\n ex.printStackTrace();\r\n }\r\n \r\n String _name=\"\";\r\n if (_osname!=null) _name=_osname.toString();\r\n \r\n return _name;\r\n }", "@Override\n\tpublic String toString() {\n\t\treturn name + \"_\" + num;\n\t}", "String getCapability_name();", "public String getRegisterSourceName() {\n return registerSourceName;\n }", "public int numericName()\n {\n return Factory.getID(this);\n }", "public String getOpName()\n {\n return opName;\n }", "org.apache.xmlbeans.XmlString xgetName();", "org.apache.xmlbeans.XmlString xgetName();", "private String getKernelName(int idx){\r\n String[] kernels = {\"Line\",\"Poly\",\"RBF\",\"Sigmoid\",\"Precomputed kernel\"};\r\n return kernels[idx];\r\n }", "public String name() {\r\n return \"GenRoomControl\";\r\n }", "public static native String GetName(long lpjFbxDataType);", "public final static String getNTTransationName(int opcode) {\n \n //\tRange check the opcode\n \n String opcodeName = \"\";\n \n if ( opcode >= 0 && opcode < _ntTranNames.length)\n opcodeName = _ntTranNames[opcode];\n return opcodeName;\n }", "public Unit getComponentValueByName(String name){\r\n switch(name){\r\n case \"R0\":\r\n return this.getCpu().getControlUnit().getGeneralPurposeRegister(0);\r\n case \"R1\":\r\n return this.getCpu().getControlUnit().getGeneralPurposeRegister(1);\r\n case \"R2\":\r\n return this.getCpu().getControlUnit().getGeneralPurposeRegister(2); \r\n case \"R3\":\r\n return this.getCpu().getControlUnit().getGeneralPurposeRegister(3);\r\n case \"X1\":\r\n return this.getCpu().getControlUnit().getIndexRegister(1);\r\n case \"X2\":\r\n return this.getCpu().getControlUnit().getIndexRegister(2);\r\n case \"X3\":\r\n return this.getCpu().getControlUnit().getIndexRegister(3);\r\n case \"MAR\":\r\n return this.getMemory().getMAR();\r\n case \"MBR\":\r\n return this.getMemory().getMBR();\r\n case \"PC\":\r\n return this.getCpu().getControlUnit().getProgramCounter();\r\n case \"CC\":\r\n return this.getCpu().getControlUnit().getConditionCodeRegister();\r\n case \"IR\":\r\n return this.getCpu().getControlUnit().getInstructionRegister();\r\n default:\r\n return new Unit(13,0);\r\n \r\n } \r\n }", "public static final String getCommandName(int cmd) {\n \n //\tGet the command name\n \n String cmdName = \"\";\n \n if ( cmd >= 0 && cmd < _cmdNames1.length) {\n\n //\tGet the command name from the main name table\n \n cmdName = _cmdNames1[cmd];\n }\n else {\n \n //\tMask the command to determine the command table to index\n \n switch ( cmd & 0x00F0) {\n \tcase 0x70:\n \t cmdName = _cmdNames2[cmd - 0x70];\n \t break;\n \tcase 0x80:\n \t\tcmdName = _cmdNames3[cmd - 0x80];\n \t\tbreak;\n \tcase 0xA0:\n \t cmdName = _cmdNames4[cmd - 0xA0];\n \t\tbreak;\n \tcase 0xC0:\n \t cmdName = _cmdNames5[cmd - 0xC0];\n \t break;\n \tcase 0xD0:\n \t cmdName = _cmdNames6[cmd - 0xD0];\n \t break;\n \tdefault:\n \t cmdName = \"0x\" + Integer.toHexString(cmd);\n \t\tbreak;\n }\n }\n \n //\tReturn the command name string\n \n return cmdName;\n }", "private javax.swing.JTextField getTxtOSName() {\n\tif (ivjTxtOSName == null) {\n\t\ttry {\n\t\t\tivjTxtOSName = new javax.swing.JTextField();\n\t\t\tivjTxtOSName.setName(\"TxtOSName\");\n\t\t\tivjTxtOSName.setBounds(160, 17, 168, 20);\n\t\t\tivjTxtOSName.setEditable(false);\n\t\t\t// user code begin {1}\n\t\t\t// user code end\n\t\t} catch (java.lang.Throwable ivjExc) {\n\t\t\t// user code begin {2}\n\t\t\t// user code end\n\t\t\thandleException(ivjExc);\n\t\t}\n\t}\n\treturn ivjTxtOSName;\n}", "public String getMoveName(int num) {\n\t\treturn moves[num];\n\t}", "public String getResourceEntryName(int resId) {\n String nativeGetResourceEntryName;\n synchronized (this) {\n ensureValidLocked();\n nativeGetResourceEntryName = nativeGetResourceEntryName(this.mObject, resId);\n }\n return nativeGetResourceEntryName;\n }", "public int getSignalNameNumber(String name);", "com.google.protobuf.ByteString getMetricNameBytes();", "public Identifier getName();", "public CArrayFacade<Byte> getDefgrp_name() throws IOException\n\t{\n\t\tClass<?>[] __dna__targetTypes = new Class[]{Byte.class};\n\t\tint[] __dna__dimensions = new int[]{\n\t\t\t64\n\t\t};\n\t\tif ((__io__pointersize == 8)) {\n\t\t\treturn new CArrayFacade<Byte>(__io__address + 128, __dna__targetTypes, __dna__dimensions, __io__block, __io__blockTable);\n\t\t} else {\n\t\t\treturn new CArrayFacade<Byte>(__io__address + 108, __dna__targetTypes, __dna__dimensions, __io__block, __io__blockTable);\n\t\t}\n\t}", "static String numToStr(int type)\r\n\t{\r\n\t\tif (type==MUTEX)\r\n\t\t\treturn \"Mutex\";\r\n\t\telse if (type==SEMAPHORE)\r\n\t\t\treturn \"Semaphore\";\r\n\t\telse if (type==SIGNAL)\r\n\t\t\treturn \"Signal\";\r\n\t\telse\r\n\t\t\treturn \"Unknown\";\r\n\t}", "public static String getName()\n {\n read_if_needed_();\n \n return _get_name;\n }", "public String getSystemName();", "public String getSimFile() throws IOException {\n\t\tString name = getSimulationName();\t\n\t\tint l = name.length();\n\t\tString sim_name = name.substring(0, l-7); // \"_FOLDER\" contains 7 character\n\t\tString txtfile = sim_name + \".txt\";\n\t\treturn txtfile;\t\n\t}", "public byte[] getName();", "public String getNameFromNumber(Integer number) {\n\t\tif (number == 1)\n\t\t\treturn \"PURCHASE\";\n\t\telse\n\t\t\treturn \"RENTAL\";\n\t}", "public String getOutputName(int index) {\n\t\tswitch(index) {\n\t\t\tcase 0:\n\t\t\t\treturn \"population\";\n\t\t\tdefault: return \"NO SUCH OUTPUT!\";\n\t\t}\n\t}", "public java.lang.String getName()\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(NAME$2);\r\n if (target == null)\r\n {\r\n return null;\r\n }\r\n return target.getStringValue();\r\n }\r\n }", "com.google.protobuf.ByteString getRegistIdBytes();", "public java.lang.String getName()\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(NAME$8);\r\n if (target == null)\r\n {\r\n return null;\r\n }\r\n return target.getStringValue();\r\n }\r\n }", "String getDeviceName();", "public String getNodeTypeName(int idx) {\n \treturn this.nodeType_index_.get(idx);\n }" ]
[ "0.7036273", "0.6506685", "0.59053457", "0.58473873", "0.5774015", "0.56478673", "0.5599102", "0.5588238", "0.54075074", "0.53558105", "0.5249758", "0.5210849", "0.5142178", "0.50915015", "0.5080788", "0.5044784", "0.49952608", "0.49856228", "0.49847454", "0.49822325", "0.49807164", "0.4976047", "0.4973371", "0.4967594", "0.49566373", "0.4950579", "0.4950579", "0.49144474", "0.49124026", "0.48928544", "0.48711577", "0.4867797", "0.48573044", "0.4855895", "0.48499805", "0.48470256", "0.48467308", "0.48418355", "0.48242566", "0.47998577", "0.47953975", "0.47894147", "0.47806895", "0.47586262", "0.47260052", "0.46982458", "0.46896374", "0.46766844", "0.46766844", "0.46578687", "0.46571422", "0.46565044", "0.4652019", "0.46419522", "0.46323323", "0.46307057", "0.46172702", "0.4615428", "0.4610114", "0.46094087", "0.46074834", "0.4570545", "0.45649567", "0.45559272", "0.4555295", "0.45510644", "0.45477906", "0.45444664", "0.45292732", "0.45202035", "0.45173013", "0.45029527", "0.4502261", "0.44960952", "0.44960952", "0.44834208", "0.44818372", "0.44699115", "0.44633073", "0.44632754", "0.44627094", "0.44480783", "0.44475427", "0.44448885", "0.44446844", "0.44442666", "0.4435928", "0.44317722", "0.44240656", "0.44230348", "0.4421328", "0.44141975", "0.43989596", "0.4395552", "0.4393866", "0.43926334", "0.43867794", "0.43851346", "0.43838727", "0.43719682" ]
0.8452561
0
The getInterruptName() method returns the name of an interrupt specified by the given number.
public String getInterruptName(int inum) { return interrupt_name[inum]; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public int getInterrupt(String n) {\n Integer i = (Integer)interruptAssignments.get(n);\n if ( i == null )\n throw new NoSuchElementException(StringUtil.quote(n)+\" interrupt not found\");\n return i.intValue();\n }", "public String getSignalName(int index);", "public String getIORegName(int ioreg) {\n return ioreg_name[ioreg];\n }", "protected String getFaultName() {\n return mName;\n }", "public FrInterruptRequest(int interruptNumber, boolean NMI, int icr) {\r\n this.interruptNumber = interruptNumber;\r\n isNMI = NMI;\r\n this.icr = icr;\r\n }", "@DISPID(9)\r\n\t// = 0x9. The runtime will prefer the VTID if present\r\n\t@VTID(15)\r\n\tjava.lang.String name();", "public String name(int i) {\n return fields[i].name;\n }", "public final static String getTransactionName(int opcode) {\n \n //\tRange check the opcode\n \n String opcodeName = \"\";\n \n if ( opcode >= 0 && opcode < _transNames.length)\n opcodeName = _transNames[opcode];\n return opcodeName;\n }", "public static String getName(int id) {\n return ACTION_DETAILS[id][NAME_DETAIL_INDEX];\n }", "public String getName() {\n\t\tInteger inicio = indices.elementAt(0);\n\t\tInteger fin = (indices.size() > 1 ? indices.elementAt(1) : contenido.length());\n\t\treturn contenido.substring(inicio, fin-1);\n\t}", "public QName getFaultDetailName() {\n\treturn this.faultDetailName;\n }", "@DISPID(5)\n\t// = 0x5. The runtime will prefer the VTID if present\n\t@VTID(11)\n\tjava.lang.String name();", "protected abstract void doExternalInterrupt(int number);", "public String getName()\n throws RemoteException;", "public final static String getNTTransationName(int opcode) {\n \n //\tRange check the opcode\n \n String opcodeName = \"\";\n \n if ( opcode >= 0 && opcode < _ntTranNames.length)\n opcodeName = _ntTranNames[opcode];\n return opcodeName;\n }", "String codeToName(int code) throws IOException;", "public int getSignalNameNumber(String name);", "public String getResourceEntryName(int resId) {\n String nativeGetResourceEntryName;\n synchronized (this) {\n ensureValidLocked();\n nativeGetResourceEntryName = nativeGetResourceEntryName(this.mObject, resId);\n }\n return nativeGetResourceEntryName;\n }", "public String getName() {\n return I18nUtil.getBundle().getString(\"CTL_I18nAction\");\n }", "public String getNameFromNumber(Integer number) {\n\t\tif (number == 1)\n\t\t\treturn \"PURCHASE\";\n\t\telse\n\t\t\treturn \"RENTAL\";\n\t}", "@DISPID(14)\n\t// = 0xe. The runtime will prefer the VTID if present\n\t@VTID(23)\n\tjava.lang.String name();", "public String getName() {\n\t\treturn ((name != null) && !name.isEmpty()) ? name\n\t\t\t\t: (\"[\" + Long.toString(dciId) + \"]\"); //$NON-NLS-1$ //$NON-NLS-2$\n\t}", "@DISPID(73)\r\n\t// = 0x49. The runtime will prefer the VTID if present\r\n\t@VTID(71)\r\n\tjava.lang.String name();", "public static String getStatusFromCode(int i) {\n\t\treturn CIM_ERROR_NAMES[((i > 0) && (i <= CIM_ERROR_NAMES.length)) ? i - 1 : 0];\n\t}", "public int getNameIndex() {\n\t\treturn nameIndex & 0xffff;\n\t}", "public String getNameFromIndex(int index) {\n for (Map.Entry<String, Integer> entry : this.vertexNames.entrySet()) {\n if (entry.getValue().equals(index)) {\n return entry.getKey();\n }\n }\n return null;\n }", "@Override\n\tpublic String getName() throws RemoteException {\n\t\t\n\t\treturn name;\n\t}", "public void interrupt();", "public String getCanceledByName() {\n return this.canceledByName;\n }", "public Identifier getName();", "public String getName()\n throws RemoteException, DeadlockException;", "public String getIndName() {\r\n return indName;\r\n }", "public String getName(){\n StringBuilder name = new StringBuilder();\n for (int value : names) {\n name.append(\"> \").append(strings.get(value));\n }\n return name.toString();\n }", "public String getFileName(int index) {\n\t\tFile f = openFiles.get(index);\n\t\tString nom = f.getName().substring(0,f.getName().length()-5);\n\t\treturn nom;\n\t}", "public String NameofIndex(int index, int game_number)\n\t{\n\t\treturn gametype[game_number].player_queue.get(index);\n\t}", "String getName() throws RemoteException;", "public String get_name() throws Exception {\n\t\treturn this.name;\n\t}", "public String get_name() throws Exception {\n\t\treturn this.name;\n\t}", "InterruptResource createInterruptResource();", "public Number getIrHeaderId() {\n return (Number) getAttributeInternal(IRHEADERID);\n }", "public String getName(int index)\n {\n return getQName(index);\n }", "public String name()\n {\n\tint index = indexOf();\n\treturn (index < 0 || index >= 16 || cConstantNameList == null) ? null : cConstantNameList[index];\n }", "public String getInputName(int index) {\n\t\tswitch(index) {\n\t\t\tcase 0:\n\t\t\t\treturn \"population\";\n\t\t\tdefault: return \"NO SUCH INPUT!\";\n\t\t}\n\t}", "public static String retrieveMAPFaultName(Message message) {\n return (String)message.get(MAP_FAULT_NAME_PROPERTY);\n }", "@Override\n public String getName() throws RemoteException {\n return this.name;\n }", "public String getMoveName(int num) {\n\t\treturn moves[num];\n\t}", "public static String getKeyName(int key) {\n\treturn SWIG_SDLEvent.SDL_GetKeyName(key);\n }", "public String getMenuName(int menunumber) {\r\n\r\n\t\tString menuName = \"na\";\r\n\r\n\t\tfor (Menu menu : items) {\r\n\t\t\tif (menu.getMenuNumber() == menunumber)\r\n\t\t\t\tmenuName = menu.getMenuName();\r\n\t\t}\r\n\t\treturn menuName;\r\n\t}", "public String getRequestName ()\n {\n org.omg.CORBA.portable.InputStream $in = null;\n try {\n org.omg.CORBA.portable.OutputStream $out = _request (\"getRequestName\", true);\n $in = _invoke ($out);\n String $result = $in.read_string ();\n return $result;\n } catch (org.omg.CORBA.portable.ApplicationException $ex) {\n $in = $ex.getInputStream ();\n String _id = $ex.getId ();\n throw new org.omg.CORBA.MARSHAL (_id);\n } catch (org.omg.CORBA.portable.RemarshalException $rm) {\n return getRequestName ( );\n } finally {\n _releaseReply ($in);\n }\n }", "public String getName() {\r\n try {\r\n return PirolPlugInMessages.getString(this.getShortClassName());\r\n } catch (RuntimeException e) {\r\n return super.getName();\r\n }\r\n\r\n }", "public String GetGameName(int game_number)\n\t{\n\t\treturn gametype[game_number].GetName();\n\t}", "public String getName() {\n\t\treturn JWLC.nativeHandler().wlc_output_get_name(this.to());\n\t}", "String getFaultStringValue();", "public String getProcessName() throws RemoteException;", "@Override public String getColumnName(int iColumnIndex)\r\n {\r\n return COLUMN_NAMES[iColumnIndex];\r\n }", "public String getName(int idx) {\n\t\treturn (String) nvPairs.get(idx << 1);\n\t}", "public static String bName(int index) {\n\t\treturn ((IdentifierResolver) bIdents.get(index)).getBName();\n\t}", "public static String getSequenceName(int number, boolean isDistinct, boolean isMap) {\n return BrowseIndex.getSequenceName(makeTableBaseName(number), isDistinct, isMap);\n }", "public String getName(IRandomAccess ra, long resourceBaseAddress) throws IOException {\n\t\tif (0 != (name & IMAGE_RESOURCE_NAME_IS_STRING)) {\n\t\t\t//\n\t\t\t// High bit is 1\n\t\t\t//\n\t\t\tint offset = name & OFFSET_MASK;\n\t\t\tra.seek((long) (resourceBaseAddress + offset));\n\t\t\tint len = (int) LittleEndian.readUShort(ra);\n\t\t\tbyte[] buff = new byte[(len * 2)]; // UTF-8 chars are 16 bits = 2 bytes\n\t\t\tfor (int i = 0; i < buff.length; i++) {\n\t\t\t\tbuff[i] = (byte) ra.read();\n\t\t\t}\n\t\t\ttry {\n\t\t\t\treturn new String(buff, Charset.forName(\"UTF-8\"));\n\t\t\t} catch (UnsupportedCharsetException e) {\n\t\t\t\te.printStackTrace();\n\t\t\t} catch (IllegalCharsetNameException e) {\n\t\t\t\te.printStackTrace();\n\t\t\t} catch (IllegalArgumentException e) {\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t}\n\t\t//\n\t\t// High bit is 0, or there was a bizarre Charset error.\n\t\t//\n\t\treturn LittleEndian.toHexString(name);\n\t}", "public String getFieldName(int i) throws NoSuchElementException {\n if(i < 0 || i >= getNumFields()) {\n throw new NoSuchElementException();\n }\n return columns.get(i).getName();\n }", "public String getParameterName(int index) {\n List<? extends VariableElement> parameters = executable.getParameters();\n String name = parameters.get(index).getSimpleName().toString();\n return name;\n }", "private String getKernelName(int idx){\r\n String[] kernels = {\"Line\",\"Poly\",\"RBF\",\"Sigmoid\",\"Precomputed kernel\"};\r\n return kernels[idx];\r\n }", "public void TriggerExternalInterrupt(int number)\n {\n if (number >= EXTERNAL_INTERRUPTS || number < 0)\n return;\n doExternalInterrupt(number);\n }", "protected String getWeatherIconName()\n\t{\n\t\tString\ticonName = ForecastMainActivity.weatherData.getHeadlineIcon().replaceAll(\"-\", \"_\");\n\t\treturn iconName;\n\t}", "protected abstract void HandleInterrupts();", "java.lang.String getCodeName();", "private String getAuctionName(int i) {\n\t\tswitch(i){\n\t\t\tcase 1: return \"FirstPriceAuction\";\n\t\t\tcase 2: return \"SecondPriceAuction\";\n\t\t\tcase 3: return \"AscendingPriceAuction\";\n\t\t\tcase 4: return \"DescendingPriceAuction\";\n\t\t}\n\t\treturn \"FirstPriceAuction\";\n\t}", "public EventName getName() {\n return this.name;\n }", "public java.lang.String getName() throws java.rmi.RemoteException, javax.ejb.CreateException, javax.ejb.FinderException, javax.naming.NamingException {\n return (((java.lang.String) __getCache(\"name\")));\n }", "public String getIconFileName() {\n\tif (this.isSuccess()) {\n\t return this.icon;\n\t} else {\n\t return null;\n\t}\n }", "@Override\n\t\tpublic void interrupt() {\n\t\t\t\n\t\t\t///why is this method not called?????\n\t\t\tSystem.out.println(\"here\");\n\t\t\tsuper.interrupt();\n\t\t}", "public String getName() {\r\n\t\treturn GDAssemblerUI.getText(UI_TEXT);\r\n\t}", "public final int getName() { return name; }", "public String getResourceName(int resId) {\n String nativeGetResourceName;\n synchronized (this) {\n ensureValidLocked();\n nativeGetResourceName = nativeGetResourceName(this.mObject, resId);\n }\n return nativeGetResourceName;\n }", "@Override\n\tpublic String getName() {\n\t\tfinal PsiElement nameIdentifier = getNameIdentifier();\n\t\treturn nameIdentifier != null ? nameIdentifier.getText() : getText();\n\t}", "public String getColumnName(int index) {\n\t\treturn columnNames[index];\n\t}", "public org.apache.xmlbeans.XmlString xgetEnumSkillName()\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.apache.xmlbeans.XmlString target = null;\n target = (org.apache.xmlbeans.XmlString)get_store().find_attribute_user(ENUMSKILLNAME$8);\n return target;\n }\n }", "public java.lang.String getEnumSkillName()\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.apache.xmlbeans.SimpleValue target = null;\n target = (org.apache.xmlbeans.SimpleValue)get_store().find_attribute_user(ENUMSKILLNAME$8);\n if (target == null)\n {\n return null;\n }\n return target.getStringValue();\n }\n }", "org.hl7.fhir.CodeableConcept getName();", "public String getName() {\n return ACTION_DETAILS[id][NAME_DETAIL_INDEX];\n }", "public java.lang.String getResourceNames(int index) {\n return resourceNames_.get(index);\n }", "public int ExternalInterruptCount() { return EXTERNAL_INTERRUPTS; }", "public String getNomeGiocatore(int i) {\n return null;\r\n }", "public String code_to_name (char code) {\n if (code == STOP_CODE) {\r\n return \"Stop\";\r\n } else {\r\n return (String) code_to_name.get((new Character(code)).toString().toUpperCase());\r\n }\r\n }", "public static String getCompetitionNameByEvent(String event_id) {\n\t\tGetResponse getResponse = client.prepareGet(\"projektzespolowy\", \"event\", event_id).execute().actionGet();\n\t\tif(getResponse.isExists())\n\t\t{\n\t\t\treturn getCompetitionName(getResponse.getSource().get(\"COMPETITION_ID\").toString());\n\t\t}\n\t\treturn null;\n\t}", "@Override\n\tpublic String getName() {\n\t\t\n\t\treturn CIDTrack.class.getSimpleName();\n\t\t\n\t}", "@Override\r\n\tpublic String getNameById(int id) {\n\t\treturn null;\r\n\t}", "public int getName() {\n return mName;\n }", "String getFaultReasonValue();", "public static String getMethodHandleName(final int index) {\n return METHODHANDLE_NAMES[index];\n }", "@Override\n public void interrupt(String exchangeId) {\n Exchange found = null;\n for (AsyncProcessorAwaitManager.AwaitThread entry : browse()) {\n Exchange exchange = entry.getExchange();\n if (exchangeId.equals(exchange.getExchangeId())) {\n found = exchange;\n break;\n }\n }\n\n if (found != null) {\n interrupt(found);\n }\n }", "@Override\n\tpublic String getName() {\n\t\treturn BaseIncIndexProcessor.class.getSimpleName();\n\t}", "public java.lang.String getResourceNames(int index) {\n return resourceNames_.get(index);\n }", "public abstract void interrupt();", "public String getStatusName(int mCode)\r\n\t {\r\n\t\t return MRs[mCode].getStatusName();\r\n\t }", "private void checkForIOInterrupt() {\r\n\t\t// If there is no interrupt to process, do nothing\r\n\t\tif (m_IC.isEmpty()) {\r\n\t\t\treturn;\r\n\t\t}\r\n\t\t\r\n\t\t// Retreive the interrupt data\r\n\t\tint[] intData = m_IC.getData();\r\n\t\t\r\n\t\t// Report the data if in verbose mode\r\n\t\tif (m_verbose) {\r\n\t\t\tSystem.out.println(\"CPU received interrupt: type=\" + intData[0]\r\n\t\t\t\t\t+ \" dev=\" + intData[1] + \" addr=\" + intData[2] + \" data=\"\r\n\t\t\t\t\t+ intData[3]);\r\n\t\t}\r\n\t\t\r\n\t\t// Dispatch the interrupt to the OS\r\n\t\tswitch (intData[0]) {\r\n\t\t\tcase InterruptController.INT_READ_DONE:\r\n\t\t\t\tm_TH.interruptIOReadComplete(intData[1], intData[2], intData[3]);\r\n\t\t\t\tbreak;\r\n\t\t\tcase InterruptController.INT_WRITE_DONE:\r\n\t\t\t\tm_TH.interruptIOWriteComplete(intData[1], intData[2]);\r\n\t\t\t\tbreak;\r\n\t\t\tdefault:\r\n\t\t\t\tSystem.out.println(\"CPU ERROR: Illegal Interrupt Received.\");\r\n\t\t\t\tSystem.exit(-1);\r\n\t\t\t\tbreak;\r\n\t\t}// switch\r\n\t\t\r\n\t}", "public void interrupt() {\n interrupted.set(true);\n Thread.currentThread().interrupt();\n }", "public String getNames(int i) {\n return topName.get(i);\n }", "public void interrupt() {\n this.f3567pI.interrupt();\n }", "public String getControlId() throws PixSourceException {\n\t\t\n\t\tSegment seg = getSegments().getByCodeAndIndex(MSA, 1);\n\t\tint fieldIndex = 1;\n\t\t\n\t\ttry {\n\t\t\treturn seg.forceField(fieldIndex).getAsString();\n\t\t} catch (HL7V2Exception e) {\n\t\t\tthrow new PixSourceException(e);\n\t\t}\n\t}" ]
[ "0.6253935", "0.55914927", "0.5473924", "0.52815294", "0.5017134", "0.5008725", "0.4949627", "0.4941136", "0.4916716", "0.4871657", "0.48568588", "0.48262474", "0.48237875", "0.48144314", "0.48133484", "0.48025817", "0.47845414", "0.4779483", "0.47540867", "0.47292733", "0.4703272", "0.46935952", "0.4684228", "0.46823373", "0.46704853", "0.46682343", "0.46367034", "0.46227112", "0.46166173", "0.46073577", "0.46069577", "0.45995387", "0.45942217", "0.45864993", "0.4564538", "0.45561534", "0.45501065", "0.45501065", "0.4543348", "0.45373246", "0.45216304", "0.45215523", "0.4513397", "0.4511205", "0.45051017", "0.44795057", "0.44788244", "0.44777042", "0.44776013", "0.44717348", "0.4468989", "0.444769", "0.44440216", "0.44430694", "0.44426128", "0.44411156", "0.44296908", "0.4417614", "0.4410096", "0.44071352", "0.4404421", "0.4403285", "0.4392269", "0.43908", "0.4390397", "0.4386035", "0.43787676", "0.43773273", "0.43734714", "0.43683663", "0.43680537", "0.4333463", "0.432885", "0.432599", "0.43217686", "0.4314416", "0.43083972", "0.4308272", "0.43079492", "0.43016756", "0.43002027", "0.42995456", "0.42959476", "0.42950365", "0.4289553", "0.42893186", "0.4287649", "0.42817461", "0.42794555", "0.42761105", "0.4266781", "0.42640287", "0.42626718", "0.42617258", "0.42580953", "0.42557263", "0.42500257", "0.4247889", "0.42467976", "0.4241095" ]
0.8023703
0
Checks whether or not the model is owned by the user in the current security context.
public interface SecurityContextModelOwnershipChecker<T> { /** * Whether or not the specified model is owned in the current context. * * @param model * Model. Never {@code null}. * @return {@code true} if the input model is considered owned. */ public boolean isOwnedInSecurityContext(T model) throws NoSecurityContextException; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private boolean checkAppInstanceOwnership(){\n\n\t\ttry {\n\t\t\t\n\t\t\t\n\t \tif(getUser() != null){\n\t \t\t\n\t \t\tif(getUser().getRole().equalsIgnoreCase(UserRoles.admin.toString()))\n\t \t\t\treturn true;\n\t \t\telse{\n\t \t\t\t\n\t\t\t\t\tAppInstance app = AHEEngine.getAppInstanceEntity(Long.valueOf(appinst));\n\t \t\t\t\t\t\t\t\t\n\t \t\t\tif(app != null){\n\t \t\t\t\t\n\t \t\t\t\tif(app.getOwner().getId() == getUser().getId())\n\t \t\t\t\t\treturn true;\n\t \t\t\t\telse{\n\t \t\t\t\t\tsetStatus(Status.CLIENT_ERROR_FORBIDDEN);\n\t \t\t\t\t\treturn false;\n\t \t\t\t\t}\n\t \t\t\t}\n\t \t\t\t\t\n\t \t\t\t\n\t \t\t}\n\t \t\t\n\t \t}\n\t\t\t\n\t\t} catch (NumberFormatException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t} catch (AHEException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\n\t\tsetStatus(Status.CLIENT_ERROR_FORBIDDEN);\n \treturn false;\n }", "public boolean isOwned(){\n\t\treturn isOwned;\n\t}", "public boolean hasObjUser() {\n return instance.hasObjUser();\n }", "public boolean hasObjUser() {\n return objUser_ != null;\n }", "public final boolean isOwner() {\n return currentOwner == this;\n }", "boolean hasUserManaged();", "public boolean isEditableByUser() {\r\n if ((this.currentStatusChange == null) ||\r\n (this.currentStatusChange.equals(PoStatusCode.PROPOSED)))\r\n return true;\r\n return false;\r\n }", "@Override\n public boolean isOwner(String groupingPath, String username) {\n return isMember(groupingPath + OWNERS, username);\n }", "@Override\n public boolean hasDeviceOwner() {\n final CallerIdentity caller = getCallerIdentity();\n Preconditions.checkCallAuthorization(isDefaultDeviceOwner(caller)\n || canManageUsers(caller) || isFinancedDeviceOwner(caller)\n || hasCallingOrSelfPermission(permission.MANAGE_PROFILE_AND_DEVICE_OWNERS));\n return mOwners.hasDeviceOwner();\n }", "boolean hasObjUser();", "public boolean isUser()\n\t{\n\t\treturn (id != -1);\n\t}", "@Override\n\tpublic boolean isOwnMessage() {\n\t\ttry {\n\t\t\treturn (this.user.id == AccountManager.current_account.getUser().id);\n\t\t} catch (Exception e) {\n\t\t\treturn false;\n\t\t}\n\t}", "protected boolean isValid(AccessUser obj)\n {\n return obj != null && obj.username != null && !getMembers().contains(obj);\n }", "public boolean checkAccess(HasUuid object) {\n // Allow newly-instantiated objects\n if (!wasResolved(object)) {\n return true;\n }\n // Allow anything when there are no roles in use\n if (getRoles().isEmpty()) {\n return true;\n }\n Principal principal = getPrincipal();\n // Check for superusers\n if (!principalMapper.isAccessEnforced(principal, object)) {\n return true;\n }\n\n List<PropertyPath> paths = typeContext.getPrincipalPaths(object.getClass());\n PropertyPathChecker checker = checkers.get();\n for (PropertyPath path : paths) {\n path.evaluate(object, checker);\n if (checker.getResult()) {\n return true;\n }\n }\n addWarning(object, \"User %s does not have permission to edit this %s\", principal,\n typeContext.getPayloadName(object.getClass()));\n return false;\n }", "@Override\n public boolean isOrganizationOwnedDeviceWithManagedProfile() {\n if (!mHasFeature) {\n return false;\n }\n return getOrganizationOwnedProfileUserId() != UserHandle.USER_NULL;\n }", "public boolean isCheckedOutByUser() {\r\n \r\n if (vocabularyFolder == null) {\r\n return false;\r\n } else {\r\n return StringUtils.isNotBlank(vocabularyFolder.getWorkingUser()) && !vocabularyFolder.isWorkingCopy()\r\n && StringUtils.equals(getUserName(), vocabularyFolder.getWorkingUser());\r\n }\r\n }", "public boolean isOwnerKnown() {\n\t\tif (owner == null && possibleOwners.size() == 1)\n\t\t\towner = possibleOwners.get(0);\n\t\t\t\n\t\treturn (owner == null);\n\t}", "public boolean hasUser() {\n return instance.hasUser();\n }", "public void testUserIsBlogOwner() {\n rootBlog.setProperty(SimpleBlog.BLOG_OWNERS_KEY, \"user1\");\n assertTrue(rootBlog.isUserInRole(Constants.BLOG_OWNER_ROLE, \"user1\"));\n assertFalse(rootBlog.isUserInRole(Constants.BLOG_OWNER_ROLE, \"user2\"));\n }", "public boolean isOwner(EntityPlayer player) {\n\t\treturn player.getDisplayName().equals(owner) /*|| Platform.worldType() != Platform.WorldMode.MP*/;\r\n\t}", "public boolean isAccountOwner() {\n\t\treturn acctOwnerFlg;\n\t}", "private boolean hasUserImportantView() {\n int userID = this.sharedPreferences.getInt(Constants.SP_USER_ID_KEY, 0);\n return this.sharedPreferences.getBoolean(serverName + \"_\" + userID, false);\n }", "public boolean isOwner(GiftCard giftCard) {\n ArrayList<GiftCard> giftCards = getInv().getInvList();\n return giftCards.contains(giftCard);\n }", "public boolean isSetUser() {\n return this.user != null;\n }", "public boolean isSetUser() {\n return this.user != null;\n }", "public boolean hasUser() {\n return user_ != null;\n }", "public boolean hasUser() {\n return user_ != null;\n }", "public boolean isOwner(String role) throws IOException {\n\t\treturn (rolePoster.sendPost(\"isOwner=\" + role).startsWith(\"true\"));\n\t}", "private boolean checkUserData() {\n UserAccount userAccount = new UserAccount(this);\n customer = userAccount.getCustomer();\n return customer != null;\n }", "public boolean thisUserIsOwner(GHRepository repo) throws IOException {\n String repoOwner = repo.getOwnerName();\n GHMyself myself = gitHubUtil.getMyself();\n if (myself == null) {\n throw new IOException(\"Could not retrieve authenticated user.\");\n }\n String myselfLogin = myself.getLogin();\n return repoOwner.equals(myselfLogin);\n }", "private void checkRights() {\n image.setEnabled(true);\n String user = fc.window.getUserName();\n \n for(IDataObject object : objects){\n ArrayList<IRights> rights = object.getRights();\n \n if(rights != null){\n boolean everybodyperm = false;\n \n for(IRights right : rights){\n String name = right.getName();\n \n //user found, therefore no other check necessary.\n if(name.equals(user)){\n if(!right.getOwner()){\n image.setEnabled(false);\n }else{\n image.setEnabled(true);\n }\n return;\n //if no user found, use everybody\n }else if(name.equals(BUNDLE.getString(\"Everybody\"))){\n everybodyperm = right.getOwner();\n }\n }\n image.setEnabled(everybodyperm);\n if(!everybodyperm){\n return;\n }\n }\n }\n }", "public static void adminOrOwnerCheck(User current,\n User resourceOwner)\n throws ServiceException {\n\n if (!current.equals(resourceOwner) &&\n !current.isRole(\"ROLE_ADMIN\")) {\n throw new ServiceException(ServiceStatus.ACCESS_DENIED);\n }\n }", "public boolean hasUser() {\n return user_ != null;\n }", "private boolean canUserBindToDeviceOwnerLocked(int userId) {\n if (!mOwners.hasDeviceOwner() || userId == mOwners.getDeviceOwnerUserId()) {\n return false;\n }\n\n // The user must have a profile owner that belongs to the same package as the device owner.\n if (!mOwners.hasProfileOwner(userId) || !TextUtils.equals(\n mOwners.getDeviceOwnerPackageName(), mOwners.getProfileOwnerPackage(userId))) {\n return false;\n }\n\n // The user must be affiliated.\n return isUserAffiliatedWithDeviceLocked(userId);\n }", "private boolean isUidProfileOwnerLocked(int appUid) {\n ensureLocked();\n\n final int userId = UserHandle.getUserId(appUid);\n final ComponentName profileOwnerComponent = mOwners.getProfileOwnerComponent(userId);\n if (profileOwnerComponent == null) {\n return false;\n }\n for (ActiveAdmin admin : getUserData(userId).mAdminList) {\n final ComponentName currentAdminComponent = admin.info.getComponent();\n if (admin.getUid() == appUid && profileOwnerComponent.equals(currentAdminComponent)) {\n return true;\n }\n }\n return false;\n }", "public static boolean doesUserOwn(int userId, int questionId) throws ApplicationException {\n return QuestionDatabaseAccess.getQuestionsByUserId(userId).contains(new Question(questionId));\n }", "private boolean isContactableUser() {\r\n\r\n return (friendFeed == null || friendFeed.getContact() == null) ? false\r\n : friendFeed.getContact().isContactable();\r\n }", "public boolean isExistingUser() {\r\n return isExistingUser;\r\n }", "public void testUserIsBlogOwnerByDefault() {\n rootBlog.removeProperty(SimpleBlog.BLOG_OWNERS_KEY);\n assertTrue(rootBlog.isUserInRole(Constants.BLOG_OWNER_ROLE, \"user1\"));\n assertTrue(rootBlog.isUserInRole(Constants.BLOG_OWNER_ROLE, \"usern\"));\n }", "@Test\n\tpublic void it_can_find_record_owned_by_a_user() {\n\t\tUUID jackUUID = UUID.randomUUID();\n\t\tUUID janeUUID = UUID.randomUUID();\n\n\t\t// Jack creates 3 records\n\t\tfor (int i = 0; i < 3; i++) {\n\t\t\tRecord record = new Record();\n\t\t\trecord.setCreatorID(jackUUID);\n\t\t\trecord.setOwnerID(jackUUID);\n\t\t\trecord.setOwnerType(Record.OwnerType.User);\n\t\t\trepository.save(record);\n\t\t}\n\n\t\t// jane creates 2 record\n\t\tfor (int i = 0; i < 2; i++) {\n\t\t\tRecord record = new Record();\n\t\t\trecord.setCreatorID(janeUUID);\n\t\t\trecord.setOwnerID(janeUUID);\n\t\t\trecord.setOwnerType(Record.OwnerType.User);\n\t\t\trepository.save(record);\n\t\t}\n\n\t\t// Jane creates 1 more record, but allocate it to Jack\n\t\tRecord record = new Record();\n\t\trecord.setCreatorID(janeUUID);\n\t\trecord.setOwnerID(jackUUID);\n\t\trecord.setOwnerType(Record.OwnerType.User);\n\t\trepository.save(record);\n\n\t\t// there are 6 records in total\n\t\tassertThat(repository.count()).isEqualTo(6);\n\n\t\t// when findOwned for jack, should see 4, 3 he created and 1 he owned\n\t\tassertThat(repository.findOwned(jackUUID)).hasSize(4);\n\t}", "private Boolean canUserValidate() throws ServeurException, ClientException {\n // Direct on/off line\n return checkValidatePermission();\n }", "@Override\n public boolean hasAccess(User user) {\n return user.hasRole(RoleValue.APP_ADMIN) || this.equals(user.company);\n }", "public final boolean tryOwn() {\n return own(this) == this;\n }", "public static boolean isControlled(Object object)\n {\n if (!(object instanceof EObject)) return false;\n EObject eObject = (EObject)object;\n EObject container = eObject.eContainer();\n Resource resource = eObject.eResource();\n return resource != null && container != null && resource != container.eResource();\n }", "public UserModel getOwner() {\n return localOwner;\n }", "public boolean isActiveUser() {\r\n if (currentProcessInstance == null)\r\n return false;\r\n \r\n String[] states = currentProcessInstance.getActiveStates();\r\n if (states == null)\r\n return false;\r\n \r\n Actor[] users;\r\n for (int i = 0; i < states.length; i++) {\r\n try {\r\n users = currentProcessInstance.getWorkingUsers(states[i]);\r\n for (int j = 0; j < users.length; j++) {\r\n if (getUserId().equals(users[j].getUser().getUserId()))\r\n return true;\r\n }\r\n } catch (WorkflowException ignored) {\r\n // ignore unknown state\r\n continue;\r\n }\r\n }\r\n \r\n return false;\r\n }", "public boolean isCurrentUserAdmin(){\n if (getAdminUserFromId(currentUserId)!=null){\n return true;\n }\n else{\n return false;\n }\n }", "public boolean owns(String establishment) {\n for (int i = 0; i < Establishments.size(); i++) {\n if (Establishments.get(i).getName().equals(establishment)) {\n return true;\n }\n }\n return false;\n }", "public boolean isResponsible(User user) {\n\t\tHashMap<String, Object> filters = new HashMap<>();\n\n\t\tfilters.put(\"responsible\", new ValueParameter(user));\n\n\t\treturn !this.filter(filters).isEmpty();\n\t}", "public boolean isCheckedOutByOther() {\r\n \r\n if (vocabularyFolder == null) {\r\n return false;\r\n } else {\r\n return StringUtils.isNotBlank(vocabularyFolder.getWorkingUser()) && !vocabularyFolder.isWorkingCopy()\r\n && !StringUtils.equals(getUserName(), vocabularyFolder.getWorkingUser());\r\n }\r\n }", "private boolean isFriend() {\r\n\r\n return isContactableUser() && !StringUtils.isBlank(friendFeed.getContact().getContactId());\r\n }", "boolean hasUser();", "boolean hasUser();", "boolean hasUser();", "boolean hasUser();", "boolean hasUser();", "boolean hasUser();", "boolean hasUser();", "@Override\n\tpublic boolean isUser(User user) {\n\t\treturn false;\n\t}", "public boolean hasUser() {\n return userBuilder_ != null || user_ != null;\n }", "public boolean hasUser() {\n return userBuilder_ != null || user_ != null;\n }", "@Override\n public boolean isUser() {\n return false;\n }", "public boolean isOwner(User user, Chatroom chatroom) {\n\t\tList<Chatroom> chatrooms = user.getOwnedChatrooms();\n\n\t\treturn chatrooms.contains(chatroom) && chatroom.getOwner() == user;\n\t}", "private boolean isEditableRecipe() {\n\t\tUser user = User.getInstance();\n\t\tString userEmail = user.getEmail();\n\t\tString creatorEmail = currentRecipe.getCreatorEmail();\n\t\tif (userEmail.equalsIgnoreCase(creatorEmail)) {\n\t\t\treturn true;\n\t\t} else {\n\t\t\treturn false;\n\t\t}\n\t}", "public static boolean userIsOwner(@NotNull Bot bot, User user) {\n return bot.getClient().getApplicationInfo().block().getOwnerId().asLong() == user.getId().asLong();\n }", "User getOwner();", "public boolean hasPermission(String username, ActionContext ctx) {\r\n return username != null;\r\n }", "private boolean isValidUser(OfferRequest offerRequest) {\n String currentUser = securityContextService.getCurrentUser();\n Optional<User> optionalUser = userRepository.findByUsername(currentUser);\n\n if (optionalUser.isPresent()) {\n\n String organisationalUnitNameFromOffer = offerRequest.getOrganisationalUnit();\n\n String userOrganisationalUnit = optionalUser.get().getOrganisationalUnit().getName();\n\n if (userOrganisationalUnit.equals(organisationalUnitNameFromOffer)) {\n return true;\n } else {\n throw new UnauthorizedException(String.format(\"Access to Organisational Unit %s not permitted\",\n organisationalUnitNameFromOffer));\n }\n }\n throw new NotFoundException(\"User not found\");\n\n }", "boolean isSystemUser() throws RepositoryException;", "public boolean isPostingAllowed() {\n if (currentUser == null || activeTopic == null) {\n return false;\n }\n if (currentUser.isPublicAccount()) {\n return false;\n }\n return activeTopic.isEditable();\n }", "public boolean isPlayerOwned(int row, int column) {\n return getCell(row, column).isPlayerOwned();\n }", "private void checkUserAuthorities() {\n\t\tAuthority auth = authorityRepository.findTop1ByName(AuthorityType.ROLE_ADMIN);\n\t\tif (null == auth) {\n\t\t\tauth = Authority.createAdmin();\n\t\t\tauthorityRepository.save(auth);\n\t\t}\n\t\tAuthority authUser = authorityRepository.findTop1ByName(AuthorityType.ROLE_USER);\n\t\tif (null == authUser) {\n\t\t\tauthUser = Authority.createUser();\n\t\t\tauthorityRepository.save(authUser);\n\t\t}\n\t}", "public boolean isSetFromUserId() {\n return this.fromUserId != null;\n }", "public boolean isSetUserId() {\n return this.userId != null;\n }", "public boolean isSetUserId() {\n return this.userId != null;\n }", "public boolean isSetUserId() {\n return this.userId != null;\n }", "public boolean isSetUserId() {\n return this.userId != null;\n }", "public boolean isSetUserId() {\n return this.userId != null;\n }", "@Override\n\tpublic boolean isUserLoggedIn() {\n\t\treturn sessionService.getCurrentUserId() != null;\n\t}", "public static boolean isCurrentUserVendedor() {\n return UserRole.VENDEDOR.equals(CURRENT_USER.getUserRole());\n }", "public User getObjectOwner() {\r\n\t\treturn objectOwner;\r\n\t}", "@Override\n public boolean isDM(Optional<BaseCharacter> inUser)\n {\n if(!inUser.isPresent())\n return false;\n\n return inUser.get().hasAccess(Group.DM);\n }", "private boolean userIsInCompetitionAssignedToStakeholder(UserResource userToView, UserResource stakeholder) {\n if (isInnovationLead(userToView)) {\n return true;\n }\n\n List<Application> applicationsWhereThisUserIsInConsortium = getApplicationsRelatedToUserByProcessRoles(userToView.getId(), consortiumProcessRoleFilter);\n List<Project> projectsThisUserIsAMemberOf =\n simpleMap(getFilteredProjectUsers(userToView.getId(), projectUserFilter), ProjectUser::getProject);\n\n List<Competition> stakeholderCompetitions =\n simpleMap(stakeholderRepository.findByStakeholderId(stakeholder.getId()), Stakeholder::getProcess);\n\n List<Competition> userCompetitions = getUserCompetitions(applicationsWhereThisUserIsInConsortium, projectsThisUserIsAMemberOf);\n\n return !disjoint(stakeholderCompetitions, userCompetitions);\n }", "public boolean isManaged(T instance) {\r\n\t\tif (instance != null) {\r\n\t\t\tif (instance.getId() > 0) {\r\n\t\t\t\treturn true;\r\n\t\t\t}\r\n\t\t} \r\n\t\treturn false;\r\n\t}", "public boolean isVtkUser( ) {\n\t\treturn chomboSolverSpec != null;\n\t}", "public boolean isPlayerOwned(int inputPlayerId, int territoryId) {\n\t\treturn getCountryArray()[territoryId].getCountryOwner()==inputPlayerId;\n\t}", "public boolean sameAs(UserBaseModel u){\n\t\treturn u.getId() == this.getId();\n\t}", "public boolean isPossibleOwner(Player player) {\n\t\treturn possibleOwners.contains(player);\n\t}", "private boolean canView(final AbstractItem item) throws AccessDeniedException {\n\t\tif (item.isRssAllowed())\n\t\t\treturn true;\n\t\tList<Subscriber> subscribers = Lists.newArrayList(subscriberRepository.findAll(SubscriberPredicates.onCtx(item\n\t\t\t\t.getContextKey())));\n\t\t// TODO we consider that all items have targets directly on\n\t\t// for targets defined only on classification a check will be needed\n\t\tif (subscribers.isEmpty()) {\n\t\t\tlog.trace(\"Subscribers on item {} are empty -> true\", item.getContextKey());\n\t\t\treturn true;\n\t\t}\n\t\tfinal CustomUserDetails user = SecurityUtils.getCurrentUserDetails();\n\t\tif (user == null) {\n\t\t\tlog.trace(\"user is not authenticated -> throw an error to redirect on authentication\");\n\t\t\tthrow new AccessDeniedException(\"Access is denied to anonymous !\");\n\t\t} else if (user.getRoles().contains(AuthoritiesConstants.ADMIN)\n\t\t\t\t|| user.getUser().getLogin().equalsIgnoreCase(item.getCreatedBy().getLogin())\n\t\t\t\t|| user.getUser().getLogin().equalsIgnoreCase(item.getLastModifiedBy().getLogin())) {\n\t\t\treturn true;\n\t\t}\n\n\t\tfinal UserDTO userDTO = user.getUser();\n\t\tif (userDTO != null) {\n\t\t\tList<String> groups = null;\n\t\t\tif (userDTO.getAttributes() != null) {\n\t\t\t\tgroups = userDTO.getAttributes().get(externalUserHelper.getUserGroupAttribute());\n\t\t\t}\n\t\t\tfor (Subscriber subscriber : subscribers) {\n\t\t\t\tlog.trace(\"Check if {} is in {}\", userDTO, subscriber);\n\t\t\t\tfinal SubjectKeyExtended subject = subscriber.getSubjectCtxId().getSubject();\n\t\t\t\tswitch (subject.getKeyType()) {\n\t\t\t\tcase GROUP:\n\t\t\t\t\tif (groups == null || groups.isEmpty()) {\n\t\t\t\t\t\tlog.trace(\"The user doesn't have a group -> break loop\");\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t\t// test on startWith as some groups in IsMemberOf has only a part the\n\t\t\t\t\t// real group name.\n\t\t\t\t\tfor (String val : groups) {\n\t\t\t\t\t\tif (val.startsWith(subject.getKeyValue())) {\n\t\t\t\t\t\t\tlog.trace(\"Check if the user group {} match subscriber group {} -> return true\", val,\n\t\t\t\t\t\t\t\t\tsubject.getKeyValue());\n\t\t\t\t\t\t\treturn true;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tbreak;\n\t\t\t\tcase PERSON:\n\t\t\t\t\tif (subject.getKeyValue().equalsIgnoreCase(userDTO.getLogin())) {\n\t\t\t\t\t\tlog.trace(\"Check if the user key {} match subscriber key {} -> true\", userDTO.getLogin(),\n\t\t\t\t\t\t\t\tsubject.getKeyValue());\n\t\t\t\t\t\treturn true;\n\t\t\t\t\t}\n\t\t\t\t\tbreak;\n\t\t\t\tcase PERSON_ATTR:\n\t\t\t\t\tif (subject.getKeyAttribute() != null\n\t\t\t\t\t\t\t&& userDTO.getAttributes().containsKey(subject.getKeyAttribute())\n\t\t\t\t\t\t\t&& userDTO.getAttributes().get(subject.getKeyAttribute()).contains(subject.getKeyValue())) {\n\t\t\t\t\t\tlog.trace(\"Check if the user attribute {} with values {} contains value {} -> true\",\n\t\t\t\t\t\t\t\tsubject.getKeyAttribute(), userDTO.getAttributes().get(subject.getKeyAttribute()),\n\t\t\t\t\t\t\t\tsubject.getKeyValue());\n\t\t\t\t\t\treturn true;\n\t\t\t\t\t}\n\t\t\t\t\tbreak;\n\t\t\t\tcase PERSON_ATTR_REGEX:\n\t\t\t\t\tif (subject.getKeyAttribute() != null\n\t\t\t\t\t\t\t&& userDTO.getAttributes().containsKey(subject.getKeyAttribute())) {\n\t\t\t\t\t\tfor (final String value : userDTO.getAttributes().get(subject.getKeyAttribute())) {\n\t\t\t\t\t\t\tif (value.matches(subject.getKeyValue())) {\n\t\t\t\t\t\t\t\tlog.trace(\"Check if the user attribute {} with values {} match regex {} -> true\",\n\t\t\t\t\t\t\t\t\t\tsubject.getKeyAttribute(),\n\t\t\t\t\t\t\t\t\t\tuserDTO.getAttributes().get(subject.getKeyAttribute()), subject.getKeyValue());\n\t\t\t\t\t\t\t\treturn true;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tbreak;\n\t\t\t\tdefault:\n\t\t\t\t\tthrow new IllegalStateException(\"Warning Subject Type '\" + subject.getKeyType()\n\t\t\t\t\t\t\t+ \"' is not managed\");\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tlog.trace(\"End of all checks -> false\");\n\t\treturn false;\n\t}", "public boolean isCardToAccuse() {\n\t\treturn (getOwner() == CASE_FILE_PLAYER);\n\t}", "boolean userExists(HttpServletRequest request, String userId);", "private boolean isAuthenticated(final ContainerRequestContext requestContext) {\n // Return true if the user is authenticated or false otherwise\n return requestContext.getSecurityContext().getUserPrincipal() != null;\n }", "@Override\n\tpublic boolean hasStrongOwners() {\n\t\treturn false;\n\t}", "public boolean getAllSpacesOwned(){\n\t\treturn allSpacesOwned;\n\t}", "public boolean isSetRequesting_user() {\n return this.requesting_user != null;\n }", "public boolean isIsCreator() {\r\n if (ui.isIsUserAuthenticated() && recipe != null) {\r\n if(recipe.getCreator() == user)\r\n return true;\r\n else\r\n return false;\r\n } else {\r\n return false;\r\n }\r\n }", "boolean hasCustomerUserAccess();", "public boolean isComputerOwned(int row, int column) {\n return getCell(row, column).isComputerOwned();\n }", "public abstract boolean isOwner (String url);", "boolean hasUserId();" ]
[ "0.6628734", "0.63869447", "0.63364506", "0.6277321", "0.62576085", "0.62573016", "0.6249703", "0.62209547", "0.620525", "0.60914177", "0.6073843", "0.6045211", "0.60220593", "0.59775674", "0.5976052", "0.5928277", "0.58952314", "0.58910733", "0.58557576", "0.5810135", "0.5801797", "0.5786113", "0.5768735", "0.5730223", "0.5730223", "0.5699228", "0.5699228", "0.5694993", "0.567695", "0.56540537", "0.5647508", "0.56347674", "0.5618619", "0.56120783", "0.56082207", "0.5604787", "0.5585051", "0.55795425", "0.5546737", "0.5525807", "0.551906", "0.5511593", "0.55075663", "0.5482552", "0.54716444", "0.54595524", "0.5458924", "0.5447784", "0.54235464", "0.5411159", "0.5400209", "0.53865916", "0.53865916", "0.53865916", "0.53865916", "0.53865916", "0.53865916", "0.53865916", "0.53816944", "0.53754956", "0.53754956", "0.5367732", "0.5363366", "0.5359244", "0.53554153", "0.53492546", "0.5344187", "0.53334534", "0.5324208", "0.53220785", "0.53054", "0.5303982", "0.53030807", "0.53010404", "0.53010404", "0.53010404", "0.53010404", "0.53010404", "0.52805", "0.52792156", "0.52717817", "0.52570087", "0.5256749", "0.52506316", "0.52353245", "0.5231559", "0.5227596", "0.52251583", "0.5221463", "0.5217424", "0.52043647", "0.52037513", "0.5197238", "0.5193031", "0.5191033", "0.51849085", "0.5184714", "0.51713306", "0.5152853", "0.5147758" ]
0.65011644
1
///////////////////////////////////////// PUBLIC METHODS (BEAN to ENTITY) /////////////////////////////////////////
public static <S extends BaseBean, D extends BaseEntity> D parserBeanToEntity(S sourceObject, Class<D> destinationType) { return dozerMapper.map(sourceObject, destinationType); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void toEntity(){\n\n }", "protected abstract Serializable getEntity();", "@Override\n public Entity getEntity() {\n return super.getEntity();\n }", "public abstract P toEntity();", "public abstract V getEntity();", "public abstract Integer getEntity();", "protected abstract ENTITY createEntity();", "public String getPrimitiveEntity();", "String getEntity();", "String getEntity();", "EntityData<?> getEntityData();", "public CuentaEntity toEntity() {\r\n CuentaEntity cuentaE = super.toEntity();\r\n if (this.tarjeta != null) {\r\n if (!this.tarjeta.isEmpty()) {\r\n List<TarjetaEntity> tarjetasEntity = new ArrayList<>();\r\n for (TarjetaDTO dtoTarjeta : tarjeta) {\r\n tarjetasEntity.add(dtoTarjeta.toEntity());\r\n }\r\n cuentaE.setTarjeta(tarjetasEntity);\r\n }\r\n }\r\n if (this.ordenPagos != null) {\r\n if (!this.ordenPagos.isEmpty()) {\r\n List<OrdenPagoEntity> ordenesEntity = new ArrayList<>();\r\n for (OrdenPagoDTO dtoOrdenPago : ordenPagos) {\r\n ordenesEntity.add(dtoOrdenPago.toEntity());\r\n }\r\n cuentaE.setOrdenPagos(ordenesEntity);\r\n }\r\n }\r\n \r\n if (this.estudiante != null) {\r\n System.out.println(\"---------------------------------------------------343434343\");\r\n EstudianteEntity es = estudiante.toEntity();\r\n cuentaE.setEstudiante(es);\r\n System.out.println(es.getDocumento());\r\n System.out.println(cuentaE.getEstudiante());\r\n System.out.println(cuentaE.getEstudiante().getDocumento());\r\n }\r\n\r\n return cuentaE;\r\n }", "public E getEntity();", "public int getEntityId()\r\n/* 25: */ {\r\n/* 26:26 */ return this.entityId;\r\n/* 27: */ }", "protected T getEntity() {\r\n\t\treturn entity;\r\n\t}", "public interface EHR_Entity extends Data_Entity {\r\n\r\n // Property http://www.owl-ontologies.com/unnamed.owl#agent_id\r\n String getAgent_id();\r\n\r\n RDFProperty getAgent_idProperty();\r\n\r\n boolean hasAgent_id();\r\n\r\n void setAgent_id(String newAgent_id);\r\n\r\n // Property http://www.owl-ontologies.com/unnamed.owl#object_ids\r\n Collection getObject_ids();\r\n\r\n RDFProperty getObject_idsProperty();\r\n\r\n boolean hasObject_ids();\r\n\r\n Iterator listObject_ids();\r\n\r\n void addObject_ids(String newObject_ids);\r\n\r\n void removeObject_ids(String oldObject_ids);\r\n\r\n void setObject_ids(Collection newObject_ids);\r\n\r\n // Property http://www.owl-ontologies.com/unnamed.owl#type\r\n String getType();\r\n\r\n RDFProperty getTypeProperty();\r\n\r\n boolean hasType();\r\n\r\n void setType(String newType);\r\n}", "private void toRent() {\n }", "private RepositorioAtendimentoPublicoHBM() {\r\t}", "@Override\n\tpublic void initEntity() {\n\n\t}", "public abstract T convertToEntity(D dto);", "@Override\r\n protected void updateObject(SimpleBody object, Entity e) {\n }", "@Override\r\n protected void updateObject(SimpleBody object, Entity e) {\n }", "public ZEntity getEntity() {\r\n return entity;\r\n }", "public CopyEntityAttributes()\n\t{\n\t\tsetMandatory(ENTITY_PARAM, COPY_MODE);\n\t}", "public interface EntityBase extends Serializable{\n\n\t/**\n\t * \n\t * Retorna o ID da Entidade.\n\t * \n\t * \n\t * @return {@link Long} - ID da Entidade.\n\t */\n\tLong getId();\n}", "public abstract Object getUnderlyingObject();", "public interface Entity {\n}", "public Entity build();", "@Override\n\tpublic void entrenar() {\n\t\t\n\t}", "@Override\n\tpublic Serializable getEntity() {\n\t\treturn this.studentcard;\n\t}", "public interface PartOfRelation\r\n{\r\n\r\n\t/**\r\n\t * Sets author\r\n\t * \r\n\t * @param author\r\n\t */\r\n\tvoid setAuthor(String author);\r\n\r\n\r\n\t/**\r\n\t * @return Author\r\n\t */\r\n\tString getAuthor();\r\n\r\n\t/**\r\n\t * Sets class type, one typical value is '300'\r\n\t * \r\n\t * @param classType\r\n\t */\r\n\tvoid setClassType(String classType);\r\n\r\n\t/**\r\n\t * @return class type\r\n\t */\r\n\tString getClassType();\r\n\r\n\t/**\r\n\t * Sets object key, for material items this is the product ID.\r\n\t * \r\n\t * @param objectKey\r\n\t */\r\n\tvoid setObjectKey(String objectKey);\r\n\r\n\t/**\r\n\t * @return Object key.\r\n\t */\r\n\tString getObjectKey();\r\n\r\n\t/**\r\n\t * Sets object type, product or an abstract product representative\r\n\t * \r\n\t * @param objectType\r\n\t */\r\n\tvoid setObjectType(String objectType);\r\n\r\n\t/**\r\n\t * @return Object type\r\n\t */\r\n\tString getObjectType();\r\n\r\n\t/**\r\n\t * Sets position in the BOM\r\n\t * \r\n\t * @param posNr\r\n\t */\r\n\tvoid setPosNr(String posNr);\r\n\r\n\t/**\r\n\t * @return Position number\r\n\t */\r\n\tString getPosNr();\r\n\r\n\t/**\r\n\t * Sets parent instance ID\r\n\t * \r\n\t * @param parentInstId\r\n\t */\r\n\tvoid setParentInstId(String parentInstId);\r\n\r\n\t/**\r\n\t * @return Parent instance ID\r\n\t */\r\n\tString getParentInstId();\r\n\r\n\t/**\r\n\t * Sets child instance ID\r\n\t * \r\n\t * @param instId\r\n\t */\r\n\tvoid setInstId(String instId);\r\n\r\n\t/**\r\n\t * @return Child instance ID\r\n\t */\r\n\tString getInstId();\r\n}", "@Test\n public void convertToEntity() {\n application = getApplicationBuilder().addBaseApplication().setPerson().build();\n\n // When converting\n converter.convertToEntity(application, entity);\n\n // Then is successful\n assertEquals(new Integer(1), entity.getNoOfBadges());\n assertEquals(ValidValues.DOB, entity.getDob());\n // And nino is uppercase with no spaces\n assertEquals(ValidValues.NINO_FORMATTED, entity.getNino());\n assertEquals(ValidValues.BADGE_HOLDER_NAME, entity.getHolderName());\n assertEquals(ValidValues.BADGE_HOLDER_NAME_AT_BIRTH, entity.getHolderNameAtBirth());\n assertEquals(ValidValues.GENDER.name(), entity.getGenderCode());\n }", "@Override\n\tpublic Entity getEntity() {\n\t\treturn entity;\n\t}", "public CuentaContable getCuentaContable()\r\n/* 299: */ {\r\n/* 300:367 */ return this.cuentaContable;\r\n/* 301: */ }", "public Entity(String name)\n {\n super(name);\n isAs = Lists.newArrayList();\n }", "public interface CommonEntityMethod extends ToJson,GetFieldValue,SetFieldValue{\n}", "@Override\n\tpublic void read(Object entidade) {\n\t\t\n\t}", "protected void entityInit() {}", "Entity createEntity();", "@Override\n public D entityToDTO( final E entity )\n {\n //final String methodName = \"cachedDataToDTO\";\n //logMethodBegin( methodName, entity );\n Objects.requireNonNull( entity, \"entity argument cannot be null\" );\n D dto = super.entityToDTO( entity );\n /*\n * I think this is a good use of instanceof...although I am not convinced, I'll have to think about this...\n * If any stock DTO is a stock company container, it will be populated automatically with the stock company\n * information. No need for any sub cvl\n *\n * NEED TO SERIOUSLY THINK ABOUT A BETTER SOLUTION HERE....5/9/2017 Mike.\n *\n * Need to develop some sort of \"conversion\" registration so that subclasses can register \"converters\" to be\n * run on entity.\n *\n /*\n * StockPriceQuoteContainers contain everything in a StockPriceContainer so get that instead\n */\n /*\n if ( dto instanceof StockQuoteDTOContainer )\n {\n this.stockQuoteEntityService\n .setQuoteInformation( dto );\n }\n */\n /*\n * The quote contains the company name\n */\n /*\n else if ( dto instanceof StockCompanyEntityContainer )\n {\n this.stockCompanyEntityService\n .setCompanyInformation( (StockCompanyDTOContainer) dto );\n }\n if ( dto instanceof StockPriceQuoteDTOContainer )\n {\n this.stockPriceQuoteService\n .setStockPriceQuote( dto, ASYNCHRONOUS );\n }\n */\n\n /*\n * Convert the UUID to a string and get the notes source name for the UUID\n */\n if ( entity instanceof NotesSourceUuidContainer &&\n dto instanceof NotesSourceIdContainer )\n {\n final NotesSourceUuidContainer notesSourceUuidContainer = (NotesSourceUuidContainer)entity;\n if ( notesSourceUuidContainer.getNotesSourceEntity().isPresent() )\n {\n final NotesSourceIdContainer notesSourceIdContainer = (NotesSourceIdContainer)dto;\n final StockNoteSourceEntity stockNoteSourceEntity = notesSourceUuidContainer.getNotesSourceEntity().get();\n notesSourceIdContainer.setNotesSourceName( stockNoteSourceEntity.getName() );\n notesSourceIdContainer.setNotesSourceId( stockNoteSourceEntity.getUuid().toString() );\n }\n }\n\n if ( dto instanceof TagsContainer )\n {\n final TagsContainer tagsContainer = (TagsContainer)dto;\n tagsContainer.setTags( this.stockTagService.findStockTags( UUIDUtil.uuid( tagsContainer.getCustomerId() ),\n StockTagEntity.StockTagReferenceType.STOCK_TO_BUY,\n UUIDUtil.uuid( tagsContainer.getEntityId() ) ) );\n }\n //logMethodEnd( methodName, dto );\n return dto;\n }", "@Override\r\n public AseoEntity toEntity() {\r\n AseoEntity entity = new AseoEntity();\r\n entity.setBanho(this.banho);\r\n entity.setDientes(this.dientes);\r\n entity.setPeluqueria(this.peluqueria);\r\n entity.setCosto(this.getCosto());\r\n entity.setDuracion(this.getDuracion());\r\n entity.setEstado(this.isEstado());\r\n entity.setFecha(this.getFecha());\r\n entity.setRango(this.getRango());\r\n entity.setId(this.id);\r\n if (this.cliente != null) {\r\n entity.setCliente(cliente.toEntity());\r\n }\r\n if (this.mascota != null) {\r\n entity.setMascota(mascota.toEntity());\r\n }\r\n if (this.empleado != null) {\r\n entity.setEmpleado(empleado.toEntity());\r\n }\r\n if (this.factura != null) {\r\n entity.setFactura(factura.toEntity());\r\n }\r\n if (this.calificacion != null) {\r\n entity.setCalificacion(calificacion.toEntity());\r\n }\r\n if (this.getVeterinaria() != null) {\r\n entity.setVeterinaria(this.getVeterinaria().toEntity());\r\n }\r\n return entity;\r\n }", "public abstract String getEntityId();", "protected void prepareEntityToNodeMap()\r\n\t{\n\t}", "public CuentaContable getCuentaContable()\r\n/* 78: */ {\r\n/* 79: 99 */ return this.cuentaContable;\r\n/* 80: */ }", "@Override\r\n\tpublic Interest convert(InterestEntity entity) {\n\t\treturn null;\r\n\t}", "public interface CalendarEntity {\r\n\r\n\t/**\r\n\t * Gets the text.\r\n\t * \r\n\t * @return the text\r\n\t */\r\n String getText();\r\n\t\r\n\t/**\r\n\t * Gets the color.\r\n\t * \r\n\t * @return the color\r\n\t */\r\n String getColor();\r\n\t\r\n\t/**\r\n\t * Gets the date.\r\n\t * \r\n\t * @return the date\r\n\t */\r\n Date getDate();\r\n\t\r\n\t/**\r\n\t * Gets the duration.\r\n\t * \r\n\t * @return the duration\r\n\t */\r\n Integer getDuration();\r\n\t\r\n\t/**\r\n\t * Gets the todo flag.\r\n\t * \r\n\t * @return the todo flag\r\n\t */\r\n boolean isTodo();\r\n\t\r\n\t/**\r\n\t * Gets the next todo date.\r\n\t * \r\n\t * @return the next todo date\r\n\t */\r\n Date getNextTodo();\r\n\t\r\n\t/**\r\n\t * Gets the priority\r\n\t * @return the priority\r\n\t */\r\n Integer getPriority();\r\n\t\r\n\tboolean isPrivate();\r\n}", "public interface PropertyDefEntity extends javax.ejb.EJBLocalObject {\n\n /**\n * Returns a PropertyDefDto data transfer object containing all parameters of\n * this property definition instance.\n *\n * @return PropertyDefDto the data transfer object containing all parameters of this instance\n * @see #setDto\n */\n public PropertyDefDto getDto();\n\n /**\n * Sets all data members of this property definition instance to the values\n * from the specified data transfer object.\n *\n * @param dto PropertyDefDto the data transfer object containing the new\n * parameters for this instance\n * @see #getDto\n */\n public void setDto(PropertyDefDto dto);\n\n}", "public void testCopyConstructor() throws EdmException {\n entity = new EdmEntity(\"example.edl\");\n EdmAttribute a1 = setupAttribute(val1);\n EdmAttribute a2 = setupAttribute(val2);\n entity.addAttribute(id1, a1);\n entity.addAttribute(id2, a2);\n // add subEntity\n EdmEntity subE = new EdmEntity(\"SUBexample.edl\");\n EdmAttribute a3 = setupAttribute(val3);\n subE.addAttribute(id3, a3);\n entity.addSubEntity(subE);\n\n assertEquals(\"example.edl\", entity.getType());\n assertEquals(2, entity.getAttributeCount());\n assertEquals(a1, entity.getAttribute(id1));\n assertEquals(a2, entity.getAttribute(id2));\n\n assertEquals(1, entity.getSubEntityCount());\n assertEquals(\"SUBexample.edl\", entity.getSubEntity(0).getType());\n assertEquals(1, entity.getSubEntity(0).getAttributeCount());\n assertEquals(0, entity.getSubEntity(0).getSubEntityCount());\n assertEquals(a3, entity.getSubEntity(0).getAttribute(id3));\n\n\n EdmEntity copy = new EdmEntity(entity);\n\n assertEquals(entity.getType(), copy.getType());\n assertEquals(entity.getAttributeCount(), copy.getAttributeCount());\n for (String key : copy.getAttributeIdSet())\n assertEquals(entity.getAttribute(key), copy.getAttribute(key));\n\n assertEquals(entity.getSubEntityCount(), copy.getSubEntityCount());\n for (int i = 0; i < copy.getSubEntityCount(); i++) {\n assertEquals(entity.getSubEntity(i).getType(), copy.getSubEntity(i).getType());\n assertEquals(entity.getSubEntity(i).getAttributeCount(),\n copy.getSubEntity(i).getAttributeCount());\n for (String key : copy.getSubEntity(i).getAttributeIdSet())\n assertEquals(entity.getSubEntity(i).getAttribute(key),\n copy.getSubEntity(i).getAttribute(key));\n }\n }", "Object toExternal (Object entity, Settings settings);", "public Entity newEntity() { return newMyEntity(); }", "public Entity newEntity() { return newMyEntity(); }", "public interface MerchandiserEntities {\n\n static Entity outletEntity() {\n return new Entity(\n Entities.OUTLET_ENTITY,\n OutletModel.id,\n ArrayBuilder.<Field>create()\n .addAll(ImmutableList.of(\n field(OutletModel.name),\n field(OutletModel.address),\n field(OutletModel.qrCode),\n field(OutletModel.location, JavaType.OBJECT, hasOneLocation()),\n field(OutletModel.locationGps, JavaType.OBJECT, hasOneLocation()),\n field(OutletModel.locationNetwork, JavaType.OBJECT, hasOneLocation()),\n field(OutletModel.images, JavaType.ARRAY, hasManyOutletImages())\n ))\n .addAll(Entities.baseFields())\n .build(list -> list.toArray(new Field[list.size()])),\n new DbMapping(\n Entities.OUTLET_TABLE,\n OutletTable.id,\n ArrayBuilder.<ColumnMapping>create()\n .addAll(ImmutableList.of(\n column(OutletModel.name, OutletTable.name),\n column(OutletModel.address, OutletTable.address),\n column(OutletModel.qrCode, OutletTable.qr_code)\n ))\n .addAll(Entities.baseColumns())\n .build(list -> list.toArray(new ColumnMapping[list.size()])),\n ArrayBuilder.<RelationMapping>create()\n .addAll(ImmutableList.of(\n Entities.locationMapping(OutletModel.location, OutletTable.location_id),\n Entities.locationMapping(OutletModel.locationGps, OutletTable.location_id_gps),\n Entities.locationMapping(OutletModel.locationNetwork, OutletTable.location_id_network),\n outletImagesMapping()\n ))\n .addAll(Arrays.asList(Entities.baseRelationMappingsArray()))\n .build(list -> list.toArray(new RelationMapping[list.size()]))\n )\n );\n }\n\n static Relationship hasOneLocation() {\n return new Relationship(\n Relationship.Type.MANY_TO_ONE,\n Relationship.Name.HAS_ONE,\n Entities.LOCATION_ENTITY\n );\n }\n\n static Relationship hasManyOutletImages() {\n return new Relationship(\n Relationship.Type.ONE_TO_MANY,\n Relationship.Name.HAS_MANY,\n Entities.OUTLET_IMAGE_ENTITY\n );\n }\n\n static VirtualRelationMappingImpl outletImagesMapping() {\n return new VirtualRelationMappingImpl(\n Entities.OUTLET_IMAGE_TABLE,\n Entities.OUTLET_IMAGE_ENTITY,\n ImmutableList.of(\n new ForeignColumnMapping(\n OutletImageTable.outlet_id,\n OutletTable.id\n )\n ),\n OutletModel.images,\n new RelationMappingOptionsImpl(\n RelationMappingOptions.CascadeUpsert.YES,\n RelationMappingOptions.CascadeDelete.YES,\n true\n )\n );\n }\n\n static Entity outletImageEntity() {\n return new Entity(\n Entities.OUTLET_IMAGE_ENTITY,\n OutletImageModel.id,\n ArrayBuilder.<Field>create()\n .addAll(ImmutableList.of(\n field(OutletImageModel.title),\n field(OutletImageModel.description),\n field(OutletImageModel.uri),\n field(OutletImageModel.file),\n field(OutletImageModel.fileName),\n field(OutletImageModel.height),\n field(OutletImageModel.width),\n field(OutletImageModel.outlet, JavaType.OBJECT, hasOneOutlet())\n ))\n .addAll(Entities.baseFields())\n .build(list -> list.toArray(new Field[list.size()])),\n new DbMapping(\n Entities.OUTLET_IMAGE_TABLE,\n OutletImageTable.id,\n ArrayBuilder.<ColumnMapping>create()\n .addAll(ImmutableList.of(\n column(OutletImageModel.title, OutletImageTable.title),\n column(OutletImageModel.description, OutletImageTable.description),\n column(OutletImageModel.uri, OutletImageTable.uri),\n column(OutletImageModel.file, OutletImageTable.file),\n column(OutletImageModel.fileName, OutletImageTable.file_name),\n column(OutletImageModel.height, OutletImageTable.height),\n column(OutletImageModel.width, OutletImageTable.width)\n ))\n .addAll(Entities.baseColumns())\n .build(list -> list.toArray(new ColumnMapping[list.size()])),\n ArrayBuilder.<RelationMapping>create()\n .addAll(ImmutableList.of(\n new DirectRelationMappingImpl(\n OUTLET_TABLE,\n OUTLET_ENTITY,\n ImmutableList.of(\n new ForeignColumnMapping(\n OutletImageTable.outlet_id,\n OutletTable.id\n )\n ),\n OutletImageModel.outlet,\n new DirectRelationMappingOptionsImpl(\n RelationMappingOptions.CascadeUpsert.NO,\n RelationMappingOptions.CascadeDelete.NO,\n true,\n DirectRelationMappingOptions.LoadAndDelete.LOAD_AND_DELETE\n )\n )\n ))\n .addAll(Arrays.asList(Entities.baseRelationMappingsArray()))\n .build(list -> list.toArray(new RelationMapping[list.size()]))\n )\n );\n }\n\n static Relationship hasOneOutlet() {\n return new Relationship(\n Relationship.Type.MANY_TO_ONE,\n Relationship.Name.HAS_ONE,\n OUTLET_ENTITY\n );\n }\n\n static Entity locationEntity() {\n return new Entity(\n LOCATION_ENTITY,\n LocationModel.id,\n ArrayBuilder.<Field>create()\n .addAll(ImmutableList.of(\n Entities.field(LocationModel.lat),\n Entities.field(LocationModel.lng),\n Entities.field(LocationModel.accuracy)\n ))\n .addAll(Entities.baseFields())\n .build(list -> list.toArray(new Field[list.size()])),\n new DbMapping(\n LOCATION_TABLE,\n LocationTable.id,\n ArrayBuilder.<ColumnMapping>create()\n .addAll(ImmutableList.of(\n Entities.column(LocationModel.lat, LocationTable.lat),\n Entities.column(LocationModel.lng, LocationTable.lng),\n Entities.column(LocationModel.accuracy, LocationTable.accuracy)\n ))\n .addAll(Entities.baseColumns())\n .build(list -> list.toArray(new ColumnMapping[list.size()])),\n Entities.baseRelationMappingsArray()\n )\n );\n }\n}", "@Override\n public void entityRPClassUpdate(RPObject entity) {\n }", "public interface MavrickEntity extends Serializable,MaverickVO {\n\n}", "public E getEntity() {\n return this.entity;\n }", "@Override\n protected Serializable getContentObject() {\n return result;\n }", "@Override\n public CalificacionEntity toEntity() {\n CalificacionEntity calificacionEntity = super.toEntity();\n if (this.getHospedaje() != null) {\n calificacionEntity.setHospedaje(this.getHospedaje().toEntity());\n }\n return calificacionEntity;\n }", "public interface IMsccEntity extends Serializable {\n}", "public interface Contributor\n extends Keyed\n{\n Collection<Attribute> createAttributesFor( Key key, Content content, Record cr );\n}", "public interface CustomerInfo extends EObject {\n\t/**\n\t * Returns the name of the customer associated to the booking reference\n\t * @model dataType=\"types.String\" required=\"true\" ordered=\"false\" bookingRefDataType=\"types.String\" bookingRefRequired=\"true\" bookingRefOrdered=\"false\"\n\t * @generated NOT\n\t */\n\tString getCustomerName(String bookingRef);\n\n\t/**\n\t * Returns the last name of the customer associated to the booking reference\n\t * @model dataType=\"types.String\" required=\"true\" ordered=\"false\" bookingRefDataType=\"types.String\" bookingRefRequired=\"true\" bookingRefOrdered=\"false\"\n\t * @generated NOT\n\t */\n\tString getCustomerLastName(String bookingRef);\n\n\t/**\n\t * Returns the age of the customer associated to the booking reference. \n\t * Returns -1 if the booking reference does not exist.\n\t * @model dataType=\"types.Integer\" required=\"true\" ordered=\"false\" bookingRefDataType=\"types.String\" bookingRefRequired=\"true\" bookingRefOrdered=\"false\"\n\t * @generated NOT\n\t */\n\tint getCustomerAge(String bookingRef);\n\n\t/**\n\t * Returns the email of the customer associated to the booking reference\n\t * @model dataType=\"types.String\" required=\"true\" ordered=\"false\" bookingRefDataType=\"types.String\" bookingRefRequired=\"true\" bookingRefOrdered=\"false\"\n\t * @generated NOT\n\t */ \n\tString getCustomerEmail(String bookingRef);\n\n\t/**\n\t * Returns the ccnr of the bank card associated to the booking reference\n\t * @model dataType=\"types.Integer\" required=\"true\" ordered=\"false\" bookingRefDataType=\"types.String\" bookingRefRequired=\"true\" bookingRefOrdered=\"false\"\n\t * @generated NOT\n\t */\n\tString getCcNr(String bookingRef);\n\n\t/**\n\t * Returns the ccv of the bank card associated to the booking reference\n\t * @model dataType=\"types.Integer\" required=\"true\" ordered=\"false\" bookingRefDataType=\"types.String\" bookingRefRequired=\"true\" bookingRefOrdered=\"false\"\n\t * @generated NOT\n\t */\n\tString getCcV(String bookingRef);\n\n\t/**\n\t * Returns the expiry month of the bank card associated to the booking reference\n\t * @model dataType=\"types.Integer\" required=\"true\" ordered=\"false\" bookingRefDataType=\"types.String\" bookingRefRequired=\"true\" bookingRefOrdered=\"false\"\n\t * @generated NOT\n\t */\n\tint getExpMonth(String bookingRef);\n\n\t/**\n\t * Returns the expiry year of the bank card associated to the booking reference\n\t * @model dataType=\"types.Integer\" required=\"true\" ordered=\"false\" bookingRefDataType=\"types.String\" bookingRefRequired=\"true\" bookingRefOrdered=\"false\"\n\t * @generated NOT\n\t */\n\tint getExpYear(String bookingRef);\n\n\t/**\n\t * Returns the first name of the bank card associated to the booking reference\n\t * @model dataType=\"types.String\" required=\"true\" ordered=\"false\" bookingRefDataType=\"types.String\" bookingRefRequired=\"true\" bookingRefOrdered=\"false\"\n\t * @generated NOT\n\t */\n\tString getCardFirstName(String bookingRef);\n\n\t/**\n\t * Returns the last name of the bank card associated to the booking reference\n\t * @model dataType=\"types.String\" required=\"true\" ordered=\"false\" bookingRefDataType=\"types.String\" bookingRefRequired=\"true\" bookingRefOrdered=\"false\"\n\t * @generated NOT\n\t */\n\tString getCardLastName(String bookingRef);\n\n}", "public interface ReferentialItem extends Persistable<Long>, SecuredObject {\n\n boolean isEnabled();\n void setEnabled(boolean enabled);\n int getOrder();\n void setOrder(int order);\n String getDescription();\n void setDescription(String description);\n String getName();\n void setName(String name);\n String getShortName();\n void setShortName(String shortName);\n\n}", "public interface AEntityProperty {\n}", "public interface BaseEntity extends Serializable {\n\n}", "public interface Entity\n\textends Node\n{\n\n\tpublic abstract String getPublicId();\n\n\tpublic abstract String getSystemId();\n\n\tpublic abstract String getNotationName();\n}", "@Override\r\n\tpublic void cast() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void cast() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void cast() {\n\t\t\r\n\t}", "protected abstract Entity getEditedEntity();", "public ImmutableRetrieve() {\n super();\n }", "@Override\n\tpublic Class<Object> getEntityClass() {\n\t\treturn null;\n\t}", "protected HttpEntity convertToHttpEntity(ClientEntity entity) {\r\n ByteArrayOutputStream output = new ByteArrayOutputStream();\r\n OutputStreamWriter writer = null;\r\n try {\r\n writer = new OutputStreamWriter(output, Constants.UTF8);\r\n final ODataSerializer serializer = odataClient.getSerializer(org.apache.olingo.commons.api.format.ContentType.JSON);\r\n serializer.write(writer, odataClient.getBinder().getEntity(entity));\r\n HttpEntity httpEntity = new ByteArrayEntity(output.toByteArray(),\r\n org.apache.http.entity.ContentType.APPLICATION_JSON);\r\n return httpEntity;\r\n } catch (Exception e) {\r\n throw new HttpClientException(e);\r\n } finally {\r\n IOUtils.closeQuietly(writer);\r\n }\r\n }", "E toEntity(V dto);", "public StShhnKnyMs newEntity() { return new StShhnKnyMs(); }", "public interface ValueBase extends IDLEntity {\n /**\n * Provides truncatable repository ids.\n * @return a String array--list of truncatable repository ids.\n */\n String[] _truncatable_ids();\n}", "@Override\r\n public BlogEntity toEntity() {\r\n BlogEntity entity = super.toEntity();\r\n if(cliente !=null) entity.setCliente(this.cliente.toEntity());\r\n if(evento !=null) entity.setEvento(this.evento.toEntity());\r\n \r\n return entity;\r\n }", "T createEntity();", "@Override\n public String getEntId() {\n init();\n return entid;\n }", "public EntityBase getEntity() {\n return entity;\n }", "@Override\r\n\t\t\tprotected void saveContext() {\n\t\t\t\t\r\n\t\t\t}", "@Override\n protected E dtoToEntity( final D dto )\n {\n Objects.requireNonNull( dto, \"dto argument cannot be null\" );\n final E entity = super.dtoToEntity( dto );\n /*\n * Convert the notes source ID to UUID\n */\n if ( dto instanceof NotesSourceIdContainer &&\n entity instanceof NotesSourceUuidContainer )\n {\n final NotesSourceIdContainer notesSourceIdContainer = (NotesSourceIdContainer) dto;\n /*\n * Check for new sources\n */\n this.stockNoteSourceService.checkForNewSource( notesSourceIdContainer );\n final NotesSourceUuidContainer notesSourceUuidContainer = (NotesSourceUuidContainer)entity;\n /*\n * Convert the String UUID to a real uuid if present\n */\n if ( notesSourceIdContainer.getNotesSourceId() != null &&\n !notesSourceIdContainer.getNotesSourceId().isEmpty() )\n {\n final StockNoteSourceEntity stockNoteSourceEntity = this.stockNoteSourceService\n .getStockNoteSource( ((CustomerUuidContainer)entity).getCustomerUuid(),\n notesSourceIdContainer.getNotesSourceId() );\n notesSourceUuidContainer.setNotesSourceEntity( stockNoteSourceEntity );\n }\n }\n //logMethodEnd( methodName, entity );\n return entity;\n }", "@Override\r\n public void createNewEntity(String entityName) {\n\r\n }", "IPayerEntity withPayerEntity();", "@Override\n protected Class<LineEntity> getEntityClass() {\n return null;\n }", "public ReadModelEntity(Guid id)\n {\n this.Id = MakeId(this.GetType(), id);\n this.AggregateId = id;\n }", "T onBeforeConvert(T entity, String spaceName);", "public interface PolicyClassifierUpdate extends ModelEntity, Buildable<PolicyClassifierUpdateBuilder>{\n\n /**\n * Is Policy classifier shared\n *\n * @return the true if shared and false if not shared\n */\n boolean isShared();\n\n /**\n * Gets the Protocol\n *\n * @return the Protocol\n */\n Protocol getProtocol();\n\n /**\n * Gets the Direction\n *\n * @return the Direction\n */\n Direction getDirection();\n\n /**\n * Gets the Port range\n *\n * @return the Port range\n */\n String getPortRange();\n\n /**\n * Gets the description\n *\n * @return the description\n */\n String getDescription();\n}", "public interface Division extends BusinessObject, Serializable {\n\n /**\n * Accessor method for Name.\n * <br>longTextAttribute The name of the division\n *\n * @return java.lang.String attribute of this Division.\n */\n public java.lang.String getName();\n\n /**\n * Mutator method for Name.\n * <br>longTextAttribute The name of the division\n *\n * @param aName set java.lang.String attribute of this Division.\n */\n public void setName(java.lang.String aName);\n\n\n /**\n * The enumeration for Name\n */\n public final static int NAME = 0;\n\n\n\n\n\n}", "private Integer getId() { return this.id; }", "public interface LoaiPhongVanBanNoiBoModel extends BaseModel {\n public LoaiPhongVanBanNoiBoPK getPrimaryKey();\n\n public void setPrimaryKey(LoaiPhongVanBanNoiBoPK pk);\n\n public long getLoaiVanBanNoiBoId();\n\n public void setLoaiVanBanNoiBoId(long loaiVanBanNoiBoId);\n\n public long getPhongVanBanNoiBoId();\n\n public void setPhongVanBanNoiBoId(long phongVanBanNoiBoId);\n\n public LoaiPhongVanBanNoiBo toEscapedModel();\n}", "protected abstract Set method_1559();", "public MuseologicalObjectDO getEntity(){\r\n\t\tMuseologicalObjectDO objDO = new MuseologicalObjectDO();\r\n\t\tif(objectId != null) objDO.setId(objectId);\r\n\t\tobjDO.setName(name);\r\n\t\tobjDO.setDate(date.getTime());\r\n\t\tobjDO.setObjectType(objectType);\r\n\t\treturn objDO;\r\n\t}", "public EntityID() {\n }", "public interface Translation extends MultiTenantCloneable<Translation>, Serializable {\n\n public Long getId();\n\n public void setId(Long id);\n\n public TranslatedEntity getEntityType();\n\n public void setEntityType(TranslatedEntity entityType);\n\n public String getEntityId();\n\n public void setEntityId(String entityId);\n\n public String getFieldName();\n\n public void setFieldName(String fieldName);\n\n public String getLocaleCode();\n\n public void setLocaleCode(String localeCode);\n\n public String getTranslatedValue();\n\n public void setTranslatedValue(String translatedValue);\n\n}", "public interface InternalEntity {\n\t/**\n\t * Returns true if the entity should be visible in the entities view.\n\t * \n\t * @return\n\t */\n\tboolean isVisible();\n}", "public interface Event extends Serializable {\n\n Long getEventId();\n\n String getEventTitle();\n\n String getEventDescription();\n\n Long getEventAssignerId();\n\n Date getOriginalEventStartDate();\n\n Date getEventStartDate();\n\n /***\n * Sets the new start date for new generating event.\n *\n * @param startEventDate\n */\n void setEventStartDate(Date startEventDate);\n\n Date getEventEndDate();\n\n /***\n * Sets the new end date for new generating event.\n *\n * @param endEventDate\n */\n void setEventEndDate(Date endEventDate);\n//\n// Date getEventRemindDate();\n//\n// /***\n// * Sets the new remind date for new generating event.\n// *\n// * @param endEventDate\n// */\n// void setEventRemindDate(Date endEventDate);\n\n /***\n * Return calendarId field generated with system calendar after sync it\n *\n * @return\n * @see SyncUtils\n */\n Long getCalendarId();\n\n /***\n * Sets calendarId field generated with system calendar after sync it\n *\n * @param calendarId\n * @see SyncUtils\n */\n void setCalendarId(Long calendarId);\n\n /***\n * @return repeat period for current entity instance\n * @see EventProperties.RepeatPeriod\n */\n @EventProperties.RepeatPeriod\n int getEventRepeatPeriod();\n\n /***\n * @return event icon url\n */\n String getEventIconUrl();\n\n /***\n * @return boolean which indicates is event editable\n */\n Boolean isEditable();\n\n /***\n * @return boolean which indicates is event length All day long\n */\n Boolean isAllDayEvent();\n}", "public SongEntity getSong()\r\n {\r\n return song;\r\n }", "public interface DocumentoInternoSinBinarios {\n Long getId();\n Integer getNivel();\n TipoDocumento getTipo();\n String getCodigo();\n}", "public interface I13nAct extends com.hps.july.persistence.Document, com.ibm.ivj.ejb.runtime.CopyHelper {\n\n/**\n * This method was generated for supporting the association named I13nAct2Agregate. \n * \tIt will be deleted/edited when the association is deleted/edited.\n */\n/* WARNING: THIS METHOD WILL BE REGENERATED. */\ncom.hps.july.persistence.StorageCard getAgregate() throws java.rmi.RemoteException, javax.ejb.FinderException;\n/**\n * This method was generated for supporting the association named I13nAct2Agregate. \n * \tIt will be deleted/edited when the association is deleted/edited.\n */\n/* WARNING: THIS METHOD WILL BE REGENERATED. */\ncom.hps.july.persistence.StorageCardKey getAgregateKey() throws java.rmi.RemoteException;\n/**\n * \n * @return java.lang.Integer\n * @exception String The exception description.\n */\njava.lang.Integer getAgregateresource() throws java.rmi.RemoteException;\n/**\n * \n * @return java.lang.String\n * @exception String The exception description.\n */\njava.lang.String getAgregateserial() throws java.rmi.RemoteException;\n/**\n * This method was generated for supporting the association named I13nActResourceSet2I13nAct. \n * \tIt will be deleted/edited when the association is deleted/edited.\n */\n/* WARNING: THIS METHOD WILL BE REGENERATED. */\npublic java.util.Enumeration getI13nActResourceSet() throws java.rmi.RemoteException, javax.ejb.FinderException;\n/**\n * This method was generated for supporting the association named I13nDateSaving2I13nAct. \n * \tIt will be deleted/edited when the association is deleted/edited.\n */\n/* WARNING: THIS METHOD WILL BE REGENERATED. */\npublic java.util.Enumeration getI13nDateSaving() throws java.rmi.RemoteException, javax.ejb.FinderException;\n/**\n * \n * @return java.lang.Boolean\n * @exception String The exception description.\n */\njava.lang.Boolean getRecalcagrprice() throws java.rmi.RemoteException;\n/**\n * This method was generated for supporting the association named I13nAct2Techstuff. \n * \tIt will be deleted/edited when the association is deleted/edited.\n */\n/* WARNING: THIS METHOD WILL BE REGENERATED. */\ncom.hps.july.persistence.Worker getTechStuff() throws java.rmi.RemoteException, javax.ejb.FinderException;\n/**\n * This method was generated for supporting the association named I13nAct2Techstuff. \n * \tIt will be deleted/edited when the association is deleted/edited.\n */\n/* WARNING: THIS METHOD WILL BE REGENERATED. */\ncom.hps.july.persistence.WorkerKey getTechStuffKey() throws java.rmi.RemoteException;\n/**\n * This method was generated for supporting the association named I13nAct2Agregate. \n * \tIt will be deleted/edited when the association is deleted/edited.\n */\n/* WARNING: THIS METHOD WILL BE REGENERATED. */\nvoid privateSetAgregateKey(com.hps.july.persistence.StorageCardKey inKey) throws java.rmi.RemoteException;\n/**\n * This method was generated for supporting the association named I13nAct2Techstuff. \n * \tIt will be deleted/edited when the association is deleted/edited.\n */\n/* WARNING: THIS METHOD WILL BE REGENERATED. */\nvoid privateSetTechStuffKey(com.hps.july.persistence.WorkerKey inKey) throws java.rmi.RemoteException;\n/**\n * This method was generated for supporting the association named I13nActResourceSet2I13nAct. \n * \tIt will be deleted/edited when the association is deleted/edited.\n */\n/* WARNING: THIS METHOD WILL BE REGENERATED. */\npublic void secondaryAddI13nActResourceSet(com.hps.july.persistence.I13nActResourceSet anI13nActResourceSet) throws java.rmi.RemoteException;\n/**\n * This method was generated for supporting the association named I13nDateSaving2I13nAct. \n * \tIt will be deleted/edited when the association is deleted/edited.\n */\n/* WARNING: THIS METHOD WILL BE REGENERATED. */\npublic void secondaryAddI13nDateSaving(com.hps.july.persistence.I13nDateSaving anI13nDateSaving) throws java.rmi.RemoteException;\n/**\n * This method was generated for supporting the association named I13nActResourceSet2I13nAct. \n * \tIt will be deleted/edited when the association is deleted/edited.\n */\n/* WARNING: THIS METHOD WILL BE REGENERATED. */\npublic void secondaryRemoveI13nActResourceSet(com.hps.july.persistence.I13nActResourceSet anI13nActResourceSet) throws java.rmi.RemoteException;\n/**\n * This method was generated for supporting the association named I13nDateSaving2I13nAct. \n * \tIt will be deleted/edited when the association is deleted/edited.\n */\n/* WARNING: THIS METHOD WILL BE REGENERATED. */\npublic void secondaryRemoveI13nDateSaving(com.hps.july.persistence.I13nDateSaving anI13nDateSaving) throws java.rmi.RemoteException;\n/**\n * This method was generated for supporting the association named I13nAct2Agregate. \n * \tIt will be deleted/edited when the association is deleted/edited.\n */\n/* WARNING: THIS METHOD WILL BE REGENERATED. */\nvoid secondarySetAgregate(com.hps.july.persistence.StorageCard anAgregate) throws java.rmi.RemoteException;\n/**\n * This method was generated for supporting the association named I13nAct2Techstuff. \n * \tIt will be deleted/edited when the association is deleted/edited.\n */\n/* WARNING: THIS METHOD WILL BE REGENERATED. */\nvoid secondarySetTechStuff(com.hps.july.persistence.Worker aTechStuff) throws java.rmi.RemoteException;\n/**\n * This method was generated for supporting the association named I13nAct2Agregate. \n * \tIt will be deleted/edited when the association is deleted/edited.\n */\n/* WARNING: THIS METHOD WILL BE REGENERATED. */\nvoid setAgregate(com.hps.july.persistence.StorageCard anAgregate) throws java.rmi.RemoteException;\n/**\n * \n * @return void\n * @param newValue java.lang.Integer\n * @exception String The exception description.\n */\nvoid setAgregateresource(java.lang.Integer newValue) throws java.rmi.RemoteException;\n/**\n * \n * @return void\n * @param newValue java.lang.String\n * @exception String The exception description.\n */\nvoid setAgregateserial(java.lang.String newValue) throws java.rmi.RemoteException;\n/**\n * \n * @return void\n * @param newValue java.lang.Boolean\n * @exception String The exception description.\n */\nvoid setRecalcagrprice(java.lang.Boolean newValue) throws java.rmi.RemoteException;\n/**\n * This method was generated for supporting the association named I13nAct2Techstuff. \n * \tIt will be deleted/edited when the association is deleted/edited.\n */\n/* WARNING: THIS METHOD WILL BE REGENERATED. */\nvoid setTechStuff(com.hps.july.persistence.Worker aTechStuff) throws java.rmi.RemoteException;\n}", "@Override\n public void rootRPClassUpdate(RPObject entity) {\n }", "public DDetRetContrArtEscenicsAttTO() { }", "public interface CharacterData extends EntityData {\n\n}" ]
[ "0.6858344", "0.6564367", "0.6347119", "0.6331082", "0.6282477", "0.60432535", "0.6034716", "0.5992775", "0.5991318", "0.5991318", "0.5988807", "0.5967397", "0.5949273", "0.5938862", "0.59147966", "0.5901171", "0.58914363", "0.58731645", "0.58481824", "0.5801682", "0.579742", "0.579742", "0.5761043", "0.5707892", "0.5703092", "0.57020074", "0.5701993", "0.57014453", "0.5701289", "0.56696224", "0.56599575", "0.56430614", "0.5640287", "0.5636629", "0.56264365", "0.5615962", "0.5612235", "0.55866086", "0.5582086", "0.55678374", "0.55450296", "0.553045", "0.55214113", "0.5515802", "0.55108327", "0.55086386", "0.549886", "0.54988366", "0.549397", "0.5492803", "0.5492803", "0.54853463", "0.54820544", "0.5475052", "0.5457753", "0.5445743", "0.54434276", "0.54361165", "0.54355633", "0.5424801", "0.542221", "0.5417532", "0.54158324", "0.5389936", "0.53856736", "0.53856736", "0.53856736", "0.5384135", "0.53837615", "0.537872", "0.53776985", "0.5371822", "0.5366308", "0.53645235", "0.53614324", "0.53559494", "0.5353817", "0.53527266", "0.5341633", "0.53344315", "0.53340536", "0.5331434", "0.5329729", "0.5329308", "0.53270173", "0.5320924", "0.5319868", "0.5317791", "0.5315892", "0.531061", "0.53100044", "0.53088325", "0.5307646", "0.5304598", "0.5304335", "0.53040475", "0.53030795", "0.5302266", "0.5301304", "0.530095", "0.5299889" ]
0.0
-1
///////////////////////////////////////// PUBLIC METHODS (ENTITY to BEAN) /////////////////////////////////////////
public static <S extends BaseEntity,D extends BaseBean> D parserEntityToBean(S sourceObject, Class<D> destinationType) { return dozerMapper.map(sourceObject, destinationType); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void toEntity(){\n\n }", "public abstract P toEntity();", "protected abstract Serializable getEntity();", "Object toExternal (Object entity, Settings settings);", "protected abstract ENTITY createEntity();", "public abstract T convertToEntity(D dto);", "@Override\n public Entity getEntity() {\n return super.getEntity();\n }", "public abstract V getEntity();", "private void toRent() {\n }", "public CuentaEntity toEntity() {\r\n CuentaEntity cuentaE = super.toEntity();\r\n if (this.tarjeta != null) {\r\n if (!this.tarjeta.isEmpty()) {\r\n List<TarjetaEntity> tarjetasEntity = new ArrayList<>();\r\n for (TarjetaDTO dtoTarjeta : tarjeta) {\r\n tarjetasEntity.add(dtoTarjeta.toEntity());\r\n }\r\n cuentaE.setTarjeta(tarjetasEntity);\r\n }\r\n }\r\n if (this.ordenPagos != null) {\r\n if (!this.ordenPagos.isEmpty()) {\r\n List<OrdenPagoEntity> ordenesEntity = new ArrayList<>();\r\n for (OrdenPagoDTO dtoOrdenPago : ordenPagos) {\r\n ordenesEntity.add(dtoOrdenPago.toEntity());\r\n }\r\n cuentaE.setOrdenPagos(ordenesEntity);\r\n }\r\n }\r\n \r\n if (this.estudiante != null) {\r\n System.out.println(\"---------------------------------------------------343434343\");\r\n EstudianteEntity es = estudiante.toEntity();\r\n cuentaE.setEstudiante(es);\r\n System.out.println(es.getDocumento());\r\n System.out.println(cuentaE.getEstudiante());\r\n System.out.println(cuentaE.getEstudiante().getDocumento());\r\n }\r\n\r\n return cuentaE;\r\n }", "private RepositorioAtendimentoPublicoHBM() {\r\t}", "public Entity build();", "public interface Entity {\n}", "public interface MerchandiserEntities {\n\n static Entity outletEntity() {\n return new Entity(\n Entities.OUTLET_ENTITY,\n OutletModel.id,\n ArrayBuilder.<Field>create()\n .addAll(ImmutableList.of(\n field(OutletModel.name),\n field(OutletModel.address),\n field(OutletModel.qrCode),\n field(OutletModel.location, JavaType.OBJECT, hasOneLocation()),\n field(OutletModel.locationGps, JavaType.OBJECT, hasOneLocation()),\n field(OutletModel.locationNetwork, JavaType.OBJECT, hasOneLocation()),\n field(OutletModel.images, JavaType.ARRAY, hasManyOutletImages())\n ))\n .addAll(Entities.baseFields())\n .build(list -> list.toArray(new Field[list.size()])),\n new DbMapping(\n Entities.OUTLET_TABLE,\n OutletTable.id,\n ArrayBuilder.<ColumnMapping>create()\n .addAll(ImmutableList.of(\n column(OutletModel.name, OutletTable.name),\n column(OutletModel.address, OutletTable.address),\n column(OutletModel.qrCode, OutletTable.qr_code)\n ))\n .addAll(Entities.baseColumns())\n .build(list -> list.toArray(new ColumnMapping[list.size()])),\n ArrayBuilder.<RelationMapping>create()\n .addAll(ImmutableList.of(\n Entities.locationMapping(OutletModel.location, OutletTable.location_id),\n Entities.locationMapping(OutletModel.locationGps, OutletTable.location_id_gps),\n Entities.locationMapping(OutletModel.locationNetwork, OutletTable.location_id_network),\n outletImagesMapping()\n ))\n .addAll(Arrays.asList(Entities.baseRelationMappingsArray()))\n .build(list -> list.toArray(new RelationMapping[list.size()]))\n )\n );\n }\n\n static Relationship hasOneLocation() {\n return new Relationship(\n Relationship.Type.MANY_TO_ONE,\n Relationship.Name.HAS_ONE,\n Entities.LOCATION_ENTITY\n );\n }\n\n static Relationship hasManyOutletImages() {\n return new Relationship(\n Relationship.Type.ONE_TO_MANY,\n Relationship.Name.HAS_MANY,\n Entities.OUTLET_IMAGE_ENTITY\n );\n }\n\n static VirtualRelationMappingImpl outletImagesMapping() {\n return new VirtualRelationMappingImpl(\n Entities.OUTLET_IMAGE_TABLE,\n Entities.OUTLET_IMAGE_ENTITY,\n ImmutableList.of(\n new ForeignColumnMapping(\n OutletImageTable.outlet_id,\n OutletTable.id\n )\n ),\n OutletModel.images,\n new RelationMappingOptionsImpl(\n RelationMappingOptions.CascadeUpsert.YES,\n RelationMappingOptions.CascadeDelete.YES,\n true\n )\n );\n }\n\n static Entity outletImageEntity() {\n return new Entity(\n Entities.OUTLET_IMAGE_ENTITY,\n OutletImageModel.id,\n ArrayBuilder.<Field>create()\n .addAll(ImmutableList.of(\n field(OutletImageModel.title),\n field(OutletImageModel.description),\n field(OutletImageModel.uri),\n field(OutletImageModel.file),\n field(OutletImageModel.fileName),\n field(OutletImageModel.height),\n field(OutletImageModel.width),\n field(OutletImageModel.outlet, JavaType.OBJECT, hasOneOutlet())\n ))\n .addAll(Entities.baseFields())\n .build(list -> list.toArray(new Field[list.size()])),\n new DbMapping(\n Entities.OUTLET_IMAGE_TABLE,\n OutletImageTable.id,\n ArrayBuilder.<ColumnMapping>create()\n .addAll(ImmutableList.of(\n column(OutletImageModel.title, OutletImageTable.title),\n column(OutletImageModel.description, OutletImageTable.description),\n column(OutletImageModel.uri, OutletImageTable.uri),\n column(OutletImageModel.file, OutletImageTable.file),\n column(OutletImageModel.fileName, OutletImageTable.file_name),\n column(OutletImageModel.height, OutletImageTable.height),\n column(OutletImageModel.width, OutletImageTable.width)\n ))\n .addAll(Entities.baseColumns())\n .build(list -> list.toArray(new ColumnMapping[list.size()])),\n ArrayBuilder.<RelationMapping>create()\n .addAll(ImmutableList.of(\n new DirectRelationMappingImpl(\n OUTLET_TABLE,\n OUTLET_ENTITY,\n ImmutableList.of(\n new ForeignColumnMapping(\n OutletImageTable.outlet_id,\n OutletTable.id\n )\n ),\n OutletImageModel.outlet,\n new DirectRelationMappingOptionsImpl(\n RelationMappingOptions.CascadeUpsert.NO,\n RelationMappingOptions.CascadeDelete.NO,\n true,\n DirectRelationMappingOptions.LoadAndDelete.LOAD_AND_DELETE\n )\n )\n ))\n .addAll(Arrays.asList(Entities.baseRelationMappingsArray()))\n .build(list -> list.toArray(new RelationMapping[list.size()]))\n )\n );\n }\n\n static Relationship hasOneOutlet() {\n return new Relationship(\n Relationship.Type.MANY_TO_ONE,\n Relationship.Name.HAS_ONE,\n OUTLET_ENTITY\n );\n }\n\n static Entity locationEntity() {\n return new Entity(\n LOCATION_ENTITY,\n LocationModel.id,\n ArrayBuilder.<Field>create()\n .addAll(ImmutableList.of(\n Entities.field(LocationModel.lat),\n Entities.field(LocationModel.lng),\n Entities.field(LocationModel.accuracy)\n ))\n .addAll(Entities.baseFields())\n .build(list -> list.toArray(new Field[list.size()])),\n new DbMapping(\n LOCATION_TABLE,\n LocationTable.id,\n ArrayBuilder.<ColumnMapping>create()\n .addAll(ImmutableList.of(\n Entities.column(LocationModel.lat, LocationTable.lat),\n Entities.column(LocationModel.lng, LocationTable.lng),\n Entities.column(LocationModel.accuracy, LocationTable.accuracy)\n ))\n .addAll(Entities.baseColumns())\n .build(list -> list.toArray(new ColumnMapping[list.size()])),\n Entities.baseRelationMappingsArray()\n )\n );\n }\n}", "public void generate(Object entity) throws AAException;", "@Test\n public void convertToEntity() {\n application = getApplicationBuilder().addBaseApplication().setPerson().build();\n\n // When converting\n converter.convertToEntity(application, entity);\n\n // Then is successful\n assertEquals(new Integer(1), entity.getNoOfBadges());\n assertEquals(ValidValues.DOB, entity.getDob());\n // And nino is uppercase with no spaces\n assertEquals(ValidValues.NINO_FORMATTED, entity.getNino());\n assertEquals(ValidValues.BADGE_HOLDER_NAME, entity.getHolderName());\n assertEquals(ValidValues.BADGE_HOLDER_NAME_AT_BIRTH, entity.getHolderNameAtBirth());\n assertEquals(ValidValues.GENDER.name(), entity.getGenderCode());\n }", "public Object toPojo(Entity entity) {\n return ofy().load().fromEntity(entity);\n }", "public interface LoaiPhongVanBanNoiBoModel extends BaseModel {\n public LoaiPhongVanBanNoiBoPK getPrimaryKey();\n\n public void setPrimaryKey(LoaiPhongVanBanNoiBoPK pk);\n\n public long getLoaiVanBanNoiBoId();\n\n public void setLoaiVanBanNoiBoId(long loaiVanBanNoiBoId);\n\n public long getPhongVanBanNoiBoId();\n\n public void setPhongVanBanNoiBoId(long phongVanBanNoiBoId);\n\n public LoaiPhongVanBanNoiBo toEscapedModel();\n}", "<T> void toEntity(T entity, int type);", "@Override\r\n public AseoEntity toEntity() {\r\n AseoEntity entity = new AseoEntity();\r\n entity.setBanho(this.banho);\r\n entity.setDientes(this.dientes);\r\n entity.setPeluqueria(this.peluqueria);\r\n entity.setCosto(this.getCosto());\r\n entity.setDuracion(this.getDuracion());\r\n entity.setEstado(this.isEstado());\r\n entity.setFecha(this.getFecha());\r\n entity.setRango(this.getRango());\r\n entity.setId(this.id);\r\n if (this.cliente != null) {\r\n entity.setCliente(cliente.toEntity());\r\n }\r\n if (this.mascota != null) {\r\n entity.setMascota(mascota.toEntity());\r\n }\r\n if (this.empleado != null) {\r\n entity.setEmpleado(empleado.toEntity());\r\n }\r\n if (this.factura != null) {\r\n entity.setFactura(factura.toEntity());\r\n }\r\n if (this.calificacion != null) {\r\n entity.setCalificacion(calificacion.toEntity());\r\n }\r\n if (this.getVeterinaria() != null) {\r\n entity.setVeterinaria(this.getVeterinaria().toEntity());\r\n }\r\n return entity;\r\n }", "Entity createEntity();", "Object toDomain(Object entity, Settings settings);", "public interface PropertyDefEntity extends javax.ejb.EJBLocalObject {\n\n /**\n * Returns a PropertyDefDto data transfer object containing all parameters of\n * this property definition instance.\n *\n * @return PropertyDefDto the data transfer object containing all parameters of this instance\n * @see #setDto\n */\n public PropertyDefDto getDto();\n\n /**\n * Sets all data members of this property definition instance to the values\n * from the specified data transfer object.\n *\n * @param dto PropertyDefDto the data transfer object containing the new\n * parameters for this instance\n * @see #getDto\n */\n public void setDto(PropertyDefDto dto);\n\n}", "@Override\r\n public BlogEntity toEntity() {\r\n BlogEntity entity = super.toEntity();\r\n if(cliente !=null) entity.setCliente(this.cliente.toEntity());\r\n if(evento !=null) entity.setEvento(this.evento.toEntity());\r\n \r\n return entity;\r\n }", "E toEntity(V dto);", "public interface EntityBase extends Serializable{\n\n\t/**\n\t * \n\t * Retorna o ID da Entidade.\n\t * \n\t * \n\t * @return {@link Long} - ID da Entidade.\n\t */\n\tLong getId();\n}", "protected T getEntity() {\r\n\t\treturn entity;\r\n\t}", "@Override\n\tpublic void entrenar() {\n\t\t\n\t}", "public BridgeEntity onBridge();", "EntityData<?> getEntityData();", "public abstract Integer getEntity();", "@Override\r\n\tpublic void cast() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void cast() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void cast() {\n\t\t\r\n\t}", "public E getEntity();", "public interface EHR_Entity extends Data_Entity {\r\n\r\n // Property http://www.owl-ontologies.com/unnamed.owl#agent_id\r\n String getAgent_id();\r\n\r\n RDFProperty getAgent_idProperty();\r\n\r\n boolean hasAgent_id();\r\n\r\n void setAgent_id(String newAgent_id);\r\n\r\n // Property http://www.owl-ontologies.com/unnamed.owl#object_ids\r\n Collection getObject_ids();\r\n\r\n RDFProperty getObject_idsProperty();\r\n\r\n boolean hasObject_ids();\r\n\r\n Iterator listObject_ids();\r\n\r\n void addObject_ids(String newObject_ids);\r\n\r\n void removeObject_ids(String oldObject_ids);\r\n\r\n void setObject_ids(Collection newObject_ids);\r\n\r\n // Property http://www.owl-ontologies.com/unnamed.owl#type\r\n String getType();\r\n\r\n RDFProperty getTypeProperty();\r\n\r\n boolean hasType();\r\n\r\n void setType(String newType);\r\n}", "String getEntity();", "String getEntity();", "public String getPrimitiveEntity();", "@Override\n public CalificacionEntity toEntity() {\n CalificacionEntity calificacionEntity = super.toEntity();\n if (this.getHospedaje() != null) {\n calificacionEntity.setHospedaje(this.getHospedaje().toEntity());\n }\n return calificacionEntity;\n }", "public Entity newEntity() { return newMyEntity(); }", "public Entity newEntity() { return newMyEntity(); }", "T createEntity();", "public interface BaseEntity extends Serializable {\n\n}", "public interface CtoB extends CtoBOperations, TEGApp.baseI, org.omg.CORBA.portable.IDLEntity \n{\n}", "public UserFacebookConverter() {\n entity = new UserFacebook();\n }", "public Entity toEntity(Object pojo) {\n return ofy().save().toEntity(pojo);\n }", "public ZEntity getEntity() {\r\n return entity;\r\n }", "T onBeforeConvert(T entity, String spaceName);", "public interface MavrickEntity extends Serializable,MaverickVO {\n\n}", "public CoordinadorEntity toEntity(){\n \n CoordinadorEntity entity = new CoordinadorEntity(); \n entity.setId_coordinador(this.id_coodinador);\n entity.setNombres(this.nombres);\n entity.setApellidos(this.apellidos);\n entity.setGenero(this.genero);\n entity.setEmail(this.email);\n entity.setTipoDocumento(tipo_documento_id);\n entity.setNro_documento(this.nro_documento);\n \n return entity;\n }", "public interface IMsccEntity extends Serializable {\n}", "@Override\n public D entityToDTO( final E entity )\n {\n //final String methodName = \"cachedDataToDTO\";\n //logMethodBegin( methodName, entity );\n Objects.requireNonNull( entity, \"entity argument cannot be null\" );\n D dto = super.entityToDTO( entity );\n /*\n * I think this is a good use of instanceof...although I am not convinced, I'll have to think about this...\n * If any stock DTO is a stock company container, it will be populated automatically with the stock company\n * information. No need for any sub cvl\n *\n * NEED TO SERIOUSLY THINK ABOUT A BETTER SOLUTION HERE....5/9/2017 Mike.\n *\n * Need to develop some sort of \"conversion\" registration so that subclasses can register \"converters\" to be\n * run on entity.\n *\n /*\n * StockPriceQuoteContainers contain everything in a StockPriceContainer so get that instead\n */\n /*\n if ( dto instanceof StockQuoteDTOContainer )\n {\n this.stockQuoteEntityService\n .setQuoteInformation( dto );\n }\n */\n /*\n * The quote contains the company name\n */\n /*\n else if ( dto instanceof StockCompanyEntityContainer )\n {\n this.stockCompanyEntityService\n .setCompanyInformation( (StockCompanyDTOContainer) dto );\n }\n if ( dto instanceof StockPriceQuoteDTOContainer )\n {\n this.stockPriceQuoteService\n .setStockPriceQuote( dto, ASYNCHRONOUS );\n }\n */\n\n /*\n * Convert the UUID to a string and get the notes source name for the UUID\n */\n if ( entity instanceof NotesSourceUuidContainer &&\n dto instanceof NotesSourceIdContainer )\n {\n final NotesSourceUuidContainer notesSourceUuidContainer = (NotesSourceUuidContainer)entity;\n if ( notesSourceUuidContainer.getNotesSourceEntity().isPresent() )\n {\n final NotesSourceIdContainer notesSourceIdContainer = (NotesSourceIdContainer)dto;\n final StockNoteSourceEntity stockNoteSourceEntity = notesSourceUuidContainer.getNotesSourceEntity().get();\n notesSourceIdContainer.setNotesSourceName( stockNoteSourceEntity.getName() );\n notesSourceIdContainer.setNotesSourceId( stockNoteSourceEntity.getUuid().toString() );\n }\n }\n\n if ( dto instanceof TagsContainer )\n {\n final TagsContainer tagsContainer = (TagsContainer)dto;\n tagsContainer.setTags( this.stockTagService.findStockTags( UUIDUtil.uuid( tagsContainer.getCustomerId() ),\n StockTagEntity.StockTagReferenceType.STOCK_TO_BUY,\n UUIDUtil.uuid( tagsContainer.getEntityId() ) ) );\n }\n //logMethodEnd( methodName, dto );\n return dto;\n }", "@Override\n\tpublic void initEntity() {\n\n\t}", "@Override\r\n protected void updateObject(SimpleBody object, Entity e) {\n }", "@Override\r\n protected void updateObject(SimpleBody object, Entity e) {\n }", "protected void entityInit() {}", "IPayerEntity withPayerEntity();", "void buildFromEntity(E entity);", "public abstract Object getUnderlyingObject();", "@Override\r\n public ViviendaEntity toEntity() {\r\n ViviendaEntity viviendaEntity = super.toEntity();\r\n if (contratos != null) {\r\n List<ContratoEntity> contratosEntity = new ArrayList<>();\r\n for (ContratoDTO dtoContrato : contratos) {\r\n contratosEntity.add(dtoContrato.toEntity());\r\n }\r\n viviendaEntity.setContratos(contratosEntity);\r\n }\r\n\r\n if (cuartos != null) {\r\n List<CuartoEntity> cuartoEntities = new ArrayList<>();\r\n for (CuartoDTO dto : cuartos) {\r\n cuartoEntities.add(dto.toEntity());\r\n }\r\n viviendaEntity.setCuartos(cuartoEntities);\r\n }\r\n\r\n if (sitiosDeInteres != null) {\r\n List<SitioInteresEntity> entities = new ArrayList<>();\r\n for (SitioInteresDTO dto : sitiosDeInteres) {\r\n entities.add(dto.toEntity());\r\n }\r\n viviendaEntity.setSitiosDeInteres(entities);\r\n }\r\n\r\n if (calificaciones != null) {\r\n List<CalificacionEntity> entities = new ArrayList<>();\r\n for (CalificacionDTO dto : calificaciones) {\r\n entities.add(dto.toEntity());\r\n }\r\n viviendaEntity.setCalificaciones(entities);\r\n }\r\n\r\n if (serviciosOfrecidos != null) {\r\n viviendaEntity.setServiciosIncluidos(serviciosOfrecidos);\r\n }\r\n\r\n if (serviciosAdicionales != null) {\r\n List<ServicioAdicionalEntity> entities = new ArrayList<>();\r\n for (ServicioAdicionalDTO dto : serviciosAdicionales) {\r\n entities.add(dto.toEntity());\r\n }\r\n viviendaEntity.setServiciosAdicionales(entities);\r\n }\r\n\r\n return viviendaEntity;\r\n }", "public interface CommonEntityMethod extends ToJson,GetFieldValue,SetFieldValue{\n}", "public DomicilioEntity toEntity() {\r\n DomicilioEntity domicilioEntity = new DomicilioEntity();\r\n domicilioEntity.setId(this.id);\r\n domicilioEntity.setIdZona(this.idZona);\r\n return domicilioEntity;\r\n }", "@Override\r\n public Share convertToEntity(InstrumentDto dto) {\r\n LocalDateTime stDate = getDateTimePersistenceConverter().convertToEntityAttribute(dto.getPaymentStartingDate());\r\n LocalDateTime endDate = getDateTimePersistenceConverter().convertToEntityAttribute(dto.getPaymentEndingDate());\r\n \r\n Share entity = new Share();\r\n entity.setId(dto.getId());\r\n entity.setInstrumentName(dto.getInstrumentName());\r\n entity.setStartOfPaymentPeriod(stDate);\r\n entity.setEndOfPaymentPeriod(endDate);\r\n \r\n return entity;\r\n }", "public CopyEntityAttributes()\n\t{\n\t\tsetMandatory(ENTITY_PARAM, COPY_MODE);\n\t}", "public interface PartOfRelation\r\n{\r\n\r\n\t/**\r\n\t * Sets author\r\n\t * \r\n\t * @param author\r\n\t */\r\n\tvoid setAuthor(String author);\r\n\r\n\r\n\t/**\r\n\t * @return Author\r\n\t */\r\n\tString getAuthor();\r\n\r\n\t/**\r\n\t * Sets class type, one typical value is '300'\r\n\t * \r\n\t * @param classType\r\n\t */\r\n\tvoid setClassType(String classType);\r\n\r\n\t/**\r\n\t * @return class type\r\n\t */\r\n\tString getClassType();\r\n\r\n\t/**\r\n\t * Sets object key, for material items this is the product ID.\r\n\t * \r\n\t * @param objectKey\r\n\t */\r\n\tvoid setObjectKey(String objectKey);\r\n\r\n\t/**\r\n\t * @return Object key.\r\n\t */\r\n\tString getObjectKey();\r\n\r\n\t/**\r\n\t * Sets object type, product or an abstract product representative\r\n\t * \r\n\t * @param objectType\r\n\t */\r\n\tvoid setObjectType(String objectType);\r\n\r\n\t/**\r\n\t * @return Object type\r\n\t */\r\n\tString getObjectType();\r\n\r\n\t/**\r\n\t * Sets position in the BOM\r\n\t * \r\n\t * @param posNr\r\n\t */\r\n\tvoid setPosNr(String posNr);\r\n\r\n\t/**\r\n\t * @return Position number\r\n\t */\r\n\tString getPosNr();\r\n\r\n\t/**\r\n\t * Sets parent instance ID\r\n\t * \r\n\t * @param parentInstId\r\n\t */\r\n\tvoid setParentInstId(String parentInstId);\r\n\r\n\t/**\r\n\t * @return Parent instance ID\r\n\t */\r\n\tString getParentInstId();\r\n\r\n\t/**\r\n\t * Sets child instance ID\r\n\t * \r\n\t * @param instId\r\n\t */\r\n\tvoid setInstId(String instId);\r\n\r\n\t/**\r\n\t * @return Child instance ID\r\n\t */\r\n\tString getInstId();\r\n}", "@Override\r\n\tpublic Interest convert(InterestEntity entity) {\n\t\treturn null;\r\n\t}", "public abstract List<T> convertToEntities(List<D> dtos);", "public java.util.Hashtable _copyFromEJB() {\n com.ibm.ivj.ejb.runtime.AccessBeanHashtable h = new com.ibm.ivj.ejb.runtime.AccessBeanHashtable();\n\n h.put(\"recdate\", getRecdate());\n h.put(\"objtype\", new Short(getObjtype()));\n h.put(\"eventtype\", getEventtype());\n h.put(\"objid\", new Integer(getObjid()));\n h.put(\"logid\", new Integer(getLogid()));\n h.put(\"peopleKey\", getPeopleKey());\n h.put(\"__Key\", getEntityContext().getPrimaryKey());\n\n return h;\n\n}", "@Override\n\tpublic void entityDeclaration() {\n\t\t\n\t}", "@Override\r\n\tpublic void cast() {\n\r\n\t}", "public interface AEntityProperty {\n}", "public interface CfgAntenna extends javax.ejb.EJBObject, com.ibm.ivj.ejb.runtime.CopyHelper {\n\n\n\n\n\n\t/**\n\t * Get accessor for persistent attribute: resource\n\t */\n\tpublic int getResource() throws java.rmi.RemoteException;\n\t/**\n\t * Set accessor for persistent attribute: resource\n\t */\n\tpublic void setResource(int newResource) throws java.rmi.RemoteException;\n\t/**\n\t * Get accessor for persistent attribute: num_ant\n\t */\n\tpublic java.lang.String getNum_ant() throws java.rmi.RemoteException;\n\t/**\n\t * Set accessor for persistent attribute: num_ant\n\t */\n\tpublic void setNum_ant(java.lang.String newNum_ant)\n\t\tthrows java.rmi.RemoteException;\n\t/**\n\t * Get accessor for persistent attribute: kind_ant\n\t */\n\tpublic java.lang.String getKind_ant() throws java.rmi.RemoteException;\n\t/**\n\t * Set accessor for persistent attribute: kind_ant\n\t */\n\tpublic void setKind_ant(java.lang.String newKind_ant)\n\t\tthrows java.rmi.RemoteException;\n\t/**\n\t * Get accessor for persistent attribute: nakl\n\t */\n\tpublic java.math.BigDecimal getNakl() throws java.rmi.RemoteException;\n\t/**\n\t * Set accessor for persistent attribute: nakl\n\t */\n\tpublic void setNakl(java.math.BigDecimal newNakl)\n\t\tthrows java.rmi.RemoteException;\n\t/**\n\t * Get accessor for persistent attribute: az_ant\n\t */\n\tpublic java.math.BigDecimal getAz_ant() throws java.rmi.RemoteException;\n\t/**\n\t * Set accessor for persistent attribute: az_ant\n\t */\n\tpublic void setAz_ant(java.math.BigDecimal newAz_ant)\n\t\tthrows java.rmi.RemoteException;\n\t/**\n\t * Get accessor for persistent attribute: kswn\n\t */\n\tpublic java.math.BigDecimal getKswn() throws java.rmi.RemoteException;\n\t/**\n\t * Set accessor for persistent attribute: kswn\n\t */\n\tpublic void setKswn(java.math.BigDecimal newKswn)\n\t\tthrows java.rmi.RemoteException;\n\t/**\n\t * Get accessor for persistent attribute: h_set1\n\t */\n\tpublic java.math.BigDecimal getH_set1() throws java.rmi.RemoteException;\n\t/**\n\t * Set accessor for persistent attribute: h_set1\n\t */\n\tpublic void setH_set1(java.math.BigDecimal newH_set1)\n\t\tthrows java.rmi.RemoteException;\n\t/**\n\t * Get accessor for persistent attribute: len_cable\n\t */\n\tpublic java.math.BigDecimal getLen_cable() throws java.rmi.RemoteException;\n\t/**\n\t * Set accessor for persistent attribute: len_cable\n\t */\n\tpublic void setLen_cable(java.math.BigDecimal newLen_cable)\n\t\tthrows java.rmi.RemoteException;\n\t/**\n\t * Get accessor for persistent attribute: cableres\n\t */\n\tpublic java.lang.Integer getCableres() throws java.rmi.RemoteException;\n\t/**\n\t * Set accessor for persistent attribute: cableres\n\t */\n\tpublic void setCableres(java.lang.Integer newCableres)\n\t\tthrows java.rmi.RemoteException;\n\t/**\n\t * Get accessor for persistent attribute: equipment\n\t */\n\tpublic int getEquipment() throws java.rmi.RemoteException;\n\t/**\n\t * Set accessor for persistent attribute: equipment\n\t */\n\tpublic void setEquipment(int newEquipment) throws java.rmi.RemoteException;\n\t/**\n\t * Get accessor for persistent attribute: az_variation\n\t */\n\tpublic java.lang.String getAz_variation() throws java.rmi.RemoteException;\n\t/**\n\t * Set accessor for persistent attribute: az_variation\n\t */\n\tpublic void setAz_variation(java.lang.String newAz_variation)\n\t\tthrows java.rmi.RemoteException;\n\t/**\n\t * Get accessor for persistent attribute: nakl_variation\n\t */\n\tpublic java.lang.String getNakl_variation()\n\t\tthrows java.rmi.RemoteException;\n\t/**\n\t * Set accessor for persistent attribute: nakl_variation\n\t */\n\tpublic void setNakl_variation(java.lang.String newNakl_variation)\n\t\tthrows java.rmi.RemoteException;\n\t/**\n\t * Get accessor for persistent attribute: input_power\n\t */\n\tpublic java.math.BigDecimal getInput_power()\n\t\tthrows java.rmi.RemoteException;\n\t/**\n\t * Set accessor for persistent attribute: input_power\n\t */\n\tpublic void setInput_power(java.math.BigDecimal newInput_power)\n\t\tthrows java.rmi.RemoteException;\n\t/**\n\t * Get accessor for persistent attribute: operator\n\t */\n\tpublic java.lang.Integer getOperator() throws java.rmi.RemoteException;\n\t/**\n\t * Set accessor for persistent attribute: operator\n\t */\n\tpublic void setOperator(java.lang.Integer newOperator)\n\t\tthrows java.rmi.RemoteException;\n\t/**\n\t * Get accessor for persistent attribute: byhand\n\t */\n\tpublic java.lang.Boolean getByhand() throws java.rmi.RemoteException;\n\t/**\n\t * Set accessor for persistent attribute: byhand\n\t */\n\tpublic void setByhand(java.lang.Boolean newByhand)\n\t\tthrows java.rmi.RemoteException;\n\t/**\n\t * Get accessor for persistent attribute: groundresource\n\t */\n\tpublic java.lang.Integer getGroundresource()\n\t\tthrows java.rmi.RemoteException;\n\t/**\n\t * Set accessor for persistent attribute: groundresource\n\t */\n\tpublic void setGroundresource(java.lang.Integer newGroundresource)\n\t\tthrows java.rmi.RemoteException;\n\t/**\n\t * Get accessor for persistent attribute: groundcnt\n\t */\n\tpublic java.lang.Integer getGroundcnt() throws java.rmi.RemoteException;\n\t/**\n\t * Set accessor for persistent attribute: groundcnt\n\t */\n\tpublic void setGroundcnt(java.lang.Integer newGroundcnt)\n\t\tthrows java.rmi.RemoteException;\n\t/**\n\t * Get accessor for persistent attribute: locationtype\n\t */\n\tpublic java.lang.String getLocationtype() throws java.rmi.RemoteException;\n\t/**\n\t * Set accessor for persistent attribute: locationtype\n\t */\n\tpublic void setLocationtype(java.lang.String newLocationtype)\n\t\tthrows java.rmi.RemoteException;\n\t/**\n\t * Get accessor for persistent attribute: electricaltilt\n\t */\n\tpublic java.math.BigDecimal getElectricaltilt()\n\t\tthrows java.rmi.RemoteException;\n\t/**\n\t * Set accessor for persistent attribute: electricaltilt\n\t */\n\tpublic void setElectricaltilt(java.math.BigDecimal newElectricaltilt)\n\t\tthrows java.rmi.RemoteException;\n\t/**\n\t * Get accessor for persistent attribute: StorageCard\n\t */\n\tpublic java.lang.Integer getStorageCard() throws java.rmi.RemoteException;\n\t/**\n\t * Set accessor for persistent attribute: StorageCard\n\t */\n\tpublic void setStorageCard(java.lang.Integer newStorageCard)\n\t\tthrows java.rmi.RemoteException;\n\t/**\n\t * Get accessor for persistent attribute: qty\n\t */\n\tpublic java.math.BigDecimal getQty() throws java.rmi.RemoteException;\n\t/**\n\t * Set accessor for persistent attribute: qty\n\t */\n\tpublic void setQty(java.math.BigDecimal newQty)\n\t\tthrows java.rmi.RemoteException;\n\t/**\n\t * Get accessor for persistent attribute: datasource\n\t */\n\tpublic int getDatasource() throws java.rmi.RemoteException;\n\t/**\n\t * Set accessor for persistent attribute: datasource\n\t */\n\tpublic void setDatasource(int newDatasource)\n\t\tthrows java.rmi.RemoteException;\n\t/**\n\t * Get accessor for persistent attribute: ObjectStatus\n\t */\n\tpublic java.lang.String getObjectStatus() throws java.rmi.RemoteException;\n\t/**\n\t * Set accessor for persistent attribute: ObjectStatus\n\t */\n\tpublic void setObjectStatus(java.lang.String newObjectStatus)\n\t\tthrows java.rmi.RemoteException;\n\t/**\n\t * @return\n\t */\n\tpublic int getId_anten() throws java.rmi.RemoteException;\n\t/**\n\t * @return\n\t */\n\tpublic int getSavconfigid() throws java.rmi.RemoteException;\n\t/**\n\t * Get accessor for persistent attribute: commcable\n\t */\n\tpublic java.lang.Boolean getCommcable() throws java.rmi.RemoteException;\n\t/**\n\t * Set accessor for persistent attribute: commcable\n\t */\n\tpublic void setCommcable(java.lang.Boolean newCommcable)\n\t\tthrows java.rmi.RemoteException;\n}", "public void generate(Object entity, Context ormContext) throws AAException;", "public interface ISchemaEntity {\n\t\n\tpublic static final String KEY_NAME = \"Name\";\n\t\n\t\n\t/**\n\t * Vraca sucelje sklopa koji se modelira\n\t * u schematicu - broj i vrstu portova.\n\t * \n\t */\n\tCircuitInterface getCircuitInterface(ISchemaInfo info);\n\t\n\t\n\t/**\n\t * Vraca mapu parametara komponente\n\t * koja se modelira u schematicu.\n\t * Na temelju dijela ove kolekcije biti ce kasnije\n\t * izgraden generic blok pri generiranju\n\t * strukturnog VHDLa.\n\t * \n\t */\n\tIParameterCollection getParameters();\n\t\n\t/**\n\t * Postavlja parametre (vidi metodu\n\t * getParameters()).\n\t * \n\t * @param parameters\n\t */\n\tvoid setParameters(IParameterCollection parameters);\n\t\n\t/**\n\t * Vraca vrijednost uvijek prisutnog parametra pod kljucem KEY_NAME,\n\t * koji oznacava ime entity-a.\n\t */\n\tCaseless getName();\n\t\n\t/**\n\t * Dohvaca portove sucelja modelirane komponente.\n\t * \n\t */\n\tpublic List<Port> getPorts(ISchemaInfo info);\n\t\n\t/**\n\t * Brise portove i ne-defaultne parametre.\n\t *\n\t */\n\tvoid reset();\n\t\n}", "T buidEntity(ResultSet rs) throws SQLException;", "@Override\n public Preparation mapToEntity(PreparationDto dto) {\n return null;\n }", "@Override\n\tpublic Entity getEntity() {\n\t\treturn entity;\n\t}", "@Override\n protected E dtoToEntity( final D dto )\n {\n Objects.requireNonNull( dto, \"dto argument cannot be null\" );\n final E entity = super.dtoToEntity( dto );\n /*\n * Convert the notes source ID to UUID\n */\n if ( dto instanceof NotesSourceIdContainer &&\n entity instanceof NotesSourceUuidContainer )\n {\n final NotesSourceIdContainer notesSourceIdContainer = (NotesSourceIdContainer) dto;\n /*\n * Check for new sources\n */\n this.stockNoteSourceService.checkForNewSource( notesSourceIdContainer );\n final NotesSourceUuidContainer notesSourceUuidContainer = (NotesSourceUuidContainer)entity;\n /*\n * Convert the String UUID to a real uuid if present\n */\n if ( notesSourceIdContainer.getNotesSourceId() != null &&\n !notesSourceIdContainer.getNotesSourceId().isEmpty() )\n {\n final StockNoteSourceEntity stockNoteSourceEntity = this.stockNoteSourceService\n .getStockNoteSource( ((CustomerUuidContainer)entity).getCustomerUuid(),\n notesSourceIdContainer.getNotesSourceId() );\n notesSourceUuidContainer.setNotesSourceEntity( stockNoteSourceEntity );\n }\n }\n //logMethodEnd( methodName, entity );\n return entity;\n }", "public java.util.Hashtable _copyFromEJB() {\n com.ibm.ivj.ejb.runtime.AccessBeanHashtable h = new com.ibm.ivj.ejb.runtime.AccessBeanHashtable();\n\n h.put(\"createdby\", getCreatedby());\n h.put(\"documentDate\", getDocumentDate());\n h.put(\"documentNumber\", getDocumentNumber());\n h.put(\"leaseDocument\", new Integer(getLeaseDocument()));\n h.put(\"created\", getCreated());\n h.put(\"modifiedby\", getModifiedby());\n h.put(\"operator\", getOperator());\n h.put(\"regionid\", new Integer(getRegionid()));\n h.put(\"modified\", getModified());\n h.put(\"__Key\", getEntityContext().getPrimaryKey());\n\n return h;\n\n}", "For createFor();", "@Override\n\tpublic GstSlabEntity modelToEntity(GstSlabModel m) {\n\t\treturn null;\n\t}", "public LdPublisher newMyEntity() {\r\n return new LdPublisher();\r\n }", "protected abstract EntityBase createEntity() throws Exception;", "protected abstract Object toObject(ByteBuffer content, Type targetType) throws BeanConversionException;", "protected void prepareEntityToNodeMap()\r\n\t{\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "public StShhnKnyMs newEntity() { return new StShhnKnyMs(); }", "public static BacSi createUpdatedEntity() {\n BacSi bacSi = new BacSi()\n .mabacsi(UPDATED_MABACSI)\n .hoten(UPDATED_HOTEN)\n .gioitinh(UPDATED_GIOITINH)\n .ngaysinh(UPDATED_NGAYSINH)\n .noilamviec(UPDATED_NOILAMVIEC)\n .chuyenkhoa(UPDATED_CHUYENKHOA)\n .giayphephanhnghe(UPDATED_GIAYPHEPHANHNGHE);\n return bacSi;\n }", "@Override\n\tpublic Entity createEntity() {\n\t\tEntity entity = new Entity(LINKS_ENTITY_KIND);\n\t\tentity.setProperty(id_property, ID);\n\t\tentity.setProperty(url_property, url);\n\t\tentity.setProperty(CategoryID_property, CategoryID);\n\t\tentity.setProperty(note_property, note);\n\t\tentity.setProperty(createdOn_property, createdOn);\n\t\tentity.setProperty(updatedOn_property, updatedOn);\t\t\t\n\t\treturn entity;\n\t}", "@Override\r\n public void createNewEntity(String entityName) {\n\r\n }", "@Override\n public void entityRPClassUpdate(RPObject entity) {\n }", "public interface Mensaje_SMS_ACSLocal extends javax.ejb.EJBLocalObject {\n\t/**\n\t * Get accessor for persistent attribute: id\n\t */\n\tpublic java.lang.Long getId();\n\t/**\n\t * Set accessor for persistent attribute: id\n\t */\n\tpublic void setId(java.lang.Long newId);\n\t/**\n\t * Get accessor for persistent attribute: xml\n\t */\n\tpublic java.lang.String getXml();\n\t/**\n\t * Set accessor for persistent attribute: xml\n\t */\n\tpublic void setXml(java.lang.String newXml);\n\t/**\n\t * Get accessor for persistent attribute: peti_numero\n\t */\n\tpublic java.lang.Long getPeti_numero();\n\t/**\n\t * Set accessor for persistent attribute: peti_numero\n\t */\n\tpublic void setPeti_numero(java.lang.Long newPeti_numero);\n\t/**\n\t * Get accessor for persistent attribute: fecha_envio\n\t */\n\tpublic java.sql.Timestamp getFecha_envio();\n\t/**\n\t * Set accessor for persistent attribute: fecha_envio\n\t */\n\tpublic void setFecha_envio(java.sql.Timestamp newFecha_envio);\n\t/**\n\t * Get accessor for persistent attribute: usuario\n\t */\n\tpublic java.lang.String getUsuario();\n\t/**\n\t * Set accessor for persistent attribute: usuario\n\t */\n\tpublic void setUsuario(java.lang.String newUsuario);\n}", "protected HttpEntity convertToHttpEntity(ClientEntity entity) {\r\n ByteArrayOutputStream output = new ByteArrayOutputStream();\r\n OutputStreamWriter writer = null;\r\n try {\r\n writer = new OutputStreamWriter(output, Constants.UTF8);\r\n final ODataSerializer serializer = odataClient.getSerializer(org.apache.olingo.commons.api.format.ContentType.JSON);\r\n serializer.write(writer, odataClient.getBinder().getEntity(entity));\r\n HttpEntity httpEntity = new ByteArrayEntity(output.toByteArray(),\r\n org.apache.http.entity.ContentType.APPLICATION_JSON);\r\n return httpEntity;\r\n } catch (Exception e) {\r\n throw new HttpClientException(e);\r\n } finally {\r\n IOUtils.closeQuietly(writer);\r\n }\r\n }", "public interface PersonLocal extends javax.ejb.EJBLocalObject {\r\n\t/**\r\n\t * Get accessor for persistent attribute: password\r\n\t */\r\n\tpublic java.lang.String getPassword();\r\n\t/**\r\n\t * Set accessor for persistent attribute: password\r\n\t */\r\n\tpublic void setPassword(java.lang.String newPassword);\r\n\t/**\r\n\t * Get accessor for persistent attribute: firstName\r\n\t */\r\n\tpublic java.lang.String getFirstName();\r\n\t/**\r\n\t * Set accessor for persistent attribute: firstName\r\n\t */\r\n\tpublic void setFirstName(java.lang.String newFirstName);\r\n\t/**\r\n\t * Get accessor for persistent attribute: lastName\r\n\t */\r\n\tpublic java.lang.String getLastName();\r\n\t/**\r\n\t * Set accessor for persistent attribute: lastName\r\n\t */\r\n\tpublic void setLastName(java.lang.String newLastName);\r\n\t/**\r\n\t * Get accessor for persistent attribute: emailAddress\r\n\t */\r\n\tpublic java.lang.String getEmailAddress();\r\n\t/**\r\n\t * Set accessor for persistent attribute: emailAddress\r\n\t */\r\n\tpublic void setEmailAddress(java.lang.String newEmailAddress);\r\n\t/**\r\n\t * This method was generated for supporting the relationship role named todo.\r\n\t * It will be deleted/edited when the relationship is deleted/edited.\r\n\t */\r\n\tpublic java.util.Collection getTodo();\r\n\t/**\r\n\t * This method was generated for supporting the relationship role named todo.\r\n\t * It will be deleted/edited when the relationship is deleted/edited.\r\n\t */\r\n\tpublic void setTodo(java.util.Collection aTodo);\r\n\t/**\r\n\t * This is our method to get all todos for one person\r\n\t */\r\n\tpublic java.util.Collection getTodos();\r\n\tpublic boolean isPasswordCorrect(String password);\r\n}", "public interface CatalogEntity {\r\n}", "@Test\n public void convertToEntity_WhenOrg() {\n application = getApplicationBuilder().addBaseApplication().setOrganisation().build();\n\n // When converting\n converter.convertToEntity(application, entity);\n\n // Nothing happens\n assertNull(entity.getDob());\n }", "public interface Entity\n\textends Node\n{\n\n\tpublic abstract String getPublicId();\n\n\tpublic abstract String getSystemId();\n\n\tpublic abstract String getNotationName();\n}", "public RepositorioTransacaoHBM() {\n\n\t}", "Book toModeL(BookDTO booKDTO);" ]
[ "0.7356258", "0.684833", "0.6369579", "0.6228244", "0.6193273", "0.6183061", "0.61218226", "0.60512257", "0.59255123", "0.5925299", "0.59179133", "0.59070843", "0.58484334", "0.58345866", "0.5805921", "0.5793928", "0.5782119", "0.57794803", "0.57789445", "0.577769", "0.57432574", "0.57320434", "0.5727375", "0.5723303", "0.5721904", "0.5713611", "0.56978667", "0.5677797", "0.5670441", "0.5669827", "0.56670403", "0.56551313", "0.56551313", "0.56551313", "0.5649147", "0.5646262", "0.56421596", "0.56421596", "0.5637548", "0.56362915", "0.5633792", "0.5633792", "0.5606674", "0.56003124", "0.55982167", "0.559554", "0.5589084", "0.5578871", "0.557863", "0.55484897", "0.5547996", "0.5532827", "0.5525462", "0.5514118", "0.5511343", "0.5511343", "0.5508609", "0.55060166", "0.5498889", "0.5492994", "0.5474201", "0.5469682", "0.5463841", "0.54637593", "0.5443213", "0.544225", "0.54394835", "0.54363245", "0.54362357", "0.5416073", "0.5413924", "0.5408791", "0.5407847", "0.5404594", "0.54029715", "0.53977185", "0.53910595", "0.5389595", "0.5383908", "0.53736037", "0.5363986", "0.53625554", "0.53621656", "0.5360245", "0.5355739", "0.5350699", "0.5344647", "0.5344647", "0.5343073", "0.53389543", "0.5337153", "0.5334115", "0.53318655", "0.5331796", "0.5330431", "0.532651", "0.5322854", "0.5318748", "0.5316401", "0.5313921", "0.5310835" ]
0.0
-1
/////////////////////////////////////////////////////////////////////////////// PUBLIC METHODS (KEY BEAN to KEY ENTITY) ///////////////////////////////////////////////////////////////////////////////
public static <IDB extends Serializable, IDE extends Serializable> IDE parserKeyBeanToKeyEntity(IDB sourceObject, Class<IDE> destinationType) { return dozerMapper.map(sourceObject, destinationType); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void setKey(byte[] key) {\n }", "void privateSetTechStuffKey(com.hps.july.persistence.WorkerKey inKey) throws java.rmi.RemoteException;", "public abstract Key translateKey(Key key) throws InvalidKeyException;", "@Override\n\tpublic void Encrypt(Object key) {\n\n\t}", "OpenSSLKey mo134201a();", "public abstract String getRefKey();", "public interface Contributor\n extends Keyed\n{\n Collection<Attribute> createAttributesFor( Key key, Content content, Record cr );\n}", "abstract public String getKey();", "public interface EncryptionKey extends Representable, UniqueByteRepresentable {\n public static final String RECOVERY_METHOD = \"getEncryptionKey\";\n\n}", "private void setKey() {\n\t\t \n\t}", "public interface KeyManager {\n CreateKeyResponse createKey(CreateKeyRequest createKeyRequest);\n RegisterKeyResponse registerKey(RegisterKeyRequest registerKeyRequest);\n RegisterKeyResponse registerAsymmetricKey(RegisterAsymmetricKeyRequest registerKeyRequest);\n DeleteKeyResponse deleteKey(DeleteKeyRequest deleteKeyRequest);\n TransferKeyResponse transferKey(TransferKeyRequest keyRequest);\n GetKeyAttributesResponse getKeyAttributes(GetKeyAttributesRequest keyAttributesRequest);\n SearchKeyAttributesResponse searchKeyAttributes(SearchKeyAttributesRequest searchKeyAttributesRequest);\n}", "void privateSetAgregateKey(com.hps.july.persistence.StorageCardKey inKey) throws java.rmi.RemoteException;", "public Sitedoc2SplaceKey() {\n\tsuper();\n}", "void privateSetOrganizationKey(com.hps.july.persistence.OrganizationKey inKey) throws java.rmi.RemoteException;", "public interface KeyService extends GenericService<Key, String> {\n\n void generate(Integer length);\n\n void saveKeysToDB();\n\n}", "com.icare.eai.schema.om.evSORequest.EvSORequestDocument.EvSORequest.Key addNewKey();", "@Override\n public String getKey() {\n return key;\n }", "void privateSetExpeditorKey(com.hps.july.persistence.WorkerKey inKey) throws java.rmi.RemoteException;", "protected abstract Object getKey(Subject subject, ConnectionRequestInfo cri,\n boolean separateNoTx) throws ResourceException;", "protected abstract T retrieveEntry(PersistentEntity persistentEntity, Serializable key);", "public abstract int getKeybind();", "KeyManager createKeyManager();", "public ECP getPublicKGCKey(){return pkS;}", "byte[] getKey();", "com.google.protobuf.ByteString getKeyBytes();", "com.google.protobuf.ByteString getKeyBytes();", "java.lang.String getClientKey();", "@Override\r\n public void keyTyped(RWTVirtualKey key) {\n\r\n }", "public interface JsonKey {\n\n String CLASS = \"class\";\n String DATA = \"data\";\n String EKS = \"eks\";\n String ID = \"id\";\n String LEVEL = \"level\";\n String MESSAGE = \"message\";\n String METHOD = \"method\";\n String REQUEST_MESSAGE_ID = \"msgId\";\n String STACKTRACE = \"stacktrace\";\n String VER = \"ver\";\n String OK = \"ok\";\n String LOG_LEVEL = \"logLevel\";\n String ERROR = \"error\";\n String EMPTY_STRING = \"\";\n String RESPONSE = \"response\";\n String ADDRESS = \"address\";\n String KEY = \"key\";\n String ERROR_MSG = \"error_msg\";\n String ATTRIBUTE = \"attribute\";\n String ERRORS = \"errors\";\n String SUCCESS = \"success\";\n\n String CERTIFICATE = \"certificate\";\n String RECIPIENT_NAME = \"recipientName\";\n String COURSE_NAME = \"courseName\";\n String NAME = \"name\";\n String HTML_TEMPLATE = \"htmlTemplate\";\n String TAG = \"tag\";\n String ISSUER = \"issuer\";\n String URL = \"url\";\n String SIGNATORY_LIST = \"signatoryList\";\n String DESIGNATION = \"designation\";\n String SIGNATORY_IMAGE = \"image\";\n\n String DOMAIN_URL = \"sunbird_cert_domain_url\";\n String ASSESSED_DOMAIN = \"ASSESSED_DOMAIN\";\n String BADGE_URL = \"BADGE_URL\";\n String ISSUER_URL = \"ISSUER_URL\";\n String TEMPLATE_URL = \"TEMPLATE_URL\";\n String CONTEXT = \"CONTEXT\";\n String VERIFICATION_TYPE = \"VERIFICATION_TYPE\";\n String SIGNATORY_EXTENSION = \"SIGNATORY_EXTENSION\";\n String RECIPIENT_EMAIl = \"recipientEmail\";\n String RECIPIENT_PHONE = \"recipientPhone\";\n String RECIPIENT_ID = \"recipientId\";\n String VALID_FROM = \"validFrom\";\n String EXPIRY = \"expiry\";\n String OLD_ID = \"oldId\";\n String PUBLIC_KEY = \"publicKey\";\n String DESCRIPTION = \"description\";\n String LOGO = \"logo\";\n String ISSUE_DATE = \"issueDate\";\n String USER = \"user\";\n String CERTIFICATE_NAME = \"name\";\n\n String CONTAINER_NAME = \"CONTAINER_NAME\";\n String CLOUD_STORAGE_TYPE = \"CLOUD_STORAGE_TYPE\";\n String CLOUD_UPLOAD_RETRY_COUNT = \"CLOUD_UPLOAD_RETRY_COUNT\";\n String AZURE_STORAGE_SECRET = \"AZURE_STORAGE_SECRET\";\n String AZURE_STORAGE_KEY = \"AZURE_STORAGE_KEY\";\n String ACCESS_CODE_LENGTH = \"ACCESS_CODE_LENGTH\";\n String ORG_ID = \"orgId\";\n String KEYS = \"keys\";\n String ENC_SERVICE_URL = \"sunbird_cert_enc_service_url\";\n String SIGN_HEALTH_CHECK_URL = \"SIGN_HEALTH_CHECK_URL\";\n String SIGN_URL = \"SIGN_URL\";\n String SIGN_VERIFY_URL = \"SIGN_VERIFY_URL\";\n String SIGN_CREATOR = \"SIGN_CREATOR\";\n String SIGN = \"sign\";\n String VERIFY = \"verify\";\n String KEY_ID = \"keyId\";\n String JSON_URL = \"jsonUrl\";\n String PDF_URL = \"pdfUrl\";\n String UNIQUE_ID = \"id\";\n String GENERATE_CERT = \"generateCert\";\n String PUBLIC_KEY_URL = \"PUBLIC_KEY_URL\";\n String GET_SIGN_URL = \"getSignUrl\";\n String SIGNED_URL = \"signedUrl\";\n\n String ACCESS_CODE = \"accessCode\";\n String JSON_DATA = \"jsonData\";\n String SLUG = \"sunbird_cert_slug\";\n}", "BListKey getKey();", "void setKey(String key);", "XClass getMapKey();", "@Override\n protected final Object getKey()\n {\n return this;\n }", "void setKey(K key);", "public ContentKey() {}", "Object getAuthInfoKey();", "public interface Key {\n\n String SHARE_KEY = \"userIndo\";//用户信息\n String SHARE_USER_ID = \"userId\";//用户账号\n\n}", "public interface PublicKey {\n\n /**\n * Returns id of the public key.\n *\n * @return id of key\n */\n String getId();\n\n /**\n * Returns ids from gpg sub keys.\n *\n * @return sub key ids\n * @since 2.19.0\n */\n default Set<String> getSubkeys() {\n return Collections.emptySet();\n }\n\n /**\n * Returns the username of the owner or an empty optional.\n *\n * @return owner or empty optional\n */\n Optional<String> getOwner();\n\n /**\n * Returns raw of the public key.\n *\n * @return raw of key\n */\n String getRaw();\n\n /**\n * Returns the contacts of the publickey.\n *\n * @return owner or empty optional\n */\n Set<Person> getContacts();\n\n /**\n * Verifies that the signature is valid for the given data.\n *\n * @param stream stream of data to verify\n * @param signature signature\n * @return {@code true} if the signature is valid for the given data\n */\n boolean verify(InputStream stream, byte[] signature);\n\n /**\n * Verifies that the signature is valid for the given data.\n *\n * @param data data to verify\n * @param signature signature\n * @return {@code true} if the signature is valid for the given data\n */\n default boolean verify(byte[] data, byte[] signature) {\n return verify(new ByteArrayInputStream(data), signature);\n }\n}", "public Object attachment(Object key);", "String newKey();", "com.hps.july.persistence.WorkerKey getTechStuffKey() throws java.rmi.RemoteException;", "public String getKey();", "public String getKey();", "public String getKey();", "public String getKey();", "public interface IPSGenericKeyService \n{\n public static final long DAY_IN_MILLISECONDS = 86400000;\n\n\t/**\n\t * Generates a unique key with the supplied duration, validity of the key is\n\t * checked against the creation time with the duration and current system\n\t * time.\n\t * \n\t * @param duration in milliseconds.\n\t * @return The generated key, never blank.\n\t */\n\tpublic String generateKey(long duration) throws Exception;\n\n\t/**\n\t * Checks whether the supplied key is still valid or not. The key is valid\n\t * if it exists and if the current system time is less than the key creation\n\t * time plus duration.\n\t * \n\t * @param key may be blank.\n\t * @return <code>true</code> if the key is still valid otherwise <code>false</code>.\n\t */\n\tpublic boolean isValidKey(String key) throws Exception;\n\t\n\t/**\n\t * Deletes the supplied key if exists.\n\t * @param key the key to delete\n\t */\n\tpublic void deleteKey(String key) throws Exception;\n\t\n}", "public CryptoKey getMyKey() {\n return myKey;\n }", "KeyMetadata metadata();", "public void setKey(java.lang.String param){\n localKeyTracker = true;\n \n this.localKey=param;\n \n\n }", "public interface HostKeyImportApi extends HostApi {\n\n\t/**\n\t * To modify the fields for key import from host.\n\t * \n\t * @param isoBuffer\n\t */\n\tpublic void importKey(IsoBuffer isoBuffer);\n\n}", "@Override\n default String getKey(){\n return key();\n }", "BudgetKeyEntity getBudgetKeyByBudgetKey(BudgetKeyEntity budgetKeyEntity);", "String process_key () throws BaseException;", "public PIEBankPlatinumKey() {\n\tsuper();\n}", "com.google.protobuf.ByteString\n getKeyBytes();", "com.google.protobuf.ByteString\n getKeyBytes();", "com.google.protobuf.ByteString\n getKeyBytes();", "String setKey(String newKey);", "Object getKey();", "public interface KeyLoader {\n\n <T> T getKey();\n\n}", "public KeyPermission()\r\n\t{}", "public interface OhmageOMHSDKCredentialStore {\n byte[] get(Context context, String key);\n void set(Context context, String key, byte[] value);\n void remove(Context context, String key);\n}", "private DataKeys(String pKey) {\n key = pKey;\n }", "String getComponentAesKey();", "protected void sequence_Key_KeyedElement(ISerializationContext context, Key semanticObject) {\r\n\t\tif (errorAcceptor != null) {\r\n\t\t\tif (transientValues.isValueTransient(semanticObject, GoPackage.Literals.KEY__FIELDN) == ValueTransient.YES)\r\n\t\t\t\terrorAcceptor.accept(diagnosticProvider.createFeatureValueMissing(semanticObject, GoPackage.Literals.KEY__FIELDN));\r\n\t\t\tif (transientValues.isValueTransient(semanticObject, GoPackage.Literals.KEYED_ELEMENT__ELEMENT) == ValueTransient.YES)\r\n\t\t\t\terrorAcceptor.accept(diagnosticProvider.createFeatureValueMissing(semanticObject, GoPackage.Literals.KEYED_ELEMENT__ELEMENT));\r\n\t\t}\r\n\t\tSequenceFeeder feeder = createSequencerFeeder(context, semanticObject);\r\n\t\tfeeder.accept(grammarAccess.getKeyAccess().getFieldnFieldNameParserRuleCall_0_1_0(), semanticObject.getFieldn());\r\n\t\tfeeder.accept(grammarAccess.getKeyedElementAccess().getElementElementParserRuleCall_1_0(), semanticObject.getElement());\r\n\t\tfeeder.finish();\r\n\t}", "public Object create(String key_letters) throws XtumlException;", "public Key getKey()\r\n { \r\n return key; \r\n }", "public byte[] getKey() {\n return this.key;\n }", "public interface RepositoryKey {\n\n}", "abstract public String getImageKey();", "public interface PacketFormatKeyContext {\n\n}", "@Override\n\tpublic String getKey() {\n\t\treturn key;\n\t}", "public interface IKeyCreator {\n byte[] generateKey(int n);\n\n byte[] getKeyFromFile(String p);\n\n byte[] inputKey(String s);\n}", "java.lang.String getPublicEciesKey();", "@Test public void keyDefinition() {\n fail( \"Not yet implemented\" );\n }", "void setKey(java.lang.String key);", "protected abstract Object _get(String key);", "protected void sequence_ElementList_Key_KeyedElement(ISerializationContext context, Key semanticObject) {\r\n\t\tgenericSequencer.createSequence(context, semanticObject);\r\n\t}", "public void key(){\n }", "public interface EntryStoreDb<K> {\n\n void serializeKey(final ByteBuffer keyBuffer, K key);\n\n /**\n * @param writeTxn\n * @param keyBuffer\n * @param valueBuffer\n * @param overwriteExisting\n * @param isAppending Only set to true if you are sure that the key will be at the end of the db\n * @return\n */\n PutOutcome put(final Txn<ByteBuffer> writeTxn,\n final ByteBuffer keyBuffer,\n final ByteBuffer valueBuffer,\n final boolean overwriteExisting,\n final boolean isAppending);\n\n boolean delete(final Txn<ByteBuffer> writeTxn, final ByteBuffer keyBuffer);\n\n Optional<ByteBuffer> getAsBytes(Txn<ByteBuffer> txn, final ByteBuffer keyBuffer);\n\n Optional<UID> getMaxUid(final Txn<ByteBuffer> txn, PooledByteBuffer pooledByteBuffer);\n}", "public MyKeyAdapter() {\r\n super();\r\n }", "@Override\r\n\t\t\tpublic Object getKey() {\n\t\t\t\treturn service;\r\n\t\t\t}", "@Override\n\t\tpublic K getKey(){\n\t\t\treturn key;\n\t\t}", "public PaymentRecordKey() {\n super();\n }", "void setKey(int key);", "private static Key createInternalLobKey() {\n return Key.createKey(Arrays.asList(INTERNAL_KEY_SPACE,\n ILK_PREFIX_COMPONENT,\n UUID.randomUUID().toString()));\n }", "public interface OpenSSLKeyHolder {\n /* renamed from: a */\n OpenSSLKey mo134201a();\n}", "@Override\n public void key() {\n \n }", "protected String getKey(String baseKey){\n \treturn getKey(baseKey, id);\n }", "private String key() {\n return \"secret\";\n }", "public void setKey(int key){\r\n this.key = key; \r\n }", "public interface KeystrokeService {\n\n /**\n * Save a keystroke.\n *\n * @param keystroke the entity to save\n * @return the persisted entity\n */\n Keystroke save(Keystroke keystroke);\n\n /**\n * Get all the keystrokes.\n *\n * @return the list of entities\n */\n List<Keystroke> findAll();\n\n /**\n * Get the \"id\" keystroke.\n *\n * @param id the id of the entity\n * @return the entity\n */\n Keystroke findOne(Long id);\n\n /**\n * Delete the \"id\" keystroke.\n *\n * @param id the id of the entity\n */\n void delete(Long id);\n}", "public BankAccountKey() {\n\tsuper();\n}", "private PasskeyContract() {}", "public KeyedEntry() { }", "public interface BucketKeyPair<B, K> {\n\n /**\n * Get the bucket representation.\n *\n * @return\n */\n B getBucket();\n\n /**\n * Get the key representation.\n *\n * @return\n */\n K getKey();\n\n}", "public K setKey(K key);", "public static synchronized Object makeKey (byte[] k)\r\n throws InvalidKeyException {\r\nif (DEBUG) trace(IN, \"makeKey(\"+k+\")\");\r\nif (DEBUG && debuglevel > 7) {\r\nSystem.out.println(\"Intermediate Session Key Values\");\r\nSystem.out.println();\r\nSystem.out.println(\"Raw=\"+toString(k));\r\n}\r\n //\r\n //...\r\n //\r\n Object sessionKey = null;\r\n\r\n frog_InternalKey intkey = new frog_InternalKey();\r\n \t /* Fill internal key with hashed keyMaterial */\r\n intkey.internalKey = frog_procs.hashKey( k );\r\n \t /* Convert internalKey into a valid format for encrypt and decrypt (see B.1.2.e) */\r\n intkey.keyE = frog_procs.makeInternalKey( frog_Algorithm.DIR_ENCRYPT, intkey.internalKey );\r\n intkey.keyD = frog_procs.makeInternalKey( frog_Algorithm.DIR_DECRYPT, intkey.internalKey );\r\n \r\n sessionKey = intkey;\r\n //\r\n // ...\r\n //\r\nif (DEBUG && debuglevel > 7) {\r\nSystem.out.println(\"...any intermediate values\");\r\nSystem.out.println();\r\n}\r\nif (DEBUG) trace(OUT, \"makeKey()\");\r\n return sessionKey;\r\n }", "com.google.protobuf.ByteString\n getKeyBytes();", "com.google.protobuf.ByteString\n getKeyBytes();", "public void setKey(byte[] argKey) {\n this.key = argKey;\n }" ]
[ "0.63890076", "0.63259816", "0.6313407", "0.6265493", "0.62640387", "0.6261643", "0.6259715", "0.6251805", "0.6237699", "0.6232145", "0.6221332", "0.61967885", "0.6172337", "0.6114171", "0.60985684", "0.6049491", "0.60435325", "0.60300976", "0.5985061", "0.59823793", "0.59761876", "0.5962516", "0.5936905", "0.59211636", "0.591968", "0.591968", "0.59149593", "0.5914516", "0.5902339", "0.59016484", "0.58997834", "0.58956766", "0.58783644", "0.5869506", "0.5862611", "0.5851796", "0.5824547", "0.581759", "0.5816936", "0.5813332", "0.58027077", "0.57883483", "0.57883483", "0.57883483", "0.57883483", "0.5773167", "0.5770004", "0.57663935", "0.5765675", "0.5758973", "0.5758603", "0.5742503", "0.57395905", "0.57326627", "0.57296246", "0.57296246", "0.57296246", "0.5726597", "0.57258326", "0.57246673", "0.5722972", "0.5711615", "0.57088727", "0.5701282", "0.5699207", "0.5693819", "0.5691799", "0.56895864", "0.56861866", "0.5671737", "0.5670013", "0.56670654", "0.56670076", "0.5666187", "0.5661896", "0.5658798", "0.5647871", "0.56454164", "0.56448406", "0.5632874", "0.5629642", "0.56286186", "0.56201535", "0.5615075", "0.5615051", "0.5608609", "0.5606831", "0.56063247", "0.56040394", "0.55904996", "0.55874026", "0.5582552", "0.5581945", "0.5580257", "0.5580196", "0.55791295", "0.55747545", "0.5572087", "0.55657065", "0.55657065", "0.55604994" ]
0.0
-1
/////////////////////////////////////////////////////////////////////////////// PUBLIC METHODS (KEY ENTITY to KEY BEAN) ///////////////////////////////////////////////////////////////////////////////
public static <IDE extends Serializable, IDB extends Serializable> IDB parserKeyEntityToKeyBean(IDE sourceObject, Class<IDB> destinationType) { return dozerMapper.map(sourceObject, destinationType); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public abstract Key translateKey(Key key) throws InvalidKeyException;", "@Override\n public void setKey(byte[] key) {\n }", "OpenSSLKey mo134201a();", "@Override\n\tpublic void Encrypt(Object key) {\n\n\t}", "abstract public String getKey();", "void privateSetTechStuffKey(com.hps.july.persistence.WorkerKey inKey) throws java.rmi.RemoteException;", "private void setKey() {\n\t\t \n\t}", "public abstract String getRefKey();", "protected abstract Object getKey(Subject subject, ConnectionRequestInfo cri,\n boolean separateNoTx) throws ResourceException;", "public interface Contributor\n extends Keyed\n{\n Collection<Attribute> createAttributesFor( Key key, Content content, Record cr );\n}", "public interface EncryptionKey extends Representable, UniqueByteRepresentable {\n public static final String RECOVERY_METHOD = \"getEncryptionKey\";\n\n}", "void privateSetOrganizationKey(com.hps.july.persistence.OrganizationKey inKey) throws java.rmi.RemoteException;", "public Sitedoc2SplaceKey() {\n\tsuper();\n}", "public interface KeyManager {\n CreateKeyResponse createKey(CreateKeyRequest createKeyRequest);\n RegisterKeyResponse registerKey(RegisterKeyRequest registerKeyRequest);\n RegisterKeyResponse registerAsymmetricKey(RegisterAsymmetricKeyRequest registerKeyRequest);\n DeleteKeyResponse deleteKey(DeleteKeyRequest deleteKeyRequest);\n TransferKeyResponse transferKey(TransferKeyRequest keyRequest);\n GetKeyAttributesResponse getKeyAttributes(GetKeyAttributesRequest keyAttributesRequest);\n SearchKeyAttributesResponse searchKeyAttributes(SearchKeyAttributesRequest searchKeyAttributesRequest);\n}", "com.google.protobuf.ByteString getKeyBytes();", "com.google.protobuf.ByteString getKeyBytes();", "protected abstract T retrieveEntry(PersistentEntity persistentEntity, Serializable key);", "byte[] getKey();", "void privateSetAgregateKey(com.hps.july.persistence.StorageCardKey inKey) throws java.rmi.RemoteException;", "public interface KeyService extends GenericService<Key, String> {\n\n void generate(Integer length);\n\n void saveKeysToDB();\n\n}", "BudgetKeyEntity getBudgetKeyByBudgetKey(BudgetKeyEntity budgetKeyEntity);", "com.icare.eai.schema.om.evSORequest.EvSORequestDocument.EvSORequest.Key addNewKey();", "XClass getMapKey();", "BListKey getKey();", "@Override\n public String getKey() {\n return key;\n }", "java.lang.String getClientKey();", "void privateSetExpeditorKey(com.hps.july.persistence.WorkerKey inKey) throws java.rmi.RemoteException;", "com.google.protobuf.ByteString\n getKeyBytes();", "com.google.protobuf.ByteString\n getKeyBytes();", "com.google.protobuf.ByteString\n getKeyBytes();", "public ECP getPublicKGCKey(){return pkS;}", "void setKey(String key);", "public interface JsonKey {\n\n String CLASS = \"class\";\n String DATA = \"data\";\n String EKS = \"eks\";\n String ID = \"id\";\n String LEVEL = \"level\";\n String MESSAGE = \"message\";\n String METHOD = \"method\";\n String REQUEST_MESSAGE_ID = \"msgId\";\n String STACKTRACE = \"stacktrace\";\n String VER = \"ver\";\n String OK = \"ok\";\n String LOG_LEVEL = \"logLevel\";\n String ERROR = \"error\";\n String EMPTY_STRING = \"\";\n String RESPONSE = \"response\";\n String ADDRESS = \"address\";\n String KEY = \"key\";\n String ERROR_MSG = \"error_msg\";\n String ATTRIBUTE = \"attribute\";\n String ERRORS = \"errors\";\n String SUCCESS = \"success\";\n\n String CERTIFICATE = \"certificate\";\n String RECIPIENT_NAME = \"recipientName\";\n String COURSE_NAME = \"courseName\";\n String NAME = \"name\";\n String HTML_TEMPLATE = \"htmlTemplate\";\n String TAG = \"tag\";\n String ISSUER = \"issuer\";\n String URL = \"url\";\n String SIGNATORY_LIST = \"signatoryList\";\n String DESIGNATION = \"designation\";\n String SIGNATORY_IMAGE = \"image\";\n\n String DOMAIN_URL = \"sunbird_cert_domain_url\";\n String ASSESSED_DOMAIN = \"ASSESSED_DOMAIN\";\n String BADGE_URL = \"BADGE_URL\";\n String ISSUER_URL = \"ISSUER_URL\";\n String TEMPLATE_URL = \"TEMPLATE_URL\";\n String CONTEXT = \"CONTEXT\";\n String VERIFICATION_TYPE = \"VERIFICATION_TYPE\";\n String SIGNATORY_EXTENSION = \"SIGNATORY_EXTENSION\";\n String RECIPIENT_EMAIl = \"recipientEmail\";\n String RECIPIENT_PHONE = \"recipientPhone\";\n String RECIPIENT_ID = \"recipientId\";\n String VALID_FROM = \"validFrom\";\n String EXPIRY = \"expiry\";\n String OLD_ID = \"oldId\";\n String PUBLIC_KEY = \"publicKey\";\n String DESCRIPTION = \"description\";\n String LOGO = \"logo\";\n String ISSUE_DATE = \"issueDate\";\n String USER = \"user\";\n String CERTIFICATE_NAME = \"name\";\n\n String CONTAINER_NAME = \"CONTAINER_NAME\";\n String CLOUD_STORAGE_TYPE = \"CLOUD_STORAGE_TYPE\";\n String CLOUD_UPLOAD_RETRY_COUNT = \"CLOUD_UPLOAD_RETRY_COUNT\";\n String AZURE_STORAGE_SECRET = \"AZURE_STORAGE_SECRET\";\n String AZURE_STORAGE_KEY = \"AZURE_STORAGE_KEY\";\n String ACCESS_CODE_LENGTH = \"ACCESS_CODE_LENGTH\";\n String ORG_ID = \"orgId\";\n String KEYS = \"keys\";\n String ENC_SERVICE_URL = \"sunbird_cert_enc_service_url\";\n String SIGN_HEALTH_CHECK_URL = \"SIGN_HEALTH_CHECK_URL\";\n String SIGN_URL = \"SIGN_URL\";\n String SIGN_VERIFY_URL = \"SIGN_VERIFY_URL\";\n String SIGN_CREATOR = \"SIGN_CREATOR\";\n String SIGN = \"sign\";\n String VERIFY = \"verify\";\n String KEY_ID = \"keyId\";\n String JSON_URL = \"jsonUrl\";\n String PDF_URL = \"pdfUrl\";\n String UNIQUE_ID = \"id\";\n String GENERATE_CERT = \"generateCert\";\n String PUBLIC_KEY_URL = \"PUBLIC_KEY_URL\";\n String GET_SIGN_URL = \"getSignUrl\";\n String SIGNED_URL = \"signedUrl\";\n\n String ACCESS_CODE = \"accessCode\";\n String JSON_DATA = \"jsonData\";\n String SLUG = \"sunbird_cert_slug\";\n}", "void setKey(K key);", "public ContentKey() {}", "public Object attachment(Object key);", "public abstract int getKeybind();", "@Override\n protected final Object getKey()\n {\n return this;\n }", "String newKey();", "public String getKey();", "public String getKey();", "public String getKey();", "public String getKey();", "KeyManager createKeyManager();", "String setKey(String newKey);", "String getKey(Object entity);", "Object getKey();", "com.hps.july.persistence.WorkerKey getTechStuffKey() throws java.rmi.RemoteException;", "Object getAuthInfoKey();", "@Override\n default String getKey(){\n return key();\n }", "KeyMetadata metadata();", "String getComponentAesKey();", "com.google.protobuf.ByteString\n getKeyBytes();", "com.google.protobuf.ByteString\n getKeyBytes();", "public CryptoKey getMyKey() {\n return myKey;\n }", "public interface Key {\n\n String SHARE_KEY = \"userIndo\";//用户信息\n String SHARE_USER_ID = \"userId\";//用户账号\n\n}", "public interface KeyLoader {\n\n <T> T getKey();\n\n}", "public interface IKeyCreator {\n byte[] generateKey(int n);\n\n byte[] getKeyFromFile(String p);\n\n byte[] inputKey(String s);\n}", "public Object create(String key_letters) throws XtumlException;", "protected String getKey(String baseKey){\n \treturn getKey(baseKey, id);\n }", "public void setKey(java.lang.String param){\n localKeyTracker = true;\n \n this.localKey=param;\n \n\n }", "java.lang.String getPublicEciesKey();", "public static synchronized Object makeKey (byte[] k)\r\n throws InvalidKeyException {\r\nif (DEBUG) trace(IN, \"makeKey(\"+k+\")\");\r\nif (DEBUG && debuglevel > 7) {\r\nSystem.out.println(\"Intermediate Session Key Values\");\r\nSystem.out.println();\r\nSystem.out.println(\"Raw=\"+toString(k));\r\n}\r\n //\r\n //...\r\n //\r\n Object sessionKey = null;\r\n\r\n frog_InternalKey intkey = new frog_InternalKey();\r\n \t /* Fill internal key with hashed keyMaterial */\r\n intkey.internalKey = frog_procs.hashKey( k );\r\n \t /* Convert internalKey into a valid format for encrypt and decrypt (see B.1.2.e) */\r\n intkey.keyE = frog_procs.makeInternalKey( frog_Algorithm.DIR_ENCRYPT, intkey.internalKey );\r\n intkey.keyD = frog_procs.makeInternalKey( frog_Algorithm.DIR_DECRYPT, intkey.internalKey );\r\n \r\n sessionKey = intkey;\r\n //\r\n // ...\r\n //\r\nif (DEBUG && debuglevel > 7) {\r\nSystem.out.println(\"...any intermediate values\");\r\nSystem.out.println();\r\n}\r\nif (DEBUG) trace(OUT, \"makeKey()\");\r\n return sessionKey;\r\n }", "public interface IPSGenericKeyService \n{\n public static final long DAY_IN_MILLISECONDS = 86400000;\n\n\t/**\n\t * Generates a unique key with the supplied duration, validity of the key is\n\t * checked against the creation time with the duration and current system\n\t * time.\n\t * \n\t * @param duration in milliseconds.\n\t * @return The generated key, never blank.\n\t */\n\tpublic String generateKey(long duration) throws Exception;\n\n\t/**\n\t * Checks whether the supplied key is still valid or not. The key is valid\n\t * if it exists and if the current system time is less than the key creation\n\t * time plus duration.\n\t * \n\t * @param key may be blank.\n\t * @return <code>true</code> if the key is still valid otherwise <code>false</code>.\n\t */\n\tpublic boolean isValidKey(String key) throws Exception;\n\t\n\t/**\n\t * Deletes the supplied key if exists.\n\t * @param key the key to delete\n\t */\n\tpublic void deleteKey(String key) throws Exception;\n\t\n}", "com.google.protobuf.ByteString\n getClientKeyBytes();", "void setKey(java.lang.String key);", "public interface KeySegmentConverter<K> {\n // Return key segment object based on node object\n // Key segment equality is used to identify the source node object\n // The .toString() of the key segment object will be used to write DOM node IDs.\n public Object getSegment(K node);\n // Used to create complete NodeKey with segment objects parsed from their .toString()\n // representations.\n public NodeKey parseSegments(String[] segments);\n}", "protected void sequence_Key_KeyedElement(ISerializationContext context, Key semanticObject) {\r\n\t\tif (errorAcceptor != null) {\r\n\t\t\tif (transientValues.isValueTransient(semanticObject, GoPackage.Literals.KEY__FIELDN) == ValueTransient.YES)\r\n\t\t\t\terrorAcceptor.accept(diagnosticProvider.createFeatureValueMissing(semanticObject, GoPackage.Literals.KEY__FIELDN));\r\n\t\t\tif (transientValues.isValueTransient(semanticObject, GoPackage.Literals.KEYED_ELEMENT__ELEMENT) == ValueTransient.YES)\r\n\t\t\t\terrorAcceptor.accept(diagnosticProvider.createFeatureValueMissing(semanticObject, GoPackage.Literals.KEYED_ELEMENT__ELEMENT));\r\n\t\t}\r\n\t\tSequenceFeeder feeder = createSequencerFeeder(context, semanticObject);\r\n\t\tfeeder.accept(grammarAccess.getKeyAccess().getFieldnFieldNameParserRuleCall_0_1_0(), semanticObject.getFieldn());\r\n\t\tfeeder.accept(grammarAccess.getKeyedElementAccess().getElementElementParserRuleCall_1_0(), semanticObject.getElement());\r\n\t\tfeeder.finish();\r\n\t}", "public interface HostKeyImportApi extends HostApi {\n\n\t/**\n\t * To modify the fields for key import from host.\n\t * \n\t * @param isoBuffer\n\t */\n\tpublic void importKey(IsoBuffer isoBuffer);\n\n}", "private DataKeys(String pKey) {\n key = pKey;\n }", "public byte[] getKey() {\n return this.key;\n }", "public interface KeySerDe {\n byte[] serialize(IndexedRecord key);\n IndexedRecord deserialize(byte[] keyBytes);\n}", "private static Key createInternalLobKey() {\n return Key.createKey(Arrays.asList(INTERNAL_KEY_SPACE,\n ILK_PREFIX_COMPONENT,\n UUID.randomUUID().toString()));\n }", "public K setKey(K key);", "@Override\n\tpublic String getKey() {\n\t\treturn key;\n\t}", "com.hps.july.persistence.OrganizationKey getOrganizationKey() throws java.rmi.RemoteException;", "public byte[] getKeyBytes(){\n\t\t\n\t\tif(this.key == null) return null;\n\t\treturn getKey().getBytes();\n\t}", "public interface EntryStoreDb<K> {\n\n void serializeKey(final ByteBuffer keyBuffer, K key);\n\n /**\n * @param writeTxn\n * @param keyBuffer\n * @param valueBuffer\n * @param overwriteExisting\n * @param isAppending Only set to true if you are sure that the key will be at the end of the db\n * @return\n */\n PutOutcome put(final Txn<ByteBuffer> writeTxn,\n final ByteBuffer keyBuffer,\n final ByteBuffer valueBuffer,\n final boolean overwriteExisting,\n final boolean isAppending);\n\n boolean delete(final Txn<ByteBuffer> writeTxn, final ByteBuffer keyBuffer);\n\n Optional<ByteBuffer> getAsBytes(Txn<ByteBuffer> txn, final ByteBuffer keyBuffer);\n\n Optional<UID> getMaxUid(final Txn<ByteBuffer> txn, PooledByteBuffer pooledByteBuffer);\n}", "String getKey();", "String getKey();", "String getKey();", "String getKey();", "String getKey();", "String getKey();", "String getKey();", "String getKey();", "String getKey();", "String getKey();", "String getKey();", "String getKey();", "String getKey();", "public interface BucketKeyPair<B, K> {\n\n /**\n * Get the bucket representation.\n *\n * @return\n */\n B getBucket();\n\n /**\n * Get the key representation.\n *\n * @return\n */\n K getKey();\n\n}", "@Override\r\n public void keyTyped(RWTVirtualKey key) {\n\r\n }", "@Override\r\n\t\t\tpublic Object getKey() {\n\t\t\t\treturn service;\r\n\t\t\t}", "public interface RepositoryKey {\n\n}", "MapBuilder<K,V> keyInjection(Injection<K, byte[]> keyInjection);", "public interface PublicKey {\n\n /**\n * Returns id of the public key.\n *\n * @return id of key\n */\n String getId();\n\n /**\n * Returns ids from gpg sub keys.\n *\n * @return sub key ids\n * @since 2.19.0\n */\n default Set<String> getSubkeys() {\n return Collections.emptySet();\n }\n\n /**\n * Returns the username of the owner or an empty optional.\n *\n * @return owner or empty optional\n */\n Optional<String> getOwner();\n\n /**\n * Returns raw of the public key.\n *\n * @return raw of key\n */\n String getRaw();\n\n /**\n * Returns the contacts of the publickey.\n *\n * @return owner or empty optional\n */\n Set<Person> getContacts();\n\n /**\n * Verifies that the signature is valid for the given data.\n *\n * @param stream stream of data to verify\n * @param signature signature\n * @return {@code true} if the signature is valid for the given data\n */\n boolean verify(InputStream stream, byte[] signature);\n\n /**\n * Verifies that the signature is valid for the given data.\n *\n * @param data data to verify\n * @param signature signature\n * @return {@code true} if the signature is valid for the given data\n */\n default boolean verify(byte[] data, byte[] signature) {\n return verify(new ByteArrayInputStream(data), signature);\n }\n}", "void SaveBudgetKeyAdditional(BudgetKeyAdditionalEntity budgetKeyAdditionalEntity);", "public PIEBankPlatinumKey() {\n\tsuper();\n}", "protected void sequence_ElementList_Key_KeyedElement(ISerializationContext context, Key semanticObject) {\r\n\t\tgenericSequencer.createSequence(context, semanticObject);\r\n\t}", "public Key getKey()\r\n { \r\n return key; \r\n }" ]
[ "0.63865244", "0.6264689", "0.6232229", "0.62057006", "0.6154788", "0.61351216", "0.6063158", "0.60488206", "0.6044882", "0.6042015", "0.6040418", "0.60138303", "0.598677", "0.59765923", "0.5976369", "0.5976369", "0.59757423", "0.5973666", "0.595098", "0.5939286", "0.5932641", "0.59292847", "0.59074", "0.59000033", "0.5884058", "0.58435464", "0.5833856", "0.58120364", "0.58120364", "0.58120364", "0.58095574", "0.57940936", "0.5792891", "0.57661223", "0.57648766", "0.5764305", "0.57617664", "0.5752358", "0.57403046", "0.57356066", "0.57356066", "0.57356066", "0.57356066", "0.57247436", "0.5722087", "0.57148576", "0.5708268", "0.5697618", "0.5681255", "0.56703895", "0.56697613", "0.5658958", "0.5658001", "0.5658001", "0.565109", "0.56378734", "0.5609228", "0.5608846", "0.5605049", "0.5600076", "0.5596607", "0.5595135", "0.559367", "0.5591585", "0.5574891", "0.5569829", "0.55689424", "0.5558263", "0.55580765", "0.55572426", "0.5556948", "0.5552426", "0.5550439", "0.5550068", "0.55484253", "0.5541391", "0.55405134", "0.5540292", "0.5532219", "0.5532219", "0.5532219", "0.5532219", "0.5532219", "0.5532219", "0.5532219", "0.5532219", "0.5532219", "0.5532219", "0.5532219", "0.5532219", "0.5532219", "0.5529545", "0.5522655", "0.5520732", "0.551644", "0.55114144", "0.55072844", "0.550704", "0.5503926", "0.55028576", "0.549741" ]
0.0
-1
Gets the path1 value for this ResponsiveSearchAd.
public java.lang.String getPath1() { return path1; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setPath1(java.lang.String path1) {\n this.path1 = path1;\n }", "public String getPath() {\n\t\treturn getString(\"path\");\n\t}", "public String getPath() { \n\t\treturn getPathElement().getValue();\n\t}", "public java.lang.String getDirection1() {\r\n return direction1;\r\n }", "public String getPath(){\n\t\t\treturn this.path;\n\t\t}", "String getPath() {\n return this.path;\n }", "public String getPathName();", "public String getPathName()\n {\n return getString(\"PathName\");\n }", "String getPath() {\r\n\t\treturn path;\r\n\t}", "public String getPath(){\r\n\t\treturn path;\r\n\t}", "public int path(){\n\t\treturn this.path;\n\t}", "public String getPath() {\n\t\treturn this.path;\n\t}", "public String getPath() {\n return this.path;\n }", "public String getPath() {\n return this.path;\n }", "public String getPath() {\n return this.path;\n }", "public String getPath() {\n return this.path;\n }", "public String getPath() {\n return this.path;\n }", "public String getPath() {\n return this.path;\n }", "public String getPath() {\n return this.path;\n }", "public String getPath() {\n return this.path;\n }", "public String getPath() {\n return this.path;\n }", "public String getPath() {\n return this.path;\n }", "public String getPath() {\n return this.path;\n }", "public String getPath() {\n return this.path;\n }", "public String getPath() {\n return this.path;\n }", "String getPathName();", "String getPathName();", "public final String getPath() {\n\t\treturn this.path.toString();\n\t}", "public String getPath() {\n\n\t\treturn this.path;\n\n\t}", "String getPath() {\n return path;\n }", "public String getPath() {\n return (path == null || path.equals(\"\")) ? \"/\" : path;\n }", "public String getPath() {\n return this.path;\n }", "public StringDt getPathElement() { \n\t\tif (myPath == null) {\n\t\t\tmyPath = new StringDt();\n\t\t}\n\t\treturn myPath;\n\t}", "public String getAttribute1() {\n return (String)getAttributeInternal(ATTRIBUTE1);\n }", "public String getAttribute1() {\n return (String)getAttributeInternal(ATTRIBUTE1);\n }", "public String getAttribute1() {\n return (String)getAttributeInternal(ATTRIBUTE1);\n }", "public String getAttribute1() {\n return (String)getAttributeInternal(ATTRIBUTE1);\n }", "public String getAttribute1() {\n return (String)getAttributeInternal(ATTRIBUTE1);\n }", "public String getPathName() {\n\t\treturn pathName;\n\t}", "String getPath() {\n return mPath;\n }", "public String getPath() {\r\n\t\t\treturn path;\r\n\t\t}", "public String getIdenticalPath() {\n return ipath;\n }", "public String getPath() {\r\n\t\treturn path;\r\n\t}", "public String getPath() {\r\n\t\treturn path;\r\n\t}", "public String getPath() {\r\n\t\treturn path;\r\n\t}", "public String getAttribute1() {\n return (String) getAttributeInternal(ATTRIBUTE1);\n }", "public java.lang.String getPath() {\n\t\t return path;\n\t }", "public String getPath() {\n\t\treturn path;\n\t}", "public CustomPath getPath() {\n\t\treturn path;\n\t}", "public String getInputPath2() {\n\t\treturn inputPath2;\n\t}", "public String getPath() {\r\n return path;\r\n }", "public String getPath() {\r\n return path;\r\n }", "public String getAttribute1()\n {\n return (String)getAttributeInternal(ATTRIBUTE1);\n }", "public java.lang.String getPath(int index) {\n return path_.get(index);\n }", "public String getPath()\n {\n\n return _path;\n }", "public java.lang.String getPath(int index) {\n return path_.get(index);\n }", "public String getPath() {\n return path;\n }", "public String getPath() {\n return path;\n }", "public String getPath() {\n return path;\n }", "public String getPath() {\n return path;\n }", "public String getPath() {\n return path;\n }", "public String getPath() {\n return path;\n }", "public String getPath() {\n return path;\n }", "public String getPath() {\n return path;\n }", "public String getPath() {\n return path;\n }", "public String getPath() {\n return path;\n }", "public String getPath() {\n return path;\n }", "public String getPath() {\n return path;\n }", "public String getPath() {\n return path;\n }", "public String getPath() {\n return path;\n }", "public String getPath() {\n return path;\n }", "public String getPath()\n {\n return path;\n }", "public String getPath()\n {\n return path;\n }", "@org.jetbrains.annotations.NotNull()\n public final android.net.Uri component1() {\n return null;\n }", "public final String getPath() {\n\t return m_path;\n\t}", "@Nullable public String getPath() {\n return path;\n }", "Path getPath() {\n return this.path;\n }", "public Path getPath(){\n return this.path;\n }", "public String path() {\n return this.path;\n }", "public String path() {\n return this.path;\n }", "String getPath();", "String getPath();", "String getPath();", "String getPath();", "String getPath();", "Path getPath();", "public String getPath()\r\n/* 26: */ {\r\n/* 27:57 */ return this.path;\r\n/* 28: */ }", "public String getSingleCountryPath(){\r\n\t\t \r\n\t\t String singleCountryPath = properties.getProperty(\"singleCountryPath\");\r\n\t\t if(singleCountryPath != null) return singleCountryPath;\r\n\t\t else throw new RuntimeException(\"singleCountryPath not specified in the configuration.properties file.\");\r\n\t }", "protected String getPath ()\n\t{\n\t\treturn path;\n\t}", "public String getAttr1() {\n return attr1;\n }", "public String getAttr1() {\n return attr1;\n }", "public String getPath() {\n return m_path;\n }", "public String getPathname() {return this.pathname;}", "public Path getPath();", "PathSegments getPath();", "@gw.internal.gosu.parser.ExtendedProperty\n public java.lang.String getReference1() {\n return (java.lang.String)__getInternalInterface().getFieldValueForCodegen(REFERENCE1_PROP.get());\n }", "public Path getPath() {\n return this.path;\n }", "public String getAdr1() {\n return adr1;\n }", "@Override\n\t\tpublic String getRealPath(String path) {\n\t\t\treturn null;\n\t\t}", "public SoPath getPath() {\n\t\t return path; \n\t}" ]
[ "0.6460653", "0.593184", "0.58688396", "0.57320076", "0.5731948", "0.57144487", "0.5664622", "0.56231344", "0.55998063", "0.5585513", "0.55738616", "0.5573484", "0.55601525", "0.55601525", "0.55601525", "0.55601525", "0.55601525", "0.55601525", "0.55601525", "0.55601525", "0.55601525", "0.55601525", "0.55601525", "0.55601525", "0.55601525", "0.555119", "0.555119", "0.55431855", "0.5542459", "0.55366933", "0.55310905", "0.5527934", "0.55270845", "0.5523293", "0.5523293", "0.5523293", "0.5523293", "0.5523293", "0.55157125", "0.5512751", "0.55052733", "0.5492698", "0.54894435", "0.54894435", "0.54894435", "0.548769", "0.5480965", "0.5480211", "0.54747105", "0.545772", "0.5437907", "0.5437907", "0.5432588", "0.5424408", "0.5416274", "0.54149836", "0.5407672", "0.5407672", "0.5407672", "0.5407672", "0.5407672", "0.5407672", "0.5407672", "0.5407672", "0.5407672", "0.5407672", "0.5407672", "0.5407672", "0.5407672", "0.5407672", "0.5407672", "0.5399544", "0.5399544", "0.5388145", "0.5383841", "0.5366526", "0.5365399", "0.5362037", "0.5350015", "0.5350015", "0.5347787", "0.5347787", "0.5347787", "0.5347787", "0.5347787", "0.5332701", "0.53179854", "0.5317368", "0.53037965", "0.53036004", "0.53036004", "0.5296855", "0.52934045", "0.52891934", "0.5277137", "0.5267522", "0.52668756", "0.5264502", "0.5262557", "0.52484924" ]
0.7990764
0
Sets the path1 value for this ResponsiveSearchAd.
public void setPath1(java.lang.String path1) { this.path1 = path1; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public java.lang.String getPath1() {\n return path1;\n }", "public void setPath(String path)\n {\n try\n {\n // Tokenize the path\n pathArray = getPathResolved(path);\n \n // Set path property\n this.path = path;\n }\n catch (NumberFormatException nfe)\n {\n // Reset path property\n this.path = \"\";\n }\n }", "public void setAdr1(String adr1) {\n this.adr1 = adr1;\n }", "public void setPath(String path){\n mPath = path;\n }", "public free_args setPath(String path) {\n this.path = path;\n return this;\n }", "public void setPath(String path);", "public void setPath(String path) {\n if (!path.startsWith(\"/\")) {\n this.path = \"/\" + path;\n } else {\n this.path = path;\n }\n }", "void setPath(String path);", "public void setDirection1(java.lang.String direction1) {\r\n this.direction1 = direction1;\r\n }", "public void setValue1(final java.lang.String value1) {\n this.value1 = value1;\n }", "public Path setLevel1() {\n\t\tint xVal = (LAND_X_COUNT/2);//5\n\t\tint yVal = 0;\n\t\t\n\t\t//pixel width/height for grid coordinate\n\t\tfloat xPx = (float) (PIXEL_WIDTH*(xVal));\n\t\tfloat yPx = (float) (PIXEL_HEIGHT*(yVal));\n\t\t\n\t\tsPath.moveTo(xPx, yPx); //LANDWIDTH MIDDLE X\n\t\tPosition prevPos = new Position(xVal,yVal);\n\t\tPosition newPos;// = new Position(5,2);\n\n\t\tLevelOne one = new LevelOne(); //level one contains more information, just path details\n\t\t\n\t\tsetPathLine(prevPos,prevPos); //first point\n\n\t\tfor (Position pos : one.getLevelPositions())\n\t\t{\n\t\t\tnewPos = pos;\n\t\t\tsetPathLine(prevPos,newPos);\n\t\t\tprevPos = newPos;\n\t\t}\n\t\n\t\tnewPos = new Position(LAND_X_COUNT/2,LAND_Y_COUNT-1); //middle of the bottom of the screen\n\t\tsetPathLine(prevPos,newPos);\n\t\tendPosition = newPos; //store end position\n\t\tnewPos = new Position(LAND_X_COUNT/2,LAND_Y_COUNT);\n\t\tsPath.lineTo((float) (PIXEL_WIDTH*newPos.getX()), (float) (PIXEL_HEIGHT*newPos.getY()));//END POINT\n\t\treturn sPath;\t\n\t}", "public void setPath(String path)\r\n/* 21: */ {\r\n/* 22:53 */ this.path = path;\r\n/* 23: */ }", "public void setAttr1(String attr1) {\n this.attr1 = attr1;\n }", "public void setAttr1(String attr1) {\n this.attr1 = attr1;\n }", "public void setPath(String path) {\r\n this.path = path == null ? null : path.trim();\r\n }", "public void setPath(String path) {\n this.path = path == null ? null : path.trim();\n }", "public void setPath(String path) {\n this.path = path == null ? null : path.trim();\n }", "public void setPath(String path) {\n this.path = path == null ? null : path.trim();\n }", "public ElementDefinitionDt setPath( String theString) {\n\t\tmyPath = new StringDt(theString); \n\t\treturn this; \n\t}", "public void setPath(String path)\n {\n this.path = path;\n }", "public void setPath(String path) {\r\n this.path = path;\r\n }", "public final native void setPath(JsArray<LatLng> value) /*-{\n\t\tthis.setPath(value);\n\t}-*/;", "public void setPath(String path) {\n this.path = path;\n }", "public final void setD1windr(java.lang.String d1windr)\n\t{\n\t\tsetD1windr(getContext(), d1windr);\n\t}", "public void setPath(String path) {\n\n this.path = path;\n }", "@Override\n\tpublic void setNode_1(java.lang.String node_1) {\n\t\t_dictData.setNode_1(node_1);\n\t}", "public ElementDefinitionDt setPath(StringDt theValue) {\n\t\tmyPath = theValue;\n\t\treturn this;\n\t}", "public void setPath(int path){\n\t\tthis.path = path;\n\t}", "public void setPath(Path path) {\n this.path = path;\n }", "public void setPath(String path) {\n this.path = path;\n }", "public void setPath(String path) {\n this.path = path;\n }", "public void setPath(String path) {\n this.path = path;\n }", "public void setPath(String path) {\n this.path = path;\n }", "public void setPath(String path) {\n this.path = path;\n }", "public void setPath(String path) {\n this.path = path;\n }", "public void setPath(String path) {\n this.path = path;\n }", "public void setPath(String path) {\n this.path = path;\n }", "public void setPath(String path) {\n this.path = path;\n }", "public void setPath(String path) {\r\n\t\tthis.path = path;\r\n\t}", "public void setPath(String path) {\r\n\t\tthis.path = path;\r\n\t}", "public void setPath(String path) {\r\n\t\tthis.path = path;\r\n\t}", "public void setPath(java.lang.String path) {\n\t\t this.path = path;\n\t }", "public Builder setS1(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000001;\n s1_ = value;\n onChanged();\n return this;\n }", "public void updatePath() {\n\t\tString oldPath = this.path;\n\t\tif (materializePath()) {\n\t\t\tPageAlias.create(this, oldPath);\n\t\t\tupdateChildPaths();\n\t\t}\n\t}", "@Override\n\tpublic void setField1(java.lang.String field1) {\n\t\t_second.setField1(field1);\n\t}", "public void setAttribute1(String value) {\n setAttributeInternal(ATTRIBUTE1, value);\n }", "public void setAttribute1(String value) {\n setAttributeInternal(ATTRIBUTE1, value);\n }", "public void setAttribute1(String value) {\n setAttributeInternal(ATTRIBUTE1, value);\n }", "public void setAttribute1(String value) {\n setAttributeInternal(ATTRIBUTE1, value);\n }", "public void setAttribute1(String value) {\n setAttributeInternal(ATTRIBUTE1, value);\n }", "public void setAttribute1(String value) {\n setAttributeInternal(ATTRIBUTE1, value);\n }", "public void setAddr1(String addr1) {\r\n this.addr1 = addr1;\r\n }", "public final XmlAttributeInfo setXmlPath (int[] path)\r\n {\r\n _value.setPath(path);\r\n return this;\r\n }", "public final void setD1windr(com.mendix.systemwideinterfaces.core.IContext context, java.lang.String d1windr)\n\t{\n\t\tgetMendixObject().setValue(context, MemberNames.D1windr.toString(), d1windr);\n\t}", "public setAttribute_args setPath(String path) {\n this.path = path;\n return this;\n }", "@Override\n public DefaultUrlBuilder pathSegment(String thePath) {\n this.pathSegments.add(BaseUrl.UrlEncoder.encodePathSegment(thePath));\n return this;\n }", "public void setAttribute1(String attribute1) {\n this.attribute1 = attribute1 == null ? null : attribute1.trim();\n }", "public getStatus_args setPath(String path) {\n this.path = path;\n return this;\n }", "public void setAttribute1(String value)\n {\n setAttributeInternal(ATTRIBUTE1, value);\n }", "public void setLine1(java.lang.String line1) {\r\n this.line1 = line1;\r\n }", "public void setPath(Path path)\n\t{\n\t\tpathList.clear();\n\t\tpathList.add(path);\n\t}", "public void changePath(String newPath){\n this.path=newPath;\n }", "public checkConsistency_args setPath(String path) {\n this.path = path;\n return this;\n }", "void setPath(DrivePath path);", "public void setAnswer1(String answer1) {\r\n this.answer1 = answer1;\r\n }", "public HttpBuilder<E,T> setPath (String path)\n\t{\n\t\tthis.path = String.format(path);\n\t\treturn this;\n\t}", "public completeFile_args setPath(String path) {\n this.path = path;\n return this;\n }", "void setPath() {\n\t\tif(from.getSelectedItem() != null){\n\t\t\tint ifrom = (int) from.getSelectedItem();\n\t\t\tint ito = (int) to.getSelectedItem();\n\t\t\tPathFinder finder = new BellmanFord(this.app.graph, ifrom-1);\n\t\t\tfinder.findAll();\n\t\t\tArrayList<Integer> path = finder.getPath(ito-1);\n\t\t\tStringBuilder pathStr = new StringBuilder(\"[\");\n\t\t\tif(path != null){\n\t\t\t\tfor(int i = path.size()-1; i >= 0 ; i--){\n\t\t\t\t\tpathStr.append((path.get(i)+1) + \" \");\n\t\t\t\t}\n\t\t\t\tpathStr.append(\"]\");\n\t\t\t\t\n\t\t\t}\n\t\t\tthis.pathLabel.setText(pathStr.toString());\n\t\t}\n\t\t\n\t}", "public Builder setPath(String path) {\n\t\t\turl.path = path == null || path.isEmpty() ? null : path;\n\t\t\treturn this;\n\t\t}", "public NcrackClient onPath(String path) {\n this.path = Optional.of(path);\n return this;\n }", "public Builder setPath(final String value) {\n _path = value;\n return self();\n }", "public void setLine1(String line1) {\n this.line1 = line1;\n }", "public void setAddress1(String address1) {\n\t\tthis.address1 = address1;\n\t}", "public void setPath(Tile path) {\n\t\tthis.path = path;\n\t}", "public void setInputPath2(String inputPath2) {\n\t\tthis.inputPath2 = inputPath2;\n\t}", "public void setImg_1(String img_1) {\n this.img_1 = img_1;\n }", "public void setDx(double dx1) {\n this.dx = dx1;\n }", "public final DragBounds setX1(final double x1)\n {\n m_jso.setX1(x1);\n\n return this;\n }", "@JsonProperty(\"path\")\r\n public void setPath(String path) {\r\n this.path = path;\r\n }", "@JsonProperty(\"path\")\r\n public void setPath(String path) {\r\n this.path = path;\r\n }", "public void setPath(Position[] path) {\n\t\tif(path != null)\n\t\t\tthis.path = path;\n\t}", "public void setIdPath(String idPath) {\n\t\tthis.idPath = idPath;\n\t\tthis.handleConfig(\"idPath\", idPath);\n\t}", "public Builder setCurrentPath(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n currentPath_ = value;\n onChanged();\n return this;\n }", "public void initPath() {\r\n\t\tpath = new Path();\r\n\t}", "public static void setDefaultPath(String path) {\n\t\tPATH = path;\n\t}", "@JsonProperty(\"path\")\n public void setPath(String path) {\n this.path = path;\n }", "public static String addToPath(String path, String path2) { return path + \"/\" + path2; }", "public URIBuilder setPath(final String path) {\n this.path = path;\n this.encodedSchemeSpecificPart = null;\n this.encodedPath = null;\n return this;\n }", "public createDirectory_args setPath(String path) {\n this.path = path;\n return this;\n }", "public Builder setSrcPath(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000004;\n srcPath_ = value;\n onChanged();\n return this;\n }", "public listStatus_args setPath(String path) {\n this.path = path;\n return this;\n }", "@Override\n\tpublic void setStreet1(java.lang.String street1) {\n\t\t_candidate.setStreet1(street1);\n\t}", "public void setPath(Path inputPath) {\n path = inputPath;\n node = path.getNodes().getFirst();\n }", "public Builder setProperty1(int value) {\n bitField0_ |= 0x00000008;\n property1_ = value;\n \n return this;\n }", "public void setPath (\r\n String strPath) throws java.io.IOException, com.linar.jintegra.AutomationException;", "public void queryByName1(String name1) {\n\t\tNAME1 = name1;\n\t}", "@Override\n\tpublic void setValue(String path, Object value) {\n\t\tif (path.indexOf('.') >= 0 || path.indexOf('(') >= 0 ) {\n\t\t\tFlexDataAccess access = new FlexDataAccess(this, path, true);\n\t\t\taccess.setToPath(value);\n\t\t} else {\n\t\t\tsetValueMap(path, value);\n\t\t}\n\t}", "public void setResourcePath(String path) {\n appPathField.setText(path != null ? path : \"\");\n }", "public EndpointBuilder _path_(String _path_) {\n this.endpointImpl.setPath(_path_);\n return this;\n }", "public void setPath(String path) {\n // We know that URL arguments should always be encoded in UTF-8 according to spec\n setPath(path, EncoderCache.URL_ARGUMENT_ENCODING);\n }" ]
[ "0.70960677", "0.59409976", "0.56034595", "0.55913854", "0.5588868", "0.5563695", "0.5557354", "0.5549405", "0.55095327", "0.5480519", "0.5456291", "0.5440243", "0.5431941", "0.5431941", "0.54184806", "0.5394778", "0.5394778", "0.5394778", "0.53475285", "0.533068", "0.532554", "0.5310274", "0.53021127", "0.52979594", "0.5276911", "0.52766925", "0.5275021", "0.52737844", "0.52608776", "0.52476406", "0.52476406", "0.52476406", "0.52476406", "0.52476406", "0.52476406", "0.52476406", "0.52476406", "0.52476406", "0.5240129", "0.5240129", "0.5240129", "0.5237168", "0.52364755", "0.5184624", "0.5159513", "0.51465464", "0.51465464", "0.51465464", "0.51465464", "0.51465464", "0.51465464", "0.51337177", "0.5130923", "0.5126708", "0.5119186", "0.51127774", "0.51117855", "0.5096918", "0.5091835", "0.5088603", "0.5086598", "0.5081745", "0.50797427", "0.50751376", "0.50660586", "0.5065534", "0.5062065", "0.5059779", "0.5058119", "0.4998654", "0.49932003", "0.4990123", "0.49871558", "0.49837366", "0.49799383", "0.492663", "0.49216002", "0.49181983", "0.49076992", "0.49076992", "0.48933053", "0.48915565", "0.48793718", "0.48676127", "0.48665437", "0.48571026", "0.48524868", "0.48391744", "0.4839127", "0.48360094", "0.48205417", "0.48167902", "0.48154053", "0.48090506", "0.47993618", "0.47878757", "0.47750393", "0.4774604", "0.4769897", "0.47563905" ]
0.81688017
0
Return type metadata object
public static org.apache.axis.description.TypeDesc getTypeDesc() { return typeDesc; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public MetadataType getType();", "public MetadataType getType() {\n return type;\n }", "public MilanoTypeMetadata.TypeMetadata getMetadata()\n {\n if (typeMetadata == null) {\n return null;\n }\n\n return typeMetadata;\n }", "private Metadata getMetadata(RubyModule type) {\n for (RubyModule current = type; current != null; current = current.getSuperClass()) {\n Metadata metadata = (Metadata) current.getInternalVariable(\"metadata\");\n \n if (metadata != null) return metadata;\n }\n \n return null;\n }", "public Metadata getMetadata( MetadataType type )\n\t{\n\t\tfor( Metadata metadata: mMetadata )\n\t\t{\n\t\t\tif( metadata.getMetadataType() == type )\n\t\t\t{\n\t\t\t\treturn metadata;\n\t\t\t}\n\t\t}\n\t\t\n\t\treturn null;\n\t}", "Metadata getMetaData();", "public List<TypeMetadata> getTypeMetadata() {\n return types;\n }", "@Override\n public Class<? extends Metadata> getMetadataType() {\n throw new RuntimeException( \"Not yet implemented.\" );\n }", "String getType();", "String getType();", "String getType();", "String getType();", "String getType();", "String getType();", "String getType();", "String getType();", "String getType();", "String getType();", "String getType();", "String getType();", "String getType();", "String getType();", "String getType();", "String getType();", "String getType();", "String getType();", "String getType();", "String getType();", "String getType();", "String getType();", "String getType();", "String getType();", "String getType();", "public MetaData getMetaData();", "private Class<?> getType(final Object metadata, final ValueNode node) throws ParseException {\n if (node.type != null) {\n return readType(node);\n }\n Class type;\n if (metadata instanceof ReferenceSystemMetadata || metadata instanceof Period || metadata instanceof AbstractTimePosition || metadata instanceof Instant) {\n final Method getter = ReflectionUtilities.getGetterFromName(node.name, metadata.getClass());\n return getter.getReturnType();\n } else {\n type = standard.asTypeMap(metadata.getClass(), KeyNamePolicy.UML_IDENTIFIER, TypeValuePolicy.ELEMENT_TYPE).get(node.name);\n }\n final Class<?> special = specialized.get(type);\n if (special != null) {\n return special;\n }\n return type;\n }", "public Map<String, Variant<?>> GetMetadata();", "public String getType();", "public String getType();", "public String getType();", "public String getType();", "public String getType();", "public String getType();", "public String getType();", "public String getType();", "public String getType();", "public String getType();", "public String getType();", "public String getType();", "public String getType();", "public TypeSummary getTypeSummary() {\r\n return type;\r\n }", "String provideType();", "java.lang.String getType();", "java.lang.String getType();", "java.lang.String getType();", "java.lang.String getType();", "java.lang.String getType();", "java.lang.String getType();", "java.lang.String getType();", "java.lang.String getType();", "java.lang.String getType();", "java.lang.String getType();", "java.lang.String getType();", "java.lang.String getType();", "java.lang.String getType();", "public Type getType();", "@Override\n public String toString() {\n return metaObject.getType().toString();\n }", "public String metadataClass() {\n return this.metadataClass;\n }", "Type getType();", "Type getType();", "Type getType();", "Type getType();", "Type getType();", "Type getType();", "Type getType();", "Type getType();", "Type getType();", "Type getType();", "Type getType();", "abstract public Type getType();", "public String type();", "private String getType(){\r\n return type;\r\n }", "protected abstract String getType();", "Coding getType();", "@Override\n TypeInformation<T> getProducedType();", "type getType();", "TypeDefinition createTypeDefinition();", "abstract public String getType();", "public abstract String getType();", "public abstract String getType();", "public abstract String getType();", "public abstract String getType();", "public abstract String getType();", "public abstract String getType();", "public abstract String getType();", "public abstract String getType();", "public abstract Type getType();", "protected static LibMetaData createLibMetaData(LibMetaData lmd) {\n MetaData metaData = new MetaData();\r\n metaData.add(\"IsThing\", new Integer(1), null, MetaDataEntry.FIX_VALUE, MetaDataEntry.MANDATORY_PROPERTY);\r\n metaData.add(\"ImageSource\", \"Items\", null, MetaDataEntry.ANY_VALUE, MetaDataEntry.MANDATORY_PROPERTY);\r\n metaData.add(\"Image\", new Integer(0), null, MetaDataEntry.POSITIVE_VALUE, MetaDataEntry.MANDATORY_PROPERTY);\r\n metaData.add(\"Number\", new Integer(1), null, MetaDataEntry.POSITIVE_VALUE, MetaDataEntry.MANDATORY_PROPERTY);\r\n lmd.add(THING, metaData);\r\n \r\n metaData = new MetaData(lmd.get(\"thing\"));\r\n metaData.add(\"IsItem\", new Integer(1), null, MetaDataEntry.FIX_VALUE, MetaDataEntry.MANDATORY_PROPERTY);\r\n metaData.add(\"ImageSource\", \"Items\", null, MetaDataEntry.ANY_VALUE, MetaDataEntry.MANDATORY_PROPERTY);\r\n metaData.add(\"Image\", new Integer(1), null, MetaDataEntry.POSITIVE_VALUE, MetaDataEntry.MANDATORY_PROPERTY);\r\n metaData.add(\"Name\", \"Thing\", null, MetaDataEntry.ANY_VALUE, MetaDataEntry.MANDATORY_PROPERTY);\r\n metaData.add(\"NameType\", new Integer(Description.NAMETYPE_NORMAL), null, MetaDataEntry.FIX_VALUE, MetaDataEntry.MANDATORY_PROPERTY);\r\n metaData.add(\"Z\", new Integer(Thing.Z_ITEM), null, MetaDataEntry.FIX_VALUE, MetaDataEntry.MANDATORY_PROPERTY);\r\n lmd.add(ITEM, metaData);\r\n \r\n metaData = new MetaData(lmd.get(\"thing\"));\r\n metaData.add(\"IsBeing\",new Integer(1), null, MetaDataEntry.FIX_VALUE, MetaDataEntry.MANDATORY_PROPERTY);\r\n metaData.add(\"ImageSource\", \"Creatures\", null, MetaDataEntry.ANY_VALUE, MetaDataEntry.MANDATORY_PROPERTY);\r\n metaData.add(\"Image\", new Integer(340), null, MetaDataEntry.POSITIVE_VALUE, MetaDataEntry.MANDATORY_PROPERTY);\r\n metaData.add(\"IsMobile\",new Integer(1), new Integer[]{new Integer(0), new Integer(1)}, MetaDataEntry.CERTAIN_VALUES, MetaDataEntry.MANDATORY_PROPERTY);\r\n metaData.add(\"IsBlocking\", new Integer(1), new Integer[]{new Integer(0), new Integer(1)}, MetaDataEntry.CERTAIN_VALUES, MetaDataEntry.MANDATORY_PROPERTY);\r\n metaData.add(\"MoveCost\", new Integer(100), null, MetaDataEntry.POSITIVE_VALUE, MetaDataEntry.MANDATORY_PROPERTY);\r\n metaData.add(\"DeathDecoration\", \"blood pool\", null, MetaDataEntry.ANY_VALUE, MetaDataEntry.MANDATORY_PROPERTY);\r\n metaData.add(\"NameType\", new Integer(Description.NAMETYPE_NORMAL), null, MetaDataEntry.FIX_VALUE, MetaDataEntry.MANDATORY_PROPERTY);\r\n metaData.add(\"Z\", new Integer(Thing.Z_MOBILE), null, MetaDataEntry.FIX_VALUE, MetaDataEntry.MANDATORY_PROPERTY);\r\n lmd.add(BEING, metaData);\r\n \r\n lmd = createEffectMetaData(lmd);\r\n lmd = createPoisonMetaData(lmd);\r\n lmd = createFoodMetaData(lmd);\r\n lmd = createScrollMetaData(lmd);\r\n lmd = createMissileMetaData(lmd);\r\n lmd = createRangedWeaponMetaData(lmd);\r\n lmd = createPotionMetaData(lmd);\r\n lmd = createWandMetaData(lmd);\r\n lmd = createRingMetaData(lmd);\r\n lmd = createCoinMetaData(lmd);\r\n lmd = createArmourMetaData(lmd);\r\n lmd = createWeaponMetaData(lmd);\r\n lmd = createSecretMetaData(lmd);\r\n lmd = createSpellBookMetaData(lmd);\r\n lmd = createChestMetaData(lmd);\r\n lmd = createDecorationMetaData(lmd);\r\n lmd = createSceneryMetaData(lmd);\r\n lmd = createPortalMetaData(lmd);\r\n lmd = createTrapMetaData(lmd);\r\n createMonsterMetaData(lmd);\r\n createPersonMetaData(lmd);\r\n return lmd;\r\n }", "String getTypeAsString();", "public gov.niem.niem.structures._2_0.MetadataType getMetadata()\n {\n synchronized (monitor())\n {\n check_orphaned();\n gov.niem.niem.structures._2_0.MetadataType target = null;\n target = (gov.niem.niem.structures._2_0.MetadataType)get_store().find_element_user(METADATA$0, 0);\n if (target == null)\n {\n return null;\n }\n return target;\n }\n }", "TypeRef getType();", "String getMetadataClassName();" ]
[ "0.7969707", "0.7373198", "0.7358018", "0.7090138", "0.67353225", "0.67259765", "0.66725683", "0.65644145", "0.6543223", "0.6543223", "0.6543223", "0.6543223", "0.6543223", "0.6543223", "0.6543223", "0.6543223", "0.6543223", "0.6543223", "0.6543223", "0.6543223", "0.6543223", "0.6543223", "0.6543223", "0.6543223", "0.6543223", "0.6543223", "0.6543223", "0.6543223", "0.6543223", "0.6543223", "0.6543223", "0.6543223", "0.6543223", "0.6510972", "0.648206", "0.6352795", "0.6329532", "0.6329532", "0.6329532", "0.6329532", "0.6329532", "0.6329532", "0.6329532", "0.6329532", "0.6329532", "0.6329532", "0.6329532", "0.6329532", "0.6329532", "0.62937546", "0.6285329", "0.628487", "0.628487", "0.628487", "0.628487", "0.628487", "0.628487", "0.628487", "0.628487", "0.628487", "0.628487", "0.628487", "0.628487", "0.628487", "0.627527", "0.6265675", "0.6235292", "0.6227797", "0.6227797", "0.6227797", "0.6227797", "0.6227797", "0.6227797", "0.6227797", "0.6227797", "0.6227797", "0.6227797", "0.6227797", "0.6221452", "0.6209023", "0.6196509", "0.61801785", "0.6180045", "0.6168281", "0.61679584", "0.6166462", "0.6161522", "0.6146188", "0.6146188", "0.6146188", "0.6146188", "0.6146188", "0.6146188", "0.6146188", "0.6146188", "0.6141369", "0.6140734", "0.6133515", "0.61228573", "0.6116976", "0.6111749" ]
0.0
-1
Weno pos a medias
public boolean borraLocalidad(String p){ boolean devolver = false; Localidad2 key = null; TreeSet<Localidad2> cercanas = new TreeSet<Localidad2>(); //Value TreeSet<Localidad2> borrar = new TreeSet<Localidad2>(); TreeSet<Localidad2> borrar2 = new TreeSet<Localidad2>(); for (Map.Entry<Localidad2, TreeSet<Localidad2>> entrada : ti.entrySet()) { key = entrada.getKey(); if(p.equals(key.getNombre())){ borrar.add(key); for (Map.Entry<Localidad2, TreeSet<Localidad2>> entrada2 : ti.entrySet()) { cercanas = entrada2.getValue(); for(Localidad2 loc: cercanas){ if(p.equals(loc.getNombre())){ borrar2.add(loc); } } Iterator<Localidad2> it2 = borrar2.iterator(); while(it2.hasNext()) { cercanas.remove(it2.next()); } } devolver = true; } } Iterator<Localidad2> it = borrar.iterator(); while(it.hasNext()){ ti.remove(it.next()); } return devolver; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public int notaMedia() {\n\t\tint media = 0;\n\t\t//sumatoria\n\t\tfor (Integer integer : notas) {\n\t\t\tmedia += integer.intValue();\n\t\t}\n\t\t//division\n //control divison por 0\n if(notas.size() != 0){\n\t\tmedia /= notas.size();\n }\n\t\treturn media;\n\t}", "protected abstract void nextWave();", "public double media(){\n double soma=0;\n for (int i = 0; i < lista.size(); i++) {\n soma+=lista.get(i).getMedia();\n }\n return soma/lista.size();\n }", "private static int calcularMedia(int[] notas) {\n\t\tint media = 0;\n\n\t\tfor (int i = 0; i < notas.length; i++) {\n\n\t\t\tmedia = media + notas[i];\n\n\t\t}\n\t\treturn media/notas.length;\n\t}", "void calcWave() {\n yoff += 0.01f;\n \n //For every x value, calculate a y value based on sine or cosine\n float x = yoff; //**OPTION #1****/\n //float x = 0.0f; //**OPTION #2****/\n for (int i = 0; i < yvalues.length; i++) {\n float n = 2*noise(x)-1.0f; //**OPTION #1****/ //scale noise to be between 1 and -1\n //float n = 2*noise(x,yoff)-1.0f; //**OPTION #2****/ //scale noise to be between 1 and -1\n yvalues[i] = n*amplitude;\n x+=dx;\n }\n }", "private static void moveWindow() {\n // sort the window array\n int[] windowInstance = window.clone();\n Arrays.sort(windowInstance);\n // use median to update distance readings\n prevDist = dist;\n dist = windowInstance[windowInstance.length / 2];\n // shift window by 1 sample, newest sample at the end \n for (int i = 0; i < window.length - 1; i++) {\n window[i] = window[i + 1];\n }\n window[window.length - 1] = readUsDistance();\n // for testing purpose:\n //System.out.println(Arrays.toString(windowInstance) + \" median: \" + dist);\n }", "public double darVelocidadMedia( )\n {\n return velocidadOrbitalMedia;\n }", "private static double mediana(List<Double> valores){\n\t\tdouble mediana;\n\t\tif(valores.size()%2==0){\n\t\t\tmediana = (valores.get(valores.size()/2) + valores.get(valores.size()/2-1))/2;\n\t\t}else{\n\t\t\tmediana = valores.get(valores.size()/2);\n\t\t}\n\t\treturn mediana;\n\t}", "public double getMedia()\n {\n return ( suma / cantidad );\n }", "public boolean isPositionParsedAsMediawiki(int pos) {\n\t\tArrayList<String> MWEscapeOpenText = MediawikiDataManager.MWEscapeOpenText;\n\t\tArrayList<String> MWEscapeCloseText = MediawikiDataManager.MWEscapeCloseText;\n\t\treturn isPositionParsedAsMediawiki(pos, MWEscapeOpenText, MWEscapeCloseText);\n\t}", "public void muovi() {\n\n for (int i = punti; i > 0; i--) {\n x[i] = x[(i - 1)];\n y[i] = y[(i - 1)];\n }\n\n if (sinistra) {\n x[0] -= DIMENSIONE_PUNTO;\n }\n\n if (destra) {\n x[0] += DIMENSIONE_PUNTO;\n }\n\n if (su) {\n y[0] -= DIMENSIONE_PUNTO;\n }\n\n if (giu) {\n y[0] += DIMENSIONE_PUNTO;\n }\n }", "public double[] rasterEmbed(double[] coeff){\r\n MatrixFunction matFunc = new MatrixFunction();\r\n Watermark watermark = new Watermark();\r\n ReadParameter param = new ReadParameter();\r\n \r\n double[] modCoeff = coeff;\r\n //Define the windo variable\r\n double[] window = new double[3];\r\n int midIndex = 0;\r\n \r\n int wmIndex = 0; // Watermark index\r\n for(int i=0; i<coeff.length; i++){\r\n if(((i+1)%3) == 0){ \r\n window[0] = coeff[i-2];\r\n window[1] = coeff[i-1];\r\n window[2] = coeff[i];\r\n \r\n // Find max and min of the window\r\n double maxWindow = matFunc.Max1D(window);\r\n double minWindow = matFunc.Min1D(window);\r\n \r\n //Calculating quantisation step delta\r\n // Formula: Delta = alpha * (|b1|+|b2|) / 2; and alpha is a tuning parameter.\r\n double delta = param.getQntAlphaRS() * (Math.abs(minWindow) + Math.abs(maxWindow)) / 2 ; \r\n \r\n //Calculate quantisation step values\r\n double[] qntStep = new double[(int)Math.round((maxWindow-minWindow)/delta) + 2];\r\n \r\n int qntIndex = 0; //Quantisation index\r\n qntStep[qntIndex] = minWindow;\r\n while(qntStep[qntIndex]<maxWindow){\r\n qntIndex++;\r\n qntStep[qntIndex] = qntStep[qntIndex - 1] + delta;\r\n } \r\n \r\n midIndex = 1;\r\n //Find the index value of the median in the scanning window\r\n for(int a=0;a<3;a++){\r\n if((window[a]>minWindow) && (window[a]<maxWindow)){\r\n midIndex = a;\r\n } //End of if condition \r\n } // End of for loop\r\n \r\n int tempIndex = 1;\r\n // Find the median position in steps\r\n for(int b=0;b<=qntIndex;b++){\r\n if((window[midIndex]>=qntStep[b]) && (window[midIndex]<=qntStep[b+1])){\r\n tempIndex = b+1;\r\n }\r\n } //End of for loop\r\n \r\n // Refer paper by Liehua Xie:\r\n // \"Joint wavelet compression and authentication watermarking\"\r\n //Modify the coefficient according to watermark value \r\n switch((int)watermark.getWatermark()[wmIndex++]){\r\n case 1: // Case 1: Watermark value = 1 \r\n if((tempIndex%2) == 1){\r\n window[midIndex] = qntStep[tempIndex];\r\n } else{\r\n window[midIndex] = qntStep[tempIndex - 1];\r\n } \r\n break;\r\n \r\n case 0: // Case 2: Watermark value = 0\r\n if((tempIndex%2) == 0){\r\n window[midIndex] = qntStep[tempIndex];\r\n } else{\r\n window[midIndex] = qntStep[tempIndex - 1];\r\n } \r\n break;\r\n } //End of switch statement\r\n \r\n \r\n if(wmIndex>=watermark.getWatermark().length){\r\n // Reset k once watermark idex reach to end. Continue watermark from start index of the watermark\r\n wmIndex = 0; \r\n }\r\n \r\n //Modify the actual value now\r\n modCoeff[i-2] = window[0];\r\n modCoeff[i-1] = window[1];\r\n modCoeff[i] = window[2];\r\n \r\n } // End of if condition\r\n } // End of for loop\r\n \r\n return modCoeff;\r\n }", "public void actualizarMusicaInfo() {\n final Handler handler = new Handler();\n handler.postDelayed(new Runnable() {\n @Override\n public void run() {\n int currentDuration;\n //currentDuration = MediaPlayerController.getCurrentDuration();\n currentDuration = mediaPlayerService.getCurrentDuration();\n updateSeekBar(currentDuration);\n handler.postDelayed(this, 1000);\n }\n }, 0); // si delay 0 para arrancar\n }", "@Override\n public void moveMedia(int sourceIndex, int targetIndex) {\n synchronized (this) {\n AudioMedia sourceMedia;\n synchronized (streamSpec.getAudioMedias()) {\n try{\n sourceMedia = streamSpec.getAudioMedias().get(sourceIndex); \n if(sourceIndex==0 && status.equals(Status.PLAYING)){\n streamSpec.getAudioMedias().add(targetIndex, sourceMedia);\n status = Status.CURRENT_MEDIA_CHANGE_REQUESTED;\n }else if(targetIndex==0 && status.equals(Status.PLAYING)){\n streamSpec.getAudioMedias().remove(sourceIndex);\n streamSpec.getAudioMedias().add(1, sourceMedia);\n streamSpec.getAudioMedias().add(2, streamSpec.getAudioMedias().get(0));\n status = Status.CURRENT_MEDIA_CHANGE_REQUESTED;\n }else{\n streamSpec.getAudioMedias().add(targetIndex, sourceMedia);\n streamSpec.getAudioMedias().remove(sourceIndex<targetIndex?sourceIndex:sourceIndex+1);\n for (StreamListener streamListener : streamListeners) {\n streamListener.queueChanged();\n }\n }\n }catch(IndexOutOfBoundsException ex){\n }\n }\n }\n }", "public static float mw2pu(float mw) {return mw/100F;}", "@Test\r\n public void testMedia() {\r\n EstatisticasUmidade e = new EstatisticasUmidade();\r\n e.setValor(5.2);\r\n e.setValor(7.0);\r\n e.setValor(1.3);\r\n e.setValor(6);\r\n e.setValor(0.87);\r\n double result= e.media(1);\r\n assertArrayEquals(\"ESPERA RESULTADO\", 5.2 , result, 0.1);\r\n }", "public wave() {\n initComponents();\n //velikost mreze\n n = 30;\n\n //pozicije\n u = new double[n][n];\n\n //hitrosti\n v = new double[n][n];\n\n //utezi\n w = new double[n][n];\n\n //zacetni pogoji za u in v\n //definiraj custom\n v[n / 2][n / 2] = - 0.1;\n u[n/2][n/2] = 1;\n //v[2*n/3][2*n/3] = 0.5;\n \n\n //hitrost valovanja\n c = 0.1;\n\n //faktor dusenja\n k = 0.001;\n\n //razlike med tockami\n h = 0.2;\n\n //pogoj za rob\n edgeCondition = 0.0;\n \n //ali animacija tece\n animating = false;\n \n currentTime = System.currentTimeMillis();\n }", "@Test\n public void addEchoSinWave() {\n int freq1;\n int freq2;\n int freq3;\n\n double[] zeros = {0, 0, 0};\n\n\n for (int i = 1; i < 10; i += 2) {\n int freq = i * 100;\n\n SoundWave wave2 = new SoundWave(zeros, zeros);\n\n SoundWave wave1 = new SoundWave(freq, 0, 0.5, 0.1);\n wave2.append(new SoundWave(freq, 0, 0.25, 0.1));\n SoundWave waveEcho = wave1.addEcho(3, 0.5);\n SoundWave waveAdd = wave1.add(wave2);\n\n Assert.assertArrayEquals(waveEcho.getRightChannel(),\n waveAdd.getRightChannel(), 0.00001);\n }\n }", "@Test\n public void testMediaMovelSimples() {\n System.out.println(\"MediaMovelSimples\");\n int[] energia = null;\n int linhas = 0;\n double n = 0;\n Double[] expResult = null;\n Double[] resultArray = null;\n double[] result = ProjetoV1.MediaMovelSimples(energia, linhas, n);\n if (resultArray != null) {\n resultArray = ArrayUtils.converterParaArrayDouble(result);\n }\n assertArrayEquals(expResult, resultArray);\n\n }", "public static int playNormalWar(float[] blockWeightNaomi, float[] blockWeightKen, int count)\n\t{\n\t\tint indexNaomi = 0;\n\t\tint indexKen = 0;\n\n\t\twhile (indexNaomi < count && indexKen < count)\n\t\t{\n\t\t\tfloat currWeightNaomi = blockWeightNaomi[indexNaomi];\n\t\t\tfloat currWeightKen = blockWeightKen[indexKen];\n\t\t\tboolean isNaomiValueGreater = currWeightNaomi > currWeightKen;\n\t\t\tif (isNaomiValueGreater)\n\t\t\t\tindexKen++;\n\t\t\telse\n\t\t\t{\n\t\t\t\tindexKen++;\n\t\t\t\tindexNaomi++;\n\t\t\t}\n\t\t}\n\t\treturn count - indexNaomi;\n\t}", "float getW();", "public int getEncPosition() {\n //System.out.println(this.EncX.getRaw() + \"raw\");\n return (int) (1000 * this.EncX.getDistance());\n //return (int)(1000 * this.EncX.getRaw() / 8.6);\n \n }", "public double masse () {return this.volume()*this.element.masseVolumique();}", "@Override\n public void setup() {\n this.savePath(\".\");\n Minim minim = new Minim(this);\n\n //Charger la chanson\n song = minim.loadFile(\"song.mp3\");\n //Créer l'objet FFT pour analyser la chanson\n fft = new FFT(song.bufferSize(), song.sampleRate());\n\n //Un cube par bande de fréquence\n nbCubes = (int) (fft.specSize() * specHi);\n cubes = new Cube[nbCubes];\n\n //Autant de murs qu'on veux\n murs = new Mur[nbMurs];\n\n //Créer tous les objets\n //Créer les objets cubes\n for (int i = 0; i < nbCubes; i++) {\n cubes[i] = new Cube(this);\n }\n\n //Créer les objets murs\n //Murs gauches\n for (int i = 0; i < nbMurs; i += 4) {\n murs[i] = new Mur(0, height / 2f, 10, height, this);\n }\n\n //Murs droits\n for (int i = 1; i < nbMurs; i += 4) {\n murs[i] = new Mur(width, height / 2f, 10, height, this);\n }\n\n //Murs bas\n for (int i = 2; i < nbMurs; i += 4) {\n murs[i] = new Mur(width / 2f, height, width, 10, this);\n }\n\n //Murs haut\n for (int i = 3; i < nbMurs; i += 4) {\n murs[i] = new Mur(width / 2f, 0, width, 10, this);\n }\n\n //Fond noir\n\n //Commencer la chanson\n// song.play(0);\n }", "private void calculateMediem(){\r\n int mediemNum = accountInTotal/2;\r\n Account mediemAccount = theAccounts.get(mediemNum);\r\n System.out.println(mediemAccount.toString());\r\n }", "@Override\n\tpublic void finMusica() {\n\t}", "public abstract void newSpeechNoise(long ms, int n);", "public float getWavelength() {\n/* 52 */ return this.wavelength;\n/* */ }", "private boolean consumeMedia(int index) {\n synchronized (streamSpec.getAudioMedias()) {\n if (!streamSpec.getAudioMedias().isEmpty()) {\n streamSpec.getAudioMedias().remove(index);\n return true;\n }\n return false;\n }\n }", "public static double getMedian()\n {\n // add your code here\n if(s.size()==g.size()){\n return (double) ((s.peek()+g.peek())/2);\n }\n else if(s.size() > g.size()) {\n return (double) s.peek();\n }\n else {\n return (double) g.peek();\n }\n }", "@Override\n public void onMediaClicked(int position) {\n }", "AudioProcessor[] mo25073a();", "public static ArrayList<Double> generate(int n1, int n2, int ton, int phrase) throws MidiUnavailableException, InterruptedException, InvalidMidiDataException, IOException {\n Synthesizer synth = MidiSystem.getSynthesizer();\n synth.open();\n final MidiChannel[] channels = synth.getChannels();\n ArrayList<Double> normalizedResult=new ArrayList<>();\n\n int fn=n1,sn=n2,nn,tr;\n Sequence seq= new Sequence(Sequence.PPQ,10,2);\n Track track=seq.getTracks()[0];\n Track track2=seq.getTracks()[1];\n\n for(int i=0;i<phrase;i++)\n {\n nn=Weights.nextNote(fn,sn);\n\n channels[0].noteOn(nn+ton,127);\n //tr=nn+4;\n //if(Math.random()<0.5) channels[0].noteOn(tr+ton,127);\n //channels[0].noteOn(tr+3+ton,127);\n //if(Math.random()<0.2) channels[0].noteOn(tr+8+ton,127);\n\n ShortMessage sm=new ShortMessage();\n sm.setMessage(ShortMessage.NOTE_ON,nn,100);\n track.add(new MidiEvent(sm,i*4));sm=new ShortMessage();\n sm.setMessage(ShortMessage.NOTE_ON,nn+3,90);\n track.add(new MidiEvent(sm,i*4));\n\n\n\n if(i%2==0) {\n Thread.sleep(350);\n }\n else {\n Thread.sleep(150);\n }\n\n normalizedResult.add(1./nn);\n\n\n channels[0].noteOff(nn+ton);\n //channels[0].noteOff(tr+ton);\n //channels[0].noteOff(tr+3+ton);\n //channels[0].noteOff(tr+8+ton);\n fn=sn;\n sn=nn;\n }\n\n MidiSystem.write(seq, 1,new File(\"src/sample/result.mid\"));\n System.out.println(\"GG end\");\n return normalizedResult;\n }", "public float getW(int pos){\r\n if (pos==1) {\r\n return w1;\r\n } else if (pos==2) {\r\n return w2;\r\n } else return w3;\r\n }", "public double getWxInc() { return extents.getWidth() /getMyWidth(); }", "double Volume(){\r\n return Height * Width * Depth;\r\n }", "public Wave classify(Integer pos) {\n\t\t\tfor(int w = 0; w < waves.size(); w++){\n\t\t\t\t\n\t\t\t\tSystem.out.println(pos + \" \" + Math.round(((waves.get(w).getStart() * gapSize) + min))\n\t\t\t\t\t\t+ \" \" + Math.round(((waves.get(w).getEnd() * gapSize) + min))\n\t\t\t\t\t\t+ \" \" + gapSize + \" \" + min);\n\t\t\t\t//System.out.println(pos + \" \" + waves.get(w).getEnd());\n\t\t\t\tif(pos <= Math.round(((waves.get(w).getEnd() * gapSize) + min))){\n\t\t\t\t//if(pos <= waves.get(w).getEnd()){\n\t\t\t\t\t//System.out.println(w);\n\t\t\t\t\treturn waves.get(w);\n\t\t\t\t}\n\t\t\t}\n\t\t\tSystem.out.println(\"Ret null: \" + pos + \" waves size: \" + waves.size());\n\t\t\treturn null;\n\t\t}", "public int getValoracionMedia(){\n return valoracionMedia;\n }", "@Ignore\n\t@Test\n\tpublic void testaMediaDeZeroLance() {\n\t\tLeilao leilao = new Leilao(\"Iphone 7\");\n\n//\t\tcriaAvaliador();\n\t\tleiloeiro.avalia(leilao);\n\n\t\t// validacao\n\t\tassertEquals(0, leiloeiro.getValorMedio(), 0.0001);\n\t}", "M generateNoise();", "public int getPoseDuration(){ return poseDuration;}", "protected void calculateMark() {\n //\t\tavemoisturelevel=avemoisturelevel+.5;\n //\t\tmProgressbar.setProgress((int) avemoisturelevel);\n \t\t\n \t\t//For SIMULATION ONLY REMOVE THIS CODE\n \n \t\t\n \t\tif(maxedmoisturelevel<avemoisturelevel){\n \t\tmaxedmoisturelevel=(int) avemoisturelevel;\n \t\t}\n \t\tint tonenum= (int) (avemoisturelevel/10);\n //\t\ttonegen.startTone(tonenum,100);\n //\t\taudioTrack.setPlaybackRate(sampleRate/2);\n //\t\taudioTrack.play();\n \t\tsoundPool.setRate(currentstreamID, (float) (.5+1.5*avemoisturelevel/100));\n \t\n \t\t\n \t}", "int sampleOffset();", "private int findZero(){\r\n\t\t// configure stuff\r\n\t\tint channelConfiguration = AudioFormat.CHANNEL_CONFIGURATION_MONO;\r\n\t\tint audioEncoding = AudioFormat.ENCODING_PCM_16BIT;\r\n\t\tint bufferSize = AudioRecord.getMinBufferSize(FREQUENCY, channelConfiguration, audioEncoding);\r\n\t\tAudioRecord audioRecord = new AudioRecord(MediaRecorder.AudioSource.MIC, FREQUENCY, channelConfiguration,audioEncoding, bufferSize);\r\n\r\n\t\tshort[] buffer = new short[bufferSize];\r\n\t\taudioRecord.startRecording();\r\n\t\tint bufferReadResult = audioRecord.read(buffer, 0, bufferSize);\r\n\t\taudioRecord.stop();\r\n\t\tint sum = 0;\r\n\t\tfor (int b = bufferReadResult * (2/3); b < bufferReadResult; b++) {\r\n\t\t\tsum += buffer[b];\r\n\t\t}\r\n\t\tif (bufferReadResult == 0){\r\n\t\t\treturn this.offset;\r\n\t\t}\r\n\t\t\r\n\t\treturn -1*(sum/bufferReadResult);\r\n\t}", "public float normalizeAileron(float x) {\n return (x-((this.beginWid +this.endWid)/2))/((this.endWid-this.beginWid)/2);\n }", "private static void analyzeFrame(short[] src, int offsetSrc, float[] dst, int offsetDst, int count, float[] window)\n\t{\n\t\tif (count == 0) return;\n\n\t\tfor (int i = 0; i < count; i++)\n\t\t{\n\t\t\t// Get and normalize source value\n\t\t\tfloat value = (float) src[i + offsetSrc] / 32767F;\n\t\t\tvalue = min(1F, max(-1F, value));\n\n\t\t\t// Multiply with window coefficient\n\t\t\tvalue *= window[i + offsetDst];\n\n\t\t\t// Copy it to destination array\n\t\t\tdst[i + offsetDst] = value;\n\t\t}\n\t}", "private void Scale()\n {\n Song scale = new Song();\n scale.add(new Note(noteA1,WHOLE_NOTE/2));\n scale.add(new Note(noteBB1,WHOLE_NOTE/2));\n scale.add(new Note(noteB1,WHOLE_NOTE/2));\n scale.add(new Note(noteC1,WHOLE_NOTE/2));\n scale.add(new Note(noteCS1,WHOLE_NOTE/2));\n scale.add(new Note(noteD1,WHOLE_NOTE/2));\n scale.add(new Note(noteDS1,WHOLE_NOTE/2));\n scale.add(new Note(noteE1,WHOLE_NOTE/2));\n scale.add(new Note(noteF1,WHOLE_NOTE/2));\n scale.add(new Note(noteFS1,WHOLE_NOTE/2));\n scale.add(new Note(noteG1,WHOLE_NOTE/2));\n scale.add(new Note(noteGS1,WHOLE_NOTE/2));\n\n\n playSong(scale);\n }", "public float getW1 () {\r\n return w1;\r\n }", "public int getMpen(){\n\t\treturn mpen;\n\t}", "double getStartW();", "public double getPauseBetweenMIDISends() \n {\n return 0.0;\n }", "private void createMedia(Code32 code, int op, int cond, int Rd, int Rn, int lsb, int width) {\r\n\t\tcode.instructions[code.iCount] = (cond << 28) | op | ((width-1) << 16) | (Rd << 12) | (lsb << 7) | Rn;\r\n\t\tcode.incInstructionNum();\r\n\t}", "double volume(){\n\n return widgh*height*depth;\n\n }", "public float getMicGainDb();", "public interface Wave {\n\n /**\n * Get the next single, unformatted sample and return it as a double.\n *\n * <p>The next call to any of the get or insert methods will return samples\n * following the samples returned by this call.\n *\n * @return the next unformatted sample\n */\n public double getNextRawSample();\n\n /**\n * <p>Get the next (single) sample and store it at the given offset\n * in the supplied buffer.\n *\n * <p>The next call to any of the get or insert methods will return samples\n * following the samples returned by this call.\n *\n * @param buffer to put the sample in\n * @param byteOffset starting index for the sample\n *\n * @throws IndexOutOfBoundsException if the sample extends past the\n * end of the buffer\n */\n public void insertNextSample( byte[] buffer, int byteOffset );\n\n /**\n * <p>Get the next specified number of unformatted samples from the wave\n * and store them in the supplied double array at the given offset.\n *\n * <p>The next call to any of the get or insert methods will return samples\n * following the samples returned by this call.\n *\n * @param rawBuffer storage for the unformatted samples\n * @param offset starting index for the samples\n * @param nSamples number of samples to provide\n *\n * @throws IndexOutOfBoundsException if the samples would extend past the\n * end of the buffer\n */\n public void getNextRawSamples( double[] rawBuffer, int offset, int nSamples )\n throws IndexOutOfBoundsException;\n\n /**\n * <p>Fill the supplied buffer with unformatted samples from the wave.\n *\n * <p>The next call to any of the get or insert methods will return samples\n * following the samples returned by this call.\n *\n * @param rawBuffer buffer to fill\n */\n public void getNextRawSamples( double[] rawBuffer );\n\n /**\n * <p>Get the next specified number of samples (note: samples, not bytes)\n * from the wave, format them, and store them in the supplied byte array at\n * the given offset.\n *\n * <p>The starting offset is in bytes, and there is no requirement that the\n * offset be aligned on a sampleBytes boundary, nor that the buffer length\n * be an integral number of samples, as the caller may have other information\n * stored in the buffer (e.g. a header for the audio format). For the same\n * reason, this does not wrap if the number of samples will not fit in the\n * tail of the buffer.\n *\n * <p>The next call to any of the get or insert methods will return samples\n * following the samples returned by this call.\n *\n * @param buffer storage for the samples\n * @param byteOffset starting index in buffer at which to store the\n * samples\n * @param nSamples number of samples to insert\n *\n * @throws IndexOutOfBoundsException if the samples would extend past the\n * end of the buffer\n */\n public void insertNextSamples( byte[] buffer, int byteOffset, int nSamples )\n throws IndexOutOfBoundsException;\n\n /**\n * <p>Get the next specified number of bytes worth of samples, format the\n * samples, and store them in the supplied byte array at the given offset.\n * If the number of bytes is not a multiple of the sample size, the number\n * of bytes provided will be rounded down to the nearest whole sample.\n * (This is for the benefit of callers that don't know about the audio format,\n * mainly MockTargetDataLine.)\n *\n * <p>The starting offset is in bytes, and there is no requirement that the\n * offset be aligned on a sampleBytes boundary, nor that the buffer length\n * be an integral number of samples, as the caller may have other information\n * stored in the buffer (e.g. a header for the audio format). For the same\n * reason, this does not wrap if the number of samples will not fit in the\n * tail of the buffer.\n *\n * <p>The next call to any of the get or insert methods will return samples\n * following the samples returned by this call.\n *\n * @param buffer storage for the samples\n * @param byteOffset starting index in buffer at which to store the\n * samples\n * @param nBytes number of bytes to insert\n */\n public void insertNextBytes( byte[] buffer, int byteOffset, int nBytes )\n throws IndexOutOfBoundsException;\n\n /**\n * <p>Fill the supplied buffer with formatted samples from the wave.\n * \n * <p>This version of insertNextSamples is not intended for buffers that\n * include non-sample data such as headers, as it will insert samples\n * starting at index 0. Instead, use\n * {@link insertNextSamples(byte[], int, int)}.\n *\n * <p>If the buffer is not an integral multiple of the sample size, this\n * will fill in as many samples as it can, leaving the remaining bytes\n * unmodified.\n *\n * <p>The next call to any of the get or insert methods will return samples\n * following the samples returned by this call.\n * \n * @param buffer storage for samples\n * \n * @throws IllegalArgumentException if the buffer size is not an integral\n * multiple of the audio format's sample size\n */\n public void insertNextSamples( byte[] buffer )\n throws IllegalArgumentException;\n\n /**\n * Reset phase for next sample to originally-specified initial phase(s).\n */\n public void resetPhase();\n}", "float getW() {\n return _w;\n }", "private void aretes_aW(){\n\t\tthis.cube[4] = this.cube[16]; \n\t\tthis.cube[16] = this.cube[23];\n\t\tthis.cube[23] = this.cube[37];\n\t\tthis.cube[37] = this.cube[30];\n\t\tthis.cube[30] = this.cube[4];\n\t}", "public QualityMeasures getQualityMeasures (int pos, String nFile) {\r\n return poblac.getMedidas(pos, nFile);\r\n }", "double volume(){\n return width*height*depth;\n }", "public int getWaveformIndex() {\n\t\treturn waveformIndex;\n\t}", "private BigInteger divideWords(int w)\n {\n int n = magnitude.length;\n if (w >= n)\n {\n return ZERO;\n }\n int[] mag = new int[n - w];\n System.arraycopy(magnitude, 0, mag, 0, n - w);\n return new BigInteger(sign, mag);\n }", "public static Double media(ListaVinculada<Double> coleccion){\n Double media = sumarColeccion(coleccion) /(double) coleccion.size();\n return media;\n }", "public static double getWaveform(int type, int offs)\n\t{\n\t\treturn -Math.sin((offs&255)*Math.PI/128.0);\n\t}", "public ImagePlus morph(ImagePlus imp_old,int proc, int rad){\nImageProcessor img = imp_old.getProcessor();\nImagePlus morphImg;\nif (proc==0){\nImageProcessor dil = Morphology.dilation(img,Strel.Shape.OCTAGON.fromDiameter(rad));\nmorphImg = new ImagePlus(\"dilation\",dil);\nmorphImg.updateAndDraw();\nreturn morphImg;\n} else if (proc==1){\nImageProcessor dil = Morphology.erosion(img,Strel.Shape.OCTAGON.fromDiameter(rad));\nmorphImg = new ImagePlus(\"erosion\",dil);\nmorphImg.updateAndDraw();\nreturn morphImg;\n} else{\nImageProcessor dil = Morphology.closing(img,Strel.Shape.OCTAGON.fromDiameter(rad));\nmorphImg = new ImagePlus(\"closing\",dil);\nmorphImg.updateAndDraw();\nreturn morphImg;\n}\n}", "public MediaVO sample(int idx) {\n\t\tif (idx >= samples.size()) {\n\t\t\treturn null;\n\t\t}\n\t\t\n\t\treturn samples.get(idx);\n\t}", "Wave(float a, int xspace, int w_, float p_) {\n amplitude = a;\n xspacing = xspace;\n w = w_;\n period = p_;\n dx = (1.0f / period) * xspacing;\n yvalues = new float[w/xspacing]; //note declaring the array here forces us to have fixed size wave\n //we would need to redeclare it if we ever change those values\n }", "public void run() {\n\t RecordApplication app = ((RecordApplication)getApplicationContext());\n\t \t\t mWaveformView = app.mDisplayView;\n\t \t\t float x = mWaveformView.getMeasuredWidth()>>1;\n\t \t\t float y = app.getLogoButton().getY()+ (app.getLogoButton().getHeight()/2);\n\t \t\t mWaveformView.stampSound(x, y-25);\n\t }", "public void saveMediaRelation(MediaRelation mediarelation_1);", "@Override\n public void draw() {\n if (!song.isPlaying()) {\n song.play(0);\n }\n fft.forward(song.mix);\n final float volume = song.getGain();\n\n //Calcul des \"scores\" (puissance) pour trois catégories de son\n //D'abord, sauvgarder les anciennes valeurs\n // Valeur précédentes, pour adoucir la reduction\n float oldScoreLow = scoreLow;\n float oldScoreMid = scoreMid;\n float oldScoreHi = scoreHi;\n\n //Réinitialiser les valeurs\n scoreLow = 0;\n scoreMid = 0;\n scoreHi = 0;\n\n //Calculer les nouveaux \"scores\"\n // Variables qui définissent les \"zones\" du spectre\n // Par exemple, pour les basses, on prend seulement les premières 4% du spectre total\n // 3%\n float specLow = 0.03f;\n for (int i = 0; i < fft.specSize() * specLow; i++) {\n scoreLow += fft.getBand(i);\n }\n\n // 12.5%\n float specMid = 0.125f;\n for (int i = (int) (fft.specSize() * specLow); i < fft.specSize() * specMid; i++) {\n scoreMid += fft.getBand(i);\n }\n\n for (int i = (int) (fft.specSize() * specMid); i < fft.specSize() * specHi; i++) {\n scoreHi += fft.getBand(i);\n }\n\n\n //Faire ralentir la descente.\n // Valeur d'adoucissement\n float scoreDecreaseRate = 25;\n if (oldScoreLow > scoreLow) {\n scoreLow = oldScoreLow - scoreDecreaseRate;\n }\n\n if (oldScoreMid > scoreMid) {\n scoreMid = oldScoreMid - scoreDecreaseRate;\n }\n\n if (oldScoreHi > scoreHi) {\n scoreHi = oldScoreHi - scoreDecreaseRate;\n }\n\n //Volume pour toutes les fréquences à ce moment, avec les sons plus haut plus importants.\n //Cela permet à l'animation d'aller plus vite pour les sons plus aigus, qu'on remarque plus\n float scoreGlobal = 0.66f * scoreLow + 0.8f * scoreMid + 1 * scoreHi;\n\n //Couleur subtile de background\n background(scoreLow / 100, scoreMid / 100, scoreHi / 100);\n\n //Cube pour chaque bande de fréquence\n for (int i = 0; i < nbCubes; i++) {\n //Valeur de la bande de fréquence\n float bandValue = fft.getBand(i);\n\n //La couleur est représentée ainsi: rouge pour les basses, vert pour les sons moyens et bleu pour les hautes.\n //L'opacité est déterminée par le volume de la bande et le volume global.\n cubes[i].display(scoreLow, scoreMid, scoreHi, bandValue, scoreGlobal);\n }\n\n //Murs lignes, ici il faut garder la valeur de la bande précédent et la suivante pour les connecter ensemble\n float previousBandValue = fft.getBand(0);\n\n //Distance entre chaque point de ligne, négatif car sur la dimension z\n float dist = -25;\n\n //Multiplier la hauteur par cette constante\n float heightMult = 2;\n\n //Pour chaque bande\n for (int i = 1; i < fft.specSize(); i++) {\n //Valeur de la bande de fréquence, on multiplie les bandes plus loins pour qu'elles soient plus visibles.\n float bandValue = fft.getBand(i) * (1 + (i / 50f));\n\n //Selection de la couleur en fonction des forces des différents types de sons\n stroke(100 + scoreLow, 100 + scoreMid, 100 + scoreHi, 255 - i);\n strokeWeight(1 + (scoreGlobal / 100));\n\n //ligne inferieure gauche\n line(0, height - (previousBandValue * heightMult), dist * (i - 1), 0, height - (bandValue * heightMult), dist * i);\n line((previousBandValue * heightMult), height, dist * (i - 1), (bandValue * heightMult), height, dist * i);\n line(0, height - (previousBandValue * heightMult), dist * (i - 1), (bandValue * heightMult), height, dist * i);\n\n //ligne superieure gauche\n line(0, (previousBandValue * heightMult), dist * (i - 1), 0, (bandValue * heightMult), dist * i);\n line((previousBandValue * heightMult), 0, dist * (i - 1), (bandValue * heightMult), 0, dist * i);\n line(0, (previousBandValue * heightMult), dist * (i - 1), (bandValue * heightMult), 0, dist * i);\n\n //ligne inferieure droite\n line(width, height - (previousBandValue * heightMult), dist * (i - 1), width, height - (bandValue * heightMult), dist * i);\n line(width - (previousBandValue * heightMult), height, dist * (i - 1), width - (bandValue * heightMult), height, dist * i);\n line(width, height - (previousBandValue * heightMult), dist * (i - 1), width - (bandValue * heightMult), height, dist * i);\n\n //ligne superieure droite\n line(width, (previousBandValue * heightMult), dist * (i - 1), width, (bandValue * heightMult), dist * i);\n line(width - (previousBandValue * heightMult), 0, dist * (i - 1), width - (bandValue * heightMult), 0, dist * i);\n line(width, (previousBandValue * heightMult), dist * (i - 1), width - (bandValue * heightMult), 0, dist * i);\n\n //Sauvegarder la valeur pour le prochain tour de boucle\n previousBandValue = bandValue;\n }\n\n //Murs rectangles\n for (int i = 0; i < nbMurs; i++) {\n //On assigne à chaque mur une bande, et on lui envoie sa force.\n float intensity = fft.getBand(i % ((int) (fft.specSize() * specHi)));\n murs[i].display(scoreLow, scoreMid, scoreHi, intensity, scoreGlobal);\n }\n }", "public double getPosition(double value) {\n return getRelPosition(value) * (size - nanW - negW - posW) + (min < max ? negW : posW);\n }", "static double mediaAritmetica (double c, int e, int f) {\n return (c+e+f)/3;\n }", "public int getMediaCount() {\n return mediaCount_;\n }", "public static void main(String[] args) {\n do {\n nombre = JOptionPane.showInputDialog(null, \"Introduce el nombre del alumno\");\n notas = 0;\n for (double i = 0; i < 6; i++) {\n nota = Double.parseDouble(JOptionPane.showInputDialog(\"Introduce la nota\"));\n notas += nota;\n \n }\n seguir = JOptionPane.showInputDialog(\"Quieres seguir introduciendo notas de alumnos?(Si quieres parar introduce fin)\");\n contador = contador + 1;\n medias(notas);\n \n } while (!seguir.equalsIgnoreCase(\"fin\"));\n mediasTotales = mediasTotales / contador;\n \n JOptionPane.showMessageDialog(null, \"Esta es la nota media de todos los alumnos: \" + mediasTotales);\n }", "public Integer mo13274m() {\n DmcVideoMeta dmcVideoMeta = this.f9144g0;\n if (dmcVideoMeta != null) {\n UserMediaMeta X = dmcVideoMeta.mo13065X();\n if (X != null) {\n return X.mo13235m();\n }\n }\n return null;\n }", "public int getWaveAplitude(){\n\t\tint ret = (command[4]&0x00FF);\n\t\treturn ret;\n\t}", "public static double millimetersOfMercuryToAtmosphere(double num) { return (num/760); }", "public abstract void newSpeechElements(long ms, int n);", "private int melodyHelper(ArrayList<Integer> melody, int[] scale, int i) {\n int target = melody.get(i);\n int track = 0;\n while (target < 0) {\n target += scale.length - 1;\n track--; \n }\n while (target >= scale.length - 1) {\n target -= scale.length - 1;\n track++;\n }\n return scale[target] + track * 12;\n }", "public void MedianFinder() {\n lowerPart = new PriorityQueue<>((a, b) -> (b - a));\n higherPart = new PriorityQueue<>();\n count = 0;\n }", "@DISPID(1093) //= 0x445. The runtime will prefer the VTID if present\n @VTID(13)\n void media(\n java.lang.String p);", "private void analyzePitch(java.util.List<Double> samples) {\n \r\n if(samples.isEmpty()) return;\r\n if(samples.size()<=SAMPLE_RATE*MIN_SAMPLE_LENGTH_MS/1000) {\r\n //System.err.println(\"samples too short: \"+samples.size());\r\n return;\r\n }\r\n final Sound pitchSound=Sound.Sound_createSimple(\r\n 1, (double)samples.size() / SAMPLE_RATE, SAMPLE_RATE);\r\n for(int i=1; i < pitchSound.z[1].length; i++) {\r\n pitchSound.z[1][i]=samples.get(i - 1);\r\n }\r\n \r\n final SoundEditor editor=SoundEditor.SoundEditor_create(\"\", pitchSound);\r\n editor.pitch.floor=settings.floor;\r\n editor.pitch.ceiling=settings.ceiling;\r\n //editor.pitch.veryAccurate=1;\r\n \r\n if(DEBUG) System.err.print(\"analyzing \"+samples.size()+\" samples(\"\r\n +editor.pitch.floor+\"-\"+editor.pitch.ceiling+\")...\");\r\n final long start=System.nanoTime();\r\n try {\r\n editor.computePitch();\r\n } catch(Exception e) {\r\n e.printStackTrace();\r\n return;\r\n }\r\n if(DEBUG) System.err.println(\"complete in \"+(System.nanoTime()-start)/1000000.0+\"ms.\");\r\n \r\n \r\n //[ compute average pitch\r\n final java.util.List<Double> pitches=editor.getPitchesInFrequency();\r\n \r\n// diagram.clearData();\r\n// for(double s: pitches) {\r\n// diagram.addData((float)s); \r\n// }\r\n// diagram.setMaximum(500);\r\n// diagram.repaint();\r\n// \r\n double freqSum=0;\r\n int pitchCount=0;\r\n for(double p : pitches) {\r\n if(Double.isNaN(p) || p<=0) continue;\r\n freqSum+=p;\r\n pitchCount++;\r\n }\r\n final double averageFreq=freqSum/pitchCount; \r\n if(Double.isNaN(averageFreq)) {\r\n if(DEBUG) System.err.println(\"can't recognize.\");\r\n return;\r\n }\r\n//System.err.println(averageFreq); \r\n \r\n //[ compute length\r\n final double lengthMs=samples.size()*1000.0/SAMPLE_RATE;\r\n \r\n SwingUtilities.invokeLater(new Runnable() { //>>> not good\r\n public void run() {\r\n for(PitchListener lis: freqListener) {\r\n lis.gotPitch(averageFreq, lengthMs); //notify listeners\r\n }\r\n }\r\n });\r\n \r\n//System.err.println(\"add \"+ DumpReceiver.getKeyName((int) averagePitch));\r\n }", "public int getSoundIndex() \n\t{\n\treturn fSoundIndex;\n\t}", "public void llamarMusicos(int numMusicos){\r\n\t\tString auxNota=this.getNotaRand();\r\n\t\tintegrante=new ArrayList<Musico>();\r\n\t\tfor(int i=0;i<numMusicos;i++){\r\n\t\t\tthis.contratar_musicos(new Musico(i), insParalabanda.get((int) (new Random().nextDouble()* insParalabanda.size()) ));\r\n\t\t\tintegrante.get(i).getMiInstrumento().afinar(auxNota);\r\n\t\t}\r\n\t}", "public int mediansMod(int mod) {\n int sum = 0;\n for (int mid : medians) {\n sum += mid;\n }\n return sum % mod;\n }", "public boolean pedirMus(Jugador j);", "void note(float start, float duration, float freq){\n\t out.playNote(start,duration,freq); \n\t }", "float getPostGain();", "private static native void weightedMedianFilter_0(long joint_nativeObj, long src_nativeObj, long dst_nativeObj, int r, double sigma, int weightType, long mask_nativeObj);", "public float getMediaVoti() {\r\n\t\treturn mediaVoti;\r\n\t}", "public PVector getWristRawPosition(){\n\t\treturn this.leap.convert(this.arm.wristPosition());\n\t}", "public String GetMediaTitle() {\n\t\treturn mediatitle;\n\t}", "C9072a0 mo23486a(MediaPeriodId mediaPeriodId, C9491f fVar, long j);", "private void prepareNextWave()\n\t{\n\t\t// start the waveDelay timer\n\t\tfloat delay = currentWave.getNextWaveDelay();\n\t\twaveTimer.start(delay);\n\t\t\n\t\t// remove the wave from the list\n\t\twaveList.remove();\n\t\t\n\t\t// update current wave\n\t\tcurrentWave = waveList.peek();\n\t\t\n\t\t// reset spawns to 0\n\t\tthis.spawnCurrent = 0;\n\t}", "public static Integer media(List<Integer> numeros) {\r\n Integer quantidade = numeros.size();\r\n Integer valorT = 0;\r\n for (int i = 0; i < numeros.size(); i++) {\r\n valorT = valorT + numeros.get(i);\r\n }\r\n Integer calculo = valorT / quantidade;\r\n return calculo;\r\n }", "public int mo23325w() {\n return ((Integer) this.f13965a.mo23249a(C7196pb.f13732Nc)).intValue();\n }", "public int mo25006a() {\n int i = this.f16512l;\n if (i == -1) {\n return -1;\n }\n int i2 = this.f16513m;\n if (i2 == -1) {\n return -1;\n }\n return i * i2;\n }", "gov.nih.nlm.ncbi.www.MedlineSiDocument.MedlineSi getMedlineSi();", "public List<Media> getMedias()\n\t\t{\n\t\t\treturn mediasList;\n\t\t}", "@Test\n public void testMediaPesada() {\n System.out.println(\"mediaPesada\");\n int[] energia = null;\n int linhas = 0;\n double nAlpha = 0;\n Double[] expResult = null;\n Double[] resultArray = null;\n double[] result = ProjetoV1.mediaPesada(energia, linhas, nAlpha);\n if (result != null) {\n resultArray = ArrayUtils.converterParaArrayDouble(result);\n }\n\n assertArrayEquals(expResult, resultArray);\n\n }", "@Test\n public void testMediaGlobal() {\n System.out.println(\"mediaGlobal\");\n int[] serieTemp = new int[1];\n int qtdlinhas = 1;\n double expResult = 0.0;\n double result = ProjetoV1.mediaGlobal(serieTemp, qtdlinhas);\n assertEquals(expResult, result, 0.0);\n\n }", "static void afinar(Instrument1 i) { i.play(Note.MIDDLE_C); }" ]
[ "0.6021696", "0.5814011", "0.57578206", "0.5601257", "0.55668783", "0.5482884", "0.5324553", "0.5312054", "0.52519697", "0.5210362", "0.51483715", "0.51305354", "0.5087691", "0.5070968", "0.50477964", "0.504465", "0.5031118", "0.5028696", "0.5002101", "0.49869645", "0.49684903", "0.4941715", "0.4929324", "0.49269474", "0.4901063", "0.48962194", "0.4895511", "0.48953938", "0.48874655", "0.4884806", "0.48785028", "0.48747733", "0.4868149", "0.48600724", "0.4848695", "0.4837745", "0.48119152", "0.47751936", "0.47725177", "0.47718626", "0.4754953", "0.4751082", "0.47496268", "0.4733627", "0.47316396", "0.47263154", "0.47221756", "0.472068", "0.4720422", "0.4716215", "0.47074434", "0.4697478", "0.46873218", "0.46827245", "0.46791255", "0.46762863", "0.46655697", "0.46545264", "0.46526626", "0.46516842", "0.46498308", "0.46495315", "0.46491015", "0.46453103", "0.46419", "0.46343786", "0.46334487", "0.4629456", "0.46285185", "0.46180844", "0.46141425", "0.4613858", "0.46131688", "0.46118283", "0.46086636", "0.4607343", "0.46047923", "0.46040323", "0.45997536", "0.45912552", "0.45831007", "0.45808932", "0.45771396", "0.4576631", "0.45736453", "0.45708793", "0.45613763", "0.4546096", "0.45448986", "0.4544437", "0.45431006", "0.45389605", "0.45346487", "0.4533719", "0.45293987", "0.45256373", "0.4523962", "0.45217827", "0.45217237", "0.45211855", "0.45186612" ]
0.0
-1
Called when a drawer has settled in a completely closed state.
public void onDrawerClosed(View view) { super.onDrawerClosed(view); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void onDrawerClosed(View view) {\n }", "public void onDrawerClosed(View view) {\n super.onDrawerClosed(view);\n Log.d(TAG, \"onDrawerClosed\");\n }", "@Override\n public void onDrawerClosed(View drawerView) {\n }", "public void onDrawerClosed(View view) {\n super.onDrawerClosed(view);\n }", "public void onDrawerClosed(View view) {\n super.onDrawerClosed(view);\n }", "@Override\n public void onDrawerClosed(View drawerView) {\n }", "@Override\n public void onDrawerClosed(View drawerView) {\n }", "public void onDrawerClosed(View view) {\n super.onDrawerClosed(view);\n // Do whatever you want here\n }", "@Override\n public void onDrawerClosed(View drawerView) {\n super.onDrawerClosed(drawerView);\n }", "@Override\n public void onDrawerClosed(View drawerView) {\n super.onDrawerClosed(drawerView);\n }", "@Override\n public void onDrawerClosed(View drawerView) {\n super.onDrawerClosed(drawerView);\n }", "@Override\n public void onDrawerClosed(View drawerView) {\n super.onDrawerClosed(drawerView);\n }", "@Override\n public void onDrawerClosed(View drawerView) {\n super.onDrawerClosed(drawerView);\n }", "@Override\n public void onDrawerClosed(View drawerView) {\n super.onDrawerClosed(drawerView);\n }", "@Override\n public void onDrawerClosed(View drawerView) {\n super.onDrawerClosed(drawerView);\n }", "@Override\n public void onDrawerClosed(View drawerView) {\n super.onDrawerClosed(drawerView);\n }", "@Override\n public void onDrawerClosed(View drawerView) {\n super.onDrawerClosed(drawerView);\n }", "@Override\n public void onDrawerClosed(View drawerView) {\n super.onDrawerClosed(drawerView);\n }", "@Override\n public void onDrawerClosed(View drawerView) {\n super.onDrawerClosed(drawerView);\n }", "@Override\n public void onDrawerClosed(View drawerView) {\n super.onDrawerClosed(drawerView);\n }", "@Override\n public void onDrawerClosed(View drawerView) {\n super.onDrawerClosed(drawerView);\n }", "@Override\n public void onDrawerClosed(View drawerView) {\n super.onDrawerClosed(drawerView);\n }", "public void onDrawerClosed(View view) {\n super.onDrawerClosed(view);\n\n }", "public void onDrawerClosed(View drawerView) {\n\n }", "@Override\n\t\t\tpublic void onDrawerClosed() {\n\t\t\t\tshowUp();\n\t\t\t}", "@Override\n public void onDrawerStateChanged(int newState) {\n }", "@Override\n public void onDrawerStateChanged(int newState) {\n }", "@Override\n public void onDrawerStateChanged(int newState) {\n }", "@Override\n public void onDrawerStateChanged(int newState) {\n }", "@Override\n public void onDrawerStateChanged(int newState) {\n }", "@Override\n\tpublic void onSidebarClosed() {\n\t\tLog.d(TAG, \"opened\");\n\t}", "@Override\n\t\t\tpublic void onDrawerClosed() {\n\t\t\t\tlayoutParams = new FrameLayout.LayoutParams(\n\t\t\t\t\t\tLayoutParams.MATCH_PARENT, LayoutParams.MATCH_PARENT);\n\t\t\t\tslidingDrawer.setLayoutParams(layoutParams);\n\t\t\t\tbottomLayout.setVisibility(View.VISIBLE);\n\t\t\t}", "@Override\n public void onDrawerClosed() {\n if (lnr_option_pen.getVisibility() == View.VISIBLE)\n lnr_option_pen.setVisibility(View.GONE);\n\n if (lnr_option_brush.getVisibility() == View.VISIBLE)\n lnr_option_brush.setVisibility(View.GONE);\n\n if (lnr_option_size.getVisibility() == View.VISIBLE)\n lnr_option_size.setVisibility(View.GONE);\n }", "public void onDrawerClosed(View view) {\n getActionBar().setTitle(\"Closed Drawer\");\n }", "public void onDrawerClosed(View view) {\n super.onDrawerClosed(view);\n resumeLocationUpdates();\n invalidateOptionsMenu(); // creates call to onPrepareOptionsMenu()\n }", "@Override\n\t\t\tpublic void onDrawerOpened() {\n\t\t\t\tshowDown();\n\t\t\t}", "public void onDrawerClosed(View view) {\n super.onDrawerClosed(view);\n invalidateOptionsMenu(); // creates call to onPrepareOptionsMenu()\n }", "public void onDrawerClosed(View view) {\n super.onDrawerClosed(view);\n invalidateOptionsMenu(); // creates call to onPrepareOptionsMenu()\n }", "public void onDrawerClosed(View view) {\n super.onDrawerClosed(view);\n invalidateOptionsMenu(); // creates call to onPrepareOptionsMenu()\n }", "public void onDrawerClosed(View view) {\n super.onDrawerClosed(view);\n getActionBar().setTitle(R.string.drawer_close);\n invalidateOptionsMenu(); // creates call to onPrepareOptionsMenu()\n }", "public void onDrawerOpened(View drawerView) {\n super.onDrawerOpened(drawerView);\n handleEvent_onDrawerOpened(drawerView);\n }", "public void onDrawerClosed(View view) {\n super.onDrawerClosed(view);\n //getActionBar().setTitle(mTitle);\n //invalidateOptionsMenu(); // creates call to onPrepareOptionsMenu()\n }", "public void onDrawerClosed(View view) {\n super.onDrawerClosed(view);\n //getActionBar().setTitle(mTitle);\n //invalidateOptionsMenu(); // creates call to onPrepareOptionsMenu()\n }", "public void onDrawerClosed(View view) {\n\t\t\t\tLog.d(TAG, \"nav drawer closed state\");\n\t\t\t\tgetActionBar().setTitle(title);\n\t\t\t\tinvalidateOptionsMenu(); // goes to onPrepareOptionsMenu()\n\t\t\t}", "public void onDrawerClosed(View view) {\n super.onDrawerClosed(view);\n getSupportActionBar().setTitle(\"Stored configurations\");\n invalidateOptionsMenu(); // creates call to onPrepareOptionsMenu()\n }", "public void onDrawerClosed(View view) {\n\t\t\t\t\t invalidateOptionsMenu(); \n\t\t\t\t\t }", "@Override\r\n\t\t\tpublic void onClosed() {\n\t\t\t\t\r\n\t\t\t}", "public void onDrawerClosed(View view) {\n super.onDrawerClosed(view);\n invalidateOptionsMenu();\n }", "public void onDrawerOpened(View drawerView) {\n super.onDrawerOpened(drawerView);\n }", "public void onDrawerOpened(View drawerView) {\n super.onDrawerOpened(drawerView);\n }", "public void onDrawerOpened(View drawerView) {\n super.onDrawerOpened(drawerView);\n }", "public void onDrawerOpened(View drawerView) {\n super.onDrawerOpened(drawerView);\n }", "public void onDrawerClosed(View view) {\r\n super.onDrawerClosed(view);\r\n invalidateOptionsMenu();\r\n }", "public void onDrawerClosed(View view) {\n super.onDrawerClosed(view);\n // getSupportActionBar().setTitle(mTitle);\n\n //invalidateOptionsMenu(); // creates call to onPrepareOptionsMenu()\n }", "public void closeDrawer() {\n final DrawerLayout mDrawerLayout;\n\n mDrawerLayout = (DrawerLayout) findViewById(R.id.drawer_layout);\n\n new Handler().postDelayed(new Runnable() {\n @Override\n public void run() {\n mDrawerLayout.closeDrawer(GravityCompat.START);\n hideAddFeed();\n\n }\n }, 200);\n }", "public void setOnDrawerCloseListener(OnDrawerCloseListener onDrawerCloseListener) {\n/* 209 */ throw new RuntimeException(\"Stub!\");\n/* */ }", "public void onDrawerClosed(View view) {\n super.onDrawerClosed(view);\n getSupportActionBar().setTitle(mTitle);\n invalidateOptionsMenu(); // creates call to onPrepareOptionsMenu()\n }", "public void onDrawerClosed(View view) {\n super.onDrawerClosed(view);\n getSupportActionBar().setTitle(mTitle);\n invalidateOptionsMenu(); // creates call to onPrepareOptionsMenu()\n }", "public void onDrawerClosed(View view) {\n super.onDrawerClosed(view);\n if (actionBar != null) actionBar.setTitle(activityTitle);\n invalidateOptionsMenu(); // creates call to onPrepareOptionsMenu()\n }", "public void onDrawerClosed(View view) {\n invalidateOptionsMenu();\n }", "public void onDrawerClosed(View view) {\n if (Build.VERSION.SDK_INT >= 11) {\n invalidateOptionsMenu(); // creates call to onPrepareOptionsMenu()\n } else {\n //Call it directly on gingerbread.\n onPrepareOptionsMenu(mMenu);\n }\n\n// startFullscreenIfNeeded();\n }", "@Override\n public void onDrawerOpened(View drawerView) {\n }", "@Override\n public void onDrawerClosed(View drawerView) {\n invalidateOptionsMenu();\n Log.d(\"Apps Main\", \"Close drawer \");\n }", "@Override\n public void onDrawerOpened(View drawerView) {\n }", "public void onDrawerClosed(View view) {\n \tactivity.getSupportActionBar().setTitle(\"Txootx!\");\n \tactivity.invalidateOptionsMenu(); // creates call to onPrepareOptionsMenu()\n }", "@Override\n public void onDrawerOpened(View drawerView) {\n super.onDrawerOpened(drawerView);\n }", "@Override\n public void onDrawerOpened(View drawerView) {\n super.onDrawerOpened(drawerView);\n }", "@Override\n public void onDrawerOpened(View drawerView) {\n super.onDrawerOpened(drawerView);\n }", "@Override\n public void onDrawerOpened(View drawerView) {\n super.onDrawerOpened(drawerView);\n }", "@Override\n public void onDrawerOpened(View drawerView) {\n super.onDrawerOpened(drawerView);\n }", "@Override\n public void onDrawerOpened(View drawerView) {\n super.onDrawerOpened(drawerView);\n }", "@Override\n public void onDrawerOpened(View drawerView) {\n super.onDrawerOpened(drawerView);\n }", "@Override\n public void onDrawerOpened(View drawerView) {\n super.onDrawerOpened(drawerView);\n }", "@Override\n public void onDrawerOpened(View drawerView) {\n super.onDrawerOpened(drawerView);\n }", "@Override\n public void onDrawerOpened(View drawerView) {\n super.onDrawerOpened(drawerView);\n }", "@Override\n public void onDrawerOpened(View drawerView) {\n super.onDrawerOpened(drawerView);\n }", "void checkClosed();", "public void onDrawerClosed(View view) {\n super.onDrawerClosed(view);\n //change toolbar title to the app's name\n toolbar.setTitle(getResources().getString(R.string.app_name));\n\n //hide the add feed menu option\n hideAddFeed();\n\n }", "@Override\n public void onPourWaterRaised() {\n if (theFSM.getCupPlaced()) {\n pouringState = true;\n }\n }", "private void closeDrawer(){\n if (drawerLayout.isDrawerOpen(GravityCompat.START)){\n drawerLayout.closeDrawer(GravityCompat.START);\n }\n }", "public void onDrawerOpened(View drawerView) {\n\n }", "public void onDrawerClosed(View view) {\n menuvalue = 0;\n getSupportActionBar().setHomeAsUpIndicator(R.mipmap.menu);\n }", "public void onDrawerClosed(View view) {\n super.onDrawerClosed(view);\n// getActionBar().setTitle(mTitle);\n }", "public void onDrawerClosed(View view) {\n super.onDrawerClosed(view);\n// getActionBar().setTitle(mTitle);\n }", "public void onDrawerClosed(View view) {\n\t\t\t\tsuper.onDrawerClosed(view);\n\t\t\t\tgetSupportActionBar().setTitle(mActivityTitle);\n\t\t\t\tinvalidateOptionsMenu(); // creates call to onPrepareOptionsMenu()\n\t\t\t}", "public void onDrawerClosed(View view) {\r\n\t\t\t\tsuper.onDrawerClosed(view);\r\n\t\t\t\tgetActionBar().setTitle(mTitle);\r\n\t\t\t}", "@Override\n public void onDrawerOpened(View drawerView) {\n\n super.onDrawerOpened(drawerView);\n }", "@Override\n public void onDrawerOpened(View drawerView) {\n\n super.onDrawerOpened(drawerView);\n }", "@Override\n public void onDrawerOpened(View drawerView) {\n\n super.onDrawerOpened(drawerView);\n }", "public void onDrawerClosed(View view) {\n super.onDrawerClosed(view);\n getSupportActionBar().setTitle(mActivityTitle);\n //invalidateOptionsMenu();\n //creates call to onPrepareOptionsMenu()\n }", "public boolean checkClosed();", "public void onDrawerClosed(View view) {\n super.onDrawerClosed(view);\n linearLayout.removeAllViews();\n linearLayout.invalidate();\n }", "public void onDrawerClosed(View view) {\n super.onDrawerClosed(view);\n getSupportActionBar().setTitle(mActivityTitle);\n invalidateOptionsMenu(); // creates call to onPrepareOptionsMenu()\n }", "public void onDrawerClosed(View view) {\n super.onDrawerClosed(view);\n getSupportActionBar().setTitle(mActivityTitle);\n invalidateOptionsMenu(); // creates call to onPrepareOptionsMenu()\n }", "public void onDrawerClosed(View view) {\n super.onDrawerClosed(view);\n getSupportActionBar().setTitle(mActivityTitle);\n invalidateOptionsMenu(); // creates call to onPrepareOptionsMenu()\n }", "public void onDrawerClosed(View view) {\n super.onDrawerClosed(view);\n //getActionBar().setTitle(mTitle);\n }", "@Override\n boolean onBeforePopDir() {\n int size = mState.stack.size();\n\n if (mDrawer.isPresent()\n && (System.currentTimeMillis() - mDrawerLastFiddled) > DRAWER_NO_FIDDLE_DELAY) {\n // Close drawer if it is open.\n if (mDrawer.isOpen()) {\n mDrawer.setOpen(false);\n mDrawerLastFiddled = System.currentTimeMillis();\n return true;\n }\n\n final Intent intent = getIntent();\n final boolean launchedExternally = intent != null && intent.getData() != null\n && mState.action == State.ACTION_BROWSE;\n\n // Open the Close drawer if it is closed and we're at the top of a root, but only when\n // not launched by another app.\n if (size <= 1 && !launchedExternally) {\n mDrawer.setOpen(true);\n // Remember so we don't just close it again if back is pressed again.\n mDrawerLastFiddled = System.currentTimeMillis();\n return true;\n }\n }\n\n return false;\n }", "public void onDrawerOpened(View drawerView) {\n super.onDrawerOpened(drawerView);\n invalidateOptionsMenu(); // creates call to onPrepareOptionsMenu()\n }", "public void onDrawerOpened(View drawerView) {\n super.onDrawerOpened(drawerView);\n invalidateOptionsMenu(); // creates call to onPrepareOptionsMenu()\n }", "public void onDrawerOpened(View drawerView) {\n super.onDrawerOpened(drawerView);\n invalidateOptionsMenu(); // creates call to onPrepareOptionsMenu()\n }" ]
[ "0.7115407", "0.6926059", "0.6869123", "0.6850017", "0.6850017", "0.67975765", "0.67975765", "0.67596", "0.6725664", "0.6725664", "0.6725664", "0.6725664", "0.6725664", "0.6725664", "0.6725664", "0.6725664", "0.6725664", "0.6725664", "0.6725664", "0.6725664", "0.6725664", "0.6725664", "0.6721151", "0.66889405", "0.66880065", "0.6562775", "0.655485", "0.655485", "0.655485", "0.655485", "0.6535418", "0.64513475", "0.63647944", "0.63557786", "0.63468915", "0.63330674", "0.62742853", "0.62742853", "0.62742853", "0.62727624", "0.6207396", "0.61479044", "0.61479044", "0.60617363", "0.60555094", "0.6026638", "0.60136896", "0.6004723", "0.5999999", "0.5999999", "0.5999999", "0.5999999", "0.5987982", "0.5977952", "0.59757096", "0.5963962", "0.5900662", "0.5900662", "0.5878352", "0.58625096", "0.58526325", "0.58501506", "0.5838531", "0.5826156", "0.5819381", "0.5816328", "0.5816328", "0.5816328", "0.5816328", "0.5816328", "0.5816328", "0.5816328", "0.5816328", "0.5816328", "0.5816328", "0.5816328", "0.5814934", "0.58083963", "0.57997423", "0.57940894", "0.57877415", "0.5771512", "0.57663655", "0.57663655", "0.5758774", "0.5739536", "0.57342184", "0.57342184", "0.57342184", "0.57235277", "0.5717598", "0.5714211", "0.571184", "0.571184", "0.571184", "0.5708654", "0.5708341", "0.56557673", "0.56557673", "0.56557673" ]
0.6745561
8
Called when a drawer has settled in a completely open state.
public void onDrawerOpened(View drawerView) { String mTitle = getResources().getString(R.string.mTitle); super.onDrawerOpened(drawerView); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\t\t\tpublic void onDrawerOpened() {\n\t\t\t\tshowDown();\n\t\t\t}", "public void onDrawerOpened(View drawerView) {\n super.onDrawerOpened(drawerView);\n handleEvent_onDrawerOpened(drawerView);\n }", "@Override\n public void onDrawerStateChanged(int newState) {\n }", "@Override\n public void onDrawerStateChanged(int newState) {\n }", "@Override\n public void onDrawerStateChanged(int newState) {\n }", "@Override\n public void onDrawerStateChanged(int newState) {\n }", "@Override\n public void onDrawerStateChanged(int newState) {\n }", "public void onDrawerOpened(View drawerView) {\n super.onDrawerOpened(drawerView);\n }", "public void onDrawerOpened(View drawerView) {\n super.onDrawerOpened(drawerView);\n }", "public void onDrawerOpened(View drawerView) {\n super.onDrawerOpened(drawerView);\n }", "public void onDrawerOpened(View drawerView) {\n super.onDrawerOpened(drawerView);\n }", "@Override\n\t\t\tpublic void onDrawerClosed() {\n\t\t\t\tshowUp();\n\t\t\t}", "public void onDrawerClosed(View view) {\n }", "@Override\n public void onDrawerOpened(View drawerView) {\n super.onDrawerOpened(drawerView);\n }", "@Override\n public void onDrawerOpened(View drawerView) {\n super.onDrawerOpened(drawerView);\n }", "@Override\n public void onDrawerOpened(View drawerView) {\n super.onDrawerOpened(drawerView);\n }", "@Override\n public void onDrawerOpened(View drawerView) {\n super.onDrawerOpened(drawerView);\n }", "@Override\n public void onDrawerOpened(View drawerView) {\n super.onDrawerOpened(drawerView);\n }", "@Override\n public void onDrawerOpened(View drawerView) {\n super.onDrawerOpened(drawerView);\n }", "@Override\n public void onDrawerOpened(View drawerView) {\n super.onDrawerOpened(drawerView);\n }", "@Override\n public void onDrawerOpened(View drawerView) {\n super.onDrawerOpened(drawerView);\n }", "@Override\n public void onDrawerOpened(View drawerView) {\n super.onDrawerOpened(drawerView);\n }", "@Override\n public void onDrawerOpened(View drawerView) {\n super.onDrawerOpened(drawerView);\n }", "@Override\n public void onDrawerOpened(View drawerView) {\n super.onDrawerOpened(drawerView);\n }", "@Override\n public void onDrawerOpened(View drawerView) {\n }", "@Override\n public void onDrawerOpened(View drawerView) {\n Log.d(\"Apps Main\", \"Open drawer \");\n }", "@Override\n public void onDrawerOpened(View drawerView) {\n }", "public void onDrawerOpened(View drawerView) {\n super.onDrawerOpened(drawerView);\n invalidateOptionsMenu(); // creates call to onPrepareOptionsMenu()\n }", "public void onDrawerOpened(View drawerView) {\n super.onDrawerOpened(drawerView);\n invalidateOptionsMenu(); // creates call to onPrepareOptionsMenu()\n }", "public void onDrawerOpened(View drawerView) {\n super.onDrawerOpened(drawerView);\n invalidateOptionsMenu(); // creates call to onPrepareOptionsMenu()\n }", "public void onDrawerOpened(View drawerView) {\n super.onDrawerOpened(drawerView);\n invalidateOptionsMenu(); // creates call to onPrepareOptionsMenu()\n }", "public void onDrawerOpened(View drawerView) {\n\n }", "@Override\n public void onDrawerOpened(View drawerView) {\n\n super.onDrawerOpened(drawerView);\n }", "@Override\n public void onDrawerOpened(View drawerView) {\n\n super.onDrawerOpened(drawerView);\n }", "@Override\n public void onDrawerOpened(View drawerView) {\n\n super.onDrawerOpened(drawerView);\n }", "public void onDrawerOpened(View drawerView) {\n\t\t\t\tLog.d(TAG, \"nav drawer opened state\");\n\t\t\t\tgetActionBar().setTitle(drawerTitle);\n\t\t\t\tinvalidateOptionsMenu();// goes to onPrepareOptionsMenu()\n\t\t\t}", "public void onDrawerOpened(View drawerView) {\n super.onDrawerOpened(drawerView);\n getActionBar().setTitle(R.string.drawer_open);\n invalidateOptionsMenu(); // creates call to onPrepareOptionsMenu()\n }", "@Override\n\tpublic void onSidebarOpened() {\n\t\tLog.d(TAG, \"opened\");\n\n\t}", "public void onDrawerOpened(View drawerView) {\n super.onDrawerOpened(drawerView);\n //getActionBar().setTitle(mDrawerTitle);\n //invalidateOptionsMenu(); // creates call to onPrepareOptionsMenu()\n }", "public void onDrawerOpened(View drawerView) {\n super.onDrawerOpened(drawerView);\n //getActionBar().setTitle(mDrawerTitle);\n //invalidateOptionsMenu(); // creates call to onPrepareOptionsMenu()\n }", "@Override\n public void onDrawerClosed(View drawerView) {\n }", "public void onDrawerClosed(View view) {\n super.onDrawerClosed(view);\n }", "public void onDrawerClosed(View view) {\n super.onDrawerClosed(view);\n }", "public void onDrawerOpened(View drawerView) {\n super.onDrawerOpened(drawerView);\n // getSupportActionBar().setTitle(mDrawerTitle);\n //invalidateOptionsMenu(); // creates call to onPrepareOptionsMenu()\n }", "public void onDrawerOpened(View drawerView) {\r\n super.onDrawerOpened(drawerView);\r\n if(!mUserLearnedDrawer){\r\n\r\n mUserLearnedDrawer=true;\r\n Utility utility=new Utility();\r\n utility.writeToSharedPref(getApplicationContext(),KEY_USER_LEARNED_DRAWER,mUserLearnedDrawer+\"\");\r\n }\r\n invalidateOptionsMenu();\r\n }", "public void onDrawerClosed(View view) {\n super.onDrawerClosed(view);\n // Do whatever you want here\n }", "@Override\n public void onDrawerClosed(View drawerView) {\n }", "@Override\n public void onDrawerClosed(View drawerView) {\n }", "@Override\n boolean onBeforePopDir() {\n int size = mState.stack.size();\n\n if (mDrawer.isPresent()\n && (System.currentTimeMillis() - mDrawerLastFiddled) > DRAWER_NO_FIDDLE_DELAY) {\n // Close drawer if it is open.\n if (mDrawer.isOpen()) {\n mDrawer.setOpen(false);\n mDrawerLastFiddled = System.currentTimeMillis();\n return true;\n }\n\n final Intent intent = getIntent();\n final boolean launchedExternally = intent != null && intent.getData() != null\n && mState.action == State.ACTION_BROWSE;\n\n // Open the Close drawer if it is closed and we're at the top of a root, but only when\n // not launched by another app.\n if (size <= 1 && !launchedExternally) {\n mDrawer.setOpen(true);\n // Remember so we don't just close it again if back is pressed again.\n mDrawerLastFiddled = System.currentTimeMillis();\n return true;\n }\n }\n\n return false;\n }", "public void onDrawerClosed(View view) {\n super.onDrawerClosed(view);\n Log.d(TAG, \"onDrawerClosed\");\n }", "public void onDrawerClosed(View view) {\n super.onDrawerClosed(view);\n\n\n }", "public void onTrackingStarted() {\n this.mFalsingManager.onTrackingStarted(!this.mKeyguardStateController.canDismissLockScreen());\n super.onTrackingStarted();\n if (this.mQsFullyExpanded) {\n this.mQsExpandImmediate = true;\n this.mNotificationStackScroller.setShouldShowShelfOnly(true);\n }\n int i = this.mBarState;\n if (i == 1 || i == 2) {\n this.mAffordanceHelper.animateHideLeftRightIcon();\n }\n this.mNotificationStackScroller.onPanelTrackingStarted();\n }", "@Override\n public void onDrawerOpened(@NonNull View drawerView) {\n drawerLayout.setDrawerLockMode(DrawerLayout.LOCK_MODE_UNLOCKED);\n }", "@Override\n\tpublic void onSidebarClosed() {\n\t\tLog.d(TAG, \"opened\");\n\t}", "public void onDrawerOpened(View drawerView) {\n\t\t\t\tsuper.onDrawerOpened(drawerView);\n\t\t\t\tgetSupportActionBar().setTitle(\"Munchies\");\n\t\t\t\tinvalidateOptionsMenu(); // creates call to onPrepareOptionsMenu()\n\t\t\t}", "private void notifyOnOpen() {\n synchronized (globalLock) {\n if (isRunning) {\n onOpen();\n }\n }\n }", "@Override\n public void onDrawerClosed(View drawerView) {\n super.onDrawerClosed(drawerView);\n }", "@Override\n public void onDrawerClosed(View drawerView) {\n super.onDrawerClosed(drawerView);\n }", "@Override\n public void onDrawerClosed(View drawerView) {\n super.onDrawerClosed(drawerView);\n }", "@Override\n public void onDrawerClosed(View drawerView) {\n super.onDrawerClosed(drawerView);\n }", "@Override\n public void onDrawerClosed(View drawerView) {\n super.onDrawerClosed(drawerView);\n }", "@Override\n public void onDrawerClosed(View drawerView) {\n super.onDrawerClosed(drawerView);\n }", "@Override\n public void onDrawerClosed(View drawerView) {\n super.onDrawerClosed(drawerView);\n }", "@Override\n public void onDrawerClosed(View drawerView) {\n super.onDrawerClosed(drawerView);\n }", "@Override\n public void onDrawerClosed(View drawerView) {\n super.onDrawerClosed(drawerView);\n }", "@Override\n public void onDrawerClosed(View drawerView) {\n super.onDrawerClosed(drawerView);\n }", "@Override\n public void onDrawerClosed(View drawerView) {\n super.onDrawerClosed(drawerView);\n }", "@Override\n public void onDrawerClosed(View drawerView) {\n super.onDrawerClosed(drawerView);\n }", "@Override\n public void onDrawerClosed(View drawerView) {\n super.onDrawerClosed(drawerView);\n }", "@Override\n public void onDrawerClosed(View drawerView) {\n super.onDrawerClosed(drawerView);\n }", "public void onDrawerClosed(View view) {\n super.onDrawerClosed(view);\n\n }", "public void onDrawerOpened(View drawerView) {\n if (Build.VERSION.SDK_INT >= 11) {\n invalidateOptionsMenu(); // creates call to onPrepareOptionsMenu()\n } else {\n //Call it directly on gingerbread.\n onPrepareOptionsMenu(mMenu);\n }\n }", "public void onDrawerOpened(View drawerView) {\n super.onDrawerOpened(drawerView);\n invalidateOptionsMenu();\n }", "public void onDrawerOpened(View drawerView) {\n super.onDrawerOpened(drawerView);\n getSupportActionBar().setTitle(\"Timesheet\");\n invalidateOptionsMenu(); // creates call to onPrepareOptionsMenu()\n }", "@Override\n public void onPourWaterRaised() {\n if (theFSM.getCupPlaced()) {\n pouringState = true;\n }\n }", "public void onDrawerOpened(View drawerView) {\n super.onDrawerOpened(drawerView);\n getSupportActionBar().setTitle(mDrawerTitle);\n //updateView(5, 99, true);\n }", "public void onDrawerClosed(View drawerView) {\n\n }", "public void onDrawerClosed(View view) {\n super.onDrawerClosed(view);\n resumeLocationUpdates();\n invalidateOptionsMenu(); // creates call to onPrepareOptionsMenu()\n }", "public void onDrawerOpened(View drawerView) {\n super.onDrawerOpened(drawerView);\n if (actionBar != null) actionBar.setTitle(R.string.choose_to_do_list);\n invalidateOptionsMenu(); // creates call to onPrepareOptionsMenu()\n }", "public void onDrawerOpened(View drawerView) {\n super.onDrawerOpened(drawerView);\n getSupportActionBar().setTitle(mDrawerTitle);\n invalidateOptionsMenu(); // creates call to onPrepareOptionsMenu()\n }", "public void onDrawerOpened(View drawerView) {\n super.onDrawerOpened(drawerView);\n getSupportActionBar().setTitle(mDrawerTitle);\n invalidateOptionsMenu(); // creates call to onPrepareOptionsMenu()\n }", "@Override\n\t\t\tpublic void onDrawerClosed() {\n\t\t\t\tlayoutParams = new FrameLayout.LayoutParams(\n\t\t\t\t\t\tLayoutParams.MATCH_PARENT, LayoutParams.MATCH_PARENT);\n\t\t\t\tslidingDrawer.setLayoutParams(layoutParams);\n\t\t\t\tbottomLayout.setVisibility(View.VISIBLE);\n\t\t\t}", "public void onDrawerClosed(View view) {\n getActionBar().setTitle(\"Closed Drawer\");\n }", "private boolean isDrawerOpen() {\n return mDrawerLayout != null && mDrawerLayout.isDrawerOpen(Gravity.LEFT);\n }", "public void onDrawerOpened(View drawerView) {\n supportInvalidateOptionsMenu();\n }", "public void setOnDrawerOpenListener(OnDrawerOpenListener onDrawerOpenListener) {\n/* 201 */ throw new RuntimeException(\"Stub!\");\n/* */ }", "public void onDrawerOpened(View drawerView) {\n\n super.onDrawerOpened(drawerView);\n\n //change toolbar title to 'Add a feed'\n toolbar.setTitle(getResources().getString(R.string.feedmenu));\n\n //show the add feed menu option\n showAddFeed();\n\n }", "public void onDrawerOpened(View drawerView) {\n super.onDrawerOpened(drawerView);\n getSupportActionBar().setTitle(\"Navigation!\");\n //invalidateOptionsMenu();\n //creates call to onPrepareOptionsMenu()\n }", "private void setUpNavigationDrawer() {\n navigationView.setNavigationItemSelectedListener(item -> {\n Fragment nextFragment = findNextFragment(item.getItemId());\n\n if (nextFragment instanceof WalkFragment && areLocationServicesDisabled()) {\n MaterialAlertDialogBuilder builder = new MaterialAlertDialogBuilder(this);\n builder.setTitle(R.string.location_services_not_enabled_title);\n builder.setMessage(R.string.location_services_not_enabled_message);\n builder.setPositiveButton(R.string.ok, null);\n\n builder.show();\n } else {\n changeFragment(nextFragment);\n\n item.setChecked(true);\n drawerLayout.closeDrawers();\n setUpNewFragment(item.getTitle(), item.getItemId());\n }\n\n return true;\n });\n }", "public void onDrawerOpened(View drawerView) {\n getActionBar().setTitle(\"Opened Drawer\");\n }", "public void onDrawerClosed(View view) {\n super.onDrawerClosed(view);\n invalidateOptionsMenu(); // creates call to onPrepareOptionsMenu()\n }", "public void onDrawerClosed(View view) {\n super.onDrawerClosed(view);\n invalidateOptionsMenu(); // creates call to onPrepareOptionsMenu()\n }", "public void onDrawerClosed(View view) {\n super.onDrawerClosed(view);\n invalidateOptionsMenu(); // creates call to onPrepareOptionsMenu()\n }", "public void onDrawerOpened(View drawerView) {\n super.onDrawerOpened(drawerView);\n getSupportActionBar().setTitle(\"Navigation!\");\n invalidateOptionsMenu(); // creates call to onPrepareOptionsMenu()\n }", "public void onDrawerOpened(View drawerView) {\n super.onDrawerOpened(drawerView);\n getSupportActionBar().setTitle(mTitle);\n invalidateOptionsMenu(); // creates call to onPrepareOptionsMenu()\n }", "public boolean isOpened(){\n return chestProgressLevel==1;\n }", "public void onDrawerClosed(View view) {\n super.onDrawerClosed(view);\n //getActionBar().setTitle(mTitle);\n //invalidateOptionsMenu(); // creates call to onPrepareOptionsMenu()\n }", "public void onDrawerClosed(View view) {\n super.onDrawerClosed(view);\n //getActionBar().setTitle(mTitle);\n //invalidateOptionsMenu(); // creates call to onPrepareOptionsMenu()\n }", "public void onDrawerOpened(View drawerView) {\n super.onDrawerOpened(drawerView);\n getSupportActionBar().setTitle(\"Options\");\n invalidateOptionsMenu(); // creates call to onPrepareOptionsMenu()\n }", "@Override\n\tprotected void on_door_change_state(String door_name, boolean is_open) {\n\n\t}", "public void onDrawerClosed(View view) {\n \tactivity.getSupportActionBar().setTitle(\"Txootx!\");\n \tactivity.invalidateOptionsMenu(); // creates call to onPrepareOptionsMenu()\n }" ]
[ "0.70575815", "0.6901369", "0.67309564", "0.67309564", "0.67309564", "0.67309564", "0.6724413", "0.67101437", "0.67101437", "0.67101437", "0.67101437", "0.65850323", "0.645492", "0.6450285", "0.6450285", "0.6450285", "0.6450285", "0.6450285", "0.6450285", "0.6450285", "0.6450285", "0.6450285", "0.6450285", "0.6450285", "0.64451057", "0.6431807", "0.6397972", "0.6388771", "0.6388771", "0.6388771", "0.6388771", "0.63830614", "0.63785714", "0.63785714", "0.63785714", "0.6367789", "0.6303726", "0.6244818", "0.6197814", "0.6197814", "0.61536413", "0.6145138", "0.6145138", "0.61440355", "0.6143736", "0.6133898", "0.6132207", "0.6132207", "0.6097718", "0.6097216", "0.6089468", "0.60872006", "0.60833627", "0.6058652", "0.6046223", "0.6035095", "0.6034686", "0.6034686", "0.6034686", "0.6034686", "0.6034686", "0.6034686", "0.6034686", "0.6034686", "0.6034686", "0.6034686", "0.6034686", "0.6034686", "0.6034686", "0.6034686", "0.6029596", "0.6019749", "0.60172886", "0.60160875", "0.6010289", "0.59888905", "0.59834605", "0.59752035", "0.597483", "0.5964116", "0.5964116", "0.5948159", "0.59412354", "0.5933082", "0.59204197", "0.58872217", "0.5867132", "0.58625156", "0.58569694", "0.585078", "0.5820532", "0.5820532", "0.5820532", "0.58086425", "0.5796866", "0.5782061", "0.57772243", "0.57772243", "0.5750467", "0.5747597", "0.57419103" ]
0.0
-1
Add code here if clicked on planner
private void selectItem(int position) { if (position == 0) { //joj Toast.makeText(this, " clicked on planner ", Toast.LENGTH_SHORT).show(); //Call the method, actions to take place when clicked on planner } //add code if clicked on Recipes else if (position == 1) { Toast.makeText(this, "clicked on recipes", Toast.LENGTH_SHORT).show(); //Call the method, actions to take place when clicked on recipes Intent intent = new Intent(FrontPage.this, Recipepage.class); startActivity(intent); } else if (position == 2) { Toast.makeText(this, "clicked on Grocery", Toast.LENGTH_SHORT).show(); //Call the method, actions to take place when clicked on grocery } else if (position == 3) { Toast.makeText(this, "clicked on groups", Toast.LENGTH_SHORT).show(); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\t\t\tpublic void onClick(View arg0) {\n\t\t\t\tif (isTest) {\n\t\t\t\t} else {\n\t\t\t\t\tif (isSwitch) {// 电梯\n\t\t\t\t\t\tAppManager.getAppManager().finishActivity(\n\t\t\t\t\t\t\t\tNearbyElevatorPlaygroundListActivity.class);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tAppManager.getAppManager().finishActivity(\n\t\t\t\t\t\tNearbyElevatorOrPlaygroundMap.class);\n\t\t\t}", "@Override\n\t\t\t\t\tpublic void onClick(View arg0) {\n\t\t\t\t\t\tmCurriculumVitaeInterface.onAddInternships();\n\t\t\t\t\t}", "@Override\n\t\t\t\t\tpublic void onClick(View arg0) {\n\t\t\t\t\t\tmCurriculumVitaeInterface.onAddInternships();\n\t\t\t\t\t}", "public void ClickPlansOfferedPage() {\r\n\t\tplansoffered.click();\r\n\t\t\tLog(\"Clicked the \\\"Plans Offered\\\" button on the Birthdays page\");\r\n\t}", "@Override\r\n\tpublic void onNextRoadClick() {\n\r\n\t}", "@Override\n\tpublic void onNextRoadClick() {\n\t\t\n\t}", "@Override\r\n\t\t\t\t\t\t\tpublic void onClick(View arg0) {\n\t\t\t\t\t\t\t\tif(!tvam.getText().equals(\"\")){\r\n\t\t\t\t\t\t\t\t\t data = info.get(position).getAdmitTime() +\"(上午)\";\r\n\t\t\t\t\t\t\t\t\t initPopupWindow();\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t}", "@Override\n public void onClick(View v) {\n togglePhysicianHint();\n\n }", "@Override\r\n\t\t\t\t\t\t\tpublic void onClick(View arg0) {\n\t\t\t\t\t\t\t\tif(!tvpm.getText().equals(\"\")){\r\n\t\t\t\t\t\t\t\t\t data = info.get(position).getAdmitTime()+\"(下午)\";\r\n\t\t\t\t\t\t\t\t\tinitPopupWindow();\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t}", "@Override\n public void onClick(View v) {\n togglePhysicianHint();\n }", "@Override\n\t\t\t\tpublic void onClick(View arg0) {\n\t\t\t\t\t\n\t\t\t\t\tshowwindow(presentadd_group);\n\t\t\t\t}", "@Override\n\t\t\tpublic void onClick(View v) {\n\n\t\t\t\topta=btnopta.getText().toString();\n\t\t\t\tCheckAns(opta,currentPosition);\n\t\t\t\t \n\n\t\t\t}", "@Override\n public void onClick(View v) {\n grade_Handler(\"Prelim Exam\", selected_code, \"exam\", PrelimActivity.this, GradeList.class);\n }", "@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\tlineBlue.setVisibility(View.VISIBLE);\n\t\t\t\tlinePink.setVisibility(View.INVISIBLE);\n\n\t\t\t\tConstants.exType = \"conference\";\n\t\t\t\t\n\t\t\t\tif(Constants.flag.equalsIgnoreCase(\"venueWise\"))\n\t\t\t\t{\n\t\t\t\t\tgetVenueWiseExb();\n\t\t\t\t}\n\t\t\t\telse if(Constants.flag.equalsIgnoreCase(\"cityWise\"))\n\t\t\t\t{\n\t\t\t\t\tgetCityWisePaging();\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\tgetCategorizedData();\n\t\t\t\t}\n\t\t\t}", "void clickNextStation();", "@Override\r\n\t\tpublic void mouseClicked(MouseEvent arg0) {\n\t\t\tMyFrame.teampanel.showOne(name2.getText());\r\n\t\t}", "@Override\n\t\t\tpublic void mouseClicked(MouseEvent e) {\n\t\t\t\tSystem.out.println(\"vai ficar clikando ai a toa? PATETA\");\n\t\t\t\t\n\t\t\t}", "@Override\n public void onClick(View v) {\n listenerPlaneta.onClick(holder, position);\n }", "@Override\n\t\t\t\t\tpublic void onClick(View arg0) {\n\t\t\t\t\t\tmCurriculumVitaeInterface.onAddAwards();\n\t\t\t\t\t}", "@Override\n\t\t\t\t\tpublic void onClick(View arg0) {\n\t\t\t\t\t\tmCurriculumVitaeInterface.onAddAwards();\n\t\t\t\t\t}", "@Override\n\tpublic void onClick(View view) {\n\t\tsuper.onClick(view);\n\t\tswitch (view.getId()) {\n\t\tcase R.id.proving:\n\t\t\tproving();\n\t\t\tbreak;\n\n\t\tdefault:\n\t\t\tbreak;\n\t\t}\n\t}", "public void aFieldGoal(View view) {\n scoreTeamA = scoreTeamA + 3;\n displayForTeamA(scoreTeamA);\n }", "@Override\n public void mouseClicked(MouseEvent e) {\n if (e.getClickCount() == 2) { \n openScheduleTable(); \n }\n }", "@Override\n\t\t\tpublic void onClick(View arg0) {\n\t\t\t\t\n\t\t\t\t\n\t\t\t}", "@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\toptd=btnoptd.getText().toString();\n\t\t\t\tCheckAns(optd,currentPosition);\n\t\t\t\t//Log.e(\"ans\", optd);\n\t\t\t}", "public void onClicked();", "private void onAddGoalsClicked() {\n Intent intent = new Intent(this, GoalCreationActivity.class);\n startActivity(intent);\n }", "@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\tClickOption();\n\t\t\t\t\n\t\t\t}", "@Override\n\tpublic void onClick(View arg0) {\n\t\t\n\t flightNum.setFocusable(true);\n flightNum.setFocusableInTouchMode(true);\n\t flightNum.requestFocus();\n\t flightNum.requestFocusFromTouch();\n\t\t\n\t\tswitch (arg0.getId()) {\n\t\tcase R.id.flight_select_imagebutton://点击查询按钮\n\t\t\t\n\t\t\tif(TextUtils.isEmpty(flightNum.getText().toString().trim())){\n\t\t\t\t\n\t\t\t\t Toast.makeText(getActivity(), \"请输入航班号\", Toast.LENGTH_SHORT).show();\n\t\t\n\t\t\t\t flightNum.setShakeAnimation();//摇晃输入框\n\t\t\t\t\n\t\t\t}else{\n\t\t\t\t//异步发起请求,获取航班信息\n\t\t\t\thandler.sendEmptyMessage(0x100);\n\t\t\t\t\n\t\t\t}\n\t\t\t\n\t\t\t\n\t\t\t\n\t\t\tbreak;\n\n\t\tcase R.id.flight_date_click://点击日期\n\t\t\t\n\t\t\t utilsClass.getCalendarDate(getActivity(),flightDataShow);//日历显示\n\t\t\t\n\t\t\tbreak;\n\t\t}\n\t\t\n\t}", "@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\toptc=btnoptc.getText().toString();\n\t\t\t\tCheckAns(optc,currentPosition);\n\t\t\t\t//Log.e(\"ans\", optc);\n\n\t\t\t}", "@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\tlinePink.setVisibility(View.VISIBLE);\n\t\t\t\tlineBlue.setVisibility(View.INVISIBLE);\n\n\t\t\t\tConstants.exType = \"exhibition\";\n\t\t\t\t\n\t\t\t\tif(Constants.flag.equalsIgnoreCase(\"venueWise\"))\n\t\t\t\t{\n\t\t\t\t\tgetVenueWiseExb();\n\t\t\t\t}\n\t\t\t\telse if(Constants.flag.equalsIgnoreCase(\"cityWise\"))\n\t\t\t\t{\n\t\t\t\t\tgetCityWisePaging();\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\tgetCategorizedData();\n\t\t\t\t}\n\t\t\t\t\n\t\t\t}", "@Override\n public void onClick(View view) {\n\n loadSportData();\n }", "@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\tif(projectsLoader.getNextInspection()!=null){\n\t\t\t\t\tString recordId = projectsLoader.getNextInspection().getRecordId_id();\n\t\t\t\t\tif(recordId==null)\n\t\t\t\t\t\treturn;\n\t\t\t\t\tActivityUtils.startScheduleInspectionActivity(LandingPageActivity.this, projectsLoader.getParentProject(recordId).getProjectId(), recordId, projectsLoader.getNextInspection(), AppConstants.CANCEL_INSPECTION_SOURCE_OTHER);\n\t\t\t\t}\n\t\t\t}", "public void onChangedAdBtnPressed() {\n String uniqueID = advertisement.getUniqueID();\n view.showEditView(uniqueID);\n }", "@Override\n\t\t\tpublic void onClick(View arg0) {\n\t\t\t\t\n\t\t\t}", "@Override\n\t\t\tpublic void onClick(View arg0) {\n\t\t\t\t\n\t\t\t}", "@Override\n\t\t\tpublic void onClick(View arg0) {\n\t\t\t\t\n\t\t\t}", "@Override\n public void onClick(View v) {\n setTaskShowType();\n }", "public void qvikieClicked() {\n String qvikieId = getQvikieId();\n if (qvikieId == null) {\n // Click happened before qvikie was loaded, no-op.\n return;\n }\n if (mNavigator != null && mNavigator.get() != null) {\n mNavigator.get().openQvikieDetails(qvikieId);\n }\n }", "@Override\n\t\t\tpublic void onClick(View arg0) {\n\t\t\t\n\t\t\t}", "@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\t\n\t\t\t\tgotoTimeline();\n\t\t\t}", "private void goalsConfigButton(){\n if(!goalsOpened){\n goalsUI = new GoalsUI(this, false);\n goalsOpened = true;\n }\n }", "@FXML\n\tvoid AddVisitor_Button_Clicked(ActionEvent event) { // could the visitor be for different parks? time? date ?\n\t\tString ordererId = PopUp.getUserInput(\"Private Group Order\", \"Enter ID of the visitor\", \"ID or Subscriber ID\");\n\n\t\tif (!CheckID(ordererId)) {\n\t\t\tPopUp.showInformation(\"Please enter appropriate ID\", \"Please enter appropriate ID\",\n\t\t\t\t\t\"Please enter appropriate ID\");\n\t\t} else if (visitorsIDArray.contains(ordererId) || visitorsIDArray.contains(\"S\" + ordererId)\n\t\t\t\t|| visitorsIDArray.contains(ordererId.substring(1, ordererId.length()))) {\n\t\t\tPopUp.showInformation(\"This ID already is added\", \"This ID already is added\", \"This ID already is added\");\n\t\t} else {\n\t\t\tvisitorsIDArray.add(ordererId);\n\t\t\tPopUp.showInformation(\"Visitor Added\", \"Visitor Added\", \"Visitor Added\");\n\t\t\tvisitorsCounter++;\n\t\t\tlistViewVisitors.getItems().add(\"visitor #\" + visitorsCounter + \" \" + \"(\" + ordererId + \")\");\n\t\t\tPlaceOrder_Button.setDisable(false);\n\t\t\tRemoveVisitor_Button.setDisable(false);\n\t\t}\n\t}", "@Override\n\tprotected void OnClick() {\n\t\t\n\t}", "private void addClick() {\n\t\tfindViewById(R.id.top_return).setOnClickListener(this);\n\t\tfm1_jhtx.setOnClickListener(this);\n\t\tfm1_sx.setOnClickListener(this);\n\t}", "public void clickonAddVehicleSideBar() {\r\n\t\tsafeClick(groupListSideBar.replace(\"Group List\", \"Vehicle List\"), SHORTWAIT);\r\n\t}", "@Override\n public void onClick() {\n showMonthViewWithBelowEvents();\n }", "@FXML\n public void plannerPlanBtnClicked(){\n //display the correct submenu (run here because plannerBtnClicked call this method)\n subMenuDisplay(PlannerSubMenuPane);\n PlannerPlanPane.toFront();\n MenuPane.toFront();\n //if the planner plan / Calendar pane has previously be viewed then select the previously selected day in the\n //weeklist listView, if not then select the first item in the weeklist listView.\n if (previouslySelected != null){\n weekList.getSelectionModel().select(previouslySelected);\n } else {\n weekList.getSelectionModel().selectFirst();\n }\n\n //load the correct meal selection in the comboBoxs for day\n plannerDisplayComboBoxs();\n }", "@Override\n\t\t\t\t\t\tpublic void onClick(View arg0) {\n\t\t\t\t\t\t\tmCurriculumVitaeInterface.onComputer();\n\t\t\t\t\t\t}", "@Override\n\t\t\tpublic void onClick(View arg0) {\n\n\t\t\t}", "@Override\n\t\t\tpublic void onClick(View arg0) {\n\n\t\t\t}", "@Override\n\t\t\tpublic void onClick(View arg0) {\n\n\t\t\t}", "@Override\n\t\t\tpublic void onClick(View arg0) {\n\n\t\t\t}", "@Override\n\tpublic void mouseClicked(MouseEvent e) {\n\n\t\tPoint mouseClick = SwingUtilities.convertPoint(this, e.getPoint(), view);\n\t\t\n\t\tnext = handleInGameMenu(mouseClick);\n\t\t\n\t\thandlePlay(mouseClick);\n\t\t\n\t}", "@Override\n public void onClick() {\n }", "@Override\n\tpublic void mouseClicked(MouseEvent e) {\n\t\tif(e.getX()>46&&e.getX()<151){\n\t\t\tif(e.getY()<362&&e.getY()>321){\n\t\t\t\trunner.exitAction();\n\t\t\t\tSystem.out.println(\"dsd\");\n\t\t\t}\n\t\t\telse if(e.getY()<311&&e.getY()>270){\n\t\t\t\trunner.meanStartyAction();\n\t\t\t\tSystem.out.println(\"dssd\");\n\t\t\t}\n\t\t\telse if(e.getY()>219&&e.getY()<260){\n\t\t\t\trunner.meanOrderAction();\n\t\t\t\tSystem.out.println(\"dsssd\");\n\t\t\t}\n\t\t\telse if(e.getY()>168&&e.getY()<209){\n\t\t\t\trunner.meanInfoAction();\n\t\t\t\tSystem.out.println(\"dsdd\");\n\t\t\t}\n\t\t\telse if(e.getY()<158&&e.getY()>58){\n\t\t\t\trunner.showWelcome();\n\t\t\t\tSystem.out.println(\"d欢迎\");\n\t\t\t}\n\t\t}\n\t\telse if(e.getX()>580&&e.getX()<615&&e.getY()>70&&e.getY()<105){\n\t\t\trunner.getQuickHotel(hotelFrame.name.getText());\n\t\t}\n\t\telse if(e.getX()>190&&e.getX()<366&&e.getY()>125&&e.getY()<285){\n\t\t\trunner.getQuickHotel(\"北京\");\n\t\t}\n\t\telse if(e.getX()>375&&e.getX()<645&&e.getY()>125&&e.getY()<285){\n\t\t\trunner.getQuickHotel(\"南京\");\n\t\t}\n\t\telse if(e.getX()>190&&e.getX()<460&&e.getY()>290&&e.getY()<450){\n\t\t\trunner.getQuickHotel(\"香港\");\n\t\t}\n\t\telse if(e.getX()>465&&e.getX()<735&&e.getY()>290&&e.getY()<450){\n\t\t\trunner.getQuickHotel(\"上海\");\n\t\t}\n\t}", "@Override\n\tpublic void onClick(View v) {\n\t\tif(v==btnnext)\n\t\t{\n\t\t\tstitle =edittitle.getText().toString().trim();\n\t\t\tsdesc =editdesc.getText().toString().trim();\n\t\t\tsrent =editrent.getText().toString().trim();\n\t\t\tscontact =editcontact.getText().toString().trim();\n\t\t\t\n\t\t\tselectedarea = spinArea.getSelectedItemPosition();\n\t\t\t\n\t\t\tif(stitle.equals(\"\"))\n\t\t\t{\n\t\t\t\tedittitle.setError(\"Enter Title\");\n\t\t\t\treturn;\n\t\t\t}\n\t\t\telse if(sdesc.equals(\"\"))\n\t\t\t{\n\t\t\t\teditdesc.setError(\"Enter Description\");\n\t\t\t\treturn;\n\t\t\t}\n\t\t\telse if(selectedarea==0)\n\t\t\t{\n\t\t\t\tToast.makeText(AddFoodAdvActivity.this,\"Select Area\",Toast.LENGTH_SHORT).show();\n\t\t\t\treturn;\n\t\t\t}\n\t\t\telse if(srent.equals(\"\"))\n\t\t\t{\n\t\t\t\teditrent.setError(\"Enter Rent\");\n\t\t\t\treturn;\n\t\t\t}\n\t\t\telse if(scontact.equals(\"\"))\n\t\t\t{\n\t\t\t\teditcontact.setError(\"Enter Contact No\");\n\t\t\t\treturn;\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tsarea = AreaList.get(selectedarea-1).getArea_ID().toString().trim();\n\t\t\t\t\n\t\t\t\tif(!sarea.trim().equals(\"\"))\n\t\t\t\t{\n\t\t\t\t\tnew PostWaterAdv().execute();\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t}\n\t\t\t}\n\t}", "@Override\n public void onClick(View theView) {\n setUp();\n\n\n }", "@Override\n public void onClick(View v) {\n if (editEventId == null && proposal==null){\n if(canGoNext()){\n dialog = UbiQuoBusinessUtils.defaultProgressBar(\"Caricamento in corso\",getActivity());\n dialog.show();\n updateStaticData();\n submitEvent();\n }\n }\n\n if(editEventId != null){\n dialog = UbiQuoBusinessUtils.defaultProgressBar(\"Caricamento in corso\",getActivity());\n dialog.show();\n updateStaticData();\n editEvent(editEventId,editEventCity);\n }\n\n if(proposal != null){\n dialog = UbiQuoBusinessUtils.defaultProgressBar(\"Caricamento in corso\",getActivity());\n dialog.show();\n updateStaticData();\n submitProposal(proposal.getString(\"id\"));\n }\n }", "@Override\n public void onClick(View v) {\n boolean enable = true;\n if(nextPhysicianAvailableCheckbox.isChecked()) {\n enable = false;\n }\n for (int i = 0; i < nearbyPhysicianListLayout.getChildCount(); i++) {\n nearbyPhysicianListLayout.getChildAt(i).setEnabled(enable);\n }\n }", "public void clickDemandSideManagement();", "@Override\r\n\tpublic void mouseClicked(MouseEvent arg0) {\n\t\tGeneralFrame.GFrame.changePanel(new MainScreenTeacher(), true);\r\n\t}", "@Override\r\n\t\tpublic void onClick(View v) {\n\t\t\tonLoveClick(helper, recommendRoute);\r\n//\t\t\tboolean isCollected = VGDao.getInstance(getContext()).getRecommendRouteCollected(recommendRoute.getRouteID());\r\n//\t\t\thelper.setImageSelected(R.id.bigscenelist_love_iv, (isCollected==false));\r\n//\t\t\tVGDao.getInstance(getContext()).setRecommendRouteCollected(recommendRoute.getRouteID(), (isCollected==false)?1:0);\r\n\t\t}", "@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\tClickRideControl();\n\t\t\t}", "@Override\r\n\t\t\t\tpublic void onClick() {\n\r\n\t\t\t\t}", "@Override\r\n\t\t\t\tpublic void onClick() {\n\r\n\t\t\t\t}", "@Override\n\t\tpublic void onClick(View view) {\n\t\t\tswitch(view.getId())\n\t\t\t{\n\t\t\tcase R.id.route_show_part:\n\t\t\t\tif(!isShow){\n\t\t\t\t\tisShow=true;\n\t\t\t\t\thideTriangle.setVisibility(View.VISIBLE);\n\t\t\t\t\tRoute_hide.setVisibility(View.VISIBLE);\n\t\t\t\t\tAnimation HideToshow_Animation = AnimationUtils.loadAnimation(context, R.anim.route_hide_show);\n\t\t\t\t\tRoute_hide.startAnimation(HideToshow_Animation);\n\t\t\t\t}\n\t\t\t\telse \n\t\t\t\t{\n\t\t\t\t\tisShow=false;\n\t\t\t\t\thideTriangle.setVisibility(View.GONE);\n\t\t\t\t\tRoute_hide.setVisibility(View.GONE);\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\tcase R.id.route_collect_botton:\n\t\t\t\tif((Boolean)view.getTag()){\n\t\t\t\t\tview.setTag(false);\n\t\t\t\t\tBaseAppClient.addCollectRoute(collectRoute);\n\t\t\t\t\t((Button)view).setText(context.getResources().getString(R.string.cancelCollect));\n\t\t\t\t}\n\t\t\t\telse \n\t\t\t\t{\n\t\t\t\t\tview.setTag(true);\n\t\t\t\t\t((Button)view).setText(context.getResources().getString(R.string.title_left_collect));\n\t\t\t\t\tBaseAppClient.removeCollectRoute(collectRoute);\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\t\n\t\t\t}\n\t\t}", "@Override\n public void onClick(View view) {\n Intent compilationIntent = new Intent(Playlists.this, Playing_now.class);\n startActivity(compilationIntent);\n }", "@Override\n\t\t\tpublic void mouseClicked(MouseEvent e) {\n\t\t\t\t\n\t\t\t}", "@Override\n\t\t\tpublic void mouseClicked(MouseEvent e) {\n\t\t\t\t\n\t\t\t}", "@Override\n\t\t\tpublic void mouseClicked(MouseEvent e) {\n\t\t\t\t\n\t\t\t}", "@Override\n\t\t\tpublic void mouseClicked(MouseEvent e) {\n\t\t\t\t\n\t\t\t}", "@Override\n\t\t\tpublic void mouseClicked(MouseEvent e) {\n\t\t\t\t\n\t\t\t}", "@Override\n\t\t\tpublic void mouseClicked(MouseEvent e) {\n\t\t\t\t\n\t\t\t}", "@Override\n\t\t\tpublic void mouseClicked(MouseEvent e) {\n\t\t\t\t\n\t\t\t}", "@Override\n\t\t\tpublic void mouseClicked(MouseEvent e) {\n\t\t\t\t\n\t\t\t}", "@Override\n\t\t\tpublic void mouseClicked(MouseEvent e) {\n\t\t\t\t\n\t\t\t}", "@Override\n\t\t\tpublic void mouseClicked(MouseEvent e) {\n\t\t\t\t\n\t\t\t}", "@Override\n\t\t\tpublic void mouseClicked(MouseEvent e) {\n\t\t\t\t\n\t\t\t}", "public void clickedPresentationNew() {\n\t\t\n\t}", "@Override\n\t\t\tpublic void onClick(View v) {\n\n\t\t\t\toptb=btnoptb.getText().toString();\n\t\t\t\tCheckAns(optb,currentPosition);\n\t\t\t\t//Log.e(\"ans\", optb);\n\n\t\t\t}", "public void onYesButtonClicked() {\n changeAfterClientPick();\n }", "@Override\n\tpublic void onClick(View arg0) {\n\t\tswitch (arg0.getId()) {\n\t\tcase R.id.navigation:\n\t\t\tgotoBaiduMap();\n\t\t\tbreak;\n\t\tcase R.id.location:\n\t\t\tlocationIv.setEnabled(false);\n\t\t\tMapStatusUpdate msu = MapStatusUpdateFactory.zoomTo(15.0f);\n\t\t\tbaiduMap.setMapStatus(msu);\n\t\t\t// 设置定位监听器,其实是启动了定位\n\t\t\tLocationUtil.getInstance(_activity).startOneLocation(\n\t\t\t\t\tOneLocationListener);\n\n\t\t\tbreak;\n\t\tcase R.id.refresh:\n\n\t\t\tbreak;\n\t\tcase R.id.list:\n\t\t\tBundle playground = new Bundle();\n\t\t\tplayground.putInt(\"type\", type);\n\t\t\tif (isTest) {// 测试机构\n\t\t\t\tfinish();\n\t\t\t} else {\n\t\t\t\tif (isSwitch) {\n\t\t\t\t\tsetResult(RESULT_OK, playground);\n\t\t\t\t\tfinish();\n\t\t\t\t} else {\n\t\t\t\t\tplayground.putBoolean(\"isSwitch\", true);\n\t\t\t\t\tUIHelper.jumpForResult(_activity,\n\t\t\t\t\t\t\tNearbyElevatorPlaygroundListActivity.class,\n\t\t\t\t\t\t\tplayground, 1006);\n\t\t\t\t}\n\t\t\t}\n\t\t\tbreak;\n\t\tcase R.id.search:\n\t\t\tif (!TextUtils.isEmpty(input.getText().toString()))\n\t\t\t\tsearch(input.getText().toString());\n\t\t\tbreak;\n\n\t\tdefault:\n\t\t\tbreak;\n\t\t}\n\t}", "@Override\n public void onClick(View view) {\n mVoteListener.editListener(\"newQuestion\",\n \"newOptionOne\", \"newOptionTwo\");\n }", "public void mouseClicked(MouseEvent e)\n {\n displaySelectedQuestion();\n }", "@Override\n\t\tpublic void onClick(Widget sender) {\n\t\t\t\n\t\t}", "@Override\r\n\t\tpublic void onClick(View v) {\n\t\t\tIntent intent = new Intent(getActivity(), AddPlanActivity.class);\r\n\t\t\tstartActivityForResult(intent, ADDPLAN_REQUEST_CODE);\r\n\t\t}", "private void OnClick(){\n onWidgetClickListener.onClick(getViewId());\n }", "@Override\n\t\t\tpublic void mouseClicked(MouseEvent e) {\n\t\t\t\tif(e.getButton()==MouseEvent.BUTTON1)\n\t\t\t\t{\n\t\t\t\t\tif(Conf.isbegin==1)\n\t\t\t\t\t{\n\t\t\t\t\t\tConf.isbegin=0;\n\t\t\t\t\t}\n\t\t\t\t\telse\n\t\t\t\t\t{\n\t\t\t\t\t\tConf.isbegin=1;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tif(e.getButton()==MouseEvent.BUTTON3)\n\t\t\t\t{\n\t\t\t\t\tif(Conf.isreplay==1)\t\n\t\t\t\t\t{\n\t\t\t\t\t\tConf.isreplay=0;\n\t\t\t\t\t}\n\t\t\t\t\telse\n\t\t\t\t\t{\n\t\t\t\t\t\tConf.isreplay=1;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t \n\t\t\t\t\n\t\t\t}", "@Override\n\t\t\tpublic void onClick(View v) {\n\n\t\t\t\tif (pageTitle.equals(\"Trails\")) {\n\t\t\t\t\tif (!LLDCApplication.isInsideThePark\n\t\t\t\t\t\t\t&& !LLDCApplication.isDebug) {\n\t\t\t\t\t\tLLDCApplication\n\t\t\t\t\t\t\t\t.onShowToastMesssage(\n\t\t\t\t\t\t\t\t\t\tgetActivity(),\n\t\t\t\t\t\t\t\t\t\t\"Navigation will not function as it appears you are outside of the park or your GPS is not active.\");\n\t\t\t\t\t} else if (LLDCApplication.selectedModel.getWyapoitnList()\n\t\t\t\t\t\t\t.size() > 0) {\n\t\t\t\t\t\tIntent intent = new Intent(getActivity(),\n\t\t\t\t\t\t\t\tMapNavigationActivity.class);\n\t\t\t\t\t\tintent.putExtra(\"PAGETITLE\", \"Trails\");\n\t\t\t\t\t\tgetActivity().startActivity(intent);\n\t\t\t\t\t} else {\n\t\t\t\t\t\tLLDCApplication.onShowToastMesssage(getActivity(),\n\t\t\t\t\t\t\t\t\"Trail data is not present.\");\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}", "public void mouseClicked(MouseEvent event){\n if (event.getClickCount() == 2) {\r\n //call teacherTabMethod\r\n teacherTabMethod();\r\n } \r\n }", "@Override\n\t\tpublic void onClick(View v) {\n\t\t\tswitch (v.getId()){\n\t\t\t\tcase R.id.search_add_btn:\n\t\t\t\t\tfind_add_ll.setVisibility(View.VISIBLE);\n\t\t\t\t\tbreak;\n\t\t\t\tcase R.id.find_distence_ll:\n\t\t\t\t\tchoice = \"place\";\n\t\t\t\t\tFindHttpPost();\n\t\t\t\t\tfind_add_ll.setVisibility(View.GONE);\n\t\t\t\t\tbreak;\n\t\t\t\tcase R.id.find_hot_ll:\n\t\t\t\t\tchoice = \"heat\";\n\t\t\t\t\tFindHttpPost();\n\t\t\t\t\tfind_add_ll.setVisibility(View.GONE);\n\t\t\t\t\tbreak;\n\t\t\t\tdefault:\n\t\t\t\t\tbreak;\n\t\t\t}\n\t\t}", "@Override\n\t\t\tpublic void onClick(View arg0) {\n\t\t\t\tpulllist();\n\t\t\t}", "@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\tstartActivity(openTimetable);\n\t\t\t\t//setContentView(R.layout.activity_timetable__gui);\n\t\t\t}", "@Override\r\n public void onClick(View arg0) {\n appGlobals.setBusinessType(\"13\");\r\n CheckActivityContainer.changeFragment(R.id.checkmainpage, new CheckStructureActivity());\r\n\r\n }", "@Override\n\tpublic void onClick() {\n\t\t\n\t}", "@Override\n\t\t\t\t\tpublic void mouseClicked(MouseEvent e) {\n\t\t\t\t\t\tif(!game.getQuestions()[row][col].hasBeenAsked()) {\n\t\t\t\t\t\t\tupdates.append(\"\\n\" + teamList[game.getWhoseTurn()] + \" chose the question in \" + categories[row] + \" worth $\" + values[col] + \".\");\n\t\t\t\t\t\t\tquestionView(col, row);\n\t\t\t\t\t\t\tquestionPanel.setBackground(Color.GRAY);\n\t\t\t\t\t\t}\n\t\t\t\t\t}", "@Override\n public void onClick(View v) {\n int id = v.getId();\n\n if (id == R.id.mini) {\n onWork();\n }\n }", "public void editBtnOnclick()\r\n\t{\r\n\t\tif(cardSet.getCards().size() != 0)\r\n\t\t\tMainRunner.getSceneSelector().switchToCardEditor();\r\n\t}", "private void FortifyButtonMouseClicked(java.awt.event.MouseEvent evt) {// GEN-FIRST:event_FortifyButtonMouseClicked\r\n\t\trisk.setState(RiskGameModel.FORTIFY);\r\n\t\trisk.notifyPhaseViewChange();\r\n\t\tstatusLabel.setText(\"Select a country move armies from\");\r\n\t\tUtility.writeLog(\"Fortify Phase entered\");\r\n\t}", "@Override\n public void onClick(View v) {\n setGameTotal();\n\n // Call other player when click on hold\n callOtherPlayer();\n\n }" ]
[ "0.61023647", "0.6086949", "0.6086949", "0.6031291", "0.60177815", "0.5994519", "0.5932244", "0.59251124", "0.58823735", "0.5844758", "0.5833951", "0.58330435", "0.5756417", "0.5745905", "0.574195", "0.57344544", "0.5722098", "0.57153463", "0.57151186", "0.57151186", "0.57134753", "0.5707566", "0.5707393", "0.5704666", "0.5701153", "0.5692832", "0.56857294", "0.5681985", "0.56757504", "0.5659327", "0.5646728", "0.56460863", "0.564473", "0.5636694", "0.56345433", "0.56345433", "0.56345433", "0.56343037", "0.562354", "0.5603454", "0.5596589", "0.55931365", "0.55879235", "0.5582686", "0.5569441", "0.55675715", "0.5562053", "0.5559832", "0.5558097", "0.5548216", "0.5548216", "0.5548216", "0.5548216", "0.5538763", "0.5535231", "0.5534203", "0.55273503", "0.55259365", "0.55169755", "0.551617", "0.55048615", "0.5503719", "0.5502318", "0.5500323", "0.54972893", "0.54972893", "0.54935586", "0.54934394", "0.54912686", "0.54912686", "0.54912686", "0.54912686", "0.54912686", "0.54912686", "0.54912686", "0.54912686", "0.54912686", "0.54912686", "0.54912686", "0.5490243", "0.54902023", "0.548924", "0.5486746", "0.5483425", "0.5482803", "0.5480948", "0.5478848", "0.54788154", "0.5477206", "0.54677665", "0.54668236", "0.5463778", "0.54603", "0.5459432", "0.5459423", "0.54586667", "0.5456096", "0.54530233", "0.54512227", "0.5449518", "0.5449258" ]
0.0
-1
Inflate the menu; this adds items to the action bar if it is present.
@Override public boolean onCreateOptionsMenu(Menu menu) { getMenuInflater().inflate(R.menu.menu_main, menu); return true; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n \tMenuInflater inflater = getMenuInflater();\n \tinflater.inflate(R.menu.main_activity_actions, menu);\n \treturn super.onCreateOptionsMenu(menu);\n }", "@Override\n public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n super.onCreateOptionsMenu(menu, inflater);\n inflater.inflate(R.menu.actions, menu);\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n \tgetMenuInflater().inflate(R.menu.actions, menu);\n \treturn super.onCreateOptionsMenu(menu);\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.actions_bar, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tMenuInflater inflater = getMenuInflater();\n\t\tinflater.inflate(R.menu.main_actions, menu);\n\n\t\treturn super.onCreateOptionsMenu(menu);\n\t}", "@Override\r\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tMenuInflater inflater = getMenuInflater();\r\n\t\tinflater.inflate(R.menu.action_bar_menu, menu);\r\n\t\tmMenu = menu;\r\n\t\treturn super.onCreateOptionsMenu(menu);\r\n\t}", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.act_bar_menu, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\r\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tMenuInflater inflater = getMenuInflater();\r\n inflater.inflate(R.menu.main_actions, menu);\r\n\t\treturn true;\r\n //return super.onCreateOptionsMenu(menu);\r\n\t}", "@Override\r\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t MenuInflater inflater = getMenuInflater();\r\n\t inflater.inflate(R.menu.action_bar_all, menu);\r\n\t return super.onCreateOptionsMenu(menu);\r\n\t}", "@Override\n\tpublic boolean onCreateOptionsMenu(android.view.Menu menu) {\n\t\t super.onCreateOptionsMenu(menu);\n\t\tMenuInflater muu= getMenuInflater();\n\t\tmuu.inflate(R.menu.cool_menu, menu);\n\t\treturn true;\n\t\t\n\t\t\n\t}", "@Override\r\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.adventure_archive, menu);\r\n\t\treturn true;\r\n\t}", "@Override\r\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.archive_menu, menu);\r\n\t\treturn true;\r\n\t}", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.main_activity_actions, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.main_activity_actions, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.main_activity_actions, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n \tpublic void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n \t\tinflater.inflate(R.menu.main, menu);\n \t\tsuper.onCreateOptionsMenu(menu, inflater);\n \t}", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t MenuInflater inflater = getMenuInflater();\n\t inflater.inflate(R.menu.action_menu, menu);\n\t return super.onCreateOptionsMenu(menu);\n\t}", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tsuper.onCreateOptionsMenu(menu);\n\t\tMenuInflater bow=getMenuInflater();\n\t\tbow.inflate(R.menu.menu, menu);\n\t\treturn true;\n\t\t}", "@Override\n public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n inflater.inflate(R.menu.action_menu, menu);\n super.onCreateOptionsMenu(menu, inflater);\n }", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tMenuInflater inflater = getMenuInflater();\n\t\tinflater.inflate(R.menu.main, menu);\n\t\treturn super.onCreateOptionsMenu(menu);\n\t}", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tMenuInflater inflater = getMenuInflater();\n\t\tinflater.inflate(R.menu.main, menu);\n\t\treturn super.onCreateOptionsMenu(menu);\n\t}", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tMenuInflater inflater = getMenuInflater();\n\t\tinflater.inflate(R.menu.main, menu);\n\t\treturn super.onCreateOptionsMenu(menu);\n\t}", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tMenuInflater inflater = getMenuInflater();\n\t\tinflater.inflate(R.menu.main, menu);\n\t\treturn super.onCreateOptionsMenu(menu);\n\t}", "@Override\t\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\t\t\n\t\t/* Inflate the menu; this adds items to the action bar if it is present */\n\t\tgetMenuInflater().inflate(R.menu.act_main, menu);\t\t\n\t\treturn true;\n\t}", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflate = getMenuInflater();\n inflate.inflate(R.menu.menu, ApplicationData.amvMenu.getMenu());\n return true;\n }", "@Override\n\t\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\t\tgetMenuInflater().inflate(R.menu.menu, menu);\n\t\t\treturn true; \n\t\t\t\t\t\n\t\t}", "@Override\n\tpublic void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n\t\tinflater.inflate(R.menu.main, menu);\n\t}", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.menu, menu);//Menu Resource, Menu\n return true;\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.menu, menu);//Menu Resource, Menu\n return true;\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) \n {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.menu_bar, menu);\n return true;\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.menu_item, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n\tpublic void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n\t\tinflater.inflate(R.menu.menu, menu);\n\t\tsuper.onCreateOptionsMenu(menu, inflater);\n\t}", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t MenuInflater inflater = getMenuInflater();\n\t inflater.inflate(R.menu.menu, menu);\n\t return super.onCreateOptionsMenu(menu);\n\t}", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tMenuInflater inflater = getMenuInflater();\n\t inflater.inflate(R.menu.menu, menu);\n\t \n\t\treturn super.onCreateOptionsMenu(menu);\n\t}", "@Override\n\tpublic void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n\t\tsuper.onCreateOptionsMenu(menu, inflater);\n\t\t//menu.clear();\n\t\tinflater.inflate(R.menu.soon_to_be, menu);\n\t\t//getActivity().getActionBar().show();\n\t\t//getActivity().getActionBar().setBackgroundDrawable(\n\t\t\t\t//new ColorDrawable(Color.rgb(223, 160, 23)));\n\t\t//return true;\n\t}", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n this.getMenuInflater().inflate(R.menu.main, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n super.onCreateOptionsMenu(menu, inflater);\n inflater.inflate(R.menu.main, menu);\n }", "@Override\n\tpublic void onCreateOptionsMenu( Menu menu, MenuInflater inflater )\n\t{\n\t\tsuper.onCreateOptionsMenu( menu, inflater );\n\t}", "@Override\r\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.main, menu);\r\n\t\treturn super.onCreateOptionsMenu(menu);\r\n\t}", "@Override\r\n public boolean onCreateOptionsMenu(Menu menu) {\r\n \t// We must call through to the base implementation.\r\n \tsuper.onCreateOptionsMenu(menu);\r\n \t\r\n MenuInflater inflater = getMenuInflater();\r\n inflater.inflate(R.menu.main_menu, menu);\r\n\r\n return true;\r\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.main, menu);//Menu Resource, Menu\n return true;\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.main, menu);//Menu Resource, Menu\n return true;\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater= getMenuInflater();\n inflater.inflate(R.menu.menu_main, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n super.onCreateOptionsMenu(menu, inflater);\n inflater.inflate(R.menu.inter_main, menu);\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.menu, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.action, menu);\n\t\treturn true;\n\t}", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.menu, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.menu, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n public boolean onCreateOptionsMenu (Menu menu){\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.menu_main, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.custom_action_bar, menu);\n\t\treturn true;\n\t}", "public void initMenubar() {\n\t\tremoveAll();\n\n\t\t// \"File\"\n\t\tfileMenu = new FileMenuD(app);\n\t\tadd(fileMenu);\n\n\t\t// \"Edit\"\n\t\teditMenu = new EditMenuD(app);\n\t\tadd(editMenu);\n\n\t\t// \"View\"\n\t\t// #3711 viewMenu = app.isApplet()? new ViewMenu(app, layout) : new\n\t\t// ViewMenuApplicationD(app, layout);\n\t\tviewMenu = new ViewMenuApplicationD(app, layout);\n\t\tadd(viewMenu);\n\n\t\t// \"Perspectives\"\n\t\t// if(!app.isApplet()) {\n\t\t// perspectivesMenu = new PerspectivesMenu(app, layout);\n\t\t// add(perspectivesMenu);\n\t\t// }\n\n\t\t// \"Options\"\n\t\toptionsMenu = new OptionsMenuD(app);\n\t\tadd(optionsMenu);\n\n\t\t// \"Tools\"\n\t\ttoolsMenu = new ToolsMenuD(app);\n\t\tadd(toolsMenu);\n\n\t\t// \"Window\"\n\t\twindowMenu = new WindowMenuD(app);\n\n\t\tadd(windowMenu);\n\n\t\t// \"Help\"\n\t\thelpMenu = new HelpMenuD(app);\n\t\tadd(helpMenu);\n\n\t\t// support for right-to-left languages\n\t\tapp.setComponentOrientation(this);\n\t}", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.main, menu);\n\t\treturn super.onCreateOptionsMenu(menu);\n\t}", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tsuper.onCreateOptionsMenu(menu);\n\t\tMenuInflater blowUp=getMenuInflater();\n\t\tblowUp.inflate(R.menu.welcome_menu, menu);\n\t\treturn true;\n\t}", "@Override\r\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.listing, menu);\r\n\t\treturn true;\r\n\t}", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.item, menu);\n return true;\n }", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.resource, menu);\n\t\treturn true;\n\t}", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater= getMenuInflater();\n inflater.inflate(R.menu.menu,menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.main, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.main, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.home_action_bar, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.template, menu);\n\t\treturn true;\n\t}", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n Log.d(\"onCreateOptionsMenu\", \"create menu\");\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.socket_activity_actions, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.main_menu, menu);//Menu Resource, Menu\n\n return true;\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.actionbar, menu);\n return true;\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(toolbar_res, menu);\n updateMenuItemsVisibility(menu);\n return true;\n }", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\t// \n\t\tMenuInflater mi = getMenuInflater();\n\t\tmi.inflate(R.menu.thumb_actv_menu, menu);\n\t\t\n\t\treturn super.onCreateOptionsMenu(menu);\n\t}", "@Override\n\tpublic void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n\t\tsuper.onCreateOptionsMenu(menu, inflater);\n\t}", "@Override\n\tpublic void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n\t\tsuper.onCreateOptionsMenu(menu, inflater);\n\t}", "@Override\n\tpublic void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n\t\tsuper.onCreateOptionsMenu(menu, inflater);\n\t}", "@Override\n public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n super.onCreateOptionsMenu(menu, inflater);\n }", "@Override\n\t\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\t\tgetMenuInflater().inflate(R.menu.main, menu);\n\t\t\treturn true;\n\t\t}", "@Override\n\t\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\t\tgetMenuInflater().inflate(R.menu.main, menu);\n\t\t\treturn true;\n\t\t}", "@Override\n\t\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\t\tgetMenuInflater().inflate(R.menu.main, menu);\n\t\t\treturn true;\n\t\t}", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.swag_list_activity_menu, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n super.onCreateOptionsMenu(menu, inflater);\n\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.main_menu, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n\tpublic boolean onCreateOptionsMenu(android.view.Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.main, menu);\n\n\t\treturn true;\n\t}", "@Override\n\t\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\t\tgetMenuInflater().inflate(R.menu.main, menu);\n\t\t\treturn true;\n\t}", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.jarvi, menu);\n\t\treturn super.onCreateOptionsMenu(menu);\n\t}", "public void onCreateOptionsMenu(Menu menu, MenuInflater inflater){\n }", "@Override\n public void onCreateOptionsMenu(Menu menu, MenuInflater menuInflater) {\n menuInflater.inflate(R.menu.main, menu);\n\n }", "@Override\r\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.add__listing, menu);\r\n\t\treturn true;\r\n\t}", "@Override\r\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.actmain, menu);\r\n return true;\r\n }", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.buat_menu, menu);\n\t\treturn true;\n\t}", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.layout.menu, menu);\n\t\treturn true;\n\t}", "@Override\npublic boolean onCreateOptionsMenu(Menu menu) {\n\n\t\n\t\n\tgetMenuInflater().inflate(R.menu.main, menu);\n\t\n\treturn super.onCreateOptionsMenu(menu);\n}", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.ichat, menu);\n\t\treturn true;\n\t}", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.menu, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n\tpublic void onCreateOptionsMenu(Menu menu, MenuInflater inflater)\n\t{\n\t\tsuper.onCreateOptionsMenu(menu, inflater);\n\t\tinflater.inflate(R.menu.expenses_menu, menu);\n\t}", "@Override\n \tpublic boolean onCreateOptionsMenu(Menu menu) {\n \t\tgetMenuInflater().inflate(R.menu.main, menu);\n \t\treturn true;\n \t}", "@Override\n \tpublic boolean onCreateOptionsMenu(Menu menu) {\n \t\tgetMenuInflater().inflate(R.menu.main, menu);\n \t\treturn true;\n \t}", "@Override\n \tpublic boolean onCreateOptionsMenu(Menu menu) {\n \t\tgetMenuInflater().inflate(R.menu.main, menu);\n \t\treturn true;\n \t}", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.action_bar, menu);\n return true;\n }", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tsuper.onCreateOptionsMenu(menu);\n\t\tMenuInflater blowUp = getMenuInflater();\n\t\tblowUp.inflate(R.menu.status, menu);\n\t\treturn true;\n\t}", "@Override\r\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.menu, menu);\r\n\t\treturn true;\r\n\t}", "@Override\n\tpublic void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n\t}", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tMenuInflater inflater = getMenuInflater();\n\t\tinflater.inflate(R.menu.main, menu);\n\t\treturn true;\n\t}", "@Override\r\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.ui_main, menu);\r\n\t\treturn true;\r\n\t}", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.main_activity_actions, menu);\n return true;\n }", "@Override\n public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n inflater.inflate(R.menu.menu_main, menu);\n super.onCreateOptionsMenu(menu, inflater);\n }", "@Override\n public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n inflater.inflate(R.menu.menu_main, menu);\n super.onCreateOptionsMenu(menu, inflater);\n }" ]
[ "0.7246102", "0.7201358", "0.7194834", "0.7176498", "0.71066517", "0.7039537", "0.7037961", "0.70112145", "0.70094734", "0.69807225", "0.6944953", "0.69389373", "0.6933199", "0.6916928", "0.6916928", "0.6891486", "0.68831646", "0.68754137", "0.68745375", "0.68621665", "0.68621665", "0.68621665", "0.68621665", "0.68515885", "0.68467957", "0.68194443", "0.6817494", "0.6813087", "0.6813087", "0.6812847", "0.6805774", "0.6801204", "0.6797914", "0.6791314", "0.6789091", "0.67883503", "0.6783642", "0.6759701", "0.6757412", "0.67478645", "0.6744127", "0.6744127", "0.67411774", "0.6740183", "0.6726017", "0.6723245", "0.67226785", "0.67226785", "0.67208904", "0.67113477", "0.67079866", "0.6704564", "0.6699229", "0.66989094", "0.6696622", "0.66952467", "0.66865396", "0.6683476", "0.6683476", "0.6682188", "0.6681209", "0.6678941", "0.66772443", "0.6667702", "0.66673946", "0.666246", "0.6657578", "0.6657578", "0.6657578", "0.6656586", "0.66544783", "0.66544783", "0.66544783", "0.66524047", "0.6651954", "0.6650132", "0.66487855", "0.6647077", "0.66467404", "0.6646615", "0.66464466", "0.66449624", "0.6644209", "0.6643461", "0.6643005", "0.66421187", "0.6638628", "0.6634786", "0.6633529", "0.6632049", "0.6632049", "0.6632049", "0.66315657", "0.6628954", "0.66281766", "0.6627182", "0.6626297", "0.6624309", "0.6619582", "0.6618876", "0.6618876" ]
0.0
-1
Handle action bar item clicks here. The action bar will automatically handle clicks on the Home/Up button, so long as you specify a parent activity in AndroidManifest.xml.
@Override public boolean onOptionsItemSelected(MenuItem item) { if (mDrawerToggle.onOptionsItemSelected(item)) { return true; } // Handle your other action bar items... return super.onOptionsItemSelected(item); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public boolean onOptionsItemSelected(MenuItem item) { Handle action bar item clicks here. The action bar will\n // automatically handle clicks on the Home/Up button, so long\n // as you specify a parent activity in AndroidManifest.xml.\n\n //\n // HANDLE BACK BUTTON\n //\n int id = item.getItemId();\n if (id == android.R.id.home) {\n // Back button clicked\n this.finish();\n }\n\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n // app icon in action bar clicked; goto parent activity.\n onBackPressed();\n return true;\n default:\n return super.onOptionsItemSelected(item);\n }\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n // Respond to the action bar's Up/Home button\n case android.R.id.home:\n onBackPressed();\n return true;\n default:\n return super.onOptionsItemSelected(item);\n }\n }", "@Override\r\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\r\n switch (id) {\r\n case android.R.id.home:\r\n // app icon in action bar clicked; go home\r\n this.finish();\r\n return true;\r\n default:\r\n return super.onOptionsItemSelected(item);\r\n }\r\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n if (id == android.R.id.home) {\n // app icon in action bar clicked; go home\n finish();\n }\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n if (id == android.R.id.home) {\n Log.e(\"clik\", \"action bar clicked\");\n finish();\n }\n\n return super.onOptionsItemSelected(item);\n }", "@Override\n\t public boolean onOptionsItemSelected(MenuItem item) {\n\t int id = item.getItemId();\n\t \n\t\t\tif (id == android.R.id.home) {\n\t\t\t\t// Respond to the action bar's Up/Home button\n\t\t\t\t// NavUtils.navigateUpFromSameTask(this);\n\t\t\t\tonBackPressed();\n\t\t\t\treturn true;\n\t\t\t}\n\t \n\t \n\t return super.onOptionsItemSelected(item);\n\t }", "@Override\r\n public boolean onOptionsItemSelected(MenuItem item) {\r\n switch (item.getItemId()) {\r\n // Respond to the action bar's Up/Home button\r\n case android.R.id.home:\r\n finish();\r\n return true;\r\n }\r\n return super.onOptionsItemSelected(item);\r\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n // Respond to the action bar's Up/Home button\n case android.R.id.home:\n finish();\n return true;\n }\n\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n //noinspection SimplifiableIfStatement\n\n switch (item.getItemId()) {\n case android.R.id.home:\n\n // app icon in action bar clicked; goto parent activity.\n this.finish();\n return true;\n default:\n\n return super.onOptionsItemSelected(item);\n\n }\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n //noinspection SimplifiableIfStatement\n\n switch (item.getItemId()) {\n case android.R.id.home:\n\n // app icon in action bar clicked; goto parent activity.\n this.finish();\n return true;\n default:\n\n return super.onOptionsItemSelected(item);\n\n }\n }", "@Override\n\tpublic boolean onOptionsItemSelected(MenuItem item) {\n\t\tswitch (item.getItemId()) {\n\t\tcase android.R.id.home:\n\t\t\tonBackPressed();\n\t\t\treturn true;\n\t\tdefault:\n\t\t\treturn super.onOptionsItemSelected(item);\n\t\t}\n\t}", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n // Handle presses on the action bar items\n switch (item.getItemId()) {\n case android.R.id.home:\n onBackPressed();\n return true;\n case R.id.action_clear:\n return true;\n case R.id.action_done:\n\n return true;\n default:\n return super.onOptionsItemSelected(item);\n }\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n switch (id) {\n case android.R.id.home:\n onActionHomePressed();\n return true;\n }\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n switch (id) {\n case android.R.id.home:\n onBackPressed();\n break;\n }\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n switch (id) {\n case android.R.id.home:\n onBackPressed();\n break;\n }\n\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n\n switch (item.getItemId())\n {\n case android.R.id.home :\n super.onBackPressed();\n break;\n }\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId ()) {\n case android.R.id.home:\n onBackPressed ();\n return true;\n\n default:\n break;\n }\n return super.onOptionsItemSelected ( item );\n }", "@Override\n\tpublic boolean onOptionsItemSelected(MenuItem item) {\n\t switch (item.getItemId()) {\n\t\tcase android.R.id.home:\n\t\t\t// app icon in action bar clicked; go home \n\t\t\tIntent intent = new Intent(this, Kelutral.class); \n\t\t\tintent.addFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP); \n\t\t\tstartActivity(intent); \n\t\t\treturn true;\t\t\n\t case R.id.Search:\n\t \treturn onSearchRequested();\n\t\tcase R.id.AppInfo:\n\t\t\t// Place holder menu item\n\t\t\tIntent newIntent = new Intent(Intent.ACTION_VIEW,\n\t\t\t\t\tUri.parse(\"http://forum.learnnavi.org/mobile-apps/\"));\n\t\t\tstartActivity(newIntent);\n\t\t\treturn true;\n\t\tcase R.id.Preferences:\n\t\t\tnewIntent = new Intent(getBaseContext(), Preferences.class);\n\t\t\tstartActivity(newIntent);\n\t\t\treturn true;\t\n\t }\n\t return false;\n\t}", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n\n case android.R.id.home:\n onBackPressed();\n return true;\n\n }\n return super.onOptionsItemSelected(item);\n\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n onBackPressed();\n return true;\n\n default:\n return super.onOptionsItemSelected(item);\n }\n\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n // Intent homeIntent = new Intent(this, MainActivity.class);\n // homeIntent.addFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP);\n // startActivity(homeIntent);\n finish();\n return true;\n default:\n return (super.onOptionsItemSelected(item));\n }\n\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n // setResult and close the activity when Action Bar Up Button clicked.\n if (item.getItemId() == android.R.id.home) {\n setResult(RESULT_CANCELED);\n finish();\n return true;\n }\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n if (id == android.R.id.home) {\n // This ID represents the Home or Up button. In the case of this\n // activity, the Up button is shown. Use NavUtils to allow users\n // to navigate up one level in the application structure. For\n // more details, see the Navigation pattern on Android Design:\n //\n // http://developer.android.com/design/patterns/navigation.html#up-vs-back\n //\n \tgetActionBar().setDisplayHomeAsUpEnabled(false);\n \tgetFragmentManager().popBackStack();\n return true;\n }\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n\n switch (item.getItemId()) {\n case android.R.id.home:\n super.onBackPressed();\n return true;\n\n default:\n // If we got here, the user's action was not recognized.\n // Invoke the superclass to handle it.\n return super.onOptionsItemSelected(item);\n\n }\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n //noinspection SimplifiableIfStatement\n if(id == android.R.id.home){\n onBackPressed();\n }\n\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n if (id == android.R.id.home) {\n onBackPressed();\n return true;\n }\n\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n onBackPressed();\n return true;\n default:\n return super.onOptionsItemSelected(item);\n\n }\n\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n onBackPressed();\n return true;\n }\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n onBackPressed();\n return true;\n }\n return super.onOptionsItemSelected(item);\n }", "@RequiresApi(api = Build.VERSION_CODES.M)\n @Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n onBackPressed();\n break;\n }\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n onBackPressed();\n return true;\n\n default:\n return super.onOptionsItemSelected(item);\n }\n }", "@Override\r\n\tpublic boolean onOptionsItemSelected(MenuItem item) {\n\t\tif(item.getItemId()==android.R.id.home)\r\n\t\t{\r\n\t\t\tgetActivity().onBackPressed();\r\n\t\t}\r\n\t\treturn super.onOptionsItemSelected(item);\r\n\t}", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n if(item.getItemId()==android.R.id.home){\n super.onBackPressed();\n }\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n switch (id) {\n case android.R.id.home:\n onBackPressed();\n return false;\n }\n\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n //Back arrow\n case android.R.id.home:\n onBackPressed();\n }\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n onBackPressed();\n return true;\n }\n\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n // android.R.id.home是Android内置home按钮的id\n finish();\n break;\n }\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n onBackPressed();\n return true;\n default:\n return super.onOptionsItemSelected(item);\n }\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n onBackPressed();\n return true;\n default:\n return super.onOptionsItemSelected(item);\n }\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n onBackPressed();\n return true;\n default:\n return super.onOptionsItemSelected(item);\n }\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n super.onBackPressed();\n return true;\n }\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n this.onBackPressed();\n return false;\n }\n return false;\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n // Handle action bar item clicks here. The action bar will\n // automatically handle clicks on the Home/Up button, so long\n // as you specify a parent activity in AndroidManifest.xml.\n int id = item.getItemId();\n\n\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n onBackPressed();\n return true;\n default:\n }\n return super.onOptionsItemSelected(item);\n }", "@Override\r\n public boolean onOptionsItemSelected(MenuItem item) {\r\n switch (item.getItemId()) {\r\n\r\n case android.R.id.home:\r\n /*Intent i= new Intent(getApplication(), MainActivity.class);\r\n i.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK | Intent.FLAG_ACTIVITY_CLEAR_TOP);\r\n startActivity(i);*/\r\n onBackPressed();\r\n finish();\r\n return true;\r\n default:\r\n return super.onOptionsItemSelected(item);\r\n }\r\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n switch (id){\n case android.R.id.home:\n this.finish();\n return true;\n }\n\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n // Pass the event to ActionBarDrawerToggle, if it returns\n // true, then it has handled the app icon touch event\n if (mDrawerToggle.onOptionsItemSelected(item)) {\n return true;\n }\n\n // Handle your other action bar items...\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n // Respond to the action bar's Up/Home button\n case android.R.id.home:\n NavUtils.navigateUpFromSameTask(getActivity());\n return true;\n case R.id.action_settings:\n Intent i = new Intent(getActivity(), SettingsActivity.class);\n startActivity(i);\n return true;\n }\n\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n //Fixes the Up Button\n if(id == android.R.id.home) {\n BuildRoute.this.finish();\n return true;\n }\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()){\n case android.R.id.home:\n onBackPressed();\n break;\n }\n return true;\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n\n if (id == android.R.id.home) {\n NavUtils.navigateUpFromSameTask(this);\n }\n\n return super.onOptionsItemSelected(item);\n }", "@Override\r\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\r\n case android.R.id.home:\r\n onBackPressed();\r\n break;\r\n }\r\n return true;\r\n }", "@Override\n\tpublic boolean onOptionsItemSelected(MenuItem item) {\n\t\tif (item.getItemId() == android.R.id.home) {\n\t\t\tfinish();\n\t\t}\n\t\treturn super.onOptionsItemSelected(item);\n\t}", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n\n onBackPressed();\n\n return super.onOptionsItemSelected(item);\n }", "@Override\r\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\r\n if ( id == android.R.id.home ) {\r\n finish();\r\n return true;\r\n }\r\n return super.onOptionsItemSelected(item);\r\n }", "@Override\r\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\r\n\r\n //noinspection SimplifiableIfStatement\r\n if (id == R.id.home) {\r\n NavUtils.navigateUpFromSameTask(this);\r\n return true;\r\n }\r\n\r\n //noinspection SimplifiableIfStatement\r\n if (id == R.id.action_about) {\r\n AboutDialog();\r\n return true;\r\n }\r\n\r\n //noinspection SimplifiableIfStatement\r\n if (id == R.id.action_exit) {\r\n finish();\r\n return true;\r\n }\r\n\r\n\r\n return super.onOptionsItemSelected(item);\r\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n if (id == android.R.id.home) {\n\n this.finish();\n }\n\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n if (id == android.R.id.home) {\n\n this.finish();\n }\n\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item)\n {\n int id = item.getItemId();\n\n //noinspection SimplifiableIfStatement\n if( id == android.R.id.home ) // Back button of the actionbar\n {\n finish();\n return true;\n }\n\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n//noinspection SimplifiableIfStatement\n if (id == android.R.id.home) {\n// finish the activity\n onBackPressed();\n return true;\n }\n\n return super.onOptionsItemSelected(item);\n }", "@Override\r\n\t\tpublic boolean onOptionsItemSelected(MenuItem item) {\n\t\t\tswitch (item.getItemId()) {\r\n\t\t\tcase android.R.id.home:\r\n\t\t\t\tfinish();\r\n\t\t\t\tbreak;\r\n\t\t\tdefault:\r\n\t\t\t\tbreak;\r\n\t\t\t}\r\n\t\t\treturn super.onOptionsItemSelected(item);\r\n\t\t}", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n\n this.finish();\n return true;\n default:\n return super.onOptionsItemSelected(item);\n }\n\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n if (item.getItemId() == android.R.id.home) {\n onBackPressed();\n return true;\n }\n return false;\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n\n if(id == android.R.id.home){\n finish();\n }\n\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n\n if (item.getItemId() == android.R.id.home) {\n finish();\n }\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n //noinspection SimplifiableIfStatement\n if (id == android.R.id.home) {\n onBackPressed();\n return true;\n }\n\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n //noinspection SimplifiableIfStatement\n if (id == android.R.id.home) {\n onBackPressed();\n return true;\n }\n\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n //noinspection SimplifiableIfStatement\n if (id == android.R.id.home) {\n onBackPressed();\n return true;\n }\n\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n //noinspection SimplifiableIfStatement\n if (id == android.R.id.home) {\n onBackPressed();\n return true;\n }\n\n return super.onOptionsItemSelected(item);\n }", "@Override\r\n\tpublic boolean onOptionsItemSelected(MenuItem item) {\n\t\tswitch (item.getItemId()) {\r\n\t\tcase android.R.id.home:\r\n\t\t\tsetResult(RESULT_OK, getIntent());\r\n\t\t\tfinish();\r\n\t\t\tbreak;\r\n\t\t}\r\n\t\treturn true;\r\n\t}", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n finish();\n return true;\n default:\n // If we got here, the user's action was not recognized.\n // Invoke the superclass to handle it.\n return super.onOptionsItemSelected(item);\n\n }\n }", "@Override\n\tpublic boolean onOptionsItemSelected(MenuItem item) {\n\t\tswitch (item.getItemId()) {\n\t\tcase android.R.id.home:\n\t\t\tfinish();\n\t\t\tbreak;\n\n\t\t}\n\t\treturn super.onOptionsItemSelected(item);\n\t}", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n switch (id) {\n\n case android.R.id.home:\n this.finish();\n return true;\n }\n return true;\n }", "@Override\n\tpublic boolean onOptionsItemSelected(MenuItem item) {\n\t\tswitch (item.getItemId()) {\n\t\tcase android.R.id.home:\n\t\t\tfinish();\n\t\t\tbreak;\n\n\t\tdefault:\n\t\t\tbreak;\n\t\t}\n\t\treturn super.onOptionsItemSelected(item);\n\t}", "@Override\n\tpublic boolean onOptionsItemSelected(MenuItem item) {\n\t\tint id = item.getItemId();\n\t\tif (id == android.R.id.home) {\n\t\t\tfinish();\n\t\t\treturn true;\n\t\t}\n\t\treturn super.onOptionsItemSelected(item);\n\t}", "@Override\r\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\r\n if (id == android.R.id.home) {\r\n finish();\r\n return true;\r\n }\r\n return super.onOptionsItemSelected(item);\r\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n onBackPressed();\n //NavUtils.navigateUpFromSameTask(this);\n return true;\n default:\n return super.onOptionsItemSelected(item);\n }\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n // todo: goto back activity from here\n finish();\n return true;\n\n default:\n return super.onOptionsItemSelected(item);\n }\n }", "@Override\r\n public boolean onOptionsItemSelected(MenuItem item) {\r\n // Handle item selection\r\n switch (item.getItemId()) {\r\n case android.R.id.home:\r\n onBackPressed();\r\n return true;\r\n\r\n case me.cchiang.lookforthings.R.id.action_sample:\r\n// Snackbar.make(parent_view, item.getTitle() + \" Clicked \", Snackbar.LENGTH_SHORT).show();\r\n return true;\r\n default:\r\n return super.onOptionsItemSelected(item);\r\n }\r\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n if (id == android.R.id.home) {\n finish();\n }\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n if (id == android.R.id.home) {\n finish();\n }\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n finish();\n return true;\n default:\n return super.onOptionsItemSelected(item);\n }\n\n\n }", "@Override\n\tpublic boolean onOptionsItemSelected(MenuItem item) {\n\t\tswitch (item.getItemId()) {\n\t\tcase android.R.id.home:\n\t\t\tonBackPressed();\n\t\t\treturn true;\n\t\tcase R.id.scan_menu:\n\t\t\tonScan();\n\t\t\tbreak;\n\t\tcase R.id.opt_about:\n\t\t\t//onAbout();\n\t\t\tbreak;\n\t\tcase R.id.opt_exit:\n\t\t\tfinish();\n\t\t\tbreak;\n\t\tdefault:\n\t\t\treturn super.onOptionsItemSelected(item);\n\t\t}\n\t\treturn true;\n\t}", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n //noinspection SimplifiableIfStatement\n if (id == android.R.id.home) {\n super.onBackPressed();\n return true;\n }\n\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n switch (id) {\n case android.R.id.home:\n this.finish();\n return true;\n default:\n return super.onOptionsItemSelected(item);\n }\n }", "@Override\n public boolean onOptionsItemSelected(@NonNull MenuItem item) {\n if (item.getItemId() == android.R.id.home) {\n onBackPressed();\n }\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n switch (id) {\n case android.R.id.home:\n finish();\n return true;\n }\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n\n case android.R.id.home:\n finish();\n return true;\n\n }\n return super.onOptionsItemSelected(item);\n }", "@Override\r\n\tpublic boolean onOptionsItemSelected(MenuItem item) {\r\n\t switch (item.getItemId()) {\r\n\t \t// back to previous page\r\n\t case android.R.id.home:\r\n\t finish();\r\n\t return true;\r\n\t }\r\n\t return super.onOptionsItemSelected(item);\r\n\t}", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n if(id==android.R.id.home){\n finish();\n }\n\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n if (id == android.R.id.home) {\n finish();\n }\n\n return super.onOptionsItemSelected(item);\n }", "@Override\r\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\r\n\r\n //noinspection SimplifiableIfStatement\r\n if (id == android.R.id.home) {\r\n // finish the activity\r\n onBackPressed();\r\n return true;\r\n }\r\n\r\n return super.onOptionsItemSelected(item);\r\n }", "@Override\r\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\r\n\r\n //noinspection SimplifiableIfStatement\r\n if (id == android.R.id.home) {\r\n // finish the activity\r\n onBackPressed();\r\n return true;\r\n }\r\n\r\n return super.onOptionsItemSelected(item);\r\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId())\n {\n case android.R.id.home:\n this.finish();\n return (true);\n }\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n if (id == android.R.id.home) {\n finish();\n return true;\n }\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n if (id == android.R.id.home) {\n finish();\n return true;\n }\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n switch (id){\n case R.id.home:{\n NavUtils.navigateUpFromSameTask(this);\n return true;\n }\n }\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n //noinspection SimplifiableIfStatement\n switch(item.getItemId())\n {\n case android.R.id.home:\n super.onBackPressed();\n break;\n }\n\n return super.onOptionsItemSelected(item);\n }", "@Override\n\tpublic boolean onOptionsItemSelected(MenuItem item) {\n\t\tswitch (item.getItemId()) {\n\t\tcase android.R.id.home:\n\t\t\tfinish();\n\t\t\treturn true;\n\n\t\tdefault:\n\t\t\treturn super.onOptionsItemSelected(item);\n\t\t}\n\t}", "@Override\r\n public boolean onOptionsItemSelected(MenuItem item) {\n\r\n int id = item.getItemId();\r\n if(id==android.R.id.home){\r\n finish();\r\n return true;\r\n }\r\n return super.onOptionsItemSelected(item);\r\n }" ]
[ "0.7904454", "0.78056747", "0.77659833", "0.7727365", "0.7631989", "0.76223314", "0.7584553", "0.75306034", "0.7487836", "0.745791", "0.745791", "0.7438328", "0.74220496", "0.74034584", "0.7391494", "0.73866826", "0.73788977", "0.7370167", "0.7362255", "0.73555887", "0.7345252", "0.734152", "0.73303276", "0.7328559", "0.73255897", "0.73185426", "0.73165184", "0.73132133", "0.7303868", "0.7303868", "0.7301464", "0.7297915", "0.72930884", "0.72863466", "0.72832656", "0.72807384", "0.7278446", "0.72596914", "0.7259592", "0.7259592", "0.7259592", "0.7259204", "0.72497207", "0.7225063", "0.7219175", "0.7216816", "0.720443", "0.7201328", "0.71997535", "0.71924156", "0.71846914", "0.7177496", "0.7168223", "0.7167547", "0.7153918", "0.7153812", "0.71360034", "0.7135014", "0.7135014", "0.7129386", "0.7129096", "0.7124025", "0.7123219", "0.7122818", "0.71221405", "0.7117256", "0.71171826", "0.71171826", "0.71171826", "0.71171826", "0.71166563", "0.7116579", "0.71148115", "0.7112163", "0.71096337", "0.7109013", "0.7105877", "0.70992535", "0.70982933", "0.7095853", "0.7093862", "0.7093862", "0.70863163", "0.7082383", "0.7080991", "0.7080324", "0.7073529", "0.7068395", "0.7061839", "0.7060443", "0.7060233", "0.7051591", "0.70377344", "0.70377344", "0.7035971", "0.7035638", "0.7035638", "0.7032344", "0.7030622", "0.7029514", "0.70190036" ]
0.0
-1
Toast.makeText(this,side_menu[position] + " was selected",Toast.LENGTH_SHORT).show();
@Override public void onItemClick(AdapterView<?> parent, View view, int position, long id) { selectItem(position); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void onClick(DialogInterface dialog, int which, boolean isChecked) {\n if (isChecked) {\n Toast.makeText(MainActivity.this, item[which], Toast.LENGTH_SHORT).show();\n }\n }", "@Override\n public void onItemClick(AdapterView<?> arg0, View arg1,\n int position, long arg3) {\n Toast.makeText(getApplicationContext(), strs[location][position], Toast.LENGTH_SHORT).show();\n }", "@Override\n public boolean onContextItemSelected(MenuItem item) {\n \tToast.makeText(this, item.getTitle(), Toast.LENGTH_LONG).show();\n \treturn true;\n }", "@Override\n public void onItemClick(AdapterView<?> arg0, View arg1,\n int position, long arg3) {\n Toast.makeText(getApplicationContext(), strs[location][position], Toast.LENGTH_SHORT).show();\n }", "public void onEventSelected(int position) {\n Toast toast=Toast.makeText(getApplicationContext(),\"Hello Javatpoint\",Toast.LENGTH_SHORT);\n toast.setMargin(50,50);\n toast.show();\n }", "@Override\n public void onClick(View v) {\n Toast.makeText(context, \"You Clicked \" + titles.get(position), Toast.LENGTH_SHORT).show();\n }", "@Override\n public void onMenuClick() {\n Toast.makeText(activity.getApplicationContext(), \"Menu click\",\n Toast.LENGTH_LONG).show();\n }", "@Override\n public void onClick(View v) {\n lastSelectedSpotIndex=position;\n Toast.makeText(context, \"You Clicked \"+categoryNames[position], Toast.LENGTH_LONG).show();\n }", "@Override\n public void onItemClick(AdapterView<?> parent, View view, int position, long id) {\n\n Log.i(\"Tag\", myfamily.get(position));\n\n Toast.makeText(MainActivity.this, \"Hello \"+myfamily.get(position), Toast.LENGTH_SHORT).show();\n }", "@Override\n public void onClick(View v) {\n Toast.makeText(mContext, \"You Clicked \" + position, Toast.LENGTH_LONG).show();\n }", "@Override\n\tpublic void onItemClick(AdapterView<?> arg0, View arg1, int position, long arg3) {\n\t\tToast.makeText(this, \"Selected=\"+data[position], Toast.LENGTH_SHORT).show();\n\t}", "@Override\n public void onItemClick(AdapterView<?> a, View v, int position, long id) {\n Toast.makeText(getApplicationContext(), \"Selected :\" + \" \" + listData.get(position), Toast.LENGTH_LONG).show();\n }", "@Override\n public void onClick(View v) {\n Toast.makeText(context, \"You Clicked \" + result[position], Toast.LENGTH_SHORT).show();\n }", "@Override\n public void onItemClick(AdapterView<?> parent, View view,\n int position, long id) {\n String SlectedCountry = countryNameThree[+position];\n Toast.makeText(getApplicationContext(), SlectedCountry, Toast.LENGTH_SHORT).show();\n\n }", "@Override\n public void onItemSelected(AdapterView<?> arg0, View arg1, int position, long id) {\n Toast.makeText(getApplicationContext(),country[position] , Toast.LENGTH_LONG).show();\n }", "@Override\n protected void onListItemClick(ListView l, View v, int position, long id)\n {\n String selection = l.getItemAtPosition(position).toString();\n Toast.makeText(this, selection, Toast.LENGTH_LONG).show();\n }", "@Override\n public void onItemClick(AdapterView<?> parent, View view,\n int position, long id) {\n String SlectedCountry = countryName[+position];\n Toast.makeText(getApplicationContext(), SlectedCountry, Toast.LENGTH_SHORT).show();\n\n }", "@Override\n public void onItemClick(AdapterView<?> parent, View view,\n int position, long id) {\n String SlectedCountry = countryNameTwo[+position];\n Toast.makeText(getApplicationContext(), SlectedCountry, Toast.LENGTH_SHORT).show();\n\n }", "@Override\n public boolean onContextItemSelected(MenuItem item) {\n switch (item.getItemId()){\n\n case R.id.item_1:\n Toast.makeText(this, \"Item 1 Clicked\", Toast.LENGTH_SHORT).show();\n break;\n case R.id.item_2:\n Toast.makeText(this, \"Item 2 clicked\", Toast.LENGTH_SHORT).show();\n break;\n case R.id.item_3:\n Toast.makeText(this, \"Item 3 clicked\", Toast.LENGTH_SHORT).show();\n }\n return true;\n }", "@Override\n\t\t\tpublic void onItemClick(AdapterView<?> arg0, View arg1, int arg2,\n\t\t\t\t\tlong arg3) {\n\t\t\t\tToast.makeText(getApplicationContext(), \"Selected Text Is...\"+names[arg2]+\":\"+phones[arg2], 5000).show();\n\t\t\t}", "@Override\n public void onItemClick(AdapterView<?> parent, View view,\n int position, long id) {\n ((TextView) levelDialog.findViewById(R.id.evaluation_title)).setText(st_place[position][0]);\n current_position = position;\n levelDialog.show();\n }", "@Override\n public void onClick(View v) {\n \tSystem.out.println(\"ss1ss\");\n //Toast.makeText(ListViewActivity.this, title[mPosition], Toast.LENGTH_SHORT).show();\n }", "@Override\n public boolean onContextItemSelected(MenuItem item) {\n AdapterView.AdapterContextMenuInfo info = (AdapterView.AdapterContextMenuInfo) item.getMenuInfo();\n try {\n // condition for edit\n if (item.getItemId() == R.id.edit) {\n Toast.makeText(this, \"Edit \" + name[info.position], Toast.LENGTH_SHORT).show(); // show toast when context item selected\n }\n // condition for call\n else if (item.getItemId() == R.id.call) {\n Toast.makeText(this, \"Call to \" + name[info.position], Toast.LENGTH_SHORT).show(); // show toast when context item selected\n }\n // condition for sms\n else if (item.getItemId() == R.id.sms) {\n Toast.makeText(this, \"SMS to \" + name[info.position], Toast.LENGTH_SHORT).show(); // show toast when context item selected\n }\n return true;\n } catch (Exception e) {//if false catch exception\n return true;\n }\n\n }", "@Override\n\tpublic void onItemClick(AdapterView<?> parent, View view, int position, long id) {\n\t\tString text = listview.getItemAtPosition(position)+\"\";\n\t\t\n\t\tToast.makeText(context, \"position=\"+position+\" text=\"+text, Toast.LENGTH_SHORT).show();\n\t}", "@Override\n\t\t\tpublic void onItemSelected(AdapterView<?> arg0, View arg1,\n\t\t\t\t\tint arg2, long arg3) {\n\t\t\t\tToast.makeText(getApplicationContext(), \"Selected Text Is...\"+names[arg2]+\":\"+phones[arg2], 5000).show();\n\t\t\t}", "@Override\n public boolean onMenuItemClick(int position, SwipeMenu menu, int index) {\n switch (index) {\n case 0:\n Toast.makeText(getApplicationContext(), \"Action 1 for \", Toast.LENGTH_SHORT).show();\n break;\n case 1:\n Toast.makeText(getApplicationContext(), \"Action 2 for \", Toast.LENGTH_SHORT).show();\n break;\n }\n return false;\n }", "@Override\n\tpublic void onItemClick(AdapterView<?> parent, View view, int position,\n\t\t\tlong id) {\n\t\tString text=listview.getItemAtPosition(position)+\"\";\n\t\tToast tipsToast=Toast.makeText(this, \"position+\"+position+\"text=\"+text, Toast.LENGTH_SHORT);\n\t\ttipsToast.show();\n\t}", "@Override\n public void onClick(View v) {\n Toast.makeText(ct,\" Blood Group \"+bloodgroup[position], Toast.LENGTH_LONG).show();\n }", "private void selectItem(int position) {\n mDrawerList.setItemChecked(position, true);\n // setTitle(mPlanetTitles[position]);\n setTitle(getResources().getStringArray(R.array.planets_array)[position]);\n mDrawerLayout.closeDrawer(mDrawerList);\n // simpleTV.setText(position + \"\");\n\n\n }", "public void menuClicked(MenuItem menuItemSelected);", "@Override\n\t\t \t public void onItemClick(AdapterView<?> arg0, View arg1,int position, long arg3) {\n\t\t \t \n\t\t \t Toast.makeText(getApplicationContext(), \"Clicked at Position\"+position, Toast.LENGTH_SHORT).show();\n\t\t \t }", "@Override\n public void onClick(View view, int pos) {\n String tag = (String) view.getTag();\n Toast.makeText(XCArcMenuViewDemo.this, tag, Toast.LENGTH_SHORT).show();\n }", "@Override\n public void onMenuClick() {\n Toast.makeText(SearchActivity_.this, \"Menu click\", Toast.LENGTH_LONG).show();\n }", "@Override\n\tprotected void onListItemClick(ListView l, View v, int position, long id) {\n\t\tString selection = l.getItemAtPosition(position).toString();\n\t\tToast.makeText(this, selection, Toast.LENGTH_LONG).show();\n\t}", "@Override\n public void onItemClick(AdapterView<?> parent, View view, int position, long id) {\n Toast.makeText(this, \"ITEM CLICKED\", Toast.LENGTH_SHORT).show();\n }", "@Override\n public void onItemClick(AdapterView<?> adapterView, View view, int position, long l) {\n Toast.makeText(getActivity(), \"You Clicked \"+position+\" item. Wait For Coming Functions\",\n Toast.LENGTH_LONG).show();\n }", "@Override\r\n public void onItemClick(AdapterView<?> adapterView, View view, int i, long l) {\n switch (adapterView.getItemAtPosition(i).toString()) {\r\n case \"Exercise 1\":\r\n Toast.makeText(MainActivity.this, getResources().getString(R.string.main_menu_clicked_msg) + getResources().getString(R.string.ex1), Toast.LENGTH_SHORT).show();\r\n startActivity(new Intent(view.getContext(), LoginActivity.class));\r\n break;\r\n }\r\n }", "@Override\n public void onItemClick(AdapterView<?> parent, View view, int position, long id) {\n Toast.makeText(Cardio.this,cardios.get(position).getTitle(), Toast.LENGTH_SHORT).show();\n }", "@Override\n\t\t\t\tpublic void onItemClick(AdapterView<?> parent, View view,\n\t\t\t\t\t\tint position, long id) {\n\t\t\t\t\tToast.makeText(MainActivity.this, \"我被点击了\", 0).show();\n\t\t\t\t}", "@Override\n\t\t\tpublic void onClick(DialogInterface dialog, int which, boolean isChecked) {\n\t\t\t\tif(isChecked){\n\t\t\t\t\tToast.makeText(TetrisActivityAW.this, \"我喜欢上了\"+multi_list[which]+\"!\",\n\t\t\t\t\t\t\tToast.LENGTH_SHORT).show();\n\t\t\t\t}else{\n\t\t\t\t\tToast.makeText(TetrisActivityAW.this, \"我不喜欢\"+multi_list[which]+\"了!\",\n\t\t\t\t\t\t\tToast.LENGTH_SHORT).show();\n\t\t\t\t}\n\t\t\t}", "@Override\r\n\t\t\tpublic void onClick(View v) {\n\t\t\t\tToast.makeText(getApplication(), \"right\", 1).show();\r\n\t\t\t}", "@Override\n\tpublic boolean onContextItemSelected(MenuItem item) {\n\t\t\n\t\tif(item.getTitle()==\"Ahmedabad\")\n\t\t{\n\t\t\tToast.makeText(MainActivity.this, \"Ahmedabad\", Toast.LENGTH_SHORT)\n\t\t\t.show();\n\t\t\t\n\t\t}\n\t\t\n\t\tif(item.getTitle()==\"Baroda\")\n\t\t{\n\t\t\tToast.makeText(MainActivity.this, \"Baroda\", Toast.LENGTH_SHORT)\n\t\t\t.show();\n\t\t\t\n\t\t}\n\t\t\n\t\tif(item.getTitle()==\"Rajkot\")\n\t\t{\n\t\t\tToast.makeText(MainActivity.this, \"Rajkot\", Toast.LENGTH_SHORT)\n\t\t\t.show();\n\t\t\t\n\t\t}\n\t\tif(item.getTitle()==\"Bhavnagar\")\n\t\t{\n\t\t\tToast.makeText(MainActivity.this, \"Bhavnagar\", Toast.LENGTH_SHORT)\n\t\t\t.show();\n\t\t\t\n\t\t}\n\t\t\n\t\t\n\t\treturn super.onContextItemSelected(item);\n\t}", "public void onClick(DialogInterface dialog, int which) {\n Toast.makeText(getApplicationContext(), \"Select Terms & Conditions\", Toast.LENGTH_SHORT).show();\n }", "private void displayToast(String message) {\n Toast.makeText(OptionActivity.this, message, Toast.LENGTH_SHORT).show();\n }", "@Override\r\n public void onItemClick(AdapterView<?> parent, View view,\r\n int position, long id) {\n String Slecteditem = itemname[+position];\r\n Toast.makeText(getApplicationContext(), Slecteditem, Toast.LENGTH_SHORT).show();\r\n startActivity(new Intent(unlogin.this, product.class));\r\n }", "@Override\n public void onItemSelected(AdapterView<?> parent, View view, int position, long id) {\n String item = parent.getItemAtPosition(position).toString();\n\n // Showing selected spinner item\n Toast.makeText(parent.getContext(), \"Selected: \" + item, Toast.LENGTH_LONG).show();\n\n }", "@Override\n public void onItemClick(View view, int position) {\n Toast.makeText(getContext(), \"You clicked \" + adapter.getItem(position) + \" on row number \" + position, Toast.LENGTH_SHORT).show();\n }", "@Override\n public void onItemClick(AdapterView<?> av, View v, int pos,\n long id)\n {\n Toast.makeText(getActivity(), data.get(pos).get(\"Player\"), Toast.LENGTH_SHORT).show();\n }", "@Override\n public boolean onContextItemSelected(MenuItem item) {\n\n switch (item.getItemId()) {\n\n case R.id.context_menu_edit:\n Toast.makeText(this,\"Edit\" ,Toast.LENGTH_SHORT ).show();\n return true;\n\n case R.id.context_menu_share:\n Toast.makeText(this,\"Share\" ,Toast.LENGTH_SHORT ).show();\n return true;\n\n case R.id.context_menu_delete:\n Toast.makeText(this,\"Delete\" ,Toast.LENGTH_SHORT ).show();\n\n }\n\n return super.onContextItemSelected(item);\n }", "@Override\n public void onItemClick(AdapterView<?> av, View v, int pos,\n long id) {\n\n Toast.makeText(getActivity(), data.get(pos).get(\"Player\"), Toast.LENGTH_SHORT).show();\n\n }", "@Override\n public void onClick(View v) {\n Toast.makeText(RecycleTestActivity.this, pos + \"\", Toast.LENGTH_SHORT)\n .show();\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n\n switch (item.getItemId()) {\n case R.id.menu_resena:\n Toast.makeText(getActivity(), R.string.app_name, Toast.LENGTH_SHORT).show();\n break;\n }\n return true;\n }", "@Override\n\t\t\tpublic void onItemSelected(AdapterView<?> arg0, View arg1,\n\t\t\t\t\tint position, long id) {\n\t\t\t\t\n\t\t\t\tnameoffriend = sp.getItemAtPosition(position).toString();\n\t\t\t\tToast.makeText(getApplicationContext(), nameoffriend, Toast.LENGTH_SHORT).show();\n\t\t\t}", "void onMenuItemClicked();", "@Override\n\t\tpublic void onItemClick(AdapterView<?> arg0, View arg1, int arg2,\n\t\t\t\tlong arg3) {\n\t\t\t\t\n\t\t\tToast.makeText(getBaseContext(), list.get(arg2),\n\t\t\t\tToast.LENGTH_SHORT).show();\n\t\t}", "@Override\n\t\t\tpublic boolean onItemLongClick(AdapterView<?> arg0, View arg1,\n\t\t\t\t\tint arg2, long arg3) {\n\t\t\t\tToast.makeText(getApplicationContext(), \"Selected Text Is...\"+names[arg2]+\":\"+phones[arg2], 5000).show();\n\t\t\t\treturn true;\n\t\t\t}", "@Override\n public void onClick(View v) {\n Toast.makeText(getContext(),\"hey uuuu clicked me \",Toast.LENGTH_SHORT).show();\n }", "@Override\r\n public void onClick(View view) {\r\n Toast.makeText(context, \"satu\" +list_data.get(getAdapterPosition()), Toast.LENGTH_SHORT).show();\r\n\r\n }", "@Override\n public void onItemClick(AdapterView arg0, View arg1, int arg2,\n long arg3) {\n ListView listView = (ListView) arg0;\n getAlertDialog(\"Word\",listView.getItemAtPosition(arg2).toString()).show();\n\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n Toast.makeText(this, item.getTitle(), Toast.LENGTH_SHORT).show();\n return super.onOptionsItemSelected(item);\n }", "@Override\n\t\t\tpublic void onItemSelected(AdapterView<?> parent, View view,\n\t\t\t\t\t\t\t\t\t int position, long id) {\n\t\t\t\tsign_tips = getResources().getStringArray(R.array.sign_excetion_reason)[position];\n\t\t\t}", "@Override\n public void onItemClick(AdapterView<?> parent, View view, int position, long id) {\n System.out.println(\"JE SUIS VRAIMENT A L'ECOLE JUSQU'A PRESENT, MOI MEME JE NE COMPRENDS PAS\");\n //for (Risque r: mRisqueArrayList)\n //{\n if (position == 0)\n {\n Toast.makeText(SignalActivity.this, mRisqueArrayList.get(position).getCaracterisation(), Toast.LENGTH_SHORT).show();\n }\n //}\n }", "@Override\n public void onClick(DialogInterface dialog, int id) {\n String selectedItems = \"\";\n for(Integer i : mSelectedItems){\n selectedItems += items[i] + \",\";\n Log.d(\"selectedIndex = \",items[i].toString());\n }\n\n recipeText.setText(selectedItems);\n //showToast(\"Selected index: \" + selectedIndex);\n\n }", "private void selectItem(int position) {\n if (position == 0) {\n //joj\n Toast.makeText(this, \" clicked on planner \", Toast.LENGTH_SHORT).show();\n //Call the method, actions to take place when clicked on planner\n }\n //add code if clicked on Recipes\n else if (position == 1) {\n Toast.makeText(this, \"clicked on recipes\", Toast.LENGTH_SHORT).show();\n //Call the method, actions to take place when clicked on recipes\n Intent intent = new Intent(FrontPage.this, Recipepage.class);\n startActivity(intent);\n\n } else if (position == 2) {\n\n Toast.makeText(this, \"clicked on Grocery\", Toast.LENGTH_SHORT).show();\n //Call the method, actions to take place when clicked on grocery\n } else if (position == 3)\n\n {\n Toast.makeText(this, \"clicked on groups\", Toast.LENGTH_SHORT).show();\n\n }\n\n\n }", "@Override\n public void onItemClick(AdapterView<?> arg0, View arg1, int position,\n long id) {\n Toast.makeText(getApplicationContext(), actorsList.get(position).getName(), Toast.LENGTH_LONG).show();\n }", "@Override\n\t\t\tpublic void onItemClick(AdapterView<?> parent, View view,\n\t\t\t\t\tint position, long id) {\n\t\t\t\tToast.makeText(getActivity(), listAdapter.getItem(position), Toast.LENGTH_LONG).show();\n\t\t\t}", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n final TextView kor = (TextView) findViewById(R.id.kor);\n\n //noinspection SimplifiableIfStatement\n if (id == R.id.action_who) {\n Intent intent = new Intent(getApplicationContext(),Info.class);\n startActivity(intent);\n }else if(id==R.id.quiz) {\n int diff = korlist.size();\n if (diff > 0) {\n Intent intent = new Intent(getApplicationContext(), quiz.class);\n intent.putExtra(\"englist\", englist);\n intent.putExtra(\"korlist\", korlist);\n startActivity(intent);\n } else {\n Snackbar.make(getWindow().getDecorView(), \"먼저 단어장을 로드해주세요\", Snackbar.LENGTH_LONG).show();\n }\n }/*else if(id==R.id.adj) {\n CustomDialog dialog = new CustomDialog(this);\n dialog.setDialogListener(new CustomDialog.CustomDialogListener() {\n @Override\n public void Clicked(Float value) {\n }\n\n });\n dialog.show();\n }*/\n return super.onOptionsItemSelected(item);\n }", "@Override\n public void onItemClick(AdapterView<?> parent, View view, int position, long id) {\n String message = String.valueOf(guardiansName.get(position));\n clickedGuardian = new String[]\n {String.valueOf(guardiansPhone.get(position)),\n String.valueOf(guardiansName.get(position)),};\n snackbar = Snackbar.make(getActivity().findViewById(R.id.myCoordinatorLayout), message, Snackbar.LENGTH_LONG);\n snackbar.setAction(R.string.Update, new UpdateGuardian());\n snackbar.show();\n }", "public void onItemSelected(AdapterView<?> parent, View view, int position, long id) \r\n\t{\n\t\tString food = parent.getItemAtPosition(position).toString();\r\n\t\t\r\n // Showing selected spinner item\r\n Toast.makeText(parent.getContext(), \"You selected: \" + food,\r\n Toast.LENGTH_LONG).show();\r\n\t\t\r\n\t}", "@Override\n\t\tpublic boolean onOptionsItemSelected(MenuItem item) {\n\t\t\tswitch (item.getItemId()) {\n\t\t\tcase 1:\n\t\t\t\t//Toast msg = Toast.makeText(orgDetails.this, \"Menu 1\", Toast.LENGTH_LONG);\n\t\t\t\t//msg.show();\n\t\t\t\treturn true;\n\t\t\t}\n\t\t\treturn super.onOptionsItemSelected(item);\n\t\t}", "@Override\n public void onItemSelected(AdapterView<?> arg0, View arg1, int position, long id) {\n switch (position)\n {\n case 1:\n break;\n case 2:\n Toast.makeText(this,appointmentTypes[position],Toast.LENGTH_LONG).show();\n /*Intent intent = new Intent(getApplicationContext(), AppointmentRequests.class);\n Bundle b = new Bundle();\n b.putString(\"userid\",userid);\n intent.putExtras(b);\n startActivity(intent);*/\n break;\n case 3:\n break;\n }\n }", "@Override\n public void onItemSelected(AdapterView<?> arg0, View arg1,\n int arg2, long arg3) {\n String mselection = mSpinner.getSelectedItem().toString();\n Toast.makeText(getApplicationContext(), \"selected \" + mselection, 30).show();\n /**** do your code*****/\n\n if (mselection.equals(\"New Location\")){\n Intent i = new Intent(getApplicationContext(), NewLocation.class);\n startActivity(i);\n }\n }", "@Override\n public void onClick(View view) {\n if(nombredeLineaSeleccionada[0].equals(\"Todas\")){\n Toast.makeText(getActivity(), \"ERROR SELECCIONE SOLO UNA LINEA DE COMPETENCIA, ERROR EN: \"+nombredeLineaSeleccionada[0], Toast.LENGTH_SHORT).show();\n }else {\n agregarCanasta();\n }\n //Toast.makeText(getActivity(), nombredeLineaSeleccionada[0], Toast.LENGTH_SHORT).show();\n\n }", "@Override\n public void onItemSelected(AdapterView<?> parent, View view, int position, long id) {\n\n //prendo il valore dell'elemento selezionato\n String item = parent.getItemAtPosition(position).toString();\n\n if(item.equals(\"Colosseo\")){\n Intent openTreasurePage2 = new Intent(TreasurePortalPag1.this,TreasurePortalPag2.class);\n startActivity(openTreasurePage2);\n }\n //visualizzo l'elemento selezionato\n if(!(item.equals(\"\"))&& (!item.equals(\"Colosseo\")))\n Toast.makeText(parent.getContext(),item,Toast.LENGTH_SHORT).show();\n }", "@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\tToast.makeText(context, \"You Clicked \"+imageId[position], Toast.LENGTH_LONG).show();\n\t\t\t}", "@Override\n public void onClick(View v) {\n\n String s = v.getTag().toString();\n int duration = Toast.LENGTH_SHORT;\n Toast toast = Toast.makeText(context, s, duration);\n toast.show();\n }", "@Override\n public void onItemClick(AdapterView<?> parent, View view, int position, long id) {\n TextView channelTitle = (TextView) view.findViewById(R.id.channel_name);\n Toast.makeText(getActivity(), getString(R.string.click_on_channel_message)\n + \" \" + channelTitle.getText() + \"! :-)\", Toast.LENGTH_LONG).show();\n }", "@Override\n public void onItemClicked(RecyclerView recyclerView, int position, View v) {\n Toast.makeText(getApplicationContext(), znamkyItemList.get(position).popis, Toast.LENGTH_LONG).show();\n\n }", "@Override\n public boolean onNavigationItemSelected(@NonNull MenuItem item) {\n\n switch (item.getItemId()) {\n case R.id.action_dashboard:\n Toast.makeText(DashBoardActivity.this,\"dashboard\",Toast.LENGTH_SHORT).show();\n break;\n\n case R.id.action_search:\n Toast.makeText(DashBoardActivity.this,\"search\",Toast.LENGTH_SHORT).show();\n break;\n\n case R.id.action_collection:\n Toast.makeText(DashBoardActivity.this,\"collection\",Toast.LENGTH_SHORT).show();\n break;\n\n case R.id.action_message:\n Toast.makeText(DashBoardActivity.this,\"message\",Toast.LENGTH_SHORT).show();\n break;\n\n case R.id.action_sidemenu:\n Toast.makeText(DashBoardActivity.this,\"sidemenu\",Toast.LENGTH_SHORT).show();\n break;\n }\n return true;\n }", "private void itemSelected(int position) {\n\t\tmessageToPasteFromTheListView=arrayAdapter.getItem(position).getMessage();\n\t\tgetActivity().showDialog(((MainActivity)getActivity()).dialogID);\n\t}", "@Override\n public void onClick(View v) {\n\n\n Toast.makeText(MainSOSActivity.this, \"Stay Safe and Confirm the Message! Your emergnecy conctacts will be notified!\", Toast.LENGTH_SHORT).show();\n\n }", "@Override\n\t\t\tpublic void onPageSelected(int arg0) {\n\t\t\t\tToast.makeText(getBaseContext(), arg0 + \"\", Toast.LENGTH_SHORT).show();\n\t\t\t}", "@Override\n\tpublic boolean onOptionsItemSelected( MenuItem item )\n\t{\n\t\tToast.makeText( getActivity().getApplicationContext(), \"test\", Toast.LENGTH_SHORT ).show();\n\t\treturn super.onOptionsItemSelected( item );\n\t}", "@Override\n public void onClick(final View view) {\n PopupMenu popupMenu = new PopupMenu(getBaseContext(), view);\n popupMenu.getMenuInflater().inflate(R.menu.popup_menu,popupMenu.getMenu());\n popupMenu.setOnMenuItemClickListener(new PopupMenu.OnMenuItemClickListener() {\n @Override\n public boolean onMenuItemClick(MenuItem menuItem) {\n Snackbar.make(view, menuItem.getTitle()+\" is selected\",Snackbar.LENGTH_SHORT).show();\n return true;\n }\n });\n popupMenu.show();\n }", "@Override\n\tpublic void onItemSelected(AdapterView<?> parent, View view, int position,\n\t\t\tlong id) {\n\t\tString text = spnner_city.getSelectedItem().toString();\n\t\tToast.makeText(getApplicationContext(), text, Toast.LENGTH_LONG)\n\t\t.show();\n\n\t}", "@Override\n public void onItemClick(AdapterView<?> parent, View view, int position, long id) {\n\n String AlertTxt = \"\\\"\" + productList.get(position).getTitle() + \"\\\"\\n\" + getResources().getString(R.string.freeques);\n\n FreeShopDialog alert = new FreeShopDialog.Builder()\n .setMessage(AlertTxt)\n .setImage(productList.get(position).getImageId())\n .setYesButton(R.string.yes)\n .setNoButton(R.string.no)\n .setLayout(R.layout.shop_box)\n .setPosition(position)\n .build();\n alert.setActivity(activity);\n alert.show(getFragmentManager(), \"FREESHIT\");\n }", "@Override\n public void onItemClick(AdapterView<?> arg0, View arg1, int arg2,\n long arg3) {\n int Index = ((Settings_ItemObject) arg0.getItemAtPosition(arg2))\n .getIndex();\n int ThisOptionId = ((Settings_ItemObject) arg0.getItemAtPosition(arg2))\n .getOptionId();\n int ThisImg = ((Settings_ItemObject) arg0.getItemAtPosition(arg2))\n .getImgId();\n String Menu = ((Settings_ItemObject) arg0.getItemAtPosition(arg2))\n .getName();\n String Availability = ((Settings_ItemObject) arg0.getItemAtPosition(arg2))\n .getBottomText();\n\n Bundle bundle2 = new Bundle();\n bundle2.putString(FirebaseAnalytics.Param.ITEM_ID, String.valueOf(Index));\n bundle2.putString(FirebaseAnalytics.Param.ITEM_NAME, Menu);\n bundle2.putString(FirebaseAnalytics.Param.CONTENT_TYPE, \"locked menu\");\n mFirebaseAnalytics.logEvent(FirebaseAnalytics.Event.SELECT_CONTENT, bundle2);\n\n\n Log.d(\"hello\", \"Menu Clicked is \" + Menu);\n //open editor profile if the person clicked is the current user\n if (Menu == \"Logout\") {\n\n// Intent i = new Intent(Settings_mainActivity.this, Booking_App.class);\n// startActivityPrompt(i);\n Log.d(\"hello\", \"Position Clicked is \" + arg2);\n Log.d(\"hello\", \"Item Clicked is \" + Index);\n Log.d(\"hello\", \"Optionid Clicked is \" + ThisOptionId);\n Log.d(\"hello\", \"Menu Clicked is \" + Menu);\n Sign_DatabaseHelper helper = new Sign_DatabaseHelper(Settings_mainActivity.this);\n\n helper.cleanTable();\n\n Intent i = new Intent(Settings_mainActivity.this, Sign_check_mail.class);\n startActivity(i);\n }\n if (Menu == \"Login Password\") {\n Sign_DatabaseHelper helper = new Sign_DatabaseHelper(Settings_mainActivity.this);\n helper.switch_sign_check();\n boolean x = helper.check_pass_requirement();\n String ui= \"\";\n if (!x) {\n ui = \"No Password check in on launch\";\n }else{\n ui = \"Always ask\";\n }\n View parentView = null;\n\n parentView = toolList.getChildAt(arg2);\n //View viewTelefone = Mainlistview.getChildAt(i);\n\n TextView BottomTV = (TextView) parentView.findViewById( R.id.Contact_bottom_tv);\n\n BottomTV.setText(ui);\n // Intent i = new Intent(Settings_mainActivity.this, Transp_SpreadSheetActivity.class);\n // startActivityPrompt(i);\n Log.d(\"hello\", \"Position Clicked is \" + arg2);\n Log.d(\"hello\", \"Item Clicked is \" + Index);\n Log.d(\"hello\", \"Optionid Clicked is \" + ThisOptionId);\n Log.d(\"hello\", \"Menu Clicked is \" + Menu);\n }\n if (Availability == \"(Locked)\") {\n Toast.makeText(getBaseContext(), Menu + \" is locked. Please contact the developer to unlocked it\", Toast.LENGTH_SHORT).show();\n Log.d(\"hello\", \"Img Clicked is \" + ThisImg);\n }\n }", "@Override\n\tpublic boolean onOptionsItemSelected(MenuItem item) {\n\t\tint id = item.getItemId();\n\t\tif (id == R.id.Settings) {\n\n\t\t\tToast toast=new Toast(MainActivity.this);\n\t\t\ttoast.setDuration(Toast.LENGTH_SHORT);\n\t\t\ttoast.setGravity(Gravity.CENTER_HORIZONTAL, 0, 0);\n\t\t\ttoast.setView(v);\n\t\t\ttoast.show();\n\t\t}\n\t\telse if(id == R.id.home) {\n\n\t\t\tToast toast=new Toast(MainActivity.this);\n\t\t\ttoast.setDuration(Toast.LENGTH_SHORT);\n\t\t\ttoast.setGravity(Gravity.CENTER_HORIZONTAL, 0, 0);\n\t\t\ttoast.setView(v);\n\t\t\ttoast.show();\n\t\t}\n\t\telse if(id == R.id.First) {\n\n\t\t\tToast toast=new Toast(MainActivity.this);\n\t\t\ttoast.setDuration(Toast.LENGTH_SHORT);\n\t\t\ttoast.setGravity(Gravity.CENTER_HORIZONTAL, 0, 0);\n\t\t\ttoast.setView(v);\n\t\t\ttoast.show();\n\t\t}\n\n\t\telse if(id == R.id.Second) {\n\n\t\t\tToast toast=new Toast(MainActivity.this);\n\t\t\ttoast.setDuration(Toast.LENGTH_SHORT);\n\t\t\ttoast.setGravity(Gravity.CENTER_HORIZONTAL, 0, 0);\n\t\t\ttoast.setView(v);\n\t\t\ttoast.show();\n\t\t}\n\t\telse if(id == R.id.Third) {\n\n\t\t\tToast toast=new Toast(MainActivity.this);\n\t\t\ttoast.setDuration(Toast.LENGTH_SHORT);\n\t\t\ttoast.setGravity(Gravity.CENTER_HORIZONTAL, 0, 0);\n\t\t\ttoast.setView(v);\n\t\t\ttoast.show();\n\t\t}\n\t\telse if(id == R.id.Four) {\n\n\t\t\tToast toast=new Toast(MainActivity.this);\n\t\t\ttoast.setDuration(Toast.LENGTH_SHORT);\n\t\t\ttoast.setGravity(Gravity.CENTER_HORIZONTAL, 0, 0);\n\t\t\ttoast.setView(v);\n\t\t\ttoast.show();\n\t\t}\n\n\n\t\treturn super.onOptionsItemSelected(item);\n\t}", "@Override\n public void onItemSelected(AdapterView<?> parent, View view, int position, long id) {\n String item = parent.getItemAtPosition(position).toString();\n\n //System.out.println(position);\n }", "@Override\n public void onClick(View view) {\n Toast.makeText(contexto, contexto.getResources().getString(R.string.addFavoritos), Toast.LENGTH_SHORT).show();\n }", "@Override\n public void onItemClick(View view, int position) {\n showPopupOption(view);\n }", "private void selectItem(int position) {\n if (position == 0) // search\n showSearchFragment(true);\n if (position == 1) // Заточка\n ;//showSearchFragment(true);\n if (position == 2) // Вещи ☆\n showStarItemDetails(1);\n if (position == 3) // Вещи ☆☆\n showStarItemDetails(2);\n if (position == 4) // Вещи ☆☆☆\n showStarItemDetails(3);\n if (position == 5) // pwcats.info\n intentPwcatsInfo();\n\n\n// mDrawerLeftLayout.setItemChecked(position, true);\n mDrawerLayout.closeDrawer(mDrawerLeftLayout);\n }", "@Override\n public void onItemClick(AdapterView<?> parent, View view, int position, long id) {\n Bundle args = new Bundle();\n args.putString(\"text\", menuLists.get(position).getContent());\n// contenFragment.setArguments(args);\n // FragmentManager fm = getFragmentManager();\n // fm.beginTransaction().replace(R.id.ly_content, contenFragment).commit();\n drawerLayout.closeDrawer(list_left_drawer);\n }", "@Override\r\n\tpublic void onClick(View v) {\r\n\t\tIntent intent;\r\n\t\tswitch (v.getId()) {\r\n\r\n\t\tcase R.id.left_ib:\r\n\t\t\tfinish();\r\n\t\t\tbreak;\r\n\t\tcase R.id.right_tv:\r\n\t\t\tselectedList = homePageAdapter.getList();\r\n\t\t\tStringBuffer buffer = new StringBuffer();\r\n\t\t\tfor (SelectionList selectionList : selectedList) {\r\n\t\t\t\tif (selectionList.getIsSelected() == 1) {\r\n\t\t\t\t\tbuffer.append(selectionList.getmTime() + \" : \");\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tUtility.showToast(this, buffer.toString());\r\n\t\t\tbreak;\r\n\r\n\t\tdefault:\r\n\t\t\tbreak;\r\n\t\t}\r\n\r\n\t}", "@Override\n\t\t\tpublic void onItemClick(AdapterView<?> parent, View v, int pos, long id) {\n\t\t\t\tSystem.out.println(\"Selected \" + pos);\n\t\t\t}", "public void onClick(View v) {\n showSchedule(v);\n league_selected = leagues_sp.getSelectedItemPosition();\n Log.d(\"MainActivity\", \"Selected league is \" +league_selected);\n team_selected = teams_sp.getSelectedItem().toString();\n Log.d(\"MainActivity\", \"Selected team is \" +team_selected);\n }", "@Override\n\t\t\t\t\t\tpublic void onClick(DialogInterface dialog, int which) {\n\t\t\t\t\t\t\tToast.makeText(getContext(), \"告辞!\",\n\t\t\t\t\t\t\t\t\tToast.LENGTH_SHORT).show();\n\t\t\t\t\t\t}", "@Override\n public void onItemClick(AdapterView<?> parent, View view,int position, long id) {\n if(position == 0) {\n //code specific to first list item\n Toast.makeText(getApplicationContext(),\"Place Your First Option Code\",Toast.LENGTH_SHORT).show();\n }\n\n else if(position == 1) {\n //code specific to 2nd list item\n Toast.makeText(getApplicationContext(),\"Place Your Second Option Code\",Toast.LENGTH_SHORT).show();\n }\n\n else if(position == 2) {\n\n Toast.makeText(getApplicationContext(),\"Place Your Third Option Code\",Toast.LENGTH_SHORT).show();\n }\n else if(position == 3) {\n\n Toast.makeText(getApplicationContext(),\"Place Your Forth Option Code\",Toast.LENGTH_SHORT).show();\n }\n else if(position == 4) {\n\n Toast.makeText(getApplicationContext(),\"Place Your Fifth Option Code\",Toast.LENGTH_SHORT).show();\n }\n\n }", "@Override\n public void onClick(View view) {\n PopupMenu popup = new PopupMenu(mContext, holder.tv_option_menu);\n //inflating menu from xml resource\n popup.inflate(R.menu.menu_options);\n //adding click listener\n popup.setOnMenuItemClickListener(new PopupMenu.OnMenuItemClickListener() {\n @Override\n public boolean onMenuItemClick(MenuItem item) {\n switch (item.getItemId()) {\n case R.id.menu1:\n shareStories(headlinesList.get(position).getUrl());\n return true;\n case R.id.menu2:\n //handle menu2 click\n db.insertNote(headlinesList.get(position));\n return true;\n default:\n return false;\n }\n }\n });\n //displaying the popup\n popup.show();\n\n }", "@Override\n public void onItemSelected(AdapterView<?> parent, View view, int position, long id) {\n\n }", "@Override\n public void onClick(DialogInterface dialog, int which) {\n spare_part_selection.setText(\"\");\n for (int i = 0; i < checkedItems.length; i++) {\n boolean checked = checkedItems[i];\n if (checked) {\n spare_part_selection.setText(String.format(Locale.ENGLISH, \"%s%s\\n\", spare_part_selection.getText(), listItems[i]));\n }\n }\n String text = spare_part_selection.getText().toString().trim().replaceAll(\"\\n$\", \"\");\n Log.e(TAG, \"text =======> \" + text);\n spare_part_selection.setText(text);\n dialog.dismiss();\n }" ]
[ "0.73212445", "0.7320144", "0.7244717", "0.7229475", "0.7117944", "0.7090832", "0.70494", "0.697148", "0.69656736", "0.69525707", "0.69509643", "0.69372505", "0.69253606", "0.6915518", "0.68961984", "0.68942285", "0.6832241", "0.6830837", "0.68203276", "0.6814115", "0.68043226", "0.6796448", "0.6743129", "0.67242444", "0.6702779", "0.6691501", "0.66869026", "0.66843444", "0.6658486", "0.6645958", "0.6612266", "0.6606478", "0.658312", "0.6562654", "0.65526193", "0.6543942", "0.6521552", "0.65196204", "0.6508579", "0.64699465", "0.64528817", "0.6448406", "0.6437253", "0.6416019", "0.6409262", "0.64056927", "0.6390179", "0.6373913", "0.63623077", "0.63584423", "0.6329835", "0.632587", "0.6320633", "0.63202214", "0.6316082", "0.63082063", "0.62896234", "0.6284574", "0.62830305", "0.62803155", "0.6269378", "0.6251942", "0.62468517", "0.6244654", "0.624218", "0.62260175", "0.6216581", "0.6213917", "0.61991537", "0.61824256", "0.6177098", "0.617569", "0.61673445", "0.61629415", "0.616051", "0.61594427", "0.615183", "0.6141079", "0.61303294", "0.61297995", "0.612719", "0.6121104", "0.61119246", "0.611163", "0.6110657", "0.61066294", "0.60928863", "0.60882276", "0.6085309", "0.6081509", "0.60813856", "0.60767984", "0.60703045", "0.6046603", "0.6037666", "0.60332483", "0.601407", "0.6012865", "0.6012213", "0.6008698", "0.6006641" ]
0.0
-1
Calculates the factorial of an integer. If p=0, the factorial is returned.
public static int factorial(int p){ // in this application p cannot be negative, so no logic for negative factorials // is included. if p=0 or 1 then 1 is returned. // if p>1 then p! is returned // also, in this application p is small (p will generally be 5, // but could range from 2 to 7) // so no logic for large p or exception handling for memory overflow is included int returnValue = p; if(p > 1) { for(int m = 1; m < p; m++){ returnValue = returnValue*(p-m); } } else if(p==0) { returnValue = 1; } return(returnValue); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "int factorial(int n){\n return (n==1||n==0)?1: n*factorial(n-1);\n }", "public static int factorial(int n) {\n int res = 0;\n if (n == 0) res = 1;\n if (n > 0) res = n*factorial(n-1);\n return res;\n }", "private long factorial(int i) {\n\t\t/*\n\t\t * if the number is greater than 1, then we continue\n\t\t * else we return our results\n\t\t */\n\t\tif(i > 1)\n\t\t\treturn factorial(i -1) * i;\n\t\treturn i;\n\t}", "public static int factorial(int i){\r\n\r\n\t\tif (i == 1){\r\n\t\t\treturn 1;\r\n\t\t}\t\r\n\r\n\t\tif (i >= 1){\r\n\t\t\treturn i*factorial(i-1);\r\n\t\t}\r\n\r\n\t\treturn 0;\r\n\t}", "private static int factorial(int n) {\n if (n == 1 || n == 0)\n return 1;\n else\n return n * factorial(n - 1);\n }", "public static int factorial(int n) {\n\t\tif(n == 0 || n == 1) \n\t\t\treturn 1;\n\t\t\n\t\treturn n * factorial(n - 1);\n\t}", "private static int factorial(int n) {\n if (n <= 0) {\n return 1;\n }\n\n return n * factorial(n - 1);\n }", "public static int factorial(int n) {\n //Base case\n /* Strictly, checking if n < 1 is enough, however\n ** checking for 1 as well saves a recursion.\n */\n if(n <= 1)\n return 1;\n return n * factorial(n - 1);\n }", "public long getFactorial() \r\n\t// method body, part of method declaration after the method header\r\n\t{ \r\n\t\treturn factorial;\r\n\t}", "public static int factorial(int n) \n\t{\n\t\t\n\t\tif(n<=1) \n\t\t{\n\t\t\treturn 1;\n\t\t}\n\t\t\n\t\treturn n*factorial(n-1);\n\t}", "public static int factorial(int n){\n if(n <= 1){\n return 1;\n }\n else{\n return n*factorial(n-1);\n }\n }", "public int factorial(int n) {\n\t\tif(n<0 || n>Integer.MAX_VALUE)\n\t\t\treturn (int) Double.NaN;\n\t\t\n\t\tint fact=1; \n\t\tfor(int i=1;i<=n;i++){ \n\t\t fact=fact*i; \n\t\t} \n\t\treturn fact;\n\t}", "public long factorial(int num){\r\n long f=1;\r\n for(int i=1;i<=num;i++)\r\n f=f*i;\r\n \r\n if(num>=1) return f;\r\n else if(num==0)return 1;\r\n \r\n return 1;\r\n }", "public static long factorial(long number){\n if (number == 0){\n return 1;\n } else {\n// return result;\n return number * factorial(number - 1);\n }\n }", "public static long factorial(long n) {\n if (n==1)\n return n;\n else\n return (n*factorial(n-1));\n }", "public static long factorial(int num){\n\n if(num < 0){\n throw new UnsupportedOperationException(Util.NEGATIVE_MESSAGE);\n }\n long result = 1;\n\n if(num == 0)\n return result;\n\n else{\n while(num > 0){\n result = result * num ;\n num --;\n }\n }\n\n return result;\n }", "private static int iterrativeFactorial(int value) {\n int result = 1;\n for (int i = value; i > 0; i--) {\n result = result * i;\n }\n return result;\n }", "public long factorial(int n)\n\t{\n\t\tint product = 1;\n\n\t\tfor (int i = n; i >= 1; i--)\n\t\t{\n\t\t\tproduct *= i;\n\t\t}\n\n\t\treturn product;\n\t}", "public static int factorialiterativa(int n){\n if(n>0){\r\n factorialrecursiva(n-1);//LLAMO A LA RECURSIVA\r\n }else {\r\n return 1;\r\n }\r\nreturn factorialrecursiva(n-1);\r\n }", "private static BigInteger getFactorial(int n) {\n BigInteger fact = BigInteger.ONE;\n for (int i = n; i > 1; i--) {\n fact = fact.multiply(new BigInteger(Integer.toString(i)));\n }\n return fact;\n }", "private static int factorial(int num) {\n /**\n * validation\n */\n if (num < 0) {\n throw new IllegalArgumentException(\"num is invalid\");\n }\n\n /**\n * base case\n */\n if (num == 0) {\n return 1;\n }\n\n /**\n * recursive case\n */\n\n return num * factorial(num - 1);\n }", "public static double factorial(long n){\n\tdouble fac = 1;\n\tif(n <= 0) return fac;\n\tfor (int i=1; i<=n; i++) fac *= i;\n\treturn fac;\n }", "public int factorial(int num) \n {\n number = num;\n f=1;\n for(i=1; i<=number; i++)\n {\n f=f*i;\n }\n return f;\n }", "public static long factorial(int n){\n long fact=1;\n for(int i=1;i<=n;i++){\n fact=(fact*i);\n }\n return fact;\n }", "public Integer factorial(Integer number){\n int fact = 1;\n for (int i = number; i > 0; i--){\n fact *=i;\n }\n return fact;\n }", "@Pure\n\tpublic static BigInteger factorialPrecise(long n) throws IllegalArgumentException\n\t{\n\t\tif (n < 0) throw new IllegalArgumentException(\"n must be positive.\");\n\t\tif (n == 0 || n == 1) return BigInteger.ONE;\n\t\tBigInteger ret = BigInteger.valueOf(n);\n\n\t\twhile (n-- > 1)\n\t\t{\n\t\t\tret = ret.multiply(BigInteger.valueOf(n));\n\t\t}\n\n\t\tassert n == 0 : n;\n\n\t\treturn ret;\n\t}", "static long factorialLoop(int n) {\r\n if (n == 0 || n == 1) {\r\n return 1;\r\n }\r\n int accum = 1;\r\n for(int i=n; i>0; i--) {\r\n accum *= i;\r\n }\r\n return accum;\r\n }", "public double findFactorial(double num) \r\n\t{ \r\n\t if (num == 0) \r\n\t return 1; \r\n\t return num * findFactorial(num - 1); \r\n\t}", "private double factorial(int n) {\n if (n < 0 || n > 32) {\n return -1;\n }\n return factorials[n];\n }", "public static String factorial(int n) {\n if(n<0)\n {\n return \"\"+0;\n }\n //int result = (n == 0) ? 1 : (n < 0) ? 0 : n * Integer.parseInt(factorial(n - 1));\n BigDecimal a = BigDecimal.ONE;\n BigDecimal b = BigDecimal.valueOf(n);\n\n while (b.compareTo(BigDecimal.ONE) == 1)\n {\n a = a.multiply(b);\n b = b.subtract(BigDecimal.ONE);\n }\n return \"\"+a;\n }", "public static BigInteger factorial(BigInteger num){\n if(num.equals(BigInteger.ZERO)){\n return BigInteger.ONE;\n }else{\n BigInteger nMin = factorial(num.subtract(BigInteger.ONE));\n return num.multiply(nMin);\n }\n }", "public static double factorial(double n) {\r\n if (n <= 1)\r\n return 1;\r\n else\r\n return n * factorial(n - 1);\r\n }", "private static Long calculFactorial(Long number) {\n\t\tif (number > 1) {\n\t\t\treturn number * calculFactorial(number - 1);\n\t\t} else {\n\t\t\treturn 1L;\n\t\t}\n\t}", "public Integer factorial(Integer number){\n int result = 1;\n for (int i =1;i<=number;i++)\n {\n result *= i;\n }\n return result;\n }", "public static BigInteger calcuateFactorial(int x ){\n BigInteger res=new BigInteger(\"1\");\n for (int i=1;i<=x;i++){\n res=res.multiply(BigInteger.valueOf(i));\n }\n return res;\n\n }", "public static long factorialUsingRecursion (int num){\n\n if(num < 0){\n throw new UnsupportedOperationException(Util.NEGATIVE_MESSAGE);\n }\n\n if(num == 0)\n return 1;\n\n return num*factorialUsingRecursion(num-1);\n\n }", "public static BigInteger factorial(int value) {\n BigInteger res = BigInteger.ONE;\n for(int i = 2; i <= value; i++) {\n res = res.multiply(BigInteger.valueOf(i));\n }\n return res;\n }", "public static long factorial(int num)\n {\n if (num >= 1) {\n System.out.println(\"before num = \" + num);\n return factorial(num - 1) * num;\n\n }\n else\n return 1;\n }", "public static long factorial(int n) throws NumberOutOfLimitsException{\n \tif(n<0){\n \t\tthrow new NumberOutOfLimitsException();\n \t}\n if(n==0){\n return 1;\n }else{\n return n*factorial(n-1);\n }\n }", "public static double factorial(double n) {\n if (n > 1) {\n return n * factorial(n - 1);\n } else {\n return 1;\n }\n }", "int fact(int n) {\n if (n <= 1)\n return 1;\n else\n return n * fact(n-1);\n}", "public static int factoriel(int n) {\n\t\tif(n <= 1) {\n\t\t\treturn 1;\n\t\t}else {\n\t\t\treturn n * factoriel(n - 1);\n\t\t}\n\t}", "public static int fact(int n) {\n\t\tif (n <= 0) {\n\t\t\treturn 1;\n\t\t} else {\n\t\t\treturn n * fact(n - 1);\n\t\t}\n\t}", "static long factorialRecurse(int n) {\r\n if (n == 0 || n == 1) {\r\n return 1;\r\n }\r\n return factorialRecurse(n - 1) * n;\r\n }", "public static int fact(int n){\n\t if(n < 0){\n\t return 0;\n\t }\n\t if(n == 0 || n == 1){\n\t return 1;\n\t }\n\t else{\n\t return n*fact(n-1); \n\t }\n\t}", "public static long computeFactorial(int n) {\n if(n<0 || n > 15) throw new IllegalArgumentException(\"Invalid input. N must be >= 0 \");\n if(n==0 || n==1)\n return 1;\n //ddieu kien dung cua de quy \n //song sot den lenh cho nayf thi n chac chan roi vao 2.......15\n return n*computeFactorial(n-1); // n*(n-1)\n \n }", "public static int fact(int n) {\n if (n == 0 || n == 1) {\r\n return 1;\r\n } else {\r\n return n * fact(n - 1);\r\n }\r\n }", "public static long pureRecursive (int n)\r\n {\r\n if (n<1)\r\n throw new IllegalArgumentException(\"Number is non-positive!\");\r\n else if (n==1)\r\n return (n);\r\n else\r\n return (n * pureRecursive(n-1));\r\n }", "public int fact(int n) {\n if (n == 0 || n == 1) {\r\n // Return 1\r\n return 1;\r\n }\r\n // Anthing else? 2 times 1!\r\n return n * fact(n - 1);\r\n }", "public static long fact(int n) {\n if (n <= 0) return 1;\n long f = 1;\n for (int i = 1; i <= n; i++) {\n f *= i;\n }\n return f;\n }", "@Pure\n\tpublic static long factorialExact(int n) throws IllegalArgumentException, ArithmeticException\n\t{\n\t\tif (n < 0) throw new IllegalArgumentException(\"n:\" + n);\n\t\tif (n > 20) throw new ArithmeticException(\"Cannot calculate factorial for n higher than 20.\");\n\t\tif (n == 0 || n == 1) return 1;\n\t\tlong ret = n;\n\n\t\twhile (n-- > 1)\n\t\t{\n\t\t\tret *= n;\n\t\t}\n\n\t\tassert ret > 0 : ret;\n\t\tassert n == 0 : n;\n\n\t\treturn ret;\n\t}", "public static int fact(int n) {\n\t\t\tif (n == 1 || n == 0) \n\t\t\t\treturn 1;\n\t\t\treturn n * fact(n - 1);\n\t\t}", "public int fact(int n){\n if(n == 1){\n return 1;\n }\n return n * (fact(n-1));\n }", "public double factorial(double value) {\n if (value - (int) value == 0.0) {\n int result = 1;\n for (int i = 0; i < value; i++) {\n result *= (i+1);\n }\n return result;\n } else {\n return Double.NaN;\n }\n }", "public Factorial(int number) {\n\t\tthis.number = number;\n\t}", "public static int recursiveFactorial(int num){\n\n //base case\n if(num == 0){\n return 1;\n }\n\n //recursive call\n return num * recursiveFactorial(num-1);\n\n //int 3 would be recursing down to recursiveFactorial(0), checking each time for base case\n //adding to call stack, then recursing up in reverse order through the\n // call stack to recursiveFactorial(3) with 3 * 2\n // or num - 1\n\n //sample call stack\n //recursiveFactorial(0) = returns right away, then pops and recurses up\n //recursiveFactorial(1)\n // recursiveFactorial(2)\n //recursiveFactorial(3)\n }", "static int fact1(int n)\n {\n if(n == 0 || n == 1)\n return 1;\n return n * fact1(n-1);\n }", "static int matterOfFactorial(int fa) {\n int outcome;\n if(fa == 1) {\n return 1;\n }\n else {\n outcome = matterOfFactorial(fa - 1) * fa;\n return outcome;\n }\n }", "public int calcularFatorial(int n) throws IllegalArgumentException {\n\t\tif(n<0) \n\t\t\tthrow new IllegalArgumentException(\"não existe fatorial para numeros negativo\");\n\t\tint resultado = 1;\n\t\tif (n!=0) {\n\t \tfor(int i = 2 ;i<=n;i++)\n\t \t resultado*=i;\n\t\t}\n\t\n\t\treturn resultado;\n\n\t}", "static int fact(int n)\n\n {\n\n int res = 1;\n\n for (int i = 2; i <= n; i++)\n\n res = res * i;\n\n return res;\n\n }", "private double factorial(double x) {\r\n double fact=1;\r\n for (double i = x; i > 0; i=i-1) {\r\n fact = fact*i;\r\n }\r\n if(((int)x)!=x) {\r\n fact=fact*SQRTPI;\r\n }\r\n return fact;\r\n }", "@Test\n public void nthFactorialZero() throws Exception {\n assertEquals(1,Factorial.nthFactorial(0));\n }", "public static String factorial(int n) {\n if (n < 0)\n return \"0\";\n else if (n == 0)\n return \"1\";\n else {\n //см. import java.math.BigDecimal\n //Начальное значение fac = 1!\n BigDecimal fac = BigDecimal.valueOf(1);\n //далее через цикл вычисляем fac = n!\n for (; n > 1 ; n--)\n fac = fac.multiply(BigDecimal.valueOf(n));\n\n //преобразуем в строку и вовзвращаем\n return fac.toString();\n }\n }", "public static BigInteger factorial(BigInteger num) {\n\t\tif(num.equals(new BigInteger(\"1\"))) {\n\t\t\treturn new BigInteger(\"1\");\n\t\t}\n\t\telse {\n\t\t\treturn num.multiply(factorial(\n\t\t\t\t\tnum.subtract(new BigInteger(\"1\"))));\n\t\t}\n\t}", "static int factorial(int n, int c, int d) \n { \n System.out.println(\"Parameter added: \" + c + d);\n int res = 1, i; \n for (i=2; i<=n; i++) \n res *= i; \n return res; \n }", "public void factorialNumber(int fact){\n int i = 1;\n long factorial = 1;\n while(i <= fact)\n {\n factorial *= i;\n i++;\n System.out.print(factorial+\" \");\n }\n System.out.println();\n System.out.printf(\"Factorial of %d = %d\", fact, factorial);\n }", "public static double factorial(int fact) {\r\n\t\t\t\r\n\t\t\tdouble aux=1;\r\n\t\t\t\r\n\t\t\tfor(int i=2; i<=fact;i++) {\r\n\t\t\t\t\r\n\t\t\t\taux*=i;\r\n\t\t\t}\r\n\t\t\treturn aux;\r\n\t\t}", "@Test\n /**\n * we can write a comment indicating a test's function or make its name descriptive\n */\n public void factorialOf0ShouldReturn1() {\n // longs can store more bits (64) than int (32)\n long expectedValue = 1;\n long obtainedValue = factorial.compute(0);\n\n assertEquals(expectedValue, obtainedValue);\n\n }", "int main(){\n int n, f = 1;\n cin>>n;\n for(int i = 1;i <= n;i++)\n f*=i;\n cout<<f;\n}", "public static int factorialFor(int iVal){\n int iTemp = 0;\n for (int i = iVal; i > 0; i--){\n iTemp = iTemp+1;\n }\n return iTemp;\n }", "static BigInteger fact(int n)\n {\n BigInteger res = BigInteger.ONE;\n for (int i = 2; i <= n; i++)\n res = res.multiply(BigInteger.valueOf(i));\n return res;\n }", "public static Inatnum factorial(int n) throws Exception{\n Inatnum res = new zeronatnum().succ(); // we need to initialize res which is set as a nonzero natural number\n Inatnum dis = new zeronatnum(); for(int i=n;i>=1;i--) {dis=dis.succ();} // dis is initialized as a new non zero natural number and \n Inatnum res1 = res; Inatnum dis1 = dis; //new versions of res and dis are initiated\n while(dis1.getVal()>0) { \n res1 = res1.multiply(dis1); dis1=dis1.pred();\n }Inatnum newone = new zeronatnum(); \n while(newone.getVal()!= res1.getVal()) {\n newone = newone.succ(); // initiated newone which is the successor of newone\n }return newone; // returns newone once the loop ends\n }", "static boolean isFactorialPrime(long n)\n {\n \n // If n is not prime then return false\n if (!isPrime(n))\n return false;\n \n long fact = 1;\n int i = 1;\n while (fact <= n + 1) {\n \n // Calculate factorial\n fact = fact * i;\n \n // If n is a factorial prime\n if (n + 1 == fact || n - 1 == fact)\n return true;\n \n i++;\n }\n \n // n is not a factorial prime\n return false;\n }", "public static int fac(int n) {\n if(n == 1) {\n return 1;\n }\n return n*fac(n-1);\n }", "public double faktorial(double num){\n if (num<0) {\n System.out.println(\"bilangan tidak benar\");\n return 0;\n }\n if(num==0||num==1)return 1;\n return perkalian(num, faktorial(num-1));\n }", "private static int get_number(int i, int j) { n n!\n// C = _____________\n// r (n-r)! * r!\n//\n return factorial(i)/(factorial(i-j)* factorial(j));\n }", "private static int fact(int n) {\n\t\tint prod = 1;\n\t\tfor (int i = 1; i <= n; prod *= i++)\n\t\t\t;\n\t\treturn prod;\n\t}", "@Test\r\n\tpublic void test01_fact() {\r\n\t\tRecursiveMethods rm = new RecursiveMethods();\r\n\t\tassertEquals(1, rm.factorial(0));\r\n\t\tassertEquals(1, rm.factorial(1));\r\n\t\tassertEquals(2, rm.factorial(2));\r\n\t\tassertEquals(6, rm.factorial(3));\r\n\t\tassertEquals(24, rm.factorial(4));\r\n\t\tassertEquals(120, rm.factorial(5));\r\n\t}", "public static float stirling_factorial(float f) {\n return 0;\n }", "public static long iterative (int n)\r\n {\r\n long mult=1;\r\n while(true)\r\n {\r\n if (n<1)\r\n throw new IllegalArgumentException(\"Number is non-positive!\");\r\n if (n==1)\r\n return (mult*n);\r\n mult=mult*n;\r\n n=n-1;\r\n }\r\n }", "public static BigInteger factorialBig(BigInteger n) throws NumberOutOfLimitsException{\n \tif(n.compareTo(BigInteger.ZERO)<0){\n \t\tthrow new NumberOutOfLimitsException();\n \t}\n \tif (n.equals(BigInteger.ZERO)){\n \treturn BigInteger.ONE;\n }else{\n \treturn n.multiply(factorialBig(n.subtract(BigInteger.ONE)));\n }\n }", "public static void main(String args[])\n {\n Scanner input = new Scanner(System.in);\n //taking the number\n int num = input.nextInt();\n System.out.println(factorial(num));\n }", "public void FactorialNumber() \r\n\t{\r\n\t\tint i,factNum=1,number;\r\n\t\tSystem.out.println(\"Enter a number\"); \r\n\t\tnumber=sc.nextInt(); //Read the number to calculate factorial\r\n\t\t\r\n\t\tfor(i=1;i<=number;i++)\r\n\t\t{\r\n\t\t\tfactNum = factNum*i;\r\n\t\t}\r\n\t\tSystem.out.println(+factNum);\r\n\t\t\r\n\t}", "private int factorialUsingStreams(int n) {\r\n return IntStream.rangeClosed(1, n).reduce(1, (int x, int y) -> x * y);\r\n }", "@Test(dataProvider = \"factorial\")\n public void factorial(final long input, final long expected) {\n Assert.assertEquals(factorial(input), expected);\n }", "public static void main(String[] args) {\n\r\n\r\n Scanner sc = new Scanner(System.in);\r\n System.out.println(\"Enter a number to find its factorial\");\r\n int n = sc.nextInt();\r\n\r\n for(int i = 1 ; i<=n; i++)\r\n {\r\n if(n % i ==0) {\r\n System.out.println(i + \" is factorial\");\r\n }\r\n }\r\n\r\n }", "@Test\n\tpublic void whenNumberZeroFactrialOne() {\n\t\tFactorial fact = new Factorial();\n\t\tassertTrue(fact.calc(0) == 1);\n\t}", "static void factorial(){\n\t}", "public static int fac(int x) {\r\n if (x == 1) {\r\n return 1;\r\n }\r\n return x * fac(x - 1);\r\n }", "public static String Factorial(int n) {\n if (n < 0) return null;\n return factorial(n).toString();\n }", "public static void main(String[] args) {\n\t\t\t\tSystem.out.println(\" Factorial :\"+factorial(4));\np();\n}", "public int factorial_2(int n) {\n // Base case: if n is 1, we can return the answer directly\n if (n == 1) return 1;\n\n // Recursion: otherwise make a recursive call with n-1\n // (towards the base case), i.e. call factorial(n-1).\n // Assume the recursive call works correctly, and fix up\n // what it returns to make our result.\n return n * factorial(n-1);\n }", "int main(){\n int f =1,n,i;\n cin>>n;\n for(i=2;i<=n;i++)\n f *= i;\n cout<<f;\n return 0;\n \n}", "public HugeUInt pow(int p) {\r\n \tHugeUInt one = new HugeUInt(1);\r\n \tHugeUInt acc = one;\r\n \tif(p==0){\r\n \t\treturn one;\r\n \t}\r\n \tHugeUInt c = one.multiply(this);\r\n \twhile(p>1){\r\n \t\tif(p%2==0){\r\n \t\t\tc = c.multiply(c);\r\n \t\t}\r\n \t\telse if(p%2==1){\r\n \t\t\tacc = acc.multiply(c);\r\n \t\t\tc = c.multiply(c);\r\n \t\t}\r\n \t\tp/=2;\r\n \t}\r\n \treturn c.multiply(acc);\r\n }", "public static int f(int x) {\n if (x == 0) {\n return 0;\n } else {\n return 2 * f(x - 1) + x * x;\n }\n }", "public static CompletableFuture<BigInteger> compute(int x ){\n return CompletableFuture.supplyAsync(new Supplier<BigInteger>() {\n @Override\n public BigInteger get() {\n return calcuateFactorial(x);\n }\n });\n }", "public static int geometric( double p ) {\n // using algorithm given by Knuth\n return (int) Math.ceil( Math.log( uniform() ) / Math.log( 1.0 - p ) );\n }", "public static int fact(int num) {\r\n\tint fact = 1, i;\r\n\tfor (i=1; i<=num; i++)\r\n {\r\n fact = fact*i;\r\n }\r\n\treturn fact;\r\n }", "@Test\n public void nthFactorialOne() throws Exception {\n assertEquals(1,Factorial.nthFactorial(1));\n }", "private static double fact(int n) {\n\t\tdouble sum = 1;\n\t\tfor(int i = 1; i <= n; i++) {\n\t\t\tsum *= i;\n\t\t}\n\t\treturn sum;\n\t}" ]
[ "0.74441564", "0.7302672", "0.72729766", "0.7117756", "0.71007645", "0.7093111", "0.7086781", "0.702024", "0.693877", "0.6926094", "0.6924882", "0.6922939", "0.689742", "0.6859882", "0.68513376", "0.68267924", "0.6791579", "0.675135", "0.67376345", "0.67297006", "0.6657211", "0.66043514", "0.65860415", "0.6577714", "0.655311", "0.65394735", "0.65066946", "0.6489532", "0.64894223", "0.6469375", "0.64627075", "0.6447002", "0.64408463", "0.643197", "0.6401247", "0.6349691", "0.631408", "0.63115144", "0.6294719", "0.6291199", "0.627521", "0.62637115", "0.6255905", "0.62339604", "0.621401", "0.61788934", "0.61547893", "0.609273", "0.6083717", "0.60750824", "0.6062001", "0.6060669", "0.6046574", "0.59920067", "0.5988446", "0.5972071", "0.59462255", "0.58855677", "0.58833367", "0.58805865", "0.58681446", "0.5861584", "0.5842024", "0.58364934", "0.58308554", "0.58274704", "0.5794762", "0.5756848", "0.5754496", "0.57422936", "0.5737258", "0.56986994", "0.5695542", "0.56931806", "0.5682628", "0.5655521", "0.5646098", "0.5636722", "0.5620415", "0.5597868", "0.5597687", "0.5591054", "0.5538615", "0.553855", "0.55151427", "0.5513419", "0.5504891", "0.54903316", "0.54745716", "0.54742473", "0.5472659", "0.54232526", "0.54208153", "0.5407237", "0.53863496", "0.5361988", "0.53270423", "0.5322849", "0.52914834", "0.5205993" ]
0.8361888
0
Create the combinations of possible operations used in the Krypto Expression
public static int[][] allCombo(int possibleOperations, int N){ // in this application N is generally 5 but may range from 2 to 7 // there are usually 4^(N-1) possibleOperations meaning that the // four operations (+ - * /) can be arranged in 4^(5-1)=256 different ways // the N-1 power is used since there are N-1 operations between N numbers in // these expressions // create a 4x256 matrix to hold all permutions of the operations int[][] tempMatrix1 = new int[N-1][possibleOperations]; int sectionLength; // populate the 4x256 matrix so that all permuations are created for(int i=0; i<(N-1); i++){ // rows sectionLength = (int)Math.pow(4, N-2-i); // iterate through the sections of length sectionLength for(int j=0; j<(int)Math.pow(4,i); j++){ for(int k=0; k<4; k++){ // fill the subsection with the right operation Arrays.fill(tempMatrix1[i], (4*j+k)*sectionLength, (4*j+k+1)*sectionLength, k+1); } } } // transpose the matrix int[][] tempMatrix2 = new int[possibleOperations][N-1]; for(int i=0; i < (N-1); i++){ for(int j=0; j<possibleOperations; j++) { tempMatrix2[j][i] = tempMatrix1[i][j]; } } return tempMatrix2; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String operate() {\r\n\r\n\t\t// Logger log = Logger.getLogger(IterationFactory.class);\r\n\t\tDecimalFormat form = new DecimalFormat(\"0.0000\");\r\n\t\tStringBuffer sb = new StringBuffer();\r\n\t\tOperationFactory operateF;\r\n\t\tList<Integer> valueList;\r\n\r\n\t\tIterator<String> inputItr = this.getInputList().iterator();\r\n\r\n\t\tIterator<Character> opItr = this.getOperator().iterator();\r\n\r\n\t\ttry {\r\n\t\t\t/* Domain check */\r\n\t\t\tif (this.getInputList().size() <= 1 && this.getInputList().size() >= 10) {\r\n\t\t\t\tthrow new ValuePairOutOfLimit(this.getInputList().size());\r\n\t\t\t}\r\n\r\n\t\t\twhile (inputItr.hasNext()) {\r\n\r\n\t\t\t\t/* To get individual operands from operand sets */\r\n\t\t\t\tvalueList = u.toValueList(inputItr.next());\r\n\t\t\t\tIterator<Integer> valItr = valueList.iterator();\r\n\r\n\t\t\t\t/* Check for validity of operands and string format */\r\n\t\t\t\tif (valueList.size() < Constant.TWO)\r\n\t\t\t\t\tthrow new OperandException();\r\n\t\t\t\tif (valueList.size() > Constant.TWO)\r\n\t\t\t\t\tthrow new StringFormatException();\r\n\r\n\t\t\t\t/*\r\n\t\t\t\t * If there is empty operator string default operator sets to\r\n\t\t\t\t * plus\r\n\t\t\t\t */\r\n\t\t\t\tif (operator.size() == 0)\r\n\t\t\t\t\toperateF = new OperationFactory(valItr.next(), valItr.next(), Constant.PLUS);\r\n\t\t\t\telse\r\n\t\t\t\t\toperateF = new OperationFactory(valItr.next(), valItr.next(), opItr.next());\r\n\r\n\t\t\t\t/* Output */\r\n\t\t\t\tsb.append(operateF.getmOp().getmOperand1() + operateF.getmOp().getmWord()\r\n\t\t\t\t\t\t+ operateF.getmOp().getmOperand2() + \" = \" + form.format(operateF.operate()) + \"\\n\");\r\n\r\n\t\t\t\t/*To reset operator iterator.*/\r\n\t\t\t\tif (!opItr.hasNext())\r\n\t\t\t\t\topItr = this.getOperator().iterator();\r\n\t\t\t}\r\n\t\t} catch (IntegerOutOfLimit e) {\r\n\t\t\tsb.append(e);\r\n\t\t} catch (InvalidOperator e) {\r\n\t\t\tsb.append(e);\r\n\t\t} catch (OperandException e) {\r\n\t\t\tsb.append(e);\r\n\t\t} catch (StringFormatException e) {\r\n\t\t\tsb.append(e);\r\n\t\t} catch (ValuePairOutOfLimit e) {\r\n\t\t\tsb.append(e);\r\n\t\t}\r\n\t\treturn sb.toString();\r\n\t}", "public void recursion(final String expression, int countOperation) {\n int numberOfOperations=0;\n String operationString=expression.replace(\" \",\"\");\n for (int i=0; i<operationString.length()-1; i++)\n {\n if(expression.substring(i,i+1).matches(\"\\\\+\")\n ||operationString.substring(i,i+1).matches(\"\\\\-\")\n ||operationString.substring(i,i+1).matches(\"\\\\*\")\n ||operationString.substring(i,i+1).matches(\"/\")\n ||operationString.substring(i,i+1).matches(\"\\\\^\")\n ||operationString.substring(i,i+1).matches(\"i\")\n ||operationString.substring(i,i+1).matches(\"a\")\n ||operationString.substring(i,i+1).matches(\"o\"))\n {\n numberOfOperations++;\n }\n }\n String result;\n int count=0;\n if (operationString.substring(0,1).equals(\"(\"))\n {\n int start=1;\n int end=0;\n count=1;\n while (count<operationString.length() && start!=end)\n {\n String temp=operationString.substring(count,count+1);\n if (temp.equals(\"(\"))\n {\n start++;\n }\n if (temp.equals(\")\"))\n {\n end++;\n }\n count++;\n }\n }\n if (count!=operationString.length() && !operationString.substring(0,1).equals(\"(\"))\n {\n //разбиваем выражения на подвыражения\n List<String> symbols=new ArrayList<>();\n for (int i=0; i<operationString.length()-1;)\n {\n String temp=operationString.substring(i,i+1);\n if (\"+-*/^\".contains(temp))\n {\n symbols.add(temp);\n i++;\n }\n if(temp.equals(\"s\") || temp.equals(\"t\") || temp.equals(\"c\"))\n {\n symbols.add(operationString.substring(i,i+3));\n i=i+3;\n }\n if (temp.matches(\"\\\\d\"))\n {\n int k=i+1;\n StringBuilder sb=new StringBuilder(temp);\n while (k<operationString.length()&&(operationString.substring(k,k+1).matches(\"\\\\d\")||operationString.substring(k,k+1).matches(\"\\\\.\")))\n {\n sb.append(operationString.substring(k,k+1));\n k++;\n }\n i=k;\n symbols.add(new String(sb));\n }\n if (temp.equals(\"(\"))\n {\n int start=1;\n int end=0;\n int k=i+1;\n while(k<operationString.length() && start!=end)\n {\n if (operationString.substring(k,k+1).equals(\"(\"))\n {\n start++;\n }\n if(operationString.substring(k,k+1).equals(\")\"))\n {\n end++;\n }\n k++;\n }\n PrintStream oldOut=System.out;\n String recTemp;\n ByteArrayOutputStream baos=new ByteArrayOutputStream();\n PrintStream ps=new PrintStream(baos);\n System.setOut(ps);\n recursion(operationString.substring(i,k),++countOperation);\n recTemp=baos.toString();\n System.setOut(oldOut);\n symbols.add(recTemp);\n i=k;\n }\n }\n\n for (int i=0; i<symbols.size(); i++)\n {\n if (symbols.get(i).startsWith(\"s\"))\n {\n symbols.set(i,\"\"+Math.sin(Double.parseDouble(symbols.remove(i+1))*Math.PI/180));\n }\n if (symbols.get(i).startsWith(\"t\"))\n {\n symbols.set(i,\"\"+Math.tan(Double.parseDouble(symbols.remove(i+1))*Math.PI/180));\n }\n if (symbols.get(i).startsWith(\"c\"))\n {\n symbols.set(i,\"\"+Math.cos(Double.parseDouble(symbols.remove(i+1))*Math.PI/180));\n }\n }\n for (int i=0; i<symbols.size();)\n {\n if (symbols.get(i).equals(\"^\"))\n {\n symbols.set(i-1, Math.pow(Double.parseDouble(symbols.get(i - 1)), Double.parseDouble(symbols.get(i + 1))) + \"\");\n symbols.remove(i);\n symbols.remove(i);\n i--;\n }\n i++;\n }\n for (int i=0; i<symbols.size();)\n {\n if (symbols.get(i).equals(\"/\"))\n {\n symbols.set(i-1, Double.parseDouble(symbols.get(i - 1))/Double.parseDouble(symbols.get(i + 1)) + \"\");\n symbols.remove(i);\n symbols.remove(i);\n i--;\n }\n if (symbols.get(i).equals(\"*\"))\n {\n symbols.set(i-1, Double.parseDouble(symbols.get(i - 1))*Double.parseDouble(symbols.get(i + 1)) + \"\");\n symbols.remove(i);\n symbols.remove(i);\n i--;\n }\n i++;\n }\n for (int i=0; i<symbols.size(); i++)\n {\n if (symbols.get(i).equals(\"-\"))\n {\n symbols.set(i,\"-\"+symbols.remove(i+1));\n }\n if (symbols.get(i).equals(\"+\"))\n {\n symbols.remove(i);\n i--;\n }\n }\n double answer=0;\n for (String s:symbols)\n {\n answer=answer+Double.parseDouble(s);\n }\n result=answer+\"\";\n countOperation--;\n }\n else\n {\n //отбрасываем начальные и конечные скобки\n operationString=operationString.substring(1,operationString.length()-1);\n PrintStream oldOut=System.out;\n ByteArrayOutputStream baos=new ByteArrayOutputStream();\n PrintStream ps=new PrintStream(baos);\n System.setOut(ps);\n recursion(operationString,++countOperation);\n result=baos.toString();\n System.setOut(oldOut);\n }\n if (countOperation==0)\n {\n System.out.println(result+\" \"+numberOfOperations);\n }\n else\n {\n System.out.println(result);\n }\n }", "Operations operations();", "public OperationType[] createOperationTypes() {\n int[] op1v1 = new int[]{2, 3, 4, 6};\n OperationType op1 = new OperationType(1, op1v1, null, null, 2\n , 0, 17520, 730, 8, DataGenerator.costPenalty * DataGenerator.maxSailingTime * 4, \"Transport net before operation\");\n int[] op2v1 = new int[]{2, 3, 4, 6};\n int[] op2v2 = new int[]{2, 3, 4, 6};\n OperationType op2 = new OperationType(2, op2v1, op2v2, null,\n 3, 1, 17520, 730, 4, DataGenerator.costPenalty * DataGenerator.maxSailingTime * 4, \"Install net\");\n int[] op3v1 = new int[]{2, 3, 4, 6};\n OperationType op3 = new OperationType(3, op3v1, null,\n null, 0, 2, 17520, 730, 8, DataGenerator.costPenalty * DataGenerator.maxSailingTime * 4, \"Transport net after operation\");\n int[] op4v1 = new int[]{5};\n int[] op4v2 = new int[]{2, 3, 4, 6};\n OperationType op4 = new OperationType(4, op4v1, op4v2, null,\n 0, 0, 1152, 192, 5, DataGenerator.costPenalty * DataGenerator.maxSailingTime * 8, \"Delousing\");\n int[] op5v1 = new int[]{2, 3, 4};\n int[] op5v2 = new int[]{2, 3, 4};\n int[] op5BT = new int[]{6};\n OperationType op5 = new OperationType(5, op5v1, op5v2, op5BT,\n 0, 0, 8760, 360, 40, DataGenerator.costPenalty * DataGenerator.maxSailingTime, \"Large inspection of the facility\");\n int[] op6v1 = new int[]{2};\n OperationType op6 = new OperationType(6, op6v1, null, null,\n 0, 0, 5110, 730, 5, DataGenerator.costPenalty * DataGenerator.maxSailingTime * 4, \"Wash the net\");\n int[] op7v1 = new int[]{4, 6};\n OperationType op7 = new OperationType(7, op7v1, null, null,\n 0, 0, 8760, 360, 48, DataGenerator.costPenalty * DataGenerator.maxSailingTime, \"tightening anchor lines\");\n int[] op8v1 = new int[]{2, 3, 4, 6};\n int[] op8v2 = new int[]{2, 3, 4, 6};\n OperationType op8 = new OperationType(8, op8v1, op8v2, null,\n 0, 9, 8760, 360, 3, DataGenerator.costPenalty * DataGenerator.maxSailingTime * 4, \"Small installation facility\");\n int[] op9v1 = new int[]{2, 3, 4, 6};\n OperationType op9 = new OperationType(9, op9v1, null, null,\n 8, 0, 8760, 360, 6, DataGenerator.costPenalty * DataGenerator.maxSailingTime * 4, \"Easy transport of equipment to facility\");\n int[] op10v1 = new int[]{2, 3, 4, 6};\n OperationType op10 = new OperationType(10, op10v1, null, null,\n 0, 0, 720, 100, 2, DataGenerator.costPenalty * DataGenerator.maxSailingTime * 4, \"Remove dead fish\");\n int[] op11v1 = new int[]{2, 3, 4, 6};\n OperationType op11 = new OperationType(11, op11v1, null, null,\n 0, 0, 720, 100, 4, DataGenerator.costPenalty * DataGenerator.maxSailingTime * 8, \"Support wellboat\");\n int[] op12v1 = new int[]{1, 2, 3, 4, 6};\n OperationType op12 = new OperationType(12, op12v1, null, null,\n 0, 0, 720, 100, 5, DataGenerator.costPenalty * DataGenerator.maxSailingTime * 4, \"Inspect net ROV\");\n int[] op13v1 = new int[]{1, 3};\n OperationType op13 = new OperationType(13, op13v1, null, null,\n 0, 0, 8760, 360, 4, DataGenerator.costPenalty * DataGenerator.maxSailingTime * 4, \"Inspect net diver\");\n int[] op14v1 = new int[]{2};\n OperationType op14 = new OperationType(14, op14v1, null, null,\n 0, 0, 8760, 360, 4, DataGenerator.costPenalty * DataGenerator.maxSailingTime, \"Wash bottom ring and floating collar\");\n int[] op15v1 = new int[]{2, 3, 4, 6};\n OperationType op15 = new OperationType(15, op15v1, null, null,\n 0, 0, 168, 24, 3, DataGenerator.costPenalty * DataGenerator.maxSailingTime * 4, \"Support working boat\");\n return new OperationType[]{op1, op2, op3, op4, op5, op6, op7, op8, op9, op10, op11, op12, op13, op14, op15};\n }", "@Test\r\n\t\tpublic void testCompileAllOperators() {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\tdriver.findElement(By.id(\"code_code\")).sendKeys(\"a = 6\\nb = 6\\nc = a + (b * 4)\\nd = c / 3\");;\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\tWebElement submitButton = driver.findElement(By.xpath(\"(//input[@name='commit'])[3]\"));\r\n\t\t\tsubmitButton.click();\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\ttry {\r\n\t\t\t\tWebElement e = driver.findElement(By.tagName(\"code\"));\r\n\t\t\t\tString elementText = e.getText();\r\n\t\t\t\tassertTrue(elementText.contains(\"opt_plus\") && elementText.contains(\"opt_div\") && elementText.contains(\"opt_mult\") &! elementText.contains(\"opt_minus\"));\r\n\t\t\t} catch (NoSuchElementException nseex) {\r\n\t\t\t\tfail();\r\n\t\t\t}\r\n\t\t}", "private String getOpossiteOperation(String operation) {\n StringBuilder newOperation = new StringBuilder();\n for (int i = 0; i < operation.length(); i++) { \n if (i+2 <= operation.length()) {\n StringBuilder sb = new StringBuilder();\n sb.append(operation.charAt(i));\n sb.append(operation.charAt(i+1));\n String op = sb.toString();\n if (this.opposites.containsKey(op)) {\n newOperation.append(this.opposites.get(op));\n i++;\n } else if (this.opposites.containsKey(String.valueOf(operation.charAt(i)))) {\n newOperation.append(this.opposites.get(String.valueOf(operation.charAt(i))));\n } else if (Arrays.asList(this.operators_logical).contains(op)) {\n newOperation.append(op);\n i++;\n } else {\n newOperation.append(operation.charAt(i));\n }\n } else{ //Last character\n newOperation.append(operation.charAt(i));\n } \n }\n return newOperation.toString();\n }", "static String arithmeticExpressions(int[] arr) {\n String result = \"\";\n String[] operation = {\"+\", \"-\", \"*\"};\n boolean done = false;\n Map<Integer, String> outputToExpression = new HashMap<>();\n outputToExpression.put(arr[0], String.valueOf(arr[0]));\n for(int i = 1; i < arr.length; i++) {\n Map<Integer, String> tempOutputToExpression = new HashMap<>();\n int currentInteger = arr[i];\n final Set<Map.Entry<Integer, String>> entry2 = outputToExpression.entrySet();\n for(int entry : outputToExpression.keySet()) {\n for(int k = 0; k < operation.length; k++) {\n int tempOutput = entry;\n if(operation[k].equals(\"+\")) {\n tempOutput = tempOutput + currentInteger;\n tempOutputToExpression.put(tempOutput, outputToExpression.get(entry) + \"+\" + currentInteger);\n }\n if(operation[k].equals(\"-\")) {\n tempOutput = tempOutput - currentInteger;\n tempOutputToExpression.put(tempOutput, outputToExpression.get(entry) + \"-\" + currentInteger);\n }\n if(operation[k].equals(\"*\")) {\n tempOutput = (tempOutput * currentInteger) % 101;\n tempOutputToExpression.put(tempOutput, outputToExpression.get(entry) + \"*\" + currentInteger);\n }\n if(tempOutput % 101 == 0) {\n result = tempOutputToExpression.get(tempOutput);\n for(int j = i + 1; j < arr.length; j++) {\n result += \"*\" + arr[j];\n }\n done = true;\n }\n if(done) break;\n }\n if(done) break;\n }\n if(done) break;\n outputToExpression = tempOutputToExpression;\n }\n\n\n return result;\n }", "public void generateKeys(){\n\t\t//Apply permutation P10\n\t\tString keyP10 = permutation(key,TablesPermutation.P10);\n\t\tresults.put(\"P10\", keyP10);\n\t\t//Apply LS-1\n\t\tString ls1L = leftShift(keyP10.substring(0,5),1);\n\t\tString ls1R = leftShift(keyP10.substring(5,10),1);\n\t\tresults.put(\"LS1L\", ls1L);\n\t\tresults.put(\"LS1R\", ls1R);\n\t\t//Apply P8 (K1)\n\t\tk1 = permutation(ls1L+ls1R, TablesPermutation.P8);\n\t\tresults.put(\"K1\", k1);\n\t\t//Apply LS-2\n\t\tString ls2L = leftShift(ls1L,2);\n\t\tString ls2R = leftShift(ls1R,2);\n\t\tresults.put(\"LS2L\", ls2L);\n\t\tresults.put(\"LS2R\", ls2R);\n\t\t//Apply P8 (K2)\n\t\tk2 = permutation(ls2L+ls2R, TablesPermutation.P8);\n\t\tresults.put(\"K2\", k2);\n\t}", "private String generateInput() {\n Random rdm = new Random();\n int r, r_m, r_M, c = 0, c_max;\n String input = \"\";\n char ops[] = {'+', '-', '*', '/'};\n\n //r_m = 1;\n //r_M = 100;\n //c_max = rdm.nextInt(r_M - r_m + 1) + r_m;\n c_max = 4;\n\n if(c_max%2 == 0)\n c_max += 1;\n\n while(c < c_max){\n if(c%2 == 0){\n r_m = 0;\n //r_M = 1000;\n r_M = 9;\n r = rdm.nextInt(r_M - r_m + 1) + r_m;\n input += Integer.toString(r);\n } else {\n /* 4 operators [0-3] */\n r_m = 0;\n r_M = 3;\n /* get a random operation */\n r = rdm.nextInt(r_M - r_m + 1) + r_m;\n input += ops[r];\n }\n c++;\n }\n return input;\n }", "operations(StringBuilder input, int currentMode)\n\t{\n\t\t\n\t\tchar tempVal = ' ';\n\t\t\n\t\tif(isPair(input) == true) {\n\t\t\t\n\t\t\t// determining which mode the input is set to and converting to decimal to make it easier \n\t\t\t\n\t\t\tif(currentMode == 1)\n\t\t\t{\n\t\t\t\tinput = hexConversion(input);\n\t\t\t}\n\t\t\telse if(currentMode == 3)\n\t\t\t{\n\t\t\t\tinput = binConversion(input);\n\t\t\t}\n\t\t\telse if(currentMode == 4)\n\t\t\t{\n\t\t\t\tinput = octConversion(input);\n\t\t\t}\n\t\t\telse if(currentMode != 2)\n\t\t\t{\n\t\t\t\tSystem.out.println(\"Error, invalid input mode\");\n\t\t\t}\n\t\t\t\n\t\t\tfor(int i = 0; i < input.length(); i++)\n\t\t\t{\n\t\t\t\ttempVal = input.charAt(i);\n\t\t\t\t\n\t\t\t\t\tif(isNumber(input.charAt(i)) == true)\n\t\t\t\t\t{\n\t\t\t\t\t\tevalulateQueue.add(Character.toString(tempVal));\n\t\t\t\t\t}\n\t\t\t\t\telse if((isOperator(input.charAt(i)) == true) || (isLeftParen(input.charAt(i)) == true) || (isRightParen(input.charAt(i)) == true))\n\t\t\t\t\t{\n\t\t\t\t\t\tif(isLeftParen(input.charAt(i)))\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\toperationStack.push(Character.toString(tempVal));\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse if ((isRightParen(input.charAt(i))) == true)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\twhile (operationStack.empty() == false)\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\tString temp = operationStack.peek();\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\tif(temp.equals(\"(\"))\n\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\telse\n\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\tevalulateQueue.add(temp);\n\t\t\t\t\t\t\t\t\toperationStack.pop();\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\toperationStack.pop();\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse if(precedence(Character.toString(tempVal)))\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\toperationStack.push(Character.toString(tempVal));\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\twhile(precedence(Character.toString(tempVal)) == false)\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\tString temp = operationStack.peek();\n\t\t\t\t\t\t\t\toperationStack.pop();\n\t\t\t\t\t\t\t\tevalulateQueue.add(temp);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\toperationStack.push(Character.toString(tempVal));\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\telse\n\t\t\t\t\t{\n\t\t\t\t\t\tSystem.out.println(\"An error has occured, invalid input values\");\n\t\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\telse\n\t\t{\n\t\t\tSystem.out.println(\"An error has occured, invalid input values\");\n\t\t}\n\t\t\n\t\t// moving operation stack to evaluation queue\n\t\t\n\t\twhile(operationStack.empty() != true)\n\t\t{\n\t\t\tString movingVal = operationStack.peek();\n\t\t\tevalulateQueue.add(movingVal);\n\t\t\toperationStack.pop();\n\t\t}\n\t\t\n\t\t// test \n\t\t\n\t\tSystem.out.println(\"$$$$$$$$$$\");\n\t\tfor(String item: evalulateQueue) {\n\t\t\tSystem.out.print(item);\n\t\t}\n\t\tSystem.out.println(\"\\n$$$$$$$$$$\");\n\t\t\n\t\t// converting post-fix notation to the final result\n\t\t\n\t\twhile(evalulateQueue.isEmpty() != true)\n\t\t{\n\t\t\tString currentNum = evalulateQueue.peek();\n\t\t\tSystem.out.println(currentNum);\n\t\t\t\n\t\t\t// if its an operator, popping two numbers from evaluate stack to evaluate\n\t\t\tif((isOperator(currentNum.charAt(0))) && (evaluateStack.size() > 0))\n\t\t\t{\n\t\t\t\tString firstNum = evaluateStack.pop();\n\t\t\t\tString secondNum = evaluateStack.pop();\n\t\t\t\tdouble addedRes;\n\t\t\t\t\n\t\t\t\t// evaluating and pushing into the final queue\n\t\t\t\t\n\t\t\t\tswitch (currentNum) {\n\t\t\t\t\tcase \"+\": \n\t\t\t\t\t\taddedRes = Double.parseDouble(secondNum) + Double.parseDouble(firstNum);\n\t\t\t\t\t\tif(finalQueue.size() > 0)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tdouble newRes = Double.parseDouble(finalQueue.peek()) + addedRes;\n\t\t\t\t\t\t\tfinalQueue.remove();\n\t\t\t\t\t\t\tfinalQueue.add(Double.toString(newRes));\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tfinalQueue.add(Double.toString(addedRes));\n\t\t\t\t\t\t}\n\t\t\t\t\t\tSystem.out.println(finalQueue.peek());\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase \"-\":\n\t\t\t\t\t\taddedRes = Double.parseDouble(secondNum) - Double.parseDouble(firstNum);\n\t\t\t\t\t\tif(finalQueue.size() > 0)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tdouble newRes = Double.parseDouble(finalQueue.peek()) + addedRes;\n\t\t\t\t\t\t\tfinalQueue.remove();\n\t\t\t\t\t\t\tfinalQueue.add(Double.toString(newRes));\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tfinalQueue.add(Double.toString(addedRes));\n\t\t\t\t\t\t}\n\t\t\t\t\t\tSystem.out.println(finalQueue.peek());\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase \"*\":\n\t\t\t\t\t\taddedRes = Double.parseDouble(secondNum) * Double.parseDouble(firstNum);\n\t\t\t\t\t\tif(finalQueue.size() > 0)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tdouble newRes = Double.parseDouble(finalQueue.peek()) + addedRes;\n\t\t\t\t\t\t\tfinalQueue.remove();\n\t\t\t\t\t\t\tfinalQueue.add(Double.toString(newRes));\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tfinalQueue.add(Double.toString(addedRes));\n\t\t\t\t\t\t}\n\t\t\t\t\t\tSystem.out.println(finalQueue.peek());\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase \"/\":\n\t\t\t\t\t\taddedRes = Double.parseDouble(secondNum) / Double.parseDouble(firstNum);\n\t\t\t\t\t\tif(finalQueue.size() > 0)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tdouble newRes = Double.parseDouble(finalQueue.peek()) + addedRes;\n\t\t\t\t\t\t\tfinalQueue.remove();\n\t\t\t\t\t\t\tfinalQueue.add(Double.toString(newRes));\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tfinalQueue.add(Double.toString(addedRes));\n\t\t\t\t\t\t}\n\t\t\t\t\t\tSystem.out.println(finalQueue.peek());\n\t\t\t\t\tdefault:\n\t\t\t\t\t\tSystem.out.println(\"Error, invalid operation\");\n\t\t\t\t\t\tbreak;\n\t\t\t\t\n\t\t\t\t}\n\t\t\t}\n\t\t\t// if its a number, pushing it on the evaluate stack to be operated on\n\t\t\telse if (isNumber(currentNum.charAt(0)))\n\t\t\t{\n\t\t\t\tevaluateStack.push(currentNum);\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tSystem.out.println(\"Error, invalid input into final queue\");\n\t\t\t}\n\t\t\t\n\t\t\t// removing the last item in the queue\n\t\t\t\n\t\t\tevalulateQueue.remove();\n\t\t\t\n\t\t}\n\t}", "private void prepOperatorKeys() {\r\n MAIN_PANEL.getInputMap(JComponent.WHEN_ANCESTOR_OF_FOCUSED_COMPONENT)\r\n .put(KeyStroke.getKeyStroke('/'), \"division\");\r\n MAIN_PANEL.getActionMap()\r\n .put(\"division\", new KeyAction(ValidOperators.DIVISION));\r\n \r\n MAIN_PANEL.getInputMap(JComponent.WHEN_ANCESTOR_OF_FOCUSED_COMPONENT)\r\n .put(KeyStroke.getKeyStroke('*'), \"multiplication\");\r\n MAIN_PANEL.getActionMap()\r\n .put(\"multiplication\", new KeyAction(ValidOperators.MULTIPLICATION));\r\n \r\n MAIN_PANEL.getInputMap(JComponent.WHEN_ANCESTOR_OF_FOCUSED_COMPONENT)\r\n .put(KeyStroke.getKeyStroke('+'), \"addition\");\r\n MAIN_PANEL.getActionMap()\r\n .put(\"addition\", new KeyAction(ValidOperators.ADDITION));\r\n \r\n MAIN_PANEL.getInputMap(JComponent.WHEN_ANCESTOR_OF_FOCUSED_COMPONENT)\r\n .put(KeyStroke.getKeyStroke('-'), \"subtraction\");\r\n MAIN_PANEL.getActionMap()\r\n .put(\"subtraction\", new KeyAction(ValidOperators.SUBTRACTION));\r\n }", "@Override\n\tprotected void generateTerms() {\t\t\n\t\tString[] terms = this.data.substring(this.semiColonIndex+6,this.data.length()).split(\"(?=-|\\\\+)\"); // splits string by \"-\" or \"+\" into array of terms\n\t\t\n\t\tfor (String numeric_term : terms) {\n \t\t \n\t\t\tint power;\n \t try {\n \t\t power = Integer.parseInt(numeric_term.charAt(numeric_term.length()-1) + \"\");\n \t } catch (NumberFormatException e) {\n \t\t power = 1; // to the power of 1 same as having no power\n \t }\n \t \n \t\t int multiplier;\n \t try {\n \t\t multiplier = Integer.parseInt(numeric_term.substring(1,3)); // works if 2 digit multiplier\n \t } catch (NumberFormatException e) {\n \t\t multiplier = Integer.parseInt(numeric_term.charAt(1) + \"\"); // works if 1 digit multiplier\n \t }\n \t\t \n \t\t String action = numeric_term.charAt(0) + \"\";\n \t\t \n \t\t Term term = new Term(power, multiplier, action);\n \t\t equation.addTerm(term); // add terms to equation object \n\t\t} \n\n\t}", "private int getResult() {\n ArrayList<Character> operanzi = new ArrayList<Character>();\n ArrayList<Character> operatori = new ArrayList<Character>();\n for(int i = 1; i <= n; i++){\n // System.out.println(i);\n if ((expr[i] == 'T' ) || (expr[i] == 'F'))\n operanzi.add(expr[i]);\n else \n operatori.add(expr[i]);\n }\n System.out.println(operanzi.get(0));\n int n1 = operanzi.size();\n System.out.println(n1);\n long [][] T = new long[n1][n1];\n long [][] F = new long[n1][n1];\n\n for (int i = 0; i < operanzi.size(); i++) {\n \n if (operanzi.get(i) == 'T') {\n T[i][i] = 1;\n F[i][i] = 0;\n } else if (operanzi.get(i) == 'F') {\n T[i][i] = 0;\n F[i][i] = 1;\n }\n }\n long aux=0;\n for (int l=1; l<n1; ++l) \n { \n for (int i=0, j=l; j<n1; ++i, ++j) \n { \n T[i][j] = F[i][j] = 0; \n for (int g=0; g<l; g++) \n { \n int k = i + g; \n long total_i_k = evaluate(T[i][k],F[i][k],'+'); \n long total_k_j = evaluate(T[k+1][j] , F[k+1][j],'+'); \n long total = evaluate(total_i_k,total_k_j,'*');\n if (operatori.get(k) == '&') \n { \n aux = evaluate(T[i][k],T[k+1][j],'*');\n T[i][j] = evaluate(T[i][j],aux,'+'); \n \n\n F[i][j] = evaluate( F[i][j],evaluate(total,aux,'-'),'+'); \n } \n if (operatori.get(k) == '|') \n { \n aux = evaluate(F[i][k],F[k+1][j],'*');\n F[i][j] = evaluate(F[i][j],aux,'+'); \n \n T[i][j] =evaluate( T[i][j],evaluate(total, aux,'-'),'+'); \n } \n if (operatori.get(k) == '^') \n { \n aux = evaluate(F[i][k],T[k+1][j],'*');\n long aux1= evaluate(T[i][k],F[k+1][j],'*');\n T[i][j] = evaluate( T[i][j],evaluate( aux , aux1,'+'),'+'); \n aux = evaluate(T[i][k],T[k+1][j],'*');\n aux1 = evaluate(F[i][k],F[k+1][j],'*');\n F[i][j] = evaluate( F[i][j],evaluate(aux,aux1,'+'),'+');\n } \n } \n } \n } \n return (int)T[0][n1-1]; \n }", "@Test\n @Order(1)\n void algorithms() {\n \n Combination initialComb = new Combination();\n for (int i = 0; i < assignementProblem.getAssignmentData().getLength(); i++) {\n initialComb.add((long) i + 1);\n }\n assignementProblem.setInCombination(initialComb);\n executeAlgo(SearchTestUtil.ALGO.TABU);\n executeAlgo(SearchTestUtil.ALGO.RECUIT);\n }", "public void updateOperations() {\n String temp = \"\";\n \n if (chkBoxOperators[0].isSelected()) temp += PLUS;\n if (chkBoxOperators[1].isSelected()) temp += MINUS;\n if (chkBoxOperators[2].isSelected()) temp += TIMES;\n if (chkBoxOperators[3].isSelected()) temp += DIVIDE;\n \n charOperators = temp.toCharArray();\n if (temp.indexOf(currentOperator) == -1) setNewNumbers();\n \n }", "private static void createOperationsGroup(BufferedReader input) throws IOException {\n System.out.print(\"Randomize operations(Y/n): \");\n String answer = input.readLine();\n\n int operationSize = rg.getMapOfCodeAndRank().size();\n ArrayList<String> operations = new ArrayList<>(operationSize);\n\n ArrayList<Integer> indexsOfAdd = new ArrayList<>();\n ArrayList<Integer> indexsOfSub = new ArrayList<>();\n ArrayList<Integer> indexsOfMult = new ArrayList<>();\n ArrayList<Integer> indexsOfDev = new ArrayList<>();\n ArrayList<Integer> indexsOfPow = new ArrayList<>();\n if (answer.equalsIgnoreCase(\"y\")) {\n Random random = new Random();\n int randomNumber;\n for (int i = 0; i < operationSize; i++) {\n randomNumber = random.nextInt(5);\n String symbol = \"\";\n switch (randomNumber) {\n case 0: {\n symbol = \"-\";\n indexsOfSub.add(i + 1);\n break;\n }\n case 1: {\n symbol = \"+\";\n indexsOfAdd.add(i + 1);\n break;\n }\n case 2: {\n symbol = \"/\";\n indexsOfDev.add(i + 1);\n break;\n }\n case 3: {\n symbol = \"*\";\n indexsOfMult.add(i + 1);\n break;\n }\n case 4: {\n symbol = \"^\";\n indexsOfPow.add(i + 1);\n break;\n }\n }\n operations.add(symbol);\n }\n showOperationsDependency(operations);\n } else {\n System.out.println(\"Choose operation: + - * /\");\n for (int i = 0; i < operationSize; i++) {\n System.out.print(\"Operation #\" + (i + 1) + \" \");\n String symbol = input.readLine();\n operations.add(symbol);\n switch (symbol) {\n case \"+\": {\n indexsOfAdd.add(i + 1);\n break;\n }\n case \"-\": {\n indexsOfSub.add(i + 1);\n break;\n }\n case \"*\": {\n indexsOfMult.add(i + 1);\n break;\n }\n case \"/\": {\n indexsOfDev.add(i + 1);\n break;\n }\n case \"^\": {\n indexsOfPow.add(i + 1);\n }\n }\n }\n }\n System.out.println(\"Macro for *\");\n createMacrosGroups(rg, indexsOfMult);\n System.out.println(\"Macro for /\");\n createMacrosGroups(rg, indexsOfDev);\n System.out.println(\"Macro for + and -\");\n indexsOfAdd.addAll(indexsOfSub);\n createMacrosGroups(rg, indexsOfAdd);\n System.out.println(\"Macro for ^\");\n createMacrosGroups(rg, indexsOfPow);\n }", "String getCombination(int numberOfSides);", "@Override\n public SymmetricOpDescription build() {\n return new SymmetricOpDescription(operatorType, dataCodecClass, tasks, redFuncClass);\n }", "public Element compileExpression() {\n\t\tElement ele = null;\n\t\tString token, tokenType;\n\t\tboolean op;\n\t\tboolean oper = false;\n\t\tString command = \"\";\n\t\tElement expressionParent = document.createElement(\"expression\");\n\n\t\t// if the term-op-term-op cycle breaks, that means its the end of the expression\n\t\tdo {\n\n\t\t\t// At least one term\n\t\t\texpressionParent.appendChild(compileTerm());\n\t\t\t\n\t\t\t//If an operand has been encountered, then can write the command as it is postfix\n\t\t\tif (oper) {\n\t\t\t\twriter.writeCommand(command);\n\t\t\t}\n\t\t\tjackTokenizer clone = new jackTokenizer(jTokenizer);\n\t\t\tclone.advance();\n\t\t\ttoken = clone.presentToken;\n\n\t\t\t// zero or more ops\n\t\t\tif (token.matches(\"\\\\+|-|\\\\*|/|\\\\&|\\\\||<|=|>|~\")) {\n\t\t\t\toper = true;\n\n\t\t\t\tswitch (token) {\n\t\t\t\tcase \"+\":\n\t\t\t\t\tcommand = \"add\";\n\t\t\t\t\tbreak;\n\t\t\t\tcase \"-\":\n\t\t\t\t\tcommand = \"sub\";\n\t\t\t\t\tbreak;\n\t\t\t\tcase \"*\":\n\t\t\t\t\tcommand = \"call Math.multiply 2\";\n\t\t\t\t\tbreak;\n\t\t\t\tcase \"/\":\n\t\t\t\t\tcommand = \"call Math.divide 2\";\n\t\t\t\t\tbreak;\n\t\t\t\tcase \"<\":\n\t\t\t\t\tcommand = \"lt\";\n\t\t\t\t\tbreak;\n\t\t\t\tcase \">\":\n\t\t\t\t\tcommand = \"gt\";\n\t\t\t\t\tbreak;\n\t\t\t\tcase \"=\":\n\t\t\t\t\tcommand = \"eq\";\n\t\t\t\t\tbreak;\n\t\t\t\tcase \"&\":\n\t\t\t\t\tcommand = \"and\";\n\t\t\t\t\tbreak;\n\t\t\t\tcase \"|\":\n\t\t\t\t\tcommand = \"or\";\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\n\t\t\t\tjTokenizer.advance();\n\t\t\t\ttokenType = jTokenizer.tokenType();\n\t\t\t\tele = createXMLnode(tokenType);\n\t\t\t\texpressionParent.appendChild(ele);\n\t\t\t\tjTokenizer.advance();\n\t\t\t\top = true;\n\t\t\t} else {\n\t\t\t\top = false;\n\t\t\t}\n\t\t} while (op);\n\n\t\treturn expressionParent;\n\t}", "<C, O> OperationCallExp<C, O> createOperationCallExp();", "OpList createOpList();", "static AggregateOperation compose(Iterable<AggregateOperation> operations) {\n // NOTE(user): It's possible to replace the following two sets with a single map.\n Set<SegmentId> segmentsToRemove = new TreeSet<SegmentId>(segmentComparator);\n Set<SegmentId> segmentsToAdd = new TreeSet<SegmentId>(segmentComparator);\n Set<SegmentId> segmentsToEndModifying = new TreeSet<SegmentId>(segmentComparator);\n Set<SegmentId> segmentsToStartModifying = new TreeSet<SegmentId>(segmentComparator);\n Set<ParticipantId> participantsToRemove = new TreeSet<ParticipantId>(participantComparator);\n Set<ParticipantId> participantsToAdd = new TreeSet<ParticipantId>(participantComparator);\n Map<String, DocOpList> docOps = new TreeMap<String, DocOpList>();\n for (AggregateOperation operation : operations) {\n composeIds(operation.segmentsToRemove, segmentsToRemove, segmentsToAdd);\n composeIds(operation.segmentsToAdd, segmentsToAdd, segmentsToRemove);\n composeIds(operation.segmentsToEndModifying, segmentsToEndModifying, segmentsToStartModifying);\n composeIds(operation.segmentsToStartModifying, segmentsToStartModifying, segmentsToEndModifying);\n composeIds(operation.participantsToRemove, participantsToRemove, participantsToAdd);\n composeIds(operation.participantsToAdd, participantsToAdd, participantsToRemove);\n for (DocumentOperations documentOps : operation.docOps) {\n DocOpList docOpList = docOps.get(documentOps.id);\n if (docOpList != null) {\n docOps.put(documentOps.id, docOpList.concatenateWith(documentOps.operations));\n } else {\n docOps.put(documentOps.id, documentOps.operations);\n }\n }\n }\n return new AggregateOperation(\n new ArrayList<SegmentId>(segmentsToRemove),\n new ArrayList<SegmentId>(segmentsToAdd),\n new ArrayList<SegmentId>(segmentsToEndModifying),\n new ArrayList<SegmentId>(segmentsToStartModifying),\n new ArrayList<ParticipantId>(participantsToRemove),\n new ArrayList<ParticipantId>(participantsToAdd),\n mapToList(docOps));\n }", "private String interestOpsToString(SelectionKey key){\n\t\tif (!key.isValid()) {\n\t\t\treturn \"CANCELLED\";\n\t\t}\n\t\tint interestOps = key.interestOps();\n\t\tArrayList<String> list = new ArrayList<>();\n\t\tif ((interestOps&SelectionKey.OP_ACCEPT)!=0) list.add(\"OP_ACCEPT\");\n\t\tif ((interestOps&SelectionKey.OP_READ)!=0) list.add(\"OP_READ\");\n\t\tif ((interestOps&SelectionKey.OP_WRITE)!=0) list.add(\"OP_WRITE\");\n\t\treturn String.join(\"|\",list);\n\t}", "private Pair<JsonArray, JsonArray> performManyOpsAndReturnResultingErrorsAndResults(String accession,\n Iterable<Op> ops) {\n JsonArray opsWithErrors = new JsonArray();\n JsonArray opsWithResults = new JsonArray();\n boolean failed = false;\n boolean setFailed = false;\n JsonElement resultOfPreviousOperations = JsonNull.INSTANCE;\n JsonElement resultOfCurrentOperation;\n List<Op> opsThatProducedTheSameResult = new ArrayList<>();\n for (Op op: ops) {\n if (failed) {\n resultOfCurrentOperation = new JsonPrimitive(\"Not started\");\n } else {\n Pair<OpResult, ? extends JsonElement> r = performOneOp(accession, op);\n if (r.getLeft().equals(OpResult.FAILURE)) {\n setFailed = true;\n }\n resultOfCurrentOperation = r.getRight();\n }\n\n if (resultOfPreviousOperations.equals(resultOfCurrentOperation)) {\n opsThatProducedTheSameResult.add(op);\n } else {\n if (!resultOfPreviousOperations.equals(JsonNull.INSTANCE)) {\n (failed ? opsWithErrors : opsWithResults)\n .add(aggregatedResultsObject(opsThatProducedTheSameResult, resultOfPreviousOperations));\n }\n opsThatProducedTheSameResult = new ArrayList<>();\n opsThatProducedTheSameResult.add(op);\n resultOfPreviousOperations = resultOfCurrentOperation;\n }\n failed |= setFailed;\n }\n (failed ? opsWithErrors : opsWithResults)\n .add(aggregatedResultsObject(opsThatProducedTheSameResult, resultOfPreviousOperations));\n return Pair.of(opsWithErrors, opsWithResults);\n }", "Operands createOperands();", "private List<State> expandStateOperatorSym(State oldState, OpNonterminalSymbol opSym, SketchNode sk) {\n\n\n List<State> ret = new ArrayList<>();\n\n // if sk is in the format of ?{temrinal}\n// if (sk.containsComponents() && sk.components.size() == 1 && sk.components.)\n\n // do not continue if we are trying to replace argument of notcc with a op node\n if (oldState.pp.findSelectedVar().parent != null && !(oldState.pp.findSelectedVar().parent instanceof RepSketchNode)) {\n if (((OperatorNode) oldState.pp.findSelectedVar().parent).operatorName.equals(\"notcc\")) {\n return ret;\n }\n }\n\n if (opSym.name.equals(\"repeat\") || opSym.name.equals(\"repeatatleast\")) {\n\n if (Main.SYMBOLOC_ENABLED == 0) {\n\n for (int v = Main.K_MIN; v <= Main.K_MAX; v++) {\n State newState = createNewState(oldState, sk, opSym, opSym.prod.argumentSymbols.length, new int[] { v });\n if (newState != null) {\n if (Main.PRUNE_ONLY_LEAF == 0) {\n if (evalApprox(newState)) ret.add(newState);\n } else { ret.add(newState); }\n }\n }\n\n } else {\n\n State newState = createNewState(oldState, sk, opSym, opSym.prod.argumentSymbols.length, null);\n if (newState != null) {\n if (Main.PRUNE_ONLY_LEAF == 0) {\n if (evalApprox(newState)) ret.add(newState);\n } else { ret.add(newState); }\n }\n\n }\n\n } else if (opSym.name.equals(\"repeatrange\")) {\n\n if (Main.SYMBOLOC_ENABLED == 0) {\n\n for (int k1 = Main.K_MIN; k1 < Main.K_MAX; k1++) {\n\n for (int k2 = k1 + 1; k2 <= Main.K_MAX; k2++) {\n\n State newState = createNewState(oldState, sk, opSym, opSym.prod.argumentSymbols.length, new int[] { k1, k2 });\n if (newState != null) {\n if (Main.PRUNE_ONLY_LEAF == 0) {\n if (evalApprox(newState)) ret.add(newState);\n } else { ret.add(newState); }\n }\n }\n }\n\n } else {\n\n State newState = createNewState(oldState, sk, opSym, opSym.prod.argumentSymbols.length, null);\n if (newState != null) {\n if (Main.PRUNE_ONLY_LEAF == 0) {\n if (evalApprox(newState)) ret.add(newState);\n } else { ret.add(newState); }\n }\n }\n\n } else if (opSym.name.equals(\"optional\") || opSym.name.equals(\"star\")) {\n\n State newState = createNewState(oldState, sk, opSym, opSym.prod.argumentSymbols.length, null);\n\n\n// System.out.println(\"op/st:\" + newState);\n\n if (newState != null) {\n if (Main.PRUNE_ONLY_LEAF == 0) {\n if (evalApprox(newState)) ret.add(newState);\n// else{System.out.println(\"pruned\");}\n } else { ret.add(newState); }\n }\n } else if (opSym.name.equals(\"concat\")) {\n // A' = A[v -> \\null, v1 -> A(v), v2 -> A(v)]\n {\n\n State newState = createNewState(oldState, sk, opSym, opSym.prod.argumentSymbols.length, 0);\n if (newState != null) {\n if (Main.PRUNE_ONLY_LEAF == 0) {\n if (evalApprox(newState)) ret.add(newState);\n } else { ret.add(newState); }\n }\n }\n\n // A' = A[v -> \\null, v1 -> ??, v2 -> A(v)]\n {\n\n State newState = createNewState(oldState, sk, opSym, opSym.prod.argumentSymbols.length, 2);\n if (newState != null) {\n if (Main.PRUNE_ONLY_LEAF == 0) {\n if (evalApprox(newState)) ret.add(newState);\n } else { ret.add(newState); }\n }\n }\n\n // A' = A[v -> \\null, v1 -> A(v), v2 -> ??]\n {\n\n State newState = createNewState(oldState, sk, opSym, opSym.prod.argumentSymbols.length, 1);\n if (newState != null) {\n if (Main.PRUNE_ONLY_LEAF == 0) {\n if (evalApprox(newState)) ret.add(newState);\n } else { ret.add(newState); }\n }\n }\n// return;\n } else if (opSym.name.equals(\"not\")) {\n\n {\n State newState = createNewState(oldState, sk, opSym);\n if (newState != null) {\n if (Main.PRUNE_ONLY_LEAF == 0) {\n if (evalApprox(newState)) ret.add(newState);\n } else { ret.add(newState); }\n }\n }\n\n } else if (opSym.prod.argumentSymbols.length == 1) {\n\n // A' = A[v -> \\null, v1 -> A(v)]\n\n State newState = createNewState(oldState, sk, opSym, opSym.prod.argumentSymbols.length, 0);\n if (newState != null) {\n if (Main.PRUNE_ONLY_LEAF == 0) {\n if (evalApprox(newState)) ret.add(newState);\n } else { ret.add(newState); }\n }\n\n// return;\n\n } else if (opSym.prod.argumentSymbols.length == 2) {\n\n // A' = A[v -> \\null, v1 -> A(v), v2 -> A(v)]\n {\n\n State newState = createNewState(oldState, sk, opSym, opSym.prod.argumentSymbols.length, 0);\n if (newState != null) {\n if (Main.PRUNE_ONLY_LEAF == 0) {\n if (evalApprox(newState)) ret.add(newState);\n } else { ret.add(newState); }\n }\n }\n\n // A' = A[v -> \\null, v1 -> A(v), v2 -> ??]\n {\n\n State newState = createNewState(oldState, sk, opSym, opSym.prod.argumentSymbols.length, 1);\n if (newState != null) {\n if (Main.PRUNE_ONLY_LEAF == 0) {\n if (evalApprox(newState)) ret.add(newState);\n } else { ret.add(newState); }\n }\n }\n\n } else {\n throw new RuntimeException();\n }\n\n// if (Main.DEBUG == 1) {\n// for (State st : ret) {\n// System.out.println(\"added operator sym: \" + st);\n// }\n// }\n\n// long end = System.currentTimeMillis();\n\n// Main.enumerate_operatorSym += (end - start) / 1000.0;\n\n return ret;\n\n }", "public static String[] randomQuestionKS2(String op){\r\n int part1 = randomNumber();\r\n int part2 = randomNumber();\r\n \r\n ArrayList<Integer> multiQs = new ArrayList<>(Arrays.asList(2,5,10));\r\n ArrayList<Integer> divQs = new ArrayList<>(Arrays.asList(5,10));\r\n \r\n \r\n if (op.equals(\"*\")){ \r\n int pos = multiQs.get(randomMulti());\r\n \r\n part1 = pos;\r\n } else if (op.equals(\"/\")){\r\n ArrayList <Integer> divide10 = new ArrayList<>(Arrays.asList(10,20,30,40,50,60,70,80,90,100));\r\n \r\n int pos = (randomNumber()) - 1;\r\n int pos2 = (randomDivide());\r\n \r\n part1 = divide10.get(pos);\r\n part2 = divQs.get(pos2); \r\n }\r\n \r\n String str1 = Integer.toString(part1);\r\n String str2 = Integer.toString(part2);\r\n \r\n String question = str1 + \" \" + op + \" \" + str2;\r\n int ans = 0;\r\n \r\n if (op.equals(\"+\")){\r\n part1 = randomNumber50();\r\n part2 = randomNumber50();\r\n ans = part1 + part2;\r\n str1 = Integer.toString(part1);\r\n str2 = Integer.toString(part2);\r\n question = str1 + \" \" + op + \" \" + str2;\r\n }\r\n else if (op.equals(\"-\")){\r\n part1 = randomNumber100();\r\n part2 = randomNumber50();\r\n if (part1 < part2){\r\n ans = part2 - part1;\r\n str1 = Integer.toString(part1);\r\n str2 = Integer.toString(part2);\r\n question = str2 + \" \" + op + \" \" + str1;\r\n }\r\n ans = part1 - part2;\r\n str1 = Integer.toString(part1);\r\n str2 = Integer.toString(part2);\r\n question = str1 + \" \" + op + \" \" + str2;\r\n }\r\n else if (op.equals(\"*\")){\r\n ans = part1 * part2;\r\n }\r\n else if (op.equals(\"/\")){\r\n ans = part1 / part2;\r\n }\r\n \r\n String ansStr = Integer.toString(ans);\r\n \r\n String x[] = new String[2];\r\n x[0] = question;\r\n x[1] = ansStr;\r\n \r\n return x;\r\n }", "public static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\tint t=sc.nextInt();\n\t\tfor(int Case = 1;Case<=t;Case++){\n\t\t\tString stck = sc.next();\n\t\t\tint move =0;\n\t\t\tboolean ok = false;\n\t\t\tif(stck.indexOf('+')==-1)\n\t\t\t{\n\t\t\t\tmove=1;\n\t\t\t}else if(stck.indexOf('-')==-1)\n\t\t\t{\n\t\t\tmove =0;\n\t\t\t}else{\n\t\t\t\tString oper = stck.substring(0, stck.lastIndexOf('-')+1);\n\t\t\t\t\n\t\t\t\tif(oper.lastIndexOf('-')==0)\n\t\t\t{\n\t\t\tchar[] temp = oper.toCharArray();\n\t\t\t temp[oper.lastIndexOf('-')] = '+';\n\t\t\toper = String.valueOf(temp);\n\t\t\tmove+=1;\n\t\t\t\t\t}\n\t\t\telse if(oper.indexOf('-')==oper.length()-1)\n\t\t\t\t{\n\t\t\t\tchar[] temp = oper.toCharArray();\n\t\t\t\t temp[oper.indexOf('-')] = '+';\n\t\t\t\toper = String.valueOf(temp);\n\t\t\t\tmove+=2;\n\t\t\t\t\t\t}else{\n\t\t\t\t\t\t\tfor(int i =0;i<=oper.lastIndexOf('-');i++){\n\t\t\t\t\t\t\t\tif(oper.charAt(i)=='+')\n\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\tok=true;\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tif(!ok){\n\t\t\t\t\t\t\t\tmove=1;\n\t\t\t\t\t\t\t\toper=\"+\";\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t}\n\t\t\t//System.out.println(1+oper);\n\t\t\t\n\t\t\twhile(oper.indexOf('-')!=-1){\n\t\t\tint k = 0;\n\t\t\t\tif(oper.indexOf('+')==0){\n\t\t\t\t\tchar[] temp = oper.toCharArray();\n\t\t\t\t\t temp[0] = '-';\n\t\t\t\t\toper = String.valueOf(temp);\n\t\t\t\twhile(oper.charAt(k+1)=='+')\n\t\t\t\t\t{\n\t\t\t\t\tk++;\n\t\t\t\t\tchar[] temp1 = oper.toCharArray();\n\t\t\t\t\t temp1[k] = '-';\n\t\t\t\t\toper = String.valueOf(temp1);\n\t\t\t\t\t}\n\t\t\t\t//System.out.println(2+oper);\n\t\t\t\tchar[] temp1 = oper.toCharArray();\n\t\t\t\tfor(int i =0;i<temp1.length;i++){\n\t\t\t\t\tif(temp1[i]=='+')\n\t\t\t\t\t\ttemp1[i]='-';\n\t\t\t\t\telse\n\t\t\t\t\t\ttemp1[i]='+';\n\t\t\t\t\t//System.out.print(temp1[i]);\n\t\t\t\t}\n\t\t\t\toper = String.valueOf(temp1);\n\t\t\t\tStringBuilder s = new StringBuilder(oper);\n\t\t\t\toper = (s.reverse()).toString();\n\t\t\t\tmove+=2;\n\t\t\t\t//System.out.println(3+\" \"+temp1.length+\"\"+oper);\n\t\t\t\toper = oper.substring(0, oper.lastIndexOf('-')+1);\n\t\t\t\t//System.out.println(3+\" \"+temp1.length+\"\"+oper);\n\t\t\t}\n\t\t\t\telse{\n\t\t\t\t\tchar[] temp1 = oper.toCharArray();\n\t\t\t\t\tfor(int i =0;i<temp1.length;i++){\n\t\t\t\t\t\tif(temp1[i]=='+')\n\t\t\t\t\t\t\ttemp1[i]='-';\n\t\t\t\t\t\telse\n\t\t\t\t\t\t\ttemp1[i]='+';\n\t\t\t\t\t\t//System.out.print(temp1[i]);\n\t\t\t\t\t}\n\t\t\t\t\toper = String.valueOf(temp1);\n\t\t\t\t\tStringBuilder s = new StringBuilder(oper);\n\t\t\t\t\toper = (s.reverse()).toString();\n\t\t\t\t\tmove+=1;\n\t\t\t\t\t//System.out.println(3+\" \"+temp1.length+\"\"+oper);\n\t\t\t\t\toper = oper.substring(0, oper.lastIndexOf('-')+1);\n\t\t\t\t\t//System.out.println(3+\" \"+temp1.length+\"\"+oper);\n\t\t\t\t}\n\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\t\n\t\t\tSystem.out.println(\"Case #\"+Case+\": \"+move);\n\t\t}\n\t\t\n\n\t}", "void assignOperators(Object rgID, List<Object> operIDs);", "private void generateCombination() {\r\n\r\n\t\tfor (byte x = 0; x < field.length; x++) {\r\n\t\t\tfor (byte y = 0; y < field[x].length; y++) {\r\n\t\t\t\tfield[x][y].setValue((byte) newFigure(Constants.getRandom()));\r\n\t\t\t}\r\n\t\t}\r\n\t}", "public void evaluate_cipher_sequence() {\n int[][] init_cipher_sequence = new int[18][32];\n // Initialisierung\n // for (int p=0; p<18; p++)\n // for (int t=0; t<32; t++)\n // init_cipher_sequence[p][t] = 0;\n intialize_matrix(init_cipher_sequence);\n\n // Initialisierung mit der Initial Permutation \"IP\"\n int[] m0_m1 = new int[64];\n m0_m1 = select(DES_plaintext, IP);\n\n DES_cipher_sequence = init_cipher_sequence;\n\n for (int j = 0; j < 32; j++) {\n DES_cipher_sequence[0][j] = m0_m1[j];\n DES_cipher_sequence[1][j] = m0_m1[32 + j];\n }\n\n int[][] K = new int[16][48];\n if (DES_action_type == 0)\n K = DES_K;\n else\n K = DES_reversed_K;\n\n // JOptionPane.showMessageDialog(null, \"Evaluating m[0]...m[17] && Action-Type = \" +\n // DES_action_type);\n\n for (int i = 2; i < 18; i++) {\n int[] input_SBoxes = exclusive_or(expand_32bit(DES_cipher_sequence[i - 1]), K[i - 2]);\n int[] fmK = select(lookup_SBoxes(input_SBoxes), P);\n DES_cipher_sequence[i] = exclusive_or(DES_cipher_sequence[i - 2], fmK);\n }\n }", "private static void registerCommands(@NotNull ExecutionEnvironment env) {\n env.registerCommand(\"+\", new BinaryCommand(BinaryCommandOperator.PLUS));\n env.registerCommand(\"-\", new BinaryCommand(BinaryCommandOperator.MINUS));\n env.registerCommand(\"*\", new BinaryCommand(BinaryCommandOperator.MULTIPLY));\n env.registerCommand(\"/\", new BinaryCommand(BinaryCommandOperator.DIVIDE));\n env.registerCommand(\"^\", new BinaryCommand(BinaryCommandOperator.POWER));\n\n // Register more advances binary operators\n env.registerCommand(\"×√\", new BinaryCommand(BinaryCommandOperator.NTH_ROOT));\n env.registerCommand(\"nCr\", new BinaryCommand(BinaryCommandOperator.NCR));\n env.registerCommand(\"nPr\", new BinaryCommand(BinaryCommandOperator.NPR));\n\n // Register unary arithmetic operators\n env.registerCommand(\"²\", new UnaryCommand(UnaryCommandOperator.SQUARED));\n env.registerCommand(\"³\", new UnaryCommand(UnaryCommandOperator.CUBED));\n env.registerCommand(\"√(\", new UnaryCommand(UnaryCommandOperator.SQUARE_ROOT));\n env.registerCommand(\"∛(\", new UnaryCommand(UnaryCommandOperator.CUBIC_ROOT));\n env.registerCommand(\"!\", new UnaryCommand(UnaryCommandOperator.FACTORIAL));\n \n // Register comparison operators\n env.registerCommand(\"=\", new BinaryCommand(BinaryCommandOperator.EQUALS));\n env.registerCommand(\"≠\", new BinaryCommand(BinaryCommandOperator.NOT_EQUALS));\n env.registerCommand(\"<\", new BinaryCommand(BinaryCommandOperator.LESS_THAN));\n env.registerCommand(\"≤\", new BinaryCommand(BinaryCommandOperator.LESS_EQUALS));\n env.registerCommand(\">\", new BinaryCommand(BinaryCommandOperator.GREATER_THAN));\n env.registerCommand(\"≥\", new BinaryCommand(BinaryCommandOperator.GREATER_EQUALS));\n\n // Register logical operators\n env.registerCommand(\"and\", new BinaryCommand(BinaryCommandOperator.AND));\n env.registerCommand(\"or\", new BinaryCommand(BinaryCommandOperator.OR));\n env.registerCommand(\"xor\", new BinaryCommand(BinaryCommandOperator.XOR));\n env.registerCommand(\"not(\", new UnaryCommand(UnaryCommandOperator.NOT));\n }", "public static void main(String[] args) {\n\r\n\t\t\r\n\t\t\r\n\t\tString BETTEST = \"/+8*62-9*43\";\r\n\r\n\r\n\t\tBinaryExpressionTree<String>listBET = new BinaryExpressionTree<String>();\r\n\r\n\t\tfor (int i = 0; i < BETTEST.length(); i++) {\r\n\t\t\t\r\n\t\t\tlistBET.add(\"\" + BETTEST.charAt(i));\t\t\t\r\n\t\t}\r\n\r\n\r\n\t\tSystem.out.println(\"\\nPreOrder Traversal\");\r\n\t\tlistBET.PreorderTraversal();\r\n\t\tSystem.out.println(\"\\nPostOrder Traversal\");\r\n\t\tlistBET.PostorderTraversal();\r\n\r\n\r\n\t\t String BETTEST2 =\"/+84*32\";\r\n\t\t \r\n\t\t BinaryExpressionTree<String>listBET2 = new BinaryExpressionTree<String>();\r\n\t\t\r\n\t\t for (int i = 0; i < BETTEST2.length(); i++) {\r\n\t\t\t\t\r\n\t\t\t\tlistBET2.add(\"\" + BETTEST2.charAt(i));\t\r\n\t\t\r\n\t\r\n\t}\r\n\t\t\tSystem.out.println(\"\\nPreOrder Traversal\");\r\n\t\t\tlistBET2.PreorderTraversal();\r\n\t\t\tSystem.out.println(\"\\nPostOrder Traversal\");\r\n\t\t\tlistBET2.PostorderTraversal();\r\n\t\t\t\r\n String BETTEST3 =\"*-92/31\";\r\n\t\t \r\n\t\t BinaryExpressionTree<String>listBET3 = new BinaryExpressionTree<String>();\r\n\t\t\r\n\t\t for (int i = 0; i < BETTEST3.length(); i++) {\r\n\t\t\t\t\r\n\t\t\t\tlistBET3.add(\"\" + BETTEST3.charAt(i));\t\r\n\t\r\n\t\t\t\t\r\n\t\t\t\r\n\t}\r\n\t\t System.out.println(\"\\nPreOrder Traversal\");\r\n\t\t\tlistBET3.PreorderTraversal();\r\n\t\t\tSystem.out.println(\"\\nPostOrder Traversal\");\r\n\t\t\t\r\n\t\t\tlistBET3.PostorderTraversal();\r\n \r\n\t\t\tString BETTEST4 =\"-/*8043\";\r\n\t\t \r\n\t\t BinaryExpressionTree<String>listBET4 = new BinaryExpressionTree<String>();\r\n\t\t\r\n\t\t for (int i = 0; i < BETTEST4.length(); i++) {\r\n\t\t\t\t\r\n\t\t\t\tlistBET4.add(\"\" + BETTEST4.charAt(i));\t\r\n\t\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\r\n\t}\r\n\t\t\tSystem.out.println(\"\\nPreOrder Traversal\");\r\n\t\t\tlistBET4.PreorderTraversal();\r\n\t\t\tSystem.out.println(\"\\nPostOrder Traversal\");\r\n\t\t\tlistBET4.PostorderTraversal();\r\n}", "public static ArrayList<String> generateQ(int num, String op){\r\n //Calls the RandomQuestion from the KeyFunctions Class\r\n //Rounding -> \"^\"\r\n //Algebra -> \"Alg\"\r\n //Percentages -> \"%\"\r\n //Ratio -> \":\"\r\n //Fraction -> \"//\"\r\n \r\n bothList = new ArrayList<String>();\r\n if (op.equals(\"+\")||op.equals(\"-\")||op.equals(\"*\")||op.equals(\"/\")){\r\n for (int i = 1; i <= num; i++){\r\n String[] x = randomQuestionKS2(op);\r\n\r\n bothList.add(x[0]);\r\n bothList.add(x[1]);\r\n }}\r\n \r\n if (op.equals(\"^\")||op.equals(\"Alg\")||op.equals(\"%\")||op.equals(\":\")||op.equals(\"//\")){\r\n for (int i = 1; i <= num; i++){\r\n String[] x = randomQuestions(op);\r\n \r\n bothList.add(x[0]);\r\n bothList.add(x[1]);\r\n }}\r\n \r\n //System.out.print(questionList);\r\n //System.out.print(answerList);\r\n //System.out.print(bothList);\r\n return bothList;\r\n \r\n }", "public int operation(int number1,int number2,String operator)", "private static String[] calculateAllAdditionsAndSubtractions(String[] formulaArray){\n Integer operatorPosition = getAdditionOrSubtractionPosition(formulaArray);\n while(operatorPosition!=-1){\n try {\n formulaArray = calculateAdditionOrSubtraction(formulaArray, operatorPosition);\n }catch(Exception e){\n System.err.println(e);\n }\n operatorPosition= getAdditionOrSubtractionPosition(formulaArray);\n }\n return formulaArray;\n\n }", "public static String iterate(String input, String[] subkeys){\n\n String leftInput;\n String rightInput = input.substring(32);\n String result = \"\";\n\n for (String subkey : subkeys) {\n leftInput = rightInput;\n rightInput = xor(leftInput, fFunction(rightInput, subkey));\n result = leftInput + rightInput;\n }\n\n return result;\n }", "private Operator compile(List<Operator> ops, int offset, int length) {\n \n int lLength = findExpression(ops, offset, length);\n \n if (lLength == length){\n \n // Case 1: EXPR\n if (length == 1){\n \n // Return single operator\n return ops.get(offset);\n \n } else if ((ops.get(offset) instanceof PrecedenceOperator) &&\n (ops.get(offset + length - 1) instanceof PrecedenceOperator)){\n \n // Remove brackets\n return compile(ops, offset+1, length-2);\n \n } else {\n throw new RuntimeException(\"Invalid expression\");\n }\n \n } else {\n \n // Case 2: EXPR <OP> EXPR\n if (!(ops.get(offset + lLength) instanceof BinaryOperator)){\n \n // Invalid\n throw new RuntimeException(\"Expecting EXPR <OP> EXPR\");\n } else {\n \n // Binary operator\n BinaryOperator bop = (BinaryOperator)ops.get(offset + lLength);\n bop.left = compile(ops, offset, lLength);\n bop.right = compile(ops, offset + lLength + 1, length - lLength - 1);\n return bop;\n }\n }\n }", "public static void main(String[] args) {\n MathOp add=new MathOp() {\n \t \n public int operation(int x, int y)\n {\n \t return x+y;\n }\n\t };\n\t System.out.println(add.operation(1, 2));\n \n\t MathOp sub=new MathOp() {\n \t \n\t public int operation(int x, int y)\n\t {\n\t \t return x-y;\n\t }\n\t\t };\n\t\t System.out.println(sub.operation(1, 2));\n\t \n\t\t MathOp mul=new MathOp() {\n\t \t \n\t\t public int operation(int x, int y)\n\t\t {\n\t\t \t return x*y;\n\t\t }\n\t\t\t };\n\t\t\t System.out.println(mul.operation(1, 2));\n\t\t \n\t\t\t MathOp div=new MathOp() {\n\t\t \t \n\t\t\t public int operation(int x, int y)\n\t\t\t { \n\t\t\t \t return x/y;\n\t\t\t }\n\t\t\t\t };\n\t\t\t\t System.out.println(div.operation(1, 2));\n\t\t\t \n}", "public Expression commutativeExp() {\r\n return this;\r\n }", "private static String evaluate(ArrayList<String> operators, ArrayList<String> operands) {\n\n /* Check for valid input. There should be one more operand than operator. */\n if (operands.size() != operators.size()+1)\n return \"Invalid Input\";\n\n String current;\n int value;\n int numMultiply = 0;\n int numAdd = 0;\n int currentOperator = 0;\n\n /* Get the number of multiplications in the operators list. */\n for (int i = 0; i < operators.size(); i++) {\n\n if (operators.get(i).equals(\"*\"))\n numMultiply++;\n }\n\n /* Get the number of addition and subtraction in the operators list. */\n for (int i = 0; i < operators.size(); i++) {\n\n if (operators.get(i).equals(\"-\") || operators.get(i).equals(\"+\"))\n numAdd++;\n }\n\n /* Evaluate multiplications first, from left to right. */\n while (numMultiply > 0){\n\n current = operators.get(currentOperator);\n if (current.equals(\"*\")) {\n\n /* When multiplication is found in the operators, get the associative operands from the operands list.\n Associative operands are found in the operands list at indexes current operator and current operator + 1.\n */\n value = Integer.parseInt(operands.get(currentOperator)) * Integer.parseInt(operands.get(currentOperator+1));\n\n /* Remove the operands and the operator since they have been evaluated and add the evaluated answer back in the operands. */\n operators.remove(currentOperator);\n operands.remove(currentOperator);\n operands.remove(currentOperator);\n operands.add(currentOperator, Integer.toString(value));\n\n numMultiply--;\n }\n else\n currentOperator++;\n }\n\n currentOperator = 0;\n\n /* Next evaluate the addition and subtraction, from left to right. */\n while (numAdd > 0){\n current = operators.get(currentOperator);\n if (current.equals(\"+\")) {\n\n value = Integer.parseInt(operands.get(currentOperator)) + Integer.parseInt(operands.get(currentOperator+1));\n operators.remove(currentOperator);\n operands.remove(currentOperator);\n operands.remove(currentOperator);\n operands.add(currentOperator, Integer.toString(value));\n numAdd--;\n }\n\n else if (current.equals(\"-\")) {\n\n value = Integer.parseInt(operands.get(currentOperator)) - Integer.parseInt(operands.get(currentOperator+1));\n operators.remove(currentOperator);\n operands.remove(currentOperator);\n operands.remove(currentOperator);\n operands.add(currentOperator, Integer.toString(value));\n numAdd--;\n }\n else\n currentOperator++;\n }\n\n /* When all the operations have been evaluated, the final answer will be in the first element of the operands list. */\n return operands.get(0);\n }", "String getOp();", "String getOp();", "String getOp();", "private String[] getCrossProduct(String digits) {\n\t\tString finalDigit[] = dict[Integer.parseInt(digits.charAt(0)+\"\")];\n\t\tString nextDigit[];\n\t\tString[] str ;\n\t\tint idx;\n\t\t\n\t\tfor(int k = 1; k < digits.length(); k++) {\n\t\t\tnextDigit= dict[Integer.parseInt(digits.charAt(k)+\"\")];\n\t\t\tidx = 0;\n\t\t\tstr = new String[finalDigit.length* nextDigit.length];\n\t\t\tfor(int i = 0; i < finalDigit.length; i++) {\n\t\t\t\tfor(int j = 0; j < nextDigit.length; j++){\n\t\t\t\t\tstr[idx++] = finalDigit[i] + nextDigit[j];\n\t\t\t\t}\n\t\t\t}\n\t\t\tfinalDigit = str;\n\t\t\t\n\t\t}\n\t\treturn finalDigit;\n\t}", "public static void main(String[] args) {\n\n\n Operation operationAdd = OperationFactory.createOperation(\"+\");\n operationAdd.setValue1(10);\n operationAdd.setValue2(5);\n System.out.println(operationAdd.getResult());\n }", "private void processOperator() {\r\n\t\tif (expression[currentIndex] == '*') {\r\n\t\t\ttoken = new Token(TokenType.OPERATOR, Constants.AND_STRING);\r\n\t\t} else if (expression[currentIndex] == '+') {\r\n\t\t\ttoken = new Token(TokenType.OPERATOR, Constants.OR_STRING);\r\n\t\t} else if (expression[currentIndex] == '!') {\r\n\t\t\ttoken = new Token(TokenType.OPERATOR, Constants.NOT_STRING);\r\n\t\t} else {\r\n\t\t\ttoken = new Token(TokenType.OPERATOR, Constants.XOR_STRING);\r\n\t\t\t// xor operator has 2 characters more than any other operator.\r\n\t\t\tcurrentIndex += 2;\r\n\t\t}\r\n\r\n\t\tcurrentIndex++;\r\n\t}", "public static void setCostPerOp(){\n\t\tcostPerOp.put(\"~\",1.0);\n\t\tcostPerOp.put(\"&\",1.0);\n\t\tcostPerOp.put(\"@\",1.0);\n\t\tcostPerOp.put(\"+\",1.0);\n\t\tcostPerOp.put(\"^\",1.0);\n\t\tcostPerOp.put(\".\",1.0);\n\t\tcostPerOp.put(\"=\",1.0);\n\t}", "public Equation() {\n alpha_arr = new ArrayList<LinkedList<VariableUnit>>();\n for (int i = 0; i < 26; i++) {\n LinkedList<VariableUnit> list = new LinkedList<VariableUnit>();\n alpha_arr.add(list);\n }\n \n op_order = new LinkedList<VariableUnit>();\n }", "public abstract Combinacion elegirCombinacionOculta();", "public Command createOperationCommand(int operator, Operand operand1, Operand operand2);", "private static void init () {\r\n\t\t// make sure they all have non-null entries\r\n\t\tName undef = new Name(\"undef\", 'u');\r\n\t\tArrays.fill(op_names, undef);\r\n\t\tArrays.fill(fn_names, undef);\r\n\t\tArrays.fill(cfn_names, undef);\r\n\t\tArrays.fill(rs_names, undef);\r\n\t\tArrays.fill(rt_names, undef);\r\n\r\n\t\tfor (int n = 0; n < 32; n++)\r\n\t\t\treg_nums[n] = \"$\".concat(Integer.toString(n));\r\n\r\n\t\top_names[OP_SPECIAL] = new Name(\"**spec\");\r\n\t\top_names[OP_REGIMM] = new Name(\"**regimm\");\r\n\t\top_names[OP_J] = new Name(\"j\", 'J');\r\n\t\top_names[OP_JAL] = new Name(\"jal\", 'J');\r\n\t\top_names[OP_BEQ] = new Name(\"beq\", 'r');\r\n\t\top_names[OP_BNE] = new Name(\"bne\", 'r');\r\n\t\top_names[OP_BLEZ] = new Name(\"blez\", 'r');\r\n\t\top_names[OP_BGTZ] = new Name(\"bgtz\", 'r');\r\n\t\top_names[OP_ADDIU] = new Name(\"addiu\", 'b');\r\n\t\top_names[OP_SLTI] = new Name(\"slti\", 'b');\r\n\t\top_names[OP_SLTIU] = new Name(\"sltiu\", 'b');\r\n\t\top_names[OP_ANDI] = new Name(\"andi\", 'b');\r\n\t\top_names[OP_ORI] = new Name(\"ori\", 'b');\r\n\t\top_names[OP_XORI] = new Name(\"xori\", 'b');\r\n\t\top_names[OP_LUI] = new Name(\"lui\", 'I');\r\n\t\top_names[OP_COP1] = new Name(\"**cop1\");\r\n\t\top_names[OP_SPEC2] = new Name(\"**spec2\");\r\n\t\top_names[OP_LB] = new Name(\"lb\", 'l');\r\n\t\top_names[OP_LH] = new Name(\"lh\", 'l');\r\n\t\top_names[OP_LWL] = new Name(\"lwl\", 'l');\r\n\t\top_names[OP_LW] = new Name(\"lw\", 'l');\r\n\t\top_names[OP_LBU] = new Name(\"lbu\", 'l');\r\n\t\top_names[OP_LHU] = new Name(\"lhu\", 'l');\r\n\t\top_names[OP_LWR] = new Name(\"lwr\", 'l');\r\n\t\top_names[OP_SB] = new Name(\"sb\", 's');\r\n\t\top_names[OP_SH] = new Name(\"sh\", 's');\r\n\t\top_names[OP_SWL] = new Name(\"swl\", 's');\r\n\t\top_names[OP_SW] = new Name(\"sw\", 's');\r\n\t\top_names[OP_SWR] = new Name(\"swr\", 's');\r\n\t\top_names[OP_LWC1] = new Name(\"lwc1\", 'L');\r\n\t\top_names[OP_SWC1] = new Name(\"swc1\", 'S');\r\n\r\n\t\tfn_names[FN_SLL] = new Name(\"sll\");\r\n\t\tfn_names[FN_SRL] = new Name(\"srl\");\r\n\t\tfn_names[FN_SRA] = new Name(\"sra\");\r\n\t\tfn_names[FN_SLLV] = new Name(\"sllv\");\r\n\t\tfn_names[FN_SRLV] = new Name(\"srlv\");\r\n\t\tfn_names[FN_SRAV] = new Name(\"srav\");\r\n\t\tfn_names[FN_JR] = new Name(\"jr\", 'j');\r\n\t\tfn_names[FN_JALR] = new Name(\"jalr\", 'j');\r\n\t\tfn_names[FN_MOVN] = new Name(\"movn\", 'u');\r\n\t\tfn_names[FN_SYSCALL] = new Name(\"**sys\");\r\n\t\tfn_names[FN_BREAK] = new Name(\"**break\");\r\n\t\tfn_names[FN_MFHI] = new Name(\"mfhi\");\r\n\t\tfn_names[FN_MFLO] = new Name(\"mflo\");\r\n\t\tfn_names[FN_MULT] = new Name(\"mult\");\r\n\t\tfn_names[FN_MULTU] = new Name(\"multu\");\r\n\t\tfn_names[FN_DIV] = new Name(\"div\");\r\n\t\tfn_names[FN_DIVU] = new Name(\"divu\");\r\n\t\tfn_names[FN_ADDU] = new Name(\"addu\", 'B');\r\n\t\tfn_names[FN_SUBU] = new Name(\"subu\", 'B');\r\n\t\tfn_names[FN_AND] = new Name(\"and\", 'B');\r\n\t\tfn_names[FN_OR] = new Name(\"or\", 'B');\r\n\t\tfn_names[FN_XOR] = new Name(\"xor\", 'B');\r\n\t\tfn_names[FN_NOR] = new Name(\"nor\", 'B');\r\n\t\tfn_names[FN_SLT] = new Name(\"slt\", 'B');\r\n\t\tfn_names[FN_SLTU] = new Name(\"sltu\", 'B');\r\n\r\n\t\trs_names[RS_MF] = new Name(\"mfc1\", '6');\r\n\t\trs_names[RS_CF] = new Name(\"cfc1\", '4');\r\n\t\trs_names[RS_MT] = new Name(\"mtc1\", '5');\r\n\t\trs_names[RS_CT] = new Name(\"ctc1\");\r\n\t\trs_names[RS_BC] = new Name(\"bc1\");\r\n\t\trs_names[RS_FMT_SINGLE] = new Name(\"**fmts\");\r\n\t\trs_names[RS_FMT_DOUBLE] = new Name(\"**fmtd\");\r\n\t\trs_names[RS_FMT_WORD] = new Name(\"**fmtw\");\r\n\r\n\t\tcfn_names[CFN_ADD_D] = new Name(\"add\", '3');\r\n\t\tcfn_names[CFN_SUB_D] = new Name(\"sub\", '3');\r\n\t\tcfn_names[CFN_MUL_D] = new Name(\"mul\", '3');\r\n\t\tcfn_names[CFN_DIV_D] = new Name(\"div\", '3');\r\n\t\tcfn_names[CFN_MOV_D] = new Name(\"mov\", '2'); // 2?\r\n\t\tcfn_names[CFN_NEG_D] = new Name(\"neg\", '2');\r\n\t\tcfn_names[CFN_CVTS] = new Name(\"cvts\", '2'); // all type 2\r\n\t\tcfn_names[CFN_CVTD] = new Name(\"cvtd\", '2');\r\n\t\tcfn_names[CFN_CVTW] = new Name(\"cvtw\", '2');\r\n\t\tcfn_names[CFN_FC_ULT] = new Name(\"ult\", 'c');\r\n\t\tcfn_names[CFN_FC_EQ] = new Name(\"eq\", 'c'); // all type c\r\n\t\tcfn_names[CFN_FC_LT] = new Name(\"lt\", 'c');\r\n\t\tcfn_names[CFN_FC_LE] = new Name(\"le\", 'c');\r\n\r\n\t\trt_names[RT_BLTZ] = new Name(\"bltz\", 'v');\r\n\t\trt_names[RT_BGEZ] = new Name(\"bgez\", 'v');\r\n\t\trt_names[RT_BLTZAL] = new Name(\"bltzal\", 'v');\r\n\t\trt_names[RT_BGEZAL] = new Name(\"bgezal\", 'v');\r\n\t}", "public Code visitOperatorNode(ExpNode.OperatorNode node) {\n beginGen(\"Operator\");\n Code code;\n ExpNode args = node.getArg();\n switch (node.getOp()) {\n case ADD_OP:\n code = args.genCode(this);\n code.generateOp(Operation.ADD);\n break;\n case SUB_OP:\n code = args.genCode(this);\n code.generateOp(Operation.NEGATE);\n code.generateOp(Operation.ADD);\n break;\n case MUL_OP:\n code = args.genCode(this);\n code.generateOp(Operation.MPY);\n break;\n case DIV_OP:\n code = args.genCode(this);\n code.generateOp(Operation.DIV);\n break;\n case EQUALS_OP:\n code = args.genCode(this);\n code.generateOp(Operation.EQUAL);\n break;\n case LESS_OP:\n code = args.genCode(this);\n code.generateOp(Operation.LESS);\n break;\n case NEQUALS_OP:\n code = args.genCode(this);\n code.generateOp(Operation.EQUAL);\n code.genBoolNot();\n break;\n case LEQUALS_OP:\n code = args.genCode(this);\n code.generateOp(Operation.LESSEQ);\n break;\n case GREATER_OP:\n /* Generate argument values in reverse order and use LESS */\n code = genArgsInReverse((ExpNode.ArgumentsNode)args);\n code.generateOp(Operation.LESS);\n break;\n case GEQUALS_OP:\n /* Generate argument values in reverse order and use LESSEQ */\n code = genArgsInReverse((ExpNode.ArgumentsNode)args);\n code.generateOp(Operation.LESSEQ);\n break;\n case NEG_OP:\n code = args.genCode(this);\n code.generateOp(Operation.NEGATE);\n break;\n default:\n errors.fatal(\"PL0 Internal error: Unknown operator\",\n node.getLocation());\n code = null;\n }\n endGen(\"Operator\");\n return code;\n }", "@Test\r\n\tpublic void testCompileOperator() {\r\n\r\n\t\t// Enter the code\r\n\r\n\t\tdriver.findElement(By.name(\"code[code]\")).sendKeys(\"a = 5\\nb = a - 1\\nc = a + (b / 2 * 4)\");\r\n\r\n\t\t// Look for the \"Compile\" button and click\r\n\r\n\t\tdriver.findElements(By.name(\"commit\")).get(2).click();\r\n\r\n\t\t// Check that there contains the word \"opt_plus\", \"opt_minus\",\r\n\t\t// \"opt_mult\" and \"opt_div\"\r\n\r\n\t\ttry {\r\n\t\t\tWebElement code = driver.findElement(By.tagName(\"code\"));\r\n\t\t\tassertTrue(code.getText().contains(\"opt_plus\"));\r\n\t\t\tassertTrue(code.getText().contains(\"opt_minus\"));\r\n\t\t\tassertTrue(code.getText().contains(\"opt_mult\"));\r\n\t\t\tassertTrue(code.getText().contains(\"opt_div\"));\r\n\t\t} catch (NoSuchElementException nseex) {\r\n\t\t\tfail();\r\n\t\t}\r\n\t}", "public void execute() {\n\t\t// XOR GATE OP\n\t\txor.a.set(a.get());\n\t\txor.b.set(b.get());\n\t\txor.execute();\n\t\tsum.set(xor.out.get());\n\n\t\t// AND GATE OP\n\t\tand.a.set(a.get());\n\t\tand.b.set(b.get());\n\t\tand.execute();\n\t\tcarry.set(and.out.get());\n\n\t}", "@Test\n public void testComplexGraph() {\n CFGCreator<Character> cfgCreator = new CFGCreator<>();\n CharGrammarParser parser = new CharGrammarParser(cfgCreator);\n SLPOp<Character> slpOp = new SLPOp();\n CFGOp<Character> cfgOp = new CFGOp<>();\n\n // L(G) = {(ab)^1 : i >= 1}\n String text =\n \"S -> bAs \\n\" +\n \"A -> iBa \\n\" +\n \"B -> aCi \\n\" +\n \"C -> sd \\n\" +\n \"D -> SSESS \\n\" +\n \"E -> zSSESSr \\n\" +\n \"E -> uu \\n\";\n\n Map<IJezSymbol<Character>, List<IJezSymbol<Character>>> f = new HashMap<>();\n Map<IJezSymbol<Character>, List<IJezSymbol<Character>>> g = new HashMap<>();\n\n IJezSymbol<Character> a = cfgCreator.lookupSymbol('a', true);\n IJezSymbol<Character> b = cfgCreator.lookupSymbol('b', true);\n IJezSymbol<Character> d = cfgCreator.lookupSymbol('d', true);\n IJezSymbol<Character> i = cfgCreator.lookupSymbol('i', true);\n IJezSymbol<Character> s = cfgCreator.lookupSymbol('s', true);\n IJezSymbol<Character> r = cfgCreator.lookupSymbol('r', true);\n IJezSymbol<Character> u = cfgCreator.lookupSymbol('u', true);\n IJezSymbol<Character> z = cfgCreator.lookupSymbol('z', true);\n\n IJezSymbol<Character> one = cfgCreator.lookupSymbol('1', true);\n IJezSymbol<Character> two = cfgCreator.lookupSymbol('2', true);\n IJezSymbol<Character> three = cfgCreator.lookupSymbol('3', true);\n\n f.put(a, Arrays.asList(one, two));\n f.put(b, Arrays.asList(three, two));\n f.put(d, Arrays.asList(one, one, one, two));\n f.put(i, Arrays.asList(two));\n f.put(s, Arrays.asList(one, one, two));\n f.put(r, Arrays.asList(r));\n f.put(u, Arrays.asList(u));\n f.put(z, Arrays.asList(z));\n\n\n g.put(a, Arrays.asList(one, two, one));\n g.put(b, Arrays.asList(three));\n g.put(d, Arrays.asList(one, one, one));\n g.put(i, Arrays.asList(two, two));\n g.put(s, Arrays.asList(one, two));\n g.put(r, Arrays.asList(r));\n g.put(u, Arrays.asList(u));\n g.put(z, Arrays.asList(z));\n\n\n Set<Production<Character>> productions = parser.createProductions(text);\n Set<IJezSymbol<Character>> axiom = new HashSet<>();\n axiom.add(cfgCreator.lookupSymbol('D', false));\n\n\n Set<Production<Character>> wCNFProductions = cfgOp.toWeakCNF(productions, axiom, cfgCreator);\n MorphismEQSolver<Character, Character> morphismEQSolver = new MorphismEQSolver<>(cfgCreator.createCFG(wCNFProductions, axiom), cfgCreator, new CFGCreatorFactory<>(), new CFGCreatorFactory<>());\n\n GenDefaultMorphism<Character> morphism1 = new GenDefaultMorphism<>(f::get);\n GenDefaultMorphism<Character> morphism2 = new GenDefaultMorphism<>(g::get);\n long ms = System.currentTimeMillis();\n assertTrue(morphismEQSolver.equivalentOnMorphisms(morphism1, morphism2));\n logger.info(\"Running time: \" + (System.currentTimeMillis() - ms) + \"[ms]\");\n }", "Operations createOperations();", "public static String[] randomQuestions(String op){\r\n String question = \"\";\r\n String ansStr = \"\";\r\n \r\n int part1 = randomNumber();\r\n int part2 = randomNumber();\r\n int ans = 0;\r\n double roundAns = 0.0;\r\n \r\n if (op.equals(\"^\")){\r\n //Round to Closest Whole Number\r\n roundAns = (randomDecimal());\r\n double k = Math.round(roundAns);\r\n \r\n question = Double.toString(roundAns);\r\n ansStr = Double.toString(k);\r\n }\r\n else if (op.equals(\"Alg\")){\r\n //Algebraic Formula - Find x/y\r\n int coeff = randomNumberAlg();\r\n int layout = randomNumber();\r\n part1 = randomNumberAlg();\r\n part2 = randomNumberAlg();\r\n \r\n if (layout < 3){\r\n //?x = int\r\n ans = part1 * coeff;\r\n \r\n question = coeff+\"x = \"+ ans;\r\n ansStr = Integer.toString(part1);\r\n \r\n } else if (layout > 3 && layout <= 7){\r\n //?x+num = int || ?x-num = int\r\n if (layout == 4||layout == 5){\r\n ans = (part1 * coeff) + part2;\r\n \r\n question = coeff+\"x + \"+part2+\" = \"+ans;\r\n ansStr = Integer.toString(part1);\r\n } else if (layout == 6||layout == 7){\r\n ans = (part1 * coeff) - part2;\r\n \r\n question = coeff+\"x - \"+part2+\" = \"+ans;\r\n ansStr = Integer.toString(part1);\r\n } \r\n } else if (layout > 7 && layout <= 10){\r\n //?x/num = int \r\n ans = (part1 * coeff)/part2;\r\n \r\n question = coeff+\"x/\"+part2+\" = \"+ ans;\r\n ansStr = Integer.toString(part1);\r\n } \r\n }\r\n else if (op.equals(\"%\")){\r\n //Precentages - Covert Fraction to Percentage\r\n int div = HCF(part1, part2);\r\n int finalp1 = part1 % div;\r\n int finalp2 = part2 % div;\r\n \r\n if (finalp1 == 0){\r\n finalp1 = randomNumberRatio();\r\n }\r\n if (finalp2 == 0){\r\n finalp2 = randomNumberRatio();\r\n }\r\n \r\n double fract = finalp1/finalp2;\r\n \r\n if (finalp1>finalp2){\r\n fract = finalp1/finalp2;\r\n question = finalp1+\"/\"+finalp2;\r\n }\r\n else {\r\n fract = finalp2/finalp1;\r\n question = finalp2+\"/\"+finalp1;\r\n }\r\n \r\n double perc = fract * 100;\r\n \r\n ansStr = Double.toString(perc);\r\n \r\n }\r\n else if (op.equals(\":\")){\r\n //Ratio - Simplifying\r\n part1 = randomNumberRatio();\r\n part2 = randomNumberRatio();\r\n int div = HCF(part1, part2);\r\n int finalp1 = part1 / div;\r\n int finalp2 = part2 / div;\r\n \r\n question = part1+\":\"+part2;\r\n ansStr = finalp1+\":\"+finalp2;\r\n }\r\n\r\n else if (op.equals(\"//\")){\r\n //Fractions - Simplifying\r\n int div = HCF(part1, part2);\r\n int finalp1 = part1 % div;\r\n int finalp2 = part2 % div;\r\n \r\n question = part1+\"/\"+part2;\r\n ansStr = finalp1+\"/\"+finalp2;\r\n \r\n }\r\n \r\n String x[] = new String[2];\r\n x[0] = question;\r\n x[1] = ansStr;\r\n \r\n return x;\r\n }", "@Override\n\tpublic String toString() {\n\t\treturn String.format(\" %s %s\", operador, exp);\n\t}", "private TreeMap<Integer, PackratParser<Expression>> makeExpressionParsers (CtClass clazz) {\n TreeMap<Integer, PackratParser<Expression>> map = new TreeMap<>();\n\n for (Map.Entry<Integer, List<IROperator>> entry : operators.getOperators(clazz).entrySet()) {\n Integer priority = entry.getKey();\n map.put(priority, choice(getOperationParsersFromCache(priority, entry.getValue())));\n }\n\n TreeMap<Integer, PackratParser<Expression>> parsers = new TreeMap<>();\n\n PackratParser<Expression> next = getDefaultParserFromCache(clazz);\n\n for (Integer priority : map.descendingKeySet()) {\n PackratParser<Expression> cur = choice(map.get(priority), next);\n parsers.put(priority, cur);\n next = cur;\n }\n\n return parsers;\n }", "public static int expression()\r\n {\r\n //get the start state of this term\r\n int r,t1,f1;\r\n t1=r=term();\r\n\r\n //if there is no more input, we are done\r\n if(index>expression.length()-1)\r\n {\r\n return r;\r\n }\r\n\r\n //if this is concatenation\r\n if(expression.charAt(index)=='.'||isVocab(expression.charAt(index))||expression.charAt(index)=='\\\\'\r\n ||expression.charAt(index)=='['||expression.charAt(index)=='(')\r\n {\r\n //get the start state of this expression and\r\n //update next1 and next2\r\n int t2,cur;\r\n cur=state-1;\r\n t2=expression();\r\n if(stateList.get(cur).getNext1()==stateList.get(cur).getNext2())\r\n {\r\n stateList.get(cur).setNext1(t2);\r\n }\r\n stateList.get(cur).setNext2(t2);\r\n\r\n }\r\n\r\n //if there is no more input, we are done\r\n if(index>=expression.length())\r\n {\r\n return r;\r\n }\r\n\r\n //if this is alternation\r\n if(expression.charAt(index)=='|')\r\n {\r\n //if there is nothing after '|', it is a invalid expression\r\n index++;\r\n if(index>expression.length()-1)\r\n {\r\n error();\r\n }\r\n else\r\n {\r\n //create a branch state,set the nex1 of the branch state to the term\r\n //so a|b and a|b|c both work\r\n int t2;\r\n f1=state-1;\r\n\r\n state st=new state(state,\"BR\",t1,-1);\r\n stateList.add(st);\r\n r=state;\r\n state++;\r\n\r\n //get the start state of this expression\r\n t2=expression();\r\n\r\n //update the branch state's next2 to the start state of the expression\r\n stateList.get(f1+1).setNext2(t2);\r\n\r\n //update term's next1 and next2\r\n if(stateList.get(f1).getNext1()==stateList.get(f1).getNext2())\r\n {\r\n stateList.get(f1).setNext1(state);\r\n }\r\n stateList.get(f1).setNext2(state);\r\n\r\n }\r\n\r\n }\r\n\r\n\r\n return r;\r\n }", "private static String[] getOperations(String input) {\n\t\treturn input.replaceAll(\"[ ]\", \"\").split(\"[;]\");\n\t}", "public static void main(String[] args){\n Scanner input = new Scanner(System.in);\n int result = 0;\n\n System.out.print(\"Enter three integer number : \");\n String num = input.nextLine();\n\n String [] operand = num.split(\" \");\n int x = Integer.parseInt(operand[0]);\n int y = Integer.parseInt(operand[1]);\n int z = Integer.parseInt(operand[2]);\n\n System.out.print(\"Enter two operand : \");\n String operator = input.nextLine();\n\n String [] op = operator.split(\" \");\n String a = op[0];\n String b = op[1];\n\n int temp = 0;\n\n for(int i = 0; i< op.length; i++){\n if(a.equals(\"X\") || a.equals(\"D\") || a.equals(\"M\") || b.equals(\"X\") || b.equals(\"D\") || b.equals(\"M\")){\n\n if(a.equals(\"X\") || b.equals(\"X\")){\n if(a.equals(\"X\")){\n if(i == 0) temp = x*y;\n else result = temp * x;\n a = \"\";\n }\n else if(b.equals(\"X\")){\n if(i == 0) temp = y*z;\n else result = temp * z;\n b = \"\";\n }\n }\n\n else if(a.equals(\"D\") || b.equals(\"D\")){\n if(a.equals(\"D\")){\n if(i==0) temp = x/y;\n else result = x/temp;\n a = \"\";\n }\n else if(b.equals(\"D\")){\n if(i == 0) temp = y/z;\n else result = temp / z;\n b = \"\";\n }\n }\n\n else if(a.equals(\"M\") || b.equals(\"M\")){\n if(a.equals(\"M\")){\n if(i == 0)temp = x % y;\n else result = x % temp;\n a = \"\";\n }\n\n else if(b.equals(\"M\")) {\n if(i == 0) temp = y % z;\n else result = temp % z;\n b = \"\";\n }\n }\n\n } else{\n if(a.equals(\"A\")){\n if(b.equals(\"A\")) result = x+y+z;\n else if(b.equals(\"S\")) result = x+y-z;\n else result = temp + x;\n }\n\n else if(b.equals(\"A\")){\n if(a.equals(\"A\")) result = x+y+z;\n else if(a.equals(\"S\")) result = x-y+z;\n else result = temp + z;\n }\n }\n }\n System.out.println(x + \" \" + op[0] + \" \" + y + \" \" + op[1] + \" \" + z + \" = \" + result);\n\n }", "@Override\n\tprotected void addRequestedOperators() {\n\t}", "@Override\n public TreeNode parse() {\n TreeNode first = ArithmeticSubexpression.getAdditive(environment).parse();\n if (first == null) return null;\n\n // Try to parse something starting with an operator.\n List<Wrapper> wrappers = RightSideSubexpression.createKleene(\n environment, ArithmeticSubexpression.getAdditive(environment),\n BemTeVicTokenType.EQUAL, BemTeVicTokenType.DIFFERENT,\n BemTeVicTokenType.GREATER_OR_EQUALS, BemTeVicTokenType.GREATER_THAN,\n BemTeVicTokenType.LESS_OR_EQUALS, BemTeVicTokenType.LESS_THAN\n ).parse();\n\n // If did not found anything starting with an operator, return the first node.\n if (wrappers.isEmpty()) return first;\n\n // Constructs a binary operator node containing the expression.\n Iterator<Wrapper> it = wrappers.iterator();\n Wrapper secondWrapper = it.next();\n BinaryOperatorNode second = new BinaryOperatorNode(secondWrapper.getTokenType(), first, secondWrapper.getOutput());\n\n if (wrappers.size() == 1) return second;\n\n // If we reach this far, the expression has more than one operator. i.e. (x = y = z),\n // which is a shortcut for (x = y AND y = z).\n\n // Firstly, determine if the operators are compatible.\n RelationalOperatorSide side = RelationalOperatorSide.NONE;\n for (Wrapper w : wrappers) {\n side = side.next(w.getTokenType());\n }\n if (side.isMixed()) {\n environment.emitError(\"XXX\");\n }\n\n // Creates the other nodes. In the expression (a = b = c = d), The \"a = b\"\n // is in the \"second\" node. Creates \"b = c\", and \"c = d\" nodes.\n List<BinaryOperatorNode> nodes = new LinkedList<BinaryOperatorNode>();\n nodes.add(second);\n\n TreeNode prev = secondWrapper.getOutput();\n while (it.hasNext()) {\n Wrapper w = it.next();\n BinaryOperatorNode current = new BinaryOperatorNode(w.getTokenType(), prev, w.getOutput());\n prev = w.getOutput();\n nodes.add(current);\n }\n\n // Combines all of the nodes in a single one using AND.\n return new VariableArityOperatorNode(BemTeVicTokenType.AND, nodes);\n }", "OperandList createOperandList();", "public Preperation(String wordField, String summationField, char operation, String baseValue) {\n\n operator = operation;\n base = baseValue;\n System.out.println(\"base: \" + base);\n splitWord(wordField);//fill wordMap with words from the first text field\n summationLetters = splitLetters(summationField);//split the letters from the summation field into an array of strings\n summationWord = summationField.toUpperCase();\n // split the words in the wordMap into letters and create the letterMap\n for (int i = 0; i < wordMap.size(); i++) {\n for (int j = 0; j < wordMap.get(\"word\" + i).length; j++) {\n String temp;\n temp = splitLetters(wordMap.get(\"word\" + i).getName())[j];\n letterMap.put(\"W\" + i + \"L\" + j, temp);\n if (!uniqueLettersList.contains(temp)) {\n uniqueLettersList.add(temp);\n }\n }\n\n }\n //add the letters from the summation field into a map\n for (int i = 0; i < summationLetters.length; i++) {\n letterMap.put(\"S1l\" + i, summationLetters[i]);\n if (!uniqueLettersList.contains(summationLetters[i])) {\n uniqueLettersList.add(summationLetters[i]);\n }\n }\n System.out.println(letterMap);\n System.out.println(letterMap.get(\"W0l0\"));\n }", "public String getOperator()\r\n\t{\r\n\t\tSystem.out.println(\"Choose the any operation from the following operations:\");\r\n System.out.println(\"1.+\");\r\n System.out.println(\"2.-\");\r\n System.out.println(\"3.*\");\r\n System.out.println(\"4./\");\r\n \r\n\t\tString op=sc.next();\r\n\t\treturn op;\r\n\t}", "private static long combinations(int n, int k) {\n\t\tif (k > n / 2) {\n\t\t\tk = n - k;\n\t\t}\n\n\t\tlong result = 1;\n\n\t\tfor (int i = 1, j = n - k + 1; i <= k; i++, j++) {\n\t\t\tresult = result * j / i;\n\t\t}\n\n\t\treturn result;\n\t}", "@Override\n public String toString() { return '(' + left.toString() + ' ' + operation.toString() + ' ' + right.toString() + ')'; }", "@Override\n public String toString() { return '(' + left.toString() + ' ' + operation.toString() + ' ' + right.toString() + ')'; }", "public static void main(String[] args) throws InvalidAlgorithmParameterException {\n\n\t\t//Input\n\t\t//String[] expressions = {\"x = 10 ;\",\"p = 1;\",\"8 p = p * x ;\",\"10 x = x -1 ;\",\"15 x ? 8 ;\",\"p ;\",\";\"};\n\t\tString[] expressions = {\"1 x = 98765432109876543210987654321098765432109876543210 ;\",\n\t\t\t\"2 y = 10 ;\",\"3 p = 1 ;\",\"5 p = p * x ;\",\"6 y = y - 1 ;\",\"7 y ? 5 ;\",\"p ;\",\";\"};\n\t\t//\tString[] expressions = {\"x = 987654321098765432109876543210987654321 ;\",\"y = 8 ;\",\"5 x = x * x ;\",\"x ;\",\"y = y 1 - ;\",\"7 y ? 5 ;\",\";\"};\n\t\t//No of expressions\n\t\tint no_of_expressions = expressions.length;\n\t\t//Hash map to store the line corresponding to the line number\n\t\tLinkedHashMap<Integer,String> lineNumbers = new LinkedHashMap<Integer, String>();\n\t\t//Input expression stored to be processed by the function later\n\t\tList<ConditionalExpressionsHelperClass> inputExpressions = new ArrayList<ConditionalExpressionsHelperClass>();\n\t\t//Create object for postfix expression\n\t\tParsePostfixExpression parseExpression = new ParsePostfixExpression();\n\t\t//Base value in which numbers have to be stored.\n\t\tint base_value = 10;\n\t\tOperatorPrecedence operatorPrecedence = new OperatorPrecedence();\n\t\tint no_line_number = -1;\n\t\t\n\t\t//Iterate through the list of expressions and check which of the statements have goto conditions\n\t\tfor(int i=0;i<no_of_expressions;i++)\n\t\t{\n\t\t\t//Create an object of HasLine number, that stores the line number and its corresponding value that says whether it has a got statement or not.\n\t\t\tConditionalExpressionsHelperClass hasLineNumber = new ConditionalExpressionsHelperClass();\n\t\t\t\n\t\t\t//Initially set the line to the string expression and has goto statement to false\n\t\t\thasLineNumber.setExpression(expressions[i]);\n\t\t\thasLineNumber.setHasLineNumber(false);\n\t\t\thasLineNumber.setLineNumber(0);\n\t\t\t\n\t\t\t//Check if the expression starts with a number, if so change the HasLineNumber to true\n\t\t\tif(expressions[i].charAt(0)>='0' && expressions[i].charAt(0)<='9')\n\t\t\t{\n\t\t\t\tint index=0;\n\t\t\t\t//List to temporarily store the line number\n\t\t\t\tList<Integer> temp_values = new ArrayList<Integer>();\n\t\t\t\tint temp_value =0;\n\t\t\t\t\n\t\t\t\t//Iterate through the expression and set the key as line number and the remaining expression as value to this number\n\t\t\t\twhile(index< expressions[i].length())\n\t\t\t\t{\n\t\t\t\t\tif(expressions[i].charAt(index) == ' ')\n\t\t\t\t\t{\n\t\t\t\t\t\t//Compute the final value\n\t\t\t\t\t\tfor (int j = temp_values.size()-1; j >=0; j--) {\n\t\t\t\t\t\t\ttemp_value += temp_values.get(j)\n\t\t\t\t\t\t\t\t\t* (Math.pow(BASE_VALUE, temp_values.size()-1-j));\n\t\t\t\t\t\t}\n\t\t\t\t\t\t//Set the line number, conditional expression w\n\t\t\t\t\t\tlineNumbers.put(temp_value, expressions[i].substring(index+1, expressions[i].length()));\n\t\t\t\t\t\thasLineNumber.setLineNumber(temp_value);\n\t\t\t\t\t\ttemp_values.clear();\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t\telse if(expressions[i].charAt(index) >= '0' && expressions[i].charAt(index) <= '9')\n\t\t\t\t\t{\n\t\t\t\t\t\ttemp_values.add(Integer.parseInt(expressions[i].charAt(index) + \"\"));\n\t\t\t\t\t}\n\t\t\t\t\tindex++;\n\t\t\t\t}\n\t\t\t\thasLineNumber.setHasLineNumber(true);\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tno_line_number = no_line_number-1;\n\t\t\t\tlineNumbers.put(no_line_number, expressions[i]);\n\t\t\t}\n\t\t\tinputExpressions.add(hasLineNumber);\n\t\t}\n\t\tfor(int i=0;i<inputExpressions.size();i++)\n\t\t{\n\t\t\tif(inputExpressions.get(i).isHasLineNumber() && operatorPrecedence.hasOperator(inputExpressions.get(i).getExpression()))\n\t\t\t{\n\t\t\t\t//Get expression associated with the line number\n\t\t\t\tString expression = lineNumbers.get(inputExpressions.get(i).getLineNumber());\n\t\t\t\tif(expression.contains(\"?\"))\n\t\t\t\t{\n\t\t\t\t\tparseExpression.evaluateLoopExpressions(expression, base_value, inputExpressions.get(i).lineNumber, lineNumbers);\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\t\t\t\t//Convert output array to string \n\t\t\t\tString result;\n\t\t\t\t//Output array to store the postfix notation of the infix notation.\n\t\t\t\tchar[] output = new char[expression.length()];\n\t\t\t\tif(!operatorPrecedence.isPostfixExpression(expression))\n\t\t\t\t{\n\t\t\t\t\toutput = ShuntingYard.getPostFixNotation(expression.substring(0,expression.length()-2), output);\n\t\t\t\t\tresult = String.valueOf(output);\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t\tresult = expression;\n\t\t\t\tif(i == inputExpressions.size()-1)\n\t\t\t\t{\t\n\t\t\t\t\tparseExpression.evaluateExpression(result, base_value, true,lineNumbers,1);\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\tparseExpression.evaluateExpression(result, base_value, false,lineNumbers,1);\n\t\t\t\t}\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\t//If it is the last statement being called then send last statement value as true, to print the final value\n\t\t\t\tif(i == inputExpressions.size()-1)\n\t\t\t\t{\n\t\t\t\t\tif(inputExpressions.get(i).hasLineNumber)\n\t\t\t\t\t\tparseExpression.evaluateExpression(inputExpressions.get(i).getExpression(), base_value, true,null,1);\n\t\t\t\t\telse\n\t\t\t\t\t\tparseExpression.evaluateExpression(inputExpressions.get(i).getExpression(), base_value, true,null,0);\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\tif(inputExpressions.get(i).hasLineNumber)\n\t\t\t\t\t\tparseExpression.evaluateExpression(inputExpressions.get(i).getExpression(), base_value, false,null,1);\n\t\t\t\t\telse\n\t\t\t\t\t\tparseExpression.evaluateExpression(inputExpressions.get(i).getExpression(), base_value, false,null,0);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "public static void main(String[] args) {\n int upperBound = 20;\n int lowerBound = 0;\n int operandCount = 5;\n boolean isHaveAddition = true;\n boolean isHaveSubtraction = true;\n boolean isHaveMultiplication = true;\n boolean isHaveDivision = true;\n int formulaCount = 1;\n int decimalPrecision = 3;\n\n //Store the generated results\n List<String> formulas;\n List<String> results;\n\n Generator generator = new Generator(upperBound, lowerBound,\n operandCount, isHaveAddition, isHaveSubtraction,\n isHaveMultiplication, isHaveDivision, formulaCount, decimalPrecision);\n\n formulas = generator.getFormulas();\n results = generator.getResults();\n\n for (int i = 0; i < formulaCount; i++) {\n System.out.println(formulas.get(i) + \" = \" + results.get(i));\n }\n\n }", "public static String produceAnswer(String input) {\n // TODO: Implement this function to produce the solution to the input\n \n // Parsing one line of input\n int space = input.indexOf(\" \"); // find the index of the first space\n String operandOne = input.substring(0, space); // substring of beginning to space before operator\n \n String newString1 = input.substring(space + 1, input.length());\n int space2 = newString1.indexOf(\" \"); // find the index of the second space\n String operator = newString1.substring(0, space2); // operator is between the first space and the second space\n \n String newString2 = newString1.substring(space2, newString1.length());\n String operandTwo = newString2.substring(space2, newString2.length()); // substring of space after operator to the end\n \n \n // Multiple operations\n while (operandTwo.indexOf(\" \") > 0) {\n int space3 = operandTwo.indexOf(\" \");\n String value = operandTwo.substring(0, space3);\n String new_String3 = operandTwo.substring(space3 + 1, operandTwo.length());\n int space4 = new_String3.indexOf(\" \");\n String operator2 = new_String3.substring(space4 - 1, space4);\n operandTwo = new_String3.substring(space4 + 1, new_String3.length());\n String new_equation = operandOne + \" \" + operator + \" \" + value;\n operandOne = produceAnswer(new_equation);\n operator = operator2;\n }\n \n // Parsing fractions: Operand 1\n String whole1 = operandOne; // hi_\n String num1 = \"\";\n String denom1 = \"\";\n int slash1 = operandOne.indexOf(\"/\");\n \n if (slash1 > 0) {\n int underscore1 = operandOne.indexOf(\"_\");\n if (underscore1 > 0) {\n whole1 = operandOne.substring(0, underscore1);\n num1 = operandOne.substring(underscore1 + 1, slash1);\n denom1 = operandOne.substring(slash1 + 1, operandOne.length());\n } else {\n whole1 = \"0\";\n num1 = operandOne.substring(underscore1 + 1, slash1);\n denom1 = operandOne.substring(slash1 + 1, operandOne.length());\n }\n \n } else {\n num1 = \"0\";\n denom1 = \"1\";\n }\n \n // Parsing fractions: Operand 2\n String whole2 = operandTwo;\n String num2 = \"\";\n String denom2 = \"\";\n int slash2 = operandTwo.indexOf(\"/\");\n \n if (slash2 > 0) {\n int underscore2 = operandTwo.indexOf(\"_\");\n if (underscore2 > 0) {\n whole2 = operandTwo.substring(0, underscore2);\n num2 = operandTwo.substring(underscore2 + 1, slash2);\n denom2 = operandTwo.substring(slash2 + 1, operandTwo.length());\n } else {\n whole2 = \"0\";\n num2 = operandTwo.substring(underscore2 + 1, slash2);\n denom2 = operandTwo.substring(slash2 + 1, operandTwo.length());\n }\n \n } else {\n num2 = \"0\";\n denom2 = \"1\";\n }\n \n \n // change strings to integers\n int intwhole1 = Integer.parseInt(whole1);\n int intnum1 = Integer.parseInt(num1);\n int intdenom1 = Integer.parseInt(denom1);\n \n int intwhole2 = Integer.parseInt(whole2);\n int intnum2 = Integer.parseInt(num2);\n int intdenom2 = Integer.parseInt(denom2);\n \n // convert to improper fraction\n intnum1 += intdenom1 * Math.abs(intwhole1);\n if (intwhole1 < 0) {\n intnum1 *= -1;\n }\n \n intnum2 += intdenom2 * Math.abs(intwhole2);\n if (intwhole2 < 0) {\n intnum2 *= -1;\n }\n \n int finalnum = 0;\n int finaldenom = 0;\n int finalwhole = 0;\n \n // if denominator equals 0, quit\n if (intdenom1 == 0 || intdenom2 == 0) {\n return \"Invalid\";\n }\n \n // if operator is incorrect, quit\n if (operator.length() > 1) {\n return \"Invalid\";\n }\n \n // addition calculation\n // multiply whole values to fraction to get a common denominator\n if (operator.equals(\"+\")) {\n intnum1 *= intdenom2;\n intnum2 *= intdenom1;\n finalnum = intnum1 + intnum2;\n finaldenom = intdenom1 * intdenom2;\n }\n \n // subtraction calculation\n if (operator.equals(\"-\")) {\n intnum1 *= intdenom2;\n intnum2 *= intdenom1;\n finalnum = intnum1 - intnum2;\n finaldenom = intdenom1 * intdenom2;\n }\n \n // multiplication calculation\n if (operator.equals(\"*\")) {\n finalnum = intnum1 * intnum2;\n finaldenom = intdenom1 * intdenom2;\n if (intnum1 == 0 || intnum2 == 0) {\n return 0 + \"\";\n }\n }\n \n // division calculation\n if (operator.equals(\"/\")) {\n finalnum = intnum1 * intdenom2;\n finaldenom = intdenom1 * intnum2;\n }\n \n // make numerator negative instead of the denominator\n if (finaldenom < 0 && finalnum > 0) {\n finaldenom *= -1;\n finalnum *= -1;\n }\n \n // convert to mixed fraction if numerator is positive\n while (finalnum / finaldenom >= 1) {\n finalnum -= finaldenom;\n finalwhole += 1;\n }\n \n // convert to mixed fraction if numerator is negative\n while (finalnum / finaldenom <= -1) {\n finalnum += finaldenom;\n finalwhole -= 1;\n }\n \n // remove signs from numerator and denominator if there is a whole number\n if (finalwhole != 0) {\n finalnum = Math.abs(finalnum);\n finaldenom = Math.abs(finaldenom);\n }\n \n // reduce fraction\n int gcd = 1;\n for (int i = 1; i <= Math.abs(finalnum) && i <= Math.abs(finaldenom); i++) {\n if (finalnum % i == 0 && finaldenom % i == 0)\n gcd = i;\n }\n finalnum /= gcd;\n finaldenom /= gcd;\n \n // final output\n if (finalwhole == 0) {\n if (finalnum == 0) {\n return \"0\";\n } else {\n return finalnum + \"/\" + finaldenom;\n }\n } else if (finalnum == 0 || finaldenom == 1) {\n return finalwhole + \"\";\n } else {\n return finalwhole + \"_\" + finalnum + \"/\" + finaldenom;\n }\n }", "public String cipher() {\n int[] r1taps = {13, 16, 17, 18};\n int[] r2taps = {20, 21};\n int[] r3taps = {7, 20, 21, 22};\n\n // Set register size and majority bits\n final int R1 = 19;\n final int R1M = 8;\n final int R2 = 22;\n final int R2M = 10;\n final int R3 = 23;\n final int R3M = 10;\n\n // Initialize variables\n String bs = \"\";\n byte[] key = HexStringToBytes(symKey);\n BitSet keySet = new BitSet();\n BitSet keyStream = new BitSet();\n BitSet messageSet = new BitSet();\n\n // Create a byte array length of sample message\n byte[] messageArray = new byte[message.length()];\n\n // Convert the sample message to a byte array\n try {\n messageArray = message.getBytes(\"ISO-8859-1\");\n } catch (Exception e) {\n System.out.println(\"Error: \" + e);\n }\n\n // Convert message sample byte array to string\n String as = \"\";\n for (int i = 0; i < messageArray.length; i++) {\n byte b1 = messageArray[i];\n String s = String.format(\"%8s\", Integer.toBinaryString(b1 & 0xFF))\n .replace(' ', '0');\n as += s;\n }\n\n // Convert string of bits to a BitSet\n messageSet = BitStringToBitSet(as);\n\n // Creates string from key byte array\n for (int i = 0; i < 8; i++) {\n byte b1 = key[i];\n String s = String.format(\"%8s\", Integer.toBinaryString(b1 & 0xFF))\n .replace(' ', '0');\n bs += s;\n }\n\n // Convert string of bits to a BitSet\n keySet = BitStringToBitSet(bs);\n\n // Initialize registers\n BitSet r1 = new BitSet();\n BitSet r2 = new BitSet();\n BitSet r3 = new BitSet();\n\n // Process key into registers\n for (int i = 0; i < 64; i++) {\n r1 = ShiftSet(r1, R1, keySet.get(i) ^ Tap(r1, r1taps));\n r2 = ShiftSet(r2, R2, keySet.get(i) ^ Tap(r2, r2taps));\n r3 = ShiftSet(r3, R3, keySet.get(i) ^ Tap(r3, r3taps));\n }\n\n // Clock additional 100 times for additional security (GSM standard)\n for (int i = 0; i < 100; i++) {\n int maj = 0;\n boolean[] ar = {false, false, false};\n if (r1.get(R1M) == true) {\n ar[0] = true;\n maj += 1;\n }\n if (r2.get(R2M) == true) {\n ar[1] = true;\n maj += 1;\n }\n if (r3.get(R3M) == true) {\n ar[2] = true;\n maj += 1;\n }\n // If majority is false (0 bit)\n if (maj <= 1) {\n if (ar[0] == false) {\n r1 = ShiftSet(r1, R1, Tap(r1, r1taps));\n }\n if (ar[1] == false) {\n r2 = ShiftSet(r2, R2, Tap(r2, r2taps));\n }\n if (ar[2] == false) {\n r3 = ShiftSet(r3, R3, Tap(r3, r3taps));\n }\n // Else majority is true\n } else {\n if (ar[0] == true) {\n r1 = ShiftSet(r1, R1, Tap(r1, r1taps));\n }\n if (ar[1] == true) {\n r2 = ShiftSet(r2, R2, Tap(r2, r2taps));\n }\n if (ar[2] == true) {\n r3 = ShiftSet(r3, R3, Tap(r3, r3taps));\n }\n }\n }\n\n // Create keystream as long as the sample message\n for (int i = 0; i < message.length() * 8; i++) {\n\n // Get keystream bit\n keyStream.set(i, r1.get(R1 - 1) ^ r2.get(R2 - 1) ^ r3.get(R3 - 1));\n\n // Shift majority registers\n int maj = 0;\n boolean[] ar = {false, false, false};\n if (r1.get(R1M) == true) {\n ar[0] = true;\n maj += 1;\n }\n if (r2.get(R2M) == true) {\n ar[1] = true;\n maj += 1;\n }\n if (r3.get(R3M) == true) {\n ar[2] = true;\n maj += 1;\n }\n // If majority is false (0 bit)\n if (maj <= 1) {\n if (ar[0] == false) {\n r1 = ShiftSet(r1, R1, Tap(r1, r1taps));\n }\n if (ar[1] == false) {\n r2 = ShiftSet(r2, R2, Tap(r2, r2taps));\n }\n if (ar[2] == false) {\n r3 = ShiftSet(r3, R3, Tap(r3, r3taps));\n }\n // Else majority is true\n } else {\n if (ar[0] == true) {\n r1 = ShiftSet(r1, R1, Tap(r1, r1taps));\n }\n if (ar[1] == true) {\n r2 = ShiftSet(r2, R2, Tap(r2, r2taps));\n }\n if (ar[2] == true) {\n r3 = ShiftSet(r3, R3, Tap(r3, r3taps));\n }\n }\n\n }\n\n // XOR the message with the created keystream and return as string\n messageSet.xor(keyStream);\n return BitStringToText(ReturnSet(messageSet, message.length() * 8));\n }", "public static void main(String[] args) {\n\t\tContext context = new Context(new OperationAdd());\n\t\tSystem.out.println(\"10 + 5 = \" + context.executeStrategy(10, 5));\n\n\t\tcontext = new Context(new OperationSubtract());\n\t\tSystem.out.println(\"10 - 5 = \" + context.executeStrategy(10, 5));\n\n\t\tcontext = new Context(new OperationMultiply());\n\t\tSystem.out.println(\"10 * 5 = \" + context.executeStrategy(10, 5));\n\t}", "@Override\n\tpublic String visitExpr(MicroParser.ExprContext ctx) {\n\t\tString prefix = visit(ctx.expr_prefix());\n\t\tString expr = prefix + visit(ctx.term());\n\t\t\n\t\t//System.out.println(\"in visit expr: \"+expr);\n\t\t//System.out.println(\"in visit expr: prefix is: \"+prefix);\n\t\tif((prefix.contentEquals(\"\"))) return expr;\n\t\tString op1, op2, result;\n\t\tString type = currentType;\n\t\tString[] ids = expr.split(\"\\\\-|\\\\+\");\n\t List<String> operands = new ArrayList<String>();\n\t List<Character> addops = new ArrayList<Character>();\n\t \n\t for(int i=0;i<expr.length();i++) {\n\t \tif(expr.charAt(i)=='+' || expr.charAt(i)=='-')\n\t \t\taddops.add(expr.charAt(i));\n\t }\n\t //create a list of addops\n\t \n\t //create a list of operands \n\t for(String i:ids) \n\t \t operands.add(i);\n\t \n\t op1 = operands.get(0);\n\t op2 = operands.get(1);\n\t temp = new Temporary(type);\n\t result = temp.fullName;\n\t tempList.addT(temp);\n\t //System.out.println(\"in visit expr, ops are: \"+op1+\" \"+ op2);\n\t //System.out.println(\"in visit expr, result is: \"+ result);\n\t if(addops.get(0)=='+') {\n\t \tglobalIR.addStmt(IRStatement.generateArithmetic(type, \"ADD\", op1, op2, result));\n\t \toperands.remove(0); operands.remove(0); addops.remove(0);\n\t }\n\t \t\n\t else {\n\t \tglobalIR.addStmt(IRStatement.generateArithmetic(type, \"SUB\", op1, op2, result));\n\t \toperands.remove(0); operands.remove(0); addops.remove(0);\n\t }\n\t \n\t \t\n\t if(operands.size()==0) return result;\n\t \n\t for(int i=0; i<operands.size();i++) {\n\t \top1 = result;\n\t \top2 = operands.get(i);\n\t \ttemp = new Temporary(type);\n\t \tresult = temp.fullName;\n\t \ttempList.addT(temp);\n\t \tif(addops.get(0)=='+') {\n\t\t \tglobalIR.addStmt(IRStatement.generateArithmetic(type, \"ADD\", op1, op2, result));\n\t\t \taddops.remove(0);\n\t \t}\n\t\t \t\n\t\t else {\n\t\t \tglobalIR.addStmt(IRStatement.generateArithmetic(type, \"SUB\", op1, op2, result));\n\t\t \taddops.remove(0);\n\t\t }\n\t\t \t\n\t }\n\t return result; \n\t\t\n\t}", "private void initOperators(Set<String> s) {\n\t\ts.add(\"=\");\n\t\ts.add(\"+\");\n\t\ts.add(\"-\");\n\t\ts.add(\"*\");\n\t\ts.add(\"/\");\n\t\ts.add(\"(\");\n\t\ts.add(\")\");\n\t\ts.add(\";\");\n }", "private String compute(String equ,String op)\n {\n String equation = equ;\n Pattern mdPattern = Pattern.compile(\"(\\\\d+([.]\\\\d+)*)(([\"+op+\"]))(\\\\d+([.]\\\\d+)*)\");\n Matcher matcher\t\t= mdPattern.matcher(equation);\n while(matcher.find())\n {\n String[] arr = null;\n double ans = 0;\n String eq = matcher.group(0);//get form x*y\n if(eq.contains(op))\n {\n arr = eq.split(\"\\\\\"+op);//make arr\n if(op.equals(\"*\"))\n ans = Double.valueOf(arr[0])*Double.valueOf(arr[1]);//compute\n if(op.equals(\"/\"))\n ans = Double.valueOf(arr[0])/Double.valueOf(arr[1]);//compute\n if(op.equals(\"+\"))\n ans = Double.valueOf(arr[0])+Double.valueOf(arr[1]);//compute\n if(op.equals(\"-\"))\n ans = Double.valueOf(arr[0])-Double.valueOf(arr[1]);//compute\n }\n\n equation = matcher.replaceFirst(String.valueOf(ans));//replace in equation\n matcher = mdPattern.matcher(equation);//look for more matches\n }\n return equation;\n }", "public static void main(String[] args) {\n NumberFact a, b;\n a = new NumberFact(1_000);\n b = new NumberFact(999);\n\n ArithmeticOperator x, y;\n x = new ArithmeticOperator('*', a, b);\n y = new ArithmeticOperator('+', x, b);\n\n System.out.println(y);\n System.out.println(y.eval());\n }", "@Test\n public void testRulesetConways() {\n System.out.println(\"Conways: B3/S23\");\n byte[][] conways = {\n {0,0,0,0,0},\n {0,0,1,0,0},\n {0,0,0,1,0},\n {0,1,1,1,0},\n {0,0,0,0,0},\n }; \n \n byte[][] expResult = { \n {0,0,0,0,0},\n {0,0,0,0,0},\n {0,1,0,1,0},\n {0,0,1,1,0},\n {0,0,1,0,0},\n };\n \n ng.decodeRuleset(\"3\", \"23\");\n byte[][] result = ng.calcNextGen(conways);\n assertArrayEquals(expResult, result);\n }", "private OperatorPair chooseOperators(String name) {\n\t\t\n\t\tswitch(name) {\n\t\t\n\t\tcase \"sin\":\n\t\t\treturn new OperatorPair(SIN, ASIN);\n\t\t\t\n\t\tcase \"cos\":\n\t\t\treturn new OperatorPair(COS, ACOS);\n\t\t\t\n\t\tcase \"tan\":\n\t\t\treturn new OperatorPair(TAN, ATAN);\n\t\t\t\n\t\tcase \"ctg\":\n\t\t\treturn new OperatorPair(CTG, ACTG);\n\t\t\t\n\t\tcase \"log\":\n\t\t\treturn new OperatorPair(LOG, LOG_INV);\n\t\t\t\n\t\tcase \"ln\":\n\t\t\treturn new OperatorPair(LN, LN_INV);\n\t\t\n\t\tcase \"1/x\":\n\t\t\treturn new OperatorPair(X_INV, X_INV);\n\t\t\t\n\t\tdefault:\n\t\t\tthrow new IllegalStateException(\"Invalid unary operator\");\n\t\t}\n\t}", "public HOp[] ops()\r\n {\r\n if (!cache.initialized()) \r\n throw new IllegalStateException(Cache.NOT_INITIALIZED);\r\n\r\n return OPS;\r\n }", "private static void addCombos() {\n\t\tcombos.put(\"All pixels, three LSB\", 13);\n\t\tcombos.put(\"All pixels, two LSB\", 12);\n\t\tcombos.put(\"Every even pixel, three LSB\", 23);\n\t\tcombos.put(\"Every odd pixel, three LSB\", 33);\n\t\tcombos.put(\"Every pixel, one LSB\", 11);\n\t\tcombos.put(\"Every even pixel, two LSB\",22);\n\t\tcombos.put(\"Every odd pixel, two LSB\", 32);\n\t\tcombos.put(\"Every third pixel, three LSB\",43);\n\t\tcombos.put(\"Every third pixel, two LSB\",42);\n\t\tcombos.put(\"Every even pixel, one LSB\",21);\n\t\tcombos.put(\"Every odd pixel, one LSB\",31);\n\t\tcombos.put(\"Every third pixel, one LSB\",41);\n\t\tcombos.put(\"Every prime-numbered pixel, three LSB\", 53);\n\t\tcombos.put(\"Every prime-numbered pixel, two LSB\",52);\n\t\tcombos.put(\"Every prime-numbered pixel, one LSB\",51);\n\n\n\t}", "static String product (String s1, String s2) {\r\n try {\r\n if (s1==errorSignature\r\n || s2==errorSignature) return errorSignature;\r\n if (s1==null || s1.length()==0) return s2;\r\n if (s2==null || s2.length()==0) return s1;\r\n StringBuffer result = new StringBuffer();\r\n\r\n // arrays for reference passing values\r\n char type1 [] = new char[1];\r\n char type2 [] = new char[1];\r\n int pos1 [] = new int[1];\r\n int pos2 [] = new int[1];\r\n int power1[] = new int[1];\r\n int power2[] = new int[1];\r\n int index1[] = new int[1];\r\n int index2[] = new int[1];\r\n int n1 = eatNumber (s1, pos1); // <n>(..dimensionReference)\r\n int n2 = eatNumber (s2, pos2); // <n>(..dimensionReference)\r\n int n = 0;\r\n\r\n String name1 = eatReference (s1, pos1, type1, power1, index1);\r\n String name2 = eatReference (s2, pos2, type2, power2, index2);\r\n\r\n boolean done1 = false;\r\n boolean done2 = false;\r\n for (;;) {\r\n // invariant: type1&type2, power1&power2 etc denote lexically ordered\r\n // components that still need to be reflected in the result buffer.\r\n //\r\n\r\n boolean eat1 = false;\r\n boolean eat2 = false;\r\n boolean spawn1 = false;\r\n boolean spawn2 = false;\r\n int power = 0;\r\n\r\n if (done1) {\r\n if (done2) break;\r\n eat2 = spawn2 = true;\r\n power = power2[0];\r\n }\r\n else if (done2) {\r\n eat1 = spawn1 = true;\r\n power = power1[0];\r\n }\r\n else if (type1[0]=='D') {\r\n if (type2[0]=='D') {\r\n int cmp=name1.compareTo(name2);\r\n if (cmp<0) {eat1 = spawn1 = true; power = power1[0];}\r\n else if (cmp>0) {eat2 = spawn2 = true; power = power2[0];}\r\n else {eat1 = eat2 = true; power = power1[0]+power2[0];\r\n if (power!= 0) spawn1 = true; }\r\n }\r\n else { // type2[0]=='W'\r\n eat1 = spawn1 = true; power = power1[0];\r\n }\r\n } else { // type1[0]=='W'\r\n if (type2[0]=='D') {\r\n eat2 = spawn2 = true; power = power2[0];\r\n }\r\n else { // both 'W'\r\n if (index1[0]<index2[0]) {eat1 = spawn1 = true; power = power1[0];}\r\n else if (index1[0]>index2[0]) {eat2 = spawn2 = true; power = power2[0];}\r\n else { eat1 = eat2 = true; power = power1[0]+power2[0];\r\n if (power!= 0) spawn1 = true; }\r\n }\r\n }\r\n if (spawn1) {\r\n n++;\r\n if (type1[0]=='D') result.append ('D').append (power).append (name1) .append(';');\r\n else result.append ('W').append (power).append ('V') .append(index1[0]).append (';');\r\n }\r\n else if (spawn2) {\r\n n++;\r\n if (type2[0]=='D') result.append ('D').append (power).append (name2) .append(';');\r\n else result.append ('W').append (power).append ('V') .append(index2[0]).append (';');\r\n }\r\n if (eat1) {if (--n1==0) done1=true; else name1=eatReference(s1,pos1,type1,power1,index1);}\r\n if (eat2) {if (--n2==0) done2=true; else name2=eatReference(s2,pos2,type2,power2,index2);}\r\n }\r\n if (n==0) return null;\r\n return n+result.toString();\r\n }\r\n catch (RuntimeException e) {\r\n throw new RuntimeException (\"INTERNAL ERROR: illegal dimension signature: \"+s1+\" or \"+s2);\r\n }\r\n }", "public static void generateRoundKeys(String input){\n int i =0;\n\t\tfor (int col1 = 0; col1 <=3; col1++) {\t\t\t\n for (int row1 = 0; row1 <=3; row1 = row1+1) {\n\t\t\toriginalKey[row1][col1] = input.substring(i,i+2);\n\t\t\ti=i+2;\n } \n\t\t} \n //take the original key and make it be the first four columns of W\n for(int row2 = 0; row2<=3; row2++){\n for(int col2 = 0; col2 < 4; col2++){\n W[row2][col2] = originalKey[row2][col2];\n }\n } \n //Starting to create next 40 columns of W\n //temporary matrix temp_w for processing\n String[][] temp_w = null;\n for(int column = 4; column<=43; column++){\n /*Part 1 : if the index of column is not divisible by 4, \n XOR the fourth past and last column with respect to column index*/\n if(column % 4 != 0){\n for(int row = 0; row<=3; row++){\n W[row][column] = performXOR(W[row][column-4], W[row][column-1]); \n }\n }\n else {\n /*Part 2 : if the index of column is divisible by 4,\n step 1: Use temp matrix temp_w to store previous column values.\n Tanspose previous column values to row values\n step 2 : Shif to the left of column values of temp_w*/\n temp_w = new String[1][4]; \n \n temp_w[0][0] = W[1][column - 1];\n temp_w[0][1] = W[2][column - 1];\n temp_w[0][2] = W[3][column - 1];\n temp_w[0][3] = W[0][column - 1];\n \n //step 3 : transform each of the four bytes in temp_w using an S-box function\n for(int m =0 ; m<1; m++){\n for(int n =0; n<=3 ; n++){\n int x = Integer.parseInt(temp_w[m][n].split(\"\")[0],16);\n int y = Integer.parseInt(temp_w[m][n].split(\"\")[1],16);\n temp_w[m][n] = SBOX[x][y]; \n\t\t\t}\n }\n \n //step 4 : Getting RCon coefficient values and performing XOR operation\n //find number of round\n int numRound = column/4;\n //get RCon of the same column number form Rcon table and xOR with first element\n temp_w[0][0] = performXOR(RCON[0][numRound],temp_w[0][0]);\n \n //step 5 : Perform final XOR\n for(int row3 = 0; row3<=3; row3++){\n W[row3][column] = performXOR(W[row3][column-4], temp_w[0][row3]);\n }\n \n }\n }\n \n //Printing Round Keys\n int Rounds = 1;\n int k = 0;\n while (Rounds <=11){ \n for(int column1 = 0; column1<=3; k++, column1++){\n for(int row =0; row<=3; row++){\n System.out.print(W[row][k]);\n }\n } \n System.out.println();\n Rounds++;\n } \n System.out.println(\"\");\n }", "@ApiModelProperty(value = \"How to combine values of this variable (for instance, to see a summary of the values over a month) 0 for sum OR 1 for mean\")\n @JsonProperty(\"combination_operation\")\n public String getCombinationOperation() {\n return combinationOperation;\n }", "private static String takanoFormula(int npidigits) throws Exception {\n int nterms49 = arctanNterms(npidigits, 1, 49);\n int nterms57 = arctanNterms(npidigits, 1, 57);\n int nterms239 = arctanNterms(npidigits, 1, 239);\n int nterms110443 = arctanNterms(npidigits, 1, 110443);\n\n int[] nterms = { nterms49, nterms57, nterms239, nterms110443 };\n int[] multiplicators = { 4*12, 4*32, 4*-5, 4*12 };\n int[] parts = { 49, 57, 239, 110443 };\n\n // run in parallel\n ExecutorService executor = Executors.newCachedThreadPool();\n List<Future<Q10>> results = new ArrayList<>();\n\n for (int i = 0; i < 4; i++) {\n int index = i;\n Future<Q10> f = executor.submit(() -> {\n Q10 term = Q10.multiply(\n Q10.of(multiplicators[index]),\n arctan(Q10.of(1, parts[index]), nterms[index]));\n\n return term;\n });\n\n results.add(f);\n }\n\n Q10 pi = Q10.of(0);\n for (int i = 0; i < 4; i++) {\n pi = Q10.add(pi, results.get(i).get());\n }\n\n executor.shutdown();\n return pi.toDecimalString(npidigits);\n }", "abstract String getOp();", "public static Node multiply(Node poly1, Node poly2) {\r\n\t\t/** COMPLETE THIS METHOD **/\r\n\t\t// FOLLOWING LINE IS A PLACEHOLDER TO MAKE THIS METHOD COMPILE\r\n\t\t// CHANGE IT AS NEEDED FOR YOUR IMPLEMENTATION\r\n\t\t//Equation for the first polynomial\r\n\t\t\r\n\t\t\tNode Equation1=poly1;\r\n\t\t\r\n\t\t\t//Equation for the second polynomial\r\n\t\t\r\n\t\t\tNode Equation2=poly2;\r\n\t\t \r\n\t\t \tNode Summation= null;\r\n\t\t \t\r\n\t\t \tNode Result=null;\r\n\t\t \r\n\t\t \r\n\t\t \t\r\n\t\t //this will hold the temporary adding\r\n\t float tmp =0;\r\n\t //holds degree\r\n\t \r\n\t int deg =0;\r\n\t \r\n\t if(Equation1==null) {\r\n\t \treturn Equation2;\r\n\t }\r\n\t \r\n\t if(Equation2==null) {\r\n\t \treturn Equation1;\r\n\t }\r\n\r\n\r\n\t //loops through both equations and check to see if both are null\r\n\t while( Equation2!=null) {\r\n\t \t\r\n\t \ttmp= Equation1.term.coeff*Equation2.term.coeff;\r\n\t \tdeg = Equation1.term.degree+Equation2.term.degree;\r\n\t \tSummation = new Node(tmp,deg,Summation);\r\n\t \t\r\n\t \tEquation1=Equation1.next;\r\n\t \t\r\n\t \tif(Equation1==null) {\r\n\t \t\tEquation1=poly1;\r\n\t \t\tEquation2=Equation2.next;\r\n\t \t}\r\n\t \t\t\t}\r\n\t \r\n\t Node Answer =null;\r\n\t Node hold =null;\r\n\t \twhile(Summation!=null) {\r\n\t \t\ttmp = Summation.term.coeff;\r\n\t \t\thold=Summation.next;\r\n\t \t\twhile(hold!=null) {\r\n\t \t\t\t\r\n\t \t\t\tif(Summation.term.degree==hold.term.degree) {\r\n\t \t\t\t\ttmp= tmp +hold.term.coeff;\r\n\t \t\t\t\thold.term.coeff=0;\t\r\n\t \t\t\t\t\r\n\t \t\t\t}\r\n\t \t\t\t\r\n\t \t\t\thold = hold.next;\r\n\t \t\t\t\r\n\t \t\t}\r\n\t \t\t\r\n\t \t\t\r\n\t \t\tAnswer= new Node(tmp,Summation.term.degree,Answer);\r\n\t \t\tSummation = Summation.next;\r\n\t \t\t\r\n\t \t\t\r\n\t \t\t\r\n\t \t}\r\n\t Summation =null;\r\n\t \twhile(Answer!=null) {\r\n\t \t\t\r\n\t \t\twhile(Answer.term.coeff==0) {\r\n\t \t\t\tAnswer=Answer.next;\r\n\t \t\t}\r\n\t \t\t\r\n\t \t\tSummation = new Node(Answer.term.coeff,Answer.term.degree,Summation);\r\n\t \t\tAnswer=Answer.next;\r\n\t \t\t\r\n\t \t\t\r\n\t \t\t\r\n\t \t}\r\n\t \t\r\n\t \tAnswer= Summation;\r\n\t \tEquation1=null;\r\n\t \tEquation2=Summation;\r\n\t \ttmp =Answer.term.coeff;\r\n\t \tdeg=Answer.term.degree;\r\n\t \tint max =deg;\r\n\t \t\r\n\t \t\r\n\t \t\r\n\t \t//find max degree of polynomial\t\r\n \t\twhile(Answer.next!=null ) {\r\n \t\t\t\r\n \t\t\t\r\n \t\t\tif(Answer.term.degree>deg) {\r\n \t\t\t\ttmp=Answer.term.coeff;\r\n \t\t\t\tdeg=Answer.term.degree;\r\n \t\t\t}\r\n \t\t\t\r\n \t\t\tAnswer=Answer.next;\r\n \t\t\t\r\n \t\t}\r\n \t\t\r\n \t\t\r\n \t\t\r\n \t\tEquation1= new Node(tmp,deg,Equation1);\r\n \t\t\r\n \t\tAnswer= null;\r\n \t\t\r\n \t\t max=Equation1.term.degree;\r\n \t\t \r\n \t\t Equation2=null;\r\n \t\t //arranges polynomials descending\r\n \t\t while(max!=-1) {\r\n \t\t\t \r\n \t\t\t Answer=Summation;\r\n \t\t\t while(Answer!=null) {\r\n \t\t\t if(Answer.term.degree==max) {\r\n \t\t\t\t Equation2= new Node(Answer.term.coeff,Answer.term.degree,Equation2);\r\n \t\t\t\t \r\n \t\t\t }\r\n \t\t\t \r\n \t\t\t Answer=Answer.next;\r\n \t\t\t \r\n \t\t\t }\r\n \t\t\t max--;\r\n \t\t\t\r\n \t\t\t \r\n \t\t\t \r\n \t\t\t \r\n \t\t }\r\n \r\n\t\t\treturn Equation2 ;\r\n\r\n\t\t \r\n\t}", "@Test\n\tpublic void testBuildExpressionWithThreeArguments() {\n\t\t\n\t\tWord wordA = new Word(\"apple\", 1);\n\t\tWord wordB = new Word(\"car\", 1);\n\t\tWord wordC = new Word(\"roof\", 2);\n\t\t\n\t\tExpressionBuilder<Word> builder = new ExpressionBuilder<>();\n\t\tbuilder.append(null, wordA);\n\t\tbuilder.append(new AndOperator<Word>(), wordB);\n\t\tbuilder.append(new OrOperator<Word>(), wordC);\n\t\t\n\t\tExpression<Word> resultExpression = builder.getExpression();\n\t\t\n\t\tString expectedResult = \"((apple [1] AND car [1]) OR roof [2])\";\n\t\t\n\t\tSystem.out.println(resultExpression.evaluate());\n\t\tassertEquals(expectedResult, resultExpression.toString());\n\t\t\n\t}", "public List<Integer> diffWaysToCompute(String input) {\n List<Integer> result=new ArrayList<>();\n if(input==null||input.length()==0) return result;\n List<String> ops=new ArrayList<>();\n for(int i=0; i<input.length(); i++){\n int j=i;\n while(j<input.length()&&Character.isDigit(input.charAt(j)))\n j++;\n ops.add(input.substring(i, j));\n if(j!=input.length()) ops.add(input.substring(j, j+1));\n i=j;\n }\n int N=(ops.size()+1)/2; //num of integers\n ArrayList<Integer>[][] dp=(ArrayList<Integer>[][]) new ArrayList[N][N];\n for(int d=0; d<N; d++){\n if(d==0){\n for(int i=0; i<N; i++){\n dp[i][i]=new ArrayList<>();\n dp[i][i].add(Integer.valueOf(ops.get(i*2)));\n }\n continue;\n }\n for(int i=0; i<N-d; i++){\n dp[i][i+d]=new ArrayList<>();\n for(int j=i; j<i+d; j++){\n ArrayList<Integer> left=dp[i][j], right=dp[j+1][i+d];\n String operator=ops.get(j*2+1);\n for(int leftNum:left)\n for(int rightNum:right){\n if(operator.equals(\"+\"))\n dp[i][i+d].add(leftNum+rightNum);\n else if(operator.equals(\"-\"))\n dp[i][i+d].add(leftNum-rightNum);\n else\n dp[i][i+d].add(leftNum*rightNum);\n }\n }\n }\n }\n return dp[0][N-1];\n}", "@Override\n\tpublic String toString() {\n\t\treturn super.toString() + \" \" + op1 + \" + \" + op2 + \" to \" + result;\n\t}", "public void buildSymbols() \n {\n scalars = new ArrayList <ScalarSymbol>();\n arrays = new ArrayList <ArraySymbol>();\n Stack <String> symbols = new Stack <String>();\n StringTokenizer st = new StringTokenizer(expr, delims, true); \n String token = \"\";\n \n while (st.hasMoreTokens())\n {\n token = st.nextToken();\n if ((token.charAt(0) >= 'a' && token.charAt(0) <= 'z') || (token.charAt(0) >= 'A' && token.charAt(0) <= 'Z' || token.equals(\"[\")))\n symbols.push(token); \n }\n while(!symbols.isEmpty())\n {\n token = symbols.pop();\n if (token.equals(\"[\"))\n {\n token = symbols.pop();\n ArraySymbol aSymbol = new ArraySymbol(token);\n if(arrays.indexOf(aSymbol) == -1)\n arrays.add(aSymbol);\n }\n else \n {\n ScalarSymbol sSymbol = new ScalarSymbol(token);\n if (scalars.indexOf(sSymbol) == -1)\n scalars.add(sSymbol);\n }\n }\n System.out.println(arrays);\n System.out.println(scalars);\n }", "protected <T> List<List<T>> cartesianProduct(List<List<T>> lists) {\n\t List<List<T>> resultLists = new ArrayList<List<T>>();\n\t if (lists.size() == 0) {\n\t resultLists.add(new ArrayList<T>());\n\t \n\t return resultLists;\n\t } else {\n\t List<T> firstList = lists.get(0);\n\t List<List<T>> remainingLists = cartesianProduct(lists.subList(1, lists.size()));\n\t for (T condition : firstList) {\n\t for (List<T> remainingList : remainingLists) {\n\t ArrayList<T> resultList = new ArrayList<T>();\n\t resultList.add(condition);\n\t resultList.addAll(remainingList);\n\t resultLists.add(resultList);\n\t }\n\t }\n\t }\n\t System.out.print(String.format(\"\\r%d\", resultLists.size()));\n\t return resultLists;\n\t}", "private List<List<Node>> combinationHelper(int k, int n) {\n\t\tList<List<Node>> res = new ArrayList<List<Node>>();\n\t\tList<int[]> combRes = combinationHelperImpl(k, n);\n\t\tfor (int[] elem : combRes) {\n\t\t\tArrays.sort(elem);\n\t\t\tList<Node> tmp = new ArrayList<Node>();\n\t\t\tfor (int i : elem) {\n\t\t\t\ttmp.add(queryNodes.get(i));\n\t\t\t}\n\t\t\tres.add(new ArrayList<Node>(tmp));\n\t\t}\n\t\treturn res;\n\t}", "public EncryptionAlgorithms()\n\t{\n\t\tkexAlgs = new LinkedList<KexAlgs>();\n\t\tcipherAlgs = new LinkedList<Ciphers>();\n\t\thmacAlgs = new LinkedList<Hmacs>();\n\t\tcompAlgs = new LinkedList<CompAlgs>();\n\t}", "@Override\n public String toString() {\n return op.toString();\n }", "private void extendInitialCompositeNEs() {\n \n MyCombinator = new Combinator();\n \n String initialCompositeNE = null;\n String compositeNeConstructor = null;\n for (int i = 0; i < NumberOfInitialCompositeNEs ; i ++) {\n initialCompositeNE = InitialCompositeNEs[0][i].toString();\n compositeNeConstructor = InitialCompositeNEs[1][i].toString();\n MyCombinator.setPatternArray(BasicNEs, NumberOfBasicNEs,\n initialCompositeNE, compositeNeConstructor);\n MyCombinator.reset();\n }\n MyCombinator.copyArray();\n \n }", "public void computeEquation()\n {\n // Curve equation of type : y = ax^2 + bx + c\n // OR (x*x)a + (x)b + 1c = y\n // ex : 50 = 4a + 2b + c where y = 50 and x = 2 and z = 1\n double[][] matrice = {{Math.pow(A.getKey(),2),A.getKey(),1},\n {Math.pow(B.getKey(),2),B.getKey(),1},\n {Math.pow(C.getKey(),2),C.getKey(),1}};\n\n double deter = computeSarrus(matrice);\n\n double [][] matriceA = {{A.getValue(),A.getKey(),1},\n {B.getValue(),B.getKey(),1},\n {C.getValue(),C.getKey(),1}};\n\n double [][] matriceB = {{Math.pow(A.getKey(),2),A.getValue(),1},\n {Math.pow(B.getKey(),2),B.getValue(),1},\n {Math.pow(C.getKey(),2),C.getValue(),1}};\n\n double [][] matriceC = {{Math.pow(A.getKey(),2),A.getKey(),A.getValue()},\n {Math.pow(B.getKey(),2),B.getKey(),B.getValue()},\n {Math.pow(C.getKey(),2),C.getKey(),C.getValue()}};\n\n abc[0] = computeSarrus(matriceA) / deter;\n abc[1] = computeSarrus(matriceB) / deter;\n abc[2] = computeSarrus(matriceC) / deter;\n }" ]
[ "0.6107534", "0.5854871", "0.5818154", "0.5707991", "0.5637872", "0.5571695", "0.55414116", "0.5495677", "0.54749495", "0.54698306", "0.5418413", "0.5416861", "0.5333825", "0.52744704", "0.5264959", "0.5261574", "0.5258522", "0.5191383", "0.5135822", "0.51317704", "0.51219183", "0.5097262", "0.5067894", "0.5048196", "0.5041383", "0.50413156", "0.5028017", "0.50268775", "0.5026729", "0.50259185", "0.5023808", "0.50181186", "0.5014202", "0.50127447", "0.50084585", "0.49984673", "0.49859318", "0.49764127", "0.4960575", "0.4957497", "0.49525547", "0.49340734", "0.49340734", "0.49340734", "0.49327353", "0.49317932", "0.4931019", "0.49300793", "0.49175203", "0.48904693", "0.48892766", "0.4882323", "0.48733604", "0.48575792", "0.48550752", "0.48525125", "0.48498586", "0.48443544", "0.4838819", "0.48370823", "0.483639", "0.48362935", "0.4835806", "0.483547", "0.48339948", "0.4833431", "0.48257333", "0.48239386", "0.4821602", "0.48190904", "0.48190904", "0.48093104", "0.48073077", "0.48011976", "0.47904292", "0.47863925", "0.47854435", "0.47757596", "0.47721875", "0.47672862", "0.4766973", "0.47580153", "0.4739123", "0.47386536", "0.4736395", "0.4733852", "0.47267428", "0.47239956", "0.47213522", "0.47193065", "0.47172442", "0.47159758", "0.47099417", "0.46922886", "0.4690539", "0.4690355", "0.46802998", "0.4678557", "0.46758467", "0.46711722" ]
0.56286633
5
TODO Autogenerated method stub
@Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); AppendMainBody(R.layout.os_jsh_wdj_ldss_introduce); isShowSlidingMenu(false); AppendTitleBody1(); initView(); initListener(); initData(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExras() {\n\n\t}", "@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}", "@Override\n\tpublic void entrenar() {\n\t\t\n\t}", "@Override\n\tpublic void nadar() {\n\t\t\n\t}", "@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}", "@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}", "@Override\n\tprotected void interr() {\n\t}", "@Override\n\tpublic void emprestimo() {\n\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "@Override\n\tpublic void gravarBd() {\n\t\t\n\t}", "@Override\r\n\tpublic void rozmnozovat() {\n\t}", "@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}", "@Override\n protected void getExras() {\n }", "@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}", "@Override\n\tpublic void nefesAl() {\n\n\t}", "@Override\n\tpublic void ligar() {\n\t\t\n\t}", "@Override\n public void func_104112_b() {\n \n }", "@Override\n\tprotected void initdata() {\n\n\t}", "@Override\n\tpublic void nghe() {\n\n\t}", "@Override\n public void function()\n {\n }", "@Override\n public void function()\n {\n }", "public final void mo51373a() {\n }", "@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}", "@Override\n public void inizializza() {\n\n super.inizializza();\n }", "@Override\n\tprotected void initData() {\n\t\t\n\t}", "@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}", "@Override\n\tpublic void sacrifier() {\n\t\t\n\t}", "@Override\r\n\tprotected void InitData() {\n\t\t\r\n\t}", "public void designBasement() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}", "public void gored() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\r\n\t}", "@Override\n\tpublic void einkaufen() {\n\t}", "@Override\n protected void initialize() {\n\n \n }", "public void mo38117a() {\n }", "@Override\n\tprotected void getData() {\n\t\t\n\t}", "Constructor() {\r\n\t\t \r\n\t }", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\n\tpublic void one() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "private stendhal() {\n\t}", "@Override\n\tprotected void update() {\n\t\t\n\t}", "@Override\n\t\t\tpublic void ic() {\n\t\t\t\t\n\t\t\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n public void init() {\n\n }", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\n\tpublic void debite() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "public contrustor(){\r\n\t}", "@Override\n\tprotected void initialize() {\n\n\t}", "@Override\r\n\tpublic void dispase() {\n\r\n\t}", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "@Override\n\tpublic void dtd() {\n\t\t\n\t}", "@Override\n\tprotected void logic() {\n\n\t}", "@Override\n\tprotected void lazyLoad() {\n\t\t\n\t}", "public void mo4359a() {\n }", "@Override\r\n\tprotected void initialize() {\n\r\n\t}", "@Override\n public void memoria() {\n \n }", "@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}", "private RepositorioAtendimentoPublicoHBM() {\r\t}", "@Override\n protected void initialize() \n {\n \n }", "@Override\r\n\tpublic void getProposition() {\n\r\n\t}", "@Override\n\tpublic void particular1() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n protected void prot() {\n }", "@Override\r\n\tpublic void init()\r\n\t{\n\t}", "@Override\n\tprotected void initValue()\n\t{\n\n\t}", "public void mo55254a() {\n }" ]
[ "0.6671074", "0.6567672", "0.6523024", "0.6481211", "0.6477082", "0.64591026", "0.64127725", "0.63762105", "0.6276059", "0.6254286", "0.623686", "0.6223679", "0.6201336", "0.61950207", "0.61950207", "0.61922914", "0.6186996", "0.6173591", "0.61327106", "0.61285484", "0.6080161", "0.6077022", "0.6041561", "0.6024072", "0.6020252", "0.59984857", "0.59672105", "0.59672105", "0.5965777", "0.59485507", "0.5940904", "0.59239364", "0.5910017", "0.5902906", "0.58946234", "0.5886006", "0.58839184", "0.58691067", "0.5857751", "0.58503544", "0.5847024", "0.58239377", "0.5810564", "0.5810089", "0.5806823", "0.5806823", "0.5800025", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5790187", "0.5789414", "0.5787092", "0.57844025", "0.57844025", "0.5774479", "0.5774479", "0.5774479", "0.5774479", "0.5774479", "0.5761362", "0.57596046", "0.57596046", "0.575025", "0.575025", "0.575025", "0.5747959", "0.57337177", "0.57337177", "0.57337177", "0.5721452", "0.5715831", "0.57142824", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.5711723", "0.57041645", "0.56991017", "0.5696783", "0.56881124", "0.56774884", "0.56734604", "0.56728", "0.56696945", "0.5661323", "0.5657007", "0.5655942", "0.5655942", "0.5655942", "0.56549734", "0.5654792", "0.5652974", "0.5650185" ]
0.0
-1
TODO Autogenerated method stub
@Override protected void onDestroy() { super.onDestroy(); unregisterReceiver(mReceiver); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExras() {\n\n\t}", "@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}", "@Override\n\tpublic void entrenar() {\n\t\t\n\t}", "@Override\n\tpublic void nadar() {\n\t\t\n\t}", "@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}", "@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}", "@Override\n\tprotected void interr() {\n\t}", "@Override\n\tpublic void emprestimo() {\n\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "@Override\n\tpublic void gravarBd() {\n\t\t\n\t}", "@Override\r\n\tpublic void rozmnozovat() {\n\t}", "@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}", "@Override\n protected void getExras() {\n }", "@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}", "@Override\n\tpublic void nefesAl() {\n\n\t}", "@Override\n\tpublic void ligar() {\n\t\t\n\t}", "@Override\n public void func_104112_b() {\n \n }", "@Override\n\tprotected void initdata() {\n\n\t}", "@Override\n\tpublic void nghe() {\n\n\t}", "@Override\n public void function()\n {\n }", "@Override\n public void function()\n {\n }", "public final void mo51373a() {\n }", "@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}", "@Override\n public void inizializza() {\n\n super.inizializza();\n }", "@Override\n\tprotected void initData() {\n\t\t\n\t}", "@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}", "@Override\n\tpublic void sacrifier() {\n\t\t\n\t}", "@Override\r\n\tprotected void InitData() {\n\t\t\r\n\t}", "public void designBasement() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}", "public void gored() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\r\n\t}", "@Override\n\tpublic void einkaufen() {\n\t}", "@Override\n protected void initialize() {\n\n \n }", "public void mo38117a() {\n }", "@Override\n\tprotected void getData() {\n\t\t\n\t}", "Constructor() {\r\n\t\t \r\n\t }", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\n\tpublic void one() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "private stendhal() {\n\t}", "@Override\n\tprotected void update() {\n\t\t\n\t}", "@Override\n\t\t\tpublic void ic() {\n\t\t\t\t\n\t\t\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n public void init() {\n\n }", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\n\tpublic void debite() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "public contrustor(){\r\n\t}", "@Override\n\tprotected void initialize() {\n\n\t}", "@Override\r\n\tpublic void dispase() {\n\r\n\t}", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "@Override\n\tpublic void dtd() {\n\t\t\n\t}", "@Override\n\tprotected void logic() {\n\n\t}", "@Override\n\tprotected void lazyLoad() {\n\t\t\n\t}", "public void mo4359a() {\n }", "@Override\r\n\tprotected void initialize() {\n\r\n\t}", "@Override\n public void memoria() {\n \n }", "@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}", "private RepositorioAtendimentoPublicoHBM() {\r\t}", "@Override\n protected void initialize() \n {\n \n }", "@Override\r\n\tpublic void getProposition() {\n\r\n\t}", "@Override\n\tpublic void particular1() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n protected void prot() {\n }", "@Override\r\n\tpublic void init()\r\n\t{\n\t}", "@Override\n\tprotected void initValue()\n\t{\n\n\t}", "public void mo55254a() {\n }" ]
[ "0.6671074", "0.6567672", "0.6523024", "0.6481211", "0.6477082", "0.64591026", "0.64127725", "0.63762105", "0.6276059", "0.6254286", "0.623686", "0.6223679", "0.6201336", "0.61950207", "0.61950207", "0.61922914", "0.6186996", "0.6173591", "0.61327106", "0.61285484", "0.6080161", "0.6077022", "0.6041561", "0.6024072", "0.6020252", "0.59984857", "0.59672105", "0.59672105", "0.5965777", "0.59485507", "0.5940904", "0.59239364", "0.5910017", "0.5902906", "0.58946234", "0.5886006", "0.58839184", "0.58691067", "0.5857751", "0.58503544", "0.5847024", "0.58239377", "0.5810564", "0.5810089", "0.5806823", "0.5806823", "0.5800025", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5790187", "0.5789414", "0.5787092", "0.57844025", "0.57844025", "0.5774479", "0.5774479", "0.5774479", "0.5774479", "0.5774479", "0.5761362", "0.57596046", "0.57596046", "0.575025", "0.575025", "0.575025", "0.5747959", "0.57337177", "0.57337177", "0.57337177", "0.5721452", "0.5715831", "0.57142824", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.5711723", "0.57041645", "0.56991017", "0.5696783", "0.56881124", "0.56774884", "0.56734604", "0.56728", "0.56696945", "0.5661323", "0.5657007", "0.5655942", "0.5655942", "0.5655942", "0.56549734", "0.5654792", "0.5652974", "0.5650185" ]
0.0
-1
TODO Autogenerated method stub
private void initView() { cb_show = (CheckBox) findViewById(R.id.cb_show); btn_next = (Button) findViewById(R.id.btn_next); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExras() {\n\n\t}", "@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}", "@Override\n\tpublic void entrenar() {\n\t\t\n\t}", "@Override\n\tpublic void nadar() {\n\t\t\n\t}", "@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}", "@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}", "@Override\n\tprotected void interr() {\n\t}", "@Override\n\tpublic void emprestimo() {\n\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "@Override\n\tpublic void gravarBd() {\n\t\t\n\t}", "@Override\r\n\tpublic void rozmnozovat() {\n\t}", "@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}", "@Override\n protected void getExras() {\n }", "@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}", "@Override\n\tpublic void nefesAl() {\n\n\t}", "@Override\n\tpublic void ligar() {\n\t\t\n\t}", "@Override\n public void func_104112_b() {\n \n }", "@Override\n\tprotected void initdata() {\n\n\t}", "@Override\n\tpublic void nghe() {\n\n\t}", "@Override\n public void function()\n {\n }", "@Override\n public void function()\n {\n }", "public final void mo51373a() {\n }", "@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}", "@Override\n public void inizializza() {\n\n super.inizializza();\n }", "@Override\n\tprotected void initData() {\n\t\t\n\t}", "@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}", "@Override\n\tpublic void sacrifier() {\n\t\t\n\t}", "@Override\r\n\tprotected void InitData() {\n\t\t\r\n\t}", "public void designBasement() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}", "public void gored() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\r\n\t}", "@Override\n\tpublic void einkaufen() {\n\t}", "@Override\n protected void initialize() {\n\n \n }", "public void mo38117a() {\n }", "@Override\n\tprotected void getData() {\n\t\t\n\t}", "Constructor() {\r\n\t\t \r\n\t }", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\n\tpublic void one() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "private stendhal() {\n\t}", "@Override\n\tprotected void update() {\n\t\t\n\t}", "@Override\n\t\t\tpublic void ic() {\n\t\t\t\t\n\t\t\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n public void init() {\n\n }", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\n\tpublic void debite() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "public contrustor(){\r\n\t}", "@Override\n\tprotected void initialize() {\n\n\t}", "@Override\r\n\tpublic void dispase() {\n\r\n\t}", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "@Override\n\tpublic void dtd() {\n\t\t\n\t}", "@Override\n\tprotected void logic() {\n\n\t}", "@Override\n\tprotected void lazyLoad() {\n\t\t\n\t}", "public void mo4359a() {\n }", "@Override\r\n\tprotected void initialize() {\n\r\n\t}", "@Override\n public void memoria() {\n \n }", "@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}", "private RepositorioAtendimentoPublicoHBM() {\r\t}", "@Override\n protected void initialize() \n {\n \n }", "@Override\r\n\tpublic void getProposition() {\n\r\n\t}", "@Override\n\tpublic void particular1() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n protected void prot() {\n }", "@Override\r\n\tpublic void init()\r\n\t{\n\t}", "@Override\n\tprotected void initValue()\n\t{\n\n\t}", "public void mo55254a() {\n }" ]
[ "0.6671074", "0.6567672", "0.6523024", "0.6481211", "0.6477082", "0.64591026", "0.64127725", "0.63762105", "0.6276059", "0.6254286", "0.623686", "0.6223679", "0.6201336", "0.61950207", "0.61950207", "0.61922914", "0.6186996", "0.6173591", "0.61327106", "0.61285484", "0.6080161", "0.6077022", "0.6041561", "0.6024072", "0.6020252", "0.59984857", "0.59672105", "0.59672105", "0.5965777", "0.59485507", "0.5940904", "0.59239364", "0.5910017", "0.5902906", "0.58946234", "0.5886006", "0.58839184", "0.58691067", "0.5857751", "0.58503544", "0.5847024", "0.58239377", "0.5810564", "0.5810089", "0.5806823", "0.5806823", "0.5800025", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5790187", "0.5789414", "0.5787092", "0.57844025", "0.57844025", "0.5774479", "0.5774479", "0.5774479", "0.5774479", "0.5774479", "0.5761362", "0.57596046", "0.57596046", "0.575025", "0.575025", "0.575025", "0.5747959", "0.57337177", "0.57337177", "0.57337177", "0.5721452", "0.5715831", "0.57142824", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.5711723", "0.57041645", "0.56991017", "0.5696783", "0.56881124", "0.56774884", "0.56734604", "0.56728", "0.56696945", "0.5661323", "0.5657007", "0.5655942", "0.5655942", "0.5655942", "0.56549734", "0.5654792", "0.5652974", "0.5650185" ]
0.0
-1
TODO Autogenerated method stub
private void initListener() { btn_next.setOnClickListener(new OnClickListener() { @Override public void onClick(View v) { // TODO Auto-generated method stub if(cb_show.isChecked()){ SharepreferenceUtil.write(JshWdjLdssIntroduceActivity.this, SharepreferenceUtil.fileName, "ldss_show", false); OpenActivityFinsh(JshWdjLdssSetActivity.class); }else{ SharepreferenceUtil.write(JshWdjLdssIntroduceActivity.this, SharepreferenceUtil.fileName, "ldss_show", true); OpenActivity(JshWdjLdssSetActivity.class); } } }); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExras() {\n\n\t}", "@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}", "@Override\n\tpublic void entrenar() {\n\t\t\n\t}", "@Override\n\tpublic void nadar() {\n\t\t\n\t}", "@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}", "@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}", "@Override\n\tprotected void interr() {\n\t}", "@Override\n\tpublic void emprestimo() {\n\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "@Override\n\tpublic void gravarBd() {\n\t\t\n\t}", "@Override\r\n\tpublic void rozmnozovat() {\n\t}", "@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}", "@Override\n protected void getExras() {\n }", "@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}", "@Override\n\tpublic void nefesAl() {\n\n\t}", "@Override\n\tpublic void ligar() {\n\t\t\n\t}", "@Override\n public void func_104112_b() {\n \n }", "@Override\n\tprotected void initdata() {\n\n\t}", "@Override\n\tpublic void nghe() {\n\n\t}", "@Override\n public void function()\n {\n }", "@Override\n public void function()\n {\n }", "public final void mo51373a() {\n }", "@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}", "@Override\n public void inizializza() {\n\n super.inizializza();\n }", "@Override\n\tprotected void initData() {\n\t\t\n\t}", "@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}", "@Override\n\tpublic void sacrifier() {\n\t\t\n\t}", "@Override\r\n\tprotected void InitData() {\n\t\t\r\n\t}", "public void designBasement() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}", "public void gored() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\r\n\t}", "@Override\n\tpublic void einkaufen() {\n\t}", "@Override\n protected void initialize() {\n\n \n }", "public void mo38117a() {\n }", "@Override\n\tprotected void getData() {\n\t\t\n\t}", "Constructor() {\r\n\t\t \r\n\t }", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\n\tpublic void one() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "private stendhal() {\n\t}", "@Override\n\tprotected void update() {\n\t\t\n\t}", "@Override\n\t\t\tpublic void ic() {\n\t\t\t\t\n\t\t\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n public void init() {\n\n }", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\n\tpublic void debite() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "public contrustor(){\r\n\t}", "@Override\n\tprotected void initialize() {\n\n\t}", "@Override\r\n\tpublic void dispase() {\n\r\n\t}", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "@Override\n\tpublic void dtd() {\n\t\t\n\t}", "@Override\n\tprotected void logic() {\n\n\t}", "@Override\n\tprotected void lazyLoad() {\n\t\t\n\t}", "public void mo4359a() {\n }", "@Override\r\n\tprotected void initialize() {\n\r\n\t}", "@Override\n public void memoria() {\n \n }", "@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}", "private RepositorioAtendimentoPublicoHBM() {\r\t}", "@Override\n protected void initialize() \n {\n \n }", "@Override\r\n\tpublic void getProposition() {\n\r\n\t}", "@Override\n\tpublic void particular1() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n protected void prot() {\n }", "@Override\r\n\tpublic void init()\r\n\t{\n\t}", "@Override\n\tprotected void initValue()\n\t{\n\n\t}", "public void mo55254a() {\n }" ]
[ "0.6671074", "0.6567672", "0.6523024", "0.6481211", "0.6477082", "0.64591026", "0.64127725", "0.63762105", "0.6276059", "0.6254286", "0.623686", "0.6223679", "0.6201336", "0.61950207", "0.61950207", "0.61922914", "0.6186996", "0.6173591", "0.61327106", "0.61285484", "0.6080161", "0.6077022", "0.6041561", "0.6024072", "0.6020252", "0.59984857", "0.59672105", "0.59672105", "0.5965777", "0.59485507", "0.5940904", "0.59239364", "0.5910017", "0.5902906", "0.58946234", "0.5886006", "0.58839184", "0.58691067", "0.5857751", "0.58503544", "0.5847024", "0.58239377", "0.5810564", "0.5810089", "0.5806823", "0.5806823", "0.5800025", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5790187", "0.5789414", "0.5787092", "0.57844025", "0.57844025", "0.5774479", "0.5774479", "0.5774479", "0.5774479", "0.5774479", "0.5761362", "0.57596046", "0.57596046", "0.575025", "0.575025", "0.575025", "0.5747959", "0.57337177", "0.57337177", "0.57337177", "0.5721452", "0.5715831", "0.57142824", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.5711723", "0.57041645", "0.56991017", "0.5696783", "0.56881124", "0.56774884", "0.56734604", "0.56728", "0.56696945", "0.5661323", "0.5657007", "0.5655942", "0.5655942", "0.5655942", "0.56549734", "0.5654792", "0.5652974", "0.5650185" ]
0.0
-1
TODO Autogenerated method stub
@Override public void onClick(View v) { if(cb_show.isChecked()){ SharepreferenceUtil.write(JshWdjLdssIntroduceActivity.this, SharepreferenceUtil.fileName, "ldss_show", false); OpenActivityFinsh(JshWdjLdssSetActivity.class); }else{ SharepreferenceUtil.write(JshWdjLdssIntroduceActivity.this, SharepreferenceUtil.fileName, "ldss_show", true); OpenActivity(JshWdjLdssSetActivity.class); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExras() {\n\n\t}", "@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}", "@Override\n\tpublic void entrenar() {\n\t\t\n\t}", "@Override\n\tpublic void nadar() {\n\t\t\n\t}", "@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}", "@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}", "@Override\n\tprotected void interr() {\n\t}", "@Override\n\tpublic void emprestimo() {\n\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "@Override\n\tpublic void gravarBd() {\n\t\t\n\t}", "@Override\r\n\tpublic void rozmnozovat() {\n\t}", "@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}", "@Override\n protected void getExras() {\n }", "@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}", "@Override\n\tpublic void nefesAl() {\n\n\t}", "@Override\n\tpublic void ligar() {\n\t\t\n\t}", "@Override\n public void func_104112_b() {\n \n }", "@Override\n\tprotected void initdata() {\n\n\t}", "@Override\n\tpublic void nghe() {\n\n\t}", "@Override\n public void function()\n {\n }", "@Override\n public void function()\n {\n }", "public final void mo51373a() {\n }", "@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}", "@Override\n public void inizializza() {\n\n super.inizializza();\n }", "@Override\n\tprotected void initData() {\n\t\t\n\t}", "@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}", "@Override\n\tpublic void sacrifier() {\n\t\t\n\t}", "@Override\r\n\tprotected void InitData() {\n\t\t\r\n\t}", "public void designBasement() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}", "public void gored() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\r\n\t}", "@Override\n\tpublic void einkaufen() {\n\t}", "@Override\n protected void initialize() {\n\n \n }", "public void mo38117a() {\n }", "@Override\n\tprotected void getData() {\n\t\t\n\t}", "Constructor() {\r\n\t\t \r\n\t }", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\n\tpublic void one() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "private stendhal() {\n\t}", "@Override\n\tprotected void update() {\n\t\t\n\t}", "@Override\n\t\t\tpublic void ic() {\n\t\t\t\t\n\t\t\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n public void init() {\n\n }", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\n\tpublic void debite() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "public contrustor(){\r\n\t}", "@Override\n\tprotected void initialize() {\n\n\t}", "@Override\r\n\tpublic void dispase() {\n\r\n\t}", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "@Override\n\tpublic void dtd() {\n\t\t\n\t}", "@Override\n\tprotected void logic() {\n\n\t}", "@Override\n\tprotected void lazyLoad() {\n\t\t\n\t}", "public void mo4359a() {\n }", "@Override\r\n\tprotected void initialize() {\n\r\n\t}", "@Override\n public void memoria() {\n \n }", "@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}", "private RepositorioAtendimentoPublicoHBM() {\r\t}", "@Override\n protected void initialize() \n {\n \n }", "@Override\r\n\tpublic void getProposition() {\n\r\n\t}", "@Override\n\tpublic void particular1() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n protected void prot() {\n }", "@Override\r\n\tpublic void init()\r\n\t{\n\t}", "@Override\n\tprotected void initValue()\n\t{\n\n\t}", "public void mo55254a() {\n }" ]
[ "0.6671074", "0.6567672", "0.6523024", "0.6481211", "0.6477082", "0.64591026", "0.64127725", "0.63762105", "0.6276059", "0.6254286", "0.623686", "0.6223679", "0.6201336", "0.61950207", "0.61950207", "0.61922914", "0.6186996", "0.6173591", "0.61327106", "0.61285484", "0.6080161", "0.6077022", "0.6041561", "0.6024072", "0.6020252", "0.59984857", "0.59672105", "0.59672105", "0.5965777", "0.59485507", "0.5940904", "0.59239364", "0.5910017", "0.5902906", "0.58946234", "0.5886006", "0.58839184", "0.58691067", "0.5857751", "0.58503544", "0.5847024", "0.58239377", "0.5810564", "0.5810089", "0.5806823", "0.5806823", "0.5800025", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5790187", "0.5789414", "0.5787092", "0.57844025", "0.57844025", "0.5774479", "0.5774479", "0.5774479", "0.5774479", "0.5774479", "0.5761362", "0.57596046", "0.57596046", "0.575025", "0.575025", "0.575025", "0.5747959", "0.57337177", "0.57337177", "0.57337177", "0.5721452", "0.5715831", "0.57142824", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.5711723", "0.57041645", "0.56991017", "0.5696783", "0.56881124", "0.56774884", "0.56734604", "0.56728", "0.56696945", "0.5661323", "0.5657007", "0.5655942", "0.5655942", "0.5655942", "0.56549734", "0.5654792", "0.5652974", "0.5650185" ]
0.0
-1
TODO Autogenerated method stub
private void initData() { SetTopBarTitle(getString(R.string.os_jsh_wdj_add_ldss)); regFliter(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExras() {\n\n\t}", "@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}", "@Override\n\tpublic void entrenar() {\n\t\t\n\t}", "@Override\n\tpublic void nadar() {\n\t\t\n\t}", "@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}", "@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}", "@Override\n\tprotected void interr() {\n\t}", "@Override\n\tpublic void emprestimo() {\n\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "@Override\n\tpublic void gravarBd() {\n\t\t\n\t}", "@Override\r\n\tpublic void rozmnozovat() {\n\t}", "@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}", "@Override\n protected void getExras() {\n }", "@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}", "@Override\n\tpublic void nefesAl() {\n\n\t}", "@Override\n\tpublic void ligar() {\n\t\t\n\t}", "@Override\n public void func_104112_b() {\n \n }", "@Override\n\tprotected void initdata() {\n\n\t}", "@Override\n\tpublic void nghe() {\n\n\t}", "@Override\n public void function()\n {\n }", "@Override\n public void function()\n {\n }", "public final void mo51373a() {\n }", "@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}", "@Override\n public void inizializza() {\n\n super.inizializza();\n }", "@Override\n\tprotected void initData() {\n\t\t\n\t}", "@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}", "@Override\n\tpublic void sacrifier() {\n\t\t\n\t}", "@Override\r\n\tprotected void InitData() {\n\t\t\r\n\t}", "public void designBasement() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}", "public void gored() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\r\n\t}", "@Override\n\tpublic void einkaufen() {\n\t}", "@Override\n protected void initialize() {\n\n \n }", "public void mo38117a() {\n }", "@Override\n\tprotected void getData() {\n\t\t\n\t}", "Constructor() {\r\n\t\t \r\n\t }", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\n\tpublic void one() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "private stendhal() {\n\t}", "@Override\n\tprotected void update() {\n\t\t\n\t}", "@Override\n\t\t\tpublic void ic() {\n\t\t\t\t\n\t\t\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n public void init() {\n\n }", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\n\tpublic void debite() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "public contrustor(){\r\n\t}", "@Override\n\tprotected void initialize() {\n\n\t}", "@Override\r\n\tpublic void dispase() {\n\r\n\t}", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "@Override\n\tpublic void dtd() {\n\t\t\n\t}", "@Override\n\tprotected void logic() {\n\n\t}", "@Override\n\tprotected void lazyLoad() {\n\t\t\n\t}", "public void mo4359a() {\n }", "@Override\r\n\tprotected void initialize() {\n\r\n\t}", "@Override\n public void memoria() {\n \n }", "@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}", "private RepositorioAtendimentoPublicoHBM() {\r\t}", "@Override\n protected void initialize() \n {\n \n }", "@Override\r\n\tpublic void getProposition() {\n\r\n\t}", "@Override\n\tpublic void particular1() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n protected void prot() {\n }", "@Override\r\n\tpublic void init()\r\n\t{\n\t}", "@Override\n\tprotected void initValue()\n\t{\n\n\t}", "public void mo55254a() {\n }" ]
[ "0.6671074", "0.6567672", "0.6523024", "0.6481211", "0.6477082", "0.64591026", "0.64127725", "0.63762105", "0.6276059", "0.6254286", "0.623686", "0.6223679", "0.6201336", "0.61950207", "0.61950207", "0.61922914", "0.6186996", "0.6173591", "0.61327106", "0.61285484", "0.6080161", "0.6077022", "0.6041561", "0.6024072", "0.6020252", "0.59984857", "0.59672105", "0.59672105", "0.5965777", "0.59485507", "0.5940904", "0.59239364", "0.5910017", "0.5902906", "0.58946234", "0.5886006", "0.58839184", "0.58691067", "0.5857751", "0.58503544", "0.5847024", "0.58239377", "0.5810564", "0.5810089", "0.5806823", "0.5806823", "0.5800025", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5790187", "0.5789414", "0.5787092", "0.57844025", "0.57844025", "0.5774479", "0.5774479", "0.5774479", "0.5774479", "0.5774479", "0.5761362", "0.57596046", "0.57596046", "0.575025", "0.575025", "0.575025", "0.5747959", "0.57337177", "0.57337177", "0.57337177", "0.5721452", "0.5715831", "0.57142824", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.5711723", "0.57041645", "0.56991017", "0.5696783", "0.56881124", "0.56774884", "0.56734604", "0.56728", "0.56696945", "0.5661323", "0.5657007", "0.5655942", "0.5655942", "0.5655942", "0.56549734", "0.5654792", "0.5652974", "0.5650185" ]
0.0
-1
TODO Autogenerated method stub
private void regFliter() { IntentFilter filter = new IntentFilter(); filter.addAction(OsConstants.JSH.ADD_DEVICES_SUCCES); filter.addAction(OsConstants.JSH.SETTIING_WIFI_SUCCESS); registerReceiver(mReceiver, filter); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExras() {\n\n\t}", "@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}", "@Override\n\tpublic void entrenar() {\n\t\t\n\t}", "@Override\n\tpublic void nadar() {\n\t\t\n\t}", "@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}", "@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}", "@Override\n\tprotected void interr() {\n\t}", "@Override\n\tpublic void emprestimo() {\n\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "@Override\n\tpublic void gravarBd() {\n\t\t\n\t}", "@Override\r\n\tpublic void rozmnozovat() {\n\t}", "@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}", "@Override\n protected void getExras() {\n }", "@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}", "@Override\n\tpublic void nefesAl() {\n\n\t}", "@Override\n\tpublic void ligar() {\n\t\t\n\t}", "@Override\n public void func_104112_b() {\n \n }", "@Override\n\tprotected void initdata() {\n\n\t}", "@Override\n\tpublic void nghe() {\n\n\t}", "@Override\n public void function()\n {\n }", "@Override\n public void function()\n {\n }", "public final void mo51373a() {\n }", "@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}", "@Override\n public void inizializza() {\n\n super.inizializza();\n }", "@Override\n\tprotected void initData() {\n\t\t\n\t}", "@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}", "@Override\n\tpublic void sacrifier() {\n\t\t\n\t}", "@Override\r\n\tprotected void InitData() {\n\t\t\r\n\t}", "public void designBasement() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}", "public void gored() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\r\n\t}", "@Override\n\tpublic void einkaufen() {\n\t}", "@Override\n protected void initialize() {\n\n \n }", "public void mo38117a() {\n }", "@Override\n\tprotected void getData() {\n\t\t\n\t}", "Constructor() {\r\n\t\t \r\n\t }", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\n\tpublic void one() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "private stendhal() {\n\t}", "@Override\n\tprotected void update() {\n\t\t\n\t}", "@Override\n\t\t\tpublic void ic() {\n\t\t\t\t\n\t\t\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n public void init() {\n\n }", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\n\tpublic void debite() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "public contrustor(){\r\n\t}", "@Override\n\tprotected void initialize() {\n\n\t}", "@Override\r\n\tpublic void dispase() {\n\r\n\t}", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "@Override\n\tpublic void dtd() {\n\t\t\n\t}", "@Override\n\tprotected void logic() {\n\n\t}", "@Override\n\tprotected void lazyLoad() {\n\t\t\n\t}", "public void mo4359a() {\n }", "@Override\r\n\tprotected void initialize() {\n\r\n\t}", "@Override\n public void memoria() {\n \n }", "@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}", "private RepositorioAtendimentoPublicoHBM() {\r\t}", "@Override\n protected void initialize() \n {\n \n }", "@Override\r\n\tpublic void getProposition() {\n\r\n\t}", "@Override\n\tpublic void particular1() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n protected void prot() {\n }", "@Override\r\n\tpublic void init()\r\n\t{\n\t}", "@Override\n\tprotected void initValue()\n\t{\n\n\t}", "public void mo55254a() {\n }" ]
[ "0.6671074", "0.6567672", "0.6523024", "0.6481211", "0.6477082", "0.64591026", "0.64127725", "0.63762105", "0.6276059", "0.6254286", "0.623686", "0.6223679", "0.6201336", "0.61950207", "0.61950207", "0.61922914", "0.6186996", "0.6173591", "0.61327106", "0.61285484", "0.6080161", "0.6077022", "0.6041561", "0.6024072", "0.6020252", "0.59984857", "0.59672105", "0.59672105", "0.5965777", "0.59485507", "0.5940904", "0.59239364", "0.5910017", "0.5902906", "0.58946234", "0.5886006", "0.58839184", "0.58691067", "0.5857751", "0.58503544", "0.5847024", "0.58239377", "0.5810564", "0.5810089", "0.5806823", "0.5806823", "0.5800025", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5790187", "0.5789414", "0.5787092", "0.57844025", "0.57844025", "0.5774479", "0.5774479", "0.5774479", "0.5774479", "0.5774479", "0.5761362", "0.57596046", "0.57596046", "0.575025", "0.575025", "0.575025", "0.5747959", "0.57337177", "0.57337177", "0.57337177", "0.5721452", "0.5715831", "0.57142824", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.5711723", "0.57041645", "0.56991017", "0.5696783", "0.56881124", "0.56774884", "0.56734604", "0.56728", "0.56696945", "0.5661323", "0.5657007", "0.5655942", "0.5655942", "0.5655942", "0.56549734", "0.5654792", "0.5652974", "0.5650185" ]
0.0
-1
TODO Autogenerated method stub
@Override public void onReceive(Context context, Intent intent) { if (intent.getAction().equals(OsConstants.JSH.ADD_DEVICES_SUCCES) || intent.getAction().equals(OsConstants.JSH.SETTIING_WIFI_SUCCESS)) { finish(); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExras() {\n\n\t}", "@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}", "@Override\n\tpublic void entrenar() {\n\t\t\n\t}", "@Override\n\tpublic void nadar() {\n\t\t\n\t}", "@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}", "@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}", "@Override\n\tprotected void interr() {\n\t}", "@Override\n\tpublic void emprestimo() {\n\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "@Override\n\tpublic void gravarBd() {\n\t\t\n\t}", "@Override\r\n\tpublic void rozmnozovat() {\n\t}", "@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}", "@Override\n protected void getExras() {\n }", "@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}", "@Override\n\tpublic void nefesAl() {\n\n\t}", "@Override\n\tpublic void ligar() {\n\t\t\n\t}", "@Override\n public void func_104112_b() {\n \n }", "@Override\n\tprotected void initdata() {\n\n\t}", "@Override\n\tpublic void nghe() {\n\n\t}", "@Override\n public void function()\n {\n }", "@Override\n public void function()\n {\n }", "public final void mo51373a() {\n }", "@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}", "@Override\n public void inizializza() {\n\n super.inizializza();\n }", "@Override\n\tprotected void initData() {\n\t\t\n\t}", "@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}", "@Override\n\tpublic void sacrifier() {\n\t\t\n\t}", "@Override\r\n\tprotected void InitData() {\n\t\t\r\n\t}", "public void designBasement() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}", "public void gored() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\r\n\t}", "@Override\n\tpublic void einkaufen() {\n\t}", "@Override\n protected void initialize() {\n\n \n }", "public void mo38117a() {\n }", "@Override\n\tprotected void getData() {\n\t\t\n\t}", "Constructor() {\r\n\t\t \r\n\t }", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\n\tpublic void one() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "private stendhal() {\n\t}", "@Override\n\tprotected void update() {\n\t\t\n\t}", "@Override\n\t\t\tpublic void ic() {\n\t\t\t\t\n\t\t\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n public void init() {\n\n }", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\n\tpublic void debite() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "public contrustor(){\r\n\t}", "@Override\n\tprotected void initialize() {\n\n\t}", "@Override\r\n\tpublic void dispase() {\n\r\n\t}", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "@Override\n\tpublic void dtd() {\n\t\t\n\t}", "@Override\n\tprotected void logic() {\n\n\t}", "@Override\n\tprotected void lazyLoad() {\n\t\t\n\t}", "public void mo4359a() {\n }", "@Override\r\n\tprotected void initialize() {\n\r\n\t}", "@Override\n public void memoria() {\n \n }", "@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}", "private RepositorioAtendimentoPublicoHBM() {\r\t}", "@Override\n protected void initialize() \n {\n \n }", "@Override\r\n\tpublic void getProposition() {\n\r\n\t}", "@Override\n\tpublic void particular1() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n protected void prot() {\n }", "@Override\r\n\tpublic void init()\r\n\t{\n\t}", "@Override\n\tprotected void initValue()\n\t{\n\n\t}", "public void mo55254a() {\n }" ]
[ "0.6671074", "0.6567672", "0.6523024", "0.6481211", "0.6477082", "0.64591026", "0.64127725", "0.63762105", "0.6276059", "0.6254286", "0.623686", "0.6223679", "0.6201336", "0.61950207", "0.61950207", "0.61922914", "0.6186996", "0.6173591", "0.61327106", "0.61285484", "0.6080161", "0.6077022", "0.6041561", "0.6024072", "0.6020252", "0.59984857", "0.59672105", "0.59672105", "0.5965777", "0.59485507", "0.5940904", "0.59239364", "0.5910017", "0.5902906", "0.58946234", "0.5886006", "0.58839184", "0.58691067", "0.5857751", "0.58503544", "0.5847024", "0.58239377", "0.5810564", "0.5810089", "0.5806823", "0.5806823", "0.5800025", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5790187", "0.5789414", "0.5787092", "0.57844025", "0.57844025", "0.5774479", "0.5774479", "0.5774479", "0.5774479", "0.5774479", "0.5761362", "0.57596046", "0.57596046", "0.575025", "0.575025", "0.575025", "0.5747959", "0.57337177", "0.57337177", "0.57337177", "0.5721452", "0.5715831", "0.57142824", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.5711723", "0.57041645", "0.56991017", "0.5696783", "0.56881124", "0.56774884", "0.56734604", "0.56728", "0.56696945", "0.5661323", "0.5657007", "0.5655942", "0.5655942", "0.5655942", "0.56549734", "0.5654792", "0.5652974", "0.5650185" ]
0.0
-1
TODO Autogenerated method stub
@Override public List<BoardVo> boardSelectList(String keyword, int start, int end, String searchOption) { Map<String, Object> map = new HashMap<>(); map.put("keyword", keyword); map.put("searchOption", searchOption); map.put("start", start); map.put("end", end); return sqlSession.selectList(namespace +"boardSelectList", map); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExras() {\n\n\t}", "@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}", "@Override\n\tpublic void entrenar() {\n\t\t\n\t}", "@Override\n\tpublic void nadar() {\n\t\t\n\t}", "@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}", "@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}", "@Override\n\tprotected void interr() {\n\t}", "@Override\n\tpublic void emprestimo() {\n\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "@Override\n\tpublic void gravarBd() {\n\t\t\n\t}", "@Override\r\n\tpublic void rozmnozovat() {\n\t}", "@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}", "@Override\n protected void getExras() {\n }", "@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}", "@Override\n\tpublic void nefesAl() {\n\n\t}", "@Override\n\tpublic void ligar() {\n\t\t\n\t}", "@Override\n public void func_104112_b() {\n \n }", "@Override\n\tprotected void initdata() {\n\n\t}", "@Override\n\tpublic void nghe() {\n\n\t}", "@Override\n public void function()\n {\n }", "@Override\n public void function()\n {\n }", "public final void mo51373a() {\n }", "@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}", "@Override\n public void inizializza() {\n\n super.inizializza();\n }", "@Override\n\tprotected void initData() {\n\t\t\n\t}", "@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}", "@Override\n\tpublic void sacrifier() {\n\t\t\n\t}", "@Override\r\n\tprotected void InitData() {\n\t\t\r\n\t}", "public void designBasement() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}", "public void gored() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\r\n\t}", "@Override\n\tpublic void einkaufen() {\n\t}", "@Override\n protected void initialize() {\n\n \n }", "public void mo38117a() {\n }", "@Override\n\tprotected void getData() {\n\t\t\n\t}", "Constructor() {\r\n\t\t \r\n\t }", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\n\tpublic void one() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "private stendhal() {\n\t}", "@Override\n\tprotected void update() {\n\t\t\n\t}", "@Override\n\t\t\tpublic void ic() {\n\t\t\t\t\n\t\t\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n public void init() {\n\n }", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\n\tpublic void debite() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "public contrustor(){\r\n\t}", "@Override\n\tprotected void initialize() {\n\n\t}", "@Override\r\n\tpublic void dispase() {\n\r\n\t}", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "@Override\n\tpublic void dtd() {\n\t\t\n\t}", "@Override\n\tprotected void logic() {\n\n\t}", "@Override\n\tprotected void lazyLoad() {\n\t\t\n\t}", "public void mo4359a() {\n }", "@Override\r\n\tprotected void initialize() {\n\r\n\t}", "@Override\n public void memoria() {\n \n }", "@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}", "private RepositorioAtendimentoPublicoHBM() {\r\t}", "@Override\n protected void initialize() \n {\n \n }", "@Override\r\n\tpublic void getProposition() {\n\r\n\t}", "@Override\n\tpublic void particular1() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n protected void prot() {\n }", "@Override\r\n\tpublic void init()\r\n\t{\n\t}", "@Override\n\tprotected void initValue()\n\t{\n\n\t}", "public void mo55254a() {\n }" ]
[ "0.6671074", "0.6567672", "0.6523024", "0.6481211", "0.6477082", "0.64591026", "0.64127725", "0.63762105", "0.6276059", "0.6254286", "0.623686", "0.6223679", "0.6201336", "0.61950207", "0.61950207", "0.61922914", "0.6186996", "0.6173591", "0.61327106", "0.61285484", "0.6080161", "0.6077022", "0.6041561", "0.6024072", "0.6020252", "0.59984857", "0.59672105", "0.59672105", "0.5965777", "0.59485507", "0.5940904", "0.59239364", "0.5910017", "0.5902906", "0.58946234", "0.5886006", "0.58839184", "0.58691067", "0.5857751", "0.58503544", "0.5847024", "0.58239377", "0.5810564", "0.5810089", "0.5806823", "0.5806823", "0.5800025", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5790187", "0.5789414", "0.5787092", "0.57844025", "0.57844025", "0.5774479", "0.5774479", "0.5774479", "0.5774479", "0.5774479", "0.5761362", "0.57596046", "0.57596046", "0.575025", "0.575025", "0.575025", "0.5747959", "0.57337177", "0.57337177", "0.57337177", "0.5721452", "0.5715831", "0.57142824", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.5711723", "0.57041645", "0.56991017", "0.5696783", "0.56881124", "0.56774884", "0.56734604", "0.56728", "0.56696945", "0.5661323", "0.5657007", "0.5655942", "0.5655942", "0.5655942", "0.56549734", "0.5654792", "0.5652974", "0.5650185" ]
0.0
-1
TODO Autogenerated method stub
@Override public BoardVo boardSelectOne(int boardNo) { return sqlSession.selectOne(namespace +"boardSelectOne", boardNo); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExras() {\n\n\t}", "@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}", "@Override\n\tpublic void entrenar() {\n\t\t\n\t}", "@Override\n\tpublic void nadar() {\n\t\t\n\t}", "@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}", "@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}", "@Override\n\tprotected void interr() {\n\t}", "@Override\n\tpublic void emprestimo() {\n\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "@Override\n\tpublic void gravarBd() {\n\t\t\n\t}", "@Override\r\n\tpublic void rozmnozovat() {\n\t}", "@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}", "@Override\n protected void getExras() {\n }", "@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}", "@Override\n\tpublic void nefesAl() {\n\n\t}", "@Override\n\tpublic void ligar() {\n\t\t\n\t}", "@Override\n public void func_104112_b() {\n \n }", "@Override\n\tprotected void initdata() {\n\n\t}", "@Override\n\tpublic void nghe() {\n\n\t}", "@Override\n public void function()\n {\n }", "@Override\n public void function()\n {\n }", "public final void mo51373a() {\n }", "@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}", "@Override\n public void inizializza() {\n\n super.inizializza();\n }", "@Override\n\tprotected void initData() {\n\t\t\n\t}", "@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}", "@Override\n\tpublic void sacrifier() {\n\t\t\n\t}", "@Override\r\n\tprotected void InitData() {\n\t\t\r\n\t}", "public void designBasement() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}", "public void gored() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\r\n\t}", "@Override\n\tpublic void einkaufen() {\n\t}", "@Override\n protected void initialize() {\n\n \n }", "public void mo38117a() {\n }", "@Override\n\tprotected void getData() {\n\t\t\n\t}", "Constructor() {\r\n\t\t \r\n\t }", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\n\tpublic void one() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "private stendhal() {\n\t}", "@Override\n\tprotected void update() {\n\t\t\n\t}", "@Override\n\t\t\tpublic void ic() {\n\t\t\t\t\n\t\t\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n public void init() {\n\n }", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\n\tpublic void debite() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "public contrustor(){\r\n\t}", "@Override\n\tprotected void initialize() {\n\n\t}", "@Override\r\n\tpublic void dispase() {\n\r\n\t}", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "@Override\n\tpublic void dtd() {\n\t\t\n\t}", "@Override\n\tprotected void logic() {\n\n\t}", "@Override\n\tprotected void lazyLoad() {\n\t\t\n\t}", "public void mo4359a() {\n }", "@Override\r\n\tprotected void initialize() {\n\r\n\t}", "@Override\n public void memoria() {\n \n }", "@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}", "private RepositorioAtendimentoPublicoHBM() {\r\t}", "@Override\n protected void initialize() \n {\n \n }", "@Override\r\n\tpublic void getProposition() {\n\r\n\t}", "@Override\n\tpublic void particular1() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n protected void prot() {\n }", "@Override\r\n\tpublic void init()\r\n\t{\n\t}", "@Override\n\tprotected void initValue()\n\t{\n\n\t}", "public void mo55254a() {\n }" ]
[ "0.6671074", "0.6567672", "0.6523024", "0.6481211", "0.6477082", "0.64591026", "0.64127725", "0.63762105", "0.6276059", "0.6254286", "0.623686", "0.6223679", "0.6201336", "0.61950207", "0.61950207", "0.61922914", "0.6186996", "0.6173591", "0.61327106", "0.61285484", "0.6080161", "0.6077022", "0.6041561", "0.6024072", "0.6020252", "0.59984857", "0.59672105", "0.59672105", "0.5965777", "0.59485507", "0.5940904", "0.59239364", "0.5910017", "0.5902906", "0.58946234", "0.5886006", "0.58839184", "0.58691067", "0.5857751", "0.58503544", "0.5847024", "0.58239377", "0.5810564", "0.5810089", "0.5806823", "0.5806823", "0.5800025", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5790187", "0.5789414", "0.5787092", "0.57844025", "0.57844025", "0.5774479", "0.5774479", "0.5774479", "0.5774479", "0.5774479", "0.5761362", "0.57596046", "0.57596046", "0.575025", "0.575025", "0.575025", "0.5747959", "0.57337177", "0.57337177", "0.57337177", "0.5721452", "0.5715831", "0.57142824", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.5711723", "0.57041645", "0.56991017", "0.5696783", "0.56881124", "0.56774884", "0.56734604", "0.56728", "0.56696945", "0.5661323", "0.5657007", "0.5655942", "0.5655942", "0.5655942", "0.56549734", "0.5654792", "0.5652974", "0.5650185" ]
0.0
-1
TODO Autogenerated method stub
@Override public void boardInsertOne(BoardVo boardVo) { sqlSession.insert(namespace +"boardInsertOne", boardVo); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExras() {\n\n\t}", "@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}", "@Override\n\tpublic void entrenar() {\n\t\t\n\t}", "@Override\n\tpublic void nadar() {\n\t\t\n\t}", "@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}", "@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}", "@Override\n\tprotected void interr() {\n\t}", "@Override\n\tpublic void emprestimo() {\n\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "@Override\n\tpublic void gravarBd() {\n\t\t\n\t}", "@Override\r\n\tpublic void rozmnozovat() {\n\t}", "@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}", "@Override\n protected void getExras() {\n }", "@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}", "@Override\n\tpublic void nefesAl() {\n\n\t}", "@Override\n\tpublic void ligar() {\n\t\t\n\t}", "@Override\n public void func_104112_b() {\n \n }", "@Override\n\tprotected void initdata() {\n\n\t}", "@Override\n\tpublic void nghe() {\n\n\t}", "@Override\n public void function()\n {\n }", "@Override\n public void function()\n {\n }", "public final void mo51373a() {\n }", "@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}", "@Override\n public void inizializza() {\n\n super.inizializza();\n }", "@Override\n\tprotected void initData() {\n\t\t\n\t}", "@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}", "@Override\n\tpublic void sacrifier() {\n\t\t\n\t}", "@Override\r\n\tprotected void InitData() {\n\t\t\r\n\t}", "public void designBasement() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}", "public void gored() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\r\n\t}", "@Override\n\tpublic void einkaufen() {\n\t}", "@Override\n protected void initialize() {\n\n \n }", "public void mo38117a() {\n }", "@Override\n\tprotected void getData() {\n\t\t\n\t}", "Constructor() {\r\n\t\t \r\n\t }", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\n\tpublic void one() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "private stendhal() {\n\t}", "@Override\n\tprotected void update() {\n\t\t\n\t}", "@Override\n\t\t\tpublic void ic() {\n\t\t\t\t\n\t\t\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n public void init() {\n\n }", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\n\tpublic void debite() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "public contrustor(){\r\n\t}", "@Override\n\tprotected void initialize() {\n\n\t}", "@Override\r\n\tpublic void dispase() {\n\r\n\t}", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "@Override\n\tpublic void dtd() {\n\t\t\n\t}", "@Override\n\tprotected void logic() {\n\n\t}", "@Override\n\tprotected void lazyLoad() {\n\t\t\n\t}", "public void mo4359a() {\n }", "@Override\r\n\tprotected void initialize() {\n\r\n\t}", "@Override\n public void memoria() {\n \n }", "@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}", "private RepositorioAtendimentoPublicoHBM() {\r\t}", "@Override\n protected void initialize() \n {\n \n }", "@Override\r\n\tpublic void getProposition() {\n\r\n\t}", "@Override\n\tpublic void particular1() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n protected void prot() {\n }", "@Override\r\n\tpublic void init()\r\n\t{\n\t}", "@Override\n\tprotected void initValue()\n\t{\n\n\t}", "public void mo55254a() {\n }" ]
[ "0.6671074", "0.6567672", "0.6523024", "0.6481211", "0.6477082", "0.64591026", "0.64127725", "0.63762105", "0.6276059", "0.6254286", "0.623686", "0.6223679", "0.6201336", "0.61950207", "0.61950207", "0.61922914", "0.6186996", "0.6173591", "0.61327106", "0.61285484", "0.6080161", "0.6077022", "0.6041561", "0.6024072", "0.6020252", "0.59984857", "0.59672105", "0.59672105", "0.5965777", "0.59485507", "0.5940904", "0.59239364", "0.5910017", "0.5902906", "0.58946234", "0.5886006", "0.58839184", "0.58691067", "0.5857751", "0.58503544", "0.5847024", "0.58239377", "0.5810564", "0.5810089", "0.5806823", "0.5806823", "0.5800025", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5790187", "0.5789414", "0.5787092", "0.57844025", "0.57844025", "0.5774479", "0.5774479", "0.5774479", "0.5774479", "0.5774479", "0.5761362", "0.57596046", "0.57596046", "0.575025", "0.575025", "0.575025", "0.5747959", "0.57337177", "0.57337177", "0.57337177", "0.5721452", "0.5715831", "0.57142824", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.5711723", "0.57041645", "0.56991017", "0.5696783", "0.56881124", "0.56774884", "0.56734604", "0.56728", "0.56696945", "0.5661323", "0.5657007", "0.5655942", "0.5655942", "0.5655942", "0.56549734", "0.5654792", "0.5652974", "0.5650185" ]
0.0
-1
TODO Autogenerated method stub
@Override public void boardUpdateOne(BoardVo boardVo) { sqlSession.update(namespace +"boardUpdateOne", boardVo ); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExras() {\n\n\t}", "@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}", "@Override\n\tpublic void entrenar() {\n\t\t\n\t}", "@Override\n\tpublic void nadar() {\n\t\t\n\t}", "@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}", "@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}", "@Override\n\tprotected void interr() {\n\t}", "@Override\n\tpublic void emprestimo() {\n\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "@Override\n\tpublic void gravarBd() {\n\t\t\n\t}", "@Override\r\n\tpublic void rozmnozovat() {\n\t}", "@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}", "@Override\n protected void getExras() {\n }", "@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}", "@Override\n\tpublic void nefesAl() {\n\n\t}", "@Override\n\tpublic void ligar() {\n\t\t\n\t}", "@Override\n public void func_104112_b() {\n \n }", "@Override\n\tprotected void initdata() {\n\n\t}", "@Override\n\tpublic void nghe() {\n\n\t}", "@Override\n public void function()\n {\n }", "@Override\n public void function()\n {\n }", "public final void mo51373a() {\n }", "@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}", "@Override\n public void inizializza() {\n\n super.inizializza();\n }", "@Override\n\tprotected void initData() {\n\t\t\n\t}", "@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}", "@Override\n\tpublic void sacrifier() {\n\t\t\n\t}", "@Override\r\n\tprotected void InitData() {\n\t\t\r\n\t}", "public void designBasement() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}", "public void gored() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\r\n\t}", "@Override\n\tpublic void einkaufen() {\n\t}", "@Override\n protected void initialize() {\n\n \n }", "public void mo38117a() {\n }", "@Override\n\tprotected void getData() {\n\t\t\n\t}", "Constructor() {\r\n\t\t \r\n\t }", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\n\tpublic void one() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "private stendhal() {\n\t}", "@Override\n\tprotected void update() {\n\t\t\n\t}", "@Override\n\t\t\tpublic void ic() {\n\t\t\t\t\n\t\t\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n public void init() {\n\n }", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\n\tpublic void debite() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "public contrustor(){\r\n\t}", "@Override\n\tprotected void initialize() {\n\n\t}", "@Override\r\n\tpublic void dispase() {\n\r\n\t}", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "@Override\n\tpublic void dtd() {\n\t\t\n\t}", "@Override\n\tprotected void logic() {\n\n\t}", "@Override\n\tprotected void lazyLoad() {\n\t\t\n\t}", "public void mo4359a() {\n }", "@Override\r\n\tprotected void initialize() {\n\r\n\t}", "@Override\n public void memoria() {\n \n }", "@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}", "private RepositorioAtendimentoPublicoHBM() {\r\t}", "@Override\n protected void initialize() \n {\n \n }", "@Override\r\n\tpublic void getProposition() {\n\r\n\t}", "@Override\n\tpublic void particular1() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n protected void prot() {\n }", "@Override\r\n\tpublic void init()\r\n\t{\n\t}", "@Override\n\tprotected void initValue()\n\t{\n\n\t}", "public void mo55254a() {\n }" ]
[ "0.6671074", "0.6567672", "0.6523024", "0.6481211", "0.6477082", "0.64591026", "0.64127725", "0.63762105", "0.6276059", "0.6254286", "0.623686", "0.6223679", "0.6201336", "0.61950207", "0.61950207", "0.61922914", "0.6186996", "0.6173591", "0.61327106", "0.61285484", "0.6080161", "0.6077022", "0.6041561", "0.6024072", "0.6020252", "0.59984857", "0.59672105", "0.59672105", "0.5965777", "0.59485507", "0.5940904", "0.59239364", "0.5910017", "0.5902906", "0.58946234", "0.5886006", "0.58839184", "0.58691067", "0.5857751", "0.58503544", "0.5847024", "0.58239377", "0.5810564", "0.5810089", "0.5806823", "0.5806823", "0.5800025", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5790187", "0.5789414", "0.5787092", "0.57844025", "0.57844025", "0.5774479", "0.5774479", "0.5774479", "0.5774479", "0.5774479", "0.5761362", "0.57596046", "0.57596046", "0.575025", "0.575025", "0.575025", "0.5747959", "0.57337177", "0.57337177", "0.57337177", "0.5721452", "0.5715831", "0.57142824", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.5711723", "0.57041645", "0.56991017", "0.5696783", "0.56881124", "0.56774884", "0.56734604", "0.56728", "0.56696945", "0.5661323", "0.5657007", "0.5655942", "0.5655942", "0.5655942", "0.56549734", "0.5654792", "0.5652974", "0.5650185" ]
0.0
-1
TODO Autogenerated method stub
@Override public void boardDelete(int boardNo) { sqlSession.delete(namespace +"boardDelete", boardNo); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExras() {\n\n\t}", "@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}", "@Override\n\tpublic void entrenar() {\n\t\t\n\t}", "@Override\n\tpublic void nadar() {\n\t\t\n\t}", "@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}", "@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}", "@Override\n\tprotected void interr() {\n\t}", "@Override\n\tpublic void emprestimo() {\n\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "@Override\n\tpublic void gravarBd() {\n\t\t\n\t}", "@Override\r\n\tpublic void rozmnozovat() {\n\t}", "@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}", "@Override\n protected void getExras() {\n }", "@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}", "@Override\n\tpublic void nefesAl() {\n\n\t}", "@Override\n\tpublic void ligar() {\n\t\t\n\t}", "@Override\n public void func_104112_b() {\n \n }", "@Override\n\tprotected void initdata() {\n\n\t}", "@Override\n\tpublic void nghe() {\n\n\t}", "@Override\n public void function()\n {\n }", "@Override\n public void function()\n {\n }", "public final void mo51373a() {\n }", "@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}", "@Override\n public void inizializza() {\n\n super.inizializza();\n }", "@Override\n\tprotected void initData() {\n\t\t\n\t}", "@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}", "@Override\n\tpublic void sacrifier() {\n\t\t\n\t}", "@Override\r\n\tprotected void InitData() {\n\t\t\r\n\t}", "public void designBasement() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}", "public void gored() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\r\n\t}", "@Override\n\tpublic void einkaufen() {\n\t}", "@Override\n protected void initialize() {\n\n \n }", "public void mo38117a() {\n }", "@Override\n\tprotected void getData() {\n\t\t\n\t}", "Constructor() {\r\n\t\t \r\n\t }", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\n\tpublic void one() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "private stendhal() {\n\t}", "@Override\n\tprotected void update() {\n\t\t\n\t}", "@Override\n\t\t\tpublic void ic() {\n\t\t\t\t\n\t\t\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n public void init() {\n\n }", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\n\tpublic void debite() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "public contrustor(){\r\n\t}", "@Override\n\tprotected void initialize() {\n\n\t}", "@Override\r\n\tpublic void dispase() {\n\r\n\t}", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "@Override\n\tpublic void dtd() {\n\t\t\n\t}", "@Override\n\tprotected void logic() {\n\n\t}", "@Override\n\tprotected void lazyLoad() {\n\t\t\n\t}", "public void mo4359a() {\n }", "@Override\r\n\tprotected void initialize() {\n\r\n\t}", "@Override\n public void memoria() {\n \n }", "@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}", "private RepositorioAtendimentoPublicoHBM() {\r\t}", "@Override\n protected void initialize() \n {\n \n }", "@Override\r\n\tpublic void getProposition() {\n\r\n\t}", "@Override\n\tpublic void particular1() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n protected void prot() {\n }", "@Override\r\n\tpublic void init()\r\n\t{\n\t}", "@Override\n\tprotected void initValue()\n\t{\n\n\t}", "public void mo55254a() {\n }" ]
[ "0.6671074", "0.6567672", "0.6523024", "0.6481211", "0.6477082", "0.64591026", "0.64127725", "0.63762105", "0.6276059", "0.6254286", "0.623686", "0.6223679", "0.6201336", "0.61950207", "0.61950207", "0.61922914", "0.6186996", "0.6173591", "0.61327106", "0.61285484", "0.6080161", "0.6077022", "0.6041561", "0.6024072", "0.6020252", "0.59984857", "0.59672105", "0.59672105", "0.5965777", "0.59485507", "0.5940904", "0.59239364", "0.5910017", "0.5902906", "0.58946234", "0.5886006", "0.58839184", "0.58691067", "0.5857751", "0.58503544", "0.5847024", "0.58239377", "0.5810564", "0.5810089", "0.5806823", "0.5806823", "0.5800025", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5790187", "0.5789414", "0.5787092", "0.57844025", "0.57844025", "0.5774479", "0.5774479", "0.5774479", "0.5774479", "0.5774479", "0.5761362", "0.57596046", "0.57596046", "0.575025", "0.575025", "0.575025", "0.5747959", "0.57337177", "0.57337177", "0.57337177", "0.5721452", "0.5715831", "0.57142824", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.5711723", "0.57041645", "0.56991017", "0.5696783", "0.56881124", "0.56774884", "0.56734604", "0.56728", "0.56696945", "0.5661323", "0.5657007", "0.5655942", "0.5655942", "0.5655942", "0.56549734", "0.5654792", "0.5652974", "0.5650185" ]
0.0
-1
TODO Autogenerated method stub
@Override public void boardUpdateRecommendUp(int boardNo) { sqlSession.update(namespace +"boardUpdateRecommendUp", boardNo); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExras() {\n\n\t}", "@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}", "@Override\n\tpublic void entrenar() {\n\t\t\n\t}", "@Override\n\tpublic void nadar() {\n\t\t\n\t}", "@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}", "@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}", "@Override\n\tprotected void interr() {\n\t}", "@Override\n\tpublic void emprestimo() {\n\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "@Override\n\tpublic void gravarBd() {\n\t\t\n\t}", "@Override\r\n\tpublic void rozmnozovat() {\n\t}", "@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}", "@Override\n protected void getExras() {\n }", "@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}", "@Override\n\tpublic void nefesAl() {\n\n\t}", "@Override\n\tpublic void ligar() {\n\t\t\n\t}", "@Override\n public void func_104112_b() {\n \n }", "@Override\n\tprotected void initdata() {\n\n\t}", "@Override\n\tpublic void nghe() {\n\n\t}", "@Override\n public void function()\n {\n }", "@Override\n public void function()\n {\n }", "public final void mo51373a() {\n }", "@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}", "@Override\n public void inizializza() {\n\n super.inizializza();\n }", "@Override\n\tprotected void initData() {\n\t\t\n\t}", "@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}", "@Override\n\tpublic void sacrifier() {\n\t\t\n\t}", "@Override\r\n\tprotected void InitData() {\n\t\t\r\n\t}", "public void designBasement() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}", "public void gored() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\r\n\t}", "@Override\n\tpublic void einkaufen() {\n\t}", "@Override\n protected void initialize() {\n\n \n }", "public void mo38117a() {\n }", "@Override\n\tprotected void getData() {\n\t\t\n\t}", "Constructor() {\r\n\t\t \r\n\t }", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\n\tpublic void one() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "private stendhal() {\n\t}", "@Override\n\tprotected void update() {\n\t\t\n\t}", "@Override\n\t\t\tpublic void ic() {\n\t\t\t\t\n\t\t\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n public void init() {\n\n }", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\n\tpublic void debite() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "public contrustor(){\r\n\t}", "@Override\n\tprotected void initialize() {\n\n\t}", "@Override\r\n\tpublic void dispase() {\n\r\n\t}", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "@Override\n\tpublic void dtd() {\n\t\t\n\t}", "@Override\n\tprotected void logic() {\n\n\t}", "@Override\n\tprotected void lazyLoad() {\n\t\t\n\t}", "public void mo4359a() {\n }", "@Override\r\n\tprotected void initialize() {\n\r\n\t}", "@Override\n public void memoria() {\n \n }", "@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}", "private RepositorioAtendimentoPublicoHBM() {\r\t}", "@Override\n protected void initialize() \n {\n \n }", "@Override\r\n\tpublic void getProposition() {\n\r\n\t}", "@Override\n\tpublic void particular1() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n protected void prot() {\n }", "@Override\r\n\tpublic void init()\r\n\t{\n\t}", "@Override\n\tprotected void initValue()\n\t{\n\n\t}", "public void mo55254a() {\n }" ]
[ "0.6671074", "0.6567672", "0.6523024", "0.6481211", "0.6477082", "0.64591026", "0.64127725", "0.63762105", "0.6276059", "0.6254286", "0.623686", "0.6223679", "0.6201336", "0.61950207", "0.61950207", "0.61922914", "0.6186996", "0.6173591", "0.61327106", "0.61285484", "0.6080161", "0.6077022", "0.6041561", "0.6024072", "0.6020252", "0.59984857", "0.59672105", "0.59672105", "0.5965777", "0.59485507", "0.5940904", "0.59239364", "0.5910017", "0.5902906", "0.58946234", "0.5886006", "0.58839184", "0.58691067", "0.5857751", "0.58503544", "0.5847024", "0.58239377", "0.5810564", "0.5810089", "0.5806823", "0.5806823", "0.5800025", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5790187", "0.5789414", "0.5787092", "0.57844025", "0.57844025", "0.5774479", "0.5774479", "0.5774479", "0.5774479", "0.5774479", "0.5761362", "0.57596046", "0.57596046", "0.575025", "0.575025", "0.575025", "0.5747959", "0.57337177", "0.57337177", "0.57337177", "0.5721452", "0.5715831", "0.57142824", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.5711723", "0.57041645", "0.56991017", "0.5696783", "0.56881124", "0.56774884", "0.56734604", "0.56728", "0.56696945", "0.5661323", "0.5657007", "0.5655942", "0.5655942", "0.5655942", "0.56549734", "0.5654792", "0.5652974", "0.5650185" ]
0.0
-1
TODO Autogenerated method stub
@Override public void boardUpdateRecommendDown(int boardNo) { sqlSession.update(namespace +"boardUpdateRecommendDown", boardNo); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExras() {\n\n\t}", "@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}", "@Override\n\tpublic void entrenar() {\n\t\t\n\t}", "@Override\n\tpublic void nadar() {\n\t\t\n\t}", "@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}", "@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}", "@Override\n\tprotected void interr() {\n\t}", "@Override\n\tpublic void emprestimo() {\n\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "@Override\n\tpublic void gravarBd() {\n\t\t\n\t}", "@Override\r\n\tpublic void rozmnozovat() {\n\t}", "@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}", "@Override\n protected void getExras() {\n }", "@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}", "@Override\n\tpublic void nefesAl() {\n\n\t}", "@Override\n\tpublic void ligar() {\n\t\t\n\t}", "@Override\n public void func_104112_b() {\n \n }", "@Override\n\tprotected void initdata() {\n\n\t}", "@Override\n\tpublic void nghe() {\n\n\t}", "@Override\n public void function()\n {\n }", "@Override\n public void function()\n {\n }", "public final void mo51373a() {\n }", "@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}", "@Override\n public void inizializza() {\n\n super.inizializza();\n }", "@Override\n\tprotected void initData() {\n\t\t\n\t}", "@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}", "@Override\n\tpublic void sacrifier() {\n\t\t\n\t}", "@Override\r\n\tprotected void InitData() {\n\t\t\r\n\t}", "public void designBasement() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}", "public void gored() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\r\n\t}", "@Override\n\tpublic void einkaufen() {\n\t}", "@Override\n protected void initialize() {\n\n \n }", "public void mo38117a() {\n }", "@Override\n\tprotected void getData() {\n\t\t\n\t}", "Constructor() {\r\n\t\t \r\n\t }", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\n\tpublic void one() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "private stendhal() {\n\t}", "@Override\n\tprotected void update() {\n\t\t\n\t}", "@Override\n\t\t\tpublic void ic() {\n\t\t\t\t\n\t\t\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n public void init() {\n\n }", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\n\tpublic void debite() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "public contrustor(){\r\n\t}", "@Override\n\tprotected void initialize() {\n\n\t}", "@Override\r\n\tpublic void dispase() {\n\r\n\t}", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "@Override\n\tpublic void dtd() {\n\t\t\n\t}", "@Override\n\tprotected void logic() {\n\n\t}", "@Override\n\tprotected void lazyLoad() {\n\t\t\n\t}", "public void mo4359a() {\n }", "@Override\r\n\tprotected void initialize() {\n\r\n\t}", "@Override\n public void memoria() {\n \n }", "@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}", "private RepositorioAtendimentoPublicoHBM() {\r\t}", "@Override\n protected void initialize() \n {\n \n }", "@Override\r\n\tpublic void getProposition() {\n\r\n\t}", "@Override\n\tpublic void particular1() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n protected void prot() {\n }", "@Override\r\n\tpublic void init()\r\n\t{\n\t}", "@Override\n\tprotected void initValue()\n\t{\n\n\t}", "public void mo55254a() {\n }" ]
[ "0.6671074", "0.6567672", "0.6523024", "0.6481211", "0.6477082", "0.64591026", "0.64127725", "0.63762105", "0.6276059", "0.6254286", "0.623686", "0.6223679", "0.6201336", "0.61950207", "0.61950207", "0.61922914", "0.6186996", "0.6173591", "0.61327106", "0.61285484", "0.6080161", "0.6077022", "0.6041561", "0.6024072", "0.6020252", "0.59984857", "0.59672105", "0.59672105", "0.5965777", "0.59485507", "0.5940904", "0.59239364", "0.5910017", "0.5902906", "0.58946234", "0.5886006", "0.58839184", "0.58691067", "0.5857751", "0.58503544", "0.5847024", "0.58239377", "0.5810564", "0.5810089", "0.5806823", "0.5806823", "0.5800025", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5790187", "0.5789414", "0.5787092", "0.57844025", "0.57844025", "0.5774479", "0.5774479", "0.5774479", "0.5774479", "0.5774479", "0.5761362", "0.57596046", "0.57596046", "0.575025", "0.575025", "0.575025", "0.5747959", "0.57337177", "0.57337177", "0.57337177", "0.5721452", "0.5715831", "0.57142824", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.5711723", "0.57041645", "0.56991017", "0.5696783", "0.56881124", "0.56774884", "0.56734604", "0.56728", "0.56696945", "0.5661323", "0.5657007", "0.5655942", "0.5655942", "0.5655942", "0.56549734", "0.5654792", "0.5652974", "0.5650185" ]
0.0
-1
TODO Autogenerated method stub
@Override public HitsVo hitsSelectOne(Map<String, Object> map) { return sqlSession.selectOne(namespace + "hitsSelectOne", map); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExras() {\n\n\t}", "@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}", "@Override\n\tpublic void entrenar() {\n\t\t\n\t}", "@Override\n\tpublic void nadar() {\n\t\t\n\t}", "@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}", "@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}", "@Override\n\tprotected void interr() {\n\t}", "@Override\n\tpublic void emprestimo() {\n\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "@Override\n\tpublic void gravarBd() {\n\t\t\n\t}", "@Override\r\n\tpublic void rozmnozovat() {\n\t}", "@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}", "@Override\n protected void getExras() {\n }", "@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}", "@Override\n\tpublic void nefesAl() {\n\n\t}", "@Override\n\tpublic void ligar() {\n\t\t\n\t}", "@Override\n public void func_104112_b() {\n \n }", "@Override\n\tprotected void initdata() {\n\n\t}", "@Override\n\tpublic void nghe() {\n\n\t}", "@Override\n public void function()\n {\n }", "@Override\n public void function()\n {\n }", "public final void mo51373a() {\n }", "@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}", "@Override\n public void inizializza() {\n\n super.inizializza();\n }", "@Override\n\tprotected void initData() {\n\t\t\n\t}", "@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}", "@Override\n\tpublic void sacrifier() {\n\t\t\n\t}", "@Override\r\n\tprotected void InitData() {\n\t\t\r\n\t}", "public void designBasement() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}", "public void gored() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\r\n\t}", "@Override\n\tpublic void einkaufen() {\n\t}", "@Override\n protected void initialize() {\n\n \n }", "public void mo38117a() {\n }", "@Override\n\tprotected void getData() {\n\t\t\n\t}", "Constructor() {\r\n\t\t \r\n\t }", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\n\tpublic void one() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "private stendhal() {\n\t}", "@Override\n\tprotected void update() {\n\t\t\n\t}", "@Override\n\t\t\tpublic void ic() {\n\t\t\t\t\n\t\t\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n public void init() {\n\n }", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\n\tpublic void debite() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "public contrustor(){\r\n\t}", "@Override\n\tprotected void initialize() {\n\n\t}", "@Override\r\n\tpublic void dispase() {\n\r\n\t}", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "@Override\n\tpublic void dtd() {\n\t\t\n\t}", "@Override\n\tprotected void logic() {\n\n\t}", "@Override\n\tprotected void lazyLoad() {\n\t\t\n\t}", "public void mo4359a() {\n }", "@Override\r\n\tprotected void initialize() {\n\r\n\t}", "@Override\n public void memoria() {\n \n }", "@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}", "private RepositorioAtendimentoPublicoHBM() {\r\t}", "@Override\n protected void initialize() \n {\n \n }", "@Override\r\n\tpublic void getProposition() {\n\r\n\t}", "@Override\n\tpublic void particular1() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n protected void prot() {\n }", "@Override\r\n\tpublic void init()\r\n\t{\n\t}", "@Override\n\tprotected void initValue()\n\t{\n\n\t}", "public void mo55254a() {\n }" ]
[ "0.6671074", "0.6567672", "0.6523024", "0.6481211", "0.6477082", "0.64591026", "0.64127725", "0.63762105", "0.6276059", "0.6254286", "0.623686", "0.6223679", "0.6201336", "0.61950207", "0.61950207", "0.61922914", "0.6186996", "0.6173591", "0.61327106", "0.61285484", "0.6080161", "0.6077022", "0.6041561", "0.6024072", "0.6020252", "0.59984857", "0.59672105", "0.59672105", "0.5965777", "0.59485507", "0.5940904", "0.59239364", "0.5910017", "0.5902906", "0.58946234", "0.5886006", "0.58839184", "0.58691067", "0.5857751", "0.58503544", "0.5847024", "0.58239377", "0.5810564", "0.5810089", "0.5806823", "0.5806823", "0.5800025", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5790187", "0.5789414", "0.5787092", "0.57844025", "0.57844025", "0.5774479", "0.5774479", "0.5774479", "0.5774479", "0.5774479", "0.5761362", "0.57596046", "0.57596046", "0.575025", "0.575025", "0.575025", "0.5747959", "0.57337177", "0.57337177", "0.57337177", "0.5721452", "0.5715831", "0.57142824", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.5711723", "0.57041645", "0.56991017", "0.5696783", "0.56881124", "0.56774884", "0.56734604", "0.56728", "0.56696945", "0.5661323", "0.5657007", "0.5655942", "0.5655942", "0.5655942", "0.56549734", "0.5654792", "0.5652974", "0.5650185" ]
0.0
-1
TODO Autogenerated method stub
@Override public void boardUpdateHitsUp(int boardNo) { sqlSession.update(namespace +"boardUpdateHitsUp", boardNo); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExras() {\n\n\t}", "@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}", "@Override\n\tpublic void entrenar() {\n\t\t\n\t}", "@Override\n\tpublic void nadar() {\n\t\t\n\t}", "@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}", "@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}", "@Override\n\tprotected void interr() {\n\t}", "@Override\n\tpublic void emprestimo() {\n\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "@Override\n\tpublic void gravarBd() {\n\t\t\n\t}", "@Override\r\n\tpublic void rozmnozovat() {\n\t}", "@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}", "@Override\n protected void getExras() {\n }", "@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}", "@Override\n\tpublic void nefesAl() {\n\n\t}", "@Override\n\tpublic void ligar() {\n\t\t\n\t}", "@Override\n public void func_104112_b() {\n \n }", "@Override\n\tprotected void initdata() {\n\n\t}", "@Override\n\tpublic void nghe() {\n\n\t}", "@Override\n public void function()\n {\n }", "@Override\n public void function()\n {\n }", "public final void mo51373a() {\n }", "@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}", "@Override\n public void inizializza() {\n\n super.inizializza();\n }", "@Override\n\tprotected void initData() {\n\t\t\n\t}", "@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}", "@Override\n\tpublic void sacrifier() {\n\t\t\n\t}", "@Override\r\n\tprotected void InitData() {\n\t\t\r\n\t}", "public void designBasement() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}", "public void gored() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\r\n\t}", "@Override\n\tpublic void einkaufen() {\n\t}", "@Override\n protected void initialize() {\n\n \n }", "public void mo38117a() {\n }", "@Override\n\tprotected void getData() {\n\t\t\n\t}", "Constructor() {\r\n\t\t \r\n\t }", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\n\tpublic void one() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "private stendhal() {\n\t}", "@Override\n\tprotected void update() {\n\t\t\n\t}", "@Override\n\t\t\tpublic void ic() {\n\t\t\t\t\n\t\t\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n public void init() {\n\n }", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\n\tpublic void debite() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "public contrustor(){\r\n\t}", "@Override\n\tprotected void initialize() {\n\n\t}", "@Override\r\n\tpublic void dispase() {\n\r\n\t}", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "@Override\n\tpublic void dtd() {\n\t\t\n\t}", "@Override\n\tprotected void logic() {\n\n\t}", "@Override\n\tprotected void lazyLoad() {\n\t\t\n\t}", "public void mo4359a() {\n }", "@Override\r\n\tprotected void initialize() {\n\r\n\t}", "@Override\n public void memoria() {\n \n }", "@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}", "private RepositorioAtendimentoPublicoHBM() {\r\t}", "@Override\n protected void initialize() \n {\n \n }", "@Override\r\n\tpublic void getProposition() {\n\r\n\t}", "@Override\n\tpublic void particular1() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n protected void prot() {\n }", "@Override\r\n\tpublic void init()\r\n\t{\n\t}", "@Override\n\tprotected void initValue()\n\t{\n\n\t}", "public void mo55254a() {\n }" ]
[ "0.6671074", "0.6567672", "0.6523024", "0.6481211", "0.6477082", "0.64591026", "0.64127725", "0.63762105", "0.6276059", "0.6254286", "0.623686", "0.6223679", "0.6201336", "0.61950207", "0.61950207", "0.61922914", "0.6186996", "0.6173591", "0.61327106", "0.61285484", "0.6080161", "0.6077022", "0.6041561", "0.6024072", "0.6020252", "0.59984857", "0.59672105", "0.59672105", "0.5965777", "0.59485507", "0.5940904", "0.59239364", "0.5910017", "0.5902906", "0.58946234", "0.5886006", "0.58839184", "0.58691067", "0.5857751", "0.58503544", "0.5847024", "0.58239377", "0.5810564", "0.5810089", "0.5806823", "0.5806823", "0.5800025", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5790187", "0.5789414", "0.5787092", "0.57844025", "0.57844025", "0.5774479", "0.5774479", "0.5774479", "0.5774479", "0.5774479", "0.5761362", "0.57596046", "0.57596046", "0.575025", "0.575025", "0.575025", "0.5747959", "0.57337177", "0.57337177", "0.57337177", "0.5721452", "0.5715831", "0.57142824", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.5711723", "0.57041645", "0.56991017", "0.5696783", "0.56881124", "0.56774884", "0.56734604", "0.56728", "0.56696945", "0.5661323", "0.5657007", "0.5655942", "0.5655942", "0.5655942", "0.56549734", "0.5654792", "0.5652974", "0.5650185" ]
0.0
-1
TODO Autogenerated method stub
@Override public void hitsUpdateDate(int hitsNo) { sqlSession.update(namespace +"hitsUpdateDate", hitsNo); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExras() {\n\n\t}", "@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}", "@Override\n\tpublic void entrenar() {\n\t\t\n\t}", "@Override\n\tpublic void nadar() {\n\t\t\n\t}", "@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}", "@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}", "@Override\n\tprotected void interr() {\n\t}", "@Override\n\tpublic void emprestimo() {\n\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "@Override\n\tpublic void gravarBd() {\n\t\t\n\t}", "@Override\r\n\tpublic void rozmnozovat() {\n\t}", "@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}", "@Override\n protected void getExras() {\n }", "@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}", "@Override\n\tpublic void nefesAl() {\n\n\t}", "@Override\n\tpublic void ligar() {\n\t\t\n\t}", "@Override\n public void func_104112_b() {\n \n }", "@Override\n\tprotected void initdata() {\n\n\t}", "@Override\n\tpublic void nghe() {\n\n\t}", "@Override\n public void function()\n {\n }", "@Override\n public void function()\n {\n }", "public final void mo51373a() {\n }", "@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}", "@Override\n public void inizializza() {\n\n super.inizializza();\n }", "@Override\n\tprotected void initData() {\n\t\t\n\t}", "@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}", "@Override\n\tpublic void sacrifier() {\n\t\t\n\t}", "@Override\r\n\tprotected void InitData() {\n\t\t\r\n\t}", "public void designBasement() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}", "public void gored() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\r\n\t}", "@Override\n\tpublic void einkaufen() {\n\t}", "@Override\n protected void initialize() {\n\n \n }", "public void mo38117a() {\n }", "@Override\n\tprotected void getData() {\n\t\t\n\t}", "Constructor() {\r\n\t\t \r\n\t }", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\n\tpublic void one() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "private stendhal() {\n\t}", "@Override\n\tprotected void update() {\n\t\t\n\t}", "@Override\n\t\t\tpublic void ic() {\n\t\t\t\t\n\t\t\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n public void init() {\n\n }", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\n\tpublic void debite() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "public contrustor(){\r\n\t}", "@Override\n\tprotected void initialize() {\n\n\t}", "@Override\r\n\tpublic void dispase() {\n\r\n\t}", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "@Override\n\tpublic void dtd() {\n\t\t\n\t}", "@Override\n\tprotected void logic() {\n\n\t}", "@Override\n\tprotected void lazyLoad() {\n\t\t\n\t}", "public void mo4359a() {\n }", "@Override\r\n\tprotected void initialize() {\n\r\n\t}", "@Override\n public void memoria() {\n \n }", "@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}", "private RepositorioAtendimentoPublicoHBM() {\r\t}", "@Override\n protected void initialize() \n {\n \n }", "@Override\r\n\tpublic void getProposition() {\n\r\n\t}", "@Override\n\tpublic void particular1() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n protected void prot() {\n }", "@Override\r\n\tpublic void init()\r\n\t{\n\t}", "@Override\n\tprotected void initValue()\n\t{\n\n\t}", "public void mo55254a() {\n }" ]
[ "0.6671074", "0.6567672", "0.6523024", "0.6481211", "0.6477082", "0.64591026", "0.64127725", "0.63762105", "0.6276059", "0.6254286", "0.623686", "0.6223679", "0.6201336", "0.61950207", "0.61950207", "0.61922914", "0.6186996", "0.6173591", "0.61327106", "0.61285484", "0.6080161", "0.6077022", "0.6041561", "0.6024072", "0.6020252", "0.59984857", "0.59672105", "0.59672105", "0.5965777", "0.59485507", "0.5940904", "0.59239364", "0.5910017", "0.5902906", "0.58946234", "0.5886006", "0.58839184", "0.58691067", "0.5857751", "0.58503544", "0.5847024", "0.58239377", "0.5810564", "0.5810089", "0.5806823", "0.5806823", "0.5800025", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5790187", "0.5789414", "0.5787092", "0.57844025", "0.57844025", "0.5774479", "0.5774479", "0.5774479", "0.5774479", "0.5774479", "0.5761362", "0.57596046", "0.57596046", "0.575025", "0.575025", "0.575025", "0.5747959", "0.57337177", "0.57337177", "0.57337177", "0.5721452", "0.5715831", "0.57142824", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.5711723", "0.57041645", "0.56991017", "0.5696783", "0.56881124", "0.56774884", "0.56734604", "0.56728", "0.56696945", "0.5661323", "0.5657007", "0.5655942", "0.5655942", "0.5655942", "0.56549734", "0.5654792", "0.5652974", "0.5650185" ]
0.0
-1
TODO Autogenerated method stub
public void hitsDeleteWithBoard(int boardNo) { sqlSession.delete(namespace +"hitsDeleteWithBoard", boardNo); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExras() {\n\n\t}", "@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}", "@Override\n\tpublic void entrenar() {\n\t\t\n\t}", "@Override\n\tpublic void nadar() {\n\t\t\n\t}", "@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}", "@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}", "@Override\n\tprotected void interr() {\n\t}", "@Override\n\tpublic void emprestimo() {\n\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "@Override\n\tpublic void gravarBd() {\n\t\t\n\t}", "@Override\r\n\tpublic void rozmnozovat() {\n\t}", "@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}", "@Override\n protected void getExras() {\n }", "@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}", "@Override\n\tpublic void nefesAl() {\n\n\t}", "@Override\n\tpublic void ligar() {\n\t\t\n\t}", "@Override\n public void func_104112_b() {\n \n }", "@Override\n\tprotected void initdata() {\n\n\t}", "@Override\n\tpublic void nghe() {\n\n\t}", "@Override\n public void function()\n {\n }", "@Override\n public void function()\n {\n }", "public final void mo51373a() {\n }", "@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}", "@Override\n public void inizializza() {\n\n super.inizializza();\n }", "@Override\n\tprotected void initData() {\n\t\t\n\t}", "@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}", "@Override\n\tpublic void sacrifier() {\n\t\t\n\t}", "@Override\r\n\tprotected void InitData() {\n\t\t\r\n\t}", "public void designBasement() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}", "public void gored() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\r\n\t}", "@Override\n\tpublic void einkaufen() {\n\t}", "@Override\n protected void initialize() {\n\n \n }", "public void mo38117a() {\n }", "@Override\n\tprotected void getData() {\n\t\t\n\t}", "Constructor() {\r\n\t\t \r\n\t }", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\n\tpublic void one() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "private stendhal() {\n\t}", "@Override\n\tprotected void update() {\n\t\t\n\t}", "@Override\n\t\t\tpublic void ic() {\n\t\t\t\t\n\t\t\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n public void init() {\n\n }", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\n\tpublic void debite() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "public contrustor(){\r\n\t}", "@Override\n\tprotected void initialize() {\n\n\t}", "@Override\r\n\tpublic void dispase() {\n\r\n\t}", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "@Override\n\tpublic void dtd() {\n\t\t\n\t}", "@Override\n\tprotected void logic() {\n\n\t}", "@Override\n\tprotected void lazyLoad() {\n\t\t\n\t}", "public void mo4359a() {\n }", "@Override\r\n\tprotected void initialize() {\n\r\n\t}", "@Override\n public void memoria() {\n \n }", "@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}", "private RepositorioAtendimentoPublicoHBM() {\r\t}", "@Override\n protected void initialize() \n {\n \n }", "@Override\r\n\tpublic void getProposition() {\n\r\n\t}", "@Override\n\tpublic void particular1() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n protected void prot() {\n }", "@Override\r\n\tpublic void init()\r\n\t{\n\t}", "@Override\n\tprotected void initValue()\n\t{\n\n\t}", "public void mo55254a() {\n }" ]
[ "0.6671074", "0.6567672", "0.6523024", "0.6481211", "0.6477082", "0.64591026", "0.64127725", "0.63762105", "0.6276059", "0.6254286", "0.623686", "0.6223679", "0.6201336", "0.61950207", "0.61950207", "0.61922914", "0.6186996", "0.6173591", "0.61327106", "0.61285484", "0.6080161", "0.6077022", "0.6041561", "0.6024072", "0.6020252", "0.59984857", "0.59672105", "0.59672105", "0.5965777", "0.59485507", "0.5940904", "0.59239364", "0.5910017", "0.5902906", "0.58946234", "0.5886006", "0.58839184", "0.58691067", "0.5857751", "0.58503544", "0.5847024", "0.58239377", "0.5810564", "0.5810089", "0.5806823", "0.5806823", "0.5800025", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5790187", "0.5789414", "0.5787092", "0.57844025", "0.57844025", "0.5774479", "0.5774479", "0.5774479", "0.5774479", "0.5774479", "0.5761362", "0.57596046", "0.57596046", "0.575025", "0.575025", "0.575025", "0.5747959", "0.57337177", "0.57337177", "0.57337177", "0.5721452", "0.5715831", "0.57142824", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.5711723", "0.57041645", "0.56991017", "0.5696783", "0.56881124", "0.56774884", "0.56734604", "0.56728", "0.56696945", "0.5661323", "0.5657007", "0.5655942", "0.5655942", "0.5655942", "0.56549734", "0.5654792", "0.5652974", "0.5650185" ]
0.0
-1
TODO Autogenerated method stub
@Override public void insertFile(Map<String, Object> map) { sqlSession.insert(namespace + "insertFile", map); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExras() {\n\n\t}", "@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}", "@Override\n\tpublic void entrenar() {\n\t\t\n\t}", "@Override\n\tpublic void nadar() {\n\t\t\n\t}", "@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}", "@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}", "@Override\n\tprotected void interr() {\n\t}", "@Override\n\tpublic void emprestimo() {\n\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "@Override\n\tpublic void gravarBd() {\n\t\t\n\t}", "@Override\r\n\tpublic void rozmnozovat() {\n\t}", "@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}", "@Override\n protected void getExras() {\n }", "@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}", "@Override\n\tpublic void nefesAl() {\n\n\t}", "@Override\n\tpublic void ligar() {\n\t\t\n\t}", "@Override\n public void func_104112_b() {\n \n }", "@Override\n\tprotected void initdata() {\n\n\t}", "@Override\n\tpublic void nghe() {\n\n\t}", "@Override\n public void function()\n {\n }", "@Override\n public void function()\n {\n }", "public final void mo51373a() {\n }", "@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}", "@Override\n public void inizializza() {\n\n super.inizializza();\n }", "@Override\n\tprotected void initData() {\n\t\t\n\t}", "@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}", "@Override\n\tpublic void sacrifier() {\n\t\t\n\t}", "@Override\r\n\tprotected void InitData() {\n\t\t\r\n\t}", "public void designBasement() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}", "public void gored() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\r\n\t}", "@Override\n\tpublic void einkaufen() {\n\t}", "@Override\n protected void initialize() {\n\n \n }", "public void mo38117a() {\n }", "@Override\n\tprotected void getData() {\n\t\t\n\t}", "Constructor() {\r\n\t\t \r\n\t }", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\n\tpublic void one() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "private stendhal() {\n\t}", "@Override\n\tprotected void update() {\n\t\t\n\t}", "@Override\n\t\t\tpublic void ic() {\n\t\t\t\t\n\t\t\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n public void init() {\n\n }", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\n\tpublic void debite() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "public contrustor(){\r\n\t}", "@Override\n\tprotected void initialize() {\n\n\t}", "@Override\r\n\tpublic void dispase() {\n\r\n\t}", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "@Override\n\tpublic void dtd() {\n\t\t\n\t}", "@Override\n\tprotected void logic() {\n\n\t}", "@Override\n\tprotected void lazyLoad() {\n\t\t\n\t}", "public void mo4359a() {\n }", "@Override\r\n\tprotected void initialize() {\n\r\n\t}", "@Override\n public void memoria() {\n \n }", "@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}", "private RepositorioAtendimentoPublicoHBM() {\r\t}", "@Override\n protected void initialize() \n {\n \n }", "@Override\r\n\tpublic void getProposition() {\n\r\n\t}", "@Override\n\tpublic void particular1() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n protected void prot() {\n }", "@Override\r\n\tpublic void init()\r\n\t{\n\t}", "@Override\n\tprotected void initValue()\n\t{\n\n\t}", "public void mo55254a() {\n }" ]
[ "0.6671074", "0.6567672", "0.6523024", "0.6481211", "0.6477082", "0.64591026", "0.64127725", "0.63762105", "0.6276059", "0.6254286", "0.623686", "0.6223679", "0.6201336", "0.61950207", "0.61950207", "0.61922914", "0.6186996", "0.6173591", "0.61327106", "0.61285484", "0.6080161", "0.6077022", "0.6041561", "0.6024072", "0.6020252", "0.59984857", "0.59672105", "0.59672105", "0.5965777", "0.59485507", "0.5940904", "0.59239364", "0.5910017", "0.5902906", "0.58946234", "0.5886006", "0.58839184", "0.58691067", "0.5857751", "0.58503544", "0.5847024", "0.58239377", "0.5810564", "0.5810089", "0.5806823", "0.5806823", "0.5800025", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5790187", "0.5789414", "0.5787092", "0.57844025", "0.57844025", "0.5774479", "0.5774479", "0.5774479", "0.5774479", "0.5774479", "0.5761362", "0.57596046", "0.57596046", "0.575025", "0.575025", "0.575025", "0.5747959", "0.57337177", "0.57337177", "0.57337177", "0.5721452", "0.5715831", "0.57142824", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.5711723", "0.57041645", "0.56991017", "0.5696783", "0.56881124", "0.56774884", "0.56734604", "0.56728", "0.56696945", "0.5661323", "0.5657007", "0.5655942", "0.5655942", "0.5655942", "0.56549734", "0.5654792", "0.5652974", "0.5650185" ]
0.0
-1
TODO Autogenerated method stub
@Override public List<Map<String, Object>> fileSelectList(int no) { return sqlSession.selectList(namespace + "fileSelectList", no); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExras() {\n\n\t}", "@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}", "@Override\n\tpublic void entrenar() {\n\t\t\n\t}", "@Override\n\tpublic void nadar() {\n\t\t\n\t}", "@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}", "@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}", "@Override\n\tprotected void interr() {\n\t}", "@Override\n\tpublic void emprestimo() {\n\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "@Override\n\tpublic void gravarBd() {\n\t\t\n\t}", "@Override\r\n\tpublic void rozmnozovat() {\n\t}", "@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}", "@Override\n protected void getExras() {\n }", "@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}", "@Override\n\tpublic void nefesAl() {\n\n\t}", "@Override\n\tpublic void ligar() {\n\t\t\n\t}", "@Override\n public void func_104112_b() {\n \n }", "@Override\n\tprotected void initdata() {\n\n\t}", "@Override\n\tpublic void nghe() {\n\n\t}", "@Override\n public void function()\n {\n }", "@Override\n public void function()\n {\n }", "public final void mo51373a() {\n }", "@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}", "@Override\n public void inizializza() {\n\n super.inizializza();\n }", "@Override\n\tprotected void initData() {\n\t\t\n\t}", "@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}", "@Override\n\tpublic void sacrifier() {\n\t\t\n\t}", "@Override\r\n\tprotected void InitData() {\n\t\t\r\n\t}", "public void designBasement() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}", "public void gored() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\r\n\t}", "@Override\n\tpublic void einkaufen() {\n\t}", "@Override\n protected void initialize() {\n\n \n }", "public void mo38117a() {\n }", "@Override\n\tprotected void getData() {\n\t\t\n\t}", "Constructor() {\r\n\t\t \r\n\t }", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\n\tpublic void one() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "private stendhal() {\n\t}", "@Override\n\tprotected void update() {\n\t\t\n\t}", "@Override\n\t\t\tpublic void ic() {\n\t\t\t\t\n\t\t\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n public void init() {\n\n }", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\n\tpublic void debite() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "public contrustor(){\r\n\t}", "@Override\n\tprotected void initialize() {\n\n\t}", "@Override\r\n\tpublic void dispase() {\n\r\n\t}", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "@Override\n\tpublic void dtd() {\n\t\t\n\t}", "@Override\n\tprotected void logic() {\n\n\t}", "@Override\n\tprotected void lazyLoad() {\n\t\t\n\t}", "public void mo4359a() {\n }", "@Override\r\n\tprotected void initialize() {\n\r\n\t}", "@Override\n public void memoria() {\n \n }", "@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}", "private RepositorioAtendimentoPublicoHBM() {\r\t}", "@Override\n protected void initialize() \n {\n \n }", "@Override\r\n\tpublic void getProposition() {\n\r\n\t}", "@Override\n\tpublic void particular1() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n protected void prot() {\n }", "@Override\r\n\tpublic void init()\r\n\t{\n\t}", "@Override\n\tprotected void initValue()\n\t{\n\n\t}", "public void mo55254a() {\n }" ]
[ "0.6671074", "0.6567672", "0.6523024", "0.6481211", "0.6477082", "0.64591026", "0.64127725", "0.63762105", "0.6276059", "0.6254286", "0.623686", "0.6223679", "0.6201336", "0.61950207", "0.61950207", "0.61922914", "0.6186996", "0.6173591", "0.61327106", "0.61285484", "0.6080161", "0.6077022", "0.6041561", "0.6024072", "0.6020252", "0.59984857", "0.59672105", "0.59672105", "0.5965777", "0.59485507", "0.5940904", "0.59239364", "0.5910017", "0.5902906", "0.58946234", "0.5886006", "0.58839184", "0.58691067", "0.5857751", "0.58503544", "0.5847024", "0.58239377", "0.5810564", "0.5810089", "0.5806823", "0.5806823", "0.5800025", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5790187", "0.5789414", "0.5787092", "0.57844025", "0.57844025", "0.5774479", "0.5774479", "0.5774479", "0.5774479", "0.5774479", "0.5761362", "0.57596046", "0.57596046", "0.575025", "0.575025", "0.575025", "0.5747959", "0.57337177", "0.57337177", "0.57337177", "0.5721452", "0.5715831", "0.57142824", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.5711723", "0.57041645", "0.56991017", "0.5696783", "0.56881124", "0.56774884", "0.56734604", "0.56728", "0.56696945", "0.5661323", "0.5657007", "0.5655942", "0.5655942", "0.5655942", "0.56549734", "0.5654792", "0.5652974", "0.5650185" ]
0.0
-1
TODO Autogenerated method stub
@Override public int fileDelete(int no) { return sqlSession.delete(namespace + "fileDelete", no); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExras() {\n\n\t}", "@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}", "@Override\n\tpublic void entrenar() {\n\t\t\n\t}", "@Override\n\tpublic void nadar() {\n\t\t\n\t}", "@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}", "@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}", "@Override\n\tprotected void interr() {\n\t}", "@Override\n\tpublic void emprestimo() {\n\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "@Override\n\tpublic void gravarBd() {\n\t\t\n\t}", "@Override\r\n\tpublic void rozmnozovat() {\n\t}", "@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}", "@Override\n protected void getExras() {\n }", "@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}", "@Override\n\tpublic void nefesAl() {\n\n\t}", "@Override\n\tpublic void ligar() {\n\t\t\n\t}", "@Override\n public void func_104112_b() {\n \n }", "@Override\n\tprotected void initdata() {\n\n\t}", "@Override\n\tpublic void nghe() {\n\n\t}", "@Override\n public void function()\n {\n }", "@Override\n public void function()\n {\n }", "public final void mo51373a() {\n }", "@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}", "@Override\n public void inizializza() {\n\n super.inizializza();\n }", "@Override\n\tprotected void initData() {\n\t\t\n\t}", "@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}", "@Override\n\tpublic void sacrifier() {\n\t\t\n\t}", "@Override\r\n\tprotected void InitData() {\n\t\t\r\n\t}", "public void designBasement() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}", "public void gored() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\r\n\t}", "@Override\n\tpublic void einkaufen() {\n\t}", "@Override\n protected void initialize() {\n\n \n }", "public void mo38117a() {\n }", "@Override\n\tprotected void getData() {\n\t\t\n\t}", "Constructor() {\r\n\t\t \r\n\t }", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\n\tpublic void one() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "private stendhal() {\n\t}", "@Override\n\tprotected void update() {\n\t\t\n\t}", "@Override\n\t\t\tpublic void ic() {\n\t\t\t\t\n\t\t\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n public void init() {\n\n }", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\n\tpublic void debite() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "public contrustor(){\r\n\t}", "@Override\n\tprotected void initialize() {\n\n\t}", "@Override\r\n\tpublic void dispase() {\n\r\n\t}", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "@Override\n\tpublic void dtd() {\n\t\t\n\t}", "@Override\n\tprotected void logic() {\n\n\t}", "@Override\n\tprotected void lazyLoad() {\n\t\t\n\t}", "public void mo4359a() {\n }", "@Override\r\n\tprotected void initialize() {\n\r\n\t}", "@Override\n public void memoria() {\n \n }", "@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}", "private RepositorioAtendimentoPublicoHBM() {\r\t}", "@Override\n protected void initialize() \n {\n \n }", "@Override\r\n\tpublic void getProposition() {\n\r\n\t}", "@Override\n\tpublic void particular1() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n protected void prot() {\n }", "@Override\r\n\tpublic void init()\r\n\t{\n\t}", "@Override\n\tprotected void initValue()\n\t{\n\n\t}", "public void mo55254a() {\n }" ]
[ "0.6671074", "0.6567672", "0.6523024", "0.6481211", "0.6477082", "0.64591026", "0.64127725", "0.63762105", "0.6276059", "0.6254286", "0.623686", "0.6223679", "0.6201336", "0.61950207", "0.61950207", "0.61922914", "0.6186996", "0.6173591", "0.61327106", "0.61285484", "0.6080161", "0.6077022", "0.6041561", "0.6024072", "0.6020252", "0.59984857", "0.59672105", "0.59672105", "0.5965777", "0.59485507", "0.5940904", "0.59239364", "0.5910017", "0.5902906", "0.58946234", "0.5886006", "0.58839184", "0.58691067", "0.5857751", "0.58503544", "0.5847024", "0.58239377", "0.5810564", "0.5810089", "0.5806823", "0.5806823", "0.5800025", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5790187", "0.5789414", "0.5787092", "0.57844025", "0.57844025", "0.5774479", "0.5774479", "0.5774479", "0.5774479", "0.5774479", "0.5761362", "0.57596046", "0.57596046", "0.575025", "0.575025", "0.575025", "0.5747959", "0.57337177", "0.57337177", "0.57337177", "0.5721452", "0.5715831", "0.57142824", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.5711723", "0.57041645", "0.56991017", "0.5696783", "0.56881124", "0.56774884", "0.56734604", "0.56728", "0.56696945", "0.5661323", "0.5657007", "0.5655942", "0.5655942", "0.5655942", "0.56549734", "0.5654792", "0.5652974", "0.5650185" ]
0.0
-1
TODO Autogenerated method stub
@Override public Map<String, Object> fileSelectStoredFileName(int no) { return sqlSession.selectOne(namespace + "fileSelectStoredFileName", no); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExras() {\n\n\t}", "@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}", "@Override\n\tpublic void entrenar() {\n\t\t\n\t}", "@Override\n\tpublic void nadar() {\n\t\t\n\t}", "@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}", "@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}", "@Override\n\tprotected void interr() {\n\t}", "@Override\n\tpublic void emprestimo() {\n\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "@Override\n\tpublic void gravarBd() {\n\t\t\n\t}", "@Override\r\n\tpublic void rozmnozovat() {\n\t}", "@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}", "@Override\n protected void getExras() {\n }", "@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}", "@Override\n\tpublic void nefesAl() {\n\n\t}", "@Override\n\tpublic void ligar() {\n\t\t\n\t}", "@Override\n public void func_104112_b() {\n \n }", "@Override\n\tprotected void initdata() {\n\n\t}", "@Override\n\tpublic void nghe() {\n\n\t}", "@Override\n public void function()\n {\n }", "@Override\n public void function()\n {\n }", "public final void mo51373a() {\n }", "@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}", "@Override\n public void inizializza() {\n\n super.inizializza();\n }", "@Override\n\tprotected void initData() {\n\t\t\n\t}", "@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}", "@Override\n\tpublic void sacrifier() {\n\t\t\n\t}", "@Override\r\n\tprotected void InitData() {\n\t\t\r\n\t}", "public void designBasement() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}", "public void gored() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\r\n\t}", "@Override\n\tpublic void einkaufen() {\n\t}", "@Override\n protected void initialize() {\n\n \n }", "public void mo38117a() {\n }", "@Override\n\tprotected void getData() {\n\t\t\n\t}", "Constructor() {\r\n\t\t \r\n\t }", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\n\tpublic void one() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "private stendhal() {\n\t}", "@Override\n\tprotected void update() {\n\t\t\n\t}", "@Override\n\t\t\tpublic void ic() {\n\t\t\t\t\n\t\t\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n public void init() {\n\n }", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\n\tpublic void debite() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "public contrustor(){\r\n\t}", "@Override\n\tprotected void initialize() {\n\n\t}", "@Override\r\n\tpublic void dispase() {\n\r\n\t}", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "@Override\n\tpublic void dtd() {\n\t\t\n\t}", "@Override\n\tprotected void logic() {\n\n\t}", "@Override\n\tprotected void lazyLoad() {\n\t\t\n\t}", "public void mo4359a() {\n }", "@Override\r\n\tprotected void initialize() {\n\r\n\t}", "@Override\n public void memoria() {\n \n }", "@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}", "private RepositorioAtendimentoPublicoHBM() {\r\t}", "@Override\n protected void initialize() \n {\n \n }", "@Override\r\n\tpublic void getProposition() {\n\r\n\t}", "@Override\n\tpublic void particular1() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n protected void prot() {\n }", "@Override\r\n\tpublic void init()\r\n\t{\n\t}", "@Override\n\tprotected void initValue()\n\t{\n\n\t}", "public void mo55254a() {\n }" ]
[ "0.6671074", "0.6567672", "0.6523024", "0.6481211", "0.6477082", "0.64591026", "0.64127725", "0.63762105", "0.6276059", "0.6254286", "0.623686", "0.6223679", "0.6201336", "0.61950207", "0.61950207", "0.61922914", "0.6186996", "0.6173591", "0.61327106", "0.61285484", "0.6080161", "0.6077022", "0.6041561", "0.6024072", "0.6020252", "0.59984857", "0.59672105", "0.59672105", "0.5965777", "0.59485507", "0.5940904", "0.59239364", "0.5910017", "0.5902906", "0.58946234", "0.5886006", "0.58839184", "0.58691067", "0.5857751", "0.58503544", "0.5847024", "0.58239377", "0.5810564", "0.5810089", "0.5806823", "0.5806823", "0.5800025", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5790187", "0.5789414", "0.5787092", "0.57844025", "0.57844025", "0.5774479", "0.5774479", "0.5774479", "0.5774479", "0.5774479", "0.5761362", "0.57596046", "0.57596046", "0.575025", "0.575025", "0.575025", "0.5747959", "0.57337177", "0.57337177", "0.57337177", "0.5721452", "0.5715831", "0.57142824", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.5711723", "0.57041645", "0.56991017", "0.5696783", "0.56881124", "0.56774884", "0.56734604", "0.56728", "0.56696945", "0.5661323", "0.5657007", "0.5655942", "0.5655942", "0.5655942", "0.56549734", "0.5654792", "0.5652974", "0.5650185" ]
0.0
-1
TODO Autogenerated method stub
@Override public int boardCommentCount(int boardNo) { return sqlSession.selectOne(namespace + "boardCommentCount", boardNo); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExras() {\n\n\t}", "@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}", "@Override\n\tpublic void entrenar() {\n\t\t\n\t}", "@Override\n\tpublic void nadar() {\n\t\t\n\t}", "@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}", "@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}", "@Override\n\tprotected void interr() {\n\t}", "@Override\n\tpublic void emprestimo() {\n\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "@Override\n\tpublic void gravarBd() {\n\t\t\n\t}", "@Override\r\n\tpublic void rozmnozovat() {\n\t}", "@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}", "@Override\n protected void getExras() {\n }", "@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}", "@Override\n\tpublic void nefesAl() {\n\n\t}", "@Override\n\tpublic void ligar() {\n\t\t\n\t}", "@Override\n public void func_104112_b() {\n \n }", "@Override\n\tprotected void initdata() {\n\n\t}", "@Override\n\tpublic void nghe() {\n\n\t}", "@Override\n public void function()\n {\n }", "@Override\n public void function()\n {\n }", "public final void mo51373a() {\n }", "@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}", "@Override\n public void inizializza() {\n\n super.inizializza();\n }", "@Override\n\tprotected void initData() {\n\t\t\n\t}", "@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}", "@Override\n\tpublic void sacrifier() {\n\t\t\n\t}", "@Override\r\n\tprotected void InitData() {\n\t\t\r\n\t}", "public void designBasement() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}", "public void gored() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\r\n\t}", "@Override\n\tpublic void einkaufen() {\n\t}", "@Override\n protected void initialize() {\n\n \n }", "public void mo38117a() {\n }", "@Override\n\tprotected void getData() {\n\t\t\n\t}", "Constructor() {\r\n\t\t \r\n\t }", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\n\tpublic void one() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "private stendhal() {\n\t}", "@Override\n\tprotected void update() {\n\t\t\n\t}", "@Override\n\t\t\tpublic void ic() {\n\t\t\t\t\n\t\t\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n public void init() {\n\n }", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\n\tpublic void debite() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "public contrustor(){\r\n\t}", "@Override\n\tprotected void initialize() {\n\n\t}", "@Override\r\n\tpublic void dispase() {\n\r\n\t}", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "@Override\n\tpublic void dtd() {\n\t\t\n\t}", "@Override\n\tprotected void logic() {\n\n\t}", "@Override\n\tprotected void lazyLoad() {\n\t\t\n\t}", "public void mo4359a() {\n }", "@Override\r\n\tprotected void initialize() {\n\r\n\t}", "@Override\n public void memoria() {\n \n }", "@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}", "private RepositorioAtendimentoPublicoHBM() {\r\t}", "@Override\n protected void initialize() \n {\n \n }", "@Override\r\n\tpublic void getProposition() {\n\r\n\t}", "@Override\n\tpublic void particular1() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n protected void prot() {\n }", "@Override\r\n\tpublic void init()\r\n\t{\n\t}", "@Override\n\tprotected void initValue()\n\t{\n\n\t}", "public void mo55254a() {\n }" ]
[ "0.6671074", "0.6567672", "0.6523024", "0.6481211", "0.6477082", "0.64591026", "0.64127725", "0.63762105", "0.6276059", "0.6254286", "0.623686", "0.6223679", "0.6201336", "0.61950207", "0.61950207", "0.61922914", "0.6186996", "0.6173591", "0.61327106", "0.61285484", "0.6080161", "0.6077022", "0.6041561", "0.6024072", "0.6020252", "0.59984857", "0.59672105", "0.59672105", "0.5965777", "0.59485507", "0.5940904", "0.59239364", "0.5910017", "0.5902906", "0.58946234", "0.5886006", "0.58839184", "0.58691067", "0.5857751", "0.58503544", "0.5847024", "0.58239377", "0.5810564", "0.5810089", "0.5806823", "0.5806823", "0.5800025", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5790187", "0.5789414", "0.5787092", "0.57844025", "0.57844025", "0.5774479", "0.5774479", "0.5774479", "0.5774479", "0.5774479", "0.5761362", "0.57596046", "0.57596046", "0.575025", "0.575025", "0.575025", "0.5747959", "0.57337177", "0.57337177", "0.57337177", "0.5721452", "0.5715831", "0.57142824", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.5711723", "0.57041645", "0.56991017", "0.5696783", "0.56881124", "0.56774884", "0.56734604", "0.56728", "0.56696945", "0.5661323", "0.5657007", "0.5655942", "0.5655942", "0.5655942", "0.56549734", "0.5654792", "0.5652974", "0.5650185" ]
0.0
-1
TODO Autogenerated method stub
@Override public void boardDeleteWithMember(int memberNo) { sqlSession.delete(namespace +"boardDeleteWithMember", memberNo); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExras() {\n\n\t}", "@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}", "@Override\n\tpublic void entrenar() {\n\t\t\n\t}", "@Override\n\tpublic void nadar() {\n\t\t\n\t}", "@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}", "@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}", "@Override\n\tprotected void interr() {\n\t}", "@Override\n\tpublic void emprestimo() {\n\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "@Override\n\tpublic void gravarBd() {\n\t\t\n\t}", "@Override\r\n\tpublic void rozmnozovat() {\n\t}", "@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}", "@Override\n protected void getExras() {\n }", "@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}", "@Override\n\tpublic void nefesAl() {\n\n\t}", "@Override\n\tpublic void ligar() {\n\t\t\n\t}", "@Override\n public void func_104112_b() {\n \n }", "@Override\n\tprotected void initdata() {\n\n\t}", "@Override\n\tpublic void nghe() {\n\n\t}", "@Override\n public void function()\n {\n }", "@Override\n public void function()\n {\n }", "public final void mo51373a() {\n }", "@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}", "@Override\n public void inizializza() {\n\n super.inizializza();\n }", "@Override\n\tprotected void initData() {\n\t\t\n\t}", "@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}", "@Override\n\tpublic void sacrifier() {\n\t\t\n\t}", "@Override\r\n\tprotected void InitData() {\n\t\t\r\n\t}", "public void designBasement() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}", "public void gored() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\r\n\t}", "@Override\n\tpublic void einkaufen() {\n\t}", "@Override\n protected void initialize() {\n\n \n }", "public void mo38117a() {\n }", "@Override\n\tprotected void getData() {\n\t\t\n\t}", "Constructor() {\r\n\t\t \r\n\t }", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\n\tpublic void one() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "private stendhal() {\n\t}", "@Override\n\tprotected void update() {\n\t\t\n\t}", "@Override\n\t\t\tpublic void ic() {\n\t\t\t\t\n\t\t\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n public void init() {\n\n }", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\n\tpublic void debite() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "public contrustor(){\r\n\t}", "@Override\n\tprotected void initialize() {\n\n\t}", "@Override\r\n\tpublic void dispase() {\n\r\n\t}", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "@Override\n\tpublic void dtd() {\n\t\t\n\t}", "@Override\n\tprotected void logic() {\n\n\t}", "@Override\n\tprotected void lazyLoad() {\n\t\t\n\t}", "public void mo4359a() {\n }", "@Override\r\n\tprotected void initialize() {\n\r\n\t}", "@Override\n public void memoria() {\n \n }", "@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}", "private RepositorioAtendimentoPublicoHBM() {\r\t}", "@Override\n protected void initialize() \n {\n \n }", "@Override\r\n\tpublic void getProposition() {\n\r\n\t}", "@Override\n\tpublic void particular1() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n protected void prot() {\n }", "@Override\r\n\tpublic void init()\r\n\t{\n\t}", "@Override\n\tprotected void initValue()\n\t{\n\n\t}", "public void mo55254a() {\n }" ]
[ "0.6671074", "0.6567672", "0.6523024", "0.6481211", "0.6477082", "0.64591026", "0.64127725", "0.63762105", "0.6276059", "0.6254286", "0.623686", "0.6223679", "0.6201336", "0.61950207", "0.61950207", "0.61922914", "0.6186996", "0.6173591", "0.61327106", "0.61285484", "0.6080161", "0.6077022", "0.6041561", "0.6024072", "0.6020252", "0.59984857", "0.59672105", "0.59672105", "0.5965777", "0.59485507", "0.5940904", "0.59239364", "0.5910017", "0.5902906", "0.58946234", "0.5886006", "0.58839184", "0.58691067", "0.5857751", "0.58503544", "0.5847024", "0.58239377", "0.5810564", "0.5810089", "0.5806823", "0.5806823", "0.5800025", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5790187", "0.5789414", "0.5787092", "0.57844025", "0.57844025", "0.5774479", "0.5774479", "0.5774479", "0.5774479", "0.5774479", "0.5761362", "0.57596046", "0.57596046", "0.575025", "0.575025", "0.575025", "0.5747959", "0.57337177", "0.57337177", "0.57337177", "0.5721452", "0.5715831", "0.57142824", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.5711723", "0.57041645", "0.56991017", "0.5696783", "0.56881124", "0.56774884", "0.56734604", "0.56728", "0.56696945", "0.5661323", "0.5657007", "0.5655942", "0.5655942", "0.5655942", "0.56549734", "0.5654792", "0.5652974", "0.5650185" ]
0.0
-1
TODO Autogenerated method stub
@Override public void hitsDeleteWithMember(int memberNo) { sqlSession.delete(namespace +"hitsDeleteWithMember", memberNo); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExras() {\n\n\t}", "@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}", "@Override\n\tpublic void entrenar() {\n\t\t\n\t}", "@Override\n\tpublic void nadar() {\n\t\t\n\t}", "@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}", "@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}", "@Override\n\tprotected void interr() {\n\t}", "@Override\n\tpublic void emprestimo() {\n\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "@Override\n\tpublic void gravarBd() {\n\t\t\n\t}", "@Override\r\n\tpublic void rozmnozovat() {\n\t}", "@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}", "@Override\n protected void getExras() {\n }", "@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}", "@Override\n\tpublic void nefesAl() {\n\n\t}", "@Override\n\tpublic void ligar() {\n\t\t\n\t}", "@Override\n public void func_104112_b() {\n \n }", "@Override\n\tprotected void initdata() {\n\n\t}", "@Override\n\tpublic void nghe() {\n\n\t}", "@Override\n public void function()\n {\n }", "@Override\n public void function()\n {\n }", "public final void mo51373a() {\n }", "@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}", "@Override\n public void inizializza() {\n\n super.inizializza();\n }", "@Override\n\tprotected void initData() {\n\t\t\n\t}", "@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}", "@Override\n\tpublic void sacrifier() {\n\t\t\n\t}", "@Override\r\n\tprotected void InitData() {\n\t\t\r\n\t}", "public void designBasement() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}", "public void gored() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\r\n\t}", "@Override\n\tpublic void einkaufen() {\n\t}", "@Override\n protected void initialize() {\n\n \n }", "public void mo38117a() {\n }", "@Override\n\tprotected void getData() {\n\t\t\n\t}", "Constructor() {\r\n\t\t \r\n\t }", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\n\tpublic void one() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "private stendhal() {\n\t}", "@Override\n\tprotected void update() {\n\t\t\n\t}", "@Override\n\t\t\tpublic void ic() {\n\t\t\t\t\n\t\t\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n public void init() {\n\n }", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\n\tpublic void debite() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "public contrustor(){\r\n\t}", "@Override\n\tprotected void initialize() {\n\n\t}", "@Override\r\n\tpublic void dispase() {\n\r\n\t}", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "@Override\n\tpublic void dtd() {\n\t\t\n\t}", "@Override\n\tprotected void logic() {\n\n\t}", "@Override\n\tprotected void lazyLoad() {\n\t\t\n\t}", "public void mo4359a() {\n }", "@Override\r\n\tprotected void initialize() {\n\r\n\t}", "@Override\n public void memoria() {\n \n }", "@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}", "private RepositorioAtendimentoPublicoHBM() {\r\t}", "@Override\n protected void initialize() \n {\n \n }", "@Override\r\n\tpublic void getProposition() {\n\r\n\t}", "@Override\n\tpublic void particular1() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n protected void prot() {\n }", "@Override\r\n\tpublic void init()\r\n\t{\n\t}", "@Override\n\tprotected void initValue()\n\t{\n\n\t}", "public void mo55254a() {\n }" ]
[ "0.6671074", "0.6567672", "0.6523024", "0.6481211", "0.6477082", "0.64591026", "0.64127725", "0.63762105", "0.6276059", "0.6254286", "0.623686", "0.6223679", "0.6201336", "0.61950207", "0.61950207", "0.61922914", "0.6186996", "0.6173591", "0.61327106", "0.61285484", "0.6080161", "0.6077022", "0.6041561", "0.6024072", "0.6020252", "0.59984857", "0.59672105", "0.59672105", "0.5965777", "0.59485507", "0.5940904", "0.59239364", "0.5910017", "0.5902906", "0.58946234", "0.5886006", "0.58839184", "0.58691067", "0.5857751", "0.58503544", "0.5847024", "0.58239377", "0.5810564", "0.5810089", "0.5806823", "0.5806823", "0.5800025", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5790187", "0.5789414", "0.5787092", "0.57844025", "0.57844025", "0.5774479", "0.5774479", "0.5774479", "0.5774479", "0.5774479", "0.5761362", "0.57596046", "0.57596046", "0.575025", "0.575025", "0.575025", "0.5747959", "0.57337177", "0.57337177", "0.57337177", "0.5721452", "0.5715831", "0.57142824", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.5711723", "0.57041645", "0.56991017", "0.5696783", "0.56881124", "0.56774884", "0.56734604", "0.56728", "0.56696945", "0.5661323", "0.5657007", "0.5655942", "0.5655942", "0.5655942", "0.56549734", "0.5654792", "0.5652974", "0.5650185" ]
0.0
-1
TODO Autogenerated method stub
@Override public List<Integer> boardNoSelectList(int memberNo) { return sqlSession.selectList(namespace + "boardNoSelectList", memberNo); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExras() {\n\n\t}", "@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}", "@Override\n\tpublic void entrenar() {\n\t\t\n\t}", "@Override\n\tpublic void nadar() {\n\t\t\n\t}", "@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}", "@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}", "@Override\n\tprotected void interr() {\n\t}", "@Override\n\tpublic void emprestimo() {\n\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "@Override\n\tpublic void gravarBd() {\n\t\t\n\t}", "@Override\r\n\tpublic void rozmnozovat() {\n\t}", "@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}", "@Override\n protected void getExras() {\n }", "@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}", "@Override\n\tpublic void nefesAl() {\n\n\t}", "@Override\n\tpublic void ligar() {\n\t\t\n\t}", "@Override\n public void func_104112_b() {\n \n }", "@Override\n\tprotected void initdata() {\n\n\t}", "@Override\n\tpublic void nghe() {\n\n\t}", "@Override\n public void function()\n {\n }", "@Override\n public void function()\n {\n }", "public final void mo51373a() {\n }", "@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}", "@Override\n public void inizializza() {\n\n super.inizializza();\n }", "@Override\n\tprotected void initData() {\n\t\t\n\t}", "@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}", "@Override\n\tpublic void sacrifier() {\n\t\t\n\t}", "@Override\r\n\tprotected void InitData() {\n\t\t\r\n\t}", "public void designBasement() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}", "public void gored() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\r\n\t}", "@Override\n\tpublic void einkaufen() {\n\t}", "@Override\n protected void initialize() {\n\n \n }", "public void mo38117a() {\n }", "@Override\n\tprotected void getData() {\n\t\t\n\t}", "Constructor() {\r\n\t\t \r\n\t }", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\n\tpublic void one() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "private stendhal() {\n\t}", "@Override\n\tprotected void update() {\n\t\t\n\t}", "@Override\n\t\t\tpublic void ic() {\n\t\t\t\t\n\t\t\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n public void init() {\n\n }", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\n\tpublic void debite() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "public contrustor(){\r\n\t}", "@Override\n\tprotected void initialize() {\n\n\t}", "@Override\r\n\tpublic void dispase() {\n\r\n\t}", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "@Override\n\tpublic void dtd() {\n\t\t\n\t}", "@Override\n\tprotected void logic() {\n\n\t}", "@Override\n\tprotected void lazyLoad() {\n\t\t\n\t}", "public void mo4359a() {\n }", "@Override\r\n\tprotected void initialize() {\n\r\n\t}", "@Override\n public void memoria() {\n \n }", "@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}", "private RepositorioAtendimentoPublicoHBM() {\r\t}", "@Override\n protected void initialize() \n {\n \n }", "@Override\r\n\tpublic void getProposition() {\n\r\n\t}", "@Override\n\tpublic void particular1() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n protected void prot() {\n }", "@Override\r\n\tpublic void init()\r\n\t{\n\t}", "@Override\n\tprotected void initValue()\n\t{\n\n\t}", "public void mo55254a() {\n }" ]
[ "0.6671074", "0.6567672", "0.6523024", "0.6481211", "0.6477082", "0.64591026", "0.64127725", "0.63762105", "0.6276059", "0.6254286", "0.623686", "0.6223679", "0.6201336", "0.61950207", "0.61950207", "0.61922914", "0.6186996", "0.6173591", "0.61327106", "0.61285484", "0.6080161", "0.6077022", "0.6041561", "0.6024072", "0.6020252", "0.59984857", "0.59672105", "0.59672105", "0.5965777", "0.59485507", "0.5940904", "0.59239364", "0.5910017", "0.5902906", "0.58946234", "0.5886006", "0.58839184", "0.58691067", "0.5857751", "0.58503544", "0.5847024", "0.58239377", "0.5810564", "0.5810089", "0.5806823", "0.5806823", "0.5800025", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5790187", "0.5789414", "0.5787092", "0.57844025", "0.57844025", "0.5774479", "0.5774479", "0.5774479", "0.5774479", "0.5774479", "0.5761362", "0.57596046", "0.57596046", "0.575025", "0.575025", "0.575025", "0.5747959", "0.57337177", "0.57337177", "0.57337177", "0.5721452", "0.5715831", "0.57142824", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.5711723", "0.57041645", "0.56991017", "0.5696783", "0.56881124", "0.56774884", "0.56734604", "0.56728", "0.56696945", "0.5661323", "0.5657007", "0.5655942", "0.5655942", "0.5655942", "0.56549734", "0.5654792", "0.5652974", "0.5650185" ]
0.0
-1
The constructor tells the game to reset, and then sets up the variables not set up by that function, like the points, the game over, the two timers, the score, and the file. It also fills the list of high scores.
public GameController() { //mySnake = null; lives = 5; reset(); gameOver = false; moveTimer.start(); points = 0; rand = new Random(); mushroomTimer = new Timer(1000, new MushroomTimerHelper()); mushroomTimer.start(); scores = new HighScore[10]; file = new File("highscore.txt"); try{ readScoresFromFile(file); } catch (Exception e){ } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public HighScore() {\n try {\n BufferedReader a = new BufferedReader(new FileReader(\"points.txt\"));\n BufferedReader b = new BufferedReader(new FileReader(\"names.txt\"));\n ArrayList<String> temp = new ArrayList(0);\n temp = createArray(a);\n names = createArray(b);\n a.close();\n b.close();\n for (String x : temp) {\n points.add(Integer.valueOf(x));\n }\n\n\n }catch (IOException e)\n {}\n\n }", "Score() {\r\n\t\tsaveload = new SaveLoad();\r\n\t\thighscoreFile = new File(saveload.fileDirectory() + File.separator + \"highscore.shipz\");\r\n\t\tsaveload.makeDirectory(highscoreFile);\r\n\t\tcomboPlayer1 = 1;\r\n\t\tcomboPlayer2 = 1;\r\n\t\tscorePlayer1 = 0;\r\n\t\tscorePlayer2 = 0;\r\n\t}", "public HighScore(){\n readFile();\n sortHighscores();\n }", "public Leaderboard() {\n filePath = new File(\"Files\").getAbsolutePath();\n highScores = \"scores\";\n\n topScores = new ArrayList<>();\n topName = new ArrayList<>();\n }", "public HighScores(){\r\n\t\tHighScores objRead = null;\r\n\t\t\r\n\t\ttry {\r\n\t\t\t// lendo o arquivo de melhores pontuacoes\r\n\t\t\tFileInputStream fis = new FileInputStream(highScoresFilename);\r\n\t\t\tObjectInputStream ois = new ObjectInputStream(fis);\r\n\t\t\tobjRead = (HighScores) ois.readObject();\r\n\t\t\tois.close();\r\n\t\t} catch (Exception e){\r\n\t\t\t// caso o arquivo nao possa ser lido\r\n\t\t\tobjRead = null;\r\n\t\t} finally {\r\n\t\t\tif (objRead != null){\r\n\t\t\t\tthis.scoreNumber = objRead.scoreNumber;\r\n\t\t\t\tthis.highScores = objRead.highScores;\r\n\t\t\t} else {\r\n\t\t\t\tthis.highScores = new Score[scoreNumber];\r\n\t\t\t\tfor (int i = 0; i < scoreNumber; i++)\r\n\t\t\t\t\thighScores[i] = new Score(\"\", Integer.MIN_VALUE);\r\n\t\t\t}\r\n\t\t}\r\n\t}", "public void newGame(){\n fireRecord.clear(); //Clear all arrays\n hearts.clear(); \n waters.clear();\n player = new Player();\n fireRecord.add(new Fire());\n \n delay = false;\n initScore= 0; //reset all variables\n moveCount = 0;\n heartScore = 1;\n waterCap = 0;\n }", "public Game()\r\n\t{\r\n\t\tenemy = new ArrayList<Enemy>();\r\n\t\tbullets = new ArrayList<Bullet>();\r\n\t\tplatforms = new ArrayList<Platforms>();\r\n\t\tsetAlive(false);\r\n\t\tlevel = 1;\r\n\t\tscore = 0;\r\n\t}", "public Game() {\r\n\r\n\t\tmakeFrame();\r\n\t\tisClicked = false;\r\n\t\tisPlaying = false;\r\n\t\tlevelEasy = true;\r\n\t\tlevelIntermediate = false;\r\n\t\tlevelHard = false;\r\n\t\tplayerScore = 0;\r\n\r\n\t}", "public void newGame() {\n\t\tplayer1Score = 0;\r\n\t\tplayer2Score = 0;\r\n\t\tif (score != null) {\r\n\t\t\tdrawScore();\r\n\t\t}\r\n\t\treset();\r\n\t}", "private void initializeGame() {\n score = 0;\n scoreTimer = 0;\n rockTimer = 0;\n touchActive = false;\n gameOver = false;\n gameWon = false;\n currentSpeed = 1;\n gameLevel = 1;\n speedTimer = 0;\n }", "private void readFile() {\n\t\tint newPlayerScore = level.animal.getPoints();\n\t\t\n\t\tlevel.worDim = 30;\n\t\tlevel.wordShift = 25;\n\t\tlevel.digDim = 30;\n\t\tlevel.digShift = 25;\n\t\t\n\t\tfor( int y =0; y<10; y++ ) { //display placeholder numbers\n\t\t\tfor( int x=0; x<4; x++ ) {\n\t\t\t\tbackground.add(new Digit( 0, 30, 470 - (25*x), 200 + (35*y) ) );\n\t\t\t}\n\t\t}\n\t\t\n\t\ttry { //display highscores from highscores.txt\n\t\t\tScanner fileReader = new Scanner(new File( System.getProperty(\"user.dir\") + \"\\\\highscores.txt\"));\n\t\t\t\n\t\t\tint loopCount = 0;\n\t\t\twhile( loopCount < 10 ) {\n\t\t\t\tString playerName = fileReader.next() ;\n\t\t\t\tString playerScore = fileReader.next() ;\n\t\t\t\tint score=Integer.parseInt(playerScore);\n\t\t\t\t\n\t\t\t\tif( newPlayerScore >= score && newHighScore == false ) {\n\t\t\t\t\tstopAt = loopCount;\n\t\t\t\t\tnewHighScore = true;\n\t\t\t\t\tlevel.wordY = 200 + (35*loopCount);\n\t\t\t\t\t\n\t\t\t\t\tpointer = new Icon(\"pointer.png\", 30, 75, 200 + (35*loopCount) );// add pointer indicator\n\t\t\t\t\tbackground.add( pointer ); \n\t\t\t\t\tlevel.setNumber(newPlayerScore, 470, 200 + (35*loopCount));\n\t\t\t\t\tloopCount += 1;\n\t\t\t\t\tlevel.setWord(playerName, 10, 100, 200 + (35*loopCount));\n\t\t\t\t\tlevel.setNumber(score, 470, 200 + (35*loopCount));\n\t\t\t\t\tloopCount += 1;\n\t\t\t\t}else {\n\t\t\t\t\tlevel.setWord(playerName, 10, 100, 200 + (35*loopCount));\n\t\t\t\t\tlevel.setNumber(score, 470, 200 + (35*loopCount));\n\t\t\t\t\tloopCount += 1;\n\t\t\t\t}\n\t\t\t}//end while\n\t\t\tfileReader.close();\n\t\t\tif( newHighScore ) {\n\t\t\t\tnewHighScoreAlert();\n\t\t\t}else {\n\t\t\t\tgameOverAlert();\n\t\t\t}\n } catch (Exception e) {\n \tSystem.out.print(\"ERROR: Line 168: Unable to read file\");\n //e.printStackTrace();\n }\n\t}", "public Game() { \n super(1000, 640, 1);\n updateScore(0);\n }", "public Statistics() {\r\n\t\tcurrentGameTime = 0;\r\n\t\ttotalTime = 0;\r\n\t\tminTime = Integer.MAX_VALUE;\r\n\t\tmaxTime = 0;\r\n\t\tscores = new int[2];\r\n\t\twinnerId = 0;\r\n\t\tvictories = new int[2];\r\n\t\tgameCount = 0;\r\n\t}", "public SaveGame() {\n\t\tlives = 0;\n\t\tscore = 0;\n\t\tbrainX = 0;\n\t\tbrainY = 0;\n\t\tzombieX = 0;\n\t}", "public Highscore() {\n scores = new ArrayList<Score>();\n }", "public void newGame() {\n gameString = playerPlays = computerPlays = \"\";\n pScore = cScore = 0;\n setLabels();\n }", "public Game()\r\n { \r\n // Create a new world with 800x600 cells with a cell size of 1x1 pixels.\r\n super(800, 600, 1);\r\n \r\n // add grill obj on left\r\n grill = new Grill();\r\n addObject(grill, 200, 400);\r\n \r\n // add table on right\r\n prepTable = new PrepTable();\r\n addObject(prepTable, 600, 400);\r\n \r\n // add all the table buttons\r\n addTableButtons();\r\n \r\n // add timer text\r\n timerText = new Text(\"2:00\");\r\n addObject(timerText, 60, 30);\r\n \r\n // setup the timer\r\n frameRate = 60;\r\n timeLeft = frameRate * 2;\r\n \r\n // setup the points\r\n score = 0;\r\n scoreText = new Text(\"$0\");\r\n addObject(scoreText, 50, 80);\r\n \r\n // setup orders\r\n orders = new ArrayList<Order>();\r\n orderTimer = frameRate * 4; // start with a 4 sec delay before the first order\r\n \r\n // the game is still updating\r\n stillRunning = true;\r\n \r\n // fix layering order\r\n setPaintOrder(Text.class, Topping.class, Button.class, Patty.class, Order.class);\r\n \r\n // set order variance\r\n orderVariance = 2 * frameRate;\r\n \r\n // init seconds counter\r\n totalSecondsElapsed = 0;\r\n }", "public BattleShipGame(){\n ui = new UserInterface();\n played = false;\n highestScore = 0;\n }", "public Game() throws IOException\n\t {\n\t\t //reading the game.txt file \n\t\t try\n\t\t\t{\n\t\t\t \tHeliCopIn = new Scanner(HeliCopFile);\n\t\t\t\tString line = \"\";\n\t\t\t\twhile ( HeliCopIn.hasNext() )\n\t\t\t\t{\n\t\t\t\t\tline = HeliCopIn.nextLine();\n\t\t\t\t\tStringTokenizer GameTokenizer = new StringTokenizer(line);\n\t\t\t\t\tif ( !GameTokenizer.hasMoreTokens() || GameTokenizer.countTokens() != 5 )\n\t\t\t\t\t{\n\t\t\t\t\t\tcontinue;\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\tint XCoord = Integer.parseInt(GameTokenizer.nextToken());\n\t\t\t\t\tint YCoord = Integer.parseInt(GameTokenizer.nextToken());\n\t\t\t\t\tint health = Integer.parseInt(GameTokenizer.nextToken());\n\t\t\t\t\tint NumRocketsStart = Integer.parseInt(GameTokenizer.nextToken());\n\t\t\t\t\tint NumBulletsStart = Integer.parseInt(GameTokenizer.nextToken());\n\t\t\t\t\tif (Player.Validate(line) == true)\n\t\t\t\t\t{\n\t\t\t\t\t\t//creating a new player and initialising the number of bullets; \n\t\t\t\t\t pl = new Player(XCoord,YCoord,health,NumRocketsStart,NumBulletsStart); \n\t\t\t\t\t pl.NumBullets = pl.GetNumBulletsStart(); \n\t\t\t\t\t pl.NumRockets = pl.GetnumRocketsStart(); \n\t\t\t\t\t \n\t\t\t\t\t//\tSystem.out.println(XCoord) ;\n\t\t\t\t\t\t//System.out.println(YCoord) ;\n\t\t\t\t\t\t//System.out.println(health) ;\n\t\t\t\t\t\t//System.out.println(NumRocketsStart) ;\n\t\t\t\t\t\t//System.out.println(NumBulletsStart) ;\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\n\t\t\t\t}\n\t\t\t}\n\t\t\tcatch (FileNotFoundException ex)\n\t\t\t{\n\t\t\t\tex.printStackTrace();\n\t\t\t}\n\t\t\t\n\t\t\tfinally\n\t\t\t{\n\t\t\t\tif ( HeliCopIn != null )\n\t\t\t\t{\n\t\t\t\t\tHeliCopIn.close();\n\t\t\t\t}\n\t\t\t}\n\t\t \n\t\t \n\t\t //loading the background image and explosion image\n\t\t try {\n\t\t\t\tBackGround = ImageIO.read(new File(\"images\\\\finalcloud.jpg\"));\n\t\t\t} catch (IOException e) {\n\t\t\t\te.printStackTrace();\n\t\t\t} \n\t\t\t\n\t\t\ttry {\n\t\t\t\tExplosion = ImageIO.read(new File(\"images\\\\explosion.gif\"));\n\t\t\t} catch (IOException e) {\n\t\t\t\te.printStackTrace();\n\t\t\t} \n\t\t\t\n\t\t\ttry {\n\t\t\t\tGameOver = ImageIO.read(new File(\"images\\\\gameover.gif\"));\n\t\t\t} catch (IOException e) {\n\t\t\t\te.printStackTrace();\n\t\t\t} \n\t\t\t\n\t\t\ttry {\n\t\t\t\tGameWin = ImageIO.read(new File(\"images\\\\gamewin.gif\"));\n\t\t\t} catch (IOException e) {\n\t\t\t\te.printStackTrace();\n\t\t\t} \n\t\n\t\t\t\t\t\t\t\t\t\n\t\t\tupdate();\n\t\t\t\n\t\t\tint del = 2000; \n\t\t // createEnemyHelicopter(); \n\t\t\ttime = new Timer(del , new ActionListener()\n\t\t\t{\n\t\t\t\t@Override\n\t\t\t\tpublic void actionPerformed(ActionEvent e) \n\t\t\t\t{\n\t\t\t\t\tcreateEnemyHelicopter(); \n\t\t\t\t\t\n\t\t\t\t}\n\n\t\t\t\t\n\t\t\t});\n\t\t\ttime.start();\n\t\t\t\n\t\t\ttime = new Timer(delay , new ActionListener()\n\t\t\t{\n\t\t\t\t@Override\n\t\t\t\tpublic void actionPerformed(ActionEvent e) \n\t\t\t\t{\n\t\t\t\t\tif (GameOn==true ){\n\t\t\t\t\t\t updateEnemies(); \n\t\t\t\t \t UpdateBullets(); \n\t\t\t\t \t UpdateRockets(); \n\t\t\t\t \t pl.Update(); \n\t\t\t\t \t repaint();\n\t\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t \t try {\n\t\t\t\t\t\tWiriteToBinary();\n\t\t\t\t\t} catch (IOException e1) {\n\t\t\t\t\t\n\t\t\t\t\t\te1.printStackTrace();\n\t\t\t\t\t} \n\t\t\t\t}\n\n\t\t\t});\n\t\t\ttime.start();\n\t\t\n\t\t\t//WiriteToBinary(); \n\t\t\t\n\t }", "public void initialise_new_game() {\n\n data.read_from_file(\"maxus2.txt\");\n\n mySound.initialise();\n\n pacman.init();\n ghost.init();\n\n score.initialise();\n }", "public GameLogic(){\n\t\tplayerPosition = new HashMap<Integer, int[]>();\n\t\tcollectedGold = new HashMap<Integer, Integer>();\n\t\tmap = new Map();\n\t}", "public void init() {\n for (int i = 0; i < MAX_SCORES; i++) {\n highScores[i] = 0;\n names[i] = \"---\";\n }\n }", "public Scoreboard() {\n try {\n\n Scanner reader = new Scanner(new File(\"data/scores.txt\"));\n\n while (reader.hasNext()) {\n String name = reader.next();\n int score = reader.nextInt();\n\n QuizTaker taker = new QuizTaker(name, score);\n allQuizTakers.add(taker); //Add this new QuizTaker to the ArrayList of QuizTakers *NOTE1\n\n //If the QuizTaker's name already exists in the ArrayList of QuizTakers, then their new score is added to that QuizTaker\n for (int i = 0; i < allQuizTakers.size() - 1; i++) {\n if (allQuizTakers.get(i).getName().equals(taker.getName())) { //If name is found\n allQuizTakers.get(i).addScore(score); //Add this new score to the pre-existing QuizTaker's ArrayList of scores\n Sorter.quickSort(allQuizTakers.get(i).getMyScores(), 0, //Sort all the scores of the QuizTaker\n allQuizTakers.get(i).getMyScores().size() - 1);\n allQuizTakers.remove(allQuizTakers.size() - 1); //Remove the new QuizTaker object made at NOTE1 to prevent duplicates\n }\n }\n\n }\n } catch (Exception e) {\n e.printStackTrace();\n }\n }", "public Score()\n {\n // initialize instance variables\n score = 0;\n }", "public Game()\n {\n // initialise instance variables\n playerName = \"\";\n gameTotal = 0;\n }", "public GameSession()\r\n {\r\n red = new Player(\"Red\");\r\n blue = new Player(\"Blue\");\r\n \r\n gameBoard = new Board();\r\n \r\n redRounds = 0;\r\n blueRounds = 0;\r\n \r\n currentRedScore = 0;\r\n currentBlueScore = 0;\r\n \r\n matchEnd = false;\r\n roundEnd = false;\r\n \r\n redWin = false;\r\n blueWin = false;\r\n \r\n move[0] = -1;\r\n move[1] = -1;\r\n \r\n line[0] = -1;\r\n line[1] = -1;\r\n }", "public void initGame() {\n\r\n\t\tscore = 0;\r\n\t\tshipsLeft = MAX_SHIPS;\r\n\t\tasteroidsSpeed = MIN_ROCK_SPEED;\r\n\t\tnewShipScore = NEW_SHIP_POINTS;\r\n\t\tnewUfoScore = NEW_UFO_POINTS;\r\n\t\tShip.initShip();\r\n\t\tinitPhotons();\r\n\t\tstopUfo();\r\n\t\tstopMissle();\r\n\t\tinitAsteroids();\r\n\t\tinitExplosions();\r\n\t\tplaying = true;\r\n\t\tpaused = false;\r\n\t\tphotonTime = System.currentTimeMillis();\r\n\t}", "public Scores() {\n list = new int[50];\n }", "public void reset() {\n\t\tFile file = new File(\"src/LevelData.txt\");\n\t\tpaddle = new Paddle(COURT_WIDTH, COURT_HEIGHT, Color.BLACK);\n\t\tbricks = new Bricks(COURT_WIDTH, COURT_HEIGHT, file);\n\t\tball = new Ball(COURT_WIDTH, COURT_HEIGHT, 5, Color.BLACK);\n\n\t\tplaying = true;\n\t\tcurrScoreVal = 0;\n\t\tlivesLeft = 3;\n\t\tstatus.setText(\"Running...\");\n\t\tyourScore.setText(\"Your Score: 0\");\n\t\tlives.setText(\" Lives: \" + livesLeft.toString() + \"| \");\n\n\t\t// Making sure that this component has the keyboard focus\n\t\trequestFocusInWindow();\n\t}", "@SuppressWarnings(\"unchecked\")\n\tpublic void init()\n\t{\n\t\tscore = 0;\n\t\tlives = 3;\n\t\tgameTime = 0;\n\n\t\t\t/*initialize an array of array lists\n\t\t\tfor storing game objects currently in world\t\t\t\n\t\t\tAsteroids: index 0\n\t\t\tPlayer ship: index 1\n\t\t\tNon player ship: index 2\n\t\t\tenemy missile: index 3\n\t\t\tfriendly missile: index 4\n\t\t\tSpace station: index 5\n\t\t\t*/\t\t\n\t\t\tgameObj = new ArrayList[6];\n\t\t\tfor(int i = 0; i<gameObj.length; i++)\n\t\t\t{\n\t\t\t\tgameObj[i] = new ArrayList<GameObject>();\n\t\t\t}\n\t}", "public ScoreManager() {\n\t\tscore = 0;\n\t}", "public void initialize_it(){\n\t\treadScoreFromFile();\n\t\twell = new Color[14][25];\n\t\tfor(int i = 0; i < well.length; i++){\n\t\t\tfor(int j = 0; j < well[0].length; j++){\n\t\t\t\tif(i == 0 || i == well.length-1 || j == well[0].length - 1)\n\t\t\t\t\twell[i][j] = Color.GRAY;\n\t\t\t\telse\n\t\t\t\t\twell[i][j] = Color.WHITE;\n\t\t\t}\n\t\t}\n\t\tfor(int i = 0; i < next_pieces_array.length; i++){\n\t\t\tfor(int j = 0; j<next_pieces_array[0].length; j++){\n\t\t\t\t\tnext_pieces_array[i][j] = Color.WHITE;\n\t\t\t}\n\t\t}\n\t\tscore = 0;\n\t\tgetNewPiece();\n\t\tsetNewPiece();\n\t\tgetNewPiece();\n\t}", "public Scoreboard() {\n\t}", "@Override\n public void display() {\n Game game = PiggysRevenge.getCurrentGame();\n int bricks = 0;\n House house = game.getHouse();\n if (game.getHouse().isCompleted()) {\n try {\n bricks = GameControl.calcNumberOfBricks(house.getLength(), house.getWidth(), house.getHeight(), house.getStories());\n } catch (GameControlException ex) {\n this.console.println(ex.getMessage());\n }\n } else {\n bricks = 0;\n }\n int turns = game.getTurns();\n boolean hasEaten = game.getPlayer().isHasEaten();\n boolean wolfKilled = game.isWolfKilled();\n int result = 0;\n try {\n result = GameControl.calcScore(bricks, turns, hasEaten, wolfKilled);\n } catch (GameControlException ex) {\n this.console.println(ex.getMessage());\n }\n if (result>0) {\n this.console.println(\"+\" + (bricks*10) + \" Points for building the house.\");\n this.console.println(\"-\" + (turns*10) + \" Points for the number of turns taken (\" + turns + \" turns).\");\n } else {\n this.console.println(\"You get no points if you do not build a house,\"\n + \"\\neat the roast beef, or kill the wolf.\");\n }\n if (hasEaten) {\n this.console.println(\"+1000 Points for eating roast beef.\");\n }\n if (wolfKilled) {\n this.console.println(\"+2000 Points for killing the wolf.\");\n }\n this.console.println(\"\\nYOUR SCORE IS: \" + result);\n\n if (gameOver) {\n HighScore[] highScores;\n\n File varTmpDir = new File(\"highscores.txt\");\n\n if (varTmpDir.exists()) {\n try (FileInputStream fips = new FileInputStream(\"highscores.txt\");\n ObjectInputStream input = new ObjectInputStream(fips);) {\n \n\n highScores = (HighScore[]) input.readObject();\n highScores[10] = new HighScore(game.getPlayer().getName(), result, house);\n\n for (int n = 0; n < highScores.length; n++) {\n for (int m = 0; m < highScores.length - 1 - n; m++) {\n if (highScores[m].getScore() < highScores[m + 1].getScore()\n || \"---\".equals(highScores[m].getName())) {\n HighScore swapHighScore = highScores[m];\n highScores[m] = highScores[m + 1];\n highScores[m + 1] = swapHighScore;\n }\n }\n }\n\n try (FileOutputStream fops = new FileOutputStream(\"highscores.txt\");\n ObjectOutputStream output = new ObjectOutputStream(fops);) {\n \n output.writeObject(highScores);\n this.console.println(\"Score saved successfully\");\n \n } catch (Exception e) {\n ErrorView.display(\"ScoreView\", e.getMessage());\n }\n } catch (Exception e) {\n ErrorView.display(\"ScoreView\", e.getMessage());\n }\n\n } else {\n try (FileOutputStream fops = new FileOutputStream(\"highscores.txt\");\n ObjectOutputStream output = new ObjectOutputStream(fops);) {\n \n\n highScores = new HighScore[11];\n for (int i = 0; i < highScores.length; i++){\n highScores[i] = new HighScore(\"---\", 0, new House(5, 5, 6, 1));\n \n }\n\n highScores[0] = new HighScore(game.getPlayer().getName(), result, house);\n output.writeObject(highScores);\n this.console.println(\"New highscore file created. Score saved successfully\");\n } catch (Exception e) {\n ErrorView.display(\"ScoreView\", e.getMessage());\n }\n\n }\n }\n }", "ScoreboardFileHandler() {\n\t\tscoreboards = new HashMap<String, Scoreboard>();\n\t}", "public Game() {\n board = new TileState[BOARD_SIZE][BOARD_SIZE];\n for(int i=0; i<BOARD_SIZE; i++)\n for(int j=0; j<BOARD_SIZE; j++)\n board[i][j] = TileState.BLANK;\n movesPlayed = 0;\n playerOneTurn = true;\n gameOver = false;\n }", "private void initializeFile()\n\t{\n\t\tHighScore[] h={new HighScore(0,0,\" \"),new HighScore(0,0,\" \"),new HighScore(0,0,\" \"),\n\t\t\t\tnew HighScore(0,0,\" \"),new HighScore(0,0,\" \"),new HighScore(0,0,\" \"),\n\t\t\t\tnew HighScore(0,0,\" \"),new HighScore(0,0,\" \"),new HighScore(0,0,\" \"),\n\t\t\t\tnew HighScore(0,0,\" \")};\n\t\ttry \n\t\t{\n\t\t\tSystem.out.println(\"Hi1\");\n\t\t\tObjectOutputStream o=new ObjectOutputStream(new FileOutputStream(\"HighScores.dat\"));\n\t\t\to.writeObject(h);\n\t\t\to.close();\n\t\t} catch (FileNotFoundException e) {e.printStackTrace();}\n\t\tcatch (IOException e) {e.printStackTrace();}\n\t}", "public Game() {\n \tthis.height = 0;\n \tthis.width = 0;\n \tthis.map=\"\";\n \tthis.table=null;\n \tthis.fileName=\"\";\n }", "public CardGame(){\n this.handOne = new Hand();\n this.handTwo = new Hand();\n this.gameDeck = new Deck();\n this.playerScore = 0;\n this.oppoScore = 0;\n }", "public HighScore ()\n {\n this.name = \"P'ngball Grandmaster\";\n this.score = 0;\n this.level = \"level 1\";\n }", "public Game() \n {\n parser = new Parser();\n name = new String();\n player = new Player();\n ai = new AI();\n createRooms();\n rand = -1;\n enemyPresent = false;\n wantToQuit = false;\n alive = true;\n createItems();\n createWeapons();\n createEnemy();\n setEnemy();\n setItems();\n setWeapons();\n setExits();\n }", "private GameStats() {\r\n\t\t_players = new LinkedList<MovingUnit>();\r\n\t\t_fullWalls = new LinkedList<Block>();\r\n\t\t_halfWalls = new LinkedList<Block>();\r\n\t\t_playerOccupied = new LinkedList<Point>();\r\n\t}", "public void gameOver ()\n {\n Greenfoot.delay (50);\n if (gameOver)\n {\n fader = new Fader (); // create a new fader\n addObject (fader, 400, 300); // add the fader object to the world\n if (UserInfo.isStorageAvailable()) {\n HighScore highScore = new HighScore (score);\n addObject (highScore, 300, 170);\n }\n Greenfoot.stop();\n }\n }", "public ScoreList(){\r\n\t\tnumItems = 0;\r\n\t\tscoreList = new Score[100];\r\n\t}", "O_Game(JFrame inFrame) {\n \t\t// Initiate object variables\n \t\tgameWindow \t\t= inFrame;\n \t\trooms \t\t\t= new ArrayList<ArrayList<GameObjects>>();\n \t\tfigure \t\t\t= new Figure(0, 0, gameWindow);\n \t\tint element, line, column, dest; //for room generation, saves the current char (as int),the line its from, and the column its in\n \t\t\n \t\t\n \t\t// iterate over all objects and rooms within the level, all objects run within [0...800)x[0...600)\n \t\t// TODO: make that shit better!!, implement the current level\n \t\tfor (int i=0; i<3; i++) {\n \t\t\tArrayList<GameObjects> temp = new ArrayList<GameObjects>();\n \t\t\ttemp.add(figure);\n \t\t\t\n \t\t\ttry {\n \t\t\t\tInputStream roomStream = new FileInputStream(\"Level/raum\"+i+\".txt\");\n \t\t\t\tReader roomReader = new InputStreamReader (roomStream);\n \t\t\t\t\n \t\t\t\telement = 0;\n \t\t\t\tcolumn = 0; \n \t\t\t\tline = 0;\t\n \t\t\t\tdest = 0;\n \t\t\t\twhile ((element = roomReader.read()) != -1){ //Goes trough the whole raumX.txt, and spawns Objects at their Positions\n \t\t\t\t\t\n \t\t\t\t\tswitch (element) { \t//ASCII: W=87 D=68 E=69\n \t\t\t\t\tcase 87:\t\t\t//In order of probability\n \t\t\t\t\t\ttemp.add(new Wall(column-1, line-1, 0.5, 1)); \t//-1 because the top left corner seems to have\n \t\t\t\t\t\tbreak;\t\t\t\t\t\t\t\t\t\t\t//the coordinates 1:1\n \t\t\t\t\tcase 69:\n \t\t\t\t\t\ttemp.add(new Enemy(column-1, line-1, 0.5, gameWindow));\n \t\t\t\t\t\tbreak;\n \t\t\t\t\tcase 68: //looks where the door is, then sets destination accordingly\n \t\t\t\t\t\t\n \t\t\t\t\t\tif (line-1 == 0) \t{dest = 1;} //Door is on the upper edge of the field, door should lead up\n \t\t\t\t\t\tif (line-1 == 14) \t{dest = 3;} //Door is on the bottom edge of the field, door should lead down\n \t\t\t\t\t\tif (column-1==24)\t{dest = 2;} //Door is on the right edge of the field, door should lead right\n \t\t\t\t\t\tif (column-1==0) \t{dest = 4;} //Door is on the left edge of the field, door should lead left\n \t\t\t\t\t\t\n \t\t\t\t\t\ttemp.add(new Door(column-1, line-1, 0.5, true, true, dest)); //creating door with correct destination\n \t\t\t\t\t\tbreak;\t\n \t\t\t\t\t}\n \t\t\t\t\tcolumn++; //sets column up for the next cycle of the switch-case\n \t\t\t\t\t\tif (column==25){ //since we use 0-24 chars per line, the 25th should trigger the next line\n \t\t\t\t\t\t\tcolumn = 0;\n \t\t\t\t\t\t\tline++;\n \t\t\t\t\t\t}\n \t\t\t\t\t}\n\n \t\t\t\t} catch (IOException e) {\n \t\t\t\tSystem.out.println(\"File not found, system exiting.\");\n \t\t\t\tSystem.exit(1);\n \t\t\t}\n \t\t\t\n \t\t\trooms.add(i, temp);\n \t\t}\n \n \t\t// Initialize Logic and Graphics\n \t\tgraphics \t= new GameDrawer(rooms, gameWindow);\n \t\tlogic \t\t= new Logic(rooms, figure, this);\n \t\t\n \t\t// set contentPane to JPanel returned by GameDrawer, set GameIO as keyboard manager\n \t\tgameWindow.setContentPane(graphics.init(logic));\n \t\tKeyboardFocusManager manager = KeyboardFocusManager.getCurrentKeyboardFocusManager();\n manager.addKeyEventDispatcher(new Game_IO(logic));\n \t}", "public void start() {\n clear();\n // Assigning chess pieces to players.\n whitePieces.add(new Piece(Owner.WHITE, Who.KING, Rank.R1, File.E));\n whitePieces.add(new Piece(Owner.WHITE, Who.QUEEN, Rank.R1, File.D));\n whitePieces.add(new Piece(Owner.WHITE, Who.ROOK, Rank.R1, File.A));\n whitePieces.add(new Piece(Owner.WHITE, Who.ROOK, Rank.R1, File.H));\n whitePieces.add(new Piece(Owner.WHITE, Who.BISHOP, Rank.R1, File.C));\n whitePieces.add(new Piece(Owner.WHITE, Who.BISHOP, Rank.R1, File.F));\n whitePieces.add(new Piece(Owner.WHITE, Who.KNIGHT, Rank.R1, File.B));\n whitePieces.add(new Piece(Owner.WHITE, Who.KNIGHT, Rank.R1, File.G));\n whitePieces.add(new Piece(Owner.WHITE, Who.PAWN, Rank.R2, File.A));\n whitePieces.add(new Piece(Owner.WHITE, Who.PAWN, Rank.R2, File.B));\n whitePieces.add(new Piece(Owner.WHITE, Who.PAWN, Rank.R2, File.C));\n whitePieces.add(new Piece(Owner.WHITE, Who.PAWN, Rank.R2, File.D));\n whitePieces.add(new Piece(Owner.WHITE, Who.PAWN, Rank.R2, File.E));\n whitePieces.add(new Piece(Owner.WHITE, Who.PAWN, Rank.R2, File.F));\n whitePieces.add(new Piece(Owner.WHITE, Who.PAWN, Rank.R2, File.G));\n whitePieces.add(new Piece(Owner.WHITE, Who.PAWN, Rank.R2, File.H));\n\n for (Piece p : whitePieces) {\n board[p.row.ordinal()][p.col.ordinal()] = p;\n }\n\n blackPieces.add(new Piece(Owner.BLACK, Who.KING, Rank.R8, File.E));\n blackPieces.add(new Piece(Owner.BLACK, Who.QUEEN, Rank.R8, File.D));\n blackPieces.add(new Piece(Owner.BLACK, Who.ROOK, Rank.R8, File.A));\n blackPieces.add(new Piece(Owner.BLACK, Who.ROOK, Rank.R8, File.H));\n blackPieces.add(new Piece(Owner.BLACK, Who.BISHOP, Rank.R8, File.C));\n blackPieces.add(new Piece(Owner.BLACK, Who.BISHOP, Rank.R8, File.F));\n blackPieces.add(new Piece(Owner.BLACK, Who.KNIGHT, Rank.R8, File.B));\n blackPieces.add(new Piece(Owner.BLACK, Who.KNIGHT, Rank.R8, File.G));\n blackPieces.add(new Piece(Owner.BLACK, Who.PAWN, Rank.R7, File.A));\n blackPieces.add(new Piece(Owner.BLACK, Who.PAWN, Rank.R7, File.B));\n blackPieces.add(new Piece(Owner.BLACK, Who.PAWN, Rank.R7, File.C));\n blackPieces.add(new Piece(Owner.BLACK, Who.PAWN, Rank.R7, File.D));\n blackPieces.add(new Piece(Owner.BLACK, Who.PAWN, Rank.R7, File.E));\n blackPieces.add(new Piece(Owner.BLACK, Who.PAWN, Rank.R7, File.F));\n blackPieces.add(new Piece(Owner.BLACK, Who.PAWN, Rank.R7, File.G));\n blackPieces.add(new Piece(Owner.BLACK, Who.PAWN, Rank.R7, File.H));\n\n for (Piece p : blackPieces) {\n board[p.row.ordinal()][p.col.ordinal()] = p;\n }\n\n whoseTurn = Owner.WHITE;\n canCastle = 15;\n passer = null;\n movesDone = lastEatMove = 0;\n }", "public GameLevel(KeyboardSensor keyboard, GUI gui, LevelInformation info, AnimationRunner runner, Counter score,\r\n Counter lives) {\r\n this.sprites = new SpriteCollection();\r\n this.environment = new GameEnvironment();\r\n this.score = score;\r\n this.numberOfLives = lives;\r\n this.ballsList = new ArrayList<>();\r\n this.runner = runner;\r\n this.keyboard = keyboard;\r\n this.gui = gui;\r\n this.info = info;\r\n this.remainingBlocks = new Counter(info.numberOfBlocksToRemove());\r\n\r\n }", "public GameManager(GraphicsContext gc){\n \n mouseClickSubs = new ArrayList<>();\n mouseMoveSubs = new ArrayList<>();\n discardPile = new ArrayList<>();\n winner = 0;\n\n // Init gameDrawer\n graphicsContext = gc;\n gameDrawer = new GameDrawer(this);\n \n // Init CurrentPlayer dan oppositePlayer\n currentPlayer = new Player(false);\n oppositePlayer = new Player(true);\n \n // Generate kartu dan masukin ke player yang bersangkutan, dan simpan ke drawListnya GameDrawer\n DataLoader dl = new DataLoader();\n try {\n dl.loadCards(currentPlayer, oppositePlayer);\n } catch (Exception e) {\n System.out.println(e.toString());\n // Data pada csv tidak valid, perlu restart...\n }\n if (currentPlayer.getPlayerDeck().size() > 60 || 40 > currentPlayer.getPlayerDeck().size()) {\n throw new Error(\"Player 1 has an invalid deck size. Decks need to have 40 to 60 cards.\");\n }\n if (oppositePlayer.getPlayerDeck().size() > 60 || 40 > oppositePlayer.getPlayerDeck().size()) {\n throw new Error(\"Player 2 has an invalid deck size. Decks need to have 40 to 60 cards.\");\n }\n\n for (Card card : currentPlayer.getPlayerDeck()) {\n gameDrawer.addToDrawList(card.getSprite());\n card.getSprite().changePos(55, 656, true);\n card.getSprite().changeScale(-0.32, 0.32, true);\n }\n for (Card card : oppositePlayer.getPlayerDeck()) {\n gameDrawer.addToDrawList(card.getSprite());\n card.getSprite().changePos(55, 64, true);\n card.getSprite().changeScale(-0.32, 0.32, true);\n }\n \n // Init exit button dan masukin spritenya ke drawlistnya gamedrawer\n // Masukin 7 kartu ke tangan kedua player\n for (int i = 0; i < 7; i++) {\n currentPlayer.addPlayerHands(currentPlayer.getCardFromDeck());\n }\n for (int i = 0; i < 7; i++) {\n oppositePlayer.addPlayerHands(oppositePlayer.getCardFromDeck());\n }\n\n // Init tombol endturn\n registerMouseClick(new EndButton(this));\n\n // Init state dengan draw phase\n gameState = new DrawPhase(this);\n gameState.startTurn();\n }", "public StatsTracker() {\n\t\tthis.handStats = new ArrayList<HandStats>();\n\t}", "@Override\n\tpublic void newGame() {\n\t\tround = 0;\n\t\tnewRound();\n\t\t\n\t\tgameOverSoundPlayed = false;\n\t\t\n\t\t// Reset player scores\n\t\tfor (Player player : players) {\n\t\t\tsetPlayerScore(player, 0);\n\t\t}\n\t\t\n\t\t// Reset all button press counters\n\t\tfor (IButton button : buttons) {\n\t\t\tbutton.resetPressCounter();\n\t\t}\n\t\t\n\t\t// Start the game timer\n\t\tdeltaTimeAlive = getPhysicsTickMillis();\n\t\tdeltaTimeDead = deltaTimeAlive / 4;\n\t}", "public void newScore()\n {\n score.clear();\n }", "public void loadScores() {\n try {\n File f = new File(filePath, highScores);\n if(!f.isFile()){\n createSaveData();\n }\n BufferedReader reader = new BufferedReader(new InputStreamReader(new FileInputStream(f)));\n\n topScores.clear();\n topName.clear();\n\n String[] scores = reader.readLine().split(\"-\");\n String[] names = reader.readLine().split(\"-\");\n\n for (int i =0; i < scores.length; i++){\n topScores.add(Integer.parseInt(scores[i]));\n topName.add(names[i]);\n }\n reader.close();\n } catch (Exception e) {\n e.printStackTrace();\n }\n }", "public Scoreboard() { // constructor to initialize \n\t\tfor (int i = 1; i < 10; i++) { // adds the first 9 frames, hence the start from i = 1.\n\t\t\tframes.add(new Frame(this));\n\t\t}\n\t\tframes.add(new FinalFrame(this)); // 10th frame is added separately with its own properties. \n\t\t\n\t\tcurrent = frames.get(0); // current is the first added frame at 0th index. \n\t}", "public void reset ()\n\t{\n\t\t//The PaperAirplane and the walls (both types) use their reconstruct ()\n\t\t//method to set themselves back to their starting points.\n\t\tp.reconstruct ();\n\t\tfor (int i = 0; i < w.length; i++)\n\t\t\tw[i].reconstruct ();\n\t\t\n\t\tfor (int i = 0; i < sW.length; i++)\n\t\t\tsW[i].reconstruct ();\n\t\t\t\n\t\t//the time is reset using the resetTime () method from the Timer class.\n\t\ttime.resetTime ();\n\t\t\n\t\t//the score is reset using the reconstruct method from the Score class.\n\t\tscore.reconstruct ();\n\t\t\n\t\t//The following variables are set back to their original values set in\n\t\t//the driver class.\n\t\ttimePassed = 0;\t\n\t\tnumClicks = 0;\n\t\teventFrame = 0;\n\t\tlevel = 1;\n\t\txClouds1 = 0;\n\t\txClouds2 = -500;\n\t\tyBkg1 = 0;\n\t\tyBkg2 = 600;\t\t\n\t}", "public BlackjackGameImpl(){\n\t\tsuper();\n\t\tplayers = new HashMap<>();\n\t\tplayersAvailableOptions = new HashMap<>();\n\t\thandAvailableOptions = new HashMap<>();\n\t\thistoricalActions = new HashMap<>();\n\t\tinsurances = new ArrayList<>();\n\t}", "public BoardGame()\n\t{\n\t\tplayerPieces = new LinkedHashMap<String, GamePiece>();\n\t\tplayerLocations = new LinkedHashMap<String, Location>();\n\t\t\n\t}", "public Game() {\n gameRounds = 0;\n players.add(mHuman);\n players.add(mComputer);\n }", "public static void gameOver() {\n ScoreBoard.write(ScoreController.getScoresPath());\n populate();\n }", "public void setup(){\n frameRate(60);\n \n\n //Set initial variables\n jumpSpeed = 0;\n fallSpeed = 3.5f;\n jumpCount = 0;\n score = 0;\n brickSpeed = -20;\n resetIndex = -1;\n colorVal = 0;\n colorChange = false;\n\n\n //Load the user's highscore\n String[] highScores = loadStrings(\"score.txt\");\n if (highScores != null)\n highScore = Integer.valueOf(highScores[0]);\n\n\n //Create objects\n p = new Player();\n b = new ArrayList<Brick>();\n b.add(new Brick(brickSpeed));\n playerSize = p.getSize();\n brickSize = b.get(0).getSize();\n\n gameOver = false;\n start = false;\n}", "private void init() {\n this.playing = true;\n this.hand.clear();\n this.onTable = 0;\n this.points = 0;\n }", "public Player() {\r\n\t\tname=null;\r\n\t\tinitializeGameboard();\r\n\t\tlastRedNumber=2; \r\n\t\tlastYellowNumber=2;\r\n\t\tlastGreenNumber=12;\r\n\t\tlastBlueNumber=12;\r\n\t\tnegativePoints=0;\r\n }", "public Game()\r\n\t{\r\n\t\tthis.players = new Player[Config.PlayerLimit];\r\n\t\tthis.resetGame();\r\n\t}", "public Game(int balls) {\r\n currentLevel = new NullLevel();\r\n totalScore = 0;\r\n this.balls = balls;\r\n }", "private void reset(){\n getPrefs().setEasyHighScore(new HighScore(\"Player\", 99 * 60 + 59));\n getPrefs().setMediumHighScore(new HighScore(\"Player\", 99 * 60 + 59));\n getPrefs().setHardHighScore(new HighScore(\"Player\", 99 * 60 + 59));\n easyData.setText(formatHighScore(getPrefs().getEasyHighScore()));\n mediumData.setText(formatHighScore(getPrefs().getMediumHighScore()));\n hardData.setText(formatHighScore(getPrefs().getHardHighScore()));\n }", "public void startGame() {\n\t\timages = new ImageContainer();\n\t\ttimer = new Timer(15, this);\n\t\ttimer.setRepeats(true);\n\t\tlevelStartTimer = new Timer(2000, this);\n\t\thighScore = new HighScore();\n\t\tpacmanAnimation = new PacmanAnimation(images.pacman, new int[] { 3, 2,\n\t\t\t\t0, 1, 2 });\n\t\tactualLevel = 1;\n\t\tinitNewLevel();\n\t}", "Game() {\n _randomSource = new Random();\n\n _players = new Player[2];\n _input = new BufferedReader(new InputStreamReader(System.in));\n _players[0] = new HumanPlayer(BP, this);\n _players[1] = new MachinePlayer(WP, this);\n _playing = false;\n }", "public HighScore (int score)\n {\n this.name = \"P'ngball Grandmaster\";\n this.score = score;\n this.level = \"level 1\";\n }", "public static void initial()\n\t{\n\t\tscoreteam1 = 0; scoreteam2 = 0;\n\t\tdelayed = 0;\n\t\tplayers = new Player[5];\n\t\tfor (int i = 0; i < 5; i++) \n\t\t{\n\t\t\tplayers[i] = new Player();\n\t\t}\n\n\t\t// finding how many players there are (2, 3, or 4) and initializing status\n\t\tplayerNum = 0;\n\t\tfor (int i = 0; i < 5; i++)\n\t\t{\n\t\t\tif (Selection.exist[i])\n\t\t\t{\n\t\t\t\tplayerNum++;\n\t\t\t}\n\t\t\tplayers[i].exist = Selection.exist[i]; \n\t\t\tplayers[i].ai = Selection.ai[i];\n\t\t\tplayers[i].name = Selection.name[i];\t\t \n\t\t}\n\n\n\t\tplayers[3].keyDown = KeyEvent.VK_SEMICOLON;\n\t\tplayers[3].keyLeft = KeyEvent.VK_L;\n\t\tplayers[3].keyRight = KeyEvent.VK_QUOTE;\n\t\tplayers[3].keyUp = KeyEvent.VK_P;\n\t\tplayers[2].keyDown = KeyEvent.VK_H;\n\t\tplayers[2].keyLeft = KeyEvent.VK_G;\n\t\tplayers[2].keyRight = KeyEvent.VK_J;\n\t\tplayers[2].keyUp = KeyEvent.VK_Y;\n\t\tplayers[1].keyDown = KeyEvent.VK_S;\n\t\tplayers[1].keyLeft = KeyEvent.VK_A;\n\t\tplayers[1].keyRight = KeyEvent.VK_D;\n\t\tplayers[1].keyUp = KeyEvent.VK_W;\n\t\tplayers[4].keyDown = KeyEvent.VK_DOWN;\n\t\tplayers[4].keyLeft = KeyEvent.VK_LEFT;\n\t\tplayers[4].keyRight = KeyEvent.VK_RIGHT;\n\t\tplayers[4].keyUp = KeyEvent.VK_UP;\n\t\tplayers[1].color = Color.red;\n\t\tplayers[3].color = Color.green;\n\n\t\tif (Selection.team)\n\t\t{\n\t\t\tplayers[2].color = Color.red;\n\t\t\tplayers[4].color = Color.green;\n\t\t} \n\t\telse\n\t\t{\n\t\t\tplayers[2].color = Color.blue;\n\t\t\tplayers[4].color = Color.yellow;\n\t\t}\n\n\t}", "public Record() {\n this.wins = INITIAL_SCORE;\n this.losses = INITIAL_SCORE;\n this.draws = INITIAL_SCORE;\n }", "public void init() throws IOException {\r\n\t\t//Initialize all the arrayLists\r\n\t\tCountries = new ArrayList<Country>();\r\n\t\tCountriesCopy = new ArrayList<Country>(Countries.size());\r\n\t\tCards = new ArrayList<Card>();\r\n\t\tplayers = new ArrayList<Player>();\r\n\t\tcurrentCards = new ArrayList<Card>();\r\n\t\tselectedCards = new ArrayList<Card>();\r\n\t\tusedCards = new ArrayList<Card>();\r\n\t\t\r\n\t\t//Declare the file Reader and read-in all the card and country data\r\n\t\tFileRhiger = new FileReader();\r\n\t\tFileRhiger.setup();\r\n\t\t\r\n\t\t//Make the countryPicker arrayList identical to the the countries arrayList\r\n\t\tCountryPicker = Countries;\r\n\r\n\t\t//Adds the mouseClickhandler and mouseHoverHandler to the canvas\r\n\t\tmhh = new MouseHoverHandler(window.getCanvas());\r\n\t\tmch = new MouseClickHandler(window.getCanvas());\r\n\t\t\r\n\t\t\r\n\t\tbox = new JLabel();\r\n\t\twindow.getPanel().add(box);\r\n\t\tbox.setBounds(0, 0, 1300, 800);\r\n\t\t\r\n\t\tplayerNum = new JLabel();\r\n\t\twindow.getPanel().add(playerNum);\r\n\t\tplayerNum.setBounds(100,50,500,50);\r\n\t\tplayerNum.setFont(new Font(\"Vani\",25,25));\r\n\t\t\r\n\t\tplayerPicker = new JSlider(2,6,2);\r\n\t\twindow.getPanel().add(playerPicker);\r\n\t\tplayerPicker.setBounds(100,100,500,100);\r\n\t\tplayerPicker.setBorder(BorderFactory.createBevelBorder(0));\r\n\t\tplayerPicker.setBackground(new Color (0,153,255));\r\n\t\t\r\n\t\r\n\t\twindow.getPanel().add(startGame);\r\n\t\tstartGame.addActionListener(this);\r\n\t\t\r\n\t\twindow.getPanel().add(startGame);\r\n\t\tstartGame.setBounds(650, 100, 150, 100);\r\n\t\tstartGame.setFont(new Font(\"Vani\", Font.BOLD, 20));\r\n\t\tstartGame.setBorder(BorderFactory.createBevelBorder(0));\r\n\t\tstartGame.setBackground(new Color(204,153,255));\r\n\t\r\n\t\t\r\n\t\t//Loads in all the background images of the map, the invis map will not be rendered but will be used to detect hovering\r\n\t\tinvisMap = ImageIO.read(new File (\"Ressources/\" +\"ColorMapFinal.png\"));\r\n\t\twaterMap = ImageIO.read(new File (\"Ressources/\" +\"gMap200.png\"));\r\n\t\tlabels = ImageIO.read(new File (\"Ressources/\" + \"gLabels.png\"));\r\n\t\t//waterMap = ImageIO.read(getClass().getResourceAsStream(\"Ressources/\" +\"gMap200.png\"));\r\n\t\t\r\n\t\t\r\n\t\t//Makes a 2D array of the pixels in the invisMap, (all of its pixels will be stored here)\r\n\t\timgW = invisMap.getWidth();\r\n\t\timgH = invisMap.getHeight();\r\n\t\tinvisData = new int[imgW][imgH];\r\n\t\t\r\n\t\t//Fills the arrayList with all the pixels RGB values of the invismap image\r\n\t\tfor (int i = 0; i < imgW - 1; i++) {\r\n\t\t\tfor (int j = 0; j < imgH - 1; j++) {\r\n\t\t\t\tinvisData[i][j] = invisMap.getRGB(i, j);\r\n\r\n\t\t\t}\r\n\t\t}\r\n\t\t//Loop that creates JLabels to display the cards of the player\r\n\t\tfor (int x = 0; x < 5; x++) {\r\n\t\t\tcardPics[x] = new JLabel(\"\");\r\n\t\t\twindow.getPanel().add(cardPics[x]);\r\n\t\t\tcardPics[x].setBounds(70 + (x * 110), 100, 100, 150);\r\n\t\t}\r\n\t\t//Loop that creates JLabels to display when a card has been selected\r\n\t\tfor (int x = 0; x < 5; x++) {\r\n\t\t\tcardSelectedPics[x] = new JLabel(\"\");\r\n\t\t\tcardSelectedPics[x].setBackground(Color.BLUE);\r\n\t\t\twindow.getPanel().add(cardSelectedPics[x]);\r\n\t\t\tcardSelectedPics[x].setBounds(68 + (x * 110), 98, 104, 154);\r\n\t\t\tcardSelectedPics[x].setOpaque(true);\r\n\t\t\tcardSelectedPics[x].setVisible(false);\r\n\t\t}\r\n\r\n\t\t\r\n\r\n\t\t//Adds a label to display how many troops a player can display at that moment\r\n\t\ttroopsToDeploy = new JLabel();\r\n\t\twindow.getPanel().add(troopsToDeploy);\r\n\t\ttroopsToDeploy.setFont(new Font(\"Vani\", Font.PLAIN, 20));\r\n\t\ttroopsToDeploy.setBounds(200, 40, 300, 50);\r\n\r\n\t\t// Add phase button\r\n\t\tphaseButton.setVisible(false);\r\n\t\tphaseButton.addActionListener(this);\r\n\t\twindow.getPanel().add(phaseButton);\r\n\t\tphaseButton.setFont(new Font(\"Vani\", Font.BOLD, 14));\r\n\t\tphaseButton.setBounds(60, 20, 120, 50);\r\n\t\tphaseButton.setVerticalTextPosition(SwingConstants.CENTER);\r\n\t\tphaseButton.setHorizontalTextPosition(SwingConstants.CENTER);\r\n\t\tphaseButton.setBackground(Color.white);\r\n\t\t\r\n\t\t// Add loadGame button\r\n\t\tloadButton.setVisible(true);\r\n\t\tloadButton.addActionListener(this);\r\n\t\twindow.getPanel().add(loadButton);\r\n\t\tloadButton.setFont(new Font(\"Vani\", Font.BOLD, 20));\r\n\t\tloadButton.setBounds(820, 100, 120, 100);\r\n\t\tloadButton.setVerticalTextPosition(SwingConstants.CENTER);\r\n\t\tloadButton.setHorizontalTextPosition(SwingConstants.CENTER);\r\n\t\tloadButton.setBorder(BorderFactory.createBevelBorder(0));\r\n\t\tloadButton.setBackground(new Color(153, 153, 255));\r\n\t\t\r\n\r\n\t\t// Add saveGame button\r\n\t\tsaveButton.setVisible(true);\r\n\t\tsaveButton.addActionListener(this);\r\n\t\twindow.getPanel().add(saveButton);\r\n\t\tsaveButton.setFont(new Font(\"Vani\", Font.BOLD, 14));\r\n\t\tsaveButton.setBounds(610, 20, 120, 50);\r\n\t\tsaveButton.setVerticalTextPosition(SwingConstants.CENTER);\r\n\t\tsaveButton.setHorizontalTextPosition(SwingConstants.CENTER);\r\n\r\n\t\t// Create text fields with info on the card cash-in bonuses\r\n\t\tcardsData = new JTextArea(\r\n\t\t\t\t\"Continent\tTroop\\n\tBonus: \\n Kjersia\t 2\\n Estoveria\t 5\\n Moa\t 6\\n Shilov\t 3\\n Tormudd\t 3\\n Eschilles\t 7\");\r\n\t\twindow.getPanel().add(cardsData);\r\n\t\tcardsData.setFont(new Font(\"Vani\", Font.BOLD, 17));\r\n\t\tcardsData.setBounds(800, 20, 200, 250);\r\n\t\tcardsData.setBorder(BorderFactory.createBevelBorder(1));\r\n\t\tcardsData.setBackground(new Color(135, 190, 250));\r\n\t\tcardsData.setEditable(false);\r\n\r\n\t\t// Create text fields with info on the continents bonuses\r\n\t\tcontinentData = new JTextArea(\r\n\t\t\t\t\"Card Set\tTroop\\n\tBonus: \\n 3-Soldiers\t 3\\n 3-Horses\t 5\\n 3-Cannons\t 7\\n 1-of-Each-Kind 10\");\r\n\t\twindow.getPanel().add(continentData);\r\n\t\tcontinentData.setFont(new Font(\"Vani\", Font.BOLD, 17));\r\n\t\tcontinentData.setBounds(1050, 20, 200, 250);\r\n\t\tcontinentData.setBorder(BorderFactory.createBevelBorder(1));\r\n\t\tcontinentData.setBackground(new Color(135, 190, 250));\r\n\t\tcontinentData.setEditable(false);\r\n\r\n\t\t//Add phase button\r\n\t\tcashInButton.setVisible(false);\r\n\t\tcashInButton.addActionListener(this);\r\n\t\twindow.getPanel().add(cashInButton);\r\n\t\tcashInButton.setFont(new Font(\"Vani\", Font.BOLD, 25));\r\n\t\tcashInButton.setText(\"<html>Cash<br /> ~In~ <br /> Cards</html>\");\r\n\t\tcashInButton.setBounds(620, 100, 100, 150);\r\n\t\tcashInButton.setBorder(BorderFactory.createBevelBorder(0));\r\n\r\n\t\t//Add a background area to the cards section of the bottom panel\r\n\t\tcardBackground = new JLabel(\"\");\r\n\t\twindow.getPanel().add(cardBackground);\r\n\t\tcardBackground.setBounds(60, 90, 670, 170);\r\n\t\tcardBackground.setBackground(new Color(135, 190, 250));\r\n\t\tcardBackground.setBorder(BorderFactory.createBevelBorder(1));\r\n\t\tcardBackground.setOpaque(true);\r\n\r\n\t\t//Add phase label that dsiplays the turn of the user and the phase they are currently in\r\n\t\tphaseLabel = new JLabel();\r\n\t\twindow.getPanel().add(phaseLabel);\r\n\t\tphaseLabel.setFont((new Font(\"Impact\", Font.BOLD, 20)));\r\n\t\tphaseLabel.setBounds(200, 10, 300, 50);\r\n\t\tphaseLabel2 = new JLabel();\r\n\t\twindow.getPanel().add(phaseLabel2);\r\n\t\tphaseLabel2.setFont((new Font(\"Impact\", Font.BOLD, 20)));\r\n\t\tphaseLabel2.setBounds(203, 13, 300, 50);\r\n\t\t\r\n\t\tattackSlide = new JSlider(0,10,5);\r\n\t\twindow.getPanel().add(attackSlide);\r\n\t\tattackSlide.setBounds(740, 90, 50, 150);\r\n\t\tattackSlide.setOrientation(JSlider.VERTICAL);\r\n\t\tattackSlide.setVisible(false);\r\n\t\t\r\n\t\tattacker = new JLabel(\"\");\r\n\t\twindow.getPanel().add(attacker);\r\n\t\tattacker.setFont(new Font(\"impact\",18,18));\r\n\t\tattacker.setBounds(740,40,100,50);\r\n\t\tattacker.setVisible(false);\r\n\t\t\r\n\t\t//Initializes the graphics\r\n\t\tg = bs.getDrawGraphics();\r\n\r\n\t\t//Shuffle the deck\r\n\t\tCollections.shuffle(Cards);\t\t\t\r\n\t\t\r\n\t\t\r\n\t}", "public Game() \n {\n Logger.setLogger(null);\n createInstances();\n parser = new Parser();\n player = new Player();\n userInputs = new ArrayList<String>();\n }", "public Scores() {\n date = new Date();\n }", "public GameLogic(GameScreen gameScreen){\n\t\tthis.gameScreen = gameScreen;\n\n\t\t// initialize game status information\n\t\tstatus = new GameStatus();\n\t\t// initialize the sound manager\n\t\tsoundMan = new SoundManager();\n\n\t\t// init some variables\n\t\tbullets = new ArrayList<Bullet>();\n\t}", "public ScoreFixer ()\r\n {\r\n }", "public void highscore()\n {\n FileReader filereader;\n \n PrintWriter writer;\n ArrayList<PersonDate> hsp = new ArrayList<PersonDate>();\n \n\n try{\n if(totalScore>lowestHighscore() || (int)timer3>lowestHighscore())\n {\n DateFormat dateFormat = new SimpleDateFormat(\"MM/dd/yy\");\n Date date = new Date();\n String r = dateFormat.format(date);\n \n \n JOptionPane.showMessageDialog(null,\"New high score!\");\n String name = JOptionPane.showInputDialog(\"Please enter name\");\n while(name == null)\n {\n name = JOptionPane.showInputDialog(\"Please enter name\");\n }\n while(name.length() > 18)\n name = JOptionPane.showInputDialog(null,\"Name too long\\nPlease enter your name\");\n while(name.length()==0)\n name = JOptionPane.showInputDialog(\"Please enter name\");\n //if(name == null)\n //{\n //resetSettings();\n //System.exit(0);\n \n //}\n String[] invalidchar = {\"~\",\"`\",\"!\",\"@\",\"#\",\"$\",\"%\",\"^\",\"&\",\"*\",\"=\",\"+\",\"-\",\"_\",\":\",\";\",\"|\",\"?\",\"<\",\">\",\"/\",\"'\",\"[\",\"]\",\"{\",\"}\",\"1\",\"2\",\"3\",\"4\",\"5\",\"6\",\"7\",\"8\",\"9\",\"0\",\".\",\",\"};\n String[] bannedWords ={\"fuck\",\"shit\",\"asshole\",\"bitch\",\"nigger\",\"nigga\",\"cunt\",\"cock\",\"douche\",\"fag\",\"penis\",\"pussy\",\"whore\"};\n for(int i =0; i<invalidchar.length;i++)\n {\n if(name.contains(invalidchar[i]))\n {\n name = JOptionPane.showInputDialog(\"Invalid name, please only use letters\\nPlease enter name\");\n i = -1;\n }\n }\n for(int i =0; i<bannedWords.length;i++)\n {\n \n if(name.replaceAll(\"\\\\s+\",\"\").toLowerCase().contains(bannedWords[i]))\n {\n name = JOptionPane.showInputDialog(\"No potty mouth\\nPlease enter name\");\n i = -1;\n }\n }\n PersonDate p1;\n if(!modeT)\n p1 = new PersonDate(name,totalScore,r);\n else\n p1 = new PersonDate(name,(int)timer3,r);\n filereader = new FileReader(getLevel());\n BufferedReader bufferedreader = new BufferedReader(filereader);\n \n \n \n String line = bufferedreader.readLine();\n \n while(line!=null)\n {\n //hslist.add(Integer.parseInt(line.split(\":\")[1]));\n hsp.add(new PersonDate(line.split(\":\")[0],Integer.parseInt(line.split(\":\")[1]),line.split(\":\")[2]));\n line = bufferedreader.readLine();\n }\n hsp.add(p1);\n \n //sort it\n sort(hsp);\n \n \n //delete last thing\n hsp.remove(hsp.size()-1);\n \n //rewrite doc\n writer = new PrintWriter(new File(getLevel()));\n for(PersonDate p:hsp)\n {\n writer.println(p);\n }\n writer.close();\n \n //displayhs();\n \n }\n }\n catch(IOException e)\n {\n }\n }", "public void initializeScoringVariables(){\n\t\tgame.setMovement(moveDistance);\n\t\tgame.setRight(correctGuess);\n\t\tgame.setWrong(incorrectGuesses);\n\t\tgame.setTime(duration(startTime,endTime));\n\t}", "public GameFrame(String title, int difficulty, String mapFileName) {\n super(title);\n setResizable(false);\n setSize(GAME_WIDTH, GAME_HEIGHT);\n this.difficulty = difficulty;\n mapObject = new Map(mapFileName, this);\n lastRender = -1;\n fpsHistory = new ArrayList<>(100);\n\n try {\n plantImage = ImageIO.read(new File(\"src/pictures/plant.png\"));\n gameOverImage = ImageIO.read(new File(\"src/pictures/gameOver.png\"));\n gameWonImage = ImageIO.read(new File(\"src/pictures/youWin.png\"));\n } catch (IOException e) {\n e.printStackTrace();\n }\n\n }", "public void createTimer() {\n timer = new AnimationTimer() {\n @Override\n public void handle(long now) {\n if (animal.changeScore()) {\n setNumber(animal.getPoints());\n }\n if (animal.getStop()) {\n System.out.println(\"Game Ended\");\n background.stopMusic();\n stop();\n background.stop();\n\n ArrayList list = null;\n try {\n list = scoreFile.sortFile(animal.getPoints());\n } catch (IOException e) {\n e.printStackTrace();\n }\n popUp(list);\n }\n }\n };\n }", "public void initializeGame() {\n speed = 75;\n ticks = 0;\n ticksTubes = 0;\n best = null;\n score = 0;\n\n //Make a new pool of birds based on the parameters set in the species'\n //genomes\n birds.clear();\n for (final Species species : Pool.species)\n for (final Genome genome : species.genomes) {\n genome.generateNetwork();\n birds.add(new Bird(species, genome));\n }\n tubes.clear();\n }", "public void init()\n\t{\n\t\tpaused = false;\n\t\tbg.play();\n\t\tdeath.setVolume(10);\n\t\texplosion.setVolume(20);\n\t\tsetGameOver(false);\n\t\tscore = 0;\n\t\tlives = 3;\n\t\tgameTime = 0;\n\t\tgameObj = new GameWorldCollection();\n\t\tshipSpawned = false;\n\t\tsound = true;\n\t\ttotalNPS = 0;\n\t\tcollisionVectorPS = new Vector<ICollider>();\n\t\tcollisionVectorNPS\t = new Vector<ICollider>();\n\t\tcollisionVectorAsteroid = new Vector<ICollider>();\n\t\ttrash\t\t\t\t\t= new Vector<ICollider>();\n\t\tnotifyObservers();\t\n\t}", "public GameLevel LoadGame() throws IOException {\n FileReader fr = null;\n BufferedReader reader = null;\n\n try {\n System.out.println(\"Reading \" + fileName + \" data/saves.txt\");\n\n fr = new FileReader(fileName);\n reader = new BufferedReader(fr);\n\n String line = reader.readLine();\n int levelNumber = Integer.parseInt(line);\n\n //--------------------------------------------------------------------------------------------\n\n if (levelNumber == 1){\n gameLevel = new Level1();\n } else if(levelNumber == 2){\n gameLevel = new Level2();\n JFrame debugView = new DebugViewer(gameLevel, 700, 700);\n } else {\n gameLevel = new Level3();\n }\n\n //------------------------------------------------------------------------------------------\n\n\n while ((line = reader.readLine()) != null){\n String[] tokens = line.split(\",\");\n String className = tokens[0];\n float x = Float.parseFloat(tokens[1]);\n float y = Float.parseFloat(tokens[2]);\n Vec2 pos = new Vec2(x, y);\n Body platform = null;\n\n if (className.equals(\"PlayableCharacter\")){\n PlayableCharacter playableCharacter = new PlayableCharacter(gameLevel, PlayableCharacter.getItemsCollected(),PlayableCharacter.isSpecialGravity(),game);\n playableCharacter.setPosition(pos);\n gameLevel.setPlayer(playableCharacter);\n\n }\n\n if (className.equals(\"LogPlatform\")){\n Body body = new LogPlatform(gameLevel, platform);\n body.setPosition(pos);\n }\n\n if (className.equals(\"Coin\")){\n Body body = new Coin(gameLevel);\n body.setPosition(pos);\n body.addCollisionListener(new Pickup(gameLevel.getPlayableCharacter(), game));\n }\n\n if (className.equals(\"ReducedGravityCoin\")){\n Body body = new ReducedGravityCoin(gameLevel);\n body.setPosition(pos);\n body.addCollisionListener(\n new PickupRGC(gameLevel.getPlayer(), game)\n\n );\n }\n\n if (className.equals(\"AntiGravityCoin\")){\n Body body = new AntiGravityCoin(gameLevel);\n body.setPosition(pos);\n body.addCollisionListener(\n new PickupAGC(gameLevel.getPlayer(), game) );\n }\n\n if (className.equals(\"Rock\")){\n Body body = new Rock(gameLevel);\n body.setPosition(pos);\n body.addCollisionListener(\n new FallCollisionListener(gameLevel.getPlayableCharacter(), game));\n }\n\n if (className.equals(\"Pellet\")){\n Body body = new Pellet(gameLevel);\n body.setPosition(pos);\n body.addCollisionListener(\n new AddLifeCollisionListener(gameLevel.getPlayer(), game));\n }\n\n if (className.equals(\"Branch\")){\n Body body = new Branch(gameLevel);\n body.setPosition(pos);\n body.addCollisionListener(new BranchListener(gameLevel.getPlayableCharacter(), game));\n }\n\n if (className.equals(\"Portal\")){\n Body portal = new Portal(gameLevel);\n portal.setPosition(pos);\n portal.addCollisionListener(new DoorListener(game));\n }\n\n if (className.equals(\"DeathPlatform\")){\n float w = Float.parseFloat(tokens[3]);\n float h = Float.parseFloat(tokens[4]);\n float deg = Float.parseFloat(tokens[5]);\n\n Body body = new DeathPlatform(gameLevel, w, h);\n body.setPosition(pos);\n body.addCollisionListener(new FallCollisionListener(gameLevel.getPlayer(), game));\n body.setFillColor(Color.black);\n body.setAngleDegrees(deg);\n\n }\n\n }\n\n return gameLevel;\n } finally {\n if (reader != null) {\n reader.close();\n }\n if (fr != null) {\n fr.close();\n }\n }\n }", "public void fileReadGameHistory(String filename)\n {\n \t//ArrayList<GameObject> gameObject = new ArrayList<>();\n\t\tFileReader file = null;\n\t\ttry {\n\t\t\tfile = new FileReader(filename);\n\t\t} catch (FileNotFoundException e) {\n\n\t\t\te.printStackTrace();\n\t\t}\n\t\tSystem.out.println(filename);\n\t\tBufferedReader br = new BufferedReader(file);\n\t\tString s = \"\";\n\t\ttry\n\t\t{\n\t\t\twhile((s = br.readLine()) != null )\n\t\t\t{\n\t\t\t\tString[] prop1 = s.split(\"#\");\n\t\t\t\tSystem.out.println(prop1[0] + \" fgdfsgfds \" + prop1[1]);\n\t\t\t\tString indexOfList = prop1[0];\n\t\t\t\tString[] prop2 = prop1[1].split(\",\");\n\t\t\t\tString[] prop3;\n\t\t\t\tString[] prop4 = indexOfList.split(\";\");\n\t\t\t\t//gameObject.add(new GameObject(indexOfList));\n\t\t\t\tcount = count +1;\n\t\t\t\texistCount = existCount + 1;\n\t\t\t\tif (indexOfList.charAt(0) == 's')//when this line is data of a swimming game\n\t\t\t\t{\n\t\t\t\t\tSystem.out.println(prop4[0]);\n\t\t\t\t\tgames.add(new Swimming(prop4[1],\"Swimming\",prop4[0]));\n\t\t\t\t\tfor(int i = 0; i < Array.getLength(prop2); i++)\n\t\t\t\t\t{\n\t\t\t\t\t\tprop3 = prop2[i].split(\":\");\n\t\t\t\t\t\tgames.get(count - 1).addParticipant(prop3[0], Integer.parseInt(prop3[1]), 0);\n//\t\t\t\t\t\tgames.get(count-1).getResults().get(i).setId(prop3[0]);\n//\t\t\t\t\t\tgames.get(count-1).getResults().get(i).setRe(Integer.parseInt(prop3[1]));\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tif (indexOfList.charAt(0) == 'c')//when this line is data of a cycling game\n\t\t\t\t{\n\t\t\t\t\tgames.add(new Cycling(prop4[1],\"Cycling\",prop4[0]));\n\t\t\t\t\tfor(int i = 0; i < Array.getLength(prop2); i++)\n\t\t\t\t\t{\n\t\t\t\t\t\tprop3 = prop2[i].split(\":\");\n\t\t\t\t\t\tgames.get(count - 1).addParticipant(prop3[0], Integer.parseInt(prop3[1]), 0);\n//\t\t\t\t\t\tgames.get(count-1).getResults().get(i).setId(prop3[0]);\n//\t\t\t\t\t\tgames.get(count-1).getResults().get(i).setRe(Integer.parseInt(prop3[1]));\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tif (indexOfList.charAt(0) == 'r')//when this line is data of a running game\n\t\t\t\t{\n\t\t\t\t\tgames.add(new Running(prop4[1],\"Running\",prop4[0]));\n\t\t\t\t\tfor(int i = 0; i < Array.getLength(prop2); i++)\n\t\t\t\t\t{\n\t\t\t\t\t\tprop3 = prop2[i].split(\":\");\n\t\t\t\t\t\tgames.get(count - 1).addParticipant(prop3[0], Integer.parseInt(prop3[1]), 0);\n//\t\t\t\t\t\tgames.get(count-1).getResults().get(i).setId(prop3[0]);\n//\t\t\t\t\t\tgames.get(count-1).getResults().get(i).setRe(Integer.parseInt(prop3[1]));\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}catch (NumberFormatException | IOException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n }", "public TTT_GamePlay() {\r\n\t\tArrays.fill(p1, 0);\r\n\t\tArrays.fill(p2, 0);\r\n\t\tArrays.fill(selectedCells, false);\r\n\t\tthis.board = new int[9];\r\n\t\tthis.player = player1;\r\n\t\twin = false;\r\n\t}", "void reset() {\n myManager.reset();\n myScore = 0;\n myGameOver = false;\n myGameTicks = myInitialGameTicks;\n myOldGameTicks = myInitialGameTicks;\n repaint();\n }", "public MiniGame() {\n\n\t}", "public HighScore (String name,String level, int score)\n {\n this.name = name;\n this.score = score;\n this.level = level;\n }", "public Score() {\n this.date = new Date();\n this.name = null;\n this.score = 0;\n }", "void start () {\n System.out.println(\"Starting the game\");\n score = 0;\n updateScore();\n stepDelay = startingSpeed;\n isFalling = false;\n gameOver = false;\n board.clear();\n board.clearTemp();\n setNormalSpeed();\n spawnNewPiece();\n updateView();\n resetLoop();\n }", "public Score(){\n\t\tscore = 0;\n\t\tincrement = 0; //how many points for eating a kibble. Changed to zero here because adjustScoreIncrement's extra points begin at 1 anyway\n\t}", "private void update() {\n if(!Constants.GAME_OVER) {\n deltaTime = (int) (System.currentTimeMillis() - startTime);\n startTime = System.currentTimeMillis();\n elapsedTime = (int) (System.currentTimeMillis() - initTime)/1000;\n Constants.ELAPSED_TIME = elapsedTime;\n //Log.d(\"FRAMES \", \"\"+ Constants.FRAME_COUNT);\n //call update on every object\n player.update();\n enemyManager.update(player);\n starManager.update(player.getSpeed());\n asteroidManager.update(player);\n } else {\n playing = false;\n sound.stopBg();\n for(int i = 0; i < highScore.length; i++) {\n if (Constants.SCORE > highScore[i]) {\n final int endI = i;\n highScore[i] = Constants.SCORE;\n // Log.d(\"SCORE \", \"\" + highScore[i]);\n break;\n }\n }\n\n SharedPreferences.Editor editor = sharedPreferences.edit();\n for(int i = 0; i < highScore.length; i++) {\n int index = i + 1;\n editor.putInt(\"score\" + index, highScore[i]);\n }\n editor.apply();\n }\n }", "public void reset() {\n\t\tAssets.playSound(\"tweet\");\n\t\tscore = respawnTimer = spawnCount= 0;\n\t\t\n\t\twalls = new ArrayList<Wall>();\n\t\tcheckPoints = new ArrayList<Wall>();\n\t\tground = new ArrayList<Ground>();\n\n\t\tGround g;\n\t\tPoint[] points = new Point[21];\n\t\tfor (int i = 0; i < 21; i++) {\n\t\t\tpoints[i] = new Point(i * 32, 448);\n\t\t}\n\t\tfor (int j = 0; j < points.length; j++) {\n\t\t\tg = new Ground();\n\t\t\tg.setBounds(new Rectangle(points[j].x, 448, 32, 32));\n\t\t\tground.add(g);\n\t\t}\n\n\t\tsky = new Background(-0.2);\n\t\tsky.setImage(Assets.sprite_sky);\n\t\t\n\t\tmountains = new Background(-0.4);\n\t\tmountains.setImage(Assets.sprite_mountains);\n\t\t\n\t\ttrees = new Background(-1.4);\n\t\ttrees.setImage(Assets.sprite_trees);\n\n\t\tstarted = false;\n\t\tplayer.reset();\n\n\t}", "public TennisScoreSystem() {\n scoreA = 0;\n scoreB = 0;\n }", "public void reset()\n {\n currentScore = 0;\n }", "public GenGameOver() { \n prepare();\n }", "public void init() {\n\t\tinstallNewPiece();\n W(\"\\n\\n\\n\\nMAX LEVEL \"+P.MaxLevels+\"\\n\\n\\n\\n\");\n TimeInLevelList = CreateTimeInLevelList(P.MaxLevels);\n \n\t\tpause_resume_butt.setEnabled(false);\n\t\tstart_newgame_butt.addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent ae) {\n\t\t\t\tif(start_newgame_butt.getLabel().equals(\"Start\"))\n\t\t\t\t\tstartGame();\n\t\t\t\telse\n\t\t\t\t\tnewGame();\n\t\t\t}\n\t\t});\t\t\n\t\tpause_resume_butt.addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent ae) {\n\t\t\t\tif(pause_resume_butt.getLabel().equals(\"Pause\"))\n\t\t\t\t\tpauseGame();\n\t\t\t\telse\n\t\t\t\t\tresumeGame();\n\t\t\t}\n\t\t});\n\t\t\n\t\t//create key listener for rotating, moving left, moving right\n\t\tKeyListener key_listener = new KeyAdapter() {\n\t\t\tpublic void keyPressed(KeyEvent e) {\n long tmp = LastButtonPressTime;\n LastButtonPressTime=(System.nanoTime()- StartTime)/1000000;\n if(LastButtonPressTime!=0 && LastButtonUnpressTime!=0)\n KeyUpQueue.add(new Tuple<Long,Long>(LastButtonUnpressTime,LastButtonPressTime));\n \n LastButtonUnpressTime=0; // this is just asking for trouble\n LastButtonPressTime=0; // but its for bugfixing purposes so its ok\n //W(\"\"+tmp+\",\"+LastButtonUnpressTime);\n \n \n if(StartTime != tmp_start_time)\n W(\"START TIME CHANGED\\n\\n\\n\"+StartTime+\",\"+tmp_start_time+\"\\n\\n\\n\\n\\n\");\n tmp_start_time = StartTime;\n \n if(KeyUpQueue.size()>0){\n KeyUpQueue = ContainWithinTimeWindow(KeyUpQueue, (System.nanoTime()-StartTime)/1000000,KeyUpTimeWindow);\n //DisplayDropPercentList(KeyUpQueue, KeyUpTimeWindow,\"outside\");\n UnpressPercent=UnpressPercentSanitized(KeyUpQueue, KeyUpTimeWindow, (System.nanoTime()-StartTime)/1000000);\n //W(\"unpress_percent \"+UnpressPercent);\n }\n \n\t\t\t\tif(timer.isPaused()) //don't do anything if game is paused\n\t\t\t\t\treturn;\n \n /* \n // this code has problems\n // we may still add sound in the future if we have time\n // for now its dummied out\n if (e.getKeyCode() >= 37 & e.getKeyCode() <= 40){\n if(!SoundKeyPressed[e.getKeyCode()-37] ){\n snd.PlayWave(\"bip\");\n // this works correctly but when buttons are pressed a bunch in quick succession it slows down the main loop\n }\n SoundKeyPressed[e.getKeyCode()-37]=true;\n }\n */\n\t\t\t\tif (e.getKeyCode() == 37 || e.getKeyCode() == 39) { //left or right arrow pressed\n if (e.getKeyCode() == 37) KeyCounter[0]++;\n\t\t\t\t\tif (e.getKeyCode() == 39) KeyCounter[1]++;\n\t\t\t\t\tint dir = e.getKeyCode() == 37 ? -1 : 1;\n\t\t\t\t\tsynchronized(timer) {\n\t\t\t\t\t\tcur_piece.cut();\n\t\t\t\t\t\tcur_piece.setX(cur_piece.getX() + dir); // try to move\n\t\t\t\t\t\tif( ! cur_piece.canPaste())\n\t\t\t\t\t\t\tcur_piece.setX(cur_piece.getX() - dir); // undo move\n\t\t\t\t\t\tcur_piece.paste();\n\t\t\t\t\t}\n\t\t\t\t\tgame_grid.repaint();\n \n\t\t\t\t}\n\t\t\t\telse if (e.getKeyCode() == 38) { //rotate\n KeyCounter[2]++;\n\t\t\t\t\tsynchronized(timer) {\n\t\t\t\t\t\tcur_piece.cut();\n\t\t\t\t\t\tcur_piece.rotate();\n\t\t\t\t\t\tif( ! cur_piece.canPaste())\n\t\t\t\t\t\t\tcur_piece.rotateBack();\n\t\t\t\t\t\tcur_piece.paste();\n\t\t\t\t\t}\n\t\t\t\t\tgame_grid.repaint();\n\t\t\t\t}\n\t\t\t\tif (e.getKeyCode() == 40) { //down arrow pressed; drop piece\n\t\t\t\t\tKeyCounter[3]++;\n DropStartTime=System.nanoTime();\n DownStartTime=(System.nanoTime()- StartTime)/1000000;\n timer.setFast(true);\n OutputTheDataWhenFirstFast = true;\n\t\t\t\t} \n if (e.getKeyCode() == KeyEvent.VK_CONTROL) ControlKeyPressed = true;\n if (e.getKeyCode() == KeyEvent.VK_F && ControlKeyPressed){\n ControlKeyPressed = false;\n SwitchToFocusTask();\n W(\"Mode=\"+LDS.Parameters.Mode);\n //return; // REMOVE LATER MAYBE\n //System.exit(998);\n }\n if (e.getKeyCode()==KeyEvent.VK_SUBTRACT) MinusKeyPressed = true;\n \n \n LogEvent(\"key_press_\"+ e.getKeyText(e.getKeyCode()));\n \n\t\t\t}\n \n public void keyReleased(KeyEvent e) {\n \n if (e.getKeyCode() >= 37 & e.getKeyCode() <= 40){\n SoundKeyPressed[e.getKeyCode()-37]=false;\n } \n \n LastButtonUnpressTime=(System.nanoTime()- StartTime)/1000000;\n \n if(LastButtonUnpressTime == tmp_unpress_time)\n W(\"UNPRESS IDENTICAL\\n\\n\\n\"+LastButtonUnpressTime+\",\"+tmp_unpress_time+\"\\n\\n\\n\\n\\n\");\n tmp_unpress_time = LastButtonUnpressTime;\n //W(\"Set unpress at \"+LastButtonUnpressTime);\n if (e.getKeyCode() == 40) { //down arrow pressed; drop piece\n timer.setFast(false);\n // down queue stuff\n DropDurationQueue=addToQueue(DropDurationQueue, (int) (System.nanoTime()-DropStartTime)/1000000, queue_history); \n DownEndTime=(System.nanoTime()- StartTime)/1000000;\n \n // drop percent stuff\n DownQueue.add(new Tuple<Long,Long>(DownStartTime,DownEndTime));\n DownStartTime = LongMin; // reset them back to \"not dropping\"\n DownEndTime = LongMin;\n DownQueue = removeOldFromQueue(DownQueue,(System.nanoTime()-StartTime)/1000000,DropPercentageTimeWindow);\n }\n if (e.getKeyCode() == KeyEvent.VK_CONTROL) ControlKeyPressed = false;\n if (e.getKeyCode()==KeyEvent.VK_SUBTRACT) MinusKeyPressed = false;\n LogEvent(\"key_release_\"+ e.getKeyText(e.getKeyCode()));\n \n }\n \n\t\t};\n\t\t\n\t\t// add the key listener to all components that might get focus\n\t\t// so that it'll work regardless of which has focus\n\t\tstart_newgame_butt.addKeyListener(key_listener);\n\t\tpause_resume_butt.addKeyListener(key_listener);\n\t\t\n\t\tPanel right_panel = new Panel(new GridLayout(3, 1));\t\n\t\tright_panel.setBackground(BACKGROUND_COLOR);\n\t\t\n\t\tPanel control_panel = new Panel();\n\t\tcontrol_panel.add(start_newgame_butt);\n\t\tcontrol_panel.add(pause_resume_butt);\n\t\tcontrol_panel.setBackground(BACKGROUND_COLOR);\n\t\tright_panel.add(control_panel);\n\t\t\n\t\tPanel stats_panel1 = new Panel(new GridLayout(5, 2));\n\t\tstats_panel1.add(new TetrisLabel(\"Use Arrow Keys\"));\n //stats_panel1.add(new TetrisLabel(\"Keys\"));\n\t\tstats_panel1.add(blank_label);\n stats_panel1.add(new TetrisLabel(\" Rows Deleted: \"));\n\t\t//stats_panel1.add(blank_label);\n //stats_panel1.add(level_label);\n stats_panel1.add(rows_deleted_label);\n stats_panel1.add(new TetrisLabel(\" Speed: \"));\n\t\tstats_panel1.add(speed_label);\n stats_panel1.add(new TetrisLabel(\" Duration: \"));\n\t\tstats_panel1.add(level_duration_label);\n stats_panel1.add(new TetrisLabel(\" Score: \"));\n\t\tstats_panel1.add(score_label);\n //right_panel.add(stats_panel1);\n\t\tPanel tmp1 = new Panel(new BorderLayout());\n\t\ttmp1.setBackground(BACKGROUND_COLOR);\n\t\ttmp1.add(\"Center\", stats_panel1);\n\t\tright_panel.add(tmp1);\n\t\t\n Panel tmp = new Panel(new BorderLayout());\n\t\ttmp.add(\"North\", new TetrisLabel(\" Next Piece:\"));\n\t\ttmp.add(\"Center\", next_piece_canvas);\n\t\ttmp.setBackground(BACKGROUND_COLOR);\n\t\tright_panel.add(tmp);\n\t\t\n//\t\tPanel stats_panel = new Panel(new GridLayout(4, 2));\n//\t\tstats_panel.add(new TetrisLabel(\"Use Left Right Up \"));\n//\t\tstats_panel.add(new TetrisLabel(\"Down Arrow Keys\"));\n\t\t//stats_panel.add(rows_deleted_label);\n//\t\tstats_panel.add(new TetrisLabel(\" Rows Deleted: \"));\n//\t\tstats_panel.add(rows_deleted_label);\n\t\t//stats_panel.add(new TetrisLabel(\" Level: \"));\n\t\t//stats_panel.add(level_label);\n//\t\tstats_panel.add(new TetrisLabel(\" Score: \"));\n//\t\tstats_panel.add(score_label);\n//\t\tstats_panel.add(new TetrisLabel(\" High Score: \"));\n//\t\tstats_panel.add(high_score_label);\n//\t\ttmp = new Panel(new BorderLayout());\n//\t\ttmp.setBackground(BACKGROUND_COLOR);\n//\t\ttmp.add(\"Center\", stats_panel);\n\t\t//right_panel.add(tmp);\n\t\t\n\t\t// finaly, add all the main panels to the applet panel\n\t\tthis.setLayout(new GridLayout(1, 2));\n\t\tthis.add(game_grid);\n\t\tthis.add(right_panel);\n\t\tthis.setBackground(BACKGROUND_COLOR);\n\t\tthis.validate();\n// Parameters P = new Parameters(\"PARAMETERS\");\n\t}", "public GameState(){\n this.gameResults = \"\";\n initVars();\n this.theme = DEFAULT_THEME;\n this.board = new Board(DEFAULT_BOARD);\n createSetOfPlayers(DEFAULT_PLAYERS, DEFAULT_AUTOPLAYER, DEFAULT_AUTOMODE);\n }", "public SniperEnemy()\n { \n scoreBoost = 15;\n moneyBoost = 300;\n healthPoints = 500; \n fireRate = 45; \n movementCounter = 20;\n movementMod = 20;\n }", "GameState() {\n this.board = new int[SIZE][SIZE];\n this.prevMoves = \"\";\n this.rank = setRank();\n }", "public Game() {\r\n\t\tcards = new ArrayList<Card>();\r\n\t\tfor (int i = 0; i < NBCARDS; i++) {\r\n\t\t\tcards.add(new Card());\r\n\t\t}\r\n\t\tplayers = new ArrayList<Player>();\r\n\t\tfor (int i = 0; i < NBPLAYER; i++) {\r\n\t\t\tplayers.add(new Player(i + 1));\r\n\t\t}\r\n\t}", "public void initialize() {\r\n levelInformation.getBackground().addToGame(this);\r\n ScoreTrackingListener scoreTrackingListener = new ScoreTrackingListener(score);\r\n ScoreIndicator scoreIndicator = new ScoreIndicator(score, guiWidth);\r\n BlockRemover blockRemover = new BlockRemover(this, blockCounter);\r\n BallAdder ballAdder = new BallAdder(this, environment, ballCounter);\r\n BallRemover ballRemover = new BallRemover(this, ballCounter);\r\n for (Block blocks : levelInformation.blocks()) {\r\n Block block = blocks;\r\n if (block.getColor() == Color.black) {\r\n block.addHitListener(ballRemover);\r\n }\r\n if (block.getColor() == Color.magenta) {\r\n block.addHitListener(ballAdder);\r\n }\r\n block.addHitListener(blockRemover);\r\n block.addHitListener(scoreTrackingListener);\r\n block.addToGame(this);\r\n }\r\n blockCounter.increase(levelInformation.numberOfBlocksToRemove());\r\n Paddle paddle = new Paddle(new Rectangle(new Point((guiWidth / 2) - (levelInformation.paddleWidth() / 2),\r\n 580), levelInformation.paddleWidth(), 10), Color.YELLOW, keyboard, levelInformation.paddleSpeed());\r\n paddle.addToGame(this);\r\n Block top = new Block(new Rectangle(new Point(0, 0), 800, 20), Color.GRAY);\r\n Block left = new Block(new Rectangle(new Point(0, 10), wallWidth, 630), Color.GRAY);\r\n Block right = new Block(new Rectangle(new Point(guiWidth - wallWidth, 10), wallWidth, 630), Color.GRAY);\r\n Block bottom = new Block(new Rectangle(new Point(0, guiHeight), 800, 10), Color.GRAY);\r\n bottom.addToGame(this);\r\n right.addToGame(this);\r\n left.addToGame(this);\r\n top.addToGame(this);\r\n bottom.addHitListener(ballRemover);\r\n scoreIndicator.addToGame(this);\r\n }" ]
[ "0.7023813", "0.700041", "0.6941887", "0.68747705", "0.679536", "0.66986406", "0.6697973", "0.66608477", "0.6644005", "0.6551681", "0.6528818", "0.6521329", "0.6461459", "0.6418977", "0.63937205", "0.63722944", "0.6326724", "0.6323347", "0.62576145", "0.6254795", "0.623576", "0.6235635", "0.62343585", "0.62301415", "0.6226218", "0.6222004", "0.6221656", "0.6207166", "0.6186041", "0.6177297", "0.6171774", "0.6163547", "0.61584616", "0.6158056", "0.61569613", "0.6154337", "0.61479133", "0.61263597", "0.6121551", "0.61180884", "0.6076729", "0.60733044", "0.6071859", "0.60618883", "0.60176635", "0.59980506", "0.59947604", "0.5989265", "0.59753406", "0.59677386", "0.5964199", "0.5963153", "0.5962414", "0.5960714", "0.593258", "0.59313095", "0.59180045", "0.59097457", "0.59016013", "0.58999956", "0.5871196", "0.5867768", "0.5863522", "0.58414423", "0.58348554", "0.583198", "0.58246714", "0.58201784", "0.5815282", "0.5809346", "0.57997155", "0.5796668", "0.5789686", "0.57859236", "0.57843417", "0.57825875", "0.57799214", "0.5777558", "0.5768251", "0.57629263", "0.57595795", "0.5755505", "0.57531744", "0.5753166", "0.5750443", "0.57421446", "0.5738986", "0.5734854", "0.57342565", "0.57297295", "0.5726124", "0.5721822", "0.5719685", "0.57106507", "0.57054764", "0.5702474", "0.5694382", "0.56931126", "0.5692393", "0.5690724" ]
0.7678846
0
The snakeUp function tells the snake to speed up and increases the points.
public void snakeUp(){ speedUp(); points += 100; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void up(){\n\t\tmoveX=0;\n\t\tmoveY=-1;\n\t}", "public void moveUp() {\n\t\tposY += speed;\n\t}", "public void updateUp() {\n int newY = this.getY() + 1;\n this.setY(newY);\n }", "public void laserMoveUp()\r\n\t{\r\n\r\n\t\tif (y > 0)\r\n\t\t\ty -= 20;\r\n\r\n\t\telse\r\n\t\t\tdestroyed = true;\r\n\r\n\t}", "public void moveUp()\n\t{\n\t\ty = y - STEP_SIZE;\n\t}", "public void moveUp() {\n\t\tsetPosY(getPosY() - steps);\n\t}", "void moveUp();", "void moveUp();", "void moveUp() {\n\t\tsetY(y-1);\r\n\t\tdx=0;\r\n\t\tdy=-1;\r\n\t}", "private void moveSnake() { \r\n for (int i = length; i > 0; i--) {\r\n snake[i].row = snake[i-1].row;\r\n snake[i].column = snake[i-1].column; \r\n snake[i].direction = snake[i-1].direction; \r\n }\r\n if (snake[HEAD].direction == UP) snake[HEAD].row--;\r\n else if (snake[HEAD].direction == DOWN) snake[HEAD].row++;\r\n else if (snake[HEAD].direction == LEFT) snake[HEAD].column--;\r\n else if (snake[HEAD].direction == RIGHT) snake[HEAD].column++;\r\n }", "public void moveUp() {\n this.accelerateYU();\n this.moveY(this.getySpeed());\n this.setPicX(0);\n this.setPicY(211);\n this.setLoopCells(true);\n }", "public void moveUp(){\n\t\tif(GameSystem.TWO_PLAYER_MODE){\n\t\t\tif(Game.getPlayer2().dying){\n\t\t\t\treturn;\n\t\t\t}\n\t\t}\n\t\tif(animation==ANIMATION.DAMAGED||Game.getPlayer().dying||channelling||charging) return;\n\t\tmoving=true;\n\t\tbuttonReleased=false;\n\t\torientation=ORIENTATION.UP;\n\t\tif(animation!=ANIMATION.MOVEUP) {\n\t\t\tanimation=ANIMATION.MOVEUP;\n\t\t\tif(run!=null) sequence.startSequence(run);\n\t\t}\n\t\tdirection=\"up\";\n\t\tsetNextXY();\n\t\tsetDestination(nextX,nextY);\n\t\tvelY=-1*spd/2;\n\t\tvelX=0;\n\t}", "private void growSnake() { \r\n length++;\r\n snake[length-1].row = snake[length-2].row;\r\n snake[length-1].column = snake[length-2].column;\r\n if (snake[length-2].direction == UP) snake[length-1].row++;\r\n else if (snake[length-2].direction == DOWN) snake[length-1].row--;\r\n else if (snake[length-2].direction == LEFT) snake[length-1].column++;\r\n else if (snake[length-2].direction == RIGHT) snake[length-1].column--; \r\n }", "public void upSpeed()\n\t{\n\t\tmoveVec.setLocation(moveVec.getX() * 1.1, moveVec.getY() * 1.1);\n\n\t\t//this.speed *= 1.1;\n\t}", "public void moveUp() {\n locY = locY + 1;\n }", "@Override\n\tpublic void movePlayerUp() {\n\t\tpacman.changeNextDirection(Direction.up);\n //movePacman();\n\t}", "public void goUp()\r\n\t{\r\n\t\tthis.Y--;\r\n\t}", "public void moveUp() {\n\t\tstate.updateFloor(state.getFloor()+1);\n\t}", "public void intake(double up_speed, double down_speed) //上面&下面的intake\n {\n intake_up.set(ControlMode.PercentOutput, up_speed);\n intake_down.set(ControlMode.PercentOutput, down_speed);\n }", "public void moveUp() {\n Coordinate upCoord = new Coordinate(getX(), getY() - 1);\n handleMove(upCoord, InteractionHandler.UP);\n }", "private void moveSnake()\r\n\r\n\t{\r\n\r\n\t\t//Get the lower & upper limit for the last row of the board. \r\n\t\t// e.g. for a 20x20 board, these values would be 380 & 400 respectively\r\n\t\tint lowerLimitOfLastRow = numOfBoardRows*numOfBoardCols-numOfBoardCols;\r\n\t\tint upperLimitOfLastRow = numOfBoardRows*numOfBoardCols;\r\n\r\n\t\t//Loop through all snakes to update their location\r\n\t\tfor(Snake s: snakes)\r\n\t\t{\r\n\t\t\t//Do nothing if snake is not alive\r\n\t\t\tif(!s.isSnakeAlive())\r\n\t\t\t\tcontinue;\r\n\t\t\t//Move the snake number of cells depending on its current speed. i.e. \r\n\t\t\t// snake with minimum/default speed will move only one cell while with maximum speed will move 4 cells during the same time. \r\n\t\t\tfor(int i=s.getSnakeSpeed().getValue(); i<= SnakeSpeed.DEFAULT.getValue(); i=i*2)\r\n\t\t\t{\r\n\t\t\t\tint lastCellLocation = -1;\r\n\t\t\t\tSnakeDirection sd = s.getSnakeDirection();\r\n\t\t\t\tArrayList<Integer> scells = s.getSnakeCells();\r\n\r\n\t\t\t\tif(s.getSnakeIndex() == snakeIndex)\r\n\t\t\t\t{\r\n\t\t\t\t\tlastCellLocation = scells.get(scells.size()-1);\r\n\t\t\t\t}\r\n\r\n\r\n\t\t\t\t//Move the cells forward except the first one\r\n\t\t\t\tfor(int j=scells.size()-1;j>0;j--)\r\n\t\t\t\t{\r\n\t\t\t\t\tscells.set(j, scells.get(j-1)); \r\n\t\t\t\t}\r\n\r\n\t\t\t\t//Update the first cell based on the current direction of the snake\r\n\t\t\t\tif(sd == SnakeDirection.DOWN)\r\n\t\t\t\t{\r\n\t\t\t\t\t//Set the value of first cell as the cell in the same column but first row when the current cell is in the last row \r\n\t\t\t\t\tif(scells.get(0) >= lowerLimitOfLastRow && scells.get(0) < upperLimitOfLastRow)\r\n\t\t\t\t\t\tscells.set(0, scells.get(0) - lowerLimitOfLastRow);\r\n\t\t\t\t\t//Else, Set the value of first cell as the cell under the current cell in the next row \r\n\t\t\t\t\telse\r\n\t\t\t\t\t\tscells.set(0, scells.get(0) + numOfBoardCols);\r\n\t\t\t\t}\r\n\t\t\t\telse if(sd == SnakeDirection.UP)\r\n\t\t\t\t{\r\n\t\t\t\t\t//Set the value of first cell as the cell in the same column but last row when the current cell is in the first row \r\n\t\t\t\t\tif(scells.get(0) >= 0 && scells.get(0) < numOfBoardCols)\r\n\t\t\t\t\t\tscells.set(0, scells.get(0) + lowerLimitOfLastRow);\r\n\t\t\t\t\t//Else, Set the value of first cell as the cell above the current cell in the next row \r\n\t\t\t\t\telse\r\n\t\t\t\t\t\tscells.set(0, scells.get(0) - numOfBoardCols);\r\n\t\t\t\t}\r\n\t\t\t\telse if(sd == SnakeDirection.RIGHT)\r\n\t\t\t\t{\r\n\t\t\t\t\t//Set the value of first cell as the current cell value minus the number of columns when the current cell is in the last column \r\n\t\t\t\t\tif(scells.get(0)%numOfBoardCols == numOfBoardCols - 1)\r\n\t\t\t\t\t\tscells.set(0, scells.get(0) - (numOfBoardCols - 1));\r\n\t\t\t\t\t//Else, Set the value of first cell as the current value incremented by one \r\n\t\t\t\t\telse\r\n\t\t\t\t\t\tscells.set(0, scells.get(0) + 1);\r\n\t\t\t\t}\r\n\t\t\t\telse if(sd == SnakeDirection.LEFT)\r\n\t\t\t\t{\r\n\t\t\t\t\t//Set the value of first cell as the current cell value plus the number of columns when the current cell is in the first column \r\n\t\t\t\t\tif(scells.get(0)%numOfBoardCols == 0)\r\n\t\t\t\t\t\tscells.set(0, scells.get(0) + numOfBoardCols -1);\r\n\t\t\t\t\t//Else, Set the value of first cell as the current value decremented by one \r\n\t\t\t\t\telse\r\n\t\t\t\t\t\tscells.set(0, scells.get(0) - 1);\r\n\t\t\t\t}\r\n\r\n\r\n\t\t\t\t//Update snake length & food cells if its the current player's snake and there's a food item at the same location as snake's head\r\n\t\t\t\tif(s.getSnakeIndex() == snakeIndex) \r\n\t\t\t\t{\r\n\t\t\t\t\tif(foodCells.contains(scells.get(0)))\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tscells.add(lastCellLocation);\r\n\t\t\t\t\t\tfoodCells.remove(scells.get(0));\r\n\t\t\t\t\t} \r\n\t\t\t\t}\r\n\t\t\t\ts.setSnakeCells(scells);\r\n\r\n\t\t\t}\r\n\t\t}\r\n\t\t//refresh the board to send/receive latest snakeProtocol object between client/server and also update the board\r\n\t\trefreshBoard();\r\n\t}", "public void up() {\n\t\tswitch (facing){\n\t\tcase \"RIGHT\" :\n\t\t\tvely = 0;\n\t\t\tvelx = 1.5;\n\t\t\tbreak;\n\t\tcase \"LEFT\" :\n\t\t\tvely = 0;\n\t\t\tvelx = -1.5;\n\t\t\tbreak;\n\t\tcase \"UP\" :\n\t\t\tvely = -1.5;\n\t\t\tvelx = 0;\n\t\t\tbreak;\n\t\tcase \"DOWN\" :\n\t\t\tvely = 1.5;\n\t\t\tvelx = 0;\n\t\t\tbreak;\n\t\t}\n\t}", "void moveUp(double speed, double destination)\n {\n this.destination = shaftHeight-(destination*floorHeight);\n if(speed == 1.75) speed = 1.25; //1.2175;\n else if(speed == 0.875) speed = 0.6; //0.5875;\n\n elevatorOffset = -1*speed;\n motorTimeline.play();\n }", "private void goUpWall() {\n\t\t// TODO Auto-generated method stub\n\t\tthis.turnLeft();\n\t\tthis.move(2);\n\t\tthis.turnRight();\n\t}", "protected void up() {\n move(positionX, positionY - 1);\n orientation = BattleGrid.RIGHT_ANGLE * 3;\n }", "public void moveUp()\n {\n if (yPos == 0)\n {\n movementY = 0;\n movementX = 0;\n }\n\n // Set the movement factor - negative Y because we are moving UP!\n movementY = -0.5;\n movementX = 0;\n }", "public void moveUp() {\n if (getY() - 25 - getSpeed() >= 0 && !touchMaterial()) setY(getY() - getSpeed());\n }", "public void moveUp() {\n if(!move.moveUp()) {\n \t if(physinteractor(getX(),getY()-1)) {\n \t\t move.moveUp();\n \t\t nonphysinteractor(getX(),getY());\n \t\t updatemove();\n \t }\n }else {\n \tupdatemove();\n \tnonphysinteractor(getX(),getY());\n }\n }", "public void moveUp()\n\t{\n\t\trow++;\n\t}", "public void speedUp(){\r\n\t\tmoveSpeed+=1;\r\n\t\tmoveTimer.setDelay(1000/moveSpeed);\r\n\t}", "private void move() {\n\n for (int z = snakeLength; z > 0; z--) {\n xLength[z] = xLength[(z - 1)];\n yLength[z] = yLength[(z - 1)];\n }\n\n if (left) {\n xLength[0] -= elementSize;\n }\n\n if (right) {\n xLength[0] += elementSize;\n }\n\n if (up) {\n yLength[0] -= elementSize;\n }\n\n if (down) {\n yLength[0] += elementSize;\n }\n }", "public boolean moveForward(){\n \n int[] last = (int[]) this.snake.elementAt(this.snake.size() -1);\n int[] sLast = (int[]) this.snake.elementAt(this.snake.size() -2);\n int[] diff = new int[2];\n int[] diff2 = new int[2];\n \n diff[0] = last[0] - sLast[0];\n diff[1] = last[1] - sLast[1];\n \n //left\n if( direction == 1){\n diff2[0]--;\n if(diff2[0] == -1*diff[0] &&diff2[1] == -1*diff[1]){\n diff = new int[]{0,0}; \n }else{\n diff = diff2; \n }\n \n //down\n }else if(direction == 2){\n \n diff2[1]++;\n if(diff2[0] == -1*diff[0] &&diff2[1] == -1*diff[1]){\n diff = new int[]{0,0}; \n }else{\n diff=diff2; \n //System.out.println(\"first one: \" + diff[0] + \", \" + diff[1]);\n }\n \n //right\n }else if(direction == 3){\n diff2[0]++;\n if(diff2[0] == -1*diff[0] &&diff2[1] == -1*diff[1]){\n diff = new int[]{0,0}; \n }else{\n diff=diff2; \n }\n \n //up\n }else if(direction == 4){\n \n diff2[1]--;\n //System.out.println(\"\" + diff[0] + \", \" + diff[1]);\n if(diff2[0] == -1*diff[0] &&diff2[1] == -1*diff[1]){\n diff = new int[]{0,0}; \n }else{\n diff=diff2; \n }\n }else{ \n diff[0] = last[0] - sLast[0];\n diff[1] = last[1] - sLast[1];\n }\n \n int[] newPoint = new int[2];\n newPoint[0] = last[0] + diff[0];\n newPoint[1] = last[1] + diff[1];\n \n //if it hits the snake itself\n boolean hits = false;\n Enumeration enu = this.snake.elements();\n int[] temp = new int[2];\n while(enu.hasMoreElements()){\n temp = (int[]) enu.nextElement();\n if(temp[0] == newPoint[0] && temp[1] == newPoint[1]){\n hits = true; \n }\n }\n if(hits){\n return false; \n }\n //if it hits the wall\n if( newPoint[0] >50 || newPoint[0] <0 || newPoint[1] >50 || newPoint[1] <0){\n return false; \n }else{\n if(newPoint [0] == this.apple[0] && newPoint[1] == this.apple[1]){\n this.snake.add(newPoint);\n this.ateApple();\n }else{\n this.snake.add(newPoint);\n this.snake.remove(0);\n \n \n }\n return true;\n }\n }", "public String moveUp() {\n\r\n\t\tif((0<=x && x<=50) && (0<=y && y<10) && (0<=z && z<=50))\r\n\t\t{\r\n\t\t\ty++;\r\n\t\t}\r\n\t\telse if((0<=x && x<=50) && (40<=y && y<50) && (0<=z && z<=50))\r\n\t\t{\r\n\t\t\ty++;\r\n\t\t}\r\n\t\telse if((0<=x && x<=50) && (0<=y && y<50) && (0<=z && z<=10))\r\n\t\t{\r\n\t\t\ty++;\r\n\t\t}\r\n\t\telse if((0<=x && x<=10) && (0<=y && y<50) && (0<=z && z<=50))\r\n\t\t{\r\n\t\t\ty++;\r\n\t\t}\r\n\t\telse if((0<=x && x<=50) && (0<=y && y<50) && (40<=z && z<=50))\r\n\t\t{\r\n\t\t\ty++;\r\n\t\t}\r\n\t\telse if((40<=x && x<=50) && (0<=y && y<50) && (0<=z && z<=50))\r\n\t\t{\r\n\t\t\ty++;\t\r\n\t\t}\r\n\t\treturn getFormatedCoordinates();\r\n\t}", "public void goUp() {\n\t\tacceleration = -1;\n\t}", "public void up() {dy = -SPEED;}", "public void goUp();", "private static void move() {\r\n\t\ttry {\r\n\t\t\tThread.sleep(timer);\r\n\t\t} catch (InterruptedException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\trunTime += timer;\r\n\t\tif (runTime > stepUp) {\r\n\t\t\ttimer *= 0.9;\r\n\t\t\tstepUp += 5000;\r\n\t\t}\r\n\r\n\t\tupdateSnake(lastMove);\r\n\t\t// updateField();\r\n\r\n\t\tif (score >= 10 && (r.nextInt(40) == 0)) {\r\n\t\t\taddFood(MOUSE);\r\n\t\t}\r\n\t\tif (score >= 30 && (r.nextInt(50) == 0)) {\r\n\t\t\taddFood(POISON);\r\n\t\t}\r\n\t}", "public void moveUp() {\n if (ycoor >= movingSpeed) {\n ycoor = ycoor - movingSpeed;\n }\n }", "public void update() {\n\t\tif(snakeUpdateTimer.update()) {\n\t\t\tpreventMovementInOppositeDirection();\n\t\t\t\n\t\t\tsnake.removeFirst(); // \"last\" element of the snake\n\t\t\tconvertHeadToTailComponent();\n\t\t\taddNewHead();\n\t\t}\n\t}", "public void moveUp() {\n speedY += (speedY < 0) ? acceleration * 2 : acceleration;\n if (speedY > maxSpeed) {\n speedY = maxSpeed;\n }\n direction = Direction.UP;\n }", "public void moveUp()\n\t{\n\t\tthis.grid.moveUp();\n\t}", "public void moveUp() {\n\n if (this.row - 1 < 16) {\n return;\n }\n this.row -= 1;\n\n playerImage.translate(0, -Cell.CELLSIZE);\n playerImage.draw();\n }", "private void touchUp(){\n path.lineTo(pointX,pointY);\n }", "private void playerMoveUp()\n {\n this.getCurrentLevel().getInLevelLocation()[this.getCurrentX()][this.getCurrentY()].setHasPlayer(false);\n this.setCurrentY(this.getCurrentY() - 1);\n if (this.getCurrentY() > -1) {\n if (!nextIsWall()) {\n this.getCurrentLevel().getInLevelLocation()[this.getCurrentX()][this.getCurrentY()].setHasPlayer(true);\n } else {\n this.setCurrentY(this.getCurrentY() + 1);\n this.getCurrentLevel().getInLevelLocation()[this.getCurrentX()][this.getCurrentY()].setHasPlayer(true);\n }\n } else// hit edge redo setlocation\n {\n this.setCurrentY(this.getCurrentY() + 1);\n this.getCurrentLevel().getInLevelLocation()[this.getCurrentX()][this.getCurrentY()].setHasPlayer(true);\n } \n }", "public void moveUp() {\r\n\t\tmy_cursor_location.y--;\r\n\t}", "public void upPressed() {\n System.out.println(\"upPressed()\");\n current.rotate();\n display.showBlocks();\n }", "public void move() {\n switch (route) {\n case UP:\n moveBody();\n\n // turn snake direction to the up\n snakeParts.set(0,\n new Ellipse2D.Double(snakeParts.get(0).getMinX(), snakeParts.get(0).getMinY() - 20, SNAKE_X_SIZE, SNAKE_Y_SIZE));\n if (snakeParts.get(0).getMinY() < 0) {\n over = true;\n }\n break;\n\n case DOWN:\n moveBody();\n\n // turn snake direction to the down\n snakeParts.set(0,\n new Ellipse2D.Double(snakeParts.get(0).getMinX(), snakeParts.get(0).getMinY() + 20, SNAKE_X_SIZE, SNAKE_Y_SIZE));\n if (snakeParts.get(0).getMaxY() > gameGround.getBounds().getMaxY()) {\n over = true;\n }\n break;\n\n case LEFT:\n moveBody();\n\n // turn snake direction to the left\n snakeParts.set(0,\n new Ellipse2D.Double(snakeParts.get(0).getMinX() - 20, snakeParts.get(0).getMinY(), SNAKE_X_SIZE, SNAKE_Y_SIZE));\n if (snakeParts.get(0).getMinX() < 0) {\n over = true;\n }\n break;\n\n case RIGHT:\n moveBody();\n\n // turn snake direction to the right\n snakeParts.set(0,\n new Ellipse2D.Double(snakeParts.get(0).getMinX() + 20, snakeParts.get(0).getMinY(), SNAKE_X_SIZE, SNAKE_Y_SIZE));\n if (snakeParts.get(0).getMaxX() > gameGround.getBounds().getMaxX()) {\n over = true;\n }\n break;\n\n default:\n new Exception(\"Unexpected Direction value!\").printStackTrace();\n break;\n }\n }", "@Override\n\tpublic void keyPressed(KeyEvent e) {\n\t\tif (e.getKeyCode() == KeyEvent.VK_RIGHT) {\n\t\t\t// object.x = object.x + 20;\n\t\t\t// snake1.x = snake1.x + snake1.speed;\n\t\t\tsnake1.right = true;\n\t\t\tsnake1.left = false;\n\t\t\tsnake1.up = false;\n\t\t\tsnake1.down = false;\n\t\t}\n\t\tif (e.getKeyCode() == KeyEvent.VK_LEFT) {\n\t\t\t// object.x = object.x - 20;\n\t\t\t// snake1.x = snake1.x - snake1.speed;\n\t\t\tsnake1.right = false;\n\t\t\tsnake1.left = true;\n\t\t\tsnake1.up = false;\n\t\t\tsnake1.down = false;\n\t\t}\n\t\tif (e.getKeyCode() == KeyEvent.VK_DOWN) {\n\t\t\t// object.y = object.y + 20;\n\t\t\tsnake1.right = false;\n\t\t\tsnake1.left = false;\n\t\t\tsnake1.up = false;\n\t\t\tsnake1.down = true;\n\t\t}\n\t\tif (e.getKeyCode() == KeyEvent.VK_UP) {\n\t\t\t// object.y = object.y - 20;\n\t\t\tsnake1.right = false;\n\t\t\tsnake1.left = false;\n\t\t\tsnake1.up = true;\n\t\t\tsnake1.down = false;\n\t\t}\n\n\t}", "public void adjustUp() {\n\n for (int y = 0; y < MAP_HEIGHT; y++)\n for (int x = 0; x < MAP_WIDTH; x++) {\n tiles[x][y].y = tiles[x][y].y - 4;\n backGroundTiles[x][y].y = backGroundTiles[x][y].y - 4;\n grassTiles[x][y].y = grassTiles[x][y].y - 4;\n }\n }", "public void up() {\n\t\tSystem.out.println(\"\\tAir conditioner is up to \" + ++tem +\" degrees\");\n\t}", "public void startSnake()\n {\n int thisA = (150+1260)/2; //705\n int thisB = (150+630)/2 -195; //195\n \n for(int i=0 ; i<3; i++)\n {\n list.add(new Location(thisA,thisB));\n //drawSegment(g,thisA,thisB);\n thisB += 15;\n \n }\n head.setA(thisA);\n head.setB(thisB-15); //to adjust for the extra +15 at the end of the last for loop run through \n }", "public void moveUp() {\n btMoveUp().push();\n }", "public void moveUp() {\n btMoveUp().push();\n }", "void setTubeUpPosition(double x, double y);", "@Override\n\tpublic void actionPerformed(ActionEvent e) {\n\t\ttimer.restart();\n\t\tif(right) \n\t\t{\n\t\t\tfor(int n = lengthOfSnake-1; n>=0;n--)\n\t\t\t{\n\t\t\t\tsnakeYLenght[n+1] = snakeYLenght[n];\n\t\t\t}\n\t\t\tfor(int n = lengthOfSnake; n>=0; n--) \n\t\t\t{\n\t\t\t\tif (n==0) \n\t\t\t\t{\n\t\t\t\t\tsnakeXLenght[n] = snakeXLenght[n]+25;\n\t\t\t\t}\n\t\t\t\telse \n\t\t\t\t{\n\t\t\t\t\tsnakeXLenght[n] = snakeXLenght[n-1];\n\t\t\t\t}\n\t\t\t\tif(snakeXLenght[n] >850)\n\t\t\t\t{\n\t\t\t\t\tsnakeXLenght[n] = 25;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t}\n\t\t\trepaint();\n\t\t}\n\t\t\n\t\tif(left) \n\t\t{\n\t\t\tfor(int n = lengthOfSnake-1; n>=0;n--)\n\t\t\t{\n\t\t\t\tsnakeYLenght[n+1] = snakeYLenght[n];\n\t\t\t}\n\t\t\tfor(int n = lengthOfSnake; n>=0; n--) \n\t\t\t{\n\t\t\t\tif (n==0) \n\t\t\t\t{\n\t\t\t\t\tsnakeXLenght[n] = snakeXLenght[n]-25;\n\t\t\t\t}\n\t\t\t\telse \n\t\t\t\t{\n\t\t\t\t\tsnakeXLenght[n] = snakeXLenght[n-1];\n\t\t\t\t}\n\t\t\t\tif(snakeXLenght[n] < 25)\n\t\t\t\t{\n\t\t\t\t\tsnakeXLenght[n] = 850;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t}\n\t\t\trepaint();\t\t\t\n\t\t\t\n\t\t}\n\t\tif(up) \n\t\t{\n\t\t\tfor(int n = lengthOfSnake-1; n>=0;n--)\n\t\t\t{\n\t\t\t\tsnakeXLenght[n+1] = snakeXLenght[n];\n\t\t\t}\n\t\t\tfor(int n = lengthOfSnake; n>=0; n--) \n\t\t\t{\n\t\t\t\tif (n==0) \n\t\t\t\t{\n\t\t\t\t\tsnakeYLenght[n] = snakeYLenght[n]-25;\n\t\t\t\t}\n\t\t\t\telse \n\t\t\t\t{\n\t\t\t\t\tsnakeYLenght[n] = snakeYLenght[n-1];\n\t\t\t\t}\n\t\t\t\tif(snakeYLenght[n] < 75)\n\t\t\t\t{\n\t\t\t\t\tsnakeYLenght[n] = 625;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t}\n\t\t\trepaint();\n\t\t\t\n\t\t}\n\t\tif(down) \n\t\t{\n\t\t\tfor(int n = lengthOfSnake-1; n>=0;n--)\n\t\t\t{\n\t\t\t\tsnakeXLenght[n+1] = snakeXLenght[n];\n\t\t\t}\n\t\t\tfor(int n = lengthOfSnake; n>=0; n--) \n\t\t\t{\n\t\t\t\tif (n==0) \n\t\t\t\t{\n\t\t\t\t\tsnakeYLenght[n] = snakeYLenght[n]+25;\n\t\t\t\t}\n\t\t\t\telse \n\t\t\t\t{\n\t\t\t\t\tsnakeYLenght[n] = snakeYLenght[n-1];\n\t\t\t\t}\n\t\t\t\tif(snakeYLenght[n] > 625)\n\t\t\t\t{\n\t\t\t\t\tsnakeYLenght[n] = 75;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t}\n\t\t\t\n\t\t\trepaint();\n\t\t}\n\t\t\n\t\t\n\t}", "void update()\n\t{\n\t\t// the snake moves this function records it\n\t\ttheSnake.update();\n\n\t\t// checks if the snake is alive\n\t\tplaying = theSnake.isAlive();\n\n\t\t// checks if the snake has eaten a fruit\n\t\tif (theSnake.getXofPartI(0) == fruit[0] && theSnake.getYofPartI(0) == fruit[1] && theSnake.getZofPartI(0) == fruit[2])\n\t\t{\n\t\t\t// the snake grows\n\t\t\ttheSnake.grow();\n\t\t\t// a new fruit location needs to be determined\n\t\t\tplaceFruit();\n\t\t}\n\t}", "@FXML\n\tprivate void moveUp(ActionEvent event) {\n\t\t\n\t\tRandom rand = new Random();\n\t\t\n\t\tint combatroll = rand.nextInt(101);\n\t\tint itemroll = rand.nextInt(101);\n\t\t\n\t\t\n\t\tif(l.upValid && combat == false) {\n\t\t\tunsetValidMoves();\n\t\t\tl.moveUp();\n\t\t\tsetCurrentPos();\n\n\t\t\tif(currentPos != finishCircle) {\n\t\t\t\tif(combatroll >= 80) { \n\t\t\t\t\n\t\t\t\t\tcombat();\t\n\t\t\t\t}else if(itemroll>=40) {\n\t\t\t\t\trollCommonDrop();\n\t\t\t\t}\n\t\t\t\n\t\t\t}\n\n\t\t\telse if(currentPos == finishCircle) {\n\t\t\t\t\n\t\t\t\tbossfight();\n\t\t\t\n\t\t\t}\n\t\t\telse {\n\t\t\t\treturn;\n\t\t\t}\n\t\t}\n\t}", "private Boolean moveUp() {\n\t\t\tboolean loose = true;\n\n\t\t\tint x = startX;\n\t\t\tint y = startY;\n\n\t\t\tNode newNode = new Node(x, y, Util.getBall(1));\n\n\t\t\twhile (y >= 0 && chart[y][x] == null) {\n\t\t\t\tif (y + 1 < chart.length)\n\t\t\t\t\tchart[y + 1][x] = null;\n\n\t\t\t\tchart[y][x] = newNode;\n\n\t\t\t\tcanvas = holder.lockCanvas();\n\t\t\t\tonDraw(canvas);\n\t\t\t\tpostInvalidate();\n\t\t\t\tholder.unlockCanvasAndPost(canvas);\n\n\t\t\t\ttry {\n\t\t\t\t\tThread.sleep(50);\n\t\t\t\t} catch (InterruptedException e) {\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\n\t\t\t\tnewNode.setyPos(--y);\n\n\t\t\t\tloose = false;\n\t\t\t}\n\n\t\t\tif (loose)// No Update\n\t\t\t\treturn false;\n\n\t\t\tconnectNewNode(newNode);\n\t\t\treturn true;\n\t\t}", "public boolean stepUp() {\n yMaze--;\n printMyPosition();\n return true; // should return true if step was successful\n }", "public void startSnake() {\n createBoard();\n generateFirstSnake();\n generateEnemy();\n spawnApples();\n printBoard();\n keepMoving();\n }", "@Test\n\tpublic final void nextPositionUpTest() {\n\t\tplayer.setUp(true);\n\t\tplayer.getNextYPosition();\n\t\tassertTrue(player.isJumping());\n\t}", "public void up() {\n double speed = RobotContainer.m_BlackBox.getPotValueScaled(Constants.OIConstants.kControlBoxPotY, 0.0, 1.0);\n m_hook.set(speed);\n SmartDashboard.putNumber(\"forward speed\", speed);\n }", "void giveUp();", "public void animateMovementUp()\n {\n if(animationCount%frameRate == 0)\n {\n imageNumber = (imageNumber + 1)% (upMvt.length);\n setImage(upMvt[imageNumber]);\n } \n }", "public void moveUp(double speed){\n speed *= ARM_SPEED_MULT;\n arm.setPower(speed);\n if (arm.getCurrentPosition() >= ARM_UPPER_BOUND) {\n arm.setPower(0);\n }\n }", "public synchronized void moveSnake() {\n\t\tif(!this.isDead()) { // as long as the snake is alive\n\t\t\tSegment temp = tail; // set a temp segment to have a handle on the head\n\t\t\t\n\t\t\twhile(temp!=null) { // while temp is not null\n\t\t\t\ttemp.move(); // move temp\n\t\t\t\ttemp = temp.getSeg(); // make temp the segment temp has a handle on (i.e. the segment in front of it)\n\t\t\t}\n\t\t\t\n\t\t}\n\t}", "public void moveTileUp(float delta) {\n if (y < destinationY - COMBAT_MOVEMENT_SPEED * delta) speedY = COMBAT_MOVEMENT_SPEED;\n else {\n speedY = (destinationY - y) / delta;\n isMoving = false;\n isMovingUp = false;\n }\n direction = Direction.UP;\n }", "public boolean moveUp()\n {\n\tboolean update;\n\tboolean action = false;\n\t\n\tdo\n\t{\n update = false;\n\t\t\t\n for (int y=0; y<cases.length-1; y++)\n {\n\t\tfor (int x=0; x<cases[y].length; x++)\n {\n boolean merge;\n boolean move;\n\t\t\t\t\t\n do\n {\n\t\t\tmerge = merge(cases[y+1][x],cases[y][x]);\n\t\t\tmove = move(cases[y+1][x],cases[y][x]);\n\t\t\tupdate = (update || merge || move);\n if(!action && update)\n {\n action = update; \n }\n } while (merge || move);\n\t\t}\n }\n } while (update);\n \n return action;\n }", "public void growSnake() {\n\t\tSnakeObj.length++;\n\t\txHead++;\n\t\tyHead++; \n\t\tSnakeArray[xHead][yHead] = 1; \n\t\tthis.repaint(); \n\t}", "public void moveUp(float distance)\r\n {\r\n position.y -= distance;\r\n }", "public Vertex moveUp() {\n for (Edge e : current.outEdges) {\n move(e.to.y == current.y - 1, e);\n }\n return current;\n }", "public void keyPressed(KeyEvent e) {\n\t\tif(e.getKeyCode()==KeyEvent.VK_SPACE)\r\n\t\t{\r\n\t\t\tmove=0;\r\n\t\t\tscore=0;\r\n\t\t\tlengthofsnake=3;\r\n\t\t\trepaint();\r\n\t\t}\r\n\t\t//movement of snake by keys\r\n\t\tif(e.getKeyCode()==KeyEvent.VK_RIGHT)\r\n\t\t{\r\n\t\t\tmove++;\r\n\t\t\tright=true;\r\n\t\t\tif(left!=true)\r\n\t\t\t{\r\n\t\t\t\tright=true;\r\n\t\t\t\t\r\n\t\t\t}\r\n\t\t\telse\r\n\t\t\t{\r\n\t\t\t\tright=false;\r\n\t\t\t\tleft=true;\r\n\t\t\t}\r\n\r\n\t\t\tup=false;\r\n\t\t\tdown=false;\r\n\t\t}\r\n\t\t\r\n\t\tif(e.getKeyCode()==KeyEvent.VK_LEFT)\r\n\t\t{\r\n\t\t\tmove++;\r\n\t\t\tleft=true;\r\n\t\t\tif(right!=true)\r\n\t\t\t{\r\n\t\t\t\tleft=true;\r\n\t\t\t\t\r\n\t\t\t}\r\n\t\t\telse\r\n\t\t\t{\r\n\t\t\t\tleft=false;\r\n\t\t\t\tright=true;\r\n\t\t\t}\r\n\t\t\r\n\t\t\tup=false;\r\n\t\t\tdown=false;\r\n\t\t}\r\n\t\t\r\n\t\tif(e.getKeyCode()==KeyEvent.VK_UP)\r\n\t\t{\r\n\t\t\tmove++;\r\n\t\t\tup=true;\r\n\t\t\tif(down!=true)\r\n\t\t\t{\r\n\t\t\t\tup=true;\r\n\t\t\t\t\r\n\t\t\t}\r\n\t\t\telse\r\n\t\t\t{\r\n\t\t\t\tup=false;\r\n\t\t\t\tdown=true;\r\n\t\t\t}\r\n\t\t\tleft=false;\r\n\t\t\tright=false;\r\n\t\t}\r\n\t\tif(e.getKeyCode()==KeyEvent.VK_DOWN)\r\n\t\t{\r\n\t\t\tmove++;\r\n\t\t\tdown=true;\r\n\t\t\tif(up!=true)\r\n\t\t\t{\r\n\t\t\t\tdown=true;\r\n\t\t\t\t\r\n\t\t\t}\r\n\t\t\telse\r\n\t\t\t{\r\n\t\t\t\tdown=false;\r\n\t\t\t\tup=true;\r\n\t\t\t}\r\n\t\t\tleft=false;\r\n\t\t\tright=false;\r\n\t\t}\r\n\t}", "public void increaseSpeed()\r\n\t{\r\n\t\t//Do nothing if maximum speed is achieved\r\n\t\tif(currentSpeed == SnakeSpeed.MAX)\r\n\t\t\treturn;\r\n\t\t//Else, increase the speed to next level\r\n\t\telse if(currentSpeed == SnakeSpeed.DEFAULT)\r\n\t\t{\r\n\t\t\tcurrentSpeed = SnakeSpeed.MEDIUM;\r\n\t\t}\r\n\t\telse if(currentSpeed == SnakeSpeed.MEDIUM)\r\n\t\t{\r\n\t\t\tcurrentSpeed = SnakeSpeed.MAX;\r\n\t\t}\r\n\r\n\t\t//Set the updated speed for the snake of the current player \r\n\t\tsnakes.get(snakeIndex).setSnakeSpeed(currentSpeed);\r\n\t}", "@Override\n public void onUp() {\n\n if(player.getDirection().y == 1){\n player.setDirection(new Vector2(0, 1.5f));\n }\n else{\n player.setDirection(new Vector2(0, 1));\n\n }\n }", "private int up(int row, int column, char check, char[][] upBoard, ArrayList<Point> traversedPoints)\n\t{\n\t\t// checks if requesting point off board, or point already traversed\n\t\tif (row == 0 || traversedPoints.contains(new Point(column, row - 1)))\n\t\t{\n\t\t\treturn -1;\n\t\t}\n\t\telse if (upBoard[column][row - 1] != ' ' && upBoard[column][row - 1] != check)\n\t\t{\n\t\t\treturn -1;\n\t\t}\n\t\telse\n\t\t{\n\t\t\treturn row - 1;\n\t\t}\n\t}", "private void createSnake() {\r\n int halfWidth = gridWidth / 2;\r\n int halfHeight = gridHeight / 2;\r\n \r\n snake = new Snake(new Coordinates(halfWidth, halfHeight), 5, Direction.WEST);\r\n }", "public void moveUp()\n {\n if (!this.search_zone.isTopBorder(this.y_position))\n {\n this.y_position = (this.y_position - 1);\n }\n }", "protected int moveUpFloor() {\n delayElevator();\n return currentFloor.incrementAndGet();\n }", "public void moveAsteroidUpandDown() {\t\t\t\r\n\t\tsetX(this.getX()+1);\r\n\t}", "public static void adjustScoreIncrement() {\n\t\tint extraPoints = 0;\n\t\tif (!Snake.warpWallOn) {\n\t\t\textraPoints++;\n\t\t}\n\t\tif (Block.blocksOn) {\n\t\t\textraPoints++;\n\t\t}\n\t\tif (Snake.snakeGrowsQuickly) {\n\t\t\textraPoints++;\n\t\t}\n\t\tif (Snake.snakeGrowsReallyQuickly) {\n\t\t\textraPoints+=3;\n\t\t}\n\t\t// increment equals all the bonuses, starting at a minimum of 1. This decreases if user switches to easier modes. Bigness and Fastness are reduced by 1 each here to keep the amount of increase down; it could be pumped up for a really high-scoring game\n\t\tincrement = extraPoints + SnakeGame.getBigness()-1 + SnakeGame.getFastness()-1 + Snake.snakeSize/10 ;\n\t}", "protected void createDebugSnake() {\n int freespaces = 5;\n snakeSize = maxX - freespaces;\n int segmentnum = 0;\n\n int cur_x_square = freespaces;\n int cur_y_square = 0;\n snakeHeadX = cur_x_square;\n snakeHeadY = cur_y_square;\n\n\n // build first row:\n for (cur_x_square = freespaces; cur_x_square < snakeSize + freespaces; cur_x_square++) {\n //System.out.println(segmentnum + \": \" + cur_x_square + \",\" + cur_y_square);\n snakeSquares[cur_x_square][cur_y_square] = ++segmentnum;\n }\n //fill in body of snake\n while (cur_y_square < maxY - 1) {\n cur_y_square++;\n if (cur_y_square % 2 == 0) {\n for (cur_x_square = maxX - 1; cur_x_square > 0; cur_x_square--) {\n //System.out.println(segmentnum + \": \" + cur_x_square + \",\" + cur_y_square);\n snakeSquares[cur_x_square][cur_y_square] = ++segmentnum;\n }\n } else {\n for (cur_x_square = 1; cur_x_square < maxX; cur_x_square++) {\n //System.out.println(segmentnum + \": \" + cur_x_square + \",\" + cur_y_square);\n snakeSquares[cur_x_square][cur_y_square] = ++segmentnum;\n }\n }\n }\n\n //fill in tail so it can be chased by the player as they eat the last few\n // kibbles that appear\n for (cur_y_square = maxY - 1; cur_y_square > 0; cur_y_square--) {\n //System.out.println(segmentnum + \": \" + cur_x_square + \",\" + cur_y_square);\n snakeSquares[0][cur_y_square] = ++segmentnum;\n }\n\n snakeSize = segmentnum;\n\n currentHeading = DIRECTION_LEFT;\n lastHeading = DIRECTION_LEFT;\n\n justAteMustGrowThisMuch = 0;\n }", "protected void levelUp(){\r\n\t\tthis.level = this.level+1;\r\n\t\tint prevMaxHp = this.getHitPoints();\r\n\t\tint prevAtk = this.getAttackRating();\r\n\t\tint prevDef = this.getDefenseRating();\r\n\r\n\t\tif(level>=2 && level<=9){\r\n\t\t\tthis.maxHitPoints += 7;\r\n\t\t\tthis.attackRating += 3;\r\n\t\t\tthis.defenseRating += 3;\r\n\t\t}\r\n\r\n\t\tif(level>=10){\r\n\t\t\tthis.maxHitPoints+=2;\r\n\t\t\tthis.attackRating+=1;\r\n\t\t\tthis.defenseRating+=1;\r\n\t\t}\r\n\r\n\t\tthis.experienceValue+=15;\r\n\t\tthis.hitPoints = maxHitPoints;\r\n\r\n\t\tSystem.out.format(\"\\n|----LEVEL-UP----|\");\r\n\t\tSystem.out.print(\"\\n\" + this.getName() + \" is now level \" + this.getLevel());\r\n\t\tSystem.out.format(\"%nMax Hit Points: %2d ---> %2d\", prevMaxHp, this.getMaxHitPoints());\r\n\t\tSystem.out.format(\"%nAttack rating: %2d ---> %2d\", prevAtk, this.getAttackRating());\r\n\t\tSystem.out.format(\"%nDefense Rating: %d ---> %2d\", prevDef, this.getDefenseRating());\r\n\t\tSystem.out.format(\"%nNext level: %3dXP%n%n\", (calcLevel(1,0) - this.getExperiencePoints()));\r\n\r\n\r\n\t}", "public final void mT__37() throws RecognitionException {\n try {\n int _type = T__37;\n int _channel = DEFAULT_TOKEN_CHANNEL;\n // InternalEsm.g:31:7: ( 'up' )\n // InternalEsm.g:31:9: 'up'\n {\n match(\"up\"); \n\n\n }\n\n state.type = _type;\n state.channel = _channel;\n }\n finally {\n }\n }", "public void setPenUp(boolean penUp){\n myPen.setPenUp(penUp);\n }", "@Override\r\n\tpublic void onUp() {\n\t\tif (snakeView.smer != snakeView.JUG) {\r\n\t\t\tsnakeView.naslednjaSmer = snakeView.SEVER;\r\n\t\t}\r\n\t}", "private void handleUp() {\r\n\t\tcontroller.getCurrentPosition().realocate((controller.getCurrentPosition().getY()-1), controller.getCurrentPosition().getX());\r\n\t\t// if User reaches the end of the board reset position\r\n\t\tif(controller.getCurrentPosition().getY()== -1) {\r\n\t\t\tcontroller.getCurrentPosition().realocate((GameViewController.BOARD_ROWS-1), controller.getCurrentPosition().getX());\r\n\t\t}\r\n\t\t// remove the pseudo Class from all nodes so that only the cell that was pressed last looks 'pressed'\r\n\t\tfor (Node n : controller.getGridBoard().getChildren()) {\r\n\t\t\t((StackPane) n).pseudoClassStateChanged(PseudoClass.getPseudoClass(\"pressed\"), false);\r\n\t\t\tif (GridPane.getColumnIndex(n) == controller.getCurrentPosition().getX() && GridPane.getRowIndex(n) == controller.getCurrentPosition().getY()) {\r\n\t\t\t\t((StackPane) n).pseudoClassStateChanged(PseudoClass.getPseudoClass(\"pressed\"), true);\r\n\t\t\t}\r\n\t\t}\r\n\t}", "private void moveClawUp() {\n\t\tMotor.A.setSpeed(45);\n\t\tMotor.A.rotate(90);\n\t\t\n\t}", "private void upTouch(float x, float y) {\n Log.d(\"UPTOUCH\", \"upTouch: \" + x + \" \" + y);\n\n// try {\n// socket.emit(\"drawing\", getJsonObject(x,y));\n// } catch (JSONException e) {\n// e.printStackTrace();\n// }\n emitToServer(x, y);\n path.lineTo(mX, mY);\n }", "public void upPressed() {\n\t\tif (edit) {\n\t\t\tcurrentDeck.up();\n\t\t} else {\n\t\t\tactiveNode.nextChild();\n\t\t}\n\t}", "public void goDown()\r\n\t{\r\n\t\tthis.Y++;\r\n\t}", "public Room goUp() {\n return goDir(Side.UP);\n }", "public boolean levelUp ()\n\t{\n\t\t//For the first five levelUps, the game uses the first levelUp method\n\t\t//from the wall class, which decreases the distance between the walls.\n\t\tif (level < 5)\n\t\t{\n\t\t\tfor (int i = 0; i < w.length; i++)\n\t\t\t\tw[i].levelUp1 ();\n\t\t}\n\t\t//For the four levelUps after the first five, the game uses the second\n\t\t//levelUp method from the wall class, which increases the horizontal\n\t\t//length of the walls.\n\t\telse if (level >= 5 && level < 9)\n\t\t{\n\t\t\tfor (int i = 0; i < w.length; i++)\n\t\t\tw[i].levelUp2 ();\n\t\t}\n\t\treturn true;\t//Is mainly here to make the method work.\n\t}", "void moveDown();", "void moveDown();", "@Override\r\n\tpublic void paint(Graphics g) {\n\t\tsuper.paint(g);\r\n\t Graphics2D graphics = (Graphics2D)g;\r\n\t \r\n\t for (int i = 0; i < tom.snake.size() -1; i++) {\r\n\t \tDimension xy = new Dimension(tom.snake.get(i));\r\n\t \tgraphics.setColor(BLACK);\r\n\t \tgraphics.fillRect(xy.width*SNAKE_SIZE, xy.height*SNAKE_SIZE, SNAKE_SIZE, SNAKE_SIZE);\r\n\t \t\r\n\t }\r\n\t graphics.fillOval(tom.snake.get(tom.snake.size()-1).width*SNAKE_SIZE, tom.snake.get(tom.snake.size()-1).height*SNAKE_SIZE, SNAKE_SIZE, SNAKE_SIZE);\r\n\t \r\n\t switch (tom.getDir()){\r\n\t\tcase 0: //up\r\n\t\t graphics.fillRect(tom.snake.get(tom.snake.size()-1).width*SNAKE_SIZE, tom.snake.get(tom.snake.size()-1).height*SNAKE_SIZE+SNAKE_SIZE/2, SNAKE_SIZE, SNAKE_SIZE/2+2);\r\n\t\t graphics.setColor(WHITE);\r\n\t\t graphics.fillOval(tom.snake.get(tom.snake.size()-1).width*SNAKE_SIZE+SNAKE_SIZE/3, tom.snake.get(tom.snake.size()-1).height*SNAKE_SIZE+SNAKE_SIZE/2, SNAKE_SIZE/3, SNAKE_SIZE/3);\r\n\t\t graphics.fillOval(tom.snake.get(tom.snake.size()-1).width*SNAKE_SIZE+SNAKE_SIZE/3*2, tom.snake.get(tom.snake.size()-1).height*SNAKE_SIZE+SNAKE_SIZE/2, SNAKE_SIZE/3, SNAKE_SIZE/3);break;\r\n\t\tcase 1: //down\r\n\t\t graphics.fillRect(tom.snake.get(tom.snake.size()-1).width*SNAKE_SIZE, tom.snake.get(tom.snake.size()-1).height*SNAKE_SIZE, SNAKE_SIZE, SNAKE_SIZE/2);\r\n\t\t graphics.setColor(WHITE);\r\n\t\t graphics.fillOval(tom.snake.get(tom.snake.size()-1).width*SNAKE_SIZE+SNAKE_SIZE/3, tom.snake.get(tom.snake.size()-1).height*SNAKE_SIZE+SNAKE_SIZE/4, SNAKE_SIZE/3, SNAKE_SIZE/3);\r\n\t\t graphics.fillOval(tom.snake.get(tom.snake.size()-1).width*SNAKE_SIZE+SNAKE_SIZE/3*2, tom.snake.get(tom.snake.size()-1).height*SNAKE_SIZE+SNAKE_SIZE/4, SNAKE_SIZE/3, SNAKE_SIZE/3);break;\r\n\t\tcase 2: //left\r\n\t\t graphics.fillRect(tom.snake.get(tom.snake.size()-1).width*SNAKE_SIZE+SNAKE_SIZE/2, tom.snake.get(tom.snake.size()-1).height*SNAKE_SIZE, SNAKE_SIZE/2, SNAKE_SIZE);\r\n\t\t graphics.setColor(WHITE);\r\n\t\t graphics.fillOval(tom.snake.get(tom.snake.size()-1).width*SNAKE_SIZE+SNAKE_SIZE/3, tom.snake.get(tom.snake.size()-1).height*SNAKE_SIZE+SNAKE_SIZE/4, SNAKE_SIZE/3, SNAKE_SIZE/3);\r\n\t\t graphics.fillOval(tom.snake.get(tom.snake.size()-1).width*SNAKE_SIZE+SNAKE_SIZE/3*2, tom.snake.get(tom.snake.size()-1).height*SNAKE_SIZE+SNAKE_SIZE/4, SNAKE_SIZE/3, SNAKE_SIZE/3);break;\r\n\t\tcase 3: //right\r\n\t\t graphics.fillRect(tom.snake.get(tom.snake.size()-1).width*SNAKE_SIZE, tom.snake.get(tom.snake.size()-1).height*SNAKE_SIZE, SNAKE_SIZE/2, SNAKE_SIZE);\r\n\t\t graphics.setColor(WHITE);\r\n\t\t graphics.fillOval(tom.snake.get(tom.snake.size()-1).width*SNAKE_SIZE+SNAKE_SIZE/3, tom.snake.get(tom.snake.size()-1).height*SNAKE_SIZE+SNAKE_SIZE/4, SNAKE_SIZE/3, SNAKE_SIZE/3);\r\n\t\t graphics.fillOval(tom.snake.get(tom.snake.size()-1).width*SNAKE_SIZE+SNAKE_SIZE/3*2, tom.snake.get(tom.snake.size()-1).height*SNAKE_SIZE+SNAKE_SIZE/4, SNAKE_SIZE/3, SNAKE_SIZE/3);break;\r\n\t\t } \r\n\t \r\n\t graphics.setColor(RED);\r\n\t graphics.fillOval(apple.x*SNAKE_SIZE-1, apple.y*SNAKE_SIZE-1, SNAKE_SIZE+2, SNAKE_SIZE+2);\r\n\t graphics.setColor(BLACK);\r\n\t graphics.setStroke(new BasicStroke(2));\r\n\t graphics.drawLine(apple.x*SNAKE_SIZE+SNAKE_SIZE/2, apple.y*SNAKE_SIZE+SNAKE_SIZE/4, apple.x*SNAKE_SIZE+SNAKE_SIZE/3, apple.y*SNAKE_SIZE-3);\r\n\t \r\n\t if (!game) {\r\n\t \tgraphics.setColor(DIMSCREEN);\r\n\t \tgraphics.fillRect(0, 0, 607, 607);\r\n\t \tgraphics.setColor(RED);\r\n\t \tgraphics.setFont(new Font(\"TimesRoman\", Font.BOLD, 50));\r\n\t \tif(Game.status()) { //Igra je bila zakljucena\r\n\t \t\tgraphics.drawString(\"GAME OVER\", 150, 260);\r\n\t \t\tgraphics.drawString(\"CTRL-P to restart\", 110, 320);\r\n\t \t}\r\n\t \telse if(Game.firstTime) { //Zacetni prikaz drugacen kot za navadno pavzo\r\n\t\t\t\tgraphics.drawString(\"Arrow keys to move\", 80, 260);\r\n\t\t \tgraphics.drawString(\"CTRL-P to start/pause\", 55, 320);\r\n\t \t}\r\n\t \telse \r\n\t \t\tgraphics.drawString(\"PAUSED\", 200, 300);\r\n\t }\t \r\n\t}", "public void up() {\n\t\tstate.up();\n\t}", "public void faceUp(){\r\n changePlace(hand);\r\n //do a magical work\r\n changePlace(graveYard);\r\n }", "public void snakeMoved(Snake snake) {\n\t\tif(food.isEatFood(snake)){\n\t\t\tsnake.eatFood();\n\t\t\tfood.newFood(ground.getPoint());\n\t\t}\n\t\tif(ground.isEatGround(snake)){\n\t\t\tsnake.die();\n\t\t}\n\t\tif(snake.isEatBody()){\n\t\t\tsnake.die();\n\t\t}\n\t\t\n\t\tgamePanel.display(snake, food, ground);\n\t}", "@Override\r\n\t//Event handler for the Timer action\r\n\tpublic void actionPerformed(ActionEvent e) {\n\t\tmoveSnake();\r\n\t}", "@Override\n protected void moveOver(){\n incrementXPos(getWidth()/2);\n if(pointUp){\n incrementYPos(-1*getHeight());\n } else {\n incrementYPos(getHeight());\n }\n incrementCol();\n setPointDirection();\n }" ]
[ "0.67567474", "0.673968", "0.6708367", "0.6691939", "0.6690538", "0.6682965", "0.662258", "0.662258", "0.6597299", "0.6588957", "0.65778315", "0.65311104", "0.64305764", "0.6391028", "0.6385049", "0.63750684", "0.63540524", "0.63370615", "0.6325789", "0.63067013", "0.62401587", "0.6228879", "0.6228639", "0.6214968", "0.621224", "0.6209973", "0.6197534", "0.6181091", "0.616722", "0.61409914", "0.6072782", "0.6062903", "0.6045135", "0.6038106", "0.6029331", "0.6029299", "0.6023263", "0.59933877", "0.598223", "0.5978194", "0.59744006", "0.5971319", "0.59524935", "0.59493536", "0.5942768", "0.59027493", "0.59022367", "0.5891244", "0.5884712", "0.5879568", "0.5870058", "0.5856284", "0.5856284", "0.5819138", "0.58181125", "0.58155215", "0.5793719", "0.57797104", "0.5766987", "0.5757213", "0.5755084", "0.5728638", "0.57233757", "0.5715414", "0.5697448", "0.569697", "0.5674629", "0.5672205", "0.5664218", "0.566392", "0.56527823", "0.5628408", "0.56196815", "0.5618042", "0.56174123", "0.5612591", "0.5611727", "0.5590995", "0.5579447", "0.55726546", "0.5568914", "0.5563309", "0.556024", "0.55522585", "0.5543052", "0.5535303", "0.548433", "0.5480212", "0.547947", "0.5478634", "0.54760164", "0.54720783", "0.5467453", "0.5467453", "0.5464461", "0.5461314", "0.5461037", "0.5460724", "0.5460609", "0.54424185" ]
0.8933589
0
The speed up function is called by the purple mushroom to increase the speed of the snake without increasing the size as well, and by the snake up function when the snake is increasing in size.
public void speedUp(){ moveSpeed+=1; moveTimer.setDelay(1000/moveSpeed); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void snakeUp(){\r\n\t\tspeedUp();\r\n\t\tpoints += 100;\r\n\t}", "public void upSpeed()\n\t{\n\t\tmoveVec.setLocation(moveVec.getX() * 1.1, moveVec.getY() * 1.1);\n\n\t\t//this.speed *= 1.1;\n\t}", "public void intake(double up_speed, double down_speed) //上面&下面的intake\n {\n intake_up.set(ControlMode.PercentOutput, up_speed);\n intake_down.set(ControlMode.PercentOutput, down_speed);\n }", "public void increaseSpeed()\r\n\t{\r\n\t\t//Do nothing if maximum speed is achieved\r\n\t\tif(currentSpeed == SnakeSpeed.MAX)\r\n\t\t\treturn;\r\n\t\t//Else, increase the speed to next level\r\n\t\telse if(currentSpeed == SnakeSpeed.DEFAULT)\r\n\t\t{\r\n\t\t\tcurrentSpeed = SnakeSpeed.MEDIUM;\r\n\t\t}\r\n\t\telse if(currentSpeed == SnakeSpeed.MEDIUM)\r\n\t\t{\r\n\t\t\tcurrentSpeed = SnakeSpeed.MAX;\r\n\t\t}\r\n\r\n\t\t//Set the updated speed for the snake of the current player \r\n\t\tsnakes.get(snakeIndex).setSnakeSpeed(currentSpeed);\r\n\t}", "private static void move() {\r\n\t\ttry {\r\n\t\t\tThread.sleep(timer);\r\n\t\t} catch (InterruptedException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\trunTime += timer;\r\n\t\tif (runTime > stepUp) {\r\n\t\t\ttimer *= 0.9;\r\n\t\t\tstepUp += 5000;\r\n\t\t}\r\n\r\n\t\tupdateSnake(lastMove);\r\n\t\t// updateField();\r\n\r\n\t\tif (score >= 10 && (r.nextInt(40) == 0)) {\r\n\t\t\taddFood(MOUSE);\r\n\t\t}\r\n\t\tif (score >= 30 && (r.nextInt(50) == 0)) {\r\n\t\t\taddFood(POISON);\r\n\t\t}\r\n\t}", "public void decreaseSpeed()\r\n\t{\r\n\r\n\t\tif(currentSpeed == SnakeSpeed.MAX)\r\n\t\t\tcurrentSpeed = SnakeSpeed.MEDIUM;\r\n\r\n\t\telse if(currentSpeed == SnakeSpeed.DEFAULT)\r\n\t\t{\r\n\t\t\treturn;\r\n\t\t}\r\n\t\telse if(currentSpeed == SnakeSpeed.MEDIUM)\r\n\t\t{\r\n\t\t\tcurrentSpeed = SnakeSpeed.DEFAULT;\r\n\t\t}\r\n\r\n\r\n\t\tsnakes.get(snakeIndex).setSnakeSpeed(currentSpeed);\r\n\t}", "public void updateSpeed() {\n\t\t// should work b/c of integer arithmetic\n\t\tif(isTwoPlayer)\n\t\t\treturn;\n\t\t//System.out.println(\"speed up factor: \" + speedUpFactor);\n\t\t//System.out.println(\"numlinescleared/6: \" + numLinesCleared/6);\n\t\tif (speedUpFactor != numLinesCleared/6) {\n\t\t\t// speed by 10% every lines cleared, needs to be checked\n\t\t\tspeedUpFactor = numLinesCleared/6;\n\t\t\tif(!(defaultSpeed - 30*speedUpFactor <= 0))\n\t\t\t\tdefaultSpeed = defaultSpeed - 30*speedUpFactor;\n\t\t\tlevel = speedUpFactor;\n\t\t}\n\t\t//System.out.println(\"default speed: \" + defaultSpeed);\n\t}", "void speedUp(int a);", "private void growSnake() { \r\n length++;\r\n snake[length-1].row = snake[length-2].row;\r\n snake[length-1].column = snake[length-2].column;\r\n if (snake[length-2].direction == UP) snake[length-1].row++;\r\n else if (snake[length-2].direction == DOWN) snake[length-1].row--;\r\n else if (snake[length-2].direction == LEFT) snake[length-1].column++;\r\n else if (snake[length-2].direction == RIGHT) snake[length-1].column--; \r\n }", "public void accelerate(){\n speed += 5;\n }", "private void moveSnake()\r\n\r\n\t{\r\n\r\n\t\t//Get the lower & upper limit for the last row of the board. \r\n\t\t// e.g. for a 20x20 board, these values would be 380 & 400 respectively\r\n\t\tint lowerLimitOfLastRow = numOfBoardRows*numOfBoardCols-numOfBoardCols;\r\n\t\tint upperLimitOfLastRow = numOfBoardRows*numOfBoardCols;\r\n\r\n\t\t//Loop through all snakes to update their location\r\n\t\tfor(Snake s: snakes)\r\n\t\t{\r\n\t\t\t//Do nothing if snake is not alive\r\n\t\t\tif(!s.isSnakeAlive())\r\n\t\t\t\tcontinue;\r\n\t\t\t//Move the snake number of cells depending on its current speed. i.e. \r\n\t\t\t// snake with minimum/default speed will move only one cell while with maximum speed will move 4 cells during the same time. \r\n\t\t\tfor(int i=s.getSnakeSpeed().getValue(); i<= SnakeSpeed.DEFAULT.getValue(); i=i*2)\r\n\t\t\t{\r\n\t\t\t\tint lastCellLocation = -1;\r\n\t\t\t\tSnakeDirection sd = s.getSnakeDirection();\r\n\t\t\t\tArrayList<Integer> scells = s.getSnakeCells();\r\n\r\n\t\t\t\tif(s.getSnakeIndex() == snakeIndex)\r\n\t\t\t\t{\r\n\t\t\t\t\tlastCellLocation = scells.get(scells.size()-1);\r\n\t\t\t\t}\r\n\r\n\r\n\t\t\t\t//Move the cells forward except the first one\r\n\t\t\t\tfor(int j=scells.size()-1;j>0;j--)\r\n\t\t\t\t{\r\n\t\t\t\t\tscells.set(j, scells.get(j-1)); \r\n\t\t\t\t}\r\n\r\n\t\t\t\t//Update the first cell based on the current direction of the snake\r\n\t\t\t\tif(sd == SnakeDirection.DOWN)\r\n\t\t\t\t{\r\n\t\t\t\t\t//Set the value of first cell as the cell in the same column but first row when the current cell is in the last row \r\n\t\t\t\t\tif(scells.get(0) >= lowerLimitOfLastRow && scells.get(0) < upperLimitOfLastRow)\r\n\t\t\t\t\t\tscells.set(0, scells.get(0) - lowerLimitOfLastRow);\r\n\t\t\t\t\t//Else, Set the value of first cell as the cell under the current cell in the next row \r\n\t\t\t\t\telse\r\n\t\t\t\t\t\tscells.set(0, scells.get(0) + numOfBoardCols);\r\n\t\t\t\t}\r\n\t\t\t\telse if(sd == SnakeDirection.UP)\r\n\t\t\t\t{\r\n\t\t\t\t\t//Set the value of first cell as the cell in the same column but last row when the current cell is in the first row \r\n\t\t\t\t\tif(scells.get(0) >= 0 && scells.get(0) < numOfBoardCols)\r\n\t\t\t\t\t\tscells.set(0, scells.get(0) + lowerLimitOfLastRow);\r\n\t\t\t\t\t//Else, Set the value of first cell as the cell above the current cell in the next row \r\n\t\t\t\t\telse\r\n\t\t\t\t\t\tscells.set(0, scells.get(0) - numOfBoardCols);\r\n\t\t\t\t}\r\n\t\t\t\telse if(sd == SnakeDirection.RIGHT)\r\n\t\t\t\t{\r\n\t\t\t\t\t//Set the value of first cell as the current cell value minus the number of columns when the current cell is in the last column \r\n\t\t\t\t\tif(scells.get(0)%numOfBoardCols == numOfBoardCols - 1)\r\n\t\t\t\t\t\tscells.set(0, scells.get(0) - (numOfBoardCols - 1));\r\n\t\t\t\t\t//Else, Set the value of first cell as the current value incremented by one \r\n\t\t\t\t\telse\r\n\t\t\t\t\t\tscells.set(0, scells.get(0) + 1);\r\n\t\t\t\t}\r\n\t\t\t\telse if(sd == SnakeDirection.LEFT)\r\n\t\t\t\t{\r\n\t\t\t\t\t//Set the value of first cell as the current cell value plus the number of columns when the current cell is in the first column \r\n\t\t\t\t\tif(scells.get(0)%numOfBoardCols == 0)\r\n\t\t\t\t\t\tscells.set(0, scells.get(0) + numOfBoardCols -1);\r\n\t\t\t\t\t//Else, Set the value of first cell as the current value decremented by one \r\n\t\t\t\t\telse\r\n\t\t\t\t\t\tscells.set(0, scells.get(0) - 1);\r\n\t\t\t\t}\r\n\r\n\r\n\t\t\t\t//Update snake length & food cells if its the current player's snake and there's a food item at the same location as snake's head\r\n\t\t\t\tif(s.getSnakeIndex() == snakeIndex) \r\n\t\t\t\t{\r\n\t\t\t\t\tif(foodCells.contains(scells.get(0)))\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tscells.add(lastCellLocation);\r\n\t\t\t\t\t\tfoodCells.remove(scells.get(0));\r\n\t\t\t\t\t} \r\n\t\t\t\t}\r\n\t\t\t\ts.setSnakeCells(scells);\r\n\r\n\t\t\t}\r\n\t\t}\r\n\t\t//refresh the board to send/receive latest snakeProtocol object between client/server and also update the board\r\n\t\trefreshBoard();\r\n\t}", "public void resetSpeed()\r\n\t{\r\n\t\tcurrentSpeed = SnakeSpeed.DEFAULT;\r\n\t\tsnakes.get(snakeIndex).setSnakeSpeed(currentSpeed);\r\n\t}", "public void increaseSpeed() {\r\n\tupdateTimer.setDelay((int)Math.floor(updateTimer.getDelay()*0.95));\r\n\t\t}", "void moveUp(double speed, double destination)\n {\n this.destination = shaftHeight-(destination*floorHeight);\n if(speed == 1.75) speed = 1.25; //1.2175;\n else if(speed == 0.875) speed = 0.6; //0.5875;\n\n elevatorOffset = -1*speed;\n motorTimeline.play();\n }", "public void shrinkSnake() {\n\t\tSnakeObj.length--;\n\t\tSnakeArray[xTail][yTail] = 0; \n\t\txTail--;\n\t\tyTail--; \n\t\tthis.repaint(); \n\t}", "void update()\n\t{\n\t\t// the snake moves this function records it\n\t\ttheSnake.update();\n\n\t\t// checks if the snake is alive\n\t\tplaying = theSnake.isAlive();\n\n\t\t// checks if the snake has eaten a fruit\n\t\tif (theSnake.getXofPartI(0) == fruit[0] && theSnake.getYofPartI(0) == fruit[1] && theSnake.getZofPartI(0) == fruit[2])\n\t\t{\n\t\t\t// the snake grows\n\t\t\ttheSnake.grow();\n\t\t\t// a new fruit location needs to be determined\n\t\t\tplaceFruit();\n\t\t}\n\t}", "@Override\n\tpublic void increaseSpeed() {\n\t\tSystem.out.println(\"increaseSpeed\");\n\t\t\n\t}", "public void liftUp(){\n set(m_defaultLiftSpeedUp);\n }", "public static void move()\n\t{\n\t\tswitch(step)\n\t\t{\n\t\t\tcase 0:\n\t\t\t\ttimer.start();\n\t\t\t\tstep = 1;\n\t\t\tbreak;\n\t\t\t// 1. Right wheels forward\n\t\t\tcase 1:\n\t\t\t\tif(timer.get() < time)\n\t\t\t\t{\n\t\t\t\t\tsetSpeed(0, .5);\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\ttimer.reset();\n\t\t\t\t\tstep = 2;\n\t\t\t\t}\n\t\t\tbreak;\n\t\t\tcase 2:\n\t\t\t\ttimer.start();\n\t\t\t\tstep = 3;\n\t\t\tbreak;\n\t\t\t// 2. Right wheels back\n\t\t\tcase 3:\n\t\t\t\tif(timer.get() < time)\n\t\t\t\t{\n\t\t\t\t\tsetSpeed(0, -.5);\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\ttimer.reset();\n\t\t\t\t\tstep = 4;\n\t\t\t\t}\n\t\t\tbreak;\n\t\t\tcase 4:\n\t\t\t\ttimer.start();\n\t\t\t\tstep = 5;\n\t\t\tbreak;\n\t\t\t// 3. Left wheels forward\n\t\t\tcase 5:\n\t\t\t\tif(timer.get() < time)\n\t\t\t\t{\n\t\t\t\t\tsetSpeed(.5, 0);\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\ttimer.reset();\n\t\t\t\t\tstep = 6;\n\t\t\t\t}\n\t\t\tbreak;\n\t\t\tcase 6:\n\t\t\t\ttimer.start();\n\t\t\t\tstep = 7;\n\t\t\tbreak;\n\t\t\t// 4. Left wheels back\n\t\t\tcase 7:\n\t\t\t\tif(timer.get() < time)\n\t\t\t\t{\n\t\t\t\t\tsetSpeed(-.5, 0);\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\ttimer.reset();\n\t\t\t\t\tstep = 8;\n\t\t\t\t}\n\t\t\tbreak;\n\t\t\tcase 8:\n\t\t\t\ttimer.start();\n\t\t\t\tstep = 9;\n\t\t\tbreak;\n\t\t\t// 5. Intake pick up\n\t\t\tcase 9:\n\t\t\t\tif(timer.get() < time)\n\t\t\t\t{\n\t\t\t\t\tsetSpeed(0, 0);\n\t\t\t\t\tshoot(.5);\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\ttimer.reset();\n\t\t\t\t\tstep = 10;\n\t\t\t\t}\n\t\t\tbreak;\n\t\t\tcase 10:\n\t\t\t\ttimer.start();\n\t\t\t\tstep = 11;\n\t\t\tbreak;\n\t\t\t// 6. Intake shoot\n\t\t\tcase 11:\n\t\t\t\tif(timer.get() < time)\n\t\t\t\t{\n\t\t\t\t\tsetSpeed(0, 0);\n\t\t\t\t\tpickUp(.5);\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\ttimer.reset();\n\t\t\t\t\tstep = 12;\n\t\t\t\t}\n\t\t\tbreak;\n\t\t\t// Stop and reset everything\n\t\t\tcase 12:\n\t\t\t\tsetSpeed(0, 0);\n\t\t\t\tpickUp(0);\n\t\t\t\tshoot(0);\n\t\t\t\ttimer.reset();\n\t\t\tbreak;\n\t\t}\n\t}", "public void up() {dy = -SPEED;}", "public void laserMoveUp()\r\n\t{\r\n\r\n\t\tif (y > 0)\r\n\t\t\ty -= 20;\r\n\r\n\t\telse\r\n\t\t\tdestroyed = true;\r\n\r\n\t}", "public void update() {\n\t\tif(snakeUpdateTimer.update()) {\n\t\t\tpreventMovementInOppositeDirection();\n\t\t\t\n\t\t\tsnake.removeFirst(); // \"last\" element of the snake\n\t\t\tconvertHeadToTailComponent();\n\t\t\taddNewHead();\n\t\t}\n\t}", "private void moveSnake() { \r\n for (int i = length; i > 0; i--) {\r\n snake[i].row = snake[i-1].row;\r\n snake[i].column = snake[i-1].column; \r\n snake[i].direction = snake[i-1].direction; \r\n }\r\n if (snake[HEAD].direction == UP) snake[HEAD].row--;\r\n else if (snake[HEAD].direction == DOWN) snake[HEAD].row++;\r\n else if (snake[HEAD].direction == LEFT) snake[HEAD].column--;\r\n else if (snake[HEAD].direction == RIGHT) snake[HEAD].column++;\r\n }", "public void moveUp() {\n this.accelerateYU();\n this.moveY(this.getySpeed());\n this.setPicX(0);\n this.setPicY(211);\n this.setLoopCells(true);\n }", "@Override\r\n\t//Event handler for the Timer action\r\n\tpublic void actionPerformed(ActionEvent e) {\n\t\tmoveSnake();\r\n\t}", "public static void speedup(){\n\t\tif(bossair.periodairinit > Framework.nanosecond){\n\t\t\t\tbossair.periodair-=Framework.nanosecond/18; \n\t\t\t\tbossair.xmoving-=0.03; \n\t\t}\n\t\t\t\n\t}", "public void startSnake() {\n createBoard();\n generateFirstSnake();\n generateEnemy();\n spawnApples();\n printBoard();\n keepMoving();\n }", "@Override\r\n\tpublic void Update() {\n\t\tsuper.Update();\r\n\t\t\r\n\t\tif(mTime != Definition.FOREVER && mTime < 0)\r\n\t\t\treturn;\r\n\t\t\r\n\t\tfor(int i=0;i<mOwner.mSpriteList.size();i++)\r\n\t\t{\r\n\t\t\tmOwner.mSpriteList.get(i).setColor(23f/255, 117f/255, 148f/255);\r\n\t\t}\r\n\t\t\r\n\t\tMotionStrategy move = new SpeedUp(mSlowRate, -1);\r\n\t\tmOwner.getMoveWay().add(move);\r\n\t}", "protected void shrink() {\n int cellsToDrop = snakeSize/2;\n this.snakeSize = snakeSize - cellsToDrop;\n // AMD: Reset the tip of the tail to be snake-free\n for (int xCell = 0; xCell < maxX; xCell++) {\n for (int yCell = 0; yCell < maxY; yCell++) {\n if (snakeSquares[xCell][yCell] > snakeSize) {\n snakeSquares[xCell][yCell] = NOT_A_SEGMENT;\n }\n }\n }\n }", "public abstract void moveDown(int speed);", "@Override\n\tpublic void actionPerformed(ActionEvent e) {\n\t\ttimer.restart();\n\t\tif(right) \n\t\t{\n\t\t\tfor(int n = lengthOfSnake-1; n>=0;n--)\n\t\t\t{\n\t\t\t\tsnakeYLenght[n+1] = snakeYLenght[n];\n\t\t\t}\n\t\t\tfor(int n = lengthOfSnake; n>=0; n--) \n\t\t\t{\n\t\t\t\tif (n==0) \n\t\t\t\t{\n\t\t\t\t\tsnakeXLenght[n] = snakeXLenght[n]+25;\n\t\t\t\t}\n\t\t\t\telse \n\t\t\t\t{\n\t\t\t\t\tsnakeXLenght[n] = snakeXLenght[n-1];\n\t\t\t\t}\n\t\t\t\tif(snakeXLenght[n] >850)\n\t\t\t\t{\n\t\t\t\t\tsnakeXLenght[n] = 25;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t}\n\t\t\trepaint();\n\t\t}\n\t\t\n\t\tif(left) \n\t\t{\n\t\t\tfor(int n = lengthOfSnake-1; n>=0;n--)\n\t\t\t{\n\t\t\t\tsnakeYLenght[n+1] = snakeYLenght[n];\n\t\t\t}\n\t\t\tfor(int n = lengthOfSnake; n>=0; n--) \n\t\t\t{\n\t\t\t\tif (n==0) \n\t\t\t\t{\n\t\t\t\t\tsnakeXLenght[n] = snakeXLenght[n]-25;\n\t\t\t\t}\n\t\t\t\telse \n\t\t\t\t{\n\t\t\t\t\tsnakeXLenght[n] = snakeXLenght[n-1];\n\t\t\t\t}\n\t\t\t\tif(snakeXLenght[n] < 25)\n\t\t\t\t{\n\t\t\t\t\tsnakeXLenght[n] = 850;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t}\n\t\t\trepaint();\t\t\t\n\t\t\t\n\t\t}\n\t\tif(up) \n\t\t{\n\t\t\tfor(int n = lengthOfSnake-1; n>=0;n--)\n\t\t\t{\n\t\t\t\tsnakeXLenght[n+1] = snakeXLenght[n];\n\t\t\t}\n\t\t\tfor(int n = lengthOfSnake; n>=0; n--) \n\t\t\t{\n\t\t\t\tif (n==0) \n\t\t\t\t{\n\t\t\t\t\tsnakeYLenght[n] = snakeYLenght[n]-25;\n\t\t\t\t}\n\t\t\t\telse \n\t\t\t\t{\n\t\t\t\t\tsnakeYLenght[n] = snakeYLenght[n-1];\n\t\t\t\t}\n\t\t\t\tif(snakeYLenght[n] < 75)\n\t\t\t\t{\n\t\t\t\t\tsnakeYLenght[n] = 625;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t}\n\t\t\trepaint();\n\t\t\t\n\t\t}\n\t\tif(down) \n\t\t{\n\t\t\tfor(int n = lengthOfSnake-1; n>=0;n--)\n\t\t\t{\n\t\t\t\tsnakeXLenght[n+1] = snakeXLenght[n];\n\t\t\t}\n\t\t\tfor(int n = lengthOfSnake; n>=0; n--) \n\t\t\t{\n\t\t\t\tif (n==0) \n\t\t\t\t{\n\t\t\t\t\tsnakeYLenght[n] = snakeYLenght[n]+25;\n\t\t\t\t}\n\t\t\t\telse \n\t\t\t\t{\n\t\t\t\t\tsnakeYLenght[n] = snakeYLenght[n-1];\n\t\t\t\t}\n\t\t\t\tif(snakeYLenght[n] > 625)\n\t\t\t\t{\n\t\t\t\t\tsnakeYLenght[n] = 75;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t}\n\t\t\t\n\t\t\trepaint();\n\t\t}\n\t\t\n\t\t\n\t}", "public void moveUp() {\n\t\tposY += speed;\n\t}", "public void growSnake() {\n\t\tSnakeObj.length++;\n\t\txHead++;\n\t\tyHead++; \n\t\tSnakeArray[xHead][yHead] = 1; \n\t\tthis.repaint(); \n\t}", "@Override\n void slowDown() {\n if (this.speed>0){\n this.speed=this.speed-1;\n }\n }", "public void moveUp(double speed){\n speed *= ARM_SPEED_MULT;\n arm.setPower(speed);\n if (arm.getCurrentPosition() >= ARM_UPPER_BOUND) {\n arm.setPower(0);\n }\n }", "public void growSnake() {\n grow = true;\n }", "private void move() {\n\n for (int z = snakeLength; z > 0; z--) {\n xLength[z] = xLength[(z - 1)];\n yLength[z] = yLength[(z - 1)];\n }\n\n if (left) {\n xLength[0] -= elementSize;\n }\n\n if (right) {\n xLength[0] += elementSize;\n }\n\n if (up) {\n yLength[0] -= elementSize;\n }\n\n if (down) {\n yLength[0] += elementSize;\n }\n }", "private void swim(int speed){\r\n moveMuscles();\r\n moveBackFin();\r\n super.move(speed);\r\n\r\n }", "private void action() {\r\n moveSnake();\r\n if (hasEatenPowerUp() == false) checkForCollisionWithSelf();\r\n if (hasHitBoundry() == false) redraw();\r\n }", "public void up() {\n double speed = RobotContainer.m_BlackBox.getPotValueScaled(Constants.OIConstants.kControlBoxPotY, 0.0, 1.0);\n m_hook.set(speed);\n SmartDashboard.putNumber(\"forward speed\", speed);\n }", "@Override\n public void run() {\n ElapsedTime time = new ElapsedTime();\n time.reset();\n sleep(3000);\n sh.hitRing();\n sleep(600);\n sh.hitRing();\n sleep(600);\n sh.hitRing();\n sleep(600);\n //sh.pivotStop.setPosition(.55);\n sh.hitRing();\n sleep(500);\n //sh.pivotDown();\n sh.hitRing();\n sleep(500);\n sh.withdraw();\n sh.lift.setPower(0);\n sh.lift.setPower(0);\n wobble.wobbleUp();\n sh.pivotStop.setPosition(1);\n loop.end();\n\n\n }", "public void faster()\n {\n if(speed < 9){\n speed += 1;\n }\n }", "public void smallerRocks() {\n\t\t// make the asteroid smaller\n\t\t// by dividing the width by SIZE_INC\n\t\twidth = width / SIZE_INC;\n\n\t\t// set the end points with new location being the first line's start\n\t\tmakeEndPoints(width, outLine[0].getStart().getX(), outLine[0]\n\t\t\t\t.getStart().getY());\n\n\t\t// and make it a little faster\n\t\txSpeed = INC * xSpeed;\n\t\tySpeed = INC * ySpeed;\n\n\t}", "public static void pickUp(double speed)\n\t{\n\t\trunIntake(0, 0, true, -speed, -speed, false);\n\t}", "@Override\r\n\tpublic void speed() {\n\t}", "public void move() {\n\t\t\tRandom rand = new Random();//random number generator\n\t\t\tint value = rand.nextInt(500000);//there is a 1 in 500000 chance there will be a new powerup every frame.\n\t\t\tif (value==0) {//if the value is 0\n\t\t\t\tRandom ran = new Random();//make a random number generator and a power up vairable\n\t\t\t\tPowerUp currentPowerUp = null;\n\t\t\t\tint type = ran.nextInt(3);//switch the 1 for the amount of types made.\n\t\t\t\tif (type==0) {//add the powerup depending on the random number. There are 3 types\n\t\t\t\t\tcurrentPowerUp = new PowerUp(healthPowerUp, 0);//this adds a life\n\t\t\t\t}\n\t\t\t\telse if (type==1) {\n\t\t\t\t\tcurrentPowerUp = new PowerUp(longPowerUp, 1);//this makes the slider wider\n\t\t\t\t} else if (type==2) {\n\t\t\t\t\tcurrentPowerUp = new PowerUp(bonusPointsPowerUp, 2);//this just adds points\n\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t//set x and y\n\t\t\t\t//make a random x\n\t\t\t\tint newX = ran.nextInt(401) - 201 + GamePlay.getScreenWidth()/2; //-200 to 200 variance from center\n\t\t\t\tint newY = ran.nextInt(201) - 101 + GamePlay.getScreenHeight()/4;//-100 to 100 variance from the 25% of top distance line.\n\t\t\t\tif (currentPowerUp!=null) {\n\t\t\t\t\tcurrentPowerUp.setX(newX);\n\t\t\t\t\tcurrentPowerUp.setY(newY);\n\t\t\t\t\tpowerUps.add(currentPowerUp);//add the powerups to an array list\n\t\t\t\t} else {\n\t\t\t\t\tSystem.out.println(\"PowerUp error.\");//if the variable is null, something went wrong.\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\t//move all powerUps down by ball speed\n\t\t\tfor (PowerUp power: powerUps) {\n\t\t\t\tpower.setY(power.getY() + ballSpeed);\n\t\t\t}\n\t\t\t\n\t\t\t//check if the powerups are off the screen. remove if they are. \n\t\t\tfor (int r = powerUps.size()-1; r>=0; r--) {\n\t\t\t\tif (powerUps.get(r).getY() > GamePlay.getScreenHeight()-h) {\n\t\t\t\t\tpowerUps.remove(r);\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\t\n\t\t\t\n\t\t\t\n\t\t\t//death of a ball\n\t\t\tif (ball.getY()>GamePlay.getScreenHeight() && pause==false) {\n\t\t\t\tdeath();\n\t\t\t}\n\t\t\t\n\t\t\t//no bricks left\n\t\t\tif (blocks.size()==0) {\n\t\t\t\t//you leveled up!\n\t\t\t\tlevelUp();\n\t\t\t}\n\t\t\t\n\t\t\t\n\t\t\t//wall collision check for ball\n\t\t\t//right wall\n\t\t\tif (ball.rightCollide(GamePlay.getScreenWidth())) {//seperated for later use if wanted.\n\t\t\t\tballVX*=-1;\n\t\t\t} else if (ball.leftCollide(0)) {//left wall\n\t\t\t\tballVX*=-1;\n\t\t\t}\n\t\t\t\n\t\t\tif (ball.topCollide(0)) {//top wall\n\t\t\t\tballVY*=-1;\n\t\t\t} //dont check bottom wall because that is the death of a ball.\n\t\t\t\n\t\t\t//collision with the slider.\n\t\t\tif (ball.getRect().intersects(slider.getRect()) && ball.getY()+ball.getHeight() <= slider.getY()+ballSpeed) {//intersected bool needed\n\t\t\t\tballVY*=-1;\n\t\t\t\tballVX+=sliderVX;//add the slider velocity to the ball velocity, giving user some control over angle. \n\t\t\t\t\n\t\t\t}\n\t\t\t\n\t\t\t//collision with the powerups\n\t\t\t\n\t\t\tfor (int a = powerUps.size()-1; a>=0; a--) {//iterate thrpough the powerups\n\t\t\t\tPowerUp power = powerUps.get(a);\n\t\t\t\tif (power.getRect().intersects(slider.getRect())) {//if the powerups rect intersects, the slider caught it. Remove from screen\n\t\t\t\t\t//THIS MEANS THEY CAUGHT THE POWERUP\n\t\t\t\t\tif (power.getType()==\"HEALTH\" && power.getIntersected()==false) {\n\t\t\t\t\t\tpower.setIntersected(true);\n\t\t\t\t\t\tif (lives<5)\n\t\t\t\t\t\t\tlives+=1;//add a life up to 5\n\t\t\t\t\t\tpowerUps.remove(a);\n\t\t\t\t\t} else if (power.getType()==\"LONG\" && power.getIntersected()==false) {\n\t\t\t\t\t\tpower.setIntersected(true);\n\t\t\t\t\t\textended = true;//extended flag to say the slider is extended. extend the slider's width by the adjust amount preset globally\n\t\t\t\t\t\tslider.resize(slider.getWidth()+adjust, slider.getHeight());\n\t\t\t\t\t\tslider.setX(slider.getX()-adjust/2);\n\t\t\t\t\t\textendTimer.restart();//restart the entend timer\n\t\t\t\t\t\tpowerUps.remove(a);\n\t\t\t\t\t} else if (power.getType()==\"BONUS\" && power.getIntersected()==false) {\n\t\t\t\t\t\tpower.setIntersected(true);\n\t\t\t\t\t\tscore+=100;//add a 100 points.\n\t\t\t\t\t\tpowerUps.remove(a);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\t//collision with blocks\n\t\t\t\n\t\t\tboolean changed = false;//this is a flag to see if any collisions occured this frame\n\t\t\tfor (Block block:blocks) {\n\t\t\t\tRectangle r = block.getRect();\t\t\n\t\t\t\tif (r.intersects(ball.getRect())) {//if the rects intersected, something hit something. However, we don't know from what direction\n\t\t\t\t\t//since the vy is always going to be by 1, we can check if it is equal. There is no multiples to deal with. \n\t\t\t\t\t\n\t\t\t\t\t//this checks if it was colliding from the bottom. Check the bottom edge of block and top of the ball\n\t\t\t\t\tif (ball.getY() + 2 >= block.getBottom() && ball.getY() -2 <= block.getBottom() && ball.getIntersected()==false) {\n\t\t\t\t\t\t//bottom collision\n\t\t\t\t\t\tballVY*=-1;//reflect back\n\t\t\t\t\t\tscore += block.downColor();//change the color, adjust score\n\t\t\t\t\t\tball.setIntersected(true);//set the intersected flag so it will not trigger again for the same stimuli\n\t\t\t\t\t\tball.setY(ball.getY() + ballVY);//set the y to remove the ball from collision\n\t\t\t\t\t\tchanged=true;//set the changed flag to true\n\t\t\t\t\t\thitSound.play();//play a sound\n\t\t\t\t\t\t\n\t\t\t\t\t} else if (ball.getY() + ball.getHeight() + 2 >=block.getTop() && ball.getY() + ball.getHeight() -2 <=block.getTop() && ball.getIntersected()==false) {\n\t\t\t\t\t\t//this checks if it was colliding on the top. Check bottom edge of ball and top of block.\n\t\t\t\t\t\tballVY*=-1;//reflect back\n\t\t\t\t\t\tscore += block.downColor();//change the color, adjust score\n\t\t\t\t\t\tball.setIntersected(true);//set the intersected flag so it will not trigger again for the same stimuli\n\t\t\t\t\t\tball.setY(ball.getY() + ballVY);//set the y to remove the ball from collision\n\t\t\t\t\t\tchanged=true;//set the changed flag to true\n\t\t\t\t\t\thitSound.play();//play a sound\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\tif (changed==false && ball.getIntersected()==false) {\n\t\t\t\t\t\t//this must mean it is on the left or right\n\t\t\t\t\t\t//it doesn't matter which one, the change is the exact same!\n\t\t\t\t\t\tballVX*=-1;//flip the x direction\n\t\t\t\t\t\tscore+=block.downColor();//change color, adjust score\n\t\t\t\t\t\tball.setIntersected(true);//set the intersected flag\n\t\t\t\t\t\tball.setX(ball.getX() + ballVX);\n\t\t\t\t\t\tchanged=true;//set the changed flag\n\t\t\t\t\t\thitSound.play();//play the sound\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\t}\n\t\t\t}//end the for.\n\t\t\tif (changed==false) {//if no changes, reset the flag.\n\t\t\t\tball.setIntersected(false);\n\t\t\t}\n\t\t\t\n\t\t\t\n\t\t\t\n\t\t\t//move everything as per velocity\n\t\t\tif (slider.getX() > 10 && sliderVX<0) {\n\t\t\t\tslider.setX(slider.getX() + sliderVX*ballSpeed*2);//the slider can move twice as fast as the ball.\n\t\t\t} else if ((slider.getX()+slider.getWidth()) < GamePlay.getScreenWidth()-10 && sliderVX>0) {\n\t\t\t\tslider.setX(slider.getX() + sliderVX*ballSpeed*2);\n\t\t\t}\n\t\t\tif (ready) {\n\t\t\t\tball.setX(ball.getX() + ballVX);\n\t\t\t\tball.setY(ball.getY() + ballVY);\n\t\t\t}\n\t\t\t\n\t\t\t\n\t\t}", "@Override\r\n\tpublic void paint(Graphics g) {\n\t\tsuper.paint(g);\r\n\t Graphics2D graphics = (Graphics2D)g;\r\n\t \r\n\t for (int i = 0; i < tom.snake.size() -1; i++) {\r\n\t \tDimension xy = new Dimension(tom.snake.get(i));\r\n\t \tgraphics.setColor(BLACK);\r\n\t \tgraphics.fillRect(xy.width*SNAKE_SIZE, xy.height*SNAKE_SIZE, SNAKE_SIZE, SNAKE_SIZE);\r\n\t \t\r\n\t }\r\n\t graphics.fillOval(tom.snake.get(tom.snake.size()-1).width*SNAKE_SIZE, tom.snake.get(tom.snake.size()-1).height*SNAKE_SIZE, SNAKE_SIZE, SNAKE_SIZE);\r\n\t \r\n\t switch (tom.getDir()){\r\n\t\tcase 0: //up\r\n\t\t graphics.fillRect(tom.snake.get(tom.snake.size()-1).width*SNAKE_SIZE, tom.snake.get(tom.snake.size()-1).height*SNAKE_SIZE+SNAKE_SIZE/2, SNAKE_SIZE, SNAKE_SIZE/2+2);\r\n\t\t graphics.setColor(WHITE);\r\n\t\t graphics.fillOval(tom.snake.get(tom.snake.size()-1).width*SNAKE_SIZE+SNAKE_SIZE/3, tom.snake.get(tom.snake.size()-1).height*SNAKE_SIZE+SNAKE_SIZE/2, SNAKE_SIZE/3, SNAKE_SIZE/3);\r\n\t\t graphics.fillOval(tom.snake.get(tom.snake.size()-1).width*SNAKE_SIZE+SNAKE_SIZE/3*2, tom.snake.get(tom.snake.size()-1).height*SNAKE_SIZE+SNAKE_SIZE/2, SNAKE_SIZE/3, SNAKE_SIZE/3);break;\r\n\t\tcase 1: //down\r\n\t\t graphics.fillRect(tom.snake.get(tom.snake.size()-1).width*SNAKE_SIZE, tom.snake.get(tom.snake.size()-1).height*SNAKE_SIZE, SNAKE_SIZE, SNAKE_SIZE/2);\r\n\t\t graphics.setColor(WHITE);\r\n\t\t graphics.fillOval(tom.snake.get(tom.snake.size()-1).width*SNAKE_SIZE+SNAKE_SIZE/3, tom.snake.get(tom.snake.size()-1).height*SNAKE_SIZE+SNAKE_SIZE/4, SNAKE_SIZE/3, SNAKE_SIZE/3);\r\n\t\t graphics.fillOval(tom.snake.get(tom.snake.size()-1).width*SNAKE_SIZE+SNAKE_SIZE/3*2, tom.snake.get(tom.snake.size()-1).height*SNAKE_SIZE+SNAKE_SIZE/4, SNAKE_SIZE/3, SNAKE_SIZE/3);break;\r\n\t\tcase 2: //left\r\n\t\t graphics.fillRect(tom.snake.get(tom.snake.size()-1).width*SNAKE_SIZE+SNAKE_SIZE/2, tom.snake.get(tom.snake.size()-1).height*SNAKE_SIZE, SNAKE_SIZE/2, SNAKE_SIZE);\r\n\t\t graphics.setColor(WHITE);\r\n\t\t graphics.fillOval(tom.snake.get(tom.snake.size()-1).width*SNAKE_SIZE+SNAKE_SIZE/3, tom.snake.get(tom.snake.size()-1).height*SNAKE_SIZE+SNAKE_SIZE/4, SNAKE_SIZE/3, SNAKE_SIZE/3);\r\n\t\t graphics.fillOval(tom.snake.get(tom.snake.size()-1).width*SNAKE_SIZE+SNAKE_SIZE/3*2, tom.snake.get(tom.snake.size()-1).height*SNAKE_SIZE+SNAKE_SIZE/4, SNAKE_SIZE/3, SNAKE_SIZE/3);break;\r\n\t\tcase 3: //right\r\n\t\t graphics.fillRect(tom.snake.get(tom.snake.size()-1).width*SNAKE_SIZE, tom.snake.get(tom.snake.size()-1).height*SNAKE_SIZE, SNAKE_SIZE/2, SNAKE_SIZE);\r\n\t\t graphics.setColor(WHITE);\r\n\t\t graphics.fillOval(tom.snake.get(tom.snake.size()-1).width*SNAKE_SIZE+SNAKE_SIZE/3, tom.snake.get(tom.snake.size()-1).height*SNAKE_SIZE+SNAKE_SIZE/4, SNAKE_SIZE/3, SNAKE_SIZE/3);\r\n\t\t graphics.fillOval(tom.snake.get(tom.snake.size()-1).width*SNAKE_SIZE+SNAKE_SIZE/3*2, tom.snake.get(tom.snake.size()-1).height*SNAKE_SIZE+SNAKE_SIZE/4, SNAKE_SIZE/3, SNAKE_SIZE/3);break;\r\n\t\t } \r\n\t \r\n\t graphics.setColor(RED);\r\n\t graphics.fillOval(apple.x*SNAKE_SIZE-1, apple.y*SNAKE_SIZE-1, SNAKE_SIZE+2, SNAKE_SIZE+2);\r\n\t graphics.setColor(BLACK);\r\n\t graphics.setStroke(new BasicStroke(2));\r\n\t graphics.drawLine(apple.x*SNAKE_SIZE+SNAKE_SIZE/2, apple.y*SNAKE_SIZE+SNAKE_SIZE/4, apple.x*SNAKE_SIZE+SNAKE_SIZE/3, apple.y*SNAKE_SIZE-3);\r\n\t \r\n\t if (!game) {\r\n\t \tgraphics.setColor(DIMSCREEN);\r\n\t \tgraphics.fillRect(0, 0, 607, 607);\r\n\t \tgraphics.setColor(RED);\r\n\t \tgraphics.setFont(new Font(\"TimesRoman\", Font.BOLD, 50));\r\n\t \tif(Game.status()) { //Igra je bila zakljucena\r\n\t \t\tgraphics.drawString(\"GAME OVER\", 150, 260);\r\n\t \t\tgraphics.drawString(\"CTRL-P to restart\", 110, 320);\r\n\t \t}\r\n\t \telse if(Game.firstTime) { //Zacetni prikaz drugacen kot za navadno pavzo\r\n\t\t\t\tgraphics.drawString(\"Arrow keys to move\", 80, 260);\r\n\t\t \tgraphics.drawString(\"CTRL-P to start/pause\", 55, 320);\r\n\t \t}\r\n\t \telse \r\n\t \t\tgraphics.drawString(\"PAUSED\", 200, 300);\r\n\t }\t \r\n\t}", "public void moveUp() {\n if (getY() - 25 - getSpeed() >= 0 && !touchMaterial()) setY(getY() - getSpeed());\n }", "public void faster() {\n myTimer.setDelay((int) (myTimer.getDelay() * SPEED_FACTOR));\n }", "public void runPuzzleMovement( Screw screw, float screwVal, Platform p );", "public void increaseSpeed() {\n\t\t\n\t\tif(this.getSpeed() < this.getMaximumSpeed()) {\n\t\t\tthis.setSpeed(this.getSpeed() + 5);\n\t\t\tSystem.out.println(\"increase speed by 5 \\n\");\n\t\t}else {\n\t\t\tSystem.out.println(\"You already reach at the max speed \" + this.getMaximumSpeed() +\"\\n\");\n\t\t}\n\n\t}", "protected void createDebugSnake() {\n int freespaces = 5;\n snakeSize = maxX - freespaces;\n int segmentnum = 0;\n\n int cur_x_square = freespaces;\n int cur_y_square = 0;\n snakeHeadX = cur_x_square;\n snakeHeadY = cur_y_square;\n\n\n // build first row:\n for (cur_x_square = freespaces; cur_x_square < snakeSize + freespaces; cur_x_square++) {\n //System.out.println(segmentnum + \": \" + cur_x_square + \",\" + cur_y_square);\n snakeSquares[cur_x_square][cur_y_square] = ++segmentnum;\n }\n //fill in body of snake\n while (cur_y_square < maxY - 1) {\n cur_y_square++;\n if (cur_y_square % 2 == 0) {\n for (cur_x_square = maxX - 1; cur_x_square > 0; cur_x_square--) {\n //System.out.println(segmentnum + \": \" + cur_x_square + \",\" + cur_y_square);\n snakeSquares[cur_x_square][cur_y_square] = ++segmentnum;\n }\n } else {\n for (cur_x_square = 1; cur_x_square < maxX; cur_x_square++) {\n //System.out.println(segmentnum + \": \" + cur_x_square + \",\" + cur_y_square);\n snakeSquares[cur_x_square][cur_y_square] = ++segmentnum;\n }\n }\n }\n\n //fill in tail so it can be chased by the player as they eat the last few\n // kibbles that appear\n for (cur_y_square = maxY - 1; cur_y_square > 0; cur_y_square--) {\n //System.out.println(segmentnum + \": \" + cur_x_square + \",\" + cur_y_square);\n snakeSquares[0][cur_y_square] = ++segmentnum;\n }\n\n snakeSize = segmentnum;\n\n currentHeading = DIRECTION_LEFT;\n lastHeading = DIRECTION_LEFT;\n\n justAteMustGrowThisMuch = 0;\n }", "public void animateMovementUp()\n {\n if(animationCount%frameRate == 0)\n {\n imageNumber = (imageNumber + 1)% (upMvt.length);\n setImage(upMvt[imageNumber]);\n } \n }", "public void onUpPressed(){\n shipSoundPlayer.setVolume(App.getVolume()/2);\n if(timeAfterStateChanged > 3){\n timeAfterStateChanged = 0;\n if(fireState_1){\n player.setSprite(spaceship_flying_2);\n }else{\n player.setSprite(spaceship_flying_1);\n }\n fireState_1 = !fireState_1;\n }\n timeAfterStateChanged++;\n\n if(shipSoundPlayer.getCurrentTime().toMillis()>3400){\n shipSoundPlayer = new MediaPlayer(new Media(new File(\"Sounds\\\\SpaceShip_move.mp3\").toURI().toString()));\n }\n shipSoundPlayer.play();\n if(Math.pow(Math.pow(player.getSpeed().getX(),2)+Math.pow(player.getSpeed().getY(),2),0.5)<player.getSpeedLimit()) {\n player.setSpeed(new Point2D(player.getSpeed().getX() - Math.cos(Math.toRadians(player.getRotation() + 90)) * player.getAcceleration(), player.getSpeed().getY() - Math.sin(Math.toRadians(player.getRotation() + 90)) * player.getAcceleration()));\n }\n }", "public void moveUp()\n\t{\n\t\ty = y - STEP_SIZE;\n\t}", "public void refactor() {\n this.maxX = SnakeGame.getxSquares();\n this.maxY = SnakeGame.getySquares();\n snakeSquares = new int[this.maxX][this.maxY];\n fillSnakeSquaresWithZeros();\n createStartSnake();\n }", "public void levelUp() {\n\t\t\tpauseGame(500);//pause the game, play a nice song, and make more bricks!\n\t\t\tmakeBricks(12,8);\n\t\t\tlevelUp.play();\n\t\t}", "public void incWalkSpeed(int n)\n{\n walkSpeed = walkSpeed - n;\n}", "public void increaseSpeed() {\n\t\tSystem.out.println(\"Cyborg speeds up!!!\");\n\t\tfor (int i = 0; i < gameObjects.size(); i++)\n\t\t{\n\t\t\tif (gameObjects.get(i) instanceof Cyborg)\n\t\t\t{\n\t\t\t\t((Cyborg) gameObjects.get(i)).increaseSpeed();\n\t\t\t}\n\t\t}\n\t}", "void changeUpdateSpeed();", "void easy_ride_old (double min_lift, double start_speed) { \n double pitch = 0;\n double min_drag = 10000.0;\n double min_drag_speed = -1;\n for (double speed = start_speed; speed < v_max; speed += 0.5) {\n velocity = speed;\n trace(\"velocity: \" + velocity);\n for (pitch = 0; pitch <= aoa_max; pitch += 0.1) {\n craft_pitch = pitch;\n //computeFlowAndRegenPlotAndAdjust();\n recomp_all_parts();\n // if (total_drag() >= max_drag) {\n // trace(\"warning speed: \" + speed + \" pitch: \" + pitch + \" lift \" + foil_lift());\n // return;\n // }\n if (foil_lift() >= min_lift) {\n double drag = total_drag();\n if (min_drag > drag) {\n min_drag = drag;\n min_drag_speed = velocity;\n break;\n } else {\n // drag goes up now. can be done now, but\n // as a heuristic, now try from the upepr limit, and then find range:\n max_speed(min_lift, min_drag + 2, false);\n if (velocity < min_drag_speed) {\n // something went wrong (iteration stepped over the sweets spot etc)\n // so we take min_lift, min_drag, and min_drag_speed as is\n make_cruising_info(min_lift, min_drag, min_drag_speed); \n System.out.println(\"\\nDone!\\n----------------\\n\" + cruising_info);\n } else {\n // done, report with average of min_drag_speed and velocity\n make_cruising_info(min_lift, min_drag+1, (min_drag_speed+velocity)/2); \n trace(\"done with refinement! \");\n System.out.println(\"\\nDone!\\n----------------\\n\" + cruising_info);\n }\n return;\n }\n }\n }\n }\n }", "public void enlargeSquare()\n {\n squareSize++;\n }", "void moveUp();", "void moveUp();", "public static void increaseDifficaulty() {\r\n\t\tif (Enemy._timerTicker > 5)\r\n\t\t\tEnemy._timerTicker -= 2;\r\n\t\tif (Player._timerTicker < 100)\r\n\t\t\tPlayer._timerTicker += 2;\r\n\t}", "public void changeSpeed(int speed);", "@Override\n\tpublic void step() {\n\t\tthis.y-= speed;\t\n\t}", "public void decreaseSpeed() {\n\t\tif(this.getSpeed() > 0) {\n\t\t\tthis.setSpeed(this.getSpeed() - 5);\n\t\t\tSystem.out.println(\"decrease speed by 5\\n\");\n\t\t}else {\n\t\t\tSystem.out.println(\"You already reach at the mimimum speed 0\\n\");\n\t\t}\n\t}", "public void tune() {\n\t\tSystem.out.println(\"ting.. ting...\");\n\t}", "public void arm_up() {\n arm_analog(RobotMap.Arm.arm_speed);\n }", "public void moveUp() {\n speedY += (speedY < 0) ? acceleration * 2 : acceleration;\n if (speedY > maxSpeed) {\n speedY = maxSpeed;\n }\n direction = Direction.UP;\n }", "public void goUp() {\n\t\tacceleration = -1;\n\t}", "@Override\n\tpublic void step() {\n\t\ty += speed;\n\t}", "public static String getSleepingSnake(int size)\r\n\t{\r\n if (size == 0) {\r\n\t\t return \"Size needs to be a positive integer\\n\";\r\n }\r\n if (size == 4) {\r\n return \">____ \\n ___ |\\n| > ||\\n||__||\\n|____|\\n\";\r\n }\r\n if (size == 7) {\r\n return \">_______\\n ______ |\\n| ____ ||\\n|| __ |||\\n||| < |||\\n|||___|||\\n||_____||\\n|_______|\\n\";\r\n }\r\n /*\r\n else if (size % 2 != 0) {\r\n StringBuffer sb = new StringBuffer(); \r\n\r\n // first line\r\n sb.append(\">\");\r\n for (int j = 0; j < size; j++) {\r\n sb.append(\"_\");\r\n }\r\n //sb.append(\" \\n\");\r\n sb.append(\"\\n\");\r\n \r\n // second through half\r\n for (int i = 1; i < size / 2 + 1; i++) {\r\n for (int j = 0; j < i - 1; j++) {\r\n sb.append(\"|\");\r\n }\r\n sb.append(\" \");\r\n for (int j = 0; j < size - 2 * i + 1; j++) {\r\n sb.append(\"_\");\r\n }\r\n\r\n sb.append(\" \");\r\n for (int j = 0; j < i; j++) {\r\n sb.append(\"|\");\r\n }\r\n sb.append(\"\\n\");\r\n }\r\n\r\n // middle\r\n for (int j = 0; j < size - 4; j++) {\r\n sb.append(\"|\");\r\n }\r\n sb.append(\" < \");\r\n for (int j = 0; j < size - 4; j++) {\r\n sb.append(\"|\");\r\n }\r\n sb.append(\"\\n\");\r\n\r\n \r\n int k = 0;\r\n // half through end\r\n for (int i = size / 2 + 1; i < size; i++, k++) {\r\n for (int j = i; j < size; j++) {\r\n sb.append(\"|\");\r\n }\r\n for (int j = 0; j < i - 1 + k; j++) {\r\n sb.append(\"_\");\r\n\r\n }\r\n\r\n for (int j = i; j < size; j++) {\r\n sb.append(\"|\");\r\n }\r\n sb.append(\"\\n\");\r\n }\r\n //sb.setLength(sb.length() - 1);\r\n return sb.toString();\r\n }\r\n */\r\n else {\r\n StringBuffer sb = new StringBuffer(); \r\n return sb.toString();\r\n }\r\n \r\n\t}", "public void brake(){\n if (speed <= 0){\n speed = 0;\n }\n else{\n speed -= 5;\n }\n }", "public void intakeCargo(){\n intake.set(INTAKE_SPEED);\n }", "void giveUp();", "private static void speedup(String [] args){\n\t\t\n\t\tint warningCnt = 0;\n\t\t\n\t\tString applicationPath = convertApplication(args[2], null);\n\t\tConfMan baseConfigManager;\n\t\t\n\n\n\n\n\t\tbaseConfigManager = new ConfMan(args[1], applicationPath, false);\n\t\tConfMan[] cms;\n\t\t\n\t\tSweepConfig sweepConfig = new SweepConfig(baseConfigManager, \"config/sweep/cacheSpeedupSweep.json\",true);\n//\t\tSweepConfig sweepConfig = new SweepConfig(baseConfigManager, \"config/sweep/speedupSweep.json\",true);\n\n\t\tcms = sweepConfig.getConfManager();\n\t\tString[] configNames = sweepConfig.getSweepConfigurations();\n//\t\tString[] speedupIdentifier = sweepConfig.getSpeedupIdentifier();\n//\t\tboolean[] isShortTest = sweepConfig.getIsShortTest();\n\n\t\tTrace speedupTrace = new Trace(System.out, System.in, \"\", \"\");\n\t\tspeedupTrace.setPrefix(\"basic config\");\n\t\tbaseConfigManager.printConfig(speedupTrace);\n\n\t\tspeedupTrace.setPrefix(\"speedup\");\n\t\t\n//\t\tLinkedHashMap<String, SpeedupMeasurementResult> speedupResults = new LinkedHashMap<>();\n\t\tMeasurementResult[] measurementResults = new MeasurementResult[cms.length];\n\t\tLinkedHashMap<String, BaseLineStorage> baseLineStorage = new LinkedHashMap<String, BaseLineStorage>();\n\t\t\n//\t\tAmidarSimulationResult[] results = parallelRemoteSimulation(sweepConfig, \"trav\", 1099, 8, speedupTrace);\n\t\t\n\t\tdouble overhead = 0;\n\t\tint transmission = 0;\n\t\tint run = 0;\n\t\tdouble overheadCnt = 0;\n\t\t\n\n\t\t////////////////////////// SIMULATE //////////////////////////////////////////////\n\t\tfor(int i = 0; i<cms.length; i++){\n\t\t\t\n\t\t\t/////// FIRST SHORT /////////////////////////////\n\t\t\tConfMan conf = cms[i];\n\t\t\t\n\t\t\tboolean isShort = true;\n\t\t\tString appBaseName = conf.getApplicationPath();\n\t\t\tString [] appBasePath = appBaseName.split(\"/\");\n\t\t\t\n\t\t\t\n\t\t\tconf.setApplication(\"../axt/\" + appBaseName+ \"_short/\" + appBasePath[appBasePath.length-1] + \"_short.axt\");\n\n\t\t\tMeasurementResult speedupRes = measurementResults[i];\n\t\t\tif(speedupRes == null){\n\t\t\t\tspeedupRes = new MeasurementResult();\n\t\t\t\tmeasurementResults[i] = speedupRes;\n\t\t\t}\n\t\t\t\n\t\t\tString app = conf.getApplicationPath();\n\t\t\tint benchmarkScale = conf.getBenchmarkScale();\n\t\t\tapp = app+\"-benchMarkScale-\"+benchmarkScale;\n\t\t\t\n\t\t\tspeedupTrace.printTableHeader(\"Running: \" + configNames[i] + \" SHORT\");\n\t\t\tif(!baseLineStorage.containsKey(app)){\n\t\t\t\tbaseLineStorage.put(app, new BaseLineStorage());\n\t\t\t}\n\t\t\t\n\t\t\tBaseLineStorage baseLine = baseLineStorage.get(app);\n \t\t\t\n\t\t\tif(!baseLine.isBaselineAvailable(isShort)){\n\t\t\t\tspeedupTrace.println(\"Running without synthesis...\");\n\t\t\t\tAmidarSimulationResult currentRes = run(conf, null, false);\n\t\t\t\tspeedupRes.addBaseline(currentRes, isShort);\n\t\t\t\tbaseLine.addBaseLine(isShort, currentRes);\n\t\t\t} else {\n\t\t\t\tspeedupRes.addBaseline(baseLine.getBaseLine(isShort), isShort);\n\t\t\t}\n\t\t\t\n\t\t\t\n\t\t\tAmidarSimulationResult currentResult = null;\n\t\t\tconf.setSynthesis(true);\n\t\t\tspeedupTrace.println(\"Running with synthesis...\");\n\t\t\ttry{\n\t\t\t\tcurrentResult = run(conf, null, false);\n\t\t\t} catch(AmidarSimulatorException e ){\n\t\t\t\tspeedupTrace.println(\"WARNING: Aliasing speculation failed. Switching of speculation and repeat...\");\n\t\t\t\twarningCnt++;\n\t\t\t\tconf.getSynthesisConfig().put(\"ALIASING_SPECULATION\", AliasingSpeculation.OFF);\n\t\t\t\tcurrentResult = run(conf, null, false);\n\t\t\t\t\n\t\t\t}\n\t\t\t\n//\t\t\tif(isShort){\n//\t\t\t\tHashMap<String, Integer> stateCNT = currentResult.getCgraStateCount();\n//\t\t\t\tdouble transmissionCnt = stateCNT.get(\"SEND\") + stateCNT.get(\"REC\") +stateCNT.get(\"WAIT\");\n//\t\t\t\tdouble runCnt = stateCNT.get(\"RUN\");\n//\t\t\t\t\n//\t\t\t\tdouble overheadCurrent = transmissionCnt/(transmissionCnt + runCnt);\n//\t\t\t\t\n//\t\t\t\toverhead += overheadCurrent;\n//\t\t\t\ttransmission +=transmissionCnt;\n//\t\t\t\trun += runCnt;\n//\t\t\t\toverheadCnt++;\n//\t\t\t}\n\t\t\t\n\t\t\tspeedupRes.addResults(currentResult, isShort);\n\t\t\t\n\t\t\t/////// THEN LONG /////////////////////////////\n\t\t\t\n\t\t\tisShort = false;\n\t\t\tconf.setApplication(\"../axt/\" + appBaseName+ \"_long/\" + appBasePath[appBasePath.length-1] + \"_long.axt\");\n\t\t\t\n\t\t\t\n\t\t\t\n\t\t\tspeedupTrace.printTableHeader(\"Running: \" + configNames[i] + \" LONG\");\n\t\t\tif(!baseLine.isBaselineAvailable(isShort)){\n\t\t\t\tconf.setSynthesis(false);\n\t\t\t\tspeedupTrace.println(\"Running without synthesis...\");\n\t\t\t\tAmidarSimulationResult currentRes = run(conf, null, false);\n\t\t\t\tspeedupRes.addBaseline(currentRes, isShort);\n\t\t\t\tbaseLine.addBaseLine(isShort, currentRes);\n\t\t\t} else {\n\t\t\t\tspeedupRes.addBaseline(baseLine.getBaseLine(isShort), isShort);\n\t\t\t}\n\t\t\t\n\t\t\t\n\t\t\tconf.setSynthesis(true);\n\t\t\tspeedupTrace.println(\"Running with synthesis...\");\n\t\t\ttry{\n\t\t\t\tcurrentResult = run(conf, null, false);\n\t\t\t} catch(AmidarSimulatorException e ){\n\t\t\t\tspeedupTrace.println(\"WARNING: Aliasing speculation failed. Switching of speculation and repeat...\");\n\t\t\t\twarningCnt++;\n\t\t\t\tconf.getSynthesisConfig().put(\"ALIASING_SPECULATION\", AliasingSpeculation.OFF);\n\t\t\t\tcurrentResult = run(conf, null, false);\n\t\t\t\t\n\t\t\t}\n\t\t\t\n//\t\t\tif(isShort){\n//\t\t\t\tHashMap<String, Integer> stateCNT = currentResult.getCgraStateCount();\n//\t\t\t\tdouble transmissionCnt = stateCNT.get(\"SEND\") + stateCNT.get(\"REC\") +stateCNT.get(\"WAIT\");\n//\t\t\t\tdouble runCnt = stateCNT.get(\"RUN\");\n//\t\t\t\t\n//\t\t\t\tdouble overheadCurrent = transmissionCnt/(transmissionCnt + runCnt);\n//\t\t\t\t\n//\t\t\t\toverhead += overheadCurrent;\n//\t\t\t\ttransmission +=transmissionCnt;\n//\t\t\t\trun += runCnt;\n//\t\t\t\toverheadCnt++;\n//\t\t\t}\n\t\t\t\n\t\t\tspeedupRes.addResults(currentResult, isShort);\n\t\t}\n\t\t////////////////////////SIMULATE END//////////////////////////////////////////////\n\n\t\tspeedupTrace.printTableHeader(\"Speedup\");\n\t\t\n\t\tDecimalFormatSymbols symbols = new DecimalFormatSymbols();\n\t\tsymbols.setGroupingSeparator(',');\n\t\tsymbols.setDecimalSeparator('.');\n\t\tDecimalFormat formater = new DecimalFormat(\"#0.000\", symbols);\n\t\t\n\t\t\n\t\t/// GATHER INFORMATION //////////////////////////////////////////\n\t\t\n\t\tdouble[] speedupList = new double[cms.length];\n\t\tdouble[] communicationOverhead = new double[cms.length];\n\t\tdouble[] dmaOverhead = new double[cms.length];\n\t\tdouble[] l1usage = new double[cms.length];\n\t\tdouble[] l2usage = new double[cms.length];\n\t\tdouble[] averageMemTime = new double[cms.length];\n\t\t\n\t\tdouble[][] blockTimesPrefetch = new double[TaskType.values().length][cms.length];\n\t\tdouble[][] blockTimesRegular = new double[TaskType.values().length][cms.length];\n\t\t\n\t\tint[] nrOfContexts = new int[cms.length];\n\t\tint[] nrOfL1Prefetches = new int[cms.length];\n\t\tint[] nrOfL2Prefetches = new int[cms.length];\n\t\tint[] nrOfUsedL1Prefetches = new int[cms.length];\n\t\tint[] nrOfUsedL2Prefetches = new int[cms.length];\n\t\t\n\t\tint[] nrOfHandledPrefetchRequests = new int[cms.length];\n\t\tint[] nrOfHandledPrefetchRequestsAlreadyAvailable = new int[cms.length];\n\t\t\n\t\tint[] cachelineFills = new int[cms.length];\n\t\tlong[] synthTime = new long[cms.length];\n\t\t\n\t\tfor(int i = 0; i < measurementResults.length; i++){\n\t\t\tString res = \"Speedup of \" + configNames[i] + \"\\t\";\n\t\t\tdouble speedup = measurementResults[i].getSpeedup();\n\t\t\tspeedupList[i] = speedup;\n\t\t\tres = res + \": \" + formater.format(speedup);\n\t\t\tspeedupTrace.println(res);\n\t\t\t\n\t\t\tcommunicationOverhead[i] = measurementResults[i].getCommunicationOverhead();\n\t\t\tdmaOverhead[i] = measurementResults[i].getDMAOverhead();\n\t\t\tl1usage[i]= measurementResults[i].getL1Usage();\n\t\t\tl2usage[i]= measurementResults[i].getL2Usage();\n\t\t\taverageMemTime[i] = measurementResults[i].getAverageMemoryAccessTime();\n\t\t\tfor(TaskType tt: TaskType.values()){\n\t\t\t\tblockTimesPrefetch[tt.ordinal()][i] = measurementResults[i].getBlockTimesInPercent(RequestType.Prefetch, tt);\n//\t\t\t\tSystem.out.println(\"\\tBlocktime Pref\" +tt + \":\\t\" +blockTimesPrefetch[tt.ordinal()][i]);\n\t\t\t\tblockTimesRegular[tt.ordinal()][i] = measurementResults[i].getBlockTimesInPercent(RequestType.Regular, tt);\n//\t\t\t\tSystem.out.println(\"\\tBlocktime Regu\" +tt + \":\\t\" +blockTimesRegular[tt.ordinal()][i]);\n \t\t\t}\n\t\t\tnrOfContexts[i] = measurementResults[i].getNrOfContexts();\n\t\t\tnrOfL1Prefetches[i] = measurementResults[i].getNrOfL1Prefetches();\n\t\t\tnrOfUsedL1Prefetches[i] = measurementResults[i].getNrOfUsedL1Prefetches();\n\t\t\tnrOfHandledPrefetchRequests[i] = measurementResults[i].getNrOfHandledPrefetchRequests();\n\t\t\tnrOfHandledPrefetchRequestsAlreadyAvailable[i] = measurementResults[i].getNrOfHandledPrefetchRequestsAlreadyAvailable();\n\t\t\tcachelineFills[i] = measurementResults[i].getCachelineFills();\n\t\t\tsynthTime[i] = measurementResults[i].getSynthTime();\n\t\t}\n\t\t///// PLOT INFORMATION //////////////////////////////////////////////\n\t\tSweepResultPlotter plotter = new SweepResultPlotter();\n//\t\tplotter.configurePlotter( \"UNROLL\", \"\", true);\n\t\tLinkedHashMap<String, LinkedHashSet<String>> sweepInfo = sweepConfig.getSweepInfo();\n\t\t\n\t\tString path = \"log/sweep\"+new Date().toString();\n\t\tplotter.setPath(path);\n\t\tplotter.saveSweepInfo(sweepInfo);\n\t\t\n\t\tplotter.saveResults(speedupList,\"speedup\");\n\t\tplotter.saveResults(communicationOverhead, \"communicationOverhead\");\n\t\tplotter.saveResults(dmaOverhead, \"dmaOverhead\");\n\t\tplotter.saveResults(l1usage,\"l1usage\");\n\t\tplotter.saveResults(l2usage, \"l2usage\");\n\t\tplotter.saveResults(averageMemTime, \"memTime\");\n\t\tplotter.saveResults(nrOfContexts, \"contexts\");\n\t\tplotter.saveResults(nrOfL1Prefetches, \"l1prefetches\");\n\t\tplotter.saveResults(nrOfUsedL1Prefetches, \"usedL1prefetches\");\n\t\tplotter.saveResults(nrOfHandledPrefetchRequests, \"handledPrefetchRequests\");\n\t\tplotter.saveResults(nrOfHandledPrefetchRequestsAlreadyAvailable, \"handledPrefetchRequestsAvail\");\n\t\tplotter.saveResults(cachelineFills, \"cachelineFills\");\n\t\tplotter.saveResults(synthTime, \"Synthtime\");\n\t\t\n\t\t\n//\t\tfor(TaskType tt: TaskType.values()){\n//\t\t\t\n//\t\t}\n\t\t\n\t\t///// PRINT ON CONSOLE ///////////////////////////////\n\t\tspeedupTrace.printTableHeader(\"Average Speedup\");\n\t\tplotter.plot(sweepInfo, speedupList, speedupTrace,\"log/\", \"\");\n\t\t\n\t\tif(warningCnt > 1){\n\t\t\tspeedupTrace.println(warningCnt + \" Warnings\");\n\t\t} else if(warningCnt == 1){\n\t\t\tspeedupTrace.println(\"1 Warning\");\n\t\t}\n\t\t\n//\t\tspeedupTrace.println(\"CGRA transmission overhead in Percent: \" + formater.format(overhead*100/overheadCnt) + \" Ticks Running: \" + (int)(run/overheadCnt+0.5) + \" Ticks Transmitting: \" + (int)(transmission/overheadCnt+0.5));\n\t\t\n\t\t\n//\t\tspeedupTrace.println(ObjectHistory.indep*100/(ObjectHistory.indep+ObjectHistory.dep)+\"% of all memory accesses are independant\");\n//\n//\t\t\n\t\tspeedupTrace.printTableHeader(\"Average Communication Overhead\");\n\t\tplotter.plot(sweepConfig.getSweepInfo(), communicationOverhead, speedupTrace, null, \"\");\n\t\tspeedupTrace.printTableHeader(\"Average DMA Overhead\");\n\t\tplotter.plot(sweepConfig.getSweepInfo(), dmaOverhead, speedupTrace, null, \"\");\n\t\tspeedupTrace.printTableHeader(\"Memtime\");\n\t\tplotter.plot(sweepConfig.getSweepInfo(), averageMemTime, speedupTrace, null, \"\");\n\t\t\n\t\tdouble[] cffd = new double[cachelineFills.length];\n\t\tfor(int i = 0; i < cffd.length; i++){\n\t\t\tcffd[i] = cachelineFills[i];\n\t\t}\n\t\t\n\t\t\n\t\t\n\t\tspeedupTrace.printTableHeader(\"Cacheline fills\");\n\t\tplotter.plot(sweepConfig.getSweepInfo(), cffd, speedupTrace, null, \"\");\n\t\t\n\t\tdouble[] stdd = new double[synthTime.length];\n\t\tfor(int i = 0; i < stdd.length; i++){\n\t\t\tstdd[i] = synthTime[i];\n\t\t}\n\t\t\n\t\t\n\t\t\n\t\tspeedupTrace.printTableHeader(\"Synth time\");\n\t\tplotter.plot(sweepConfig.getSweepInfo(), stdd, speedupTrace, null, \"\");\n\t\t\n//\t\t\n//\t\tplotter.plot(sweepConfig.getSweepInfo(), l1usage, speedupTrace, null, \"\");\n//\t\tplotter.plot(sweepConfig.getSweepInfo(), l2usage, speedupTrace, null, \"\");\n//\t\tplotter.plot(sweepConfig.getSweepInfo(), averageMemTime, speedupTrace, null, \"\");\n\t\t\n//\t\tspeedupTrace.printTableHeader(\"CGRA blocked by Prefetch\");\n//\t\tfor(TaskType tt: TaskType.values()){\n//\t\t\tplotter.plot(sweepConfig.getSweepInfo(), blockTimesPrefetch[tt.ordinal()], speedupTrace,null, tt.toString());\n//\t\t}\n//\t\tspeedupTrace.printTableHeader(\"CGRA blocked by Regular Access\");\n//\t\tfor(TaskType tt: TaskType.values()){\n//\t\t\tplotter.plot(sweepConfig.getSweepInfo(), blockTimesRegular[tt.ordinal()], speedupTrace,null, tt.toString());\n//\t\t}\n\t\n\t}", "public void up(){\n\t\tmoveX=0;\n\t\tmoveY=-1;\n\t}", "public void moveUp(){\n\t\tif(GameSystem.TWO_PLAYER_MODE){\n\t\t\tif(Game.getPlayer2().dying){\n\t\t\t\treturn;\n\t\t\t}\n\t\t}\n\t\tif(animation==ANIMATION.DAMAGED||Game.getPlayer().dying||channelling||charging) return;\n\t\tmoving=true;\n\t\tbuttonReleased=false;\n\t\torientation=ORIENTATION.UP;\n\t\tif(animation!=ANIMATION.MOVEUP) {\n\t\t\tanimation=ANIMATION.MOVEUP;\n\t\t\tif(run!=null) sequence.startSequence(run);\n\t\t}\n\t\tdirection=\"up\";\n\t\tsetNextXY();\n\t\tsetDestination(nextX,nextY);\n\t\tvelY=-1*spd/2;\n\t\tvelX=0;\n\t}", "@Override\r\n public int paddleSpeed() {\r\n return 5;\r\n }", "public void fruitDrop()\n {\n fruit.slowMoveVertical(60);\n }", "public void move() {\n\t\tif (type.equals(\"Fast\")) {\n\t\t\tspeed = 2;\n\t\t}else if (type.equals(\"Slow\")){\n\t\t\tspeed = 4;\n\t\t}\n\t\t\n\t\tif (rand.nextInt(speed) == 1){\n\t\t\tif (currentLocation.x - ChristopherColumbusLocation.x < 0) {\n\t\t\t\tif (currentLocation.x + 1 < oceanMap.getDimensions()) {\n\t\t\t\t\tcurrentLocation.x++;\n\t\t\t\t}\n\t\t\t}\n\t\t\telse {\n\t\t\t\tif (currentLocation.x != 0) {\t\t\t\t\n\t\t\t\t\tcurrentLocation.x--;\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\tif (currentLocation.y - ChristopherColumbusLocation.y < 0) {\n\t\t\t\tif (currentLocation.y + 1 < oceanMap.getDimensions()) {\n\t\t\t\t\tcurrentLocation.y++;\n\t\t\t\t}\n\t\t\t}\n\t\t\telse {\n\t\t\t\tif (currentLocation.y != 0) {\n\t\t\t\t\tcurrentLocation.y--;\n\t\t\t\t}\n\t\t\t} \n\t\t}\n\t}", "public void adjustUp() {\n\n for (int y = 0; y < MAP_HEIGHT; y++)\n for (int x = 0; x < MAP_WIDTH; x++) {\n tiles[x][y].y = tiles[x][y].y - 4;\n backGroundTiles[x][y].y = backGroundTiles[x][y].y - 4;\n grassTiles[x][y].y = grassTiles[x][y].y - 4;\n }\n }", "private static double simpleSpeedupRun(String [] args){\n\t\tString applicationPath = convertApplication(args[2], new String[] {\"1\", \"2\"});\n\t\tConfMan configManager;\n\n\t\tconfigManager = new ConfMan(args[1],applicationPath, false);\n\t\t\n\t\tTrace speedupTrace = new Trace(System.out, System.in, \"\", \"\");\n\t\tif(configManager.getTraceActivation(\"config\")){\n\t\t\tspeedupTrace.setPrefix(\"config\");\n\t\t\tconfigManager.printConfig(speedupTrace);\n\t\t}\n\t\tspeedupTrace.setPrefix(\"speedup\");\n\t\t\n\t\t\n\t\tspeedupTrace.printTableHeader(\"Measuring simple speedup\");\n\t\tspeedupTrace.printTableHeader(\"Running without Synthesis\");\n\t\tAmidarSimulationResult resultsOFF = run(configManager, null, false);\n\n\t\t\n\t\t\n\t\tspeedupTrace.printTableHeader(\"Running again with Synthesis\");\n\t\tconfigManager.setSynthesis(true);\n\t\tAmidarSimulationResult resultsON = run(configManager, null, false);\n\n\t\tdouble speedup = (double)resultsOFF.getTicks()/(double)resultsON.getTicks();\n\t\tdouble energySavings = (double)resultsON.getEnergy()/(double)resultsOFF.getEnergy();\n\n\t\tDecimalFormatSymbols symbols = new DecimalFormatSymbols();\n\t\tsymbols.setGroupingSeparator(',');\n\t\tsymbols.setDecimalSeparator('.');\n\t\tDecimalFormat formater = new DecimalFormat(\"#0.000\", symbols);\n\n\t\tif(configManager.getTraceActivation(\"results\")){\n\t\t\tspeedupTrace.setPrefix(\"results\");\n\t\t\tspeedupTrace.printTableHeader(\"Simulated \"+applicationPath+\" - Simple Speedup Measurement\");\n\t\t\tspeedupTrace.println(\"Ticks without synthesis: \"+resultsOFF.getTicks());\n\t\t\tspeedupTrace.println(\"Ticks with synthesis: \"+resultsON.getTicks());\n\t\t\tspeedupTrace.println(\"Speedup: \"+formater.format(speedup));\n\t\t\tspeedupTrace.println();\n\t\t\tspeedupTrace.println(\"Energy without synthesis: \"+formater.format(resultsOFF.getEnergy()));\n\t\t\tspeedupTrace.println(\"Energy with synthesis: \"+formater.format(resultsON.getEnergy()));\n\t\t\tspeedupTrace.println(\"Energy savings: \"+formater.format((1-energySavings)*100) + \"%\");\n\t\t\t\n\t\t\tspeedupTrace.printTableHeader(\"Loop Profiling\");\n\t\t\tresultsON.getProfiler().reportProfile(speedupTrace);\n\t\t\tspeedupTrace.printTableHeader(\"Kernel Profiling\");\n\t\t\tresultsON.getKernelProfiler().reportProfile(speedupTrace, resultsON.getTicks());\n\t\t}\n\t\t\t\n\t\treturn speedup;\n\n\t}", "public abstract void shake(long ms);", "@Override\n\t\tpublic void run() {\n\t\t\twhile(true)\n\t\t\t{\n\t\t\t\t\t\t\t\t\n\t\t\t\tswitch(this.direct)\n\t\t\t\t{\n\t\t\t\tcase 0:\n\t\t\t\t\t//说明坦克正在向上移动,坦克在一个方向上走30\n\t\t\t\t\t//再换方向\n\t\t\t\t\tfor(int i=0;i<30;i++)\n\t\t\t\t\t{\n\t\t\t\t\t\tif(y>0&&!this.isTouchOtherEnemy())\n\t\t\t\t\t\t{\n\t\t\t\t\t y-=speed;\n\t\t\t\t\t\t}\n\n\t\t\t\t\ttry {\n\t\t\t\t\t\tThread.sleep(50);\n\t\t\t\t\t} catch (InterruptedException e) {\n\t\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\t\te.printStackTrace();\n\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tbreak;\n\t\t\t\t\t\n\t\t\t\tcase 1:\n\t\t\t\t\tfor(int i=0;i<30;i++)\n\t\t\t\t\t{\n\t\t\t\t\t\tif(x<360&&!this.isTouchOtherEnemy())\n\t\t\t\t\t\t{\n\t\t\t\t x+=speed;\n\t\t\t\t\t\t}\n\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\tThread.sleep(50);\n\t\t\t\t\t\t} catch (InterruptedException e) {\n\t\t\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\t\t\te.printStackTrace();\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t break;\n\t\t\t\tcase 2:\n\t\t\t\t\tfor(int i=0;i<30;i++)\n\t\t\t\t\t{\n\t\t\t\t\t\tif(y<235&&!this.isTouchOtherEnemy())\n\t\t\t\t\t\t{\n\t\t\t\t\t y+=speed;\n\t\t\t\t\t\t}\n\t\t\t\t\ttry {\n\t\t\t\t\t\tThread.sleep(50);\n\t\t\t\t\t} catch (InterruptedException e) {\n\t\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\t\te.printStackTrace();\n\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tbreak;\n\t\t\t\tcase 3:\n\t\t\t\t\tfor(int i=0;i<30;i++)\n\t\t\t\t\t{\n\t\t\t\t\t\tif(x>0&&!this.isTouchOtherEnemy())\n\t\t\t\t\t\t{\n\t\t\t\t\t x-=speed;\n\t\t\t\t\t\t}\n\t\t\t\t\ttry {\n\t\t\t\t\t\tThread.sleep(50);\n\t\t\t\t\t} catch (InterruptedException e) {\n\t\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\t\te.printStackTrace();\n\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\t//让敌人的额坦克可以连续打子弹\n\t\t\t\tthis.times++;\n\t\t\t\tif(times%2==0)\n\t\t\t\t{\n\t\t\t\t\tif(isLive)\n\t\t\t\t\t{\n\t\t\t\t\t\tif(hcShoot.size()<5)\n\t\t\t\t\t\t{\t\n\t\t\t\t\t\t Shoot s=null;\n\t\t\t\t\t\t //没有子弹,添加\n\t\t\t\t\t\t\t\t\t\tswitch(direct)\n\t\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\tcase 0:\n\t\t\t\t\t\t\t\t\t\t\ts=new Shoot(x+10,y,0);\n\t\t\t\t\t\t\t\t\t\t\thcShoot.add(s);\n\t\t\t\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\t\t\t\tcase 1:\n\t\t\t\t\t\t\t\t\t\t\ts=new Shoot(x+30,y+10,1);\n\t\t\t\t\t\t\t\t\t\t\thcShoot.add(s);\n\t\t\t\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\t\t\t\tcase 2:\n\t\t\t\t\t\t\t\t\t\t\ts=new Shoot(x+10,y+30,2);\n\t\t\t\t\t\t\t\t\t\t\thcShoot.add(s);\n\t\t\t\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\t\t\t\tcase 3:\n\t\t\t\t\t\t\t\t\t\t\ts=new Shoot(x,y+10,3);\n\t\t\t\t\t\t\t\t\t\t\thcShoot.add(s);\n\t\t\t\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t//启动子弹线程\n\t\t\t\t\t\t\t\t\t\tThread t=new Thread(s);\n\t\t\t\t\t\t\t\t\t\tt.start();\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t }\n\t\t\t\t\t }\n\t\t\t\t//让坦克随机产生一个新的方向\n\t\t\t\tthis.direct=(int)(Math.random()*4);\n\t\t\t\t//判断敌人的坦克是否死亡\n\t\t\t\tif(this.isLive==false)\n\t\t\t\t{ \n\t\t\t\t\t//敌人的坦克死亡后退出线程\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t}\n\t}", "@Override\n public void stress() {\n _brain.heart.accelerate(2);\n }", "void object_calculations_touch_ground(){\n\n if (down_angle < 0 && up_angle > 0)//base case\n {\n double temp = up_angle;\n up_angle = down_angle;\n down_angle = temp;\n base_case();\n } else if ((down_angle > 0 && up_angle > 0) && (down_angle < up_angle))//smaller object\n {\n double temp = up_angle;\n up_angle = down_angle;\n down_angle = temp;\n measure_small_object();\n } else if (up_angle < 0 && down_angle > 0)//base case\n base_case();\n else //smaller object\n measure_small_object();\n }", "public void incSpeed()\n\t{\n\t\t//only increase if a PlayerShip is currently spawned\n\t\tif(gameObj[1].size() > 0)\n\t\t{\n\t\t\t((PlayerShip)gameObj[1].get(0)).incSpeed();\n\t\t\tSystem.out.println(\"Speed +10\");\n\t\t}else\n\t\t\tSystem.out.println(\"A player ship is not currently spawned\");\n\t}", "@FXML\n\tprivate void moveUp(ActionEvent event) {\n\t\t\n\t\tRandom rand = new Random();\n\t\t\n\t\tint combatroll = rand.nextInt(101);\n\t\tint itemroll = rand.nextInt(101);\n\t\t\n\t\t\n\t\tif(l.upValid && combat == false) {\n\t\t\tunsetValidMoves();\n\t\t\tl.moveUp();\n\t\t\tsetCurrentPos();\n\n\t\t\tif(currentPos != finishCircle) {\n\t\t\t\tif(combatroll >= 80) { \n\t\t\t\t\n\t\t\t\t\tcombat();\t\n\t\t\t\t}else if(itemroll>=40) {\n\t\t\t\t\trollCommonDrop();\n\t\t\t\t}\n\t\t\t\n\t\t\t}\n\n\t\t\telse if(currentPos == finishCircle) {\n\t\t\t\t\n\t\t\t\tbossfight();\n\t\t\t\n\t\t\t}\n\t\t\telse {\n\t\t\t\treturn;\n\t\t\t}\n\t\t}\n\t}", "public void tick() {\r\n if (!paused) {\r\n// if (auto) {\r\n// calculateBestDirection();\r\n// }\r\n snake.move();\r\n if (hasEatenApple()) {\r\n snake.eatApple();\r\n createApple();\r\n score++;\r\n }\r\n if (hasCollided()) {\r\n createSnake();\r\n startGame();\r\n }\r\n drawGame();\r\n }\r\n keyPressedThisTick = false; \r\n }", "@Override\n\tpublic\n\tvoid speed() {\n\t\t\n\t}", "@Override\n public void update() {\n if(alive==false){\n afterBeKilled();\n return;\n }\n animate();\n chooseState();\n checkBeKilled();\n if(attack){\n if(timeBetweenShot<0){\n chooseDirection();\n attack();\n timeBetweenShot=15;\n }\n else{\n timeBetweenShot--;\n }\n\n }\n else{\n calculateMove();\n setRectangle();\n }\n }", "public void startSnake()\n {\n int thisA = (150+1260)/2; //705\n int thisB = (150+630)/2 -195; //195\n \n for(int i=0 ; i<3; i++)\n {\n list.add(new Location(thisA,thisB));\n //drawSegment(g,thisA,thisB);\n thisB += 15;\n \n }\n head.setA(thisA);\n head.setB(thisB-15); //to adjust for the extra +15 at the end of the last for loop run through \n }", "public static void adjustScoreIncrement() {\n\t\tint extraPoints = 0;\n\t\tif (!Snake.warpWallOn) {\n\t\t\textraPoints++;\n\t\t}\n\t\tif (Block.blocksOn) {\n\t\t\textraPoints++;\n\t\t}\n\t\tif (Snake.snakeGrowsQuickly) {\n\t\t\textraPoints++;\n\t\t}\n\t\tif (Snake.snakeGrowsReallyQuickly) {\n\t\t\textraPoints+=3;\n\t\t}\n\t\t// increment equals all the bonuses, starting at a minimum of 1. This decreases if user switches to easier modes. Bigness and Fastness are reduced by 1 each here to keep the amount of increase down; it could be pumped up for a really high-scoring game\n\t\tincrement = extraPoints + SnakeGame.getBigness()-1 + SnakeGame.getFastness()-1 + Snake.snakeSize/10 ;\n\t}", "void easy_ride_from_70kmh_down (double min_lift) { \n double start_speed = 70; // kmh\n double pitch = 0;\n double min_drag = 10000.0;\n double step = -10;\n velocity = start_speed;\n for (int count = 0; count < 10000; count++) {\n trace(\"velocity: \" + velocity + \" step: \" + step);\n steady_flight_at_given_speed(5, 0);\n double total_drag = total_drag();\n double foil_lift = foil_lift();\n if (Math.abs(step) < 0.01) break;\n if ((step < 0 && velocity+step <= 0) ||\n // (step > 0 && velocity >= 70) ||\n foil_lift < load ||\n total_drag > min_drag) { // can't pivot because of local max of drag before taking off.... \n velocity -= step;\n step *= 0.5;\n } else {\n velocity += step;\n min_drag = total_drag;\n }\n }\n make_cruising_info(min_lift, min_drag, velocity); \n System.out.println(\"\\nDone!\\n----------------\\n\" + cruising_info);\n }", "@Override\n public void timePassed() {\n moveOneStep();\n }", "@Override\n\tpublic void movePlayerUp() {\n\t\tpacman.changeNextDirection(Direction.up);\n //movePacman();\n\t}", "public void moveUp() {\n\t\tsetPosY(getPosY() - steps);\n\t}" ]
[ "0.83163726", "0.7230362", "0.69811684", "0.663461", "0.6562407", "0.64777374", "0.6464174", "0.64608246", "0.63671064", "0.62443703", "0.6241464", "0.62084526", "0.6191824", "0.6151793", "0.60792005", "0.6029359", "0.6014258", "0.60111636", "0.59921485", "0.5985254", "0.5979212", "0.5971915", "0.5968967", "0.59615844", "0.59505403", "0.5948728", "0.59442514", "0.59385717", "0.590746", "0.58743465", "0.5870058", "0.58626086", "0.5853183", "0.58524674", "0.5849784", "0.5840854", "0.58393675", "0.5825882", "0.58202004", "0.5815512", "0.5791087", "0.5788408", "0.5784688", "0.57782966", "0.5765517", "0.575724", "0.5753166", "0.5750908", "0.57459736", "0.5727412", "0.57084733", "0.56871665", "0.56717396", "0.56666476", "0.5664788", "0.5651495", "0.5647948", "0.562145", "0.56133217", "0.56076366", "0.55992573", "0.5592109", "0.5583592", "0.5583592", "0.5574629", "0.5564432", "0.5557096", "0.55554694", "0.55519897", "0.5527124", "0.5520887", "0.5518683", "0.5512454", "0.5507352", "0.54930687", "0.5492355", "0.5476981", "0.5475226", "0.546798", "0.5466139", "0.5443895", "0.54418635", "0.543568", "0.54328144", "0.54317147", "0.5425505", "0.5423183", "0.5422974", "0.54203546", "0.54081386", "0.5405052", "0.53977835", "0.53975487", "0.53970104", "0.53919536", "0.5388706", "0.5387679", "0.5384189", "0.53819466", "0.5378211" ]
0.7252804
1
The reset function is called when the game is first constructed and every time that the snake dies. It resets the move timer, creates a new snake, creates a new list of mushrooms, and resets the number of strokes to ignore. It also checks to see if the player is out of lives, and if so sets the game over boolean to be true and ends the game.
public void reset(){ if (moveTimer != null) moveTimer.stop(); mySnake = new Snake(MAX_WIDTH/2, MAX_HEIGHT/2, MAX_WIDTH, MAX_HEIGHT); moveSpeed = mySnake.getList().size(); moveTimer = new Timer(1000/moveSpeed, new MoveTimerHelper()); moveTimer.start(); shrooms = new ArrayList<Mushroom>(); ignoreStrokes = 0; if (lives <= 0){ gameOver = true; endGame(); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void resetGame()\n {\n createRooms();\n createItems();\n createCharacters();\n\n int itemsToAdd = getRandomNumber(10,items.size());\n addRoomItems(itemsToAdd);\n winItem = createWinItem();\n\n moves = 1;\n currentRoom = getRoom(STARTROOM); // Player's start location.\n }", "private void reset() {\n\t\tsnake.setStart();\n\n\t\tfruits.clear();\n\t\tscore = fruitsEaten = 0;\n\n\t}", "public void reset() {\n\t\tAssets.playSound(\"tweet\");\n\t\tscore = respawnTimer = spawnCount= 0;\n\t\t\n\t\twalls = new ArrayList<Wall>();\n\t\tcheckPoints = new ArrayList<Wall>();\n\t\tground = new ArrayList<Ground>();\n\n\t\tGround g;\n\t\tPoint[] points = new Point[21];\n\t\tfor (int i = 0; i < 21; i++) {\n\t\t\tpoints[i] = new Point(i * 32, 448);\n\t\t}\n\t\tfor (int j = 0; j < points.length; j++) {\n\t\t\tg = new Ground();\n\t\t\tg.setBounds(new Rectangle(points[j].x, 448, 32, 32));\n\t\t\tground.add(g);\n\t\t}\n\n\t\tsky = new Background(-0.2);\n\t\tsky.setImage(Assets.sprite_sky);\n\t\t\n\t\tmountains = new Background(-0.4);\n\t\tmountains.setImage(Assets.sprite_mountains);\n\t\t\n\t\ttrees = new Background(-1.4);\n\t\ttrees.setImage(Assets.sprite_trees);\n\n\t\tstarted = false;\n\t\tplayer.reset();\n\n\t}", "public void resetGame() {\n frameRate(framerate);\n w = width;\n h = height;\n if (width % pixelSize != 0 || height % pixelSize != 0) {\n throw new IllegalArgumentException();\n }\n\n this.resetGrid();\n this.doRespawn = false;\n this.runGame = true;\n\n spawns = new HashMap();\n spawns.put(\"RIGHT\", new Location(50, (h - topHeight) / 2)); // LEFT SIDE\n spawns.put(\"LEFT\", new Location(w-50, (h - topHeight) / 2)); // RIGHT SIDE\n spawns.put(\"DOWN\", new Location(w/2, topHeight + 50)); // TOP SIDE\n spawns.put(\"UP\", new Location(w/2, h - 50)); // BOTTOM SIDE\n}", "void reset() {\n myManager.reset();\n myScore = 0;\n myGameOver = false;\n myGameTicks = myInitialGameTicks;\n myOldGameTicks = myInitialGameTicks;\n repaint();\n }", "public void reset()\t{\n\t\tthis.snake.clear();\r\n\t\tdir = 1;\r\n\t\tthis.snake.add(new Dimension(2,5));\r\n\t\tthis.snake.add(new Dimension(2,6));\r\n\t\tthis.snake.add(new Dimension(2,7));\r\n\t}", "public void resetGame() {\n\t\thandler.setDown(false);\n\t\thandler.setLeft(false);\n\t\thandler.setRight(false);\n\t\thandler.setUp(false);\n\n\t\tclearOnce = 0;\n\t\thp = 100;\n\t\tfromAnotherScreen = true;\n\t\tsetState(1);\n\t}", "public void reset(){\n newGame();\n removeAll();\n repaint();\n ended = false;\n }", "private void resetGame() {\r\n\t\t\r\n\t\tif(easy.isSelected()) {\r\n\t\t\tGRID_SIZE = 10;\r\n\t\t\tlbPits = 3;\r\n\t\t\tubPits = 5;\t\t\t\r\n\t\t} else if(medium.isSelected()) {\r\n\t\t\tGRID_SIZE = 15;\r\n\t\t\tlbPits = 8;\r\n\t\t\tubPits = 12;\r\n\t\t} else if(hard.isSelected()) {\r\n\t\t\tGRID_SIZE = 20;\r\n\t\t\tlbPits = 35;\r\n\t\t\tubPits = 45;\r\n\t\t} else {\r\n\t\t\tGRID_SIZE = 10;\r\n\t\t\tlbPits = 3;\r\n\t\t\tubPits = 5;\r\n\t\t}\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t\tvisited = new boolean[GRID_SIZE][GRID_SIZE];\r\n\t\tGameMapFactory mf = new GameMapFactory(new Obstacle[GRID_SIZE][GRID_SIZE], new Random(), GRID_SIZE, lbPits, ubPits);\r\n\t\tmf.setupMap();\r\n\t\tgame.resetGame(GRID_SIZE, mf.getGameMap(), visited, mf.getHunterPosition());\r\n\t\t\r\n\t}", "public void reset() { \r\n myGameOver = false; \r\n myGamePaused = false; \r\n }", "public void reset(int width, int height, int mines) {\n boardWidth = width;\n boardHeight = height;\n this.mines = mines;\n safeRemaining = boardWidth * boardHeight;\n minesRemaining = 0;\n\n pixelWidth = boardWidth * 30;\n pixelHeight = boardHeight * 30;\n\n pixelTopX = (FRAME_WIDTH - pixelWidth) / 2;\n pixelTopY = (FRAME_HEIGHT - pixelHeight - 50) / 2 + 50;\n\n mineLocation = new boolean[width * height];\n minefield = new Grid[height][width];\n surroundingMines = new int[width * height];\n while (minesRemaining < mines) {\n int location = r.nextInt(width * height);\n if (!mineLocation[location]) {\n mineLocation[location] = true;\n minesRemaining++;\n safeRemaining--;\n addSurrounding(location);\n }\n\n }\n\n playing = true;\n\n timer.start();\n timeElapsed = 0;\n\n repaint();\n\n mineLabel.setVisible(true);\n timeLabel.setVisible(true);\n }", "void resetGame() {\r\n if (GameInfo.getInstance().isWin()) {\r\n GameInfo.getInstance().resetDots();\r\n MazeMap.getInstance().init();\r\n GameInfo.getInstance().resetFruitDisappearTime();\r\n MazeMap.getInstance().updateMaze(GameInfo.getInstance().getMode());\r\n }\r\n for (PropertyChangeListener pcl : pcs.getPropertyChangeListeners(Constants.PACMAN)) {\r\n pcs.removePropertyChangeListener(Constants.PACMAN, pcl);\r\n }\r\n for (PropertyChangeListener pcl : pcs.getPropertyChangeListeners(Constants.GHOSTS)) {\r\n pcs.removePropertyChangeListener(Constants.GHOSTS, pcl);\r\n }\r\n PacMan pacMan = initPacMan();\r\n initGhosts(pacMan);\r\n }", "public void resetGame(){\n initBoard(ROWS, COLS, rand);\n }", "public void resetBoard() {\n\t\tplayerTurn = 1;\n\t\tgameStart = true;\n\t\tdispose();\n\t\tplayerMoves.clear();\n\t\tnew GameBoard();\n\t}", "@Override\n public void reset() {\n mMoveButtonActive = true;\n mMoveButtonPressed = false;\n mFireButtonPressed = false;\n droidHitPoints = 0;\n totalKillCollectPoints = 0;\n totalCollectNum = 0;\n// mCoinCount = 0;\n// mRubyCount = 0;\n mTotalKillCollectPointsDigits[0] = 0;\n mTotalKillCollectPointsDigits[1] = -1;\n mTotalCollectNumDigits[0] = 0;\n mTotalCollectNumDigits[1] = -1;\n totalKillCollectPointsDigitsChanged = true;\n totalCollectNumDigitsChanged = true;\n// mCoinDigits[0] = 0;\n// mCoinDigits[1] = -1;\n// mRubyDigits[0] = 0;\n// mRubyDigits[1] = -1;\n// mCoinDigitsChanged = true;\n// mRubyDigitsChanged = true;\n \n levelIntro = false;\n// mLevelIntro = false;\n \n mFPS = 0;\n mFPSDigits[0] = 0;\n mFPSDigits[1] = -1;\n mFPSDigitsChanged = true;\n mShowFPS = false;\n for (int x = 0; x < mDigitDrawables.length; x++) {\n mDigitDrawables[x] = null;\n }\n// mXDrawable = null;\n mFadePendingEventType = GameFlowEvent.EVENT_INVALID;\n mFadePendingEventIndex = 0;\n }", "private void resetBoard() {\n\t\tGameScores.ResetScores();\n\t\tgameTime = SystemClock.elapsedRealtime();\n\t\t\n\t}", "private void resetGame() {\n rockList.clear();\n\n initializeGame();\n }", "@Override\n public void reset(MiniGame game) {\n }", "private void resetAfterGame() {\n }", "@Override\n public void reset(MiniGame game)\n {\n // PUT ALL THE TILES IN ONE PLACE AND MAKE THEM VISIBLE\n moveAllTilesToStack();\n for (MahjongSolitaireTile tile : stackTiles)\n {\n tile.setX(TILE_STACK_X);\n tile.setY(TILE_STACK_Y);\n tile.setState(VISIBLE_STATE);\n } \n\n // RANDOMLY ORDER THEM\n Collections.shuffle(stackTiles);\n \n // START THE CLOCK\n startTime = new GregorianCalendar();\n \n // NOW LET'S REMOVE THEM FROM THE STACK\n // AND PUT THE TILES IN THE GRID \n for (int i = 0; i < gridColumns; i++)\n {\n for (int j = 0; j < gridRows; j++)\n {\n for (int k = 0; k < levelGrid[i][j]; k++)\n {\n // TAKE THE TILE OUT OF THE STACK\n MahjongSolitaireTile tile = stackTiles.remove(stackTiles.size()-1);\n \n // PUT IT IN THE GRID\n tileGrid[i][j].add(tile);\n tile.setGridCell(i, j);\n \n // WE'LL ANIMATE IT GOING TO THE GRID, SO FIGURE\n // OUT WHERE IT'S GOING AND GET IT MOVING\n float x = calculateTileXInGrid(i, k);\n float y = calculateTileYInGrid(j, k);\n tile.setTarget(x, y);\n tile.startMovingToTarget(MAX_TILE_VELOCITY);\n movingTiles.add(tile);\n }\n }\n } \n // AND START ALL UPDATES\n beginGame();\n \n // CLEAR ANY WIN OR LOSS DISPLAY\n miniGame.getGUIDialogs().get(WIN_DIALOG_TYPE).setState(INVISIBLE_STATE);\n miniGame.getGUIDialogs().get(LOSS_DIALOG_TYPE).setState(INVISIBLE_STATE);\n miniGame.getGUIDialogs().get(STATS_DIALOG_TYPE).setState(INVISIBLE_STATE);\n }", "public void resetGame()\r\n\t{\r\n\t\tthis.inProgress = false;\r\n\t\tthis.round = 0;\r\n\t\tthis.phase = 0;\r\n\t\tthis.prices = Share.generate();\r\n\t\tint i = 0;\r\n\t\twhile(i < this.prices.size())\r\n\t\t{\r\n\t\t\tthis.prices.get(i).addShares(Config.StartingStockPrice);\r\n\t\t\t++i;\r\n\t\t}\r\n\t\tint p = 0;\r\n\t\twhile(p < Config.PlayerLimit)\r\n\t\t{\r\n\t\t\tif(this.players[p] != null)\r\n\t\t\t{\r\n\t\t\t\tthis.players[p].reset();\r\n\t\t\t}\r\n\t\t\t++p;\r\n\t\t}\r\n\t\tthis.deck = Card.createDeck();\r\n\t\tthis.onTable = new LinkedList<>();\r\n\t\tCollections.shuffle(this.deck);\r\n\t\tthis.dealToTable();\r\n\t}", "public void reset() {\n playing = true;\n won = false;\n startGame();\n\n // Make sure that this component has the keyboard focus\n requestFocusInWindow();\n }", "@Override\n public void reset() {\n updateDice(1, 1);\n playerCurrentScore = 0;\n playerScore = 0;\n updateScore();\n notifyPlayer(\"\");\n game.init();\n }", "public void resetgamestate() {\n \tthis.gold = STARTING_GOLD;\n \tthis.crew = STARTING_FOOD;\n \tthis.points = 0;\n \tthis.masterVolume = 0.1f;\n this.soundVolume = 0.5f;\n this.musicVolume = 0.5f;\n \n this.ComputerScience = new Department(COMP_SCI_WEPS.getWeaponList(), COMP_SCI_UPGRADES.getRoomUpgradeList(), this);\n this.LawAndManagement = new Department(LMB_WEPS.getWeaponList(), LMB_UPGRADES.getRoomUpgradeList(), this);\n this.Physics = new Department(PHYS_WEPS.getWeaponList(), PHYS_UPGRADES.getRoomUpgradeList(), this);\n \n this.playerShip = STARTER_SHIP.getShip();\n this.playerShip.setBaseHullHP(700);\n this.playerShip.repairHull(700);\n this.combatPlayer = new CombatPlayer(playerShip);\n }", "public void reset()\n\t{\n\t\t\n\t\tif (lifeCount > 1)\n\t\t{\n\t\t\tthis.setCollisionOn(false);\n\t\t\tthis.setEingabe(false);\n\t\t\tthis.reduceLifeCount();\n\t\t\timg.setRotation(0);\n\t\t\tthis.posX = startPosX;\n\t\t\tthis.setPosY(startPosY + 105);\n\t\t\tthis.spdX = startSpdX;\n\t\t\tthis.setSpdY(-60);\n\t\t\tcollisionShape.setCenterX(startPosX);\n\t\t\tcollisionShape.setCenterY(startPosY);\n\t\t\tsetRupeesInBag(0);\n\t\t}\n\t\telse\n\t\t{\n\t\t\t/*\n\t\t\t * When Gameover\n\t\t\t */\n\t\t\t\n\t\t\tthis.posX = startPosX;\n\t\t\tthis.setPosY(startPosY);\n\t\t\tcollisionShape.setCenterX(startPosX);\n\t\t\tcollisionShape.setCenterY(startPosY);\n\t\t\tthis.reduceLifeCount();\n\t\t}\n\t}", "public void gameReset() {\r\n\t\tfor (int n = 0; n < 6; n++) {\r\n\t\t\tfor (int m = 0; m < 7; m++) {\r\n\t\t\t\tsquares[n][m].setText(\"\");\r\n\t\t\t\tsquares[n][m].setBackground(Color.BLUE);\r\n\t\t\t\tsquares[n][m].setEnabled(true);\r\n\t\t\t}\r\n\t\t}\r\n\t\tfor (int a = 0; a < 7; a++) {\r\n\t\t\tbuttons[a].setEnabled(true);\r\n\t\t\tbuttons[a].setBackground(Color.BLACK);\r\n\r\n\t\t}\r\n\t\tif (gameType == 2) {\r\n\t\t\tboard();\r\n\t\t\tfor (int i = 0; i < 7; i++) {\r\n\t\t\t\tindex[i] = 6;\r\n\t\t\t}\r\n\r\n\t\t} else if (gameType == 1) {\r\n\t\t\tcompAI.setUpArray(ROW, COL);\r\n\t\t}\r\n\t}", "private void resetGame(){\n\n }", "@Override\n public void reset() {\n emptyBoard();\n drawNewTiles();\n \n moves = Assistant.WordPlay.boardFindall(board, rack, masterDictionary());\n }", "private void reset() // reset the game so another game can be played.\n\t{\n\t\tenableControls(); // enable the controls again..\n\n\t\tfor (MutablePocket thisMutPocket: playerPockets) // Reset the pockets to their initial values.\n\t\t{\n\t\t\tthisMutPocket.setDiamondCount(3);\n\t\t}\n\n\t\tfor(ImmutablePocket thisImmPocket: goalPockets)\n\t\t{\n\t\t\tthisImmPocket.setDiamondCount(0);\n\t\t}\n\n\t\tfor(Player thisPlayer: players) // Same for the player..\n\t\t{\n\t\t\tthisPlayer.resetPlayer();\n\t\t}\n\n\t\tupdatePlayerList(); // Update the player list.\n\n\t}", "public void reset() {\n // corresponding function called in the Board object to reset piece\n // positions\n board.reset();\n // internal logic reset\n lastColor = true;\n gameOver = false;\n opponentSet = false;\n }", "public void reset ()\n\t{\n\t\t//The PaperAirplane and the walls (both types) use their reconstruct ()\n\t\t//method to set themselves back to their starting points.\n\t\tp.reconstruct ();\n\t\tfor (int i = 0; i < w.length; i++)\n\t\t\tw[i].reconstruct ();\n\t\t\n\t\tfor (int i = 0; i < sW.length; i++)\n\t\t\tsW[i].reconstruct ();\n\t\t\t\n\t\t//the time is reset using the resetTime () method from the Timer class.\n\t\ttime.resetTime ();\n\t\t\n\t\t//the score is reset using the reconstruct method from the Score class.\n\t\tscore.reconstruct ();\n\t\t\n\t\t//The following variables are set back to their original values set in\n\t\t//the driver class.\n\t\ttimePassed = 0;\t\n\t\tnumClicks = 0;\n\t\teventFrame = 0;\n\t\tlevel = 1;\n\t\txClouds1 = 0;\n\t\txClouds2 = -500;\n\t\tyBkg1 = 0;\n\t\tyBkg2 = 600;\t\t\n\t}", "void reset() {\n if (myGrass != null) {\n myGrass.reset();\n }\n if (myCowboy != null) {\n myCowboy.reset();\n }\n if (myLeftTumbleweeds != null) {\n for (int i = 0; i < myLeftTumbleweeds.length; i++) {\n myLeftTumbleweeds[i].reset();\n }\n }\n if (myRightTumbleweeds != null) {\n for (int i = 0; i < myRightTumbleweeds.length; i++) {\n myRightTumbleweeds[i].reset();\n }\n }\n myLeft = false;\n myCurrentLeftX = Grass.CYCLE * Grass.TILE_WIDTH;\n }", "private void resetGame() {\n \tcanvas.reset();\n \tguessesLeft = 8;\n \tcurrentWord = \"\";\n \t\n \tguesses = \"\";\n \tword = pickWord();\n \tlist = new boolean[word.length()];\n \t\n \tfor (int i = 0; i < word.length(); i++) {\n \t\tcurrentWord += \"-\";\n \t}\n }", "public void resetGameRoom() {\n gameCounter++;\n score = MAX_SCORE / 2;\n activePlayers = 0;\n Arrays.fill(players, null);\n }", "public final void reset() {\n\t\tscore = 0;\n\t\tlives = 10;\n\t\tshields = 3;\n\t}", "public void reset()\n {\n playersPiece = -1;\n king = false;\n empty = true;\n setTileColor(-1);\n }", "public void reset() {\n // White Pieces\n placePiece(new Rook(Player.White), new Position(\"a1\"));\n placePiece(new Knight(Player.White), new Position(\"b1\"));\n placePiece(new Bishop(Player.White), new Position(\"c1\"));\n placePiece(new Queen(Player.White), new Position(\"d1\"));\n placePiece(new King(Player.White), new Position(\"e1\"));\n placePiece(new Bishop(Player.White), new Position(\"f1\"));\n placePiece(new Knight(Player.White), new Position(\"g1\"));\n placePiece(new Rook(Player.White), new Position(\"h1\"));\n placePiece(new Pawn(Player.White), new Position(\"a2\"));\n placePiece(new Pawn(Player.White), new Position(\"b2\"));\n placePiece(new Pawn(Player.White), new Position(\"c2\"));\n placePiece(new Pawn(Player.White), new Position(\"d2\"));\n placePiece(new Pawn(Player.White), new Position(\"e2\"));\n placePiece(new Pawn(Player.White), new Position(\"f2\"));\n placePiece(new Pawn(Player.White), new Position(\"g2\"));\n placePiece(new Pawn(Player.White), new Position(\"h2\"));\n\n // Black Pieces\n placePiece(new Rook(Player.Black), new Position(\"a8\"));\n placePiece(new Knight(Player.Black), new Position(\"b8\"));\n placePiece(new Bishop(Player.Black), new Position(\"c8\"));\n placePiece(new Queen(Player.Black), new Position(\"d8\"));\n placePiece(new King(Player.Black), new Position(\"e8\"));\n placePiece(new Bishop(Player.Black), new Position(\"f8\"));\n placePiece(new Knight(Player.Black), new Position(\"g8\"));\n placePiece(new Rook(Player.Black), new Position(\"h8\"));\n placePiece(new Pawn(Player.Black), new Position(\"a7\"));\n placePiece(new Pawn(Player.Black), new Position(\"b7\"));\n placePiece(new Pawn(Player.Black), new Position(\"c7\"));\n placePiece(new Pawn(Player.Black), new Position(\"d7\"));\n placePiece(new Pawn(Player.Black), new Position(\"e7\"));\n placePiece(new Pawn(Player.Black), new Position(\"f7\"));\n placePiece(new Pawn(Player.Black), new Position(\"g7\"));\n placePiece(new Pawn(Player.Black), new Position(\"h7\"));\n }", "public void reset() {\n\t\tfor (int i = 0; i<DIVISIONS; i++){\n\t\t\tfor (int j = 0; j<DIVISIONS; j++){\n\t\t\t\tgameArray[i][j] = 0;\n\t\t\t}\n\t\t}\n\t\tgameWon = false;\n\t\twinningPlayer = NEITHER;\n\t\tgameTie = false;\n\t\tcurrentPlayer = USER;\n\t}", "public void resetGame() { \n\t\tInvokeMessage im = new InvokeMessage();\n\t\tim.setMethodName(\"doResetGame\");\n\t\tSheepPhysicsState sps = getSps();\n\t\tnew InvokeCallable(im, sps);\n\t}", "public void reset() {\n\t\tFile file = new File(\"src/LevelData.txt\");\n\t\tpaddle = new Paddle(COURT_WIDTH, COURT_HEIGHT, Color.BLACK);\n\t\tbricks = new Bricks(COURT_WIDTH, COURT_HEIGHT, file);\n\t\tball = new Ball(COURT_WIDTH, COURT_HEIGHT, 5, Color.BLACK);\n\n\t\tplaying = true;\n\t\tcurrScoreVal = 0;\n\t\tlivesLeft = 3;\n\t\tstatus.setText(\"Running...\");\n\t\tyourScore.setText(\"Your Score: 0\");\n\t\tlives.setText(\" Lives: \" + livesLeft.toString() + \"| \");\n\n\t\t// Making sure that this component has the keyboard focus\n\t\trequestFocusInWindow();\n\t}", "public void reset() {\n hasWinner = false;\n firstTurn = true;\n for (int row = 0; row < mRowsCount; row++) {\n for (int col = 0; col < mColsCount; col++) {\n mCells[row][col] = new Cell();\n }\n }\n }", "public void reset()\r\n {\r\n gameBoard.reset();\r\n fillBombs();\r\n fillBoard();\r\n scoreBoard.reset();\r\n }", "private void reset() {\n\n try {\n if (playerOne.win() || playerTwo.win()) {\n Stage stage = application.getPrimaryStage();\n stage.setScene(new EndScene(application, playerOne, playerTwo));\n } else {\n ball.setLayoutX(WIDTH / 2 - LAYOUT / 2);\n ball.setLayoutY(HEIGHT / 2 - LAYOUT / 2);\n\n ball.randomiseDirection(new Random().nextInt(4));\n ball.resetMovementSpeed();\n\n playerOnePaddle.setLayoutY(HEIGHT / 2 - playerOnePaddle.getHeight() / 2);\n playerTwoPaddle.setLayoutY(playerOnePaddle.getLayoutY());\n\n countdown = 50;\n }\n } catch (Exception ex) {\n Logger.getLogger(GameScene.class.getName()).log(Level.SEVERE, null, ex);\n }\n }", "@Override\r\n\tpublic void reset() {\r\n\t\tfor(int i = 0; i < rows_size; i++) {\r\n\t\t\tfor(int j = 0; j < columns_size; j++)\r\n\t\t\t\tgame[i][j].Clear();\r\n\t\t}\r\n\t\tcomputerTurn();\r\n\t\tcomputerTurn();\r\n\t\tfreeCells = rows_size*columns_size - 2;\r\n\t\ttakenCells = 2;\r\n\t}", "public void reset() {\n\t\t// SimpleTools.processTrackingOutput(\"Resetting TicTacToe.\");\n\t\tfor (int i = 0; i < checkerboard.length; i++) {\n\t\t\tfor (int j = 0; j < checkerboard[0].length; j++) {\n\t\t\t\tcheckerboard[i][j] = EMPTY;\n\t\t\t} // Of for j\n\t\t} // Of for i\n\t\tcurrentState = 0;\n\t\tcurrentRouteLength = 1;\n\n\t\t// White first\n\t\tcurrentPlayer = WHITE;\n\t}", "private void resetGame() {\n for (int row = 0; row < this.boardSize; row++) {\n for (int col = 0; col < this.boardSize; col++) {\n this.board[row][col] = ' ';\n }\n }\n }", "public void resetGame() {\n\t\tfor (int i = 0; i < 4; i++) {\n\t\t\tfor (int j = 0; j < 4; j++) {\n\t\t\t\tboard[i][j] = 0;\n\t\t\t\tgetChildren().remove(renders[i][j]);\n\t\t\t\trenders[i][j] = null;\n\t\t\t}\n\t\t}\n\t}", "public void resetBoard(){\n totalmoves = 0;\n this.board = new Cell[3][3];\n //fill the board with \"-\"\n for (int i = 0; i < 3; i++) {\n for (int j = 0; j < 3; j++) {\n this.board[i][j]=new Cell(new Coordinates(i,j), \"-\");\n }\n }\n }", "public final void reset(){\n\t\tthis.undoStack = new GameStateStack();\n\t\tthis.redoStack = new GameStateStack();\n\t\t\n\t\tthis.currentBoard = currentRules.createBoard(currentSize);\n\t\tthis.currentRules.initBoard(currentBoard, currentInitCells, currentRandom);\n\t}", "public void resetGame(){\r\n\t\tSystem.out.println(\"Reset game min:\"+minimum+\" max:\"+maximum);\r\n\t\t//reset the target, set guesses to 1, and newGame flag to true\r\n\t\ttarget.setRandom(minimum, maximum, \"reset game\");\r\n\t\tthis.msg.setMessage(\"\");\r\n\t\tthis.guesses.setValue(1);\r\n\t\t\r\n\t}", "public static void resetGame() {\r\n\t\t//Set all variables to their default values.\r\n\t\tMain.isGameStarted = false;\r\n\t\tMain.isSetupDone = false;\r\n\t\tMain.isGameWon = false;\r\n\t\tMain.isGameLost = false;\r\n\t\tMain.isThreeHanded = false;\r\n\t\tMain.isFourHandedSingle = false;\r\n\t\tMain.isFourHandedTeams = false;\r\n\t\tMain.doBidding = false;\r\n\t\tMain.doScoring = false;\r\n\t\tMain.dealerIsPlayer1 = false;\r\n\t\tMain.dealerIsPlayer2 = false;\r\n\t\tMain.dealerIsPlayer3 = false;\r\n\t\tMain.dealerIsPlayer4 = false;\r\n\t\tMain.isNilAllowed = true;\r\n\t\tMain.isDoubleNilAllowed = true;\r\n\t\tMain.nilBidTeam1 = false;\r\n\t\tMain.nilBidTeam2 = false;\r\n\t\tMain.doubleIsAllowedPlayer1 = false;\r\n\t\tMain.doubleIsAllowedPlayer2 = false;\r\n\t\tMain.doubleIsAllowedPlayer3 = false;\r\n\t\tMain.doubleIsAllowedPlayer4 = false;\r\n\t\tMain.doubleIsAllowedTeam1 = false;\r\n\t\tMain.doubleIsAllowedTeam2 = false;\r\n\r\n\t\t\r\n\t\tMain.player1 = \"\";\r\n\t\tMain.player2 = \"\";\r\n\t\tMain.player3 = \"\";\r\n\t\tMain.player4 = \"\";\r\n\t\tMain.team1 = \"\";\r\n\t\tMain.team2 = \"\";\r\n\t\tMain.player1Bid = \"\";\r\n\t\tMain.player2Bid = \"\";\r\n\t\tMain.player3Bid = \"\";\r\n\t\tMain.player4Bid = \"\";\r\n\t\tMain.player1TricksTaken = \"\";\r\n\t\tMain.player2TricksTaken = \"\";\r\n\t\tMain.player3TricksTaken = \"\";\r\n\t\tMain.player4TricksTaken = \"\";\r\n\t\tMain.curDealer = \"\";\r\n\t\tMain.startDealer = \"\";\r\n\t\tMain.bagValue = \"1\";\r\n\t\tMain.nilValue = \"50\";\r\n\t\tMain.doubleNilValue = \"200\";\r\n\t\t\r\n\t\tMain.round = 0;\r\n\t\tMain.player1TimesSet = 0;\r\n\t\tMain.player2TimesSet = 0;\r\n\t\tMain.player3TimesSet = 0;\r\n\t\tMain.player4TimesSet = 0;\r\n\t\tMain.player1Score = \"0\";\r\n\t\tMain.player2Score = \"0\";\r\n\t\tMain.player3Score = \"0\";\r\n\t\tMain.player4Score = \"0\";\r\n\t\tMain.team1Score = \"0\";\r\n\t\tMain.team2Score = \"0\";\r\n\t\t\r\n\t\tGameSetup.gameTypeHidden.setState(true);\r\n\t\tGameSetup.threeHanded.setEnabled(true);\r\n\t\tGameSetup.fourHandedSingle.setEnabled(true);\r\n\t\tGameSetup.fourHandedTeams.setEnabled(true);\r\n\t\tGameSetup.dealerHidden.setState(true);\r\n\t\tGameSetup.choiceBoxPlayer1.setEnabled(true);\r\n\t\tGameSetup.choiceBoxPlayer2.setEnabled(true);\r\n\t\tGameSetup.choiceBoxPlayer3.setEnabled(true);\r\n\t\tGameSetup.choiceBoxPlayer4.setEnabled(true);\r\n\t\tGameSetup.hasPlayerChanged = false;\r\n\t\t\r\n\t\tEditGame.playerChanged = false;\r\n\t\tEditGame.scoreChanged = false;\r\n\t\tEditGame.roundToEdit = 0;\r\n\t\tEditGame.editedRound = 0;\r\n\t}", "public void resetGame() {\r\n\r\n\t\tplayerScore = 0;\r\n\t\tframe.setVisible(false);\r\n\t\tgame = new Game();\r\n\r\n\t}", "public void resetHand()\r\n\t{\r\n\t\thandCount = 0;\r\n\t\tstand = false;\r\n\t}", "@Override\n public void resetGame() {\n\n }", "public void reset(){\n\t\tfrogReposition();\n\t\tlives = 5;\n\t\tend = 0;\n\t}", "public void reset() {\n state = new boolean[gridSize - 1][gridSize - 1];\n /* Clear state and pellets arrays */\n for (int i = 0; i < state.length; i++) {\n for (int j = 0; j < state.length; j++) {\n state[i][j] = true;\n }\n }\n\n for (int i = 0; i < state.length; i++) {\n for (int j = 0; j < state.length; j++) {\n if (state[i][j])\n pellets[i][j] = true;\n }\n }\n\n //reset traversed\n for (int i = 0; i < traversedTiles.length; i++) {\n for (int j = 0; j < traversedTiles.length; j++) {\n traversedTiles[i][j] = false;\n }\n }\n\n// plannedPoint = new Point();\n plannedPath = new ArrayList<>();\n player.resetPlayer(200, 300);\n ghosts.get(0).resetGhost(180, 180);\n ghosts.get(1).resetGhost(200, 180);\n ghosts.get(2).resetGhost(220, 180);\n updateStateAccordingToMap();\n\n //Resetting total pellet counter\n totalPellets = 0;\n pellets[9][7] = false;\n pellets[8][8] = false;\n pellets[9][8] = false;\n pellets[10][8] = false;\n\n for (int i = 0; i < pellets.length; i++)\n for (int j = 0; j < pellets.length; j++)\n if (pellets[i][j])\n totalPellets++;\n\n System.out.println(\"Total pellets on the map: \" + totalPellets);\n }", "public void resetGame(){\n\t\tlabyrinth.reset();\n\t\tlabyrinth = Labyrinth.getInstance();\n\t\tplayer.setX(0);\n\t\tplayer.setY(0);\n\n\t\tcandies = new HashMap();\n\t\tenemies = new HashMap();\n\t\tbuttons = new HashMap();\n\n\t\tint coordX = ThreadLocalRandom.current().nextInt(0, 16);\n\t\tint coordY = ThreadLocalRandom.current().nextInt(0, 16);\n\t\tdoor.setX(coordX);\n\t\tdoor.setY(coordY);\n\n\t\tgenerateCandies();\n\t\tgenerateEnemies();\n\n\t}", "private void ResetGame(){\n this.deck = new Deck();\n humanPlayer.getHand().clear();\n humanPlayer.setWager(0);\n dealer.getHand().clear();\n }", "public void resetRenderer() {\n\n\t\tanimationComplete = true;\n\t\tif (pieceMove != null) {\n\t\t\tpieceMove.setPiece(null);\n\t\t\tpieceMove.setSquares(-99);\n\t\t}\n\t\tpieceMove = null;\n\t\tmoveFinalIndex = -999;\n\t\tmoveTempIndex = -999;\n\t\tmoveCount = -999;\n\t\tmoveCountHomeSq = 0;\n\t\trestMovedToStart = false;\n\t\tmovedToRest = false;\n\t\thomeSqMovedToHome = false;\n\n\t\tmoveToRestSq = null;\n\t\tmoveToHome = null;\n\n\t\tdiceList = new ArrayList<>();\n\t\tfor (int d = 0; d < selectedPlayer.getRuleEngine().dicePerGame(); d++) {\n\t\t\tDice newDice = createDiceInstance();\n\t\t\tnewDice.setShake(true);\n\t\t\tdiceList.add(newDice);\n\t\t}\n\n\t}", "public void resetGame() {\r\n\t\tfor(Player p : players) {\r\n\t\t\tp.reset();\r\n\t\t}\r\n\t\tstate.reset();\r\n\t}", "final void reset() {\r\n\t\t\tsp = 0;\r\n\t\t\thp = 0;\r\n\t\t}", "public void resetMove() {\n\t\tthis.moveMade = false;\n\t}", "private void reset(){\r\n lives = 6;\r\n playerWins = false;\r\n word = randWord();\r\n wordArray = word.toCharArray();\r\n hidden = hideTheWord(word.length());\r\n guesses.clear();\r\n }", "public void initGame() {\n\t\tfor (int i = 0; i < gameSize; i++) {\n\t\t\tfor (int j = 0; j < gameSize; j++) {\n\t\t\t\tgrid[i][j] = new GridNode(GridNode.NodeType.EMPTY);\n\t\t\t\tgridLocker[i][j] = -1;\n\t\t\t}\n\t\t}\n\n\t\t// Snakes are placed into start positions here\n\t\tfor (int i = 0; i < snakesList.size(); i++) {\n\t\t\tint x = (int) (Math.random() * 1000) % gameSize;\n\t\t\tint y = (int) (Math.random() * 1000) % gameSize;\n\t\t\tif (grid[x][y].nodeType == GridNode.NodeType.EMPTY) {\n\t\t\t\tSnake currentSnake = snakesList.get(i);\n\t\t\t\tgrid[x][y].SnakeID = currentSnake.snakeID;\n\t\t\t\tcurrentSnake.initalizeSnakeLocation(x, y, gameSize);\n\t\t\t\tgrid[x][y].nodeType = GridNode.NodeType.SNAKEHEAD;\n\t\t\t} else {\n\t\t\t\t// Every snake has to be allocated a spot so go back to the\n\t\t\t\t// index\n\t\t\t\t// of the snake to add and try again\n\t\t\t\ti--;\n\t\t\t}\n\t\t}\n\n\t\t// Places some snake food randomly somewhere\n\t\tfor(int i = 0; i <4; i++) {\n\t\t\tplaceBonus();\n\t\t}\n\t}", "public static void reset() {\n start = new Date().getTime();\n killed = 0;\n time = 0;\n }", "public void reset() {\n\t board = new int[]{1, 1, 1, 1, 0, 0, 0, 0, 0, 1, 1, 1, 0, 0, 0, 0, 0, 0, 1, 1, 0, 0,\n 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,\n 0, 0, 0, 0, 0, 0, 0, 0, 0, 2, 0, 0, 0, 0, 0, 0, 0, 2, 2, 0, 0, 0,\n 0, 0, 0, 2, 2, 2, 0, 0, 0, 0, 0, 2, 2, 2, 2};\n\t currentPlayer = 1;\n\t turnCount = 0;\n\t for (int i=0; i<81; i++) {\n\t \n\t\t hash ^= rand[3*i+board[i]]; //row-major order\n\t \n\t }\n }", "public void resetGame(){\n\t\tPlayer tempPlayer = new Player();\n\t\tui.setPlayer(tempPlayer);\n\t\tui.resetCards();\n\t}", "public void reset(){\n\n boxPositions = new HashMap<>();\n boxWeights = new ArrayList<Stack<Box>>();\n for(int i = 0; i < 16; i++) {\n boxPositions.put(i*40, i);\n }\n for ( int i = 0; i < 16; i++){\n boxWeights.add( new Stack< Box >());\n }\n boxGen = new BoxGenerator();\n\n timeCounter = 100;\n mc.resetLazarusPosition();\n\n }", "private void resetRoundVars() {\n\t\tmAttackerDelay = 0;\n\t\tmRoundTimeElapsed = 0;\n\t\tmRoundScore = 0f;\n\t\tmKnightSpawnChance = 0.35f + (0.1f * (mRoundNumber - 1)); // +10% chance per round, starting at 35%\n\t\tif(mKnightSpawnChance > 0.65f) mKnightSpawnChance = 0.65f; // Hard cap at 65%\n\t\tmRoundMaxAttackers = 5 + mRoundNumber * 2;\n\t\tmRoundMaxTime = 50 + (mRoundNumber * 1.5f);\n\t\tmRoundSaved = false;\n\t\tmRoundText = \"Round: \" + mRoundNumber;\n\t\tmSpawnTimeMin = mSpawnTimeMin - (mRoundNumber * 5);\n\t\tmSpawnTimeMax = mSpawnTimeMax - (mRoundNumber * 5);\n\n\t\t// Kill all living attackers\n\t\tfor(int i = 0; i < ATTACKER_ARRAY_SIZE; i++) {\n\t\t\tmAttackers[i].kill();\n\t\t}\n\t}", "private void resetGame() {\n game.resetGame();\n round_score = 0;\n\n // Reset values in views\n player_tot_view.setText(String.valueOf(game.getPlayer_total()));\n bank_tot_view.setText(String.valueOf(game.getBank_total()));\n round_score_view.setText(String.valueOf(round_score));\n String begin_label = \"Round \" + game.getRound() + \" - Player's Turn\";\n round_label.setText(begin_label);\n\n getTargetScore();\n }", "public void reset() {\r\n\t\tplayAgain = false;\r\n\t\tmainMenu = false;\r\n\t\tachievement = 0;\r\n\t}", "public void reset() {\n\t\tfor (int x = 0; x < worldWidth; x++) {\n\t\t\tfor (int y = 0; y < worldHeight; y++) {\n\t\t\t\ttileArr[x][y].restart();\n\t\t\t}\n\t\t}\n\t\tlost = false;\n\t\tisFinished = false;\n\t\tplaceBombs();\n\t\tsetNumbers();\n\t}", "public void ResetPlayer() {\n\t\tfor (int i = 0; i < moveOrder.length; i++) {\n\t\t\tmoves.add(moveOrder[i]);\n\t\t}\n\t\tthis.X = 0;\n\t\tthis.Y = 0;\n\t\tthis.movesMade = 0;\n\t\tthis.face = 1;\n\t}", "public void resetMoveCount() {\r\n\t\tmoveCount = 0;\r\n\t}", "public void reset() {\n\tthis.pinguins = new ArrayList<>();\n\tthis.pinguinCourant = null;\n\tthis.pret = false;\n\tthis.scoreGlacons = 0;\n\tthis.scorePoissons = 0;\n }", "public GameChart resetGame();", "public void ResetGame(){\n handComputer.clear();\n handHuman.clear();\n deck.clear();\n\n InitializeDeck();\n InitializeComputerHand();\n InitializeHumanHand();\n\n topCard = deck.get(0);\n }", "public void reset()\n {\n mine = false;\n revealed = false;\n flagged = false;\n repaint();\n }", "private void resetGame() {\r\n SCORE = 0;\r\n defaultState();\r\n System.arraycopy(WordCollection.WORD, 0, tempWord, 0, WordCollection.WORD.length);\r\n }", "private void softReset() {\n // variables\n lapMap.clear();\n // ui\n sessionTView.setText(\"\");\n positionTView.setText(\"-\");\n currentLapTView.setText(\"--:--:---\");\n lastLapTView.setText(\"--:--:---\");\n bestLapTView.setText(\"--:--:---\");\n currentLapNumberTView.setText(\"-\");\n gapTView.setText(\" -.---\");\n fastestDriver = Float.MAX_VALUE;\n fastestDriverName = null;\n fastestDriverTView.setText(\"--:--:---\");\n fastestDriverNameTView.setText(\"Fastest lap\");\n Log.d(TAG, \"SOFT Reset: between game states\");\n }", "public void resetTheGame(){\n\t\tfjCount = 0;\n\t\tquestionAnsweredCount = 0;\n\t\tfor(int i = 0 ; i< 5; i++){\n\t\t\tfor(int j = 0 ; j < 5 ; j++){\n\t\t\t\tboard[i][j].reset();\n\t\t\t}\n\t\t}\n\t\tfor(int i = 0 ; i < teamNum; i ++){\n\t\t\tteams[i].reset();\n\t\t\tbets[i] = 0; \n\t\t}\n\t}", "public void reset() {\n\t\tscore = 0;\n\t}", "public void reset() {\r\n \ts.set(Constants.FRAME_WIDTH/2, Constants.FRAME_HEIGHT/2);\r\n \tshootdelay=500;\r\n \tbulletlife = 20;\r\n }", "public void resetMove(Move move) {\n board[move.x * LENGTH + move.y] = Player.None;\n numMoves--;\n }", "public SnakeGame() {\n\t\t// game initialy not running\n\t\tgameRunning = false; \n\t\t// init our GUI\n\t\tinitGUI();\n\t}", "public void draw() {\n\t\tbackground(51);\n\t\tfill(35);\n\t\trect(0, 0, 599, 40);\n\t\tif (this.buttonOver()) {\n\t\t\tfill(100);\n\t\t\trect(513, 7, 73, 29, 7);\n\t\t}\n\t\telse {\n\t\t\tfill(60);\n\t\t\trect(513, 7, 73, 29, 7);\n\t\t}\n\t\t\n\t\t//create the appropriate writing/texts\n\t\tfill(255);\n\t\ttextSize(20);\n\t\ttext(\"SCORE:\", 20, 30);\n\t\ttext(mySnake.score, 94, 30);\n\t\tif (mySnake.isPaused == true) {\n\t\t\ttext(\"PLAY\", 520, 30);\n\t\t}\n\t\telse {\n\t\t\ttext(\"PAUSE\", 520, 30);\n\t\t}\n\t\t\n\t\tmySnake.checkIfDead();\n\t\t\n\t\tif (mySnake.alive) { //if alive \n\t\t\t\n\t\t\tif (mySnake.isPaused == false) {\n\t\t\t\tmySnake.update();\n\t\t\t}\n\t\t\t\n\t\t\tmySnake.printSnake();\n\t\t\tmySnake.printFood();\n\t\t\t\t\n\t\t\tif (mySnake.eatFood()) {\n\t\t\t\tmySnake.createFood();\n\t\t\t}\n\t\t}\n\t\telse { //it must be dead\n\t\t\t//print the food and only the tail of the snake (as head went off board)\n\t\t\tfor (int i=0; i<mySnake.tail.length; i++) { //will only print the tail if there is any tail to begin with\n\t\t\t\trect(mySnake.tail[i][0], mySnake.tail[i][1], boxSize, boxSize);\n\t\t\t}\n\t\t\tmySnake.printFood();\n\t\n\t\t\t//write Game Over\n\t\t\tfill(40);\n\t\t\trect(50, 190, 510, 100, 7);\n\t\t\t\n\t\t\tfill(255);\n\t\t\ttextSize(80);\n\t\t\ttext(\"GAME OVER!\", 60, 270);\n\t\t}\n\t}", "public void reset() {\n\t\t//reset player to 0\n\t\tplayer = 0;\n\t\t\n\t\tfor(int row = size - 1; row >= 0; row --)\n\t\t\tfor(int col = 0; col < size; col ++)\n\t\t\t\tfor(int dep = 0; dep < size; dep ++)\n\t\t\t\t\t//goes through all board positions and sets to -1\n\t\t\t\t\tboard[row][col][dep] = -1;\n\t}", "public void reset() {\n gameStatus = null;\n userId = null;\n gameId = null;\n gameUpdated = false;\n selectedTile = null;\n moved = false;\n }", "public void startSnake() {\n createBoard();\n generateFirstSnake();\n generateEnemy();\n spawnApples();\n printBoard();\n keepMoving();\n }", "public void reset() {\n\t\tplayerModelDiff1.clear();\n\t\tplayerModelDiff4.clear();\n\t\tplayerModelDiff7.clear();\n\t\tif(normalDiffMethods)\n\t\t{\t\n\t\tupdatePlayerModel();\n\t\tdisplayReceivedRewards();\n\t\t}\n\t\tint temp_diffsegment1;\n\t\tint temp_diffsegment2;\n\t\tif (currentLevelSegment == 0) {\n\t\t\t//System.out.println(\"-you died in the first segment, resetting to how you just started\");\n\t\t\ttemp_diffsegment1 = (int) plannedDifficultyLevels.get(0);\n\t\t\ttemp_diffsegment2 = (int) plannedDifficultyLevels.get(1);\n\t\t}\n\t\telse {\n\t\t\t//System.out.println(\"-nextSegmentAlreadyGenerated:\" + nextSegmentAlreadyGenerated);\n\t\t\tif (nextSegmentAlreadyGenerated) {\n\t\t\t\t//because the next segment is already generated (and so the previous does not exist anymore),\n\t\t\t\ttemp_diffsegment1 = (int) plannedDifficultyLevels.get(currentLevelSegment);\n\t\t\t\ttemp_diffsegment2 = (int) plannedDifficultyLevels.get(currentLevelSegment+1);\n\t\t\t}\n\t\t\telse {\n\t\t\t\t//because the next segment is not yet generated\n\t\t\t\ttemp_diffsegment1 = (int) plannedDifficultyLevels.get(currentLevelSegment-1);\n\t\t\t\ttemp_diffsegment2 = (int) plannedDifficultyLevels.get(currentLevelSegment);\n\t\t\t}\n\t\t}\n\t\tplannedDifficultyLevels.clear();\n\n\t\t//System.out.println(\"-resetting to: \" + temp_diffsegment1 + \", \" + temp_diffsegment2);\n\t\tplannedDifficultyLevels.add(temp_diffsegment1);\n\t\tplannedDifficultyLevels.add(temp_diffsegment2);\n\t\tcurrentLevelSegment = 0;\n\n\t\tpaused = false;\n\t\tSprite.spriteContext = this;\n\t\tsprites.clear();\n\n\t\ttry {\n\t\t\tlevel2 = level2_reset.clone();\n\t\t} catch (CloneNotSupportedException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t\ttry {\n\t\t\tlevel3 = level3_reset.clone();\n\t\t} catch (CloneNotSupportedException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\n fixborders();\n\t\tconjoin();\n\n\t\tlayer = new LevelRenderer(level, graphicsConfiguration, 320, 240);\n\t\tfor (int i = 0; i < 2; i++)\n\t\t{\n\t\t\tint scrollSpeed = 4 >> i;\n\t\tint w = ((level.getWidth() * 16) - 320) / scrollSpeed + 320;\n\t\tint h = ((level.getHeight() * 16) - 240) / scrollSpeed + 240;\n\t\tLevel bgLevel = BgLevelGenerator.createLevel(w / 32 + 1, h / 32 + 1, i == 0, levelType);\n\t\tbgLayer[i] = new BgRenderer(bgLevel, graphicsConfiguration, 320, 240, scrollSpeed);\n\t\t}\n\n\t\tdouble oldX = 0;\n\t\tif(mario!=null)\n\t\t\toldX = mario.x;\n\n\t\tmario = new Mario(this);\n\t\tsprites.add(mario);\n\t\tstartTime = 1;\n\n\t\ttimeLeft = 200*15;\n\n\t\ttick = 0;\n\n\t\t/*\n\t\t * SETS UP ALL OF THE CHECKPOINTS TO CHECK FOR SWITCHING\n\t\t */\n\t\t switchPoints = new ArrayList<Double>();\n\n\t\t//first pick a random starting waypoint from among ten positions\n\t\tint squareSize = 16; //size of one square in pixels\n\t\tint sections = 10;\n\n\t\tdouble startX = 32; //mario start position\n\t\tdouble endX = level.getxExit()*squareSize; //position of the end on the level\n\t\t//if(!isCustom && recorder==null)\n level2.playValues = this.valueList[0];\n\t\t\trecorder = new DataRecorder(this,level3,keys);\n\t\t\t////System.out.println(\"\\n enemies LEFT : \" + recorder.level.COINS); //Sander disable\n\t\t\t////System.out.println(\"\\n enemies LEFT : \" + recorder.level.BLOCKS_COINS);\n\t\t\t////System.out.println(\"\\n enemies LEFT : \" + recorder.level.BLOCKS_POWER);\n\t\t\tgameStarted = false;\n\t}", "private void initGame() {\r\n \t//body of snake 3\r\n \t\tdots = 3;\r\n \t\t//position the body of snake behind each other initially\r\n \t\tfor(int i = 0; i < dots; i++) {\r\n \t\t\tx[i] = 50 - i * 10;\r\n \t\t\ty[i] = 50;\r\n \t\t}\r\n \t\t//call random apple\r\n \t\trandomApple();\r\n \t\t//start the timer class\r\n \t\ttimer = new Timer(DELAY, this);\r\n \t\ttimer.start();\r\n }", "public void Reset ( ) \r\n\t{\r\n\t\tcurrentCol = size / 2;\r\n\t\tcurrentRow = size / 2;\r\n\t\t\r\n\t\tint totalDistance;\r\n\t\tdo {\r\n\t\tint dist = size*size+1;\r\n\t\tmaze = new Room [size] [size];\r\n\t\tfor ( int row = 0; row < size; row++ )\r\n\t\t\tfor ( int col = 0; col < size; col++ )\r\n\t\t\t\tmaze [row] [col] = new Room ( dist);\r\n\t\ttotalDistance = CalcDistance();\r\n\t\t} while ( totalDistance >= size*size );\r\n\t\t\r\n\t\tmaze [currentRow] [currentCol].InsertWalker ( );\r\n\t}", "public void reset() {\n\n players = new Player[numAIPlayers + 1];\n createHumanPlayer();\n createAIPlayers(numAIPlayers);\n wholeDeck.shuffle();\n\n // --- DEBUG LOG ---\n // The contents of the complete deck after it has been shuffled\n Logger.log(\"COMPLETE GAME DECK AFTER SHUFFLE:\", wholeDeck.toString());\n\n assignCards(wholeDeck, players);\n activePlayer = randomlySelectFirstPlayer(players);\n playersInGame = new ArrayList<>(Arrays.asList(players));\n winningCard = null;\n roundWinner = null;\n\n roundNumber = 1;\n drawRound = 0;\n }", "public void resetBoard(){\r\n for(int i = 0;i<6;i++){ //empty board \r\n for (int j = 0; j < 7; j++) {\r\n boardRep[i][j] = 0;\r\n }\r\n }\r\n \r\n for (int i = 0; i < 7; i++) { // set column heights to 0\r\n currentFilled[i] = 0;\r\n }\r\n \r\n blackToPlay = true; //black goes first for now\r\n refreshDisplay(); \r\n \r\n }", "public void reset()\n {\n currentScore = 0;\n }", "private void resetTurn(){\r\n lastRow = 0;\r\n lastCol = 0;\r\n selected = false;\r\n nextMove = new int[8][8];\r\n moveList = new Stack<>();\r\n repaint();\r\n System.out.println(toString());\r\n }", "public void reset() {\r\n\r\n\t\tassets.allocateMusic(\"audio/SomniTrack.mp3\");\r\n\t\tassets.allocateMusic(\"audio/PhobiaTrack.mp3\");\r\n\t\tassets.allocateMusic(\"audio/CombinedTrack.mp3\");\r\n//\t\tJsonValue sounds = assets.get(\"sounds\");\r\n//\t\tsomniTrackPath = sounds.get(\"somniTrack\").asString();\r\n//\t\tphobiaTrackPath = sounds.get(\"phobiaTrack\").asString();\r\n//\t\tcombinedTrackPath = sounds.get(\"combinedTrack\").asString();\r\n\r\n\t\tsomniTrackPath = \"audio/SomniTrack.mp3\";\r\n\t\tphobiaTrackPath = \"audio/PhobiaTrack.mp3\";\r\n\t\tcombinedTrackPath = \"audio/CombinedTrack.mp3\";\r\n\r\n\t\tgameScreenActive = true;\r\n\t\tVector2 gravity = new Vector2(world.getGravity() );\r\n\t\tfor(Obstacle obj : objects) {\r\n\t\t\tobj.deactivatePhysics(world);\r\n\t\t}\r\n\t\tfor(Obstacle obj : sharedObjects) {\r\n\t\t\tobj.deactivatePhysics(world);\r\n\t\t}\r\n\t\tfor(Obstacle obj : darkObjects) {\r\n\t\t\tobj.deactivatePhysics(world);\r\n\t\t}\r\n\t\tfor(Obstacle obj : lightObjects) {\r\n\t\t\tobj.deactivatePhysics(world);\r\n\t\t}\r\n\t\tobjects.clear();\r\n\t\tsharedObjects.clear();\r\n\t\tlightObjects.clear();\r\n\t\tdarkObjects.clear();\r\n\t\tmovingObjects.clear();\r\n\t\tplatformController.currRainingPlatforms.clear();\r\n\t\tplatformController.respawningPlatforms.clear();\r\n\t\taddQueue.clear();\r\n\t\tworld.dispose();\r\n\t\tdisposeStages();\r\n\r\n\t\tworld = new World(gravity,false);\r\n\t\tsetComplete(false);\r\n\t\tsetFailure(false);\r\n\t\tfirstTimeRendered=true;\r\n\t\tpopulateLevel();\r\n\r\n\t\tcamera = canvas.getCamera();\r\n\t\tpauseButtonStage = new Stage(new ScreenViewport(camera));\r\n\t\tpauseMenuStage = new Stage(new ScreenViewport(camera));\r\n\t\tstage = new Stage(new ScreenViewport(camera));\r\n\t\twinMenuStage = new Stage(new ScreenViewport(camera));\r\n\t\tfailMenuStage = new Stage(new ScreenViewport(camera));\r\n\r\n\t\tCamera camera = canvas.getCamera();\r\n\t\tVector2 leadPos = somni.getPosition();\r\n\t\tfloat newX = leadPos.x * canvas.PPM;\r\n\t\tnewX = Math.min(newX, widthUpperBound);\r\n\t\tnewX = Math.max(canvas.getWidth() / 2, newX );\r\n\t\tcamera.position.x = newX;\r\n\r\n\t\tfloat newY = leadPos.y * canvas.PPM;\r\n\t\tnewY = Math.min(newY, heightUpperBound);\r\n\t\tnewY = Math.max(canvas.getHeight() / 2, newY );\r\n\t\tcamera.position.y = newY;\r\n\r\n\t\tcamera.update();\r\n\r\n\t\tholdingHands = false;\r\n\r\n\t\tmovementController = new MovementController(somni, phobia, combined, goalDoor, objects, sharedObjects,\r\n\t\t\t\tlightObjects, darkObjects, this);\r\n\t\tmovementController.setCurrRainingPlatforms(currRainingPlatforms);\r\n\t\tworld.setContactListener(movementController);\r\n\r\n\t\tmovementController.setAvatar(somni);\r\n\t\tmovementController.setLead(somni);\r\n\r\n\t\tcreateModalWindow(camera.position.x, camera.position.y);\r\n\t\tcreatePauseButton();\r\n\t\tcreateSliders();\r\n\t\tcreateFailWindow(camera.position.x, camera.position.y);\r\n\t\tcreateWinWindow(camera.position.x, camera.position.y);\r\n\r\n\r\n\t\tplatformController.setMovingObjects(movingObjects);\r\n\t\tplatformController.setLightObjects(lightObjects);\r\n\t\tplatformController.setDarkObjects(darkObjects);\r\n\t\tplatformController.setSharedObjects(sharedObjects);\r\n\t\tplatformController.setCurrRainingPlatforms(currRainingPlatforms);\r\n\r\n\t\tmaskLeader = phobia;\r\n\t\tswitching = false;\r\n\t\tmaskWidth = MIN_MASK_DIMENSIONS.x;\r\n\t\tmaskHeight = MIN_MASK_DIMENSIONS.y;\r\n\t\talphaAmount = 0;\r\n\r\n\r\n\t\tif(!MusicController.getInstance().isActive(\"somniTrack\")) {\r\n\t\t\tMusicController.getInstance().stopAll();\r\n\t\t\tSoundController.getInstance().stop(\"failTrack\");\r\n\t\t\tSoundController.getInstance().stop(\"winTrack\");\r\n\t\t\tMusicController.getInstance().play(\"somniTrack\", somniTrackPath, volume, true);\r\n\t\t\tMusicController.getInstance().play(\"phobiaTrack\", phobiaTrackPath, 0, true);\r\n\t\t\tMusicController.getInstance().play(\"combinedTrack\", combinedTrackPath, 0, true);\r\n\r\n\t\t}\r\n\r\n\t\tif (movementController.isHoldingHands()){\r\n\t\t\tMusicController.getInstance().setVolume(volume, \"combinedTrack\");\r\n\t\t}\r\n\t\telse if (movementController.getAvatar()==somni){\r\n\t\t\tMusicController.getInstance().setVolume(volume, \"somniTrack\");\r\n\t\t}\r\n\t\telse if (movementController.getAvatar()==phobia){\r\n\t\t\tMusicController.getInstance().setVolume(volume, \"phobiaTrack\");\r\n\t\t}\r\n\r\n\r\n\t}", "public void resetBoard() {\n //sets current board to a new board\n currentBoard = new Board(7, 6);\n\n //sets all text fields back to white\n for (int i = 0; i < currentBoard.getSizeX(); i++) {\n for (int v = 0; v < currentBoard.getSizeY(); v++) {\n squares[i][v].setBackground(Color.white);\n }\n }\n //sets turn to true (first player)\n turn = true;\n }", "private void startGame() {\r\n setGrid();\r\n setSnake();\r\n newPowerUp();\r\n timer.start();\r\n }", "protected void createDebugSnake() {\n int freespaces = 5;\n snakeSize = maxX - freespaces;\n int segmentnum = 0;\n\n int cur_x_square = freespaces;\n int cur_y_square = 0;\n snakeHeadX = cur_x_square;\n snakeHeadY = cur_y_square;\n\n\n // build first row:\n for (cur_x_square = freespaces; cur_x_square < snakeSize + freespaces; cur_x_square++) {\n //System.out.println(segmentnum + \": \" + cur_x_square + \",\" + cur_y_square);\n snakeSquares[cur_x_square][cur_y_square] = ++segmentnum;\n }\n //fill in body of snake\n while (cur_y_square < maxY - 1) {\n cur_y_square++;\n if (cur_y_square % 2 == 0) {\n for (cur_x_square = maxX - 1; cur_x_square > 0; cur_x_square--) {\n //System.out.println(segmentnum + \": \" + cur_x_square + \",\" + cur_y_square);\n snakeSquares[cur_x_square][cur_y_square] = ++segmentnum;\n }\n } else {\n for (cur_x_square = 1; cur_x_square < maxX; cur_x_square++) {\n //System.out.println(segmentnum + \": \" + cur_x_square + \",\" + cur_y_square);\n snakeSquares[cur_x_square][cur_y_square] = ++segmentnum;\n }\n }\n }\n\n //fill in tail so it can be chased by the player as they eat the last few\n // kibbles that appear\n for (cur_y_square = maxY - 1; cur_y_square > 0; cur_y_square--) {\n //System.out.println(segmentnum + \": \" + cur_x_square + \",\" + cur_y_square);\n snakeSquares[0][cur_y_square] = ++segmentnum;\n }\n\n snakeSize = segmentnum;\n\n currentHeading = DIRECTION_LEFT;\n lastHeading = DIRECTION_LEFT;\n\n justAteMustGrowThisMuch = 0;\n }" ]
[ "0.73509896", "0.72499186", "0.7166151", "0.7045908", "0.6976466", "0.697567", "0.6917361", "0.6894628", "0.6891908", "0.68879443", "0.6771543", "0.6750661", "0.6744202", "0.67438215", "0.6692685", "0.6639476", "0.65997964", "0.65710264", "0.65649915", "0.6564397", "0.6555668", "0.65466565", "0.6540712", "0.6539189", "0.65272605", "0.6444977", "0.6438951", "0.6433081", "0.6415327", "0.6412664", "0.63916326", "0.63696396", "0.63639647", "0.6353924", "0.63482326", "0.6334577", "0.63294643", "0.6328366", "0.6317557", "0.6311845", "0.6309477", "0.62793887", "0.6262665", "0.6259019", "0.6254432", "0.6241963", "0.6238043", "0.6233976", "0.6233264", "0.6232863", "0.6230736", "0.6221343", "0.6218675", "0.62108123", "0.6202099", "0.6179801", "0.61675286", "0.6166693", "0.61594284", "0.61577547", "0.61563164", "0.6155688", "0.61523527", "0.6141474", "0.6135447", "0.6122072", "0.61186296", "0.6092504", "0.6092056", "0.60849726", "0.6079189", "0.607239", "0.6067681", "0.6051121", "0.6041995", "0.60326844", "0.6030259", "0.60265875", "0.6023687", "0.6022881", "0.60225374", "0.6016736", "0.60151136", "0.6003483", "0.5999162", "0.59937966", "0.59913737", "0.5986298", "0.5984754", "0.59818405", "0.59668916", "0.59648734", "0.596173", "0.5957367", "0.59539443", "0.5950988", "0.5948075", "0.59453124", "0.59405684", "0.5935572" ]
0.87714976
0