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
Inflate the menu; this adds items to the action bar if it is present.
@Override public boolean onCreateOptionsMenu(Menu menu) { getMenuInflater().inflate(R.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) {...
[ "0.7247938", "0.7202959", "0.7196692", "0.71785426", "0.7108701", "0.70417315", "0.70402646", "0.70132303", "0.7011096", "0.69826573", "0.6946997", "0.69409776", "0.6935366", "0.69191027", "0.69191027", "0.6893088", "0.6885528", "0.6877815", "0.68763673", "0.686437", "0.68643...
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) { int id = item.getItemId(); //noinspection SimplifiableIfStatement switch (item.getItemId()) { case android.R.id.home: // app icon in action bar clicked; goto parent activity. this.f...
{ "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 ...
[ "0.790433", "0.78052884", "0.7766116", "0.77269244", "0.7631314", "0.76214564", "0.75844425", "0.7530182", "0.748751", "0.7438209", "0.74215984", "0.74033666", "0.7391367", "0.7386547", "0.7378906", "0.73700386", "0.73624307", "0.73555857", "0.734534", "0.7341001", "0.7329573...
0.7457498
10
Initialize the contents of the frame.
private void initialize() { setFrame(new JFrame()); getFrame().setBounds(100, 100, 271, 210); JPanel panel = new JPanel(); textField = new JTextField(); textField.addKeyListener(new KeyListener() { @Override public void keyTyped(KeyEvent arg0) { } @Override public void keyRele...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public BreukFrame() {\n super();\n initialize();\n }", "public MainFrame() {\n\t\tsuper();\n\t\tinitialize();\n\t}", "private void initialize() {\n\t\tthis.setSize(211, 449);\n\t\tthis.setContentPane(getJContentPane());\n\t\tthis.setTitle(\"JFrame\");\n\t}", "public SiscobanFrame() {\r\n\t\tsuper();\r...
[ "0.7769806", "0.75645775", "0.744096", "0.7367939", "0.7366207", "0.7356814", "0.73127955", "0.73093945", "0.72973347", "0.7296576", "0.7276723", "0.72713083", "0.72694886", "0.72694886", "0.72140867", "0.71808106", "0.71675664", "0.7140664", "0.71397793", "0.7125805", "0.710...
0.0
-1
Gets the i th table being selected. Clients should treat the returned value as immutable.
public TableIdentifier getFrom(int i) { TableIdentifier[] tableIDs = _from.toTableArray(); return (tableIDs[i]); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String getSelectedTable() {\n\t\treturn selectedTable;\n\t}", "public Table getSelectedTable() {\n Integer id = (Integer)super.getSelectedItem();\n if (id == null) {\n return null;\n }\n try {\n return tableHome.getTable(id.intValue());\n }\n ...
[ "0.76087594", "0.750889", "0.71069646", "0.6748065", "0.67259413", "0.6701194", "0.6677308", "0.66739905", "0.66729474", "0.6667206", "0.66484064", "0.6636797", "0.66308707", "0.6614075", "0.65729576", "0.656984", "0.6521678", "0.64640516", "0.6407047", "0.6377046", "0.635625...
0.6344268
22
Gets the number of tables being from.
public int getFromCount() { return _from.getTableCount(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "int getTablesCount();", "public int getTablesCount() {\n if (tablesBuilder_ == null) {\n return tables_.size();\n } else {\n return tablesBuilder_.getCount();\n }\n }", "private int countTables() {\r\n\tint result = -1;\r\n\r\n\tStatement stat = null;\r\n\tResultSet ...
[ "0.85894954", "0.806277", "0.80199856", "0.7935398", "0.7483331", "0.7322992", "0.719938", "0.71670103", "0.7077476", "0.69433695", "0.6893229", "0.6884415", "0.67815256", "0.6763621", "0.67595005", "0.6753836", "0.67460865", "0.6725568", "0.67002267", "0.6644511", "0.6640424...
0.7371623
5
Gets Selectable in Group by clause.
@SuppressWarnings("unchecked") public List getGroupBy() { if (_groupBy != null) { return Collections.unmodifiableList(_groupBy); } return Collections.EMPTY_LIST; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Selectable getGroupBy(int i) {\n if (_groupBy != null) {\n return (Selectable) (_groupBy.get(i));\n } \n return null;\n }", "public GroupBy getGroupBy() {\n\t\t\n\t\treturn groupBy;\n\t}", "io.dstore.values.BooleanValue getGroupByCategory();", "public boolean isGroup...
[ "0.6374789", "0.6281174", "0.61376935", "0.59504133", "0.5930695", "0.5860847", "0.5772797", "0.5762819", "0.56959087", "0.56365454", "0.5555288", "0.55541855", "0.55432045", "0.55170375", "0.5457924", "0.5449669", "0.5434062", "0.5432117", "0.5399058", "0.5398075", "0.535339...
0.56913507
9
Gets Selectable in Group by clause. Clients should treat the returned value as immutable.
public Selectable getGroupBy(int i) { if (_groupBy != null) { return (Selectable) (_groupBy.get(i)); } return null; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public GroupBy getGroupBy() {\n\t\t\n\t\treturn groupBy;\n\t}", "public boolean isGroupBy() {\n return groupBy;\n }", "io.dstore.values.BooleanValue getGroupByCategory();", "public interface Selectable\n{\n\tboolean isSelected();\n\n\tvoid setSelected(boolean selected);\n\n\tvoid setGroup(Selection...
[ "0.64466774", "0.6294671", "0.6253811", "0.6156683", "0.61558276", "0.59894586", "0.5840342", "0.58298", "0.5799742", "0.5731586", "0.57192814", "0.56937003", "0.5693352", "0.56914514", "0.56653017", "0.5648493", "0.5648493", "0.5648493", "0.5648493", "0.5648493", "0.5648493"...
0.64734966
0
=================================================================================== Union Query ===========
public void reflectRelationOnUnionQuery(ConditionQuery bqs, ConditionQuery uqs) { WhiteStilettoAliasRefCQ bq = (WhiteStilettoAliasRefCQ)bqs; WhiteStilettoAliasRefCQ uq = (WhiteStilettoAliasRefCQ)uqs; if (bq.hasConditionQueryWhiteStilettoAlias()) { uq.queryWhiteStilettoAlias().ref...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "List<ProtocolPo> queryByUnion(ProtocolPo query);", "public void reflectRelationOnUnionQuery(ConditionQuery bqs, ConditionQuery uqs) {\n }", "public void reflectRelationOnUnionQuery(ConditionQuery bqs, ConditionQuery uqs) {\n }", "public void reflectRelationOnUnionQuery(ConditionQuery bqs, ConditionQuer...
[ "0.7140841", "0.6779809", "0.6779809", "0.6779809", "0.67228836", "0.66018426", "0.64391595", "0.6425165", "0.63613176", "0.6357563", "0.62138647", "0.6157212", "0.6149635", "0.61066777", "0.61047894", "0.61013365", "0.60985506", "0.60628116", "0.6046059", "0.6017997", "0.601...
0.56924355
55
=================================================================================== Foreign Query ============= Get the conditionquery for relation table. WHITE_STILETTO_ALIAS by my STILETTO_ALIAS_ID, named 'whiteStilettoAlias'.
public WhiteStilettoAliasCQ queryWhiteStilettoAlias() { return xdfgetConditionQueryWhiteStilettoAlias(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test\n \tpublic void whereClauseIndirectPointingRelation() {\n \t\tnode23.addJoin(new PointingRelation(node42, NAME));\n \t\tcheckWhereCondition(\n //\t\t\t\tjoin(\"=\", \"_rank23.component_ref\", \"_rank42.component_ref\"),\n \t\t\t\tjoin(\"=\", \"_component23.type\", \"'p'\"),\n \t\t\t\tjoin(\"=\", \"_component...
[ "0.56150806", "0.5561815", "0.538336", "0.53499913", "0.5329048", "0.5257027", "0.51566344", "0.5101512", "0.5095524", "0.5067326", "0.504375", "0.49983215", "0.49370414", "0.4880608", "0.48613405", "0.48583215", "0.4849626", "0.47659326", "0.4764308", "0.4763429", "0.4760176...
0.58544266
0
=================================================================================== Very Internal ============= very internal (for suppressing warn about 'Not Use Import')
protected String xCB() { return WhiteStilettoAliasRefCB.class.getName(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected boolean isImport() {\n\t\t// Overrides\n\t\treturn false;\n\t}", "void reportImport() {\n this.hasImports = true;\n }", "@Test\n public void testNonSpecifiedImports() throws Exception {\n final DefaultConfiguration checkConfig =\n createModuleConfig(CustomImportOrderC...
[ "0.6803319", "0.6571902", "0.59709394", "0.5930311", "0.5858144", "0.5845191", "0.58357126", "0.574673", "0.5737478", "0.57323503", "0.57119983", "0.5681587", "0.5639888", "0.55797464", "0.5567162", "0.55312425", "0.55267406", "0.5513854", "0.55103403", "0.5478195", "0.547724...
0.0
-1
/ Called before actually generating RDQL. It prepares the data objects
private void setUp() { variables = new Vector(); statements = new Vector(); constraints = new Vector(); variableGenerator = new SimpleVariableGenerator("v_"); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void prepare() throws QueryException {\n md = new MemData(data);\n\n final Iterator<Item> d = docs.iterator();\n final Iterator<byte[]> n = names.iterator();\n final Iterator<byte[]> p = paths.iterator();\n\n while(d.hasNext()) {\n md.insert(md.meta.size, -1, docData(d.next(...
[ "0.66743255", "0.6348964", "0.61894935", "0.61223465", "0.6050573", "0.6050573", "0.6050573", "0.6050573", "0.6050573", "0.6050573", "0.6045159", "0.5970773", "0.5897637", "0.5893389", "0.5881273", "0.5881273", "0.5878254", "0.5873893", "0.5873689", "0.5863885", "0.5863885", ...
0.0
-1
the service endpoint used for updated this RecyclerView data is passed into the constructor
DeparturesRecyclerViewAdapter(Context context, String endpoint) { this.context = context; this.endpoint = endpoint; this.mInflater = LayoutInflater.from(context); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public interface RestaurantEndpoints {\n @GET(\"/restaurants\")\n Call<ArrayList<GETRestaurantResponse>> getRestaurants(@Query(\"priceeq\") String priceEquals,\n @Query(\"pricelte\") String priceLte,\n ...
[ "0.6443528", "0.6254139", "0.606724", "0.6045872", "0.6039221", "0.59790444", "0.59449935", "0.5923134", "0.59206206", "0.5902319", "0.5890093", "0.58891463", "0.5861927", "0.58282036", "0.58261067", "0.58220303", "0.5805344", "0.57864", "0.57401377", "0.572173", "0.5712958",...
0.55182433
57
inflates the row layout from xml when needed
@Override public ViewHolder onCreateViewHolder(ViewGroup parent, int viewType) { // DeparturesRowBinding binding = DeparturesRowBinding.inflate(mInflater,R.layout.departures_row, parent, false); DeparturesRowBinding binding = DataBindingUtil.inflate(mInflater, R.layout.departures_row, parent, false);...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void inflateTextLayout(View row, BeadInfo beadInfo) {\n\t\tTextView colorCodeTV = (TextView) row.findViewById(R.id.colorNumber);\n\t\tif (colorCodeTV != null){\n\t\t\tString colorCode = beadInfo.getColorCode();\n\t\t\tif (colorCode != null){\n\t\t\t\tcolorCodeTV.setText(colorCode);\n\t\t\t}\n\t\t}\n\t\tLoc...
[ "0.6457729", "0.6256603", "0.62230533", "0.61085653", "0.60459834", "0.6013528", "0.5987287", "0.5977122", "0.59151936", "0.58765846", "0.58528435", "0.58514273", "0.5804053", "0.574945", "0.5723343", "0.56293553", "0.5620209", "0.56039405", "0.55768687", "0.5575568", "0.5552...
0.0
-1
binds the data to the TextView in each row
@Override public void onBindViewHolder(ViewHolder holder, int position) { TransitDataModel model = mData[position]; holder.binding.name.setText(model.name); holder.binding.stop.setText(model.stop); SimpleDateFormat simpleDateFormat = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss"); ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void populateTextViews() {\n full_name_tv.setText(contact.getFullName());\n school_tv.setText(contact.getSchool());\n department_tv.setText(getDepartmentString());\n email.setText(contact.getEmail());\n number_tv.setText(contact.getNumber());\n }", "@Override\r\n\t\t...
[ "0.69825363", "0.6889744", "0.65003824", "0.64334226", "0.6420809", "0.63198715", "0.6298689", "0.6276189", "0.62720525", "0.62354594", "0.6231778", "0.6228207", "0.61968917", "0.6184883", "0.6167035", "0.61536914", "0.61530423", "0.615287", "0.61525244", "0.6127181", "0.6105...
0.0
-1
total number of rows
@Override public int getItemCount() { return mData == null ? 0 : mData.length; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public int totalRowsCount();", "int getRowsCount();", "public int getTotalRows();", "int getRowsAmount();", "public int getNumRows() {\n\t\treturn NUM_ROWS; \n\t}", "public abstract int getNumOfRows();", "public abstract int getNumRows();", "public int getRowsCount() {\n return rows_.size();\n ...
[ "0.8941779", "0.8815116", "0.8755007", "0.8385308", "0.8262187", "0.8252142", "0.82368404", "0.82230633", "0.8137333", "0.80887896", "0.8063271", "0.8062647", "0.8059102", "0.80109876", "0.7972208", "0.7943724", "0.79223907", "0.79223907", "0.79223907", "0.79223907", "0.79223...
0.0
-1
todo: get rid of the need to override toString as READ_ENUMS_USING_TO_STRING is enabled in other projects (i.e. remove READ_ENUMS_USING_TO_STRING)
@Override public String toString() { return id; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tpublic abstract String toString();", "@Override\n public abstract String toString();", "@Override\n public abstract String toString();", "@Override\n public abstract String toString();", "@Override\n public abstract String toString();", "@Override\n public abstract String toSt...
[ "0.6093634", "0.6086614", "0.6086614", "0.6086614", "0.6086614", "0.6086614", "0.6086614", "0.6086614", "0.60865325", "0.6077797", "0.6075875", "0.6061258", "0.6049063", "0.6026649", "0.60207075", "0.6011529", "0.6006171", "0.5958313", "0.5940941", "0.5940941", "0.5922575", ...
0.0
-1
Created by E5575G on 1/18/2018.
public interface BurppleAPI { @FormUrlEncoded @POST("v1/getFeatured.php") Call<GetFeaturedResponse> loadFeatured( @Field("access_token") String accessToken, @Field("page") int pageIndex); @FormUrlEncoded @POST("v1/getPromotions.php") Call<GetPromotionsResponse> loadProm...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public final void mo51373a() {\n }", "@Override\n public void perish() {\n \n }", "private stendhal() {\n\t}", "@Override\n public void func_104112_b() {\n \n }", "@Override\n public int describeContents() { return 0; }", "@Override\n\tpublic void grabar() {\n\t\t\n\t}...
[ "0.5823221", "0.5722275", "0.559076", "0.556265", "0.5435894", "0.5424832", "0.5421941", "0.5419157", "0.54056376", "0.54056376", "0.5390603", "0.5341874", "0.5330922", "0.532195", "0.53081924", "0.5271543", "0.5271543", "0.5271543", "0.5271543", "0.5271543", "0.5271543", "...
0.0
-1
Sends request for book information based on GID received as extra. The GID of the book from the previous activity is passed to this activity as an extra. That GID is used to create a URL that requests detailed information about a book. The requested is initiated by utilizing volley.
public void retrieveDetailedBookInfo(){ //Check for internet connection if(!NetworkJSONUtils.checkInternetConnection(this)) { ErrorUtils.errorDialog(BookDetailsActivity.this, "Network Error", "It seems you don't have any network connection. Reset your connection and try again."); ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void newVolume(){\n Intent intent = getIntent();\n\n id = intent.getStringExtra(\"Id\");\n\n newUrl = \"https://www.googleapis.com/books/v1/volumes/\"+id;\n\n // Request a string response from the provided URL.\n StringRequest stringRequest = new StringRequest(Request.Met...
[ "0.6075935", "0.5763881", "0.5496416", "0.54387033", "0.54271823", "0.53723943", "0.5366029", "0.52465934", "0.5215862", "0.5203174", "0.5154906", "0.51434886", "0.5123683", "0.51007515", "0.50949883", "0.50928175", "0.5071752", "0.50374365", "0.50211596", "0.50210065", "0.50...
0.63014203
0
Retrieves a more detailed image of the book from the URL specified. This uses the Volley ImageRequest
public void retrieveDetailedImage(){ //Build request for raw JSON data ImageRequest imageRequest = new ImageRequest(currentBook.thumbnail, new Response.Listener<Bitmap>() { @Override public void onResponse(Bitmap image) { //Image is returned mBackg...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private static Bitmap getImage(JSONObject volumeInfo) throws JSONException {\n Bitmap image = null;\n JSONObject imageLinks = volumeInfo.optJSONObject(\"imageLinks\");\n if (imageLinks == null) {\n Log.e(LOG_TAG, \"No image link for this book\");\n return null;\n }...
[ "0.6753828", "0.6697393", "0.6430013", "0.64226454", "0.63410634", "0.63273454", "0.6304073", "0.6301076", "0.6300889", "0.62901074", "0.62629163", "0.6231119", "0.6162356", "0.6145405", "0.6072204", "0.59812224", "0.59540135", "0.593232", "0.5888448", "0.5855414", "0.5853782...
0.79181397
0
Downloads and parses JSON through Volley library
public void downloadJSON(String url){ //Build request for raw JSON data StringRequest jsonRequest = new StringRequest(Request.Method.GET, url, new Response.Listener<String>() { @Override public void onResponse(String response) { try { //When da...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void downloadJSON() {\n new downloadJsonAsync().execute(Urls.GET_TAGS, Urls.GET_REST);\n }", "public void getJSON() throws JSONException {\n url = setUrl();\n System.out.println(\"after setAsyncUrl url = \" + url);\n OkHttpClient client = new OkHttpClient();\n Reques...
[ "0.69161284", "0.6649655", "0.6648988", "0.6596745", "0.6552257", "0.64729166", "0.6455205", "0.640234", "0.63776064", "0.62981457", "0.62895745", "0.62823886", "0.62189627", "0.61950505", "0.61843705", "0.61675525", "0.6155836", "0.6151264", "0.6145477", "0.6137609", "0.6112...
0.77497786
0
Parses a JSON object based on differing types of success codes. With a success of 0, the error message is parsed and displayed as a toast. With a success of 1, the detailed book information is parse and the book information is updated. With a success of 11, the comment was successfully added and a a message from the se...
public void parseJSON(JSONObject json){ try { int success = json.getInt(KEY_SUCCESS); if(success == 0){ //An error occurred - Server will handle message String message = json.getString(KEY_MESSAGE); Toast.makeText(this, message, Toast.LENG...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void onSuccess(int statusCode, cz.msebera.android.httpclient.Header[] headers, JSONObject response) {\n try {\n String status = response.getString(\"status\");\n if (status.contains(\"status not ok\")) {\n lt....
[ "0.60135317", "0.5983222", "0.59548193", "0.59387296", "0.5865603", "0.5837654", "0.5798261", "0.56063867", "0.5522452", "0.5492346", "0.54756415", "0.5473709", "0.5467716", "0.543465", "0.5431063", "0.54233164", "0.54233164", "0.5410665", "0.5409403", "0.5385781", "0.5380807...
0.59894085
1
Creates an alarm 9 days from current time that will send a push notification.
public void configureReturnAlarm(int BID){ alarmManager = (AlarmManager)getSystemService(ALARM_SERVICE); //Configure intent with proper information Intent intent = new Intent(this, RequestPushService.class); intent.putExtra("TO", FirebaseInstanceId.getInstance().getToken()); in...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "Alarm createAlarm();", "public static void scheduleRepeatingElapsedNotification15(Context context) {\n\n\n // Setting intent to class where notification will be handled\n Intent intent = new Intent(context, AlarmReceiver.class);\n\n // Setting pending intent to respond to broadcast sent by A...
[ "0.67759943", "0.66360855", "0.651858", "0.6473729", "0.6422872", "0.6406478", "0.63707376", "0.62779546", "0.6260845", "0.6253442", "0.6249204", "0.622791", "0.62025064", "0.6139594", "0.61181957", "0.60956675", "0.6037336", "0.5995204", "0.5970118", "0.5891327", "0.5868383"...
0.5857801
21
Sets the Text of all TextViews based on the current book information. Also sets values of any rating bars and adds the reviews to the screen.
private void displayBookInfo(){ //Set text of TextViews mTitle.setText(currentBook.title); mAuthors.setText(currentBook.authors); mDescription.setText(currentBook.description); mAvgRating.setText(String.format("%.01f", currentBook.averageRating)); mBookRating.setRating(cu...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void updateViews() {\n this.titleTextView.setText(title);\n this.authorTextView.setText(author);\n this.yearTextView.setText(String.valueOf(year));\n this.publisherTextView.setText(publisher);\n if (endsDate != \"\") {\n this.lentToDateTextView.setText(endsDate)...
[ "0.6302605", "0.62760895", "0.6157373", "0.59951586", "0.59908545", "0.5987199", "0.5943776", "0.5921005", "0.5819595", "0.5804627", "0.5727027", "0.57099724", "0.5700594", "0.56856465", "0.56836927", "0.5653771", "0.5620259", "0.56195694", "0.560567", "0.5562642", "0.5553126...
0.7202203
0
Adapts items to LinearLayout. From the given parameters, items are created and attached to the parent LinearLayout. For each item in the layout, a typeface and appropriate text is set. Items can be added or removed with this method.
public void reviewAdapter(ArrayList<Review> reviews, LinearLayout parent, int lowerDataBound, int upperDataBound, boolean add){ if(add) { //Loop through items and inflate them for (int i = lowerDataBound; i <= upperDataBound; i++) { //Try to remove old view ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void layout() {\n TitleLayout ll1 = new TitleLayout(getContext(), sourceIconView, titleTextView);\n\n // All items in ll1 are vertically centered\n ll1.setGravity(Gravity.CENTER_VERTICAL);\n ll1.setLayoutParams(new LinearLayout.LayoutParams(LayoutParams.FILL_PARENT,\n ...
[ "0.6294343", "0.61409056", "0.5899468", "0.5574812", "0.5567005", "0.5537363", "0.5520245", "0.55089635", "0.54610187", "0.5459691", "0.54474574", "0.5440849", "0.5425356", "0.5408935", "0.5400728", "0.5375098", "0.5319501", "0.530951", "0.5291781", "0.5276188", "0.5265819", ...
0.0
-1
If there are less lines than the line limit, then hide the more button.
@Override public void run() { if(body.getLineCount() < 4) { more.setVisibility(GONE); } body.setMaxLines(3); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void setLinesCount(String description, boolean isClicked) {\n mBinding.tvPdpProductDescription.setMaxLines(!isClicked ? (FOUR * moreIndex) : mLineCount);\n mBinding.tvPdpProductDescription.setEllipsize(\n mLineCount > FOUR * moreIndex ? TextUtils.TruncateAt.END : null);\n mBinding.tvPdpProd...
[ "0.62028503", "0.60248584", "0.59905857", "0.59535384", "0.5709524", "0.56778336", "0.56602025", "0.5464981", "0.5389811", "0.53639394", "0.53407407", "0.5263808", "0.52596605", "0.52035993", "0.51553184", "0.514547", "0.5131217", "0.5127575", "0.51263094", "0.51190823", "0.5...
0.7513057
0
Changes the state of the book description. If the state is not expanded when invoked, then it will set the details visibility to visible. If the state is expanded, then it will set the details visibility to gone.
public void expandDescription(final View v){ if(!descriptionExpanded) { //Set line number to unlimited mDescription.setMaxLines(Integer.MAX_VALUE); //Animate expansion mAdditionalDetailsLayout.setVisibility(View.VISIBLE); mFAB.setImageDrawable(getRes...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void setDescription(State state);", "public void setStateDescription(String value) {\n setAttributeInternal(STATEDESCRIPTION, value);\n }", "public void showDescription() {\r\n\t\tshowDescription(true);\r\n\t}", "private void toggleDetails() {\n Dimension dialogSize = getSize();\n\n i...
[ "0.6762457", "0.62223935", "0.61159414", "0.59794754", "0.5829119", "0.57654583", "0.5741981", "0.5716371", "0.56975347", "0.5663828", "0.56633496", "0.5655568", "0.5613647", "0.55925703", "0.5586827", "0.5586827", "0.5586827", "0.5586827", "0.5586827", "0.5586827", "0.554229...
0.0
-1
This method is called when the checkout/return button is pressed. If the book is not yet checked out, then the checkout dialog appears. If the book is out, then the book will be returned
public void checkoutReturnPressed(View view){ try { if (currentBook.copies != null) { if (!checkedOut) { DialogFragment bookFragment = SelectBookFragment.newInstance(BookDetailsActivity.this, currentBook.copies, currentBook.availableCopies); bo...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private static void checkoutBook(){\n\t\tSystem.out.println(\"===Book Checkout===\");\n\t\tScanner string_input = new Scanner(System.in); //gets String values entered by the user\n\t\tScanner integer_input = new Scanner(System.in); //gets integer values entered by the user\n\t\tboolean exit = false; //indicates wh...
[ "0.6934637", "0.6832344", "0.67772233", "0.6507549", "0.6476187", "0.6419835", "0.63952166", "0.63758796", "0.6334225", "0.62922466", "0.628594", "0.6243481", "0.6235906", "0.6183064", "0.6177387", "0.6118121", "0.6073284", "0.6059479", "0.6012771", "0.6007676", "0.60007936",...
0.8294957
0
Method is called when checkout or waitlist is selected. A URI is constructed with URL arguments detailing the UID, password, BID, and the action to perform based on weather or not the book is being waitlisted. The URI is converted to a String and uses Volley to send the request and parse the response is created.
public void checkoutBook(Copy copy, Boolean waitList){ int BID = copy.BID; //Build URI Uri.Builder builder = new Uri.Builder(); builder.scheme(SCHEME) .authority(BASE_URL) .appendPath(PATH0) .appendPath(PATH1) .appendPath(...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void onRequestInteractionListener(String username, boolean accept, String fragment) {\n String endpoint;\n\n if (accept) {\n endpoint = getString(R.string.ep_verify_contact_request);\n } else {\n endpoint = getString(R.string.ep_decline_contact_reques...
[ "0.50530577", "0.49820718", "0.49668217", "0.49625066", "0.49600205", "0.49354243", "0.4915908", "0.49088413", "0.49032137", "0.48987547", "0.4881174", "0.4841255", "0.4812973", "0.48030174", "0.4801228", "0.48004565", "0.4793993", "0.47933155", "0.47805232", "0.47771603", "0...
0.6251974
0
Method is called when return button is pressed. A URI is constructed with URL arguments detailing the UID, password, BID, and the action to return the book. The URI is converted to a String and uses Volley to send the request and parse the response.
public void returnBook(Copy copy){ int BID = copy.BID; //Build URI Uri.Builder builder = new Uri.Builder(); builder.scheme(SCHEME) .authority(BASE_URL) .appendPath(PATH0) .appendPath(PATH1) .appendPath(PATH2) ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void onActivityResult(int requestCode, int resultCode, Intent data) {\n\n super.onActivityResult(requestCode, resultCode, data);\n if (requestCode == 325) {\n if (resultCode == Activity.RESULT_OK) {\n String result = data.getStringExtra(\"RESULT_ISBN\");\n ...
[ "0.56471634", "0.56184316", "0.5588148", "0.55111456", "0.51991606", "0.5093457", "0.50666744", "0.5056662", "0.4996443", "0.4960464", "0.49573115", "0.49414456", "0.49092138", "0.48929146", "0.48827663", "0.48597547", "0.48480207", "0.4828831", "0.48199248", "0.48184055", "0...
0.60028154
0
Expands the current Reviews if possible. The last visible index is retrieved and compared to the last possible index. If the last possible index is greater than the last visible index, then all missing views are inflated.
public void viewAllReviews(View v){ //Check if initialized to prevent null pointer if(currentBook.reviews != null) { int startIndex = mReviews.getChildCount() - 1; //Get index of last visible view int endIndex = currentBook.reviews.size() - 1; //Get index of last possible view ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void recycleOffscreenViews() {\n final int oldChildCount = getChildCount();\n final int height = getHeight();\n final int clearAbove = -height - mItemMargin; // XXX increased clearAbove and clearBelow values\n final int clearBelow = height * 2 + mItemMargin; // to reduce recycling.\n fo...
[ "0.591007", "0.530726", "0.53055775", "0.52003694", "0.51741856", "0.51741856", "0.5153091", "0.5148311", "0.50956845", "0.5062094", "0.5043235", "0.5025626", "0.5009547", "0.49849468", "0.49460635", "0.49247324", "0.49212053", "0.49017346", "0.48811993", "0.48781604", "0.486...
0.5236938
3
This method uses the default sharing intent within the Android framework to allow the user to share books on various social media platforms.
public void share(View view){ Toast.makeText(this, "Loading share options ...", Toast.LENGTH_SHORT).show(); //Create an intent to share Intent sharingIntent = new Intent(Intent.ACTION_SEND); sharingIntent.setType("text/plain"); String shareBody = "You should check out " + getStri...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected void shareIt() {\n\t\tIntent sharingIntent = new Intent(android.content.Intent.ACTION_SEND);\r\n\t\tsharingIntent.setType(\"text/plain\");\r\n\t\tString shareBody = content.getText().toString();\r\n\t\tsharingIntent.putExtra(android.content.Intent.EXTRA_SUBJECT, \"Sharing\");\r\n\t\tsharingIntent.putExtr...
[ "0.7521105", "0.72408193", "0.72402835", "0.72047055", "0.71892256", "0.71800864", "0.7160171", "0.69612974", "0.6890087", "0.6877773", "0.68228686", "0.6791619", "0.67722034", "0.676686", "0.67595935", "0.67570484", "0.6752525", "0.6715051", "0.6695619", "0.6661597", "0.6658...
0.77904594
0
Uses the BrowserIntent to link take user to web page that displays more information about the book.
public void viewInfo(View view){ if(currentBook.ISBN13 != null){//If the data for ISBN has been retrieved //Open browser with information String bookLink = GOOGLE_BASE_LINK + currentBook.ISBN13; Intent browserIntent = new Intent(Intent.ACTION_VIEW); browserIntent....
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void createBrowserIntent(View view){\n Uri uri = Uri.parse(\"https://www.linkedin.com/in/chidi-uwaleke-3769b9a8/\");\n\n //Step 2: Create a browserIntent with action 'Intent.ACTION_VIEW'\n Intent browserIntent = new Intent(Intent.ACTION_VIEW);\n\n //Step 3: Set the data of the in...
[ "0.6616492", "0.64990646", "0.6405049", "0.6325289", "0.63050824", "0.6296583", "0.6230819", "0.6213178", "0.6202709", "0.61943525", "0.6186243", "0.61847484", "0.61782753", "0.61701024", "0.614733", "0.6133908", "0.6132503", "0.61097187", "0.60978985", "0.60959417", "0.60951...
0.7539344
0
Adds book to liked and changes icon. If the book is already liked then the book is removed from the 'liked' list that is stored in SharedPreferences and the icon is changed back.
public void likeBook(View v) { SharedPreferences sharedPreferences = getSharedPreferences(getString(R.string.preference_file_key), Context.MODE_PRIVATE); SharedPreferences.Editor prefEditor = sharedPreferences.edit(); try { //If not already liked if (!liked) { ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void onFavouritesIconPressed() {\n if (currentAdvertIsFavourite()) {\n dataModel.removeFromFavourites(advertisement);\n view.setIsNotAFavouriteIcon();\n } else {\n dataModel.addToFavourites(advertisement);\n view.setIsAFavouriteIcon();\n }\n ...
[ "0.5942323", "0.59204286", "0.58048034", "0.5704944", "0.55647576", "0.5558586", "0.549651", "0.54421836", "0.54283965", "0.5421941", "0.5404735", "0.5355701", "0.52988446", "0.5246586", "0.5238688", "0.5219788", "0.52119577", "0.5211058", "0.5163624", "0.5157798", "0.5130049...
0.76503676
0
Submits comment Creates URI and URL string to request to add the comment. Then volley is used to ping the url and add comment to database. Edit Texts are also cleared.
public void addComment(View v) { //Get review views SimpleRatingBar rating = (SimpleRatingBar) mLeaveReview.findViewById(R.id.comment_h_rating); EditText title = (EditText) mLeaveReview.findViewById(R.id.comment_h_title); EditText comment = (EditText) mLeaveReview.findViewById(R.id.comme...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void submitComment(View view){\n //make url\n String url = \"\";\n try {\n url = App.baseURL + \"posts/comment/\" + URLEncoder.encode(forumPost.getId(), \"UTF-8\");\n } catch(UnsupportedEncodingException e) {\n Log.e(\"Error\", \"Caught encoding exception: \...
[ "0.73554", "0.68813115", "0.6862447", "0.6827121", "0.64887106", "0.64814746", "0.6352603", "0.6276106", "0.62303454", "0.60712534", "0.60376686", "0.59839565", "0.5948048", "0.591639", "0.5846076", "0.58339965", "0.58115727", "0.58047885", "0.580064", "0.57288355", "0.571136...
0.67941046
4
Refreshes the screen data by restarting the activity.
private void refreshScreen(){ Intent thisIntent = getIntent(); finish(); startActivity(thisIntent); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n public void onRestart() {\r\n super.onRestart();\r\n refreshData();\r\n }", "private void refresh() {\n\t\tIntent intent = new Intent(BacklogActivity.this, BacklogActivity.class);\n\t\tstartActivity(intent);\n\t}", "@Override\r\n public void onResume() {\r\n super.on...
[ "0.7478787", "0.7107211", "0.6997274", "0.67614466", "0.6744368", "0.6646439", "0.6645906", "0.6624859", "0.6573657", "0.65153646", "0.65046024", "0.6502828", "0.6496647", "0.6491158", "0.6411138", "0.640377", "0.6401852", "0.63246536", "0.6286516", "0.62845427", "0.62832266"...
0.7430834
1
private boolean flipped = false;
@Override public void init() { runtime.reset(); robot.init(hardwareMap); telemetry.addData("Status", "Initialized"); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void flip() {\n _flipped = !_flipped;\n }", "public void flip(){\n this.faceDown = !this.faceDown;\n }", "public void setFlip() {\n\t\tflip = true;\n\t}", "public void flipCard() {\n this.faceUp = !faceUp;\n }", "private boolean isFlipped(){\n switch(this.orientation){\n ...
[ "0.8638879", "0.78943264", "0.74888486", "0.72073466", "0.7204576", "0.7188037", "0.7003085", "0.6992688", "0.6859282", "0.6769277", "0.6696064", "0.6667495", "0.66481286", "0.6646963", "0.6600926", "0.65589577", "0.6503395", "0.6417559", "0.63540363", "0.6297959", "0.6287034...
0.0
-1
TODO Autogenerated method stub
@Override public void writeByte(int b) throws IOException { }
{ "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 getExr...
[ "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.608016...
0.0
-1
Create the test case
public AppTest( String testName ) { super( testName ); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "Testcase createTestcase();", "@Test\n public void testCreate() {\n\n }", "private void generate_test_code()\n {\n int I;\n DataType[] ParamTypes = m_Problem.getParamTypes();\n DataType ReturnType = m_Problem.getReturnType();\n TestCase[] Cases = m_Problem.getTestCases()...
[ "0.81283677", "0.6874562", "0.68583983", "0.6802808", "0.675316", "0.67282486", "0.6657648", "0.65971994", "0.65593016", "0.6553712", "0.6546584", "0.6538934", "0.6538514", "0.65184474", "0.6518316", "0.64980024", "0.64724445", "0.6466226", "0.6465721", "0.6435358", "0.642735...
0.0
-1
FillDatabase.fillRole(); FillDatabase.fillEmployee(); FillDatabase.fillRestaurant(); FillDatabase.fillFood();
public static void main(String[] args) { EventQueue.invokeLater(new Runnable() { public void run() { try { WelcomePanel welcomePanel = new WelcomePanel(); welcomePanel.setVisible(true); HalfHourBeforeOrderNotificationMailSender.start(); OrderingEmployeeGetterMailSender.start(); Orde...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void fillDatabase() {\n Type.type( \"FOOD\" );\n Type.type( \"HOT\" );\n Type.type( \"SNACK\" );\n }", "public void formDatabaseTable() {\n }", "public static void populateData() {\n\n }", "private void FetchingData() {\n\t\t try { \n\t\t\t \n\t \tmyDbhelper.onCreateData...
[ "0.66403776", "0.6313942", "0.6256737", "0.62383276", "0.6193666", "0.6185827", "0.61647034", "0.6160671", "0.61441195", "0.6107724", "0.6103242", "0.609644", "0.6088091", "0.6076953", "0.6058348", "0.6052191", "0.6043196", "0.59964085", "0.5981998", "0.59719", "0.59663534", ...
0.0
-1
TODO: Make this class abstract to minimize code duplication for Whisper/Shout/etc.
@Override public void parseArgs(ScriptEntry scriptEntry) throws InvalidArgumentsException { boolean specified_targets = false; boolean specified_talker = false; for (aH.Argument arg : aH.interpret(scriptEntry.getArguments())) { // Default target is the attached Player, i...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void onWhisper(TwitchUser sender, TwitchMessage message);", "protected boolean processWhisper(String username, String titles, int rating, int gameNumber, String message){return false;}", "public void processMessage()\n {\n \tif(messageContents.getMessage().containsCommand())\n {\n \tCommand...
[ "0.6699422", "0.62887806", "0.5845896", "0.57235265", "0.56356597", "0.5594465", "0.55819017", "0.5579688", "0.55057836", "0.55037034", "0.54924107", "0.5466897", "0.5460845", "0.54544824", "0.54544824", "0.54544824", "0.54540104", "0.54487425", "0.5426496", "0.5425663", "0.5...
0.0
-1
Find the _Fields constant that matches fieldId, or null if its not found.
public static _Fields findByThriftId(int fieldId) { switch(fieldId) { case 1: // COMB_INSTRUMENT_ID return COMB_INSTRUMENT_ID; case 2: // LEG_ID return LEG_ID; case 3: // LEG_INSTRUMENT_ID return LEG_INSTRUMENT_ID; default: return null; ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@org.apache.thrift.annotation.Nullable\n public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 1: // REFERRAL_LOG_IDS\n return REFERRAL_LOG_IDS;\n default:\n return null;\n }\n }", "@org.apache.thrift.annotation.Nullable\n ...
[ "0.7988653", "0.79170144", "0.7882797", "0.7882797", "0.7882797", "0.7882797", "0.7882797", "0.7882797", "0.77881694", "0.77813965", "0.7731311", "0.7729709", "0.77236223", "0.7714694", "0.7714694", "0.77117044", "0.77109355", "0.7703194", "0.7701422", "0.7697595", "0.7680702...
0.7689275
20
Find the _Fields constant that matches fieldId, throwing an exception if it is not found.
public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!"); return fields; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@org.apache.thrift.annotation.Nullable\n public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 1: // E\n return E;\n default:\n return null;\n }\n }", "@org.apache.thrift.annotation.Nullable\n public static _Fields find...
[ "0.7626831", "0.7626831", "0.7626831", "0.7626831", "0.7626831", "0.7626831", "0.7626831", "0.7621988", "0.7621988", "0.7621988", "0.7621988", "0.7621988", "0.7621988", "0.7621988", "0.7621988", "0.7621988", "0.7621988", "0.7621988", "0.7621988", "0.7621988", "0.7621988", "...
0.0
-1
Find the _Fields constant that matches name, or null if its not found.
public static _Fields findByName(String name) { return byName.get(name); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@org.apache.thrift.annotation.Nullable\n public static _Fields findByName(java.lang.String name) {\n return byName.get(name);\n }", "@org.apache.thrift.annotation.Nullable\n public static _Fields findByName(java.lang.String name) {\n return byName.get(name);\n }", "@org.apache...
[ "0.7641504", "0.7641504", "0.7641504", "0.7641504", "0.7641504", "0.7641504", "0.7641504", "0.7641504", "0.7641504", "0.7641504", "0.7641504", "0.7641504", "0.7641504", "0.7641504", "0.7641504", "0.7641504", "0.7641504", "0.7641504", "0.7641504", "0.7641504", "0.7641504", "...
0.0
-1
Performs a deep copy on other.
public CThostFtdcQryCombinationLegField(CThostFtdcQryCombinationLegField other) { __isset_bitfield = other.__isset_bitfield; if (other.isSetCombInstrumentID()) { this.combInstrumentID = other.combInstrumentID; } this.legID = other.legID; if (other.isSetLegInstrumentID()) { this.legInstru...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "Prototype makeCopy();", "public void copy (WorldState other)\n\t{\n\t\tresetProperties();\n\t\t//Iterate through other state and clone it's properties into this states properties\n\t\tCollection<WorldStateProperty> otherProperties = other.properties.values();\n\t\tfor (WorldStateProperty property : otherProperti...
[ "0.7214815", "0.6982586", "0.6743959", "0.66792786", "0.6563397", "0.6549605", "0.65230364", "0.652084", "0.64842516", "0.64743775", "0.6450891", "0.6438907", "0.64186275", "0.640633", "0.6403375", "0.63743764", "0.6373319", "0.6358263", "0.6322797", "0.63214344", "0.62839", ...
0.0
-1
Returns true if field combInstrumentID is set (has been assigned a value) and false otherwise
public boolean isSetCombInstrumentID() { return this.combInstrumentID != null; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public boolean isSetLegInstrumentID() {\n return this.legInstrumentID != null;\n }", "public boolean isSetCarid() {\n return __isset_bit_vector.get(__CARID_ISSET_ID);\n }", "public boolean isSetCarproviceid() {\n return __isset_bit_vector.get(__CARPROVICEID_ISSET_ID);\n }", "public boolean isSetS...
[ "0.71488076", "0.6650929", "0.64542747", "0.6435944", "0.6350563", "0.6319693", "0.6294854", "0.6294691", "0.62830395", "0.6277389", "0.6242171", "0.6242171", "0.6242171", "0.6242171", "0.6242171", "0.6242171", "0.6242171", "0.6242171", "0.6242171", "0.6242171", "0.6242171", ...
0.88055277
0
Returns true if field legID is set (has been assigned a value) and false otherwise
public boolean isSetLegID() { return EncodingUtils.testBit(__isset_bitfield, __LEGID_ISSET_ID); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public boolean isSetLegInstrumentID() {\n return this.legInstrumentID != null;\n }", "public boolean isSetID()\n {\n synchronized (monitor())\n {\n check_orphaned();\n return get_store().find_attribute_user(ID$24) != null;\n }\n }", "public boolean isSetID()...
[ "0.72697645", "0.7210582", "0.7144296", "0.7144296", "0.70328885", "0.6950282", "0.68681335", "0.68681335", "0.68490577", "0.68183583", "0.67763853", "0.67763853", "0.67763853", "0.67763853", "0.67763853", "0.676322", "0.672938", "0.6711504", "0.66810757", "0.66626126", "0.66...
0.81419826
0
Returns true if field legInstrumentID is set (has been assigned a value) and false otherwise
public boolean isSetLegInstrumentID() { return this.legInstrumentID != null; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public boolean isSetCombInstrumentID() {\n return this.combInstrumentID != null;\n }", "public boolean isSetLegID() {\n return EncodingUtils.testBit(__isset_bitfield, __LEGID_ISSET_ID);\n }", "public boolean isSetGPSAntennaDetailsID()\r\n {\r\n synchronized (monitor())\r\n ...
[ "0.75269705", "0.71658224", "0.68164825", "0.6509506", "0.650396", "0.645891", "0.6435192", "0.6435192", "0.6431039", "0.6385499", "0.6385499", "0.6375238", "0.6369641", "0.6360522", "0.62953573", "0.6292023", "0.6289726", "0.6289726", "0.6261819", "0.62492883", "0.6245284", ...
0.857768
0
Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise
public boolean isSet(_Fields field) { if (field == null) { throw new IllegalArgumentException(); } switch (field) { case COMB_INSTRUMENT_ID: return isSetCombInstrumentID(); case LEG_ID: return isSetLegID(); case LEG_INSTRUMENT_ID: return isSetLegInstrumentID(); } ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public boolean isSetField() {\r\n return this.field != null;\r\n }", "public boolean isSetField() {\r\n return this.field != null;\r\n }", "public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n ...
[ "0.79060113", "0.79060113", "0.78340495", "0.7804059", "0.77943885", "0.7781808", "0.7781808", "0.7781808", "0.7781808", "0.7647456", "0.7547984", "0.75460887", "0.7542836", "0.7542836", "0.7542836", "0.7542836", "0.7542836", "0.7542836", "0.7542836", "0.7542836", "0.7542836"...
0.7324956
92
check for required fields check for substruct validity
public void validate() throws org.apache.thrift.TException { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void validate() throws org.apache.thrift.TException {\n if (institutionID == null) {\n throw new org.apache.thrift.protocol.TProtocolException(\"Required field 'institutionID' was not present! Struct: \" + toString());\n }\n if (productids == null) {\n throw new org.apache.thrift.protocol...
[ "0.7539473", "0.7470685", "0.73328", "0.73043805", "0.7298061", "0.729446", "0.72569036", "0.7224551", "0.71366", "0.7128815", "0.71165687", "0.7091956", "0.70724976", "0.7051207", "0.7035449", "0.7030357", "0.69572055", "0.6901006", "0.68596476", "0.66924965", "0.6679102", ...
0.0
-1
TODO Autogenerated method stub
@Override public IBinder onBind(Intent intent) { return null; }
{ "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 getExr...
[ "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.608016...
0.0
-1
TODO Autogenerated method stub
@Override public void onCreate() { super.onCreate(); getLocation(); registerReceiver(); }
{ "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 getExr...
[ "0.66713095", "0.6567948", "0.652319", "0.648097", "0.64770466", "0.64586824", "0.64132667", "0.6376419", "0.62759", "0.62545097", "0.62371093", "0.62237984", "0.6201738", "0.619477", "0.619477", "0.61924416", "0.61872935", "0.6173417", "0.613289", "0.6127952", "0.6080854", ...
0.0
-1
TODO Autogenerated method stub
@Override public void onDestroy() { super.onDestroy(); cleanDate() ; /*服务被杀死时发送广播重启服务 com.jumeng.repairmanager.receiver.BootReceiver*/ Intent intent=new Intent(Consts.RESTART_SERVICE); sendBroadcast(intent); stopForeground(true); }
{ "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 getExr...
[ "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.608016...
0.0
-1
/Snackbar.make(view, "Ouvrir Boite mail", Snackbar.LENGTH_LONG) .setAction("Action", null).show();
@Override public void onClick(View view) { Intent i = new Intent(Intent.ACTION_SEND); i.setType("message/rfc822"); i.putExtra(Intent.EXTRA_EMAIL , new String[]{""}); i.putExtra(Intent.EXTRA_SUBJECT, ""); i.putExtra(Intent.EXTRA...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void onClick(View v) {\n Snackbar.make(v, \"I'm dead! =(\", Snackbar.LENGTH_LONG)\n .setAction(\"Action\", null).show();\n }", "void showErrorSnackbar();", "public void SnackBarB() {\n Snackbar.make(getWindow().getDecorView().getRootView(),\...
[ "0.7368937", "0.7349551", "0.7299585", "0.7271768", "0.72577024", "0.72354466", "0.6982316", "0.69197875", "0.6919547", "0.6873553", "0.68219084", "0.67959225", "0.67882884", "0.6716386", "0.6664343", "0.66454124", "0.6614279", "0.6535092", "0.6525175", "0.6507046", "0.648931...
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.global, 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) {...
[ "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.6862...
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) { int id = item.getItemId(); switch(id) { case R.id.search_bar: Intent change = new Intent(this, SearchableActivity.class); this.startActivity(change); break; case R....
{ "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 ...
[ "0.7904231", "0.78061396", "0.7767007", "0.77273244", "0.76318634", "0.7621818", "0.7585249", "0.7531511", "0.7488678", "0.74574006", "0.74574006", "0.7439257", "0.7421747", "0.7403457", "0.73920685", "0.7387285", "0.7379893", "0.73710734", "0.7363068", "0.73565257", "0.73461...
0.0
-1
Insert the fragment by replacing any existing fragment
@SuppressWarnings("StatementWithEmptyBody") @Override public boolean onNavigationItemSelected(MenuItem item) { FragmentManager fragmentManager = getSupportFragmentManager(); // Highlight the selected item has been done by NavigationView item.setChecked(true); // Set action bar ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void insert(int index, String fragment);", "private void placeNewFragment(Fragment f) {\r\n\t\tFragmentManager manager = getSupportFragmentManager();\r\n FragmentTransaction fragmentTransaction = manager.beginTransaction();\r\n fragmentTransaction.replace(R.id.fragmentHolder, f);\r\n ...
[ "0.7290206", "0.6577835", "0.6399756", "0.6274405", "0.6236324", "0.62290114", "0.6149398", "0.60838735", "0.6081339", "0.6071032", "0.6068844", "0.6059895", "0.60295063", "0.5992277", "0.59757584", "0.59647787", "0.5958686", "0.5938803", "0.5936428", "0.5930564", "0.59123224...
0.0
-1
Runs whenever a new page is opened
@SuppressLint("RestrictedApi") public boolean onNavigationItemSelected(MenuItem item) { int id = item.getItemId(); RecyclerView recyler = findViewById(R.id.recycler); ImageView wallpaper_view = findViewById(R.id.wallpaper_view); Button button = findViewById(R.id.button); Fl...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void establish() {\n logger.info(\"Opening page {}...\", pageObject);\n initializePage();\n pageObject.open();\n }", "@Override\n\t\t\tpublic void windowWillOpen(WebBrowserWindowWillOpenEvent arg0) {\n\t\t\t}", "public void loadPage() {\n\t\tLog.i(TAG, \"MyGardenLi...
[ "0.67317176", "0.64411795", "0.6328131", "0.62612265", "0.61831653", "0.6160683", "0.61160296", "0.6081126", "0.60765326", "0.6074517", "0.6055209", "0.604885", "0.60458183", "0.60089606", "0.5998179", "0.5982323", "0.5981409", "0.5945202", "0.59389675", "0.59021634", "0.5874...
0.0
-1
Loads the info for the server status page
private void getComments() { servernames.clear(); player_count_labels.clear(); status_images.clear(); game_images.clear(); map_names.clear(); game_dirs.clear(); pings.clear(); alert_icons.clear(); ImageView wallpaper_view = findViewById(R.id.wall...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void loadStatus (){\n\t}", "public static void getStatus() {\n\t\ttry {\n\t\t\tint i = 1;\n\t\t\tList<Object[]>serverDetails = ServerStatus.getServerDetails();\n\t\t\tfor (Object[] servers:serverDetails){\n\t\t\t\tServerStatus.verifyServerStatus(i,(String)servers[0], (String)servers[1], (String)servers[2...
[ "0.69594973", "0.6736511", "0.62801886", "0.60338753", "0.5978273", "0.58829314", "0.58686936", "0.5843331", "0.58388317", "0.58250654", "0.5821755", "0.57935953", "0.578146", "0.57583094", "0.572037", "0.56874704", "0.5667856", "0.5659748", "0.561655", "0.5613263", "0.560815...
0.0
-1
////////////////////////////////////////////////////////////////////// Description: Initializes element. All flags are initialized to FALSE (0). Use: public
public void init(SoState state) // //////////////////////////////////////////////////////////////////////// { flags = 0; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public BasicElementList() {\n\t}", "public XMLElement() {\n this(new Properties(), false, true, true);\n }", "public XmlElement() {\n }", "Element() {\n\t}", "public ListElement()\n\t{\n\t\tthis(null, null, null); //invokes constructor with 3 arguments\n\t}", "public GenericElement() {\n\t}", "p...
[ "0.66380554", "0.6576668", "0.6440972", "0.6350715", "0.62753785", "0.6233419", "0.62330914", "0.6231925", "0.6227745", "0.61786646", "0.6130607", "0.60993737", "0.60983425", "0.6071096", "0.6069435", "0.605703", "0.60437423", "0.60404885", "0.601889", "0.6018874", "0.5972095...
0.0
-1
////////////////////////////////////////////////////////////////////// Description: Pushes element, copying flags from previous top instance. Use: public
public void push(SoState state) // //////////////////////////////////////////////////////////////////////// { SoTextureOverrideElement elt = (SoTextureOverrideElement )getNextInStack(); flags = elt.flags; elt.capture(state); // Capture previous element }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void push(TYPE element);", "public void push(Object anElement);", "public void push(E elem) {\n if (elem != null) {\r\n contents[++top] = elem;\r\n }\r\n\r\n // Usually better to resize after an addition rather than before for\r\n // multi-threading reasons. Although, that is not import...
[ "0.72854894", "0.71971947", "0.7111874", "0.710315", "0.6889401", "0.6886215", "0.6886215", "0.6884614", "0.6866489", "0.68371713", "0.6827584", "0.6779246", "0.6733224", "0.67316216", "0.67051554", "0.67042035", "0.66852456", "0.66843694", "0.664481", "0.6593726", "0.6582200...
0.60930675
76
////////////////////////////////////////////////////////////////////// Description: Set texture quality override flag Use: public, static
public static boolean getQualityOverride(SoState state) // //////////////////////////////////////////////////////////////////////// { SoTextureOverrideElement elt; elt = ( SoTextureOverrideElement ) getConstElement(state, classStackIndexMap.get(SoTextureOverrideElement.class)); return (elt.flags & F...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static void\nsetQualityOverride(SoState state,\n boolean override)\n//\n////////////////////////////////////////////////////////////////////////\n{\n SoTextureOverrideElement elt;\n elt = (SoTextureOverrideElement )getElement(state, classStackIndexMap.get...
[ "0.8257847", "0.7528094", "0.6915229", "0.6915229", "0.68557507", "0.67577094", "0.65711975", "0.65129554", "0.6439568", "0.6150707", "0.60705584", "0.5808821", "0.58047056", "0.57949793", "0.5784069", "0.5751676", "0.5726987", "0.5726987", "0.5726987", "0.56977105", "0.56702...
0.7721831
1
////////////////////////////////////////////////////////////////////// Description: Set texture image override flag Use: public, static
public static boolean getImageOverride(SoState state) // //////////////////////////////////////////////////////////////////////// { SoTextureOverrideElement elt; elt = ( SoTextureOverrideElement ) getConstElement(state, classStackIndexMap.get(SoTextureOverrideElement.class)); return (elt.flags & Fla...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static void\nsetImageOverride(SoState state,\n boolean override)\n//\n////////////////////////////////////////////////////////////////////////\n{\n SoTextureOverrideElement elt;\n elt = (SoTextureOverrideElement )getElement(state, classStackIndexMap.get(SoT...
[ "0.84497225", "0.7155416", "0.7128719", "0.68462664", "0.6756074", "0.63154393", "0.6271764", "0.6204915", "0.61863035", "0.61754304", "0.61648023", "0.6097051", "0.60388714", "0.60340935", "0.6020097", "0.60049796", "0.59926933", "0.5985049", "0.59759545", "0.59398705", "0.5...
0.75170505
1
////////////////////////////////////////////////////////////////////// Description: Set texture quality override flag Use: public, static
public static void setQualityOverride(SoState state, boolean override) // //////////////////////////////////////////////////////////////////////// { SoTextureOverrideElement elt; elt = (SoTextureOverrideElement )getElement(state, classStackIndexMap.get(SoTextureOv...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static boolean\ngetQualityOverride(SoState state)\n//\n////////////////////////////////////////////////////////////////////////\n{\n SoTextureOverrideElement elt;\n elt = ( SoTextureOverrideElement )\n getConstElement(state, classStackIndexMap.get(SoTextureOverrideElement.class));\n return (...
[ "0.7720885", "0.7528898", "0.69170266", "0.69170266", "0.68575865", "0.6759604", "0.65731084", "0.6514372", "0.6439399", "0.6151638", "0.6071836", "0.58086586", "0.58068854", "0.5796104", "0.57848954", "0.57520545", "0.5728276", "0.5728276", "0.5728276", "0.56996566", "0.5668...
0.8256089
0
////////////////////////////////////////////////////////////////////// Description: Set texture image override flag Use: public, static
public static void setImageOverride(SoState state, boolean override) // //////////////////////////////////////////////////////////////////////// { SoTextureOverrideElement elt; elt = (SoTextureOverrideElement )getElement(state, classStackIndexMap.get(SoTextureOverri...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static boolean\ngetImageOverride(SoState state)\n//\n////////////////////////////////////////////////////////////////////////\n{\n SoTextureOverrideElement elt;\n elt = ( SoTextureOverrideElement )\n getConstElement(state, classStackIndexMap.get(SoTextureOverrideElement.class));\n return (el...
[ "0.75170505", "0.7155416", "0.7128719", "0.68462664", "0.6756074", "0.63154393", "0.6271764", "0.6204915", "0.61863035", "0.61754304", "0.61648023", "0.6097051", "0.60388714", "0.60340935", "0.6020097", "0.60049796", "0.59926933", "0.5985049", "0.59759545", "0.59398705", "0.5...
0.84497225
0
is drop turned on for this component?
public ContentMetadataTransferHandler(ContentMetadataTablePanel panel, boolean dropEnabled) { this.dropEnabled = dropEnabled; contentMetadataTablePanel = panel; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public boolean isDropped();", "public void setDropEnabled(boolean enabled) { this.dropEnabled = enabled; }", "public boolean isDropped(){\r\n\t\treturn getDirectHolder() == World.world;\r\n\t}", "public boolean isDropper() {\n return this.type == Type.DROPPER;\n }", "@java.lang.Override\n public...
[ "0.79471594", "0.7855235", "0.74866784", "0.7455501", "0.7448492", "0.74057263", "0.7400805", "0.73429644", "0.72341037", "0.72170305", "0.7144071", "0.7129026", "0.70427877", "0.70329934", "0.69655204", "0.6892083", "0.6878152", "0.6838271", "0.68320537", "0.67982405", "0.67...
0.0
-1
keep the indices (needed for cleanup)
protected Transferable createTransferable(JComponent component) { rows = contentMetadataTablePanel.getTable().getSelectedRows(); // return a new transferable return new MediaItemsTransferable(contentMetadataTablePanel.getContentIds()); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void indexReset();", "public abstract void deselectAllIndexes();", "public void clear()\n\t\t{\n\t\t\tindices.clear();\n\t\t}", "private void reIndex()\n {\n for(int i = 0; i < NodeList.size(); i++)\n NodeList.get(i).setID(i);\n ID = NodeList.size();\n }", "void clearAllIndex...
[ "0.7089279", "0.69297296", "0.6636842", "0.66291636", "0.66021764", "0.63395095", "0.6334954", "0.6309191", "0.6211532", "0.6200909", "0.61678225", "0.6153325", "0.6132033", "0.61115134", "0.5988047", "0.5987674", "0.59608126", "0.59592384", "0.5931642", "0.58985513", "0.5875...
0.0
-1
XXX:0:20050112iain: assume that if drop is not enabled, table is immutable
public int getSourceActions(JComponent c) { return dropEnabled ? COPY_OR_MOVE : COPY; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic boolean dropTable() {\n\t\treturn false;\r\n\t}", "public void doDropTable();", "public void dropTable() {\n }", "@Test(timeout = 4000)\n public void test064() throws Throwable {\n Boolean boolean0 = SQLUtil.mutatesStructure(\"alter table\");\n assertTrue(boolean0);\n }...
[ "0.7038221", "0.6848191", "0.6699516", "0.6610632", "0.6602454", "0.6521905", "0.64438814", "0.62637377", "0.6208636", "0.6110792", "0.6063299", "0.60445064", "0.59050465", "0.5898358", "0.58942276", "0.5887478", "0.5881932", "0.5872281", "0.5851443", "0.58505625", "0.5844344...
0.0
-1
Invoked as part of the UI system when items are dropped or pasted
public boolean importData(JComponent c, Transferable t) { if (canImport(c, t.getTransferDataFlavors())) { try { List mediaItemList = (List)t.getTransferData(MediaItemsTransferable.flavor); JTable target = (JTable)c; if (target != contentMetadataTablePanel.getTable()) ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void mouseDrop()\n {\n }", "@Override\n\tpublic void dragDropped() {\n\n\t}", "protected void dropIt() {\n\t\tshowUnselected();\n\n\t\tfirePropertyChange(\n\t\t\t\"insertQuestion\",\n\t\t\tSwingUtilities.getAccessibleIndexInParent(this),\n\t\t\t-1);\n\t}", "public void drop(DropTa...
[ "0.6851035", "0.67943364", "0.6777324", "0.67620903", "0.67266935", "0.6712614", "0.66219264", "0.66189367", "0.6593218", "0.6564389", "0.6544195", "0.6485343", "0.64788467", "0.6476779", "0.6442751", "0.6421693", "0.64172566", "0.6410204", "0.6396535", "0.63864577", "0.62905...
0.0
-1
if drop is not enabled, always return false
public boolean canImport(JComponent c, DataFlavor[] flavors) { if (!dropEnabled) { return false; } // loop over the flavors list in an attempt to find a matching flavor for (int i = 0; i < flavors.length; i++) { if (MediaItemsTransferable.flavor.equals(flavors[i])) { ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setDropEnabled(boolean enabled) { this.dropEnabled = enabled; }", "public boolean canDrop(){\n return this.collectedItems < STORAGE_AMOUNT && System.currentTimeMillis() - lastDrop >= delayInMillis;\n }", "public boolean isDropped();", "public boolean isDropper() {\n return this.t...
[ "0.7795847", "0.76610625", "0.762426", "0.73454225", "0.7340482", "0.7258292", "0.72016454", "0.71953666", "0.71592903", "0.7086277", "0.7081821", "0.7078154", "0.6967361", "0.6962383", "0.6899938", "0.6871794", "0.6835999", "0.68309546", "0.68235844", "0.67821765", "0.672411...
0.5764615
75
Initialize the current page offset to the given one.
public PaginatedResult<T> start(ResultPage resultPage) { return start(resultPage, null); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setInitalOffset(double offset){\n \tmodule.forEach(m -> m.setInitialOffset(offset));\n }", "public void setOffset(Integer offset) {\n this.offset = offset;\n }", "public void setOffset(Integer offset) {\n this.offset = offset;\n }", "public void setOffset(Integer offset)...
[ "0.66970885", "0.6374048", "0.6374048", "0.6374048", "0.6370779", "0.63271016", "0.6300352", "0.62656873", "0.61924946", "0.61622965", "0.612168", "0.6000399", "0.5996919", "0.59916985", "0.59648997", "0.59627205", "0.5938094", "0.59185636", "0.5874295", "0.5836091", "0.57974...
0.0
-1
TODO Autogenerated method stub
@Override public void print(String tab, FileWriter fw) { System.out.println(tab + "LiteralExpression: " + number.toString()); try { fw.write(tab + "LiteralExpression: " + number.toString()); } catch (IOException e) { e.printStackTrace(); } }
{ "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 getExr...
[ "0.66713095", "0.6567948", "0.652319", "0.648097", "0.64770466", "0.64586824", "0.64132667", "0.6376419", "0.62759", "0.62545097", "0.62371093", "0.62237984", "0.6201738", "0.619477", "0.619477", "0.61924416", "0.61872935", "0.6173417", "0.613289", "0.6127952", "0.6080854", ...
0.0
-1
TODO Autogenerated method stub
@Override public Type generateIntermediateCode(Function fun) { if(number instanceof Double) return Type.FLOAT; else if (number instanceof Integer) return Type.INT; return Type.NULL; }
{ "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 getExr...
[ "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.608016...
0.0
-1
/ JADX WARNING: inconsistent code. / Code decompiled incorrectly, please refer to instructions dump.
private boolean processPendingItems() { ShortcutInfo shortcut = null; try { synchronized (this.mPendingItems) { if (this.mPendingItems.size() == 0) { return false; } PendingItem item = (PendingItem) this.mPendingItems.pop();...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected void method_2241() {\r\n // $FF: Couldn't be decompiled\r\n }", "private void method_7083() {\r\n // $FF: Couldn't be decompiled\r\n }", "protected void method_2145() {\r\n // $FF: Couldn't be decompiled\r\n }", "protected void method_2247() {\r\n // $FF: Couldn't be decom...
[ "0.76168954", "0.75731987", "0.7526049", "0.7450839", "0.745083", "0.743781", "0.7381979", "0.7381979", "0.73668504", "0.7353776", "0.7342305", "0.7315385", "0.7309052", "0.7305908", "0.72749174", "0.7252735", "0.7221748", "0.7198023", "0.7177586", "0.71367776", "0.7106741", ...
0.0
-1
Created by max.ross on 11/15/14.
public interface StorageCallbacks { void onNewTrip(Trip trip); void onUpdatedTrip(Trip updatedTrip); void onDeletedTrip(String deletedTripId); void onFullRefresh(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void func_104112_b() {\n \n }", "public final void mo51373a() {\n }", "@Override\n public void perish() {\n \n }", "protected boolean func_70814_o() { return true; }", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "@Override\n\tpublic void comer() {...
[ "0.57229435", "0.56852776", "0.56731385", "0.5616467", "0.5545014", "0.54917216", "0.5488016", "0.54563105", "0.5453071", "0.54518676", "0.54443896", "0.5432857", "0.5432857", "0.5432604", "0.54171395", "0.5417088", "0.53893894", "0.5360963", "0.53520066", "0.5347305", "0.534...
0.0
-1
Subclass must call this when new request is received.
protected long requestProcessingStarted() { requestsInProcessing++; return System.currentTimeMillis(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\t\t\tpublic void onRequest() {\n\t\t\t\t\r\n\t\t\t}", "@Override\n public void receiveRequest(final Request request) {\n\n }", "@Override\n\tpublic void receiveRequest() {\n\n\t}", "public synchronized void onNewRequest() {\r\n\t\tallRequestsTracker.onNewRequest();\r\n\t\t...
[ "0.73978204", "0.7015699", "0.6940602", "0.6939925", "0.690818", "0.6874043", "0.6849849", "0.6835388", "0.6725412", "0.6636853", "0.65931237", "0.65666574", "0.65354794", "0.64442384", "0.6409482", "0.63907033", "0.63907033", "0.6334125", "0.63132393", "0.62764645", "0.62618...
0.0
-1
Subclass must call this when new request is processed.
protected void requestProcessingStopped(long startTime) { requestsInProcessing--; lastProcessingTime = System.currentTimeMillis() - startTime; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\t\t\tpublic void onRequest() {\n\t\t\t\t\r\n\t\t\t}", "private Request() {\n initFields();\n }", "@Override\n\tpublic void initRequest() {\n\n\t}", "@Override\n\t\t\t\t\tpublic void onReqStart() {\n\t\t\t\t\t}", "public synchronized void onNewRequest() {\r\n\t\tallRequestsTracker.onNe...
[ "0.717207", "0.69533783", "0.68395543", "0.6815575", "0.67918354", "0.6720311", "0.66405314", "0.6614798", "0.65520823", "0.65431035", "0.650142", "0.64849615", "0.6481697", "0.64638245", "0.64634854", "0.64634854", "0.64544016", "0.64092", "0.63958496", "0.637522", "0.634785...
0.0
-1
When button is clicked, call up to owning activity.
@Override public void onClick(View v) { String text = textField.getText().toString(); //String priority = priorityField.getText().toString(); Calendar newDate = Calendar.getInstance(); newDate.set(datePicker.getYear(), datePicker.getMonth(), datePicker.getDayOfMonth()); ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void clickedButton(View view) {\n\n switch (view.getId()) {\n case R.id.contactBook:\n intent = new Intent(this, ContactBookActivity.class);\n startActivity(intent);\n break;\n case R.id.message:\n intent = new Intent(t...
[ "0.7394604", "0.7341343", "0.7296216", "0.71650475", "0.7154248", "0.7119825", "0.7062442", "0.70499665", "0.70437837", "0.6973891", "0.6942464", "0.6918487", "0.69154465", "0.69151133", "0.6909735", "0.6908135", "0.6907992", "0.6907432", "0.68951356", "0.687527", "0.6874376"...
0.0
-1
Performs a click in the middle of the element.
public void click() throws ApplicationException, ScriptException { mouse.click(driver, locator); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void performClick() {\n\t\tgetWrappedElement().click();\n\t}", "public final void click() {\n getUnderlyingElement().click();\n }", "void click(int x, int y, Keys... modifiers);", "void clickSomewhereElse();", "public void clickOn(WebElement element) {\r\n\t\telement.click();\r\n\t}", "v...
[ "0.7146138", "0.7011825", "0.6772781", "0.6490523", "0.64449716", "0.64428645", "0.6299638", "0.628867", "0.6287842", "0.6262816", "0.6254941", "0.6216322", "0.62030894", "0.61989295", "0.617513", "0.6144076", "0.6141994", "0.61340576", "0.6119782", "0.6116015", "0.6115261", ...
0.6335799
6
Performs a click on the element if it exists.
public void clickIfExists() { try { waitTillElementVisible(5000); mouse.click(driver, locator); } catch (Exception e) { log.error("exception :", e); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void performClick() {\n\t\tgetWrappedElement().click();\n\t}", "public final void click() {\n getUnderlyingElement().click();\n }", "public void myClick(WebElement element) \n\t{\n\t\twaitHelper.waitForElement(element, ObjectReader.reader.getExplicitWait());\n\t\telement.click();\t\n\t}", "@...
[ "0.74816096", "0.7227264", "0.7208013", "0.7205225", "0.7143088", "0.71279866", "0.7115852", "0.7076389", "0.7068937", "0.7052129", "0.6993996", "0.6944417", "0.6943919", "0.6888682", "0.6882423", "0.6831879", "0.675739", "0.675439", "0.66054344", "0.65405756", "0.6520049", ...
0.75566524
0
private static byte pointType = POINT_TYPE_STANDARD; process the route data on a map
public FMap(String rute) { super(rute); init(rute); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void onDirectionSuccess(List<Points> point) {\n for (Points points:point){\n PolylineOptions polyLineOptions = new PolylineOptions().geodesic(true).color(Color.BLUE\n ).width(15);\n for (int i = 0; i < points.points.size(); i++)\n polyLin...
[ "0.61692375", "0.5972977", "0.59434736", "0.5938343", "0.577544", "0.57661295", "0.5723379", "0.5689372", "0.5689081", "0.5662223", "0.55785877", "0.5578459", "0.55443627", "0.55383617", "0.55350214", "0.55311906", "0.5505448", "0.5494284", "0.549412", "0.54925376", "0.548963...
0.0
-1
animating doesn't allow to perform user actions
public boolean execute(byte action) { if (diff[0] != 0 || diff[1] != 0) { return false; } else { getPoint(currentPoint); if (currentPointAction == FInteractionUtils.ACTION_NONE) { switch (action) { case ACTION_NEXT_POINT: ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void animate() {\n }", "@Override\r\n protected boolean hasAnimation() {\r\n return true;\r\n }", "protected abstract void animate(int anim);", "default boolean shouldAnimate() {\n return true;\n }", "@Override\n public void actionPerformed( Ac...
[ "0.72050864", "0.6864488", "0.6714957", "0.6706994", "0.66267616", "0.6579531", "0.65335184", "0.651023", "0.6488881", "0.64326614", "0.64262575", "0.64078325", "0.6404332", "0.637358", "0.6367584", "0.63300204", "0.6250111", "0.622817", "0.6215168", "0.62126905", "0.62121934...
0.0
-1
executes an action for current point. can be loading a new map or anyelse
public static void runFocusPoint() { //center map to current point point = getPoint(currentPoint); if (prevPoint[0] != point[0]) { if (prevPoint[0] > point[0]) { diff[0] = prevPoint[0] - point[0]; prevPoint[0] -= FImageGrid.scrollIncrement; ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public boolean execute(byte action) {\n if (diff[0] != 0 || diff[1] != 0) {\n return false;\n } else {\n getPoint(currentPoint);\n if (currentPointAction == FInteractionUtils.ACTION_NONE) {\n switch (action) {\n case ACTION_NEXT_POINT...
[ "0.6541844", "0.6274297", "0.6185406", "0.61656", "0.5877519", "0.58515227", "0.5832594", "0.58019716", "0.57768655", "0.575372", "0.5750313", "0.5743932", "0.5726429", "0.57171535", "0.57084596", "0.56459206", "0.5643537", "0.5621432", "0.5616869", "0.5612973", "0.5608591", ...
0.5194045
95
Gets the x,y values for a point, applying transformation for each floor
private static final int[] getPoint(int point) { int[] ret = new int[2]; if (point >= firstPoint && point <= endPoint) { ret = getPoint(ruteData[point + 2]);//ruteData[point + 2]); } return ret; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public abstract List<Point2D> getInterpolatedPoints();", "public Point transform(double x, double y, double z) {\n\t\t\n\t\n\t\tdouble uIso = (x * xToU) + (y * yToU) + (z * zToU);\n\t\tdouble vIso = (x * xToV) + (y * yToV) + (z * zToV);\n\t\t\n\t\tint uDraw = xOffset + (int)(scale * uIso);\n\t\tint vDraw = yOffs...
[ "0.6228836", "0.6119544", "0.6033387", "0.59543866", "0.58941513", "0.58733135", "0.58713543", "0.58433783", "0.5832582", "0.58314484", "0.5826921", "0.5791038", "0.57896674", "0.5789047", "0.5781657", "0.5775954", "0.5770434", "0.57491773", "0.57491773", "0.57378685", "0.573...
0.5684559
23
Paints a information sign centered on the screen
private void paintSign(Graphics g) { point = getPoint(endPoint); int[] maxWH = new int[2]; int x = (FCanvas.canvasWidth - maxWH[0]) >> 1; int y = (FCanvas.canvasHeight - maxWH[1]) >> 1; if (ruteData[RUTE_SOURCE].equals(ruteData[RUTE_DESTINATION])) { auxsb = new String...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void drawInfoWindow(){\n\n p.pushMatrix();\n p.translate(0,0); // translate whole window if necessary\n\n // display name and show\n p.stroke(0);\n p.strokeWeight(2);\n p.textSize(30);\n p.fill(0);\n p.text(\"Info\",735,35);\n p.rectMode(CORNER)...
[ "0.7030646", "0.6878804", "0.6638403", "0.63318765", "0.62237734", "0.6213491", "0.62102765", "0.61943406", "0.61793494", "0.6127409", "0.61236733", "0.608834", "0.60737824", "0.6069579", "0.6055024", "0.60192657", "0.5980172", "0.59705883", "0.59553826", "0.5931985", "0.5919...
0.5654397
48
Paints the hotspot name
private void paintHotspotName(Graphics g, String name, int attPoint) { point = getPoint(attPoint); int[] maxWH = new int[2]; int x = point[0] + currMatrixX + transformCoordenate(mapPos, X_COORD); int y = point[1] + currMatrixY + transformCoordenate(mapPos, Y_COORD); maxWH = Utils...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\t\t\tpublic void mousePressed(MouseEvent e) {\n\t\t\t\tString name = d.getName(e.getX(),e.getY());\r\n\t\t\t\tGraphics g = w.getGraphics();\r\n\t\t\t\tg.setColor(Color.RED);\r\n\t\t\t\tg.setFont(new Font(\"Arial\", Font.BOLD, 12));\r\n\t\t\t\tg.drawString(name, e.getX(), e.getY());\r\n\t\t\t}", "@O...
[ "0.6178541", "0.6150889", "0.59528923", "0.5898555", "0.5837415", "0.5785435", "0.5768438", "0.5694756", "0.5686575", "0.56830007", "0.5679274", "0.5660964", "0.56546897", "0.56272954", "0.56186956", "0.5608737", "0.553899", "0.5529839", "0.552905", "0.55083615", "0.5502495",...
0.7784091
0
Paints a bound of lines corresponding the rute of current map
public void paintRoute(Graphics g, String[] ruteData, int begin, int end, int color) { //System.out.println("painting rute"); end += RUTE_FLOOR + 1; begin += RUTE_FLOOR + 1; if (begin > end || end > ruteData.length || begin < 0 || g == null || ruteData == null) { return; ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void drawMap(HashMap<String, TrailObj> trailCollection,\n\t\t\tGoogleMap mMap2) {\n\n\t\tfor (TrailObj trail : trailCollection.values()) {\n\t\t\tfor (PlacemarkObj p : trail.getPlacemarks()) {\n\t\t\t\tPolylineOptions rectOptions = new PolylineOptions();\n\t\t\t\tfor (LatLng g : p.getCoordinates()) {\n\t\t...
[ "0.69457865", "0.6839494", "0.67469513", "0.65502495", "0.6545268", "0.6510366", "0.63492674", "0.6349073", "0.63433564", "0.6291783", "0.62668365", "0.6265698", "0.6213876", "0.61411023", "0.61331177", "0.61311966", "0.6127988", "0.61243355", "0.61022794", "0.6096112", "0.60...
0.60736156
24
For current floor decrements values to fit map image
public static int transformCoordenate(int floor, byte axis) { switch (floor) { case 0: switch (axis) { case X_COORD: return 0; case Y_COORD: return -103; } break; ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void clearGotoFloor();", "private void resetFValue(){\r\n int length = _map.get_mapSize();\r\n for(int i=0;i<length;i++){\r\n _map.get_grid(i).set_Fnum(10000);\r\n }\r\n }", "public void setCurrentFloor(int i);", "public void advanceFloor(){\n //TODO: write method...
[ "0.62272155", "0.6143575", "0.5912192", "0.5877597", "0.58113265", "0.57600886", "0.5732334", "0.5730637", "0.5710316", "0.5664473", "0.56284714", "0.55753636", "0.55648875", "0.5549245", "0.5548878", "0.5542541", "0.5490046", "0.54340655", "0.5429753", "0.5412152", "0.539623...
0.0
-1
Launch a timer task to perform animations
public static void startTimeout() { t = new Timer(); tt = new TimerTask() { public void run() { while (true) { if (diff[0] > 0 || diff[1] > 0) { try { runFocusPoint(); Thread....
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void anim() {\n // start the timer\n t.start();\n }", "public void startAnimation() {\n timer.start();\n }", "private void startAnimation(){\n\t TimerActionListener taskPerformer = new TimerActionListener();\n\t new Timer(DELAY, taskPerformer).start();\n \t}", "public voi...
[ "0.7544263", "0.7246182", "0.7242279", "0.71568906", "0.7087059", "0.6967717", "0.6866369", "0.6772612", "0.6677174", "0.6647483", "0.6613125", "0.6604971", "0.6589058", "0.65746313", "0.65707827", "0.6566043", "0.64562625", "0.6420543", "0.64187", "0.63731223", "0.6360498", ...
0.58999187
65
cancels and starts the timer task
private void reStartTimeout() { cancelTask(); startTimeout(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void schedule() {\n cancel();\n timer.schedule(new TimerTask() {\n @Override\n public void run() {\n runnable.run();\n }\n }, delay);\n }", "private void cancelTasks() {\n\t\ttimer.cancel();\n\t\ttimer.purge();\n\t}", "public void i...
[ "0.69727796", "0.6959658", "0.6924501", "0.6893426", "0.68928736", "0.6879749", "0.6843557", "0.6831778", "0.6808136", "0.6805002", "0.6779206", "0.67746806", "0.675122", "0.67455125", "0.6742722", "0.6678699", "0.66717273", "0.6646288", "0.66427124", "0.6642089", "0.6631557"...
0.7293428
0
Cancels the timer task
public static void cancelTask() { try { if (Utils.isNotNull(tt)) { tt.cancel(); } if (Utils.isNotNull(t)) { t.cancel(); } } catch (Throwable e) { //Utils.debugModePrintStack(e, "FMap", "cancelTask"); } fi...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void cancelTimeout() {\n timer.cancel();\n }", "protected void cancelTimerTask() {\n ScheduledTimerTask scheduledTimerTask = this.scheduledTimerTask;\n if (null != scheduledTimerTask) {\n this.scheduledTimerTask = null;\n scheduledTimerTask.cancel();\n }\n ...
[ "0.80901897", "0.7879561", "0.7859737", "0.77068967", "0.7683798", "0.7556611", "0.7514316", "0.74251676", "0.7416223", "0.7371887", "0.7349772", "0.7261637", "0.72447264", "0.7087554", "0.703328", "0.7032999", "0.7013701", "0.7010453", "0.6989045", "0.6977052", "0.6977052", ...
0.7763054
3
Map> map = categoryService.getAllCategorys();
@RequestMapping("") public ModelAndView category(){ JSONObject json = categoryService.getAllCategorys(); ModelAndView mv = new ModelAndView("category/category"); mv.addObject("categories",json); mv.addObject("active", "2"); return mv; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Map<String, ArrayList<Category>> getCategories() {\n int mainParentId = 0;\n\n Map<String, ArrayList<Category>> allCategories = new HashMap<String, ArrayList<Category>>();\n\n//get main categories\n\n Set<Category> mainCategories = new HashSet<Category>(categoryDAO.getCategoriesByParent...
[ "0.70071733", "0.70003724", "0.6849101", "0.66830593", "0.66788435", "0.65702933", "0.6548778", "0.65201515", "0.6500094", "0.6467767", "0.63905483", "0.63758886", "0.63690215", "0.6355051", "0.6353978", "0.63510454", "0.6342968", "0.6332103", "0.63314104", "0.6286561", "0.62...
0.0
-1
Initializes a new ConnectionEstablishedEvent.
public ConnectionEstablishedEvent(Number projectVersionID, URI interactiveHostURI) { super(projectVersionID, interactiveHostURI); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setConnectionEstablishedListener()\r\n\t{\r\n\t\tchatModel.getConnectionEstablishedProperty().addListener(\r\n\t\t\t\tnew ChangeListener<Object>()\r\n\t\t\t\t{\r\n\t\t\t\t\t@Override\r\n\t\t\t\t\tpublic void changed(\r\n\t\t\t\t\t\t\tObservableValue<? extends Object> observable,\r\n\t\t\t\t\t\t\tObject...
[ "0.6145692", "0.6144665", "0.60025847", "0.5856653", "0.5673413", "0.5617219", "0.5589475", "0.55713296", "0.54883957", "0.5483745", "0.54184145", "0.5401315", "0.5383925", "0.53347474", "0.5329067", "0.5326161", "0.52484107", "0.5247749", "0.5223674", "0.52066034", "0.518308...
0.7085792
0
This method is used to select the Option by Value from Select Dropdown
public void selectByValue(WebElement webElement,String value) { Select sel = new Select(webElement); sel.selectByValue(value); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void selectValue(WebElement element,String value){\n\t\tSelect options = new Select(element);\n\t\toptions.selectByVisibleText(value);\n\t}", "public void setSingleSelectValue(String value){\n WebElement select = driver.findElement(singleSelectLocator);\n Select sele = new Select(select);\n ...
[ "0.71800566", "0.7120178", "0.70736945", "0.7042331", "0.7010594", "0.69060314", "0.6892334", "0.6881217", "0.6851053", "0.6835097", "0.6673998", "0.65907043", "0.65584654", "0.653555", "0.6525933", "0.6462014", "0.64422005", "0.6411085", "0.6386519", "0.6383082", "0.637079",...
0.681643
10
This method is used to switch the driver control to new window
public String switchToNewWindow(WebDriver driver) { Set<String> ids = driver.getWindowHandles(); Iterator<String> it = ids.iterator(); String pid = it.next(); String cid = it.next(); driver.switchTo().window(cid); return pid; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void switchToNewlyOpenedWindow(){\n\n\t\ttry {\n\t\t\tThread.sleep(1000);\n\t\t\tdriver.getWindowHandles();\n\t\t\tfor(String handle : driver.getWindowHandles())\n\t\t\t{\n\t\t\t\tdriver.switchTo().window(handle);\n\t\t\t}\n\t\t\tLOGGER.info(\"Step : Switching to New Window : Pass\");\n\t\t} catch (Interru...
[ "0.78532225", "0.7248622", "0.7124546", "0.69914496", "0.68951756", "0.6888953", "0.68020666", "0.6722485", "0.67199165", "0.67155737", "0.6694742", "0.66619563", "0.66506094", "0.6631207", "0.65884066", "0.65872675", "0.6547319", "0.6536381", "0.6530998", "0.65294707", "0.65...
0.73981065
1
Extend a partial isomorphism p between two graphs g and h
static boolean extend(LinkedList<Integer> p, boolean [ ][ ]g, boolean [ ][ ]h ) { if(p.size() == g.length){ return true; } for(int i = 0; i < g.length; i++){ if(compatible(p,i,g,h)){ p.add(p.size(),i); if(extend(p,g,h)){ ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public DynamicInducedSubgraph(Graph g) {\n\t\tsuper();\n\t\tGraphTools.copyGraph(g, this);\n\t\tllVertices = new LinkedHashSet<AdjListVertex>(vertices);\n\t\tllEdges = new LinkedHashSet<AdjListEdge>(edges);\n\t}", "private static void handlePolymorphismAlt() {\n for(Transition t : petrinet.getTransitions(...
[ "0.5656938", "0.55794525", "0.5536063", "0.5267724", "0.5128911", "0.5112278", "0.50875145", "0.507589", "0.5043489", "0.5034376", "0.50182986", "0.50130695", "0.49737138", "0.49731046", "0.49512392", "0.49183172", "0.48968908", "0.48469037", "0.48438582", "0.48421225", "0.48...
0.5625398
1
Constructor Takes and keeps a reference of the passed context in order to access to the application assets and resources.
ReligionHelper(Context context) { super(context, DB_NAME, null, DB_VERSION); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public MediaWSDemoApplication(BundleContext context) {\n\t\ttheContext = context ;\n\t}", "public static synchronized void initialize(Context context) {\n instance.context = context;\n initInternal();\n }", "public void initializeContext(Context context) {\n this.context = context;\n }", "public S...
[ "0.69794756", "0.6741497", "0.66805387", "0.66426504", "0.66373855", "0.66357106", "0.6633204", "0.658124", "0.6427065", "0.6417985", "0.6412222", "0.6372571", "0.63521826", "0.63247746", "0.6321756", "0.63128287", "0.63061184", "0.628484", "0.6282229", "0.6278044", "0.625603...
0.0
-1
add file to zip
public AddFileToZip add(final File source) { return new AddFileToZip(source); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void addFileToZip(File file, Zipper z, SynchronizationRequest req) \n throws IOException {\n\n if (file.isFile()) {\n z.setBaseDirectory(req.getTargetDirectory());\n z.addFileToZip(file, _out);\n } else if (file.isDirectory()) {\n z.setBaseDirectory(req.get...
[ "0.7833795", "0.76476216", "0.7411697", "0.71645886", "0.6952003", "0.6846795", "0.6657516", "0.6650822", "0.65793985", "0.65160924", "0.6499886", "0.64751124", "0.64541", "0.6421044", "0.6409519", "0.638558", "0.6377292", "0.6376992", "0.6352025", "0.6321199", "0.6297783", ...
0.68222564
6
Defines optional entry path.
public AddFileToZip path(final String path) { this.path = path; return this; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "interface Entry {\n\n /** The entry name separator as a string. */\n String SEPARATOR = ArchiveEntry.SEPARATOR;\n\n /** The entry name separator as a character. */\n char SEPARATOR_CHAR = ArchiveEntry.SEPARATOR_CHAR;\n\n /**\n * Denotes the entry name of the virtual root directory.\n * This ...
[ "0.5599062", "0.5584351", "0.5422554", "0.52847517", "0.5214141", "0.51012343", "0.50868493", "0.5043184", "0.502005", "0.49912852", "0.4983149", "0.49768338", "0.49649218", "0.49337634", "0.49223787", "0.491071", "0.49079615", "0.490515", "0.48931992", "0.48629138", "0.48374...
0.0
-1
Defines if folders content should be added. Ignored when used for files.
public AddFileToZip recursive() { this.recursive = true; return this; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "boolean isFolder();", "public abstract boolean canCreate(FolderType type);", "private void addFolder(){\n }", "@java.lang.Deprecated boolean hasFolder();", "@Override\n public boolean isItFolder(String path) {\n Path file = new File(path).toPath();\n boolean isDirectory = Files.isDirector...
[ "0.6649182", "0.622713", "0.6121843", "0.5902374", "0.56339437", "0.56055963", "0.5507626", "0.54789364", "0.54737747", "0.547086", "0.5460227", "0.5441419", "0.53542733", "0.52973056", "0.5295286", "0.5265786", "0.52375656", "0.52365184", "0.52364945", "0.5198454", "0.518225...
0.0
-1
Stores the content into the ZIP.
public ZipBuilder save() throws IOException { ZipUtil.addToZip(zos, file, path, comment, recursive); return ZipBuilder.this; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void writeArchive(Content content) throws Exception {\n\t\tString path = open();\n\t\tTranslateContent translate = new TranslateContent(content, path);\n\t\ttranslate.writeArchive();\n\n\t\t// compress archive file if +C used\n\t\tif (content.isCompressed()) {\n\t\t\tcompressArchive();\n\t\t}\n\t}", "pub...
[ "0.6361827", "0.6061013", "0.5738215", "0.5727646", "0.55008113", "0.5378546", "0.5373098", "0.52861434", "0.5238124", "0.5182399", "0.5056666", "0.5032724", "0.49996433", "0.499212", "0.49816284", "0.49781796", "0.49723515", "0.4971199", "0.49403712", "0.4928753", "0.4898872...
0.54476136
5