text
stringlengths
4
5.48M
meta
stringlengths
14
6.54k
// Code generated by go-swagger; DO NOT EDIT. package pipeline_service // This file was generated by the swagger tool. // Editing this file might prove futile when you re-run the swagger generate command import ( "context" "net/http" "time" "github.com/go-openapi/errors" "github.com/go-openapi/runtime" cr "github.com/go-openapi/runtime/client" strfmt "github.com/go-openapi/strfmt" pipeline_model "github.com/kubeflow/pipelines/backend/api/go_http_client/pipeline_model" ) // NewCreatePipelineVersionParams creates a new CreatePipelineVersionParams object // with the default values initialized. func NewCreatePipelineVersionParams() *CreatePipelineVersionParams { var () return &CreatePipelineVersionParams{ timeout: cr.DefaultTimeout, } } // NewCreatePipelineVersionParamsWithTimeout creates a new CreatePipelineVersionParams object // with the default values initialized, and the ability to set a timeout on a request func NewCreatePipelineVersionParamsWithTimeout(timeout time.Duration) *CreatePipelineVersionParams { var () return &CreatePipelineVersionParams{ timeout: timeout, } } // NewCreatePipelineVersionParamsWithContext creates a new CreatePipelineVersionParams object // with the default values initialized, and the ability to set a context for a request func NewCreatePipelineVersionParamsWithContext(ctx context.Context) *CreatePipelineVersionParams { var () return &CreatePipelineVersionParams{ Context: ctx, } } // NewCreatePipelineVersionParamsWithHTTPClient creates a new CreatePipelineVersionParams object // with the default values initialized, and the ability to set a custom HTTPClient for a request func NewCreatePipelineVersionParamsWithHTTPClient(client *http.Client) *CreatePipelineVersionParams { var () return &CreatePipelineVersionParams{ HTTPClient: client, } } /*CreatePipelineVersionParams contains all the parameters to send to the API endpoint for the create pipeline version operation typically these are written to a http.Request */ type CreatePipelineVersionParams struct { /*Body ResourceReference inside PipelineVersion specifies the pipeline that this version belongs to. */ Body *pipeline_model.APIPipelineVersion timeout time.Duration Context context.Context HTTPClient *http.Client } // WithTimeout adds the timeout to the create pipeline version params func (o *CreatePipelineVersionParams) WithTimeout(timeout time.Duration) *CreatePipelineVersionParams { o.SetTimeout(timeout) return o } // SetTimeout adds the timeout to the create pipeline version params func (o *CreatePipelineVersionParams) SetTimeout(timeout time.Duration) { o.timeout = timeout } // WithContext adds the context to the create pipeline version params func (o *CreatePipelineVersionParams) WithContext(ctx context.Context) *CreatePipelineVersionParams { o.SetContext(ctx) return o } // SetContext adds the context to the create pipeline version params func (o *CreatePipelineVersionParams) SetContext(ctx context.Context) { o.Context = ctx } // WithHTTPClient adds the HTTPClient to the create pipeline version params func (o *CreatePipelineVersionParams) WithHTTPClient(client *http.Client) *CreatePipelineVersionParams { o.SetHTTPClient(client) return o } // SetHTTPClient adds the HTTPClient to the create pipeline version params func (o *CreatePipelineVersionParams) SetHTTPClient(client *http.Client) { o.HTTPClient = client } // WithBody adds the body to the create pipeline version params func (o *CreatePipelineVersionParams) WithBody(body *pipeline_model.APIPipelineVersion) *CreatePipelineVersionParams { o.SetBody(body) return o } // SetBody adds the body to the create pipeline version params func (o *CreatePipelineVersionParams) SetBody(body *pipeline_model.APIPipelineVersion) { o.Body = body } // WriteToRequest writes these params to a swagger request func (o *CreatePipelineVersionParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { if err := r.SetTimeout(o.timeout); err != nil { return err } var res []error if o.Body != nil { if err := r.SetBodyParam(o.Body); err != nil { return err } } if len(res) > 0 { return errors.CompositeValidationError(res...) } return nil }
{'content_hash': 'c96a022d90d1a550c8233ea3954cf052', 'timestamp': '', 'source': 'github', 'line_count': 140, 'max_line_length': 118, 'avg_line_length': 30.27857142857143, 'alnum_prop': 0.7921679641424865, 'repo_name': 'kubeflow/kfp-tekton', 'id': '1837903ba7875df0852da8f84cfe3600512e9553', 'size': '4239', 'binary': False, 'copies': '1', 'ref': 'refs/heads/master', 'path': 'backend/api/go_http_client/pipeline_client/pipeline_service/create_pipeline_version_parameters.go', 'mode': '33188', 'license': 'apache-2.0', 'language': [{'name': 'CSS', 'bytes': '2171'}, {'name': 'Dockerfile', 'bytes': '15467'}, {'name': 'Go', 'bytes': '1590112'}, {'name': 'HTML', 'bytes': '3656'}, {'name': 'JavaScript', 'bytes': '526449'}, {'name': 'Jupyter Notebook', 'bytes': '15265'}, {'name': 'Makefile', 'bytes': '22228'}, {'name': 'Mustache', 'bytes': '23652'}, {'name': 'PowerShell', 'bytes': '3194'}, {'name': 'Python', 'bytes': '1055595'}, {'name': 'Shell', 'bytes': '178344'}, {'name': 'Smarty', 'bytes': '7694'}, {'name': 'Starlark', 'bytes': '18586'}, {'name': 'TypeScript', 'bytes': '3995476'}]}
Rails.application.configure do # Settings specified here will take precedence over those in config/application.rb. # Code is not reloaded between requests. config.cache_classes = true # Eager load code on boot. This eager loads most of Rails and # your application in memory, allowing both threaded web servers # and those relying on copy on write to perform better. # Rake tasks automatically ignore this option for performance. config.eager_load = true # Full error reports are disabled and caching is turned on. config.consider_all_requests_local = false config.action_controller.perform_caching = true # Attempt to read encrypted secrets from `config/secrets.yml.enc`. # Requires an encryption key in `ENV["RAILS_MASTER_KEY"]` or # `config/secrets.yml.key`. config.read_encrypted_secrets = true # Disable serving static files from the `/public` folder by default since # Apache or NGINX already handles this. config.public_file_server.enabled = ENV['RAILS_SERVE_STATIC_FILES'].present? # Compress JavaScripts and CSS. config.assets.js_compressor = :uglifier # config.assets.css_compressor = :sass # Do not fallback to assets pipeline if a precompiled asset is missed. config.assets.compile = false # `config.assets.precompile` and `config.assets.version` have moved to config/initializers/assets.rb # Enable serving of images, stylesheets, and JavaScripts from an asset server. # config.action_controller.asset_host = 'http://assets.example.com' # Specifies the header that your server uses for sending files. # config.action_dispatch.x_sendfile_header = 'X-Sendfile' # for Apache # config.action_dispatch.x_sendfile_header = 'X-Accel-Redirect' # for NGINX # Mount Action Cable outside main process or domain # config.action_cable.mount_path = nil # config.action_cable.url = 'wss://example.com/cable' # config.action_cable.allowed_request_origins = [ 'http://example.com', /http:\/\/example.*/ ] # Force all access to the app over SSL, use Strict-Transport-Security, and use secure cookies. # config.force_ssl = true # Use the lowest log level to ensure availability of diagnostic information # when problems arise. config.log_level = :debug # Prepend all log lines with the following tags. config.log_tags = [ :request_id ] # Use a different cache store in production. # config.cache_store = :mem_cache_store # Use a real queuing backend for Active Job (and separate queues per environment) # config.active_job.queue_adapter = :resque # config.active_job.queue_name_prefix = "atlas_#{Rails.env}" config.action_mailer.perform_caching = false # Ignore bad email addresses and do not raise email delivery errors. # Set this to true and configure the email server for immediate delivery to raise delivery errors. # config.action_mailer.raise_delivery_errors = false # Enable locale fallbacks for I18n (makes lookups for any locale fall back to # the I18n.default_locale when a translation cannot be found). config.i18n.fallbacks = true # Send deprecation notices to registered listeners. config.active_support.deprecation = :notify # Use default logging formatter so that PID and timestamp are not suppressed. config.log_formatter = ::Logger::Formatter.new # Use a different logger for distributed setups. # require 'syslog/logger' # config.logger = ActiveSupport::TaggedLogging.new(Syslog::Logger.new 'app-name') if ENV["RAILS_LOG_TO_STDOUT"].present? logger = ActiveSupport::Logger.new(STDOUT) logger.formatter = config.log_formatter config.logger = ActiveSupport::TaggedLogging.new(logger) end # Do not dump schema after migrations. config.active_record.dump_schema_after_migration = false end
{'content_hash': '587883eac5f599ddcc5888c915bcf95a', 'timestamp': '', 'source': 'github', 'line_count': 91, 'max_line_length': 102, 'avg_line_length': 41.57142857142857, 'alnum_prop': 0.7406819984139572, 'repo_name': 'JackBracken/atlas', 'id': 'ee087ffbe5f3ca89919d6b7a93217f4442fb79f5', 'size': '3783', 'binary': False, 'copies': '1', 'ref': 'refs/heads/master', 'path': 'config/environments/production.rb', 'mode': '33188', 'license': 'mit', 'language': [{'name': 'CSS', 'bytes': '683'}, {'name': 'HTML', 'bytes': '6704'}, {'name': 'JavaScript', 'bytes': '1474'}, {'name': 'Ruby', 'bytes': '35353'}]}
"""Tests for CalendarWrapper""" import datetime import os import sys import unittest sys.path.append(".") from pywinauto.windows import win32defines, win32structures from pywinauto.windows.application import Application # noqa E402 from pywinauto.sysinfo import is_x64_Python # noqa E402 mfc_samples_folder = os.path.join( os.path.dirname(__file__), r"..\..\apps\MFC_samples") if is_x64_Python(): mfc_samples_folder = os.path.join(mfc_samples_folder, 'x64') class CalendarWrapperTests(unittest.TestCase): """Unit tests for the CalendarWrapperTests class""" NO_HOLIDAYS_IN_MONTH = 0 CALENDARBK_WIDTH_COEFF = 9 CALENDARBK_HEIGHT_OFFSET = 112 TITLEBK_WIDTH_COEFF = 2 TITLEBK_HEIGHT_COEFF = 26.67 def setUp(self): """Start the application set some data and ensure the application is in the state we want it.""" self.app = Application().start(os.path.join(mfc_samples_folder, u"CmnCtrl1.exe")) self.dlg = self.app.Common_Controls_Sample self.dlg.TabControl.select(4) self.calendar = self.app.Common_Controls_Sample.CalendarWrapper rect = self.app['Common Controls Sample']['Calendar'].rectangle() self.width = rect.width() self.height = rect.height() def tearDown(self): """Close the application after tests""" # close the application self.app.kill() def test_can_get_current_date_from_calendar(self): date = self.calendar.get_current_date() self.assert_actual_time_is_equal_to_expect_date_time(date, datetime.date.today()) def test_runtime_error_when_try_to_get_current_date_from_calendar_if_calendar_state_is_multiselect(self): self._set_calendar_state_into_multiselect() self.assertRaises(RuntimeError, self.calendar.get_current_date) def test_can_set_current_date_in_calendar(self): self.calendar.set_current_date(2016, 4, 3, 13) self.assert_actual_time_is_equal_to_expect_date_time( self.calendar.get_current_date(), datetime.date(2016, 4, 13)) def test_should_throw_runtime_error_when_try_to_set_invalid_date(self): self.assertRaises(RuntimeError, self.calendar.set_current_date, -2016, -4, -3, -13) def test_can_get_calendar_border(self): width = self.calendar.get_border() self.assertEqual(width, 4) def test_can_set_calendar_border(self): self.calendar.set_border(6) self.assertEqual(self.calendar.get_border(), 6) def test_can_get_calendars_count(self): count = self.calendar.count() self.assertEqual(count, 1) def test_can_get_calendars_view(self): view = self.calendar.get_view() self.assertEqual(view, 0) def test_should_throw_runtime_error_when_try_to_set_invalid_view(self): self.assertRaises(RuntimeError, self.calendar.set_view, -1) def test_can_set_calendars_view_into_month(self): self.calendar.set_view(win32defines.MCMV_MONTH) self.assertEqual(self.calendar.get_view(), win32defines.MCMV_MONTH) def test_can_set_calendars_view_into_years(self): self.calendar.set_view(win32defines.MCMV_YEAR) self.assertEqual(self.calendar.get_view(), win32defines.MCMV_YEAR) def test_can_set_calendars_view_into_decade(self): self.calendar.set_view(win32defines.MCMV_DECADE) self.assertEqual(self.calendar.get_view(), win32defines.MCMV_DECADE) def test_can_set_calendars_view_into_century(self): self.calendar.set_view(win32defines.MCMV_CENTURY) self.assertEqual(self.calendar.get_view(), win32defines.MCMV_CENTURY) def test_can_set_day_state(self): month_states = [self.NO_HOLIDAYS_IN_MONTH, self.NO_HOLIDAYS_IN_MONTH, self.NO_HOLIDAYS_IN_MONTH] self._set_calendar_state_to_display_day_states() res = self.calendar.set_day_states(month_states) self.assertNotEqual(0, res) def test_cant_set_day_state_passing_one_month_state(self): month_states = [self.NO_HOLIDAYS_IN_MONTH] self._set_calendar_state_to_display_day_states() self.assertRaises(RuntimeError, self.calendar.set_day_states, month_states) def test_can_minimize_rectangle(self): expected_rect = self._get_expected_minimized_rectangle() rect = self.calendar.calc_min_rectangle(expected_rect.left + 100, expected_rect.top + 100, expected_rect.right + 100, expected_rect.bottom + 100) self.assertEqual(expected_rect, rect) def test_can_minimize_rectangle_handle_less_than_zero_values(self): expected_rect = self._get_expected_minimized_rectangle() rect = self.calendar.calc_min_rectangle(-1, -1, -1, -1) self.assertEqual(expected_rect, rect) def test_can_determine_calendar_is_hit(self): x = int(self.width / self.CALENDARBK_WIDTH_COEFF) y = int(self.height - self.CALENDARBK_HEIGHT_OFFSET) res = self.calendar.hit_test(x, y) self.assertEqual(win32defines.MCHT_CALENDAR, res) def test_can_determine_calendar_background_is_hit(self): x = int(self.width / self.CALENDARBK_WIDTH_COEFF) y = int(self.height - self.CALENDARBK_HEIGHT_OFFSET) res = self.calendar.hit_test(x, y) self.assertEqual(win32defines.MCHT_CALENDARBK, res) def test_can_determine_date_is_hit(self): x = int(self.width / 1.13) y = int(self.height / 1.62) res = self.calendar.hit_test(x, y) self.assertEqual(win32defines.MCHT_CALENDARDATE, res) def test_can_determine_next_month_date_is_hit(self): x = int(self.width / 1.14) y = int(self.height / 1.23) res = self.calendar.hit_test(x, y) self.assertEqual(win32defines.MCHT_CALENDARDATENEXT, res) def test_can_determine_prev_month_date_is_hit(self): x = int(self.width / 16) y = int(self.height / 2.67) res = self.calendar.hit_test(x, y) self.assertEqual(win32defines.MCHT_CALENDARDATEPREV, res) def test_can_determine_nothing_is_hit(self): res = self.calendar.hit_test(0, 0) self.assertEqual(win32defines.MCHT_NOWHERE, res) def test_can_determine_top_left_title_corner_is_hit(self): x = int(self.width / 16) y = int(self.height / 16) res = self.calendar.hit_test(x, y) self.assertEqual(win32defines.MCHT_TITLEBTNPREV, res) def test_can_determine_title_is_hit(self): x = int(self.width / self.TITLEBK_WIDTH_COEFF) y = int(self.height / self.TITLEBK_HEIGHT_COEFF) res = self.calendar.hit_test(x, y) self.assertEqual(win32defines.MCHT_TITLE, res) def test_can_determine_title_background_is_hit(self): x = int(self.width / self.TITLEBK_WIDTH_COEFF) y = int(self.height / self.TITLEBK_HEIGHT_COEFF) res = self.calendar.hit_test(x, y) self.assertEqual(win32defines.MCHT_TITLEBK, res) def test_can_determine_top_right_title_corner_is_hit(self): x = int(self.width / 1.07) y = int(self.height / 8) res = self.calendar.hit_test(x, y) self.assertEqual(win32defines.MCHT_TITLEBTNNEXT, res) # TODO: test_can_determine_today_link_is_hit fails in CI with strange res = 1048576. # There is no such value for MCHT_* defines. # def test_can_determine_today_link_is_hit(self): # x = int(self.width / 1.25) # y = int(self.height / 1.14) # # res = self.calendar.test_hit(x, y) # # self.assertEqual(win32defines.MCHT_TODAYLINK, res) def test_can_determine_day_abbreviation_is_hit(self): x = int(self.width / 5.33) y = int(self.height / 4) res = self.calendar.hit_test(x, y) self.assertEqual(win32defines.MCHT_CALENDARDAY, res) def test_can_determine_week_number_is_hit(self): self._set_calendar_state_to_display_week_numbers() x = int(self.width / 13.5) y = int(self.height / 1.7) res = self.calendar.hit_test(x, y) self.assertEqual(win32defines.MCHT_CALENDARWEEKNUM, res) def test_should_throw_runtime_error_when_try_to_set_invalid_type_of_calendar(self): self.assertRaises(ValueError, self.calendar.set_id, 'Aloha!') def test_should_get_valid_type_of_calendar(self): self.assertEqual(self.calendar.get_id(), 0) def test_should_throw_runtime_error_when_try_to_set_invalid_type_of_place_for_color(self): self.assertRaises(ValueError, self.calendar.set_color, 'Aloha!', 0, 0, 0) # TODO create tests for get_color in future #def test_return_zero_when_color_not_set_early(self): # self.assertEqual(self.calendar.get_color('text'), 0) #def test_should_get_valid_calendar_color(self): # self.calendar.set_color('text', 5, 5, 5) # self.assertEqual(self.calendar.get_color('text'), 328965) def test_return_error_about_color(self): self.assertRaises(RuntimeError, self.calendar.set_color, 'background', -1, -1, -1) def test_return_error_when_color_hire_then_255(self): self.assertRaises(RuntimeError, self.calendar.set_color, 'background', 600, 600, 600) def test_can_get_today(self): """Test getting the control's today field""" date = self.calendar.get_today() self.assert_actual_time_is_equal_to_expect_date_time(date, datetime.date.today()) def test_can_set_today(self): """Test setting up the control's today field""" self.calendar.set_today(2016, 5, 1) self.assert_actual_time_is_equal_to_expect_date_time(self.calendar.get_today(), datetime.date(2016, 5, 1)) def test_can_set_and_get_first_day_of_week(self): """Test can set and get first day of the week""" self.calendar.set_first_weekday(4) self.assertEqual((True, 4), self.calendar.get_first_weekday()) def test_can_get_default_scroll_rate(self): actual_rate = 1 self.assertEqual(actual_rate, self.calendar.get_month_delta()) def test_can_set_scroll_rate(self): actual_rate = 4 self.calendar.set_month_delta(actual_rate) self.assertEqual(actual_rate, self.calendar.get_month_delta()) def test_should_throw_value_error_when_try_to_set_incorrect_scroll_rate(self): self.assertRaises(ValueError, self.calendar.set_month_delta, -1) def test_can_get_month_range_when_calendars_view_into_month(self): self.calendar.set_current_date(2017, 5, 2, 2) exp_range = 1 start_month = datetime.date(2017, 5, 1) end_month = datetime.date(2017, 5, 31) self._check_month_range(exp_range, start_month, end_month) def test_can_get_month_range_when_calendars_view_into_years(self): self.calendar.set_current_date(2017, 5, 2, 2) self.calendar.set_view(win32defines.MCMV_YEAR) exp_range = 12 start_month = datetime.date(2017, 1, 1) end_month = datetime.date(2017, 12, 31) self._check_month_range(exp_range, start_month, end_month) def test_can_get_month_range_with_include_preceding_and_trailing_months(self): self.calendar.set_current_date(2017, 5, 2, 2) res = self.calendar.get_month_range(win32defines.GMR_DAYSTATE) range_months, system_time = res[:2] exp_range = 3 start_month = datetime.date(2017, 4, 24) end_month = datetime.date(2017, 6, 4) self.assertEqual(range_months, exp_range) self.assertEqual(system_time[0].wYear, start_month.year) self.assertEqual(system_time[0].wMonth, start_month.month) self.assertEqual(system_time[1].wYear, end_month.year) self.assertEqual(system_time[1].wMonth, end_month.month) def test_should_throw_value_error_when_try_to_get_month_range_and_scope_of_range_is_incorrect(self): self.assertRaises(ValueError, self.calendar.get_month_range, -1) def _check_month_range(self, exp_range, start_month, end_month): res = self.calendar.get_month_range(win32defines.GMR_VISIBLE) range_months, system_time = res[:2] self.assertEqual(range_months, exp_range) self.assert_actual_time_is_equal_to_expect_date_time(system_time[0], start_month) self.assert_actual_time_is_equal_to_expect_date_time(system_time[1], end_month) def assert_actual_time_is_equal_to_expect_date_time(self, actual_date, expect_date): self.assertEqual(actual_date.wYear, expect_date.year) self.assertEqual(actual_date.wMonth, expect_date.month) self.assertEqual(actual_date.wDay, expect_date.day) def _get_expected_minimized_rectangle(self): expected_rect = win32structures.RECT() expected_rect.left = 0 expected_rect.top = 0 expected_rect.right = self.width expected_rect.bottom = self.height return expected_rect def _set_calendar_state_to_display_day_states(self): self.app['Common Controls Sample']['MCS_DAYSTATE'].click() def _set_calendar_state_to_display_week_numbers(self): self.app['Common Controls Sample']['MCS_WEEKNUMBERS'].click() def _set_calendar_state_into_multiselect(self): self.app['Common Controls Sample']['MCS_MULTISELECT'].click() if __name__ == "__main__": unittest.main()
{'content_hash': 'e5273c207b0453078503b55ec62eee78', 'timestamp': '', 'source': 'github', 'line_count': 346, 'max_line_length': 109, 'avg_line_length': 38.6849710982659, 'alnum_prop': 0.6598431079566679, 'repo_name': 'pywinauto/pywinauto', 'id': 'b22fdfcbd8435d48dafa88e1e525a9d747588686', 'size': '13385', 'binary': False, 'copies': '1', 'ref': 'refs/heads/atspi', 'path': 'pywinauto/unittests/test_calendar.py', 'mode': '33188', 'license': 'bsd-3-clause', 'language': [{'name': 'Batchfile', 'bytes': '1554'}, {'name': 'PowerShell', 'bytes': '5884'}, {'name': 'Python', 'bytes': '2172972'}, {'name': 'XSLT', 'bytes': '3485'}]}
 using FullSerializer; namespace IBM.Watson.DeveloperCloud.Services.TradeoffAnalytics.v1 { /// <summary> /// This object for response of Dilemma service /// </summary> [fsObject] public class DilemmasResponse { /// <summary> /// The problem. /// </summary> public Problem problem { get; set; } /// <summary> /// The resolution. /// </summary> public Resolution resolution { get; set; } } /// <summary> /// Problem class for Dilema service. /// </summary> [fsObject] public class Problem { /// <summary> /// The problem columns. /// </summary> public Column[] columns { get; set; } /// <summary> /// The problem options. /// </summary> public Option[] options { get; set; } /// <summary> /// The problem subject. /// </summary> public string subject { get; set; } } /// <summary> /// Column class for Problem. /// </summary> [fsObject] public class Column { /// <summary> /// The key. /// </summary> public string key { get; set; } /// <summary> /// The type. /// </summary> public string type { get; set; } /// <summary> /// The description. /// </summary> public string description { get; set; } /// <summary> /// The format. /// </summary> public string format { get; set; } /// <summary> /// The full name. /// </summary> public string full_name { get; set; } /// <summary> /// The goal. /// </summary> public string goal { get; set; } /// <summary> /// The insignificant loss. /// </summary> public int insignificant_loss { get; set; } /// <summary> /// Weather or not the column is the objective. /// </summary> public bool is_objective { get; set; } /// <summary> /// The column preferences. /// </summary> public string[] preference { get; set; } /// <summary> /// The range. /// </summary> public Range range { get; set; } /// <summary> /// The signficant gain. /// </summary> public long significant_gain { get; set; } /// <summary> /// The significant loss. /// </summary> public long significant_loss { get; set; } } /// <summary> /// Range class for Column. /// </summary> [fsObject] public class Range { }; /// <summary> /// Categorical range. /// </summary> [fsObject] public class CategoricalRange : Range { /// <summary> /// The categorical range keys. /// </summary> public string[] keys { get; set; } } /// <summary> /// Date range. /// </summary> [fsObject] public class DateRange : Range { /// <summary> /// The date range low value. /// </summary> public string low { get; set; } /// <summary> /// The date range high value. /// </summary> public string high { get; set; } } /// <summary> /// Value range. /// </summary> [fsObject] public class ValueRange : Range { /// <summary> /// The value range low value. /// </summary> public double low { get; set; } /// <summary> /// The value range high value. /// </summary> public double high { get; set; } } /// <summary> /// Option class for Problem. /// </summary> [fsObject] public class Option { /// <summary> /// The application data. /// </summary> public ApplicationData app_data { get; set; } /// <summary> /// The description. /// </summary> public string description_html { get; set; } /// <summary> /// The key. /// </summary> public string key { get; set; } /// <summary> /// THe name. /// </summary> public string name { get; set; } /// <summary> /// The application data values. /// </summary> public ApplicationDataValue values { get; set; } } /// <summary> /// Application data class for Options. Extend this for your application. /// </summary> [fsObject] public class ApplicationData { } /// <summary> /// Application data value for Options. Extend this for your application. /// </summary> [fsObject] public class ApplicationDataValue { } /// <summary> /// Resolution. /// </summary> [fsObject] public class Resolution { /// <summary> /// The resolution map. /// </summary> public Map map { get; set; } /// <summary> /// The resolution solutions. /// </summary> public Solution[] solutions { get; set; } } /// <summary> /// Map class for the resolution. /// </summary> [fsObject] public class Map { /// <summary> /// The map anchors. /// </summary> public Anchor[] anchors { get; set; } /// <summary> /// The map comments. /// </summary> public string comments { get; set; } /// <summary> /// The map config. /// </summary> public Config config { get; set; } /// <summary> /// The map nodes. /// </summary> public Node[] nodes { get; set; } } /// <summary> /// Anchor class for the Map. /// </summary> [fsObject] public class Anchor { /// <summary> /// The anchor name. /// </summary> public string name { get; set; } /// <summary> /// The anchor position. /// </summary> public Position position { get; set; } } /// <summary> /// Position class for the Anchor. /// </summary> [fsObject] public class Position { /// <summary> /// The X position. /// </summary> public double x { get; set; } /// <summary> /// The Y position. /// </summary> public double y { get; set; } } /// <summary> /// Config class for the Map. /// </summary> [fsObject] public class Config { /// <summary> /// The config drivers. /// </summary> public Drivers drivers { get; set; } /// <summary> /// The config parameters. /// </summary> public Params @params { get; set; } } /// <summary> /// Drivers class for the Config. /// </summary> [fsObject] public class Drivers { /// <summary> /// The drivers alpha init. /// </summary> public double alpha_init { get; set; } /// <summary> /// THe drivers data multiplier. /// </summary> public double data_multiplier { get; set; } /// <summary> /// The drivers maximum map size. /// </summary> public double max_map_size { get; set; } /// <summary> /// The drivers anchor init. /// </summary> public double r_anchor_init { get; set; } /// <summary> /// The drivers fin. /// </summary> public double r_fin { get; set; } /// <summary> /// The drivers init. /// </summary> public double r_init { get; set; } /// <summary> /// The drivers training anchors. /// </summary> public double training_anchors { get; set; } /// <summary> /// The drivers training length. /// </summary> public double training_length { get; set; } } /// <summary> /// Params class for the Config. /// </summary> [fsObject] public class Params { /// <summary> /// The parameters alpha init. /// </summary> public double alpha_init { get; set; } /// <summary> /// The drivers anchor epoch. /// </summary> public double anchor_epoch { get; set; } /// <summary> /// The drivers map size. /// </summary> public double map_size { get; set; } /// <summary> /// The drivers anchor. /// </summary> public double rAnchor { get; set; } /// <summary> /// The drivers finish. /// </summary> public double rFinish { get; set; } /// <summary> /// The drivers init. /// </summary> public double rInit { get; set; } /// <summary> /// The drivers seed. /// </summary> public double seed { get; set; } /// <summary> /// The drivers training period. /// </summary> public double training_period { get; set; } } /// <summary> /// Metrics class for the resolution. /// </summary> [fsObject] public class Metrics { /// <summary> /// The metrtics final kappa. /// </summary> public double final_kappa { get; set; } /// <summary> /// The metrics kappa. /// </summary> public double kappa { get; set; } } /// <summary> /// Node class for the resolution /// </summary> [fsObject] public class Node { /// <summary> /// The node coordinates. /// </summary> public Position coordinates { get; set; } /// <summary> /// The nodes solution references. /// </summary> public string[] solution_refs { get; set; } } /// <summary> /// Solution class for the resolution. /// </summary> [fsObject] public class Solution { /// <summary> /// The solution' shadow mes /// </summary> public string[] shadow_me { get; set; } /// <summary> /// The solution' shadows. /// </summary> public string[] shadows { get; set; } /// <summary> /// The solution' reference. /// </summary> public string solution_ref { get; set; } /// <summary> /// The solution's status. /// </summary> public string status { get; set; } /// <summary> /// The solution's status cause. /// </summary> public StatusCause status_cause { get; set; } } /// <summary> /// Status cause class for the solution. /// </summary> [fsObject] public class StatusCause { /// <summary> /// The status cause's error code. /// </summary> public string error_code { get; set; } /// <summary> /// The status cause's message. /// </summary> public string message { get; set; } /// <summary> /// The status cause's tokens. /// </summary> public string[] tokens { get; set; } } }
{'content_hash': '92cf43c3d1fbed499aa1ace01357eecf', 'timestamp': '', 'source': 'github', 'line_count': 438, 'max_line_length': 75, 'avg_line_length': 22.45662100456621, 'alnum_prop': 0.5431069540463603, 'repo_name': 'scottdangelo/unity-sdk', 'id': '22e584f3d1bff81e2c2b5046ebc3d626bb0602c0', 'size': '10441', 'binary': False, 'copies': '1', 'ref': 'refs/heads/develop', 'path': 'Scripts/Services/TradeoffAnalytics/DataModels.cs', 'mode': '33188', 'license': 'apache-2.0', 'language': [{'name': 'C#', 'bytes': '2546105'}, {'name': 'Shell', 'bytes': '7669'}]}
package com.app.library.base; import android.content.Context; import android.os.Bundle; import android.support.v4.app.FragmentActivity; import android.view.MotionEvent; import android.view.View; import android.view.inputmethod.InputMethodManager; import com.app.library.dialog.IDialog; import com.app.library.dialog.LoadingDialog; /** * Created by lhy on 2017/2/20 */ public abstract class BaseActivity extends FragmentActivity { @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(getLayoutXML()); initView(); initEvent(); initData(); } protected void initData() { } @Override public boolean dispatchTouchEvent(MotionEvent ev) { if (ev.getAction() == MotionEvent.ACTION_DOWN) { View v = getCurrentFocus(); if (v != null) { InputMethodManager imm = (InputMethodManager) getSystemService(Context.INPUT_METHOD_SERVICE); if (imm != null) { imm.hideSoftInputFromWindow(v.getWindowToken(), 0); } } return super.dispatchTouchEvent(ev); } // 必不可少,否则所有的组件都不会有TouchEvent了 if (getWindow().superDispatchTouchEvent(ev)) { return true; } return onTouchEvent(ev); } private void hideKeyboard() { View view = getCurrentFocus(); if (view != null) { ((InputMethodManager) getSystemService(Context.INPUT_METHOD_SERVICE)). hideSoftInputFromWindow(view.getWindowToken(), InputMethodManager.HIDE_NOT_ALWAYS); } } LoadingDialog mLoadingDialog; public synchronized IDialog getLoddingDialog() { if (mLoadingDialog == null) { mLoadingDialog = new LoadingDialog(this); } return mLoadingDialog; } @Override protected void onDestroy() { super.onDestroy(); if (mLoadingDialog != null && mLoadingDialog.isShowing()) { mLoadingDialog.dismiss(); mLoadingDialog = null; } } protected abstract int getLayoutXML(); protected void initView() { } protected void initEvent() { } }
{'content_hash': 'f9cdef27b2a6d5b6480083f6c43dfc6f', 'timestamp': '', 'source': 'github', 'line_count': 83, 'max_line_length': 109, 'avg_line_length': 27.240963855421686, 'alnum_prop': 0.6218487394957983, 'repo_name': 'hongy-Li/AppLibrary', 'id': 'bbfdab5a8d71a7f93678d9af9437bc5c5c30897f', 'size': '2295', 'binary': False, 'copies': '1', 'ref': 'refs/heads/master', 'path': 'src/main/java/com/app/library/base/BaseActivity.java', 'mode': '33188', 'license': 'apache-2.0', 'language': [{'name': 'Java', 'bytes': '21207'}]}
TEP002: TARDIS hdf5 data storage capabilities ============================================= Status ====== **Completed** Responsible =========== @ftsamis @unoebauer @wkerzendorf Branches and Pull requests ========================== tardis-sn/tardis#435 Final PR: tardis-sn/tardis#606 Description =========== Currently, Tardis has the capability to store a number of important properties of the model in an HDF5 file. However, the hdf5 file is currently not self-contained, i.e. some stored properties require information which is currently not stored. For example: * last_line_interaction_in_id stores the ids of the last line transition in which the packet was lastly absorbed. The details of this transition, i.e. wavelength, atom number, ionisation state, etc. are stored in the atomic_data.lines pandas DataFrame which is not stored There are also many important model properties, which are particularly useful for diagnostic post processing of the run but which are not stored. * unfiltered packet information together with LF wavelength before and after the last interaction (needed to construct Kromer plots) * transitions probabilities (as seen in Issue #455, these are quite important) There are several data located in different parts of the code that warrant storing. The following is a more or less complete list: * Radial1Dmodel * Plasma * MontecarloRunner * Simulation * atomic data We propose to be able to essentially store all relevant information in an HDF5 file. Due to size constraints we also propose to be able to somehow select what data is stored. Reading simulation states is a future goal but out-of-scope for this TEP. A suggestion for adding the ability to read simulation state is to use `classmethods` for constructing the individual objects that are likely also used in TEP006 and can be implemented after TEP006 is implemented. Implementation ============== Hints of this implementation have existed for a long time within TARDIS. The general idea is to have each piece of information in an object with a `to_hdf` method that mirrors (http://pandas.pydata.org/pandas-docs/version/0.17.1/generated/pandas.DataFrame.to_hdf.html) All information is stored in an HDFStore in a pandas specific format. This ensures that ordering, column names, indices, etc. stay the same and makes it trivial to access the information. Data that are not in array form or simple array form should likely be converted to Pandas DataFrames or Series to be stored within the HDFStore. An alternative might be a pickling or json object that is then stored as a binary table within the HDF5 tree (maybe for dictionaries). the `to_hdf` method should take at least two arguments: 1) an HDFStore object and 2) a path to be stored within the hierarchical HDF5 file. This means that for level population the path might look like the following: `model001/plasma/level_population`. The end goal would be to have nested functions that would start with the top level `Simulation`-object and would propagate downwards into the hierarchical data structure within tardis (e.g. `Simulation.to_hdf` calls the `LegacyPlasma.to_hdf` and in turn calls the `PlasmaProperty.to_hdf`). This will also allow the higher level `.to_hdf`-methods to select specific information to store. This might be grouped in hardcoded sets like "minimal" or "detailed". Backward compatibility ====================== N/A Alternatives ============ The user stores the relevant information manually (pickling, to text files, with numpy.savez, using pandas.DataFrame.to_*, etc.). This is not ideal since it is not always clear at runtime which information may be of interest in the future.
{'content_hash': '4936074a58df39c436d562447c539113', 'timestamp': '', 'source': 'github', 'line_count': 104, 'max_line_length': 92, 'avg_line_length': 35.49038461538461, 'alnum_prop': 0.7626659441885668, 'repo_name': 'tardis-sn/tep', 'id': '9894f5c54127907636ec2bfe70633021d75b909f', 'size': '3691', 'binary': False, 'copies': '2', 'ref': 'refs/heads/master', 'path': 'archive/TEP002_model_hdf5.rst', 'mode': '33188', 'license': 'bsd-3-clause', 'language': []}
// Generated by the protocol buffer compiler. DO NOT EDIT! // source: tensorflow/core/protobuf/tensor_bundle.proto #ifndef PROTOBUF_tensorflow_2fcore_2fprotobuf_2ftensor_5fbundle_2eproto__INCLUDED #define PROTOBUF_tensorflow_2fcore_2fprotobuf_2ftensor_5fbundle_2eproto__INCLUDED #include <string> #include <google/protobuf/stubs/common.h> #if GOOGLE_PROTOBUF_VERSION < 3003000 #error This file was generated by a newer version of protoc which is #error incompatible with your Protocol Buffer headers. Please update #error your headers. #endif #if 3003001 < GOOGLE_PROTOBUF_MIN_PROTOC_VERSION #error This file was generated by an older version of protoc which is #error incompatible with your Protocol Buffer headers. Please #error regenerate this file with a newer version of protoc. #endif #include <google/protobuf/io/coded_stream.h> #include <google/protobuf/arena.h> #include <google/protobuf/arenastring.h> #include <google/protobuf/generated_message_table_driven.h> #include <google/protobuf/generated_message_util.h> #include <google/protobuf/metadata.h> #include <google/protobuf/message.h> #include <google/protobuf/repeated_field.h> // IWYU pragma: export #include <google/protobuf/extension_set.h> // IWYU pragma: export #include <google/protobuf/generated_enum_reflection.h> #include <google/protobuf/unknown_field_set.h> #include "tensorflow/core/framework/tensor_shape.pb.h" #include "tensorflow/core/framework/tensor_slice.pb.h" #include "tensorflow/core/framework/types.pb.h" #include "tensorflow/core/framework/versions.pb.h" // @@protoc_insertion_point(includes) namespace tensorflow { class BundleEntryProto; class BundleEntryProtoDefaultTypeInternal; extern BundleEntryProtoDefaultTypeInternal _BundleEntryProto_default_instance_; class BundleHeaderProto; class BundleHeaderProtoDefaultTypeInternal; extern BundleHeaderProtoDefaultTypeInternal _BundleHeaderProto_default_instance_; class TensorShapeProto; class TensorShapeProtoDefaultTypeInternal; extern TensorShapeProtoDefaultTypeInternal _TensorShapeProto_default_instance_; class TensorShapeProto_Dim; class TensorShapeProto_DimDefaultTypeInternal; extern TensorShapeProto_DimDefaultTypeInternal _TensorShapeProto_Dim_default_instance_; class TensorSliceProto; class TensorSliceProtoDefaultTypeInternal; extern TensorSliceProtoDefaultTypeInternal _TensorSliceProto_default_instance_; class TensorSliceProto_Extent; class TensorSliceProto_ExtentDefaultTypeInternal; extern TensorSliceProto_ExtentDefaultTypeInternal _TensorSliceProto_Extent_default_instance_; class VersionDef; class VersionDefDefaultTypeInternal; extern VersionDefDefaultTypeInternal _VersionDef_default_instance_; } // namespace tensorflow namespace tensorflow { namespace protobuf_tensorflow_2fcore_2fprotobuf_2ftensor_5fbundle_2eproto { // Internal implementation detail -- do not call these. struct TableStruct { static const ::google::protobuf::internal::ParseTableField entries[]; static const ::google::protobuf::internal::AuxillaryParseTableField aux[]; static const ::google::protobuf::internal::ParseTable schema[]; static const ::google::protobuf::uint32 offsets[]; static void InitDefaultsImpl(); static void Shutdown(); }; void AddDescriptors(); void InitDefaults(); } // namespace protobuf_tensorflow_2fcore_2fprotobuf_2ftensor_5fbundle_2eproto enum BundleHeaderProto_Endianness { BundleHeaderProto_Endianness_LITTLE = 0, BundleHeaderProto_Endianness_BIG = 1, BundleHeaderProto_Endianness_BundleHeaderProto_Endianness_INT_MIN_SENTINEL_DO_NOT_USE_ = ::google::protobuf::kint32min, BundleHeaderProto_Endianness_BundleHeaderProto_Endianness_INT_MAX_SENTINEL_DO_NOT_USE_ = ::google::protobuf::kint32max }; bool BundleHeaderProto_Endianness_IsValid(int value); const BundleHeaderProto_Endianness BundleHeaderProto_Endianness_Endianness_MIN = BundleHeaderProto_Endianness_LITTLE; const BundleHeaderProto_Endianness BundleHeaderProto_Endianness_Endianness_MAX = BundleHeaderProto_Endianness_BIG; const int BundleHeaderProto_Endianness_Endianness_ARRAYSIZE = BundleHeaderProto_Endianness_Endianness_MAX + 1; const ::google::protobuf::EnumDescriptor* BundleHeaderProto_Endianness_descriptor(); inline const ::std::string& BundleHeaderProto_Endianness_Name(BundleHeaderProto_Endianness value) { return ::google::protobuf::internal::NameOfEnum( BundleHeaderProto_Endianness_descriptor(), value); } inline bool BundleHeaderProto_Endianness_Parse( const ::std::string& name, BundleHeaderProto_Endianness* value) { return ::google::protobuf::internal::ParseNamedEnum<BundleHeaderProto_Endianness>( BundleHeaderProto_Endianness_descriptor(), name, value); } // =================================================================== class BundleHeaderProto : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:tensorflow.BundleHeaderProto) */ { public: BundleHeaderProto(); virtual ~BundleHeaderProto(); BundleHeaderProto(const BundleHeaderProto& from); inline BundleHeaderProto& operator=(const BundleHeaderProto& from) { CopyFrom(from); return *this; } inline ::google::protobuf::Arena* GetArena() const PROTOBUF_FINAL { return GetArenaNoVirtual(); } inline void* GetMaybeArenaPointer() const PROTOBUF_FINAL { return MaybeArenaPtr(); } static const ::google::protobuf::Descriptor* descriptor(); static const BundleHeaderProto& default_instance(); static inline const BundleHeaderProto* internal_default_instance() { return reinterpret_cast<const BundleHeaderProto*>( &_BundleHeaderProto_default_instance_); } static PROTOBUF_CONSTEXPR int const kIndexInFileMessages = 0; void UnsafeArenaSwap(BundleHeaderProto* other); void Swap(BundleHeaderProto* other); // implements Message ---------------------------------------------- inline BundleHeaderProto* New() const PROTOBUF_FINAL { return New(NULL); } BundleHeaderProto* New(::google::protobuf::Arena* arena) const PROTOBUF_FINAL; void CopyFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; void MergeFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; void CopyFrom(const BundleHeaderProto& from); void MergeFrom(const BundleHeaderProto& from); void Clear() PROTOBUF_FINAL; bool IsInitialized() const PROTOBUF_FINAL; size_t ByteSizeLong() const PROTOBUF_FINAL; bool MergePartialFromCodedStream( ::google::protobuf::io::CodedInputStream* input) PROTOBUF_FINAL; void SerializeWithCachedSizes( ::google::protobuf::io::CodedOutputStream* output) const PROTOBUF_FINAL; ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( bool deterministic, ::google::protobuf::uint8* target) const PROTOBUF_FINAL; int GetCachedSize() const PROTOBUF_FINAL { return _cached_size_; } private: void SharedCtor(); void SharedDtor(); void SetCachedSize(int size) const PROTOBUF_FINAL; void InternalSwap(BundleHeaderProto* other); protected: explicit BundleHeaderProto(::google::protobuf::Arena* arena); private: static void ArenaDtor(void* object); inline void RegisterArenaDtor(::google::protobuf::Arena* arena); private: inline ::google::protobuf::Arena* GetArenaNoVirtual() const { return _internal_metadata_.arena(); } inline void* MaybeArenaPtr() const { return _internal_metadata_.raw_arena_ptr(); } public: ::google::protobuf::Metadata GetMetadata() const PROTOBUF_FINAL; // nested types ---------------------------------------------------- typedef BundleHeaderProto_Endianness Endianness; static const Endianness LITTLE = BundleHeaderProto_Endianness_LITTLE; static const Endianness BIG = BundleHeaderProto_Endianness_BIG; static inline bool Endianness_IsValid(int value) { return BundleHeaderProto_Endianness_IsValid(value); } static const Endianness Endianness_MIN = BundleHeaderProto_Endianness_Endianness_MIN; static const Endianness Endianness_MAX = BundleHeaderProto_Endianness_Endianness_MAX; static const int Endianness_ARRAYSIZE = BundleHeaderProto_Endianness_Endianness_ARRAYSIZE; static inline const ::google::protobuf::EnumDescriptor* Endianness_descriptor() { return BundleHeaderProto_Endianness_descriptor(); } static inline const ::std::string& Endianness_Name(Endianness value) { return BundleHeaderProto_Endianness_Name(value); } static inline bool Endianness_Parse(const ::std::string& name, Endianness* value) { return BundleHeaderProto_Endianness_Parse(name, value); } // accessors ------------------------------------------------------- // .tensorflow.VersionDef version = 3; bool has_version() const; void clear_version(); static const int kVersionFieldNumber = 3; private: void _slow_mutable_version(); void _slow_set_allocated_version( ::google::protobuf::Arena* message_arena, ::tensorflow::VersionDef** version); ::tensorflow::VersionDef* _slow_release_version(); public: const ::tensorflow::VersionDef& version() const; ::tensorflow::VersionDef* mutable_version(); ::tensorflow::VersionDef* release_version(); void set_allocated_version(::tensorflow::VersionDef* version); ::tensorflow::VersionDef* unsafe_arena_release_version(); void unsafe_arena_set_allocated_version( ::tensorflow::VersionDef* version); // int32 num_shards = 1; void clear_num_shards(); static const int kNumShardsFieldNumber = 1; ::google::protobuf::int32 num_shards() const; void set_num_shards(::google::protobuf::int32 value); // .tensorflow.BundleHeaderProto.Endianness endianness = 2; void clear_endianness(); static const int kEndiannessFieldNumber = 2; ::tensorflow::BundleHeaderProto_Endianness endianness() const; void set_endianness(::tensorflow::BundleHeaderProto_Endianness value); // @@protoc_insertion_point(class_scope:tensorflow.BundleHeaderProto) private: ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; friend class ::google::protobuf::Arena; typedef void InternalArenaConstructable_; typedef void DestructorSkippable_; ::tensorflow::VersionDef* version_; ::google::protobuf::int32 num_shards_; int endianness_; mutable int _cached_size_; friend struct protobuf_tensorflow_2fcore_2fprotobuf_2ftensor_5fbundle_2eproto::TableStruct; }; // ------------------------------------------------------------------- class BundleEntryProto : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:tensorflow.BundleEntryProto) */ { public: BundleEntryProto(); virtual ~BundleEntryProto(); BundleEntryProto(const BundleEntryProto& from); inline BundleEntryProto& operator=(const BundleEntryProto& from) { CopyFrom(from); return *this; } inline ::google::protobuf::Arena* GetArena() const PROTOBUF_FINAL { return GetArenaNoVirtual(); } inline void* GetMaybeArenaPointer() const PROTOBUF_FINAL { return MaybeArenaPtr(); } static const ::google::protobuf::Descriptor* descriptor(); static const BundleEntryProto& default_instance(); static inline const BundleEntryProto* internal_default_instance() { return reinterpret_cast<const BundleEntryProto*>( &_BundleEntryProto_default_instance_); } static PROTOBUF_CONSTEXPR int const kIndexInFileMessages = 1; void UnsafeArenaSwap(BundleEntryProto* other); void Swap(BundleEntryProto* other); // implements Message ---------------------------------------------- inline BundleEntryProto* New() const PROTOBUF_FINAL { return New(NULL); } BundleEntryProto* New(::google::protobuf::Arena* arena) const PROTOBUF_FINAL; void CopyFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; void MergeFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; void CopyFrom(const BundleEntryProto& from); void MergeFrom(const BundleEntryProto& from); void Clear() PROTOBUF_FINAL; bool IsInitialized() const PROTOBUF_FINAL; size_t ByteSizeLong() const PROTOBUF_FINAL; bool MergePartialFromCodedStream( ::google::protobuf::io::CodedInputStream* input) PROTOBUF_FINAL; void SerializeWithCachedSizes( ::google::protobuf::io::CodedOutputStream* output) const PROTOBUF_FINAL; ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( bool deterministic, ::google::protobuf::uint8* target) const PROTOBUF_FINAL; int GetCachedSize() const PROTOBUF_FINAL { return _cached_size_; } private: void SharedCtor(); void SharedDtor(); void SetCachedSize(int size) const PROTOBUF_FINAL; void InternalSwap(BundleEntryProto* other); protected: explicit BundleEntryProto(::google::protobuf::Arena* arena); private: static void ArenaDtor(void* object); inline void RegisterArenaDtor(::google::protobuf::Arena* arena); private: inline ::google::protobuf::Arena* GetArenaNoVirtual() const { return _internal_metadata_.arena(); } inline void* MaybeArenaPtr() const { return _internal_metadata_.raw_arena_ptr(); } public: ::google::protobuf::Metadata GetMetadata() const PROTOBUF_FINAL; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- // repeated .tensorflow.TensorSliceProto slices = 7; int slices_size() const; void clear_slices(); static const int kSlicesFieldNumber = 7; const ::tensorflow::TensorSliceProto& slices(int index) const; ::tensorflow::TensorSliceProto* mutable_slices(int index); ::tensorflow::TensorSliceProto* add_slices(); ::google::protobuf::RepeatedPtrField< ::tensorflow::TensorSliceProto >* mutable_slices(); const ::google::protobuf::RepeatedPtrField< ::tensorflow::TensorSliceProto >& slices() const; // .tensorflow.TensorShapeProto shape = 2; bool has_shape() const; void clear_shape(); static const int kShapeFieldNumber = 2; private: void _slow_mutable_shape(); void _slow_set_allocated_shape( ::google::protobuf::Arena* message_arena, ::tensorflow::TensorShapeProto** shape); ::tensorflow::TensorShapeProto* _slow_release_shape(); public: const ::tensorflow::TensorShapeProto& shape() const; ::tensorflow::TensorShapeProto* mutable_shape(); ::tensorflow::TensorShapeProto* release_shape(); void set_allocated_shape(::tensorflow::TensorShapeProto* shape); ::tensorflow::TensorShapeProto* unsafe_arena_release_shape(); void unsafe_arena_set_allocated_shape( ::tensorflow::TensorShapeProto* shape); // .tensorflow.DataType dtype = 1; void clear_dtype(); static const int kDtypeFieldNumber = 1; ::tensorflow::DataType dtype() const; void set_dtype(::tensorflow::DataType value); // int32 shard_id = 3; void clear_shard_id(); static const int kShardIdFieldNumber = 3; ::google::protobuf::int32 shard_id() const; void set_shard_id(::google::protobuf::int32 value); // int64 offset = 4; void clear_offset(); static const int kOffsetFieldNumber = 4; ::google::protobuf::int64 offset() const; void set_offset(::google::protobuf::int64 value); // int64 size = 5; void clear_size(); static const int kSizeFieldNumber = 5; ::google::protobuf::int64 size() const; void set_size(::google::protobuf::int64 value); // fixed32 crc32c = 6; void clear_crc32c(); static const int kCrc32CFieldNumber = 6; ::google::protobuf::uint32 crc32c() const; void set_crc32c(::google::protobuf::uint32 value); // @@protoc_insertion_point(class_scope:tensorflow.BundleEntryProto) private: ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; friend class ::google::protobuf::Arena; typedef void InternalArenaConstructable_; typedef void DestructorSkippable_; ::google::protobuf::RepeatedPtrField< ::tensorflow::TensorSliceProto > slices_; ::tensorflow::TensorShapeProto* shape_; int dtype_; ::google::protobuf::int32 shard_id_; ::google::protobuf::int64 offset_; ::google::protobuf::int64 size_; ::google::protobuf::uint32 crc32c_; mutable int _cached_size_; friend struct protobuf_tensorflow_2fcore_2fprotobuf_2ftensor_5fbundle_2eproto::TableStruct; }; // =================================================================== // =================================================================== #if !PROTOBUF_INLINE_NOT_IN_HEADERS // BundleHeaderProto // int32 num_shards = 1; inline void BundleHeaderProto::clear_num_shards() { num_shards_ = 0; } inline ::google::protobuf::int32 BundleHeaderProto::num_shards() const { // @@protoc_insertion_point(field_get:tensorflow.BundleHeaderProto.num_shards) return num_shards_; } inline void BundleHeaderProto::set_num_shards(::google::protobuf::int32 value) { num_shards_ = value; // @@protoc_insertion_point(field_set:tensorflow.BundleHeaderProto.num_shards) } // .tensorflow.BundleHeaderProto.Endianness endianness = 2; inline void BundleHeaderProto::clear_endianness() { endianness_ = 0; } inline ::tensorflow::BundleHeaderProto_Endianness BundleHeaderProto::endianness() const { // @@protoc_insertion_point(field_get:tensorflow.BundleHeaderProto.endianness) return static_cast< ::tensorflow::BundleHeaderProto_Endianness >(endianness_); } inline void BundleHeaderProto::set_endianness(::tensorflow::BundleHeaderProto_Endianness value) { endianness_ = value; // @@protoc_insertion_point(field_set:tensorflow.BundleHeaderProto.endianness) } // .tensorflow.VersionDef version = 3; inline bool BundleHeaderProto::has_version() const { return this != internal_default_instance() && version_ != NULL; } inline void BundleHeaderProto::clear_version() { if (GetArenaNoVirtual() == NULL && version_ != NULL) delete version_; version_ = NULL; } inline const ::tensorflow::VersionDef& BundleHeaderProto::version() const { // @@protoc_insertion_point(field_get:tensorflow.BundleHeaderProto.version) return version_ != NULL ? *version_ : *::tensorflow::VersionDef::internal_default_instance(); } inline ::tensorflow::VersionDef* BundleHeaderProto::mutable_version() { if (version_ == NULL) { _slow_mutable_version(); } // @@protoc_insertion_point(field_mutable:tensorflow.BundleHeaderProto.version) return version_; } inline ::tensorflow::VersionDef* BundleHeaderProto::release_version() { // @@protoc_insertion_point(field_release:tensorflow.BundleHeaderProto.version) if (GetArenaNoVirtual() != NULL) { return _slow_release_version(); } else { ::tensorflow::VersionDef* temp = version_; version_ = NULL; return temp; } } inline void BundleHeaderProto::set_allocated_version(::tensorflow::VersionDef* version) { ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); if (message_arena == NULL) { delete version_; } if (version != NULL) { _slow_set_allocated_version(message_arena, &version); } version_ = version; if (version) { } else { } // @@protoc_insertion_point(field_set_allocated:tensorflow.BundleHeaderProto.version) } // ------------------------------------------------------------------- // BundleEntryProto // .tensorflow.DataType dtype = 1; inline void BundleEntryProto::clear_dtype() { dtype_ = 0; } inline ::tensorflow::DataType BundleEntryProto::dtype() const { // @@protoc_insertion_point(field_get:tensorflow.BundleEntryProto.dtype) return static_cast< ::tensorflow::DataType >(dtype_); } inline void BundleEntryProto::set_dtype(::tensorflow::DataType value) { dtype_ = value; // @@protoc_insertion_point(field_set:tensorflow.BundleEntryProto.dtype) } // .tensorflow.TensorShapeProto shape = 2; inline bool BundleEntryProto::has_shape() const { return this != internal_default_instance() && shape_ != NULL; } inline void BundleEntryProto::clear_shape() { if (GetArenaNoVirtual() == NULL && shape_ != NULL) delete shape_; shape_ = NULL; } inline const ::tensorflow::TensorShapeProto& BundleEntryProto::shape() const { // @@protoc_insertion_point(field_get:tensorflow.BundleEntryProto.shape) return shape_ != NULL ? *shape_ : *::tensorflow::TensorShapeProto::internal_default_instance(); } inline ::tensorflow::TensorShapeProto* BundleEntryProto::mutable_shape() { if (shape_ == NULL) { _slow_mutable_shape(); } // @@protoc_insertion_point(field_mutable:tensorflow.BundleEntryProto.shape) return shape_; } inline ::tensorflow::TensorShapeProto* BundleEntryProto::release_shape() { // @@protoc_insertion_point(field_release:tensorflow.BundleEntryProto.shape) if (GetArenaNoVirtual() != NULL) { return _slow_release_shape(); } else { ::tensorflow::TensorShapeProto* temp = shape_; shape_ = NULL; return temp; } } inline void BundleEntryProto::set_allocated_shape(::tensorflow::TensorShapeProto* shape) { ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); if (message_arena == NULL) { delete shape_; } if (shape != NULL) { _slow_set_allocated_shape(message_arena, &shape); } shape_ = shape; if (shape) { } else { } // @@protoc_insertion_point(field_set_allocated:tensorflow.BundleEntryProto.shape) } // int32 shard_id = 3; inline void BundleEntryProto::clear_shard_id() { shard_id_ = 0; } inline ::google::protobuf::int32 BundleEntryProto::shard_id() const { // @@protoc_insertion_point(field_get:tensorflow.BundleEntryProto.shard_id) return shard_id_; } inline void BundleEntryProto::set_shard_id(::google::protobuf::int32 value) { shard_id_ = value; // @@protoc_insertion_point(field_set:tensorflow.BundleEntryProto.shard_id) } // int64 offset = 4; inline void BundleEntryProto::clear_offset() { offset_ = GOOGLE_LONGLONG(0); } inline ::google::protobuf::int64 BundleEntryProto::offset() const { // @@protoc_insertion_point(field_get:tensorflow.BundleEntryProto.offset) return offset_; } inline void BundleEntryProto::set_offset(::google::protobuf::int64 value) { offset_ = value; // @@protoc_insertion_point(field_set:tensorflow.BundleEntryProto.offset) } // int64 size = 5; inline void BundleEntryProto::clear_size() { size_ = GOOGLE_LONGLONG(0); } inline ::google::protobuf::int64 BundleEntryProto::size() const { // @@protoc_insertion_point(field_get:tensorflow.BundleEntryProto.size) return size_; } inline void BundleEntryProto::set_size(::google::protobuf::int64 value) { size_ = value; // @@protoc_insertion_point(field_set:tensorflow.BundleEntryProto.size) } // fixed32 crc32c = 6; inline void BundleEntryProto::clear_crc32c() { crc32c_ = 0u; } inline ::google::protobuf::uint32 BundleEntryProto::crc32c() const { // @@protoc_insertion_point(field_get:tensorflow.BundleEntryProto.crc32c) return crc32c_; } inline void BundleEntryProto::set_crc32c(::google::protobuf::uint32 value) { crc32c_ = value; // @@protoc_insertion_point(field_set:tensorflow.BundleEntryProto.crc32c) } // repeated .tensorflow.TensorSliceProto slices = 7; inline int BundleEntryProto::slices_size() const { return slices_.size(); } inline void BundleEntryProto::clear_slices() { slices_.Clear(); } inline const ::tensorflow::TensorSliceProto& BundleEntryProto::slices(int index) const { // @@protoc_insertion_point(field_get:tensorflow.BundleEntryProto.slices) return slices_.Get(index); } inline ::tensorflow::TensorSliceProto* BundleEntryProto::mutable_slices(int index) { // @@protoc_insertion_point(field_mutable:tensorflow.BundleEntryProto.slices) return slices_.Mutable(index); } inline ::tensorflow::TensorSliceProto* BundleEntryProto::add_slices() { // @@protoc_insertion_point(field_add:tensorflow.BundleEntryProto.slices) return slices_.Add(); } inline ::google::protobuf::RepeatedPtrField< ::tensorflow::TensorSliceProto >* BundleEntryProto::mutable_slices() { // @@protoc_insertion_point(field_mutable_list:tensorflow.BundleEntryProto.slices) return &slices_; } inline const ::google::protobuf::RepeatedPtrField< ::tensorflow::TensorSliceProto >& BundleEntryProto::slices() const { // @@protoc_insertion_point(field_list:tensorflow.BundleEntryProto.slices) return slices_; } #endif // !PROTOBUF_INLINE_NOT_IN_HEADERS // ------------------------------------------------------------------- // @@protoc_insertion_point(namespace_scope) } // namespace tensorflow #ifndef SWIG namespace google { namespace protobuf { template <> struct is_proto_enum< ::tensorflow::BundleHeaderProto_Endianness> : ::google::protobuf::internal::true_type {}; template <> inline const EnumDescriptor* GetEnumDescriptor< ::tensorflow::BundleHeaderProto_Endianness>() { return ::tensorflow::BundleHeaderProto_Endianness_descriptor(); } } // namespace protobuf } // namespace google #endif // SWIG // @@protoc_insertion_point(global_scope) #endif // PROTOBUF_tensorflow_2fcore_2fprotobuf_2ftensor_5fbundle_2eproto__INCLUDED
{'content_hash': '9b3af9c967b33fbbe00222efe5e759eb', 'timestamp': '', 'source': 'github', 'line_count': 664, 'max_line_length': 140, 'avg_line_length': 37.34487951807229, 'alnum_prop': 0.7252893495180869, 'repo_name': 'Bulochkin/tensorflow_pack', 'id': 'a66b69e951131d3b8caf50bc7c03d56c717853e6', 'size': '24797', 'binary': False, 'copies': '1', 'ref': 'refs/heads/master', 'path': 'tensorflow/contrib/makefile/gen/proto/tensorflow/core/protobuf/tensor_bundle.pb.h', 'mode': '33188', 'license': 'apache-2.0', 'language': [{'name': 'Batchfile', 'bytes': '8642'}, {'name': 'C', 'bytes': '1828001'}, {'name': 'C#', 'bytes': '2514007'}, {'name': 'C++', 'bytes': '45095967'}, {'name': 'CMake', 'bytes': '548000'}, {'name': 'CSS', 'bytes': '5436'}, {'name': 'Cuda', 'bytes': '133557'}, {'name': 'Emacs Lisp', 'bytes': '7822'}, {'name': 'Fortran', 'bytes': '1326303'}, {'name': 'Go', 'bytes': '906942'}, {'name': 'HTML', 'bytes': '19326'}, {'name': 'Java', 'bytes': '4277149'}, {'name': 'JavaScript', 'bytes': '489911'}, {'name': 'Jupyter Notebook', 'bytes': '1833659'}, {'name': 'LLVM', 'bytes': '6536'}, {'name': 'M4', 'bytes': '56312'}, {'name': 'Makefile', 'bytes': '186932'}, {'name': 'Objective-C', 'bytes': '2960956'}, {'name': 'Objective-C++', 'bytes': '66107'}, {'name': 'PHP', 'bytes': '464331'}, {'name': 'Protocol Buffer', 'bytes': '2002776'}, {'name': 'PureBasic', 'bytes': '24932'}, {'name': 'Python', 'bytes': '23512203'}, {'name': 'Ruby', 'bytes': '152468'}, {'name': 'Shell', 'bytes': '454403'}, {'name': 'Swift', 'bytes': '20112'}, {'name': 'Vim script', 'bytes': '3759'}]}
#if !defined(CETTY_BUFFER_HEAPCHANNELBUFFERFACTORY_H) #define CETTY_BUFFER_HEAPCHANNELBUFFERFACTORY_H /* * Copyright (c) 2010-2011 frankee zhou (frankee.zhou at gmail dot com) * Distributed under under the Apache License, version 2.0 (the "License"). */ #include "cetty/buffer/AbstractChannelBufferFactory.h" namespace cetty { namespace buffer { /** * A {@link ChannelBufferFactory} which merely allocates a heap buffer with * the specified capacity. {@link HeapChannelBufferFactory} should perform * very well in most situations because it relies on the JVM garbage collector, * which is highly optimized for heap allocation. * * * @author <a href="http://gleamynode.net/">Trustin Lee</a> * @author <a href="mailto:frankee.zhou@gmail.com">Frankee Zhou</a> */ class HeapChannelBufferFactory : public AbstractChannelBufferFactory { public: static ChannelBufferFactory& getInstance(); static ChannelBufferFactory& getInstance(ByteOrder endianness); public: /** * Creates a new factory whose default {@link ByteOrder} is * {@link ByteOrder#BIG_ENDIAN}. */ HeapChannelBufferFactory() : AbstractChannelBufferFactory() {} /** * Creates a new factory with the specified default {@link ByteOrder}. * * @param defaultOrder the default {@link ByteOrder} of this factory */ HeapChannelBufferFactory(ByteOrder defaultOrder) : AbstractChannelBufferFactory(defaultOrder) {} virtual ~HeapChannelBufferFactory() {} ChannelBufferPtr getBuffer(ByteOrder order, int capacity); ChannelBufferPtr getBuffer(ByteOrder order, const Array& array, int offset, int length); private: static HeapChannelBufferFactory INSTANCE_BE; static HeapChannelBufferFactory INSTANCE_LE; }; }} #endif //#if !defined(CETTY_BUFFER_HEAPCHANNELBUFFERFACTORY_H)
{'content_hash': 'e12b45c5a06b12aeaa092314782ecde6', 'timestamp': '', 'source': 'github', 'line_count': 58, 'max_line_length': 92, 'avg_line_length': 31.67241379310345, 'alnum_prop': 0.7354382144801307, 'repo_name': 'frankee/Cetty', 'id': '6aedb6b3ef51667b37322e60b908bdeafce59eb8', 'size': '2460', 'binary': False, 'copies': '1', 'ref': 'refs/heads/master', 'path': 'include/cetty/buffer/HeapChannelBufferFactory.h', 'mode': '33188', 'license': 'apache-2.0', 'language': [{'name': 'C', 'bytes': '30104'}, {'name': 'C++', 'bytes': '2125937'}, {'name': 'CMake', 'bytes': '16348'}]}
<?php namespace Simoja\Laramin\Tests; use Illuminate\Foundation\Testing\TestCase as BaseTestCase; use Illuminate\Contracts\Console\Kernel; use Tests\CreatesApplication; abstract class TestCase extends BaseTestCase { use CreatesApplication; protected $prefix = 'admin'; protected function create($namespace, $param = []) { return factory($namespace)->create($param); } protected function signIn($user = null) { $user ?: $this->create("\App\User"); return $this->actingAs($user); } }
{'content_hash': '29068bcdd19992057e14a578e0a19151', 'timestamp': '', 'source': 'github', 'line_count': 25, 'max_line_length': 59, 'avg_line_length': 21.76, 'alnum_prop': 0.6764705882352942, 'repo_name': 'simoebenhida/Laramin', 'id': '45df0ba56c29142dc85c6d231c46a03958115751', 'size': '544', 'binary': False, 'copies': '1', 'ref': 'refs/heads/master', 'path': 'tests/TestCase.php', 'mode': '33188', 'license': 'mit', 'language': [{'name': 'CSS', 'bytes': '133962'}, {'name': 'HTML', 'bytes': '26351'}, {'name': 'PHP', 'bytes': '254167'}]}
using System.ComponentModel; using System.Diagnostics; using System.Runtime.CompilerServices; using System.Text.Internal; using System.Text.Unicode; namespace System.Text.Encodings.Web { /// <summary> /// Represents a type used to do HTML encoding. /// </summary> public abstract class HtmlEncoder : TextEncoder { /// <summary> /// Returns a default built-in instance of <see cref="HtmlEncoder"/>. /// </summary> public static HtmlEncoder Default { get { return DefaultHtmlEncoder.Singleton; } } /// <summary> /// Creates a new instance of HtmlEncoder with provided settings. /// </summary> /// <param name="settings">Settings used to control how the created <see cref="HtmlEncoder"/> encodes, primarily which characters to encode.</param> /// <returns>A new instance of the <see cref="HtmlEncoder"/>.</returns> public static HtmlEncoder Create(TextEncoderSettings settings) { return new DefaultHtmlEncoder(settings); } /// <summary> /// Creates a new instance of HtmlEncoder specifying character to be encoded. /// </summary> /// <param name="allowedRanges">Set of characters that the endoder is allowed to not encode.</param> /// <returns>A new instance of the <see cref="HtmlEncoder"/></returns> /// <remarks>Some characters in <paramref name="allowedRanges"/> might still get encoded, i.e. this parameter is just telling the encoder what ranges it is allowed to not encode, not what characters it must not encode.</remarks> public static HtmlEncoder Create(params UnicodeRange[] allowedRanges) { return new DefaultHtmlEncoder(allowedRanges); } } internal sealed class DefaultHtmlEncoder : HtmlEncoder { private AllowedCharactersBitmap _allowedCharacters; internal readonly static DefaultHtmlEncoder Singleton = new DefaultHtmlEncoder(new TextEncoderSettings(UnicodeRanges.BasicLatin)); public DefaultHtmlEncoder(TextEncoderSettings filter) { if (filter == null) { throw new ArgumentNullException("filter"); } _allowedCharacters = filter.GetAllowedCharacters(); // Forbid codepoints which aren't mapped to characters or which are otherwise always disallowed // (includes categories Cc, Cs, Co, Cn, Zs [except U+0020 SPACE], Zl, Zp) _allowedCharacters.ForbidUndefinedCharacters(); ForbidHtmlCharacters(_allowedCharacters); } internal static void ForbidHtmlCharacters(AllowedCharactersBitmap allowedCharacters) { allowedCharacters.ForbidCharacter('<'); allowedCharacters.ForbidCharacter('>'); allowedCharacters.ForbidCharacter('&'); allowedCharacters.ForbidCharacter('\''); // can be used to escape attributes allowedCharacters.ForbidCharacter('\"'); // can be used to escape attributes allowedCharacters.ForbidCharacter('+'); // technically not HTML-specific, but can be used to perform UTF7-based attacks } public DefaultHtmlEncoder(params UnicodeRange[] allowedRanges) : this(new TextEncoderSettings(allowedRanges)) { } [MethodImpl(MethodImplOptions.AggressiveInlining)] public override bool WillEncode(int unicodeScalar) { if (UnicodeHelpers.IsSupplementaryCodePoint(unicodeScalar)) return true; return !_allowedCharacters.IsUnicodeScalarAllowed(unicodeScalar); } [MethodImpl(MethodImplOptions.AggressiveInlining)] public unsafe override int FindFirstCharacterToEncode(char* text, int textLength) { return _allowedCharacters.FindFirstCharacterToEncode(text, textLength); } public override int MaxOutputCharactersPerInputCharacter { get { return 8; } // "&#xFFFF;" is the longest encoded form } static readonly char[] s_quote = "&quot;".ToCharArray(); static readonly char[] s_ampersand = "&amp;".ToCharArray(); static readonly char[] s_lessthan = "&lt;".ToCharArray(); static readonly char[] s_greaterthan = "&gt;".ToCharArray(); public unsafe override bool TryEncodeUnicodeScalar(int unicodeScalar, char* buffer, int bufferLength, out int numberOfCharactersWritten) { if (buffer == null) { throw new ArgumentNullException("buffer"); } if (!WillEncode(unicodeScalar)) { return TryWriteScalarAsChar(unicodeScalar, buffer, bufferLength, out numberOfCharactersWritten); } else if (unicodeScalar == '\"') { return TryCopyCharacters(s_quote, buffer, bufferLength, out numberOfCharactersWritten); } else if (unicodeScalar == '&') { return TryCopyCharacters(s_ampersand, buffer, bufferLength, out numberOfCharactersWritten); } else if (unicodeScalar == '<') { return TryCopyCharacters(s_lessthan, buffer, bufferLength, out numberOfCharactersWritten); } else if (unicodeScalar == '>') { return TryCopyCharacters(s_greaterthan, buffer, bufferLength, out numberOfCharactersWritten); } else { return TryWriteEncodedScalarAsNumericEntity(unicodeScalar, buffer, bufferLength, out numberOfCharactersWritten); } } private unsafe static bool TryWriteEncodedScalarAsNumericEntity(int unicodeScalar, char* buffer, int bufferLength, out int numberOfCharactersWritten) { Debug.Assert(buffer != null && bufferLength >= 0); // We're writing the characters in reverse, first determine // how many there are const int nibbleSize = 4; int numberOfHexCharacters = 0; int compareUnicodeScalar = unicodeScalar; do { Debug.Assert(numberOfHexCharacters < 8, "Couldn't have written 8 characters out by this point."); numberOfHexCharacters++; compareUnicodeScalar >>= nibbleSize; } while (compareUnicodeScalar != 0); numberOfCharactersWritten = numberOfHexCharacters + 4; // four chars are &, #, x, and ; Debug.Assert(numberOfHexCharacters > 0, "At least one character should've been written."); if (numberOfHexCharacters + 4 > bufferLength) { numberOfCharactersWritten = 0; return false; } // Finally, write out the HTML-encoded scalar value. *buffer = '&'; buffer++; *buffer = '#'; buffer++; *buffer = 'x'; // Jump to the end of the hex position and write backwards buffer += numberOfHexCharacters; do { *buffer = HexUtil.Int32LsbToHexDigit(unicodeScalar & 0xF); unicodeScalar >>= nibbleSize; buffer--; } while (unicodeScalar != 0); buffer += numberOfHexCharacters + 1; *buffer = ';'; return true; } } }
{'content_hash': '1954f5e4b6b89a0a2568edf7692fce52', 'timestamp': '', 'source': 'github', 'line_count': 163, 'max_line_length': 237, 'avg_line_length': 44.41717791411043, 'alnum_prop': 0.6319060773480663, 'repo_name': 'mafiya69/corefx', 'id': '0f517ba5b40e9d68c5c819bbdc7713025b4a69c8', 'size': '7444', 'binary': False, 'copies': '1', 'ref': 'refs/heads/master', 'path': 'src/System.Text.Encodings.Web/src/System/Text/Encodings/Web/HtmlEncoder.cs', 'mode': '33188', 'license': 'mit', 'language': [{'name': 'Batchfile', 'bytes': '17558'}, {'name': 'C', 'bytes': '1107935'}, {'name': 'C#', 'bytes': '102997279'}, {'name': 'C++', 'bytes': '287088'}, {'name': 'CMake', 'bytes': '25583'}, {'name': 'DIGITAL Command Language', 'bytes': '26402'}, {'name': 'Groff', 'bytes': '4236'}, {'name': 'Groovy', 'bytes': '18486'}, {'name': 'Makefile', 'bytes': '100'}, {'name': 'Perl', 'bytes': '3895'}, {'name': 'PowerShell', 'bytes': '9085'}, {'name': 'Python', 'bytes': '1535'}, {'name': 'Shell', 'bytes': '29000'}, {'name': 'Visual Basic', 'bytes': '829112'}]}
import { Disposable } from 'atom'; import type { TextEditor } from 'atom'; export default class EditorLinter { private editor; private emitter; private subscriptions; constructor(editor: TextEditor); getEditor(): TextEditor; lint(onChange?: boolean): void; onShouldLint(callback: (...args: Array<any>) => any): Disposable; onDidDestroy(callback: (...args: Array<any>) => any): Disposable; dispose(): void; subscriptiveObserve(object: Record<string, any>, eventName: string, callback: (...args: Array<any>) => any): Disposable; }
{'content_hash': 'd4a8b94a761e18c92a56bc9cd6101764', 'timestamp': '', 'source': 'github', 'line_count': 14, 'max_line_length': 124, 'avg_line_length': 40.642857142857146, 'alnum_prop': 0.680140597539543, 'repo_name': 'AtomLinter/Linter', 'id': '72ed37aa7a45bd5b837207b8bcbfb9a88267d6f2', 'size': '569', 'binary': False, 'copies': '2', 'ref': 'refs/heads/master', 'path': 'dist/editor-linter.d.ts', 'mode': '33188', 'license': 'mit', 'language': [{'name': 'CoffeeScript', 'bytes': '20785'}, {'name': 'JavaScript', 'bytes': '38939'}]}
<?php namespace Kir\CountryCodes; class IcuCountryListProviderTest extends \PHPUnit_Framework_TestCase { public function testGetCountries() { $translator = new IcuCountryListProvider('de', 'DE'); $list = $translator->getCountries(); $this->assertArrayHasKey('DE', $list); $this->assertArrayHasKey('US', $list); $this->assertEquals('Vereinigte Staaten', $list['US']); $this->assertEquals('Deutschland', $list['DE']); } public function testIterator() { $translator = new IcuCountryListProvider('de', 'DE'); $list = iterator_to_array($translator); $this->assertArrayHasKey('DE', $list); $this->assertArrayHasKey('US', $list); $this->assertEquals('Vereinigte Staaten', $list['US']); $this->assertEquals('Deutschland', $list['DE']); } }
{'content_hash': '5e6c2e602e89a5e50adda17439664bc2', 'timestamp': '', 'source': 'github', 'line_count': 22, 'max_line_length': 70, 'avg_line_length': 34.63636363636363, 'alnum_prop': 0.6955380577427821, 'repo_name': 'ecommerce-utilities/php-countries', 'id': '901c5565ff13ea5a1974495684d966358b31e44f', 'size': '762', 'binary': False, 'copies': '1', 'ref': 'refs/heads/master', 'path': 'tests/IcuCountryListProviderTest.php', 'mode': '33188', 'license': 'mit', 'language': [{'name': 'PHP', 'bytes': '4680766'}]}
require File.join(File.dirname(__FILE__), 'common') class EncodingDetectionTest < Test::Unit::TestCase include DetencHelper SAMPLE = "Pâté: €3.20" def test_should_recognise_utf8 sample = SAMPLE encoding = UTF_8 assert_equal encoding, detenc(sample) end def test_should_recognise_windows_1252 encoding = WINDOWS_1252 sample = Iconv.new(encoding, UTF_8).iconv(SAMPLE) assert_equal encoding, detenc(sample) end def test_should_recognise_iso_8859_15 encoding = ISO_8859_15 sample = Iconv.new(encoding, UTF_8).iconv(SAMPLE) assert_equal encoding, detenc(sample) end def test_should_be_us_ascii_if_empty assert_equal US_ASCII, detenc('') end end
{'content_hash': 'd2f468cbb2d1017fe4cef87ded79c3d6', 'timestamp': '', 'source': 'github', 'line_count': 30, 'max_line_length': 53, 'avg_line_length': 23.566666666666666, 'alnum_prop': 0.7001414427157001, 'repo_name': 'threedaymonk/detenc', 'id': 'd25ded74c56772a5dfafc2b5e3191b0d187ded8c', 'size': '728', 'binary': False, 'copies': '1', 'ref': 'refs/heads/master', 'path': 'test/test_encoding_detection.rb', 'mode': '33188', 'license': 'mit', 'language': [{'name': 'C', 'bytes': '5096'}, {'name': 'Ruby', 'bytes': '11556'}]}
namespace v8 { namespace internal { namespace heap { Page* HeapTester::AllocateByteArraysOnPage( Heap* heap, std::vector<ByteArray>* byte_arrays) { PauseAllocationObserversScope pause_observers(heap); const int kLength = 256 - ByteArray::kHeaderSize; const int kSize = ByteArray::SizeFor(kLength); CHECK_EQ(kSize, 256); PagedSpace* old_space = heap->old_space(); Page* page; // Fill a page with byte arrays. { AlwaysAllocateScopeForTesting always_allocate(heap); heap::SimulateFullSpace(old_space); ByteArray byte_array; CHECK(AllocateByteArrayForTest(heap, kLength, AllocationType::kOld) .To(&byte_array)); byte_arrays->push_back(byte_array); page = Page::FromHeapObject(byte_array); size_t n = page->area_size() / kSize; for (size_t i = 1; i < n; i++) { CHECK(AllocateByteArrayForTest(heap, kLength, AllocationType::kOld) .To(&byte_array)); byte_arrays->push_back(byte_array); CHECK_EQ(page, Page::FromHeapObject(byte_array)); } } CHECK_NULL(page->invalidated_slots<OLD_TO_OLD>()); return page; } HEAP_TEST(InvalidatedSlotsNoInvalidatedRanges) { FLAG_stress_concurrent_allocation = false; // For AllocateByteArraysOnPage. CcTest::InitializeVM(); Heap* heap = CcTest::heap(); std::vector<ByteArray> byte_arrays; Page* page = AllocateByteArraysOnPage(heap, &byte_arrays); InvalidatedSlotsFilter filter = InvalidatedSlotsFilter::OldToOld(page); for (ByteArray byte_array : byte_arrays) { Address start = byte_array.address() + ByteArray::kHeaderSize; Address end = byte_array.address() + byte_array.Size(); for (Address addr = start; addr < end; addr += kTaggedSize) { CHECK(filter.IsValid(addr)); } } } HEAP_TEST(InvalidatedSlotsSomeInvalidatedRanges) { FLAG_stress_concurrent_allocation = false; // For AllocateByteArraysOnPage. CcTest::InitializeVM(); Heap* heap = CcTest::heap(); std::vector<ByteArray> byte_arrays; Page* page = AllocateByteArraysOnPage(heap, &byte_arrays); // Register every second byte arrays as invalidated. for (size_t i = 0; i < byte_arrays.size(); i += 2) { page->RegisterObjectWithInvalidatedSlots<OLD_TO_OLD>(byte_arrays[i]); } InvalidatedSlotsFilter filter = InvalidatedSlotsFilter::OldToOld(page); for (size_t i = 0; i < byte_arrays.size(); i++) { ByteArray byte_array = byte_arrays[i]; Address start = byte_array.address() + ByteArray::kHeaderSize; Address end = byte_array.address() + byte_array.Size(); for (Address addr = start; addr < end; addr += kTaggedSize) { if (i % 2 == 0) { CHECK(!filter.IsValid(addr)); } else { CHECK(filter.IsValid(addr)); } } } } HEAP_TEST(InvalidatedSlotsAllInvalidatedRanges) { FLAG_stress_concurrent_allocation = false; // For AllocateByteArraysOnPage. CcTest::InitializeVM(); Heap* heap = CcTest::heap(); std::vector<ByteArray> byte_arrays; Page* page = AllocateByteArraysOnPage(heap, &byte_arrays); // Register the all byte arrays as invalidated. for (size_t i = 0; i < byte_arrays.size(); i++) { page->RegisterObjectWithInvalidatedSlots<OLD_TO_OLD>(byte_arrays[i]); } InvalidatedSlotsFilter filter = InvalidatedSlotsFilter::OldToOld(page); for (size_t i = 0; i < byte_arrays.size(); i++) { ByteArray byte_array = byte_arrays[i]; Address start = byte_array.address() + ByteArray::kHeaderSize; Address end = byte_array.address() + byte_array.Size(); for (Address addr = start; addr < end; addr += kTaggedSize) { CHECK(!filter.IsValid(addr)); } } } HEAP_TEST(InvalidatedSlotsAfterTrimming) { ManualGCScope manual_gc_scope; CcTest::InitializeVM(); Heap* heap = CcTest::heap(); std::vector<ByteArray> byte_arrays; Page* page = AllocateByteArraysOnPage(heap, &byte_arrays); // Register the all byte arrays as invalidated. for (size_t i = 0; i < byte_arrays.size(); i++) { page->RegisterObjectWithInvalidatedSlots<OLD_TO_OLD>(byte_arrays[i]); } // Trim byte arrays and check that the slots outside the byte arrays are // considered invalid if the old space page was swept. InvalidatedSlotsFilter filter = InvalidatedSlotsFilter::OldToOld(page); for (size_t i = 0; i < byte_arrays.size(); i++) { ByteArray byte_array = byte_arrays[i]; Address start = byte_array.address() + ByteArray::kHeaderSize; Address end = byte_array.address() + byte_array.Size(); heap->RightTrimFixedArray(byte_array, byte_array.length()); for (Address addr = start; addr < end; addr += kTaggedSize) { CHECK_EQ(filter.IsValid(addr), page->SweepingDone()); } } } HEAP_TEST(InvalidatedSlotsEvacuationCandidate) { ManualGCScope manual_gc_scope; CcTest::InitializeVM(); Heap* heap = CcTest::heap(); std::vector<ByteArray> byte_arrays; Page* page = AllocateByteArraysOnPage(heap, &byte_arrays); page->MarkEvacuationCandidate(); // Register the all byte arrays as invalidated. // This should be no-op because the page is marked as evacuation // candidate. for (size_t i = 0; i < byte_arrays.size(); i++) { page->RegisterObjectWithInvalidatedSlots<OLD_TO_OLD>(byte_arrays[i]); } // All slots must still be valid. InvalidatedSlotsFilter filter = InvalidatedSlotsFilter::OldToOld(page); for (size_t i = 0; i < byte_arrays.size(); i++) { ByteArray byte_array = byte_arrays[i]; Address start = byte_array.address() + ByteArray::kHeaderSize; Address end = byte_array.address() + byte_array.Size(); for (Address addr = start; addr < end; addr += kTaggedSize) { CHECK(filter.IsValid(addr)); } } } HEAP_TEST(InvalidatedSlotsResetObjectRegression) { FLAG_stress_concurrent_allocation = false; // For AllocateByteArraysOnPage. CcTest::InitializeVM(); Heap* heap = CcTest::heap(); std::vector<ByteArray> byte_arrays; Page* page = AllocateByteArraysOnPage(heap, &byte_arrays); // Ensure that the first array has smaller size then the rest. heap->RightTrimFixedArray(byte_arrays[0], byte_arrays[0].length() - 8); // Register the all byte arrays as invalidated. for (size_t i = 0; i < byte_arrays.size(); i++) { page->RegisterObjectWithInvalidatedSlots<OLD_TO_OLD>(byte_arrays[i]); } // All slots must still be invalid. InvalidatedSlotsFilter filter = InvalidatedSlotsFilter::OldToOld(page); for (size_t i = 0; i < byte_arrays.size(); i++) { ByteArray byte_array = byte_arrays[i]; Address start = byte_array.address() + ByteArray::kHeaderSize; Address end = byte_array.address() + byte_array.Size(); for (Address addr = start; addr < end; addr += kTaggedSize) { CHECK(!filter.IsValid(addr)); } } } Handle<FixedArray> AllocateArrayOnFreshPage(Isolate* isolate, PagedSpace* old_space, int length) { AlwaysAllocateScopeForTesting always_allocate(isolate->heap()); heap::SimulateFullSpace(old_space); return isolate->factory()->NewFixedArray(length, AllocationType::kOld); } Handle<FixedArray> AllocateArrayOnEvacuationCandidate(Isolate* isolate, PagedSpace* old_space, int length) { Handle<FixedArray> object = AllocateArrayOnFreshPage(isolate, old_space, length); heap::ForceEvacuationCandidate(Page::FromHeapObject(*object)); return object; } HEAP_TEST(InvalidatedSlotsRightTrimFixedArray) { FLAG_manual_evacuation_candidates_selection = true; FLAG_parallel_compaction = false; ManualGCScope manual_gc_scope; CcTest::InitializeVM(); Isolate* isolate = CcTest::i_isolate(); Factory* factory = isolate->factory(); Heap* heap = CcTest::heap(); HandleScope scope(isolate); PagedSpace* old_space = heap->old_space(); // Allocate a dummy page to be swept be the sweeper during evacuation. AllocateArrayOnFreshPage(isolate, old_space, 1); Handle<FixedArray> evacuated = AllocateArrayOnEvacuationCandidate(isolate, old_space, 1); Handle<FixedArray> trimmed = AllocateArrayOnFreshPage(isolate, old_space, 10); heap::SimulateIncrementalMarking(heap); for (int i = 1; i < trimmed->length(); i++) { trimmed->set(i, *evacuated); } { HandleScope scope(isolate); Handle<HeapObject> dead = factory->NewFixedArray(1); for (int i = 1; i < trimmed->length(); i++) { trimmed->set(i, *dead); } heap->RightTrimFixedArray(*trimmed, trimmed->length() - 1); } CcTest::CollectGarbage(i::NEW_SPACE); CcTest::CollectGarbage(i::OLD_SPACE); } HEAP_TEST(InvalidatedSlotsRightTrimLargeFixedArray) { FLAG_manual_evacuation_candidates_selection = true; FLAG_parallel_compaction = false; ManualGCScope manual_gc_scope; CcTest::InitializeVM(); Isolate* isolate = CcTest::i_isolate(); Factory* factory = isolate->factory(); Heap* heap = CcTest::heap(); HandleScope scope(isolate); PagedSpace* old_space = heap->old_space(); // Allocate a dummy page to be swept be the sweeper during evacuation. AllocateArrayOnFreshPage(isolate, old_space, 1); Handle<FixedArray> evacuated = AllocateArrayOnEvacuationCandidate(isolate, old_space, 1); Handle<FixedArray> trimmed; { AlwaysAllocateScopeForTesting always_allocate(heap); trimmed = factory->NewFixedArray( kMaxRegularHeapObjectSize / kTaggedSize + 100, AllocationType::kOld); DCHECK(MemoryChunk::FromHeapObject(*trimmed)->InLargeObjectSpace()); } heap::SimulateIncrementalMarking(heap); for (int i = 1; i < trimmed->length(); i++) { trimmed->set(i, *evacuated); } { HandleScope scope(isolate); Handle<HeapObject> dead = factory->NewFixedArray(1); for (int i = 1; i < trimmed->length(); i++) { trimmed->set(i, *dead); } heap->RightTrimFixedArray(*trimmed, trimmed->length() - 1); } CcTest::CollectGarbage(i::NEW_SPACE); CcTest::CollectGarbage(i::OLD_SPACE); } HEAP_TEST(InvalidatedSlotsLeftTrimFixedArray) { FLAG_manual_evacuation_candidates_selection = true; FLAG_parallel_compaction = false; ManualGCScope manual_gc_scope; CcTest::InitializeVM(); Isolate* isolate = CcTest::i_isolate(); Factory* factory = isolate->factory(); Heap* heap = CcTest::heap(); HandleScope scope(isolate); PagedSpace* old_space = heap->old_space(); // Allocate a dummy page to be swept be the sweeper during evacuation. AllocateArrayOnFreshPage(isolate, old_space, 1); Handle<FixedArray> evacuated = AllocateArrayOnEvacuationCandidate(isolate, old_space, 1); Handle<FixedArray> trimmed = AllocateArrayOnFreshPage(isolate, old_space, 10); heap::SimulateIncrementalMarking(heap); for (int i = 0; i + 1 < trimmed->length(); i++) { trimmed->set(i, *evacuated); } { HandleScope scope(isolate); Handle<HeapObject> dead = factory->NewFixedArray(1); for (int i = 1; i < trimmed->length(); i++) { trimmed->set(i, *dead); } heap->LeftTrimFixedArray(*trimmed, trimmed->length() - 1); } CcTest::CollectGarbage(i::NEW_SPACE); CcTest::CollectGarbage(i::OLD_SPACE); } HEAP_TEST(InvalidatedSlotsFastToSlow) { FLAG_manual_evacuation_candidates_selection = true; FLAG_parallel_compaction = false; ManualGCScope manual_gc_scope; CcTest::InitializeVM(); Isolate* isolate = CcTest::i_isolate(); Factory* factory = isolate->factory(); Heap* heap = CcTest::heap(); PagedSpace* old_space = heap->old_space(); HandleScope scope(isolate); Handle<String> name = factory->InternalizeUtf8String("TestObject"); Handle<String> prop_name1 = factory->InternalizeUtf8String("prop1"); Handle<String> prop_name2 = factory->InternalizeUtf8String("prop2"); Handle<String> prop_name3 = factory->InternalizeUtf8String("prop3"); // Allocate a dummy page to be swept be the sweeper during evacuation. AllocateArrayOnFreshPage(isolate, old_space, 1); Handle<FixedArray> evacuated = AllocateArrayOnEvacuationCandidate(isolate, old_space, 1); // Allocate a dummy page to ensure that the JSObject is allocated on // a fresh page. AllocateArrayOnFreshPage(isolate, old_space, 1); Handle<JSObject> obj; { AlwaysAllocateScopeForTesting always_allocate(heap); Handle<JSFunction> function = factory->NewFunctionForTest(name); function->shared().set_expected_nof_properties(3); obj = factory->NewJSObject(function, AllocationType::kOld); } // Start incremental marking. heap::SimulateIncrementalMarking(heap); // Set properties to point to the evacuation candidate. Object::SetProperty(isolate, obj, prop_name1, evacuated).Check(); Object::SetProperty(isolate, obj, prop_name2, evacuated).Check(); Object::SetProperty(isolate, obj, prop_name3, evacuated).Check(); { HandleScope scope(isolate); Handle<HeapObject> dead = factory->NewFixedArray(1); Object::SetProperty(isolate, obj, prop_name1, dead).Check(); Object::SetProperty(isolate, obj, prop_name2, dead).Check(); Object::SetProperty(isolate, obj, prop_name3, dead).Check(); Handle<Map> map(obj->map(), isolate); Handle<Map> normalized_map = Map::Normalize(isolate, map, CLEAR_INOBJECT_PROPERTIES, "testing"); JSObject::MigrateToMap(isolate, obj, normalized_map); } CcTest::CollectGarbage(i::NEW_SPACE); CcTest::CollectGarbage(i::OLD_SPACE); } HEAP_TEST(InvalidatedSlotsCleanupFull) { ManualGCScope manual_gc_scope; CcTest::InitializeVM(); Heap* heap = CcTest::heap(); std::vector<ByteArray> byte_arrays; Page* page = AllocateByteArraysOnPage(heap, &byte_arrays); // Register all byte arrays as invalidated. for (size_t i = 0; i < byte_arrays.size(); i++) { page->RegisterObjectWithInvalidatedSlots<OLD_TO_NEW>(byte_arrays[i]); } // Mark full page as free InvalidatedSlotsCleanup cleanup = InvalidatedSlotsCleanup::OldToNew(page); cleanup.Free(page->area_start(), page->area_end()); // After cleanup there should be no invalidated objects on page left CHECK(page->invalidated_slots<OLD_TO_NEW>()->empty()); } HEAP_TEST(InvalidatedSlotsCleanupEachObject) { ManualGCScope manual_gc_scope; CcTest::InitializeVM(); Heap* heap = CcTest::heap(); std::vector<ByteArray> byte_arrays; Page* page = AllocateByteArraysOnPage(heap, &byte_arrays); // Register all byte arrays as invalidated. for (size_t i = 0; i < byte_arrays.size(); i++) { page->RegisterObjectWithInvalidatedSlots<OLD_TO_NEW>(byte_arrays[i]); } // Mark each object as free on page InvalidatedSlotsCleanup cleanup = InvalidatedSlotsCleanup::OldToNew(page); for (size_t i = 0; i < byte_arrays.size(); i++) { Address free_start = byte_arrays[i].address(); Address free_end = free_start + byte_arrays[i].Size(); cleanup.Free(free_start, free_end); } // After cleanup there should be no invalidated objects on page left CHECK(page->invalidated_slots<OLD_TO_NEW>()->empty()); } HEAP_TEST(InvalidatedSlotsCleanupRightTrim) { ManualGCScope manual_gc_scope; CcTest::InitializeVM(); Heap* heap = CcTest::heap(); std::vector<ByteArray> byte_arrays; Page* page = AllocateByteArraysOnPage(heap, &byte_arrays); CHECK_GT(byte_arrays.size(), 1); ByteArray& invalidated = byte_arrays[1]; heap->RightTrimFixedArray(invalidated, invalidated.length() - 8); page->RegisterObjectWithInvalidatedSlots<OLD_TO_NEW>(invalidated); // Free memory at end of invalidated object InvalidatedSlotsCleanup cleanup = InvalidatedSlotsCleanup::OldToNew(page); Address free_start = invalidated.address() + invalidated.Size(); cleanup.Free(free_start, page->area_end()); // After cleanup the invalidated object should be smaller InvalidatedSlots* invalidated_slots = page->invalidated_slots<OLD_TO_NEW>(); CHECK_EQ(invalidated_slots->size(), 1); } } // namespace heap } // namespace internal } // namespace v8
{'content_hash': '5477304abea289bcfaf87841e2d3313b', 'timestamp': '', 'source': 'github', 'line_count': 404, 'max_line_length': 80, 'avg_line_length': 39.04950495049505, 'alnum_prop': 0.6963108519269777, 'repo_name': 'youtube/cobalt_sandbox', 'id': '9683331904f739042150a14f101e022a51e2e554', 'size': '16283', 'binary': False, 'copies': '2', 'ref': 'refs/heads/main', 'path': 'third_party/v8/test/cctest/heap/test-invalidated-slots.cc', 'mode': '33188', 'license': 'bsd-3-clause', 'language': []}
<!DOCTYPE html> <html> <head> <link href="../global.css" rel="stylesheet" type="text/css"> <title>Admin - Übersicht</title> <meta charset="UTF-8"> </head> <body> <?php include "studFunctions.inc.php"; if(!ValidateUsername(GetSessionUsername())) { logout(); } else { } printSidebarMenuBegin("survey"); if(isset($_POST['cmdSurveySubmit'])) { echo '<h1>' . $_SESSION['currentSurveyName'] . '</h1>'; $conn = getDBConnection(); $survey = new survey($_SESSION['currentSurveyName']); saveLastQuestion(); $id = $survey->GetID(); $submitQuery = "INSERT INTO " . FBABGABE . " VALUES('".GetSessionUsername()."',$id)"; if(!mysqli_query($conn,$submitQuery)) { echo "<p>Fehler beim Abgeben des Fragebogens!</p>"; } else { $_SESSION['toaster'] = TOAST_SURVEY_SUBMITTED; header("Location: ./student.php"); } mysqli_close($conn); } // Bearbeitung eines neuen Fragebogens: Auswahl, nächstes oder letztes else if(isset($_POST['cmdEditSurveyNew']) || isset($_POST['cmdSurveyNewPrevious']) || isset($_POST['cmdSurveyNewNext']) || isset($_POST['cmdEditSurveyEdited'])) { $heading = ""; if(isset($_POST['cb'])) $heading = $_POST['cbSurveysNew']; else if(isset($_SESSION['currentSurveyName'])) $heading = $_SESSION['currentSurveyName']; echo '<h1>' . $heading . '</h1>'; // Steuerung der Weiter / Zurück / Abgeben Buttons $currentQuestionIsMax = false; // Button "VORWÄRTS" if(isset($_POST['cmdSurveyNewNext'])) { $_SESSION['currentSurveyIndex']++; // Maximum $survey = new survey($_SESSION['currentSurveyName']); if($_SESSION['currentSurveyIndex'] >= $survey->GetQuestionCount()) { $_SESSION['currentSurveyIndex'] = $survey->GetQuestionCount(); $currentQuestionIsMax = true; } saveLastQuestion(); if($_POST['cmdSurveyNewNext'] == 'Speichern') { $_SESSION['toaster'] = TOAST_SURVEY_SAVED; header("Location: ./student.php"); } // Button "ZURÜCK" } else if(isset($_POST['cmdSurveyNewPrevious'])) { $_SESSION['currentSurveyIndex']--; // Minimum if($_SESSION['currentSurveyIndex'] < 1) $_SESSION['currentSurveyIndex'] = 1; } else { $_SESSION['currentSurveyIndex'] = 1; // Neu if(isset($_POST['cmdEditSurveyNew'])) { $_SESSION['currentSurveyName'] = $_POST['cbSurveysNew']; // Bearbeitete } else if(isset($_POST['cmdEditSurveyEdited'])) { $_SESSION['currentSurveyName'] = $_POST['cbSurveysToEdit']; } } echo '<form action="survey_edit.php" method="POST">'; EditSurvey(); echo '<br /><br />'; echo '<input type="submit" name="cmdSurveyNewPrevious" value="Zurück"/>'; if($currentQuestionIsMax) { echo '<input type="submit" name="cmdSurveyNewNext" value="Speichern"/><br /><br />'; echo '<input type="submit" name="cmdSurveySubmit" value="Fragebogen abgeben"/>'; } else { echo '<input type="submit" name="cmdSurveyNewNext" value="Weiter"/>'; } echo '</form>'; } else if(isset($_POST['cmdViewSurveysCompleted'])){ echo '<h1>Musterlösung - ' . $_POST['cbSurveysCompleted'] . '</h1>'; $conn = getDBConnection(); $surveyName = mysqli_real_escape_string($conn,$_POST['cbSurveysCompleted']); $survey = new survey($surveyName); for($i = 0; $i < $survey->GetQuestionCount(); $i++) { $question = $survey->GetQuestionAt($i); $ownSolution = GetOwnSolution($survey->GetID(), $question->GetID(),GetSessionUsername()); $type = "(Multiple Choice)"; if($question->GetType() == FRAGENTYP_TEXTFRAGE_DB) $type = "(Textfrage)"; echo '<h2>'. ($i +1) . ". " .$question->GetName()." ".$type.'</h2>'; echo '<div class="studAnswerContainer">'; echo '<p><b>Fragetext:</b><br /><br />'.$question->GetText().'</p>'; echo '<p>'; if($question->GetType() == FRAGENTYP_MULTIPLE_CHOICE_DB) { $sol = $question->GetQuestionAnswersWithTruths(); echo array_search('1', $sol); echo '<table class="review"> <thead> <tr> <td> Antwort </td> <td> Musterlösung </td> <td> Eigene Lösung </td> </tr> </thead> <tbody>'; foreach($sol as $k => $v) { $text = $question->GetAnswerText($k); // Lösung $result = ""; if(implode("",$v) == SHORT_TRUE) $result = "X"; // Student $solution = ""; if(GetMCQuestionAnswer($survey->GetID(), $question->GetID(),$k) == SHORT_TRUE) $solution = "X"; echo '<tr><td>'.$text.'</td><td>'.$result.'</td><td>'.$solution.'</td></tr>'; } echo '</tbody></table>'; } else { foreach($ownSolution as $k => $v) { echo "<b>Ihre Lösung:</b><br /><br />" . implode("",$v) . '</p>'; } echo '<p><b>Musterlösung:</b><br /><br />'; echo GetTextQuestionSolution($question->GetID()); echo '</p>'; } echo '</div>'; } mysqli_close($conn); echo "<br /><br /><a href='survey_main.php'>Zurück</a><br /><br />"; } printSidebarMenuEnd(); ?> </body> </html>
{'content_hash': '29f9b1683a16dbd4e796b1c9cef877bc', 'timestamp': '', 'source': 'github', 'line_count': 182, 'max_line_length': 163, 'avg_line_length': 27.46153846153846, 'alnum_prop': 0.5898359343737495, 'repo_name': 'MarcelJurtz/Vorlesungsevaluation', 'id': '6e871e1ab810fe8d35f3cf8bb24f1d1749eeedc6', 'size': '5011', 'binary': False, 'copies': '1', 'ref': 'refs/heads/master', 'path': 'student/survey_edit.php', 'mode': '33188', 'license': 'mit', 'language': [{'name': 'CSS', 'bytes': '3299'}, {'name': 'JavaScript', 'bytes': '5208'}, {'name': 'PHP', 'bytes': '118368'}]}
package org.apache.polygene.runtime.composite; import org.apache.polygene.api.concern.ConcernDescriptor; /** * JAVADOC */ public final class ConcernModel extends AbstractModifierModel implements ConcernDescriptor { public ConcernModel( Class concernClass, Class instantiationClass ) { super( concernClass, instantiationClass ); } }
{'content_hash': 'aec98a6bffadaebc9aba8d29be6a8481', 'timestamp': '', 'source': 'github', 'line_count': 17, 'max_line_length': 71, 'avg_line_length': 21.294117647058822, 'alnum_prop': 0.7541436464088398, 'repo_name': 'Qi4j/qi4j-sdk', 'id': 'b583aaf23e3f88d28a0dd6660f9133a56c0d4c24', 'size': '1187', 'binary': False, 'copies': '3', 'ref': 'refs/heads/develop', 'path': 'core/runtime/src/main/java/org/apache/polygene/runtime/composite/ConcernModel.java', 'mode': '33188', 'license': 'apache-2.0', 'language': [{'name': 'CSS', 'bytes': '47894'}, {'name': 'Dockerfile', 'bytes': '6578'}, {'name': 'Groovy', 'bytes': '182719'}, {'name': 'HTML', 'bytes': '274845'}, {'name': 'Java', 'bytes': '9262986'}, {'name': 'JavaScript', 'bytes': '76579'}, {'name': 'Python', 'bytes': '6472'}, {'name': 'Shell', 'bytes': '6828'}, {'name': 'XSLT', 'bytes': '74729'}]}
<?xml version="1.0" encoding="UTF-8"?> <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> <parent> <artifactId>unittest-sql-example</artifactId> <groupId>demo.jz2013</groupId> <version>1.0-SNAPSHOT</version> </parent> <modelVersion>4.0.0</modelVersion> <packaging>pom</packaging> <artifactId>sql-unittest-demoapp</artifactId> <modules> <module>sql-unittest-demo-core</module> <module>sql-unittest-demo-schema</module> </modules> </project>
{'content_hash': '19699738fd3b416ab208101c5da4b3ee', 'timestamp': '', 'source': 'github', 'line_count': 20, 'max_line_length': 108, 'avg_line_length': 34.1, 'alnum_prop': 0.6495601173020528, 'repo_name': 'eirikma/sql-unittest-example', 'id': '858968ef704f9d860de7da55a2e591e787d96503', 'size': '682', 'binary': False, 'copies': '1', 'ref': 'refs/heads/master', 'path': 'sql-unittest-demoapp/pom.xml', 'mode': '33261', 'license': 'apache-2.0', 'language': [{'name': 'Java', 'bytes': '164311'}, {'name': 'PLSQL', 'bytes': '20917'}]}
namespace autofill_assistant { class UiControllerAndroid; // Delegate class for CollectUserDataAction, to react on clicks on its chips. class AssistantCollectUserDataDelegate { public: explicit AssistantCollectUserDataDelegate(UiControllerAndroid* ui_controller); ~AssistantCollectUserDataDelegate(); void OnContactInfoChanged( JNIEnv* env, const base::android::JavaParamRef<jobject>& jcaller, const base::android::JavaParamRef<jobject>& jcontact_profile); void OnShippingAddressChanged( JNIEnv* env, const base::android::JavaParamRef<jobject>& jcaller, const base::android::JavaParamRef<jobject>& jaddress); void OnCreditCardChanged( JNIEnv* env, const base::android::JavaParamRef<jobject>& jcaller, const base::android::JavaParamRef<jobject>& jcard, const base::android::JavaParamRef<jobject>& jbilling_profile); void OnTermsAndConditionsChanged( JNIEnv* env, const base::android::JavaParamRef<jobject>& jcaller, jint state); void OnTextLinkClicked(JNIEnv* env, const base::android::JavaParamRef<jobject>& jcaller, jint link); void OnLoginChoiceChanged( JNIEnv* env, const base::android::JavaParamRef<jobject>& jcaller, const base::android::JavaParamRef<jstring>& jidentifier); void OnDateTimeRangeStartDateChanged( JNIEnv* env, const base::android::JavaParamRef<jobject>& jcaller, jint year, jint month, jint day); void OnDateTimeRangeStartDateCleared( JNIEnv* env, const base::android::JavaParamRef<jobject>& jcaller); void OnDateTimeRangeStartTimeSlotChanged( JNIEnv* env, const base::android::JavaParamRef<jobject>& jcaller, jint index); void OnDateTimeRangeStartTimeSlotCleared( JNIEnv* env, const base::android::JavaParamRef<jobject>& jcaller); void OnDateTimeRangeEndDateChanged( JNIEnv* env, const base::android::JavaParamRef<jobject>& jcaller, jint year, jint month, jint day); void OnDateTimeRangeEndDateCleared( JNIEnv* env, const base::android::JavaParamRef<jobject>& jcaller); void OnDateTimeRangeEndTimeSlotChanged( JNIEnv* env, const base::android::JavaParamRef<jobject>& jcaller, jint index); void OnDateTimeRangeEndTimeSlotCleared( JNIEnv* env, const base::android::JavaParamRef<jobject>& jcaller); void OnKeyValueChanged(JNIEnv* env, const base::android::JavaParamRef<jobject>& jcaller, const base::android::JavaParamRef<jstring>& jkey, const base::android::JavaParamRef<jobject>& jvalue); void OnTextFocusLost(JNIEnv* env, const base::android::JavaParamRef<jobject>& jcaller); base::android::ScopedJavaGlobalRef<jobject> GetJavaObject(); private: UiControllerAndroid* ui_controller_; // Java-side AssistantCollectUserDataDelegate object. base::android::ScopedJavaGlobalRef<jobject> java_assistant_collect_user_data_delegate_; }; } // namespace autofill_assistant #endif // CHROME_BROWSER_ANDROID_AUTOFILL_ASSISTANT_ASSISTANT_COLLECT_USER_DATA_DELEGATE_H_
{'content_hash': 'f814e904b66d459418c3cf510165ca63', 'timestamp': '', 'source': 'github', 'line_count': 98, 'max_line_length': 92, 'avg_line_length': 33.04081632653061, 'alnum_prop': 0.695799876466955, 'repo_name': 'endlessm/chromium-browser', 'id': '8dc3abe9411671e899da42e8bbd3e949c59e4fe2', 'size': '3628', 'binary': False, 'copies': '1', 'ref': 'refs/heads/master', 'path': 'chrome/browser/android/autofill_assistant/assistant_collect_user_data_delegate.h', 'mode': '33188', 'license': 'bsd-3-clause', 'language': []}
Materials for presentation "Scope in javaScript– potential traps for people new in javaScript" How to run it: * install node from https://nodejs.org/en/download/ * npm install * run index.html in the browser
{'content_hash': '746a6ed0b65bf21b41e9cd901e57deee', 'timestamp': '', 'source': 'github', 'line_count': 6, 'max_line_length': 94, 'avg_line_length': 34.833333333333336, 'alnum_prop': 0.7751196172248804, 'repo_name': 'Krzysiek102/ScopeInJavaScript', 'id': '969053b8648436a5ebb2c620ab2f0418b53b28e3', 'size': '232', 'binary': False, 'copies': '1', 'ref': 'refs/heads/master', 'path': 'README.md', 'mode': '33188', 'license': 'mit', 'language': [{'name': 'HTML', 'bytes': '734'}, {'name': 'JavaScript', 'bytes': '8680'}]}
NS_ASSUME_NONNULL_BEGIN @implementation STDSTextFieldCustomization + (instancetype)defaultSettings { return [self new]; } - (instancetype)init { self = [super init]; if (self) { self.font = [UIFont _stds_defaultLabelTextFontWithScale:(CGFloat)1.9]; _borderWidth = 2; _cornerRadius = 8; _keyboardAppearance = UIKeyboardAppearanceDefault; self.textColor = UIColor._stds_labelColor; _borderColor = UIColor.clearColor; _placeholderTextColor = UIColor._stds_systemGray2Color; } return self; } - (id)copyWithZone:(nullable NSZone *)zone { STDSTextFieldCustomization *copy = [super copyWithZone:zone]; copy.borderWidth = self.borderWidth; copy.borderColor = self.borderColor; copy.cornerRadius = self.cornerRadius; copy.keyboardAppearance = self.keyboardAppearance; copy.placeholderTextColor = self.placeholderTextColor; return copy; } @end NS_ASSUME_NONNULL_END
{'content_hash': '349d4c4ea40c126960a8716470c1599c', 'timestamp': '', 'source': 'github', 'line_count': 37, 'max_line_length': 78, 'avg_line_length': 26.486486486486488, 'alnum_prop': 0.6918367346938775, 'repo_name': 'stripe/stripe-ios', 'id': '18a85c8de1983bf00e879b54962205d51a521d06', 'size': '1241', 'binary': False, 'copies': '1', 'ref': 'refs/heads/master', 'path': 'Stripe3DS2/Stripe3DS2/STDSTextFieldCustomization.m', 'mode': '33188', 'license': 'mit', 'language': [{'name': 'C', 'bytes': '663'}, {'name': 'HTML', 'bytes': '259541'}, {'name': 'JavaScript', 'bytes': '76560'}, {'name': 'Mustache', 'bytes': '9421'}, {'name': 'Objective-C', 'bytes': '1387115'}, {'name': 'Ruby', 'bytes': '106095'}, {'name': 'SCSS', 'bytes': '31808'}, {'name': 'Shell', 'bytes': '36821'}, {'name': 'Swift', 'bytes': '6061875'}]}
<!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1"> <title>dpdgraph: Not compatible 👼</title> <link rel="shortcut icon" type="image/png" href="../../../../../favicon.png" /> <link href="../../../../../bootstrap.min.css" rel="stylesheet"> <link href="../../../../../bootstrap-custom.css" rel="stylesheet"> <link href="//maxcdn.bootstrapcdn.com/font-awesome/4.2.0/css/font-awesome.min.css" rel="stylesheet"> <script src="../../../../../moment.min.js"></script> <!-- HTML5 Shim and Respond.js IE8 support of HTML5 elements and media queries --> <!-- WARNING: Respond.js doesn't work if you view the page via file:// --> <!--[if lt IE 9]> <script src="https://oss.maxcdn.com/html5shiv/3.7.2/html5shiv.min.js"></script> <script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script> <![endif]--> </head> <body> <div class="container"> <div class="navbar navbar-default" role="navigation"> <div class="container-fluid"> <div class="navbar-header"> <a class="navbar-brand" href="../../../../.."><i class="fa fa-lg fa-flag-checkered"></i> Coq bench</a> </div> <div id="navbar" class="collapse navbar-collapse"> <ul class="nav navbar-nav"> <li><a href="../..">clean / released</a></li> <li class="active"><a href="">8.13.0 / dpdgraph - 0.6.4</a></li> </ul> </div> </div> </div> <div class="article"> <div class="row"> <div class="col-md-12"> <a href="../..">« Up</a> <h1> dpdgraph <small> 0.6.4 <span class="label label-info">Not compatible 👼</span> </small> </h1> <p>📅 <em><script>document.write(moment("2022-10-04 18:00:14 +0000", "YYYY-MM-DD HH:mm:ss Z").fromNow());</script> (2022-10-04 18:00:14 UTC)</em><p> <h2>Context</h2> <pre># Packages matching: installed # Name # Installed # Synopsis base-bigarray base base-threads base base-unix base conf-findutils 1 Virtual package relying on findutils conf-gmp 4 Virtual package relying on a GMP lib system installation coq 8.13.0 Formal proof management system num 1.4 The legacy Num library for arbitrary-precision integer and rational arithmetic ocaml 4.12.1 The OCaml compiler (virtual package) ocaml-base-compiler 4.12.1 Official release 4.12.1 ocaml-config 2 OCaml Switch Configuration ocaml-options-vanilla 1 Ensure that OCaml is compiled with no special options enabled ocamlfind 1.9.5 A library manager for OCaml zarith 1.12 Implements arithmetic and logical operations over arbitrary-precision integers # opam file: opam-version: &quot;2.0&quot; maintainer: &quot;yves.bertot@inria.fr&quot; license: &quot;LGPL 2.1&quot; homepage: &quot;https://github.com/karmaki/coq-dpdgraph&quot; build: [ [&quot;./configure&quot;] [&quot;echo&quot; &quot;%{jobs}%&quot; &quot;jobs for the linter&quot;] [make] ] bug-reports: &quot;https://github.com/karmaki/coq-dpdgraph/issues&quot; dev-repo: &quot;git+https://github.com/karmaki/coq-dpdgraph.git&quot; install: [ [make &quot;install&quot; &quot;BINDIR=%{bin}%&quot;] ] remove: [ [&quot;rm&quot; &quot;%{bin}%/dpd2dot&quot; &quot;%{bin}%/dpdusage&quot;] [&quot;rm&quot; &quot;-R&quot; &quot;%{lib}%/coq/user-contrib/dpdgraph&quot;] ] depends: [ &quot;ocaml&quot; {&lt; &quot;4.08.0&quot;} &quot;coq&quot; {&gt;= &quot;8.9&quot; &amp; &lt; &quot;8.10~&quot;} &quot;ocamlgraph&quot; ] authors: [ &quot;Anne Pacalet&quot; &quot;Yves Bertot&quot;] synopsis: &quot;Compute dependencies between Coq objects (definitions, theorems) and produce graphs&quot; flags: light-uninstall url { src: &quot;https://github.com/Karmaki/coq-dpdgraph/releases/download/v0.6.4/coq-dpdgraph-0.6.4.tgz&quot; checksum: &quot;md5=93e5ffcfa808fdba9cc421866ee1d416&quot; } </pre> <h2>Lint</h2> <dl class="dl-horizontal"> <dt>Command</dt> <dd><code>true</code></dd> <dt>Return code</dt> <dd>0</dd> </dl> <h2>Dry install 🏜️</h2> <p>Dry install with the current Coq version:</p> <dl class="dl-horizontal"> <dt>Command</dt> <dd><code>opam install -y --show-action coq-dpdgraph.0.6.4 coq.8.13.0</code></dd> <dt>Return code</dt> <dd>5120</dd> <dt>Output</dt> <dd><pre>[NOTE] Package coq is already installed (current version is 8.13.0). The following dependencies couldn&#39;t be met: - coq-dpdgraph -&gt; ocaml &lt; 4.08.0 base of this switch (use `--unlock-base&#39; to force) No solution found, exiting </pre></dd> </dl> <p>Dry install without Coq/switch base, to test if the problem was incompatibility with the current Coq/OCaml version:</p> <dl class="dl-horizontal"> <dt>Command</dt> <dd><code>opam remove -y coq; opam install -y --show-action --unlock-base coq-dpdgraph.0.6.4</code></dd> <dt>Return code</dt> <dd>0</dd> </dl> <h2>Install dependencies</h2> <dl class="dl-horizontal"> <dt>Command</dt> <dd><code>true</code></dd> <dt>Return code</dt> <dd>0</dd> <dt>Duration</dt> <dd>0 s</dd> </dl> <h2>Install 🚀</h2> <dl class="dl-horizontal"> <dt>Command</dt> <dd><code>true</code></dd> <dt>Return code</dt> <dd>0</dd> <dt>Duration</dt> <dd>0 s</dd> </dl> <h2>Installation size</h2> <p>No files were installed.</p> <h2>Uninstall 🧹</h2> <dl class="dl-horizontal"> <dt>Command</dt> <dd><code>true</code></dd> <dt>Return code</dt> <dd>0</dd> <dt>Missing removes</dt> <dd> none </dd> <dt>Wrong removes</dt> <dd> none </dd> </dl> </div> </div> </div> <hr/> <div class="footer"> <p class="text-center"> Sources are on <a href="https://github.com/coq-bench">GitHub</a> © Guillaume Claret 🐣 </p> </div> </div> <script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js"></script> <script src="../../../../../bootstrap.min.js"></script> </body> </html>
{'content_hash': '9aff9d3f93211475400b1221dee4dc0c', 'timestamp': '', 'source': 'github', 'line_count': 172, 'max_line_length': 159, 'avg_line_length': 40.848837209302324, 'alnum_prop': 0.5371477369769427, 'repo_name': 'coq-bench/coq-bench.github.io', 'id': '39f199066d260006f52f7f4e3bd7bc09363b447c', 'size': '7051', 'binary': False, 'copies': '1', 'ref': 'refs/heads/master', 'path': 'clean/Linux-x86_64-4.12.1-2.0.8/released/8.13.0/dpdgraph/0.6.4.html', 'mode': '33188', 'license': 'mit', 'language': []}
import { FunctionComponent } from 'react'; import { useDispatch, useSelector } from 'react-redux'; import NotificationsSystem, { bootstrapTheme, dismissNotification, } from 'reapop'; export const NotificationContainer: FunctionComponent = () => { const dispatch = useDispatch(); const notifications = useSelector((state: any) => state.notifications); return ( <NotificationsSystem theme={bootstrapTheme} notifications={notifications} dismissNotification={(id) => dispatch(dismissNotification(id))} /> ); };
{'content_hash': 'e5c2304dbe768e54eea18aaa461379b4', 'timestamp': '', 'source': 'github', 'line_count': 18, 'max_line_length': 73, 'avg_line_length': 30.333333333333332, 'alnum_prop': 0.7142857142857143, 'repo_name': 'opennode/waldur-homeport', 'id': 'e8c9835b168887a2e50c0cf4841b6021e453b8fb', 'size': '546', 'binary': False, 'copies': '1', 'ref': 'refs/heads/develop', 'path': 'src/NotificationContainer.tsx', 'mode': '33188', 'license': 'mit', 'language': [{'name': 'CSS', 'bytes': '181090'}, {'name': 'Dockerfile', 'bytes': '808'}, {'name': 'HTML', 'bytes': '195802'}, {'name': 'JavaScript', 'bytes': '1231952'}, {'name': 'Shell', 'bytes': '363'}, {'name': 'TypeScript', 'bytes': '1637778'}]}
package types import ( "github.com/rivine/rivine/build" ) // BlockchainInfo contains information about a blockchain. type BlockchainInfo struct { Name string NetworkName string CoinUnit string ChainVersion build.ProtocolVersion ProtocolVersion build.ProtocolVersion } // DefaultNetworkName returns a sane default network name, // based on the build.Release tag (NOTE that in most cases // you do really want a user-approved default network name // rather than this static value). func DefaultNetworkName() string { switch build.Release { case "standard": return "standard" case "testing": return "testnet" case "dev": return "devnet" default: panic("unknown build.Release tag: " + build.Release) } } // DefaultBlockchainInfo returns the blockchain information // for the default (Rivine) blockchain, using the version // which is set as part of the build process. func DefaultBlockchainInfo() BlockchainInfo { return BlockchainInfo{ Name: "Rivine", NetworkName: DefaultNetworkName(), CoinUnit: "ROC", ChainVersion: build.Version, ProtocolVersion: build.Version, } }
{'content_hash': 'c444f82058424daade6382fc916986be', 'timestamp': '', 'source': 'github', 'line_count': 44, 'max_line_length': 59, 'avg_line_length': 26.181818181818183, 'alnum_prop': 0.7274305555555556, 'repo_name': 'rivine/rivine', 'id': '0006958da58b685e02a580c822684bf461a89f9c', 'size': '1152', 'binary': False, 'copies': '1', 'ref': 'refs/heads/master', 'path': 'types/blockchain.go', 'mode': '33188', 'license': 'mit', 'language': [{'name': 'Go', 'bytes': '1890620'}, {'name': 'Makefile', 'bytes': '5559'}, {'name': 'Shell', 'bytes': '2875'}]}
@interface AKUFixedDate : NSObject + (NSDate *)date; + (NSString *)string; @end
{'content_hash': 'e5491462ad63a123df1d765ef2003e1c', 'timestamp': '', 'source': 'github', 'line_count': 6, 'max_line_length': 34, 'avg_line_length': 13.5, 'alnum_prop': 0.691358024691358, 'repo_name': 'akuraru/AKUTestKit', 'id': '1a4d74437fe38c2a6cb94d8ae5e37d8cffde77f0', 'size': '291', 'binary': False, 'copies': '1', 'ref': 'refs/heads/master', 'path': 'Pod/Classes/generator/AKUFixedDate.h', 'mode': '33188', 'license': 'mit', 'language': [{'name': 'Objective-C', 'bytes': '47099'}, {'name': 'Ruby', 'bytes': '1615'}]}
package alien4cloud.webconfiguration; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.context.annotation.Bean; import org.springframework.context.annotation.Configuration; import com.mangofactory.swagger.configuration.SpringSwaggerConfig; import com.mangofactory.swagger.plugin.EnableSwagger; import com.mangofactory.swagger.plugin.SwaggerSpringMvcPlugin; import com.wordnik.swagger.model.ApiInfo; @Configuration @EnableSwagger public class RestDocumentationConfig { private SpringSwaggerConfig springSwaggerConfig; @Autowired public void setSpringSwaggerConfig(SpringSwaggerConfig springSwaggerConfig) { this.springSwaggerConfig = springSwaggerConfig; } @Bean public SwaggerSpringMvcPlugin customImplementation() { return new SwaggerSpringMvcPlugin(this.springSwaggerConfig).apiInfo(apiInfo()); } private ApiInfo apiInfo() { ApiInfo apiInfo = new ApiInfo("ALIEN 4 Cloud API", "Welcome on the live configuration of ALIEN 4 Cloud Rest API.", "", "alien-support@fastconnect.fr", "Licensed under the Apache License, Version 2.0", "http://www.apache.org/licenses/LICENSE-2.0"); return apiInfo; } }
{'content_hash': '6ff7e0de0702ab6cd99b56f4a20984d3', 'timestamp': '', 'source': 'github', 'line_count': 32, 'max_line_length': 158, 'avg_line_length': 38.28125, 'alnum_prop': 0.7746938775510204, 'repo_name': 'xdegenne/alien4cloud', 'id': 'c181f009829d837abbf6a1d20f637144fcd55d9c', 'size': '1225', 'binary': False, 'copies': '5', 'ref': 'refs/heads/features/customwf', 'path': 'alien4cloud-rest-api/src/main/java/alien4cloud/webconfiguration/RestDocumentationConfig.java', 'mode': '33188', 'license': 'apache-2.0', 'language': [{'name': 'ApacheConf', 'bytes': '59321'}, {'name': 'Batchfile', 'bytes': '653'}, {'name': 'CSS', 'bytes': '75924'}, {'name': 'Cucumber', 'bytes': '388687'}, {'name': 'Groovy', 'bytes': '139435'}, {'name': 'HTML', 'bytes': '407298'}, {'name': 'Java', 'bytes': '2950746'}, {'name': 'JavaScript', 'bytes': '1490857'}, {'name': 'Shell', 'bytes': '42418'}]}
<?php namespace Portunus\Console\Command\Secret; use Portunus\ContainerAwareTrait; use Portunus\Controller\SafeController; use Portunus\Controller\SecretController; use Symfony\Component\Console\Command\Command; use Symfony\Component\Console\Input\InputArgument; use Symfony\Component\Console\Input\InputInterface; use Symfony\Component\Console\Output\OutputInterface; use Symfony\Component\Console\Question\ChoiceQuestion; use Symfony\Component\Console\Question\Question; class StoreCommand extends Command { use ContainerAwareTrait; protected function configure() { $this ->setName('secret:store') ->setDescription('Store a Portunus secret') ->addArgument( 'safe', InputArgument::OPTIONAL, 'Safe name' ) ->addArgument( 'key', InputArgument::OPTIONAL, 'Secret key' ) ->addArgument( 'value', InputArgument::OPTIONAL, 'Secret value' ) ; } protected function execute(InputInterface $input, OutputInterface $output) { $SafeController = new SafeController(); $safeName = $input->getArgument('safe'); if (empty($safeName)) { $safeNames = $SafeController->getSafeNames(); $helper = $this->getHelper('question'); $question = new ChoiceQuestion( '<question>Please select the safe for this secret:</question> ', $safeNames ); $safeName = $helper->ask($input, $output, $question); } if (empty($safeName)) { throw new \Exception("Invalid safe name"); } $output->writeln(''); $output->writeln(sprintf("<info>Using safe '%s'... </info>", $safeName)); $keyName = $input->getArgument('key'); if (empty($keyName)) { $helper = $this->getHelper('question'); $question = new Question('<question>Please enter the key name for this secret :</question> '); $keyName = $helper->ask($input, $output, $question); } if (empty($keyName)) { throw new \Exception("Invalid key name"); } $value = $input->getArgument('value'); if (empty($value)) { $helper = $this->getHelper('question'); $question = new Question('<question>Please enter the value for this secret (output hidden):</question> '); $question->setHidden(true); $question->setHiddenFallback(false); $value = $helper->ask($input, $output, $question); } if (empty($value) && !file_exists($value)) { throw new \Exception("Invalid value"); } if (file_exists($value)) { $value = file_get_contents($value); } $output->writeln(''); $output->write(sprintf("Creating secret '%s'... ", $keyName)); $SecretController = new SecretController(); try { $safe = $SafeController->view($safeName); $SecretController->create($safe, $keyName, $value); } catch (\Exception $e) { $output->writeln('<error>FAILED</error>'); $output->writeln(''); $output->writeln('<error>' . $e->getMessage() .'</error>'); return; } $output->writeln('<info>DONE</info>'); $output->writeln(''); } }
{'content_hash': '52c5aa797064da9eb91bf8ac68501205', 'timestamp': '', 'source': 'github', 'line_count': 110, 'max_line_length': 118, 'avg_line_length': 32.00909090909091, 'alnum_prop': 0.5506958250497018, 'repo_name': 'garyr/portunus', 'id': '171aaba67f16808ca4ac93b2eadc115691cf8226', 'size': '3521', 'binary': False, 'copies': '1', 'ref': 'refs/heads/master', 'path': 'src/Portunus/Console/Command/Secret/StoreCommand.php', 'mode': '33261', 'license': 'mit', 'language': [{'name': 'PHP', 'bytes': '56427'}]}
if (RedisModule_CreateCommand(ctx, cmd, f, "readonly fast allow-loading allow-stale", \ 1, 1, 1) == REDISMODULE_ERR) return REDISMODULE_ERR; int CommentCommand(RedisModuleCtx *ctx, RedisModuleString **argv, int argc) { RedisModule_ReplyWithSimpleString(ctx, ""); return REDISMODULE_OK; } int RedisModule_OnLoad(RedisModuleCtx *ctx) { // Register the module itself if (RedisModule_Init(ctx, "COMMENTDIS", 1, REDISMODULE_APIVER_1) == REDISMODULE_ERR) { return REDISMODULE_ERR; } // register CommentCommand - using the shortened utility registration macro RMUtil_RegisterReadCmd(ctx, "#", CommentCommand); RMUtil_RegisterReadCmd(ctx, ";;", CommentCommand); RMUtil_RegisterReadCmd(ctx, "//", CommentCommand); RMUtil_RegisterReadCmd(ctx, "/*", CommentCommand); RMUtil_RegisterReadCmd(ctx, "/**", CommentCommand); RMUtil_RegisterReadCmd(ctx, "comment", CommentCommand); RMUtil_RegisterReadCmd(ctx, "comment:", CommentCommand); return REDISMODULE_OK; }
{'content_hash': '7389a3a6645e6618e2959e0c0144c450', 'timestamp': '', 'source': 'github', 'line_count': 28, 'max_line_length': 91, 'avg_line_length': 38.107142857142854, 'alnum_prop': 0.6794751640112465, 'repo_name': 'picotera/commentDis', 'id': '59c283ef5beade265f2fc5be9e169dd774d1950e', 'size': '1140', 'binary': False, 'copies': '1', 'ref': 'refs/heads/master', 'path': 'module.c', 'mode': '33188', 'license': 'mit', 'language': [{'name': 'C', 'bytes': '17941'}, {'name': 'Makefile', 'bytes': '799'}]}
import async from 'async'; import csv from 'babyparse'; import sundial from 'sundial'; import TZOUtil from '../../TimezoneOffsetUtil'; import annotate from '../../eventAnnotations'; import common from '../../commonFunctions'; const isBrowser = typeof window !== 'undefined'; const debug = isBrowser ? require('bows')('LibreViewDriver') : console.log; function addOutOfRangeAnnotation(recordBuilder, low, high, units, type) { let step = 1; if (units === 'mmol/L') { step = 0.1; } if (low !== null && recordBuilder.value < low + step) { recordBuilder.with_value(low); annotate.annotateEvent(recordBuilder, { code: `${type}/out-of-range`, value: 'low', threshold: common.fixFloatingPoint(low + step), }); } else if (high !== null && recordBuilder.value > high - step) { recordBuilder.with_value(high); annotate.annotateEvent(recordBuilder, { code: `${type}/out-of-range`, value: 'high', threshold: common.fixFloatingPoint(high - step), }); } } module.exports = (config) => { const LIBREVIEW_TS_FORMAT = [ 'YYYY-MM-DD hh:mm A', 'YYYY-MM-DD HH:mm', 'MM-DD-YYYY hh:mm A', 'MM-DD-YYYY HH:mm', ]; const LIBREVIEW_TS_FORMAT_ALT = [ 'DD-MM-YYYY hh:mm A', 'DD-MM-YYYY HH:mm', ]; const RECORD_TYPE_HISTORIC = 0; const RECORD_TYPE_SCAN = 1; const RECORD_TYPE_STRIP = 2; const RECORD_TYPE_KETONE = 3; const GLUCOSE_HI = { 'mg/dL': 500, 'mmol/L': 27.8, }; const GLUCOSE_LO = { 'mg/dL': 40, 'mmol/L': 2.2, }; const STRIP_GLUCOSE_LO = { 'mg/dL': 20, 'mmol/L': 1.1, }; const KETONE_HI = 8.0; const KETONE_LO = null; // ketone value cannot be low const TYPES_TO_READ = { 0: 4, // Historic Glucose 1: 5, // Scan Glucose 2: 14, // Strip Glucose 3: 15, // Ketone 4: false, // Rapid-Acting Insulin (units) OR Non-numeric Long-Acting Insulin 5: false, // Non-numeric Food 6: false, // ? }; return { detect: (obj, cb) => { debug('LibreView Detect!'); cb(null, obj); }, setup: (deviceInfo, progress, cb) => { debug('LibreView Setup!'); progress(100); deviceInfo = deviceInfo || {}; cb(null, { devices: deviceInfo }); }, connect: (progress, payload, cb) => { debug('LibreView Connect!'); progress(100); cb(null, payload); }, getConfigInfo: (progress, payload, cb) => { debug('LibreView GetConfigInfo!'); // Due to language differences, we cannot parse the units from the CSV // If we find any values larger than 40, we use mg/dL instead config.units = 'mmol/L'; progress(100); cb(null, payload); }, fetchData: (progress, payload, cb) => { debug('LibreView FetchData!'); let data = config.filedata; payload.filedata = config.filedata; // to store as blob if (typeof config.filedata !== 'string') { data = new TextDecoder().decode(new Uint8Array(config.filedata)); } debug('LibreView data', data.length); const endOfPreamble = data.indexOf('\n') + 1; // Setup the preamble to have everything up to the header line payload.preamble = csv.parse(data.substr(0, endOfPreamble), {}); // Store the rest of the data const parsed = csv.parse(data.substr(endOfPreamble), { dynamicTyping: true, }); if (parsed.data[0].filter((x) => x).length <= 2) { // for LibreView Pro, we remove the patient name and birth date parsed.data.shift(); } const parseRows = (format) => { const rows = []; let validateDateFormat = false; debug('Using format', format); for (let i = parsed.data.length - 1; i > 0; --i) { const datum = parsed.data[i]; if (datum[0] === '') { /* eslint-disable-next-line no-continue */ continue; } if (!sundial.isValidDateForMask(datum[2], format)) { return false; } datum.jsDate = sundial.parseFromFormat(datum[2], format); if ((datum.jsDate.getDate() > 12) || Number(datum[2].slice(0, 4))) { // if there's a row in the data where the date is higher than 12 // (to distinguish it from the month) or the year is first, it's valid validateDateFormat = true; } datum.deviceTime = sundial.formatDeviceTime(datum.jsDate); datum.csvIndex = i; const recordType = datum[3]; if (!TYPES_TO_READ[recordType]) { /* eslint-disable-next-line no-continue */ continue; } datum.device = `${datum[0]} ${datum[1]}`; datum.type = TYPES_TO_READ[recordType]; datum.value = Number(datum[datum.type]); if (Number.isNaN(datum.value)) { // comma decimal separator is being used datum.value = Number(datum[datum.type].replace(',', '.')); } if (Number.isNaN(datum.value)) { throw new Error('Could not parse value'); } if (datum.value >= GLUCOSE_LO['mg/dL']) { config.units = 'mg/dL'; } rows.push(datum); } if (!validateDateFormat) { return false; } return rows; }; let rows = parseRows(LIBREVIEW_TS_FORMAT); if (rows === false) { // we can't use DD/MM/YYYY and MM/DD/YYYY formats at the same time, as moment.js // will just use whatever one works, so we first try the one and then the other debug('Trying alternative date format'); rows = parseRows(LIBREVIEW_TS_FORMAT_ALT); } if (rows === false) { // we can't be sure about the date format, so we have to throw an error return cb('E_LIBREVIEW_FORMAT'); } payload.theData = rows; debug(`Read ${rows.length} entries`); debug('Separate into per-device arrays'); for (let k = 0; k < payload.theData.length; ++k) { const key = payload.theData[k].device; let device = payload.devices[key]; if (device == null) { device = {}; payload.devices[key] = device; device.data = []; device.info = { deviceModel: payload.theData[k][0], serialNumber: payload.theData[k][1], }; device.info.deviceId = ( `Abbott${device.info.deviceModel}-${device.info.serialNumber}` ).replace(/ /g, ''); } device.data.push(payload.theData[k]); } delete payload.theData; let entryCount = 0; Object.keys(payload.devices).forEach((key) => { const device = payload.devices[key]; debug(`Device ${key}: ${device.data.length} entries`); entryCount += device.data.length; }); if (entryCount === 0) { debug('Error reading file, no data parsed.'); return cb(new Error('Error reading file, no data parsed.')); } return cb(null, payload); }, processData: (progress, payload, cb) => { debug('LibreView ProcessData!'); progress(20); let ts = 0; Object.keys(payload.devices).forEach((key) => { const device = payload.devices[key]; const mostRecentDatum = device.data[0]; if (mostRecentDatum.jsDate > ts) { ts = mostRecentDatum.jsDate; } }); const mostRecent = sundial.applyTimezone(ts, config.timezone).toISOString(); const validateUnits = (value) => { if ((config.units === 'mg/dL') && !Number.isInteger(value)) { throw new Error('Could not validate units'); } }; Object.keys(payload.devices).forEach((key) => { const device = payload.devices[key]; const events = device.data; const postRecords = []; payload.postRecords = postRecords; config.tzoUtil = new TZOUtil(config.timezone, mostRecent, postRecords); device.postRecords = postRecords; config.builder.setDefaults({ deviceId: device.info.deviceId }); events.filter(elem => elem[3] === RECORD_TYPE_HISTORIC) .forEach((record) => { const cbg = config.builder.makeCBG() .with_value(record.value) .with_units(config.units) .with_deviceTime(sundial.formatDeviceTime(record.jsDate)) .set('index', record.csvIndex); validateUnits(record.value); config.tzoUtil.fillInUTCInfo(cbg, record.jsDate); addOutOfRangeAnnotation(cbg, GLUCOSE_LO[config.units], GLUCOSE_HI[config.units], config.units, 'bg'); postRecords.push(cbg.done()); }); events.filter(elem => (elem[3] === RECORD_TYPE_STRIP || elem[3] === RECORD_TYPE_SCAN)) .forEach((record) => { const smbg = config.builder.makeSMBG() .with_value(record.value) .with_units(config.units) .with_deviceTime(sundial.formatDeviceTime(record.jsDate)) .set('index', record.csvIndex); if (record[3] === RECORD_TYPE_SCAN) { smbg.with_subType('scanned'); } validateUnits(record.value); if (record[3] === RECORD_TYPE_STRIP) { addOutOfRangeAnnotation(smbg, STRIP_GLUCOSE_LO[config.units], GLUCOSE_HI[config.units], config.units, 'bg'); } else { addOutOfRangeAnnotation(smbg, GLUCOSE_LO[config.units], GLUCOSE_HI[config.units], config.units, 'bg'); } config.tzoUtil.fillInUTCInfo(smbg, record.jsDate); postRecords.push(smbg.done()); }); events.filter(elem => elem[3] === RECORD_TYPE_KETONE) .forEach((record) => { const ketone = config.builder.makeBloodKetone() .with_value(record.value) .with_units('mmol/L') .with_deviceTime(sundial.formatDeviceTime(record.jsDate)) .set('index', record.csvIndex); addOutOfRangeAnnotation(ketone, KETONE_LO, KETONE_HI, 'mmol/L', 'ketone'); config.tzoUtil.fillInUTCInfo(ketone, record.jsDate); postRecords.push(ketone.done()); }); }); progress(100); cb(null, payload); }, uploadData: (progress, payload, cb) => { progress(0); payload.post_records = []; const devices = { total: Object.keys(payload.devices).length, index: 0, }; async.eachSeries(Object.keys(payload.devices), (key, done) => { const device = payload.devices[key]; const deviceRecords = device.postRecords; deviceRecords.forEach((record) => delete record.index); const sessionInfo = { deviceTags: ['bgm', 'cgm'], deviceManufacturers: ['Abbott'], deviceModel: device.info.deviceModel, deviceSerialNumber: device.info.serialNumber, deviceId: device.info.deviceId, start: sundial.utcDateString(), timeProcessing: config.tzoUtil.type, tzName: config.timezone, version: config.version, blobId: payload.blobId, source: 'LibreView', // to be able to distinguish from direct uploads }; if (device.info.annotations) { annotate.annotateEvent(sessionInfo, device.info.annotations); } devices.index += 1; config.api.upload.toPlatform( deviceRecords, sessionInfo, progress, config.groupId, (err) => { if (err) { debug(err); return done(err); } payload.post_records = payload.post_records.concat(deviceRecords); return done(); }, 'dataservices', devices, ); }, (err) => { if (err) { progress(100); cb(err); } progress(100); cb(null, payload); }); }, disconnect: (progress, payload, cb) => { debug('LibreView Disconnect!'); progress(100); cb(null, payload); }, cleanup: (progress, payload, cb) => { debug('LibreView Cleanup!'); progress(100); cb(null, payload); }, }; };
{'content_hash': '0516eb69535a2563034c3a299da8e84c', 'timestamp': '', 'source': 'github', 'line_count': 413, 'max_line_length': 122, 'avg_line_length': 29.753026634382568, 'alnum_prop': 0.5606282552083334, 'repo_name': 'tidepool-org/chrome-uploader', 'id': '7196db28e30c6e1a4f6d222a7217fc1bfc1116b7', 'size': '12987', 'binary': False, 'copies': '1', 'ref': 'refs/heads/electron-v16', 'path': 'lib/drivers/abbott/libreViewDriver.js', 'mode': '33188', 'license': 'bsd-2-clause', 'language': [{'name': 'CSS', 'bytes': '59542'}, {'name': 'HTML', 'bytes': '1022'}, {'name': 'JavaScript', 'bytes': '2111363'}, {'name': 'Lua', 'bytes': '10853'}, {'name': 'NSIS', 'bytes': '2148'}, {'name': 'Shell', 'bytes': '6978'}]}
define(['lib/news_special/bootstrap'], function (news) { var View = function (data, error) { this.data = data; this.error = error; if (this.data && !error) { this.renderSenateChart(); this.renderSenateResults(); this.renderHouseResults(); this.renderIndependentResults(); } }; View.prototype = { renderSenateChart: function () { news.$('.crat-uc').css('width', this.data.senate_democrats_uncontested + '%'); news.$('.crat-c').css('width', this.data.senate_democrats_contested + '%'); news.$('.pending').css('width', this.data.pending + '%'); news.$('.gop-c').css('width', this.data.senate_republican_contested + '%'); news.$('.gop-uc').css('width', this.data.senate_republican_uncontested + '%'); }, renderSenateResults: function () { news.$('.midterms-widget__senate-results__crats').html(this.data.senate_democrats_total + '&#42;'); news.$('.midterms-widget__senate-results__gop').html(this.data.senate_republican_total); }, renderHouseResults: function () { news.$('.midterms-widget__house-results__crats').html(this.data.house_democrats); news.$('.midterms-widget__house-results__gop').html(this.data.house_republican); }, renderIndependentResults: function () { if (this.data.independent_senate > 0) { news.$('.midterms-widget__senate-results__independent').html('Independent &#58; ' + this.data.independent_senate); } if (this.data.independent_house > 0) { news.$('.midterms-widget__house-results__independent').html('<p>Independent &#58; ' + this.data.independent_house); } } }; return View; });
{'content_hash': 'dd6512dc2b71dc88ecca1bca900942e4', 'timestamp': '', 'source': 'github', 'line_count': 42, 'max_line_length': 131, 'avg_line_length': 44.23809523809524, 'alnum_prop': 0.5645855758880517, 'repo_name': 'BBCVisualJournalism/newsspec_8939', 'id': '2c4f454c43ebc1c16a49638dcae90bcba7768552', 'size': '1858', 'binary': False, 'copies': '1', 'ref': 'refs/heads/master', 'path': 'source/js/view.js', 'mode': '33188', 'license': 'apache-2.0', 'language': [{'name': 'CSS', 'bytes': '26731'}, {'name': 'JavaScript', 'bytes': '106174'}]}
import EnemyCard from "../../../src/artifact/js/EnemyCard.js"; QUnit.module("EnemyCard"); var EnemyCardTest = {}; QUnit.test("EnemyCard properties Black Forest Bats", function(assert) { var cardKey = EnemyCard.BLACK_FOREST_BATS_PTM; var properties = EnemyCard.properties[cardKey]; assert.equal(properties.name, "Black Forest Bats"); assert.equal(properties.key, "blackForestBatsPtm"); }); QUnit.test("keys and values", function(assert) { // Setup. // Run. var result = EnemyCard.keys(); var ownPropertyNames = Object.getOwnPropertyNames(EnemyCard); // Verify. ownPropertyNames.forEach(function(key) { var key2 = EnemyCard[key]; if (key !== "properties" && typeof key2 === "string") { assert.ok(EnemyCard.properties[key2], "Missing value for key = " + key); } }); result.forEach(function(value) { var p = ownPropertyNames.filter(function(key) { return EnemyCard[key] === value; }); assert.equal(p.length, 1, "Missing key for value = " + value); }); }); QUnit.test("traits", function(assert) { EnemyCard.keys().forEach(function(cardKey) { var card = EnemyCard.properties[cardKey]; card.traitKeys.forEach(function(traitKey) { assert.ok(traitKey, "Missing traitKey for cardKey = " + cardKey); }); }); }); QUnit.test("EnemyCard.keys()", function(assert) { // Run. var result = EnemyCard.keys(); // Verify. assert.ok(result); var length = 32; assert.equal(result.length, length); assert.equal(result[0], EnemyCard.ATTERCOP_ATTERCOP); assert.equal(result[length - 1], EnemyCard.WOLF_RIDER); }); export default EnemyCardTest;
{'content_hash': '768f19216380799ed00660282bcd3de3', 'timestamp': '', 'source': 'github', 'line_count': 70, 'max_line_length': 81, 'avg_line_length': 24.385714285714286, 'alnum_prop': 0.6420620972466315, 'repo_name': 'jmthompson2015/lotr-card-game', 'id': 'a8beb3d8b52911fb8d511080a8e2c14f3b2f7ac1', 'size': '1707', 'binary': False, 'copies': '1', 'ref': 'refs/heads/master', 'path': 'test/artifact/js/EnemyCardTest.js', 'mode': '33188', 'license': 'mit', 'language': [{'name': 'CSS', 'bytes': '133109'}, {'name': 'HTML', 'bytes': '42759'}, {'name': 'JavaScript', 'bytes': '2247285'}, {'name': 'Shell', 'bytes': '2456'}]}
 #pragma once #include <aws/kinesisanalyticsv2/KinesisAnalyticsV2_EXPORTS.h> #include <aws/kinesisanalyticsv2/KinesisAnalyticsV2Request.h> #include <aws/core/utils/memory/stl/AWSString.h> #include <aws/kinesisanalyticsv2/model/VpcConfiguration.h> #include <utility> namespace Aws { namespace KinesisAnalyticsV2 { namespace Model { /** */ class AWS_KINESISANALYTICSV2_API AddApplicationVpcConfigurationRequest : public KinesisAnalyticsV2Request { public: AddApplicationVpcConfigurationRequest(); // Service request name is the Operation name which will send this request out, // each operation should has unique request name, so that we can get operation's name from this request. // Note: this is not true for response, multiple operations may have the same response name, // so we can not get operation's name from response. inline virtual const char* GetServiceRequestName() const override { return "AddApplicationVpcConfiguration"; } Aws::String SerializePayload() const override; Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override; /** * <p>The name of an existing application.</p> */ inline const Aws::String& GetApplicationName() const{ return m_applicationName; } /** * <p>The name of an existing application.</p> */ inline bool ApplicationNameHasBeenSet() const { return m_applicationNameHasBeenSet; } /** * <p>The name of an existing application.</p> */ inline void SetApplicationName(const Aws::String& value) { m_applicationNameHasBeenSet = true; m_applicationName = value; } /** * <p>The name of an existing application.</p> */ inline void SetApplicationName(Aws::String&& value) { m_applicationNameHasBeenSet = true; m_applicationName = std::move(value); } /** * <p>The name of an existing application.</p> */ inline void SetApplicationName(const char* value) { m_applicationNameHasBeenSet = true; m_applicationName.assign(value); } /** * <p>The name of an existing application.</p> */ inline AddApplicationVpcConfigurationRequest& WithApplicationName(const Aws::String& value) { SetApplicationName(value); return *this;} /** * <p>The name of an existing application.</p> */ inline AddApplicationVpcConfigurationRequest& WithApplicationName(Aws::String&& value) { SetApplicationName(std::move(value)); return *this;} /** * <p>The name of an existing application.</p> */ inline AddApplicationVpcConfigurationRequest& WithApplicationName(const char* value) { SetApplicationName(value); return *this;} /** * <p>The version of the application to which you want to add the VPC * configuration. You must provide the <code>CurrentApplicationVersionId</code> or * the <code>ConditionalToken</code>. You can use the <a>DescribeApplication</a> * operation to get the current application version. If the version specified is * not the current version, the <code>ConcurrentModificationException</code> is * returned. For better concurrency support, use the <code>ConditionalToken</code> * parameter instead of <code>CurrentApplicationVersionId</code>.</p> */ inline long long GetCurrentApplicationVersionId() const{ return m_currentApplicationVersionId; } /** * <p>The version of the application to which you want to add the VPC * configuration. You must provide the <code>CurrentApplicationVersionId</code> or * the <code>ConditionalToken</code>. You can use the <a>DescribeApplication</a> * operation to get the current application version. If the version specified is * not the current version, the <code>ConcurrentModificationException</code> is * returned. For better concurrency support, use the <code>ConditionalToken</code> * parameter instead of <code>CurrentApplicationVersionId</code>.</p> */ inline bool CurrentApplicationVersionIdHasBeenSet() const { return m_currentApplicationVersionIdHasBeenSet; } /** * <p>The version of the application to which you want to add the VPC * configuration. You must provide the <code>CurrentApplicationVersionId</code> or * the <code>ConditionalToken</code>. You can use the <a>DescribeApplication</a> * operation to get the current application version. If the version specified is * not the current version, the <code>ConcurrentModificationException</code> is * returned. For better concurrency support, use the <code>ConditionalToken</code> * parameter instead of <code>CurrentApplicationVersionId</code>.</p> */ inline void SetCurrentApplicationVersionId(long long value) { m_currentApplicationVersionIdHasBeenSet = true; m_currentApplicationVersionId = value; } /** * <p>The version of the application to which you want to add the VPC * configuration. You must provide the <code>CurrentApplicationVersionId</code> or * the <code>ConditionalToken</code>. You can use the <a>DescribeApplication</a> * operation to get the current application version. If the version specified is * not the current version, the <code>ConcurrentModificationException</code> is * returned. For better concurrency support, use the <code>ConditionalToken</code> * parameter instead of <code>CurrentApplicationVersionId</code>.</p> */ inline AddApplicationVpcConfigurationRequest& WithCurrentApplicationVersionId(long long value) { SetCurrentApplicationVersionId(value); return *this;} /** * <p>Description of the VPC to add to the application.</p> */ inline const VpcConfiguration& GetVpcConfiguration() const{ return m_vpcConfiguration; } /** * <p>Description of the VPC to add to the application.</p> */ inline bool VpcConfigurationHasBeenSet() const { return m_vpcConfigurationHasBeenSet; } /** * <p>Description of the VPC to add to the application.</p> */ inline void SetVpcConfiguration(const VpcConfiguration& value) { m_vpcConfigurationHasBeenSet = true; m_vpcConfiguration = value; } /** * <p>Description of the VPC to add to the application.</p> */ inline void SetVpcConfiguration(VpcConfiguration&& value) { m_vpcConfigurationHasBeenSet = true; m_vpcConfiguration = std::move(value); } /** * <p>Description of the VPC to add to the application.</p> */ inline AddApplicationVpcConfigurationRequest& WithVpcConfiguration(const VpcConfiguration& value) { SetVpcConfiguration(value); return *this;} /** * <p>Description of the VPC to add to the application.</p> */ inline AddApplicationVpcConfigurationRequest& WithVpcConfiguration(VpcConfiguration&& value) { SetVpcConfiguration(std::move(value)); return *this;} /** * <p>A value you use to implement strong concurrency for application updates. You * must provide the <code>ApplicationVersionID</code> or the * <code>ConditionalToken</code>. You get the application's current * <code>ConditionalToken</code> using <a>DescribeApplication</a>. For better * concurrency support, use the <code>ConditionalToken</code> parameter instead of * <code>CurrentApplicationVersionId</code>.</p> */ inline const Aws::String& GetConditionalToken() const{ return m_conditionalToken; } /** * <p>A value you use to implement strong concurrency for application updates. You * must provide the <code>ApplicationVersionID</code> or the * <code>ConditionalToken</code>. You get the application's current * <code>ConditionalToken</code> using <a>DescribeApplication</a>. For better * concurrency support, use the <code>ConditionalToken</code> parameter instead of * <code>CurrentApplicationVersionId</code>.</p> */ inline bool ConditionalTokenHasBeenSet() const { return m_conditionalTokenHasBeenSet; } /** * <p>A value you use to implement strong concurrency for application updates. You * must provide the <code>ApplicationVersionID</code> or the * <code>ConditionalToken</code>. You get the application's current * <code>ConditionalToken</code> using <a>DescribeApplication</a>. For better * concurrency support, use the <code>ConditionalToken</code> parameter instead of * <code>CurrentApplicationVersionId</code>.</p> */ inline void SetConditionalToken(const Aws::String& value) { m_conditionalTokenHasBeenSet = true; m_conditionalToken = value; } /** * <p>A value you use to implement strong concurrency for application updates. You * must provide the <code>ApplicationVersionID</code> or the * <code>ConditionalToken</code>. You get the application's current * <code>ConditionalToken</code> using <a>DescribeApplication</a>. For better * concurrency support, use the <code>ConditionalToken</code> parameter instead of * <code>CurrentApplicationVersionId</code>.</p> */ inline void SetConditionalToken(Aws::String&& value) { m_conditionalTokenHasBeenSet = true; m_conditionalToken = std::move(value); } /** * <p>A value you use to implement strong concurrency for application updates. You * must provide the <code>ApplicationVersionID</code> or the * <code>ConditionalToken</code>. You get the application's current * <code>ConditionalToken</code> using <a>DescribeApplication</a>. For better * concurrency support, use the <code>ConditionalToken</code> parameter instead of * <code>CurrentApplicationVersionId</code>.</p> */ inline void SetConditionalToken(const char* value) { m_conditionalTokenHasBeenSet = true; m_conditionalToken.assign(value); } /** * <p>A value you use to implement strong concurrency for application updates. You * must provide the <code>ApplicationVersionID</code> or the * <code>ConditionalToken</code>. You get the application's current * <code>ConditionalToken</code> using <a>DescribeApplication</a>. For better * concurrency support, use the <code>ConditionalToken</code> parameter instead of * <code>CurrentApplicationVersionId</code>.</p> */ inline AddApplicationVpcConfigurationRequest& WithConditionalToken(const Aws::String& value) { SetConditionalToken(value); return *this;} /** * <p>A value you use to implement strong concurrency for application updates. You * must provide the <code>ApplicationVersionID</code> or the * <code>ConditionalToken</code>. You get the application's current * <code>ConditionalToken</code> using <a>DescribeApplication</a>. For better * concurrency support, use the <code>ConditionalToken</code> parameter instead of * <code>CurrentApplicationVersionId</code>.</p> */ inline AddApplicationVpcConfigurationRequest& WithConditionalToken(Aws::String&& value) { SetConditionalToken(std::move(value)); return *this;} /** * <p>A value you use to implement strong concurrency for application updates. You * must provide the <code>ApplicationVersionID</code> or the * <code>ConditionalToken</code>. You get the application's current * <code>ConditionalToken</code> using <a>DescribeApplication</a>. For better * concurrency support, use the <code>ConditionalToken</code> parameter instead of * <code>CurrentApplicationVersionId</code>.</p> */ inline AddApplicationVpcConfigurationRequest& WithConditionalToken(const char* value) { SetConditionalToken(value); return *this;} private: Aws::String m_applicationName; bool m_applicationNameHasBeenSet = false; long long m_currentApplicationVersionId; bool m_currentApplicationVersionIdHasBeenSet = false; VpcConfiguration m_vpcConfiguration; bool m_vpcConfigurationHasBeenSet = false; Aws::String m_conditionalToken; bool m_conditionalTokenHasBeenSet = false; }; } // namespace Model } // namespace KinesisAnalyticsV2 } // namespace Aws
{'content_hash': '0eab272a9f9526e73723e0243caf6a92', 'timestamp': '', 'source': 'github', 'line_count': 249, 'max_line_length': 154, 'avg_line_length': 47.97991967871486, 'alnum_prop': 0.7226081861555202, 'repo_name': 'aws/aws-sdk-cpp', 'id': '2629e19f2220ad84e23b2a7168931db24d4f8cb9', 'size': '12066', 'binary': False, 'copies': '1', 'ref': 'refs/heads/main', 'path': 'aws-cpp-sdk-kinesisanalyticsv2/include/aws/kinesisanalyticsv2/model/AddApplicationVpcConfigurationRequest.h', 'mode': '33188', 'license': 'apache-2.0', 'language': [{'name': 'C', 'bytes': '309797'}, {'name': 'C++', 'bytes': '476866144'}, {'name': 'CMake', 'bytes': '1245180'}, {'name': 'Dockerfile', 'bytes': '11688'}, {'name': 'HTML', 'bytes': '8056'}, {'name': 'Java', 'bytes': '413602'}, {'name': 'Python', 'bytes': '79245'}, {'name': 'Shell', 'bytes': '9246'}]}
<?php /** * @category Xi * @package Xi_State * @author Eevert Saukkokoski <eevert.saukkokoski@brainalliance.com> */ class Xi_State_Machine_Exception extends Xi_Exception {}
{'content_hash': '0f56a21d32a30be3cc3402f12812a295', 'timestamp': '', 'source': 'github', 'line_count': 8, 'max_line_length': 73, 'avg_line_length': 24.625, 'alnum_prop': 0.6548223350253807, 'repo_name': 'Ezku/xi-framework', 'id': '89f6384c3e4a3072d92c8750bf613c18c8d429c4', 'size': '197', 'binary': False, 'copies': '1', 'ref': 'refs/heads/master', 'path': 'framework/core/Xi/State/Machine/Exception.php', 'mode': '33188', 'license': 'bsd-3-clause', 'language': [{'name': 'JavaScript', 'bytes': '20000'}, {'name': 'PHP', 'bytes': '17590007'}]}
baidu.frontia.storage = baidu.frontia.storage || {}; (function (namespace_) { var Error = namespace_.error; var ErrConst = namespace_.ERR_MSG; var BSSUriPrefixs = namespace_.DomainManager.getFrontiaDomain() + '/bss/document'; var BCSUriPrefixs = namespace_.DomainManager.getFrontiaDomain() + '/bcs/object'; var PBLOGUriPrefixs = namespace_.DomainManager.getPBLogDomain() + '/pushlog'; // File类 namespace_.File = namespace_.Object.extend(/** @lends baidu.frontia.File.prototype*/{ /** * 创建一个新的File对象实例 * * @name baidu.frontia.File * @extends baidu.frontia.Object * @constructor * @param {File} file 浏览器DOM File对象 * @param {string} target 上传到云存储上文件名,包含全路径 * @param {baidu.frontia.ACL} [acl] baidu.frontia.ACL对象 */ constructor: function(file, target, acl) { if (file && !(file instanceof File)) { throw new Error(ErrConst.INVALID_PARAMS, '[baidu.frontia.File.constructor]: file is invalid'); } this.file = file; this.target = target; this.detail = null; namespace_.Object.prototype.constructor.call(this, acl); }, /** * 获取具体文件信息 * * @returns {Object} */ getFileInfo: function() { return this.detail; }, _getFile: function() { return this.file; }, _getTarget:function() { return this.target; }, _setFileInfo: function(info) { this.detail = info } }); namespace_.Data = namespace_.Object.extend(/** @lends baidu.frontia.Data.prototype */{ /** * 创建一个新的Data对象实例 * * @name baidu.frontia.Data * @extends baidu.frontia.Object * @constructor * @param {Object} obj 结构化数据内容,与mongodb一致 * @param {baidu.frontia.ACL} [acl] baidu.frontia.ACL对象 */ constructor: function(obj, acl) { this.obj = obj || {}; namespace_.Object.prototype.constructor.call(this, acl); }, /** * 获取结构化数据信息 * * @returns {Object} dataInfo */ getData: function() { return this.obj; } }); /** @namespace baidu.frontia.storage*/ var storage = /** @lends baidu.frontia.storage*/{ options: { error: function(){}, success: function(){} }, _configure: function(options) { options = options || {}; options.error && (this.options.error = options.error); options.success && (this.options.success = options.success); }, _checkParams: function(params, prompt) { var self = this; return params.every(function(elem) { if (elem.type === 'file' && !(elem.value && elem.value instanceof namespace_.File)) { self.options.error(new Error(ErrConst.INVALID_PARAMS, '['+ prompt + ']: file is null or not typeof File of baidu.frontia')); return false; } if (elem.type === 'string' && !(elem.value && typeof elem.value === 'string')) { self.options.error(new Error(ErrConst.INVALID_PARAMS, '['+ prompt +']: target is invalid')); return false; } if (elem.type === 'array' && !(elem.value && Object.prototype.toString.call(elem.value).slice(8, -1) === 'Array')){ self.options.error(new Error(ErrConst.INVALID_PARAMS, '[' + prompt + ']: targets is invalid')); return false; } if (elem.type === 'query' && !(elem.value && elem.value instanceof storage.Query)) { self.options.error(new Error(ErrConst.INVALID_PARAMS, '['+ prompt + ']: query is invalid')); return false; } if (elem.type === 'data' && !(elem.value && elem.value instanceof namespace_.Data)) { self.options.error(new Error(ErrConst.INVALID_PARAMS, '['+ prompt +']: data is invalid')); return false; } return true; }); }, /** * 上传文件 * * @param {baidu.frontia.File} file frontia提供的File对象 * @param {Object} options * @param {function(result)} [options.success] 上传成功后callback * @param {function(error, xhr)} [options.error] 上传失败后callback */ uploadFile: function(file, options) { var frontia_action = {}; frontia_action['action_name'] = 'storage.uploadFile'; frontia_action['timestamp'] = _getTimestamp(); var self = this; options = options || {}; self._configure(options); if (!self._checkParams([{value: file, type: 'file'}], 'storage.uploadFile')) return; var fileInfo = { file: file._getFile(), acl: file._getACLInfo(), target: file._getTarget() } var body = self._attachAccount({method: 'getuploadurl'}); var ajax = namespace_.ajax; ajax.post(BCSUriPrefixs, JSON.stringify(body), 'json', { header: { authorization: _generateAuth(namespace_.getApiKey()) }, contentType: 'application/json', callback: function(data) { if (data.error_code) { self.options.error(new Error(data)); } else { var url = data.response_params.url + '&dumpheader=1'; var reader = new FileReader(); reader.onload = function(e) { var fileResult = reader.result; ajax.put(url, fileResult, 'json', { contentType: 'application/octet-stream', callback: function(data) { if (data.Error.Code !== 0) { self.options.error(new Error(data.Error)); } else { var requestOpt = self._createAjaxOpt(frontia_action, { header: { authorization: _generateAuth(namespace_.getApiKey()) }, contentType: 'application/json' }); var bodyPiece = self._attachAccount({ method: 'create', md5s: [data['Header']['Content-MD5']], object: fileInfo.target, _acl: fileInfo.acl }); ajax.post(BCSUriPrefixs, JSON.stringify(bodyPiece), 'json', requestOpt); } }, onerror: function(xhr, error) { try { var err_data = JSON.parse(xhr.responseText); } catch(ex) { self.options.error(ex, xhr); return; } var error = new Error(err_data.Error); self.options.error(error, xhr); frontia_action.err_code = error.code; frontia_action.err_msg = error.message; frontia_action.restimestamp = _getTimestamp(); _sendPBLog(frontia_action); } }); } reader.readAsArrayBuffer(fileInfo.file); } }, onerror: function(xhr, error) { try { var err_data = JSON.parse(xhr.responseText); } catch(ex) { self.options.error(ex, xhr); return; } var error = new Error(err_data); self.options.error(error, xhr); frontia_action.err_code = error.code; frontia_action.err_msg = error.message; frontia_action.restimestamp = _getTimestamp(); _sendPBLog(frontia_action); }, }); }, /** * 获取云存储文件URL * @param {string} target 云存储上文件路径 * @param {Object} options * @param {function(result)} [options.success] 获取成功后callback, result为云存储文件Url * @param {function(error, xhr)} [options.error] 获取失败后callback */ getFileUrl: function(target, options) { var frontia_action = {}; frontia_action['action_name'] = 'storage.getFileUrl'; frontia_action['timestamp'] = _getTimestamp(); var self = this; options = options || {}; self._configure(options); if (!self._checkParams([{value: target, type: 'string'}], 'storage.getFileUrl')) return; var body = self._attachAccount({method: 'getdownloadurl', object: target}); var requestOpt = self._createAjaxOpt(frontia_action, { header: { authorization: _generateAuth(namespace_.getApiKey()) }, contentType: 'application/json' }) var ajax = namespace_.ajax; ajax.post(BCSUriPrefixs, JSON.stringify(body), 'json', requestOpt); }, /** * 删除云存储上的文件 * * @param {string} target 需要删除的文件路径 * @param {Object} options * @param {function(result)} [options.success] 删除成功后callback * @param {function(error, xhr)} [options.error] 删除失败后callback */ deleteFile: function(target, options) { var frontia_action = {}; frontia_action['action_name'] = 'storage.deleteFile'; frontia_action['timestamp'] = _getTimestamp(); var self = this; options = options || {}; self._configure(options); if (!self._checkParams([{value: target, type: 'string'}], 'storage.deleteFile')) return; var body = self._attachAccount({method: 'delete', object: target}); var requestOpt = self._createAjaxOpt(frontia_action, { header: { authorization: _generateAuth(namespace_.getApiKey()) }, contentType: 'application/json' }) var ajax = namespace_.ajax; ajax.post(BCSUriPrefixs, JSON.stringify(body), 'json', requestOpt); }, /** * 获取指定路径下的文件列表 * * @param {string} target 云存储上文件路径 * @param {Object} options * @param {function(data)} [options.success] 获取成功后callback, data包括: * { * result: [], // file数组 * count: xxx // file数目 * } * @param {function(error, xhr)} [options.error] 获取失败后callback */ listFile: function(target, options) { var frontia_action = {}; frontia_action['action_name'] = 'storage.listFile'; frontia_action['timestamp'] = _getTimestamp(); var self = this; options = options || {}; self._configure(options); if (!self._checkParams([{value: target, type: 'string'}], 'storage.listFile')) return; var body = self._attachAccount({method: 'list', object: target}); var requestOpt = self._createAjaxOpt(frontia_action, { header: { authorization: _generateAuth(namespace_.getApiKey()) }, contentType: 'application/json' }); // recreate callback requestOpt.callback = function(data) { if (data.error_code) { var error = new Error(data); self.options.error(error); frontia_action.err_code = error.code; frontia_action.err_msg = error.message; } else { var result = []; data.response_params.object_list.forEach(function(elem) { var acl = new namespace_.ACL(); if (elem._acl) { acl._setPermission(elem._acl); delete elem._acl; } var file = new namespace_.File(null, null, acl); file._setFileInfo(elem); result.push(file); }) self.options.success({ result: result, count: data.response_params.object_total }); frontia_action.err_code = 0; } frontia_action.restimestamp = _getTimestamp(); _sendPBLog(frontia_action); } var ajax = namespace_.ajax; ajax.post(BCSUriPrefixs, JSON.stringify(body), 'json', requestOpt); }, /** * 插入数据 * * @param {baidu.frontia.Data} data baidu.frontia提供的Data类型,表示需要插入的数据 * @param {Object} options * @param {function(result)} [options.success] 插入成功后callback * @param {function(error, xhr)} [options.error] 插入失败后callback */ insertData: function(data, options) { var frontia_action = {}; frontia_action['action_name'] = 'storage.insertData'; frontia_action['timestamp'] = _getTimestamp(); options = options || {}; this._configure(options); if (!this._checkParams([{value: data, type: 'data'}], 'storage.insertData')) return; var dataInfo = data.getData(); var dataACL = data._getACLInfo(); if (dataACL) { dataInfo['_acl'] = dataACL; } var body = this._attachAccount({method: 'insert', documents: dataInfo}); var requestOpt = this._createAjaxOpt(frontia_action, { header: { authorization: _generateAuth(namespace_.getApiKey()) }, contentType: 'application/json' }); var ajax = namespace_.ajax; ajax.post(BSSUriPrefixs, JSON.stringify(body), 'json', requestOpt); }, /** * 删除数据 * * @param {baidu.frontia.storage.Query} query 删除数据条件 * @param {Object} options * @param {function(result)} [options.success] 下载成功后callback * @param {function(error, xhr)} [options.error] 下载失败后callback */ deleteData: function(query, options) { var frontia_action = {}; frontia_action['action_name'] = 'storage.deleteData'; frontia_action['timestamp'] = _getTimestamp(); options = options || {}; this._configure(options); if (!this._checkParams([{value: query, type: 'query'}], 'storage.deleteData')) return; var body = this._attachAccount({method: 'remove', criteria: query.query}); var requestOpt = this._createAjaxOpt(frontia_action, { header: { authorization: _generateAuth(namespace_.getApiKey()) }, contentType: 'application/json' }); var ajax = namespace_.ajax; ajax.post(BSSUriPrefixs, JSON.stringify(body), 'json', requestOpt); }, /** * 更新数据 * * @param {Object(Query)} query 更新数据条件 * @param {Object(Data)} data 更新数据的内容, baidu.frontia提供的Data类型,默认只更新第一条数据;如果没有任何文档匹配,则不更新 * @param {Object} options * @param {function(result)} [options.success] 下载成功后callback * @param {function(error, xhr)} [options.error] 下载失败后callback */ updateData: function(query, data, options) { var frontia_action = {}; frontia_action['action_name'] = 'storage.updateData'; frontia_action['timestamp'] = _getTimestamp(); options = options || {}; this._configure(options); if (!this._checkParams([{value: query, type: 'query'}, {value: data, type: 'data'}], 'storage.updateData')) return; var dataInfo = data.getData(); var dataACL = data._getACLInfo(); if (dataACL) { if (dataInfo.hasOwnProperty('$set')) { dataInfo['$set']['_acl'] = dataACL; } else { var tag = 0; for (var i in dataInfo) { if (dataInfo.hasOwnProperty(i)) { if (i[0] === '$') { tag = 1; dataInfo['$set'] = {}; dataInfo['$set']['_acl'] = dataACL; break; } } } if (tag === 0) { dataInfo['_acl'] = dataACL; } } } var body = this._attachAccount({method: 'update', criteria: query.query, document: dataInfo}); var requestOpt = this._createAjaxOpt(frontia_action, { header: { authorization: _generateAuth(namespace_.getApiKey()) }, contentType: 'application/json' }); var ajax = namespace_.ajax; ajax.post(BSSUriPrefixs, JSON.stringify(body), 'json', requestOpt); }, /** * 查询数据 * * @param {Object(Query)} query 查询数据条件 * @param {Object} options * @param {function(data)} [options.success] 下载成功后callback, data包括 * { * result: [], // data数组 * count: xxx // data数目 * } * @param {function(error, xhr)} [options.error] 下载失败后callback */ findData: function(query, options) { var frontia_action = {}; frontia_action['action_name'] = 'storage.findData'; frontia_action['timestamp'] = _getTimestamp(); var self = this; options = options || {}; this._configure(options); if (!this._checkParams([{value: query, type: 'query'}], 'storage.findData')) return; var body = this._attachAccount({method: 'query', criteria: query.query}); var requestOpt = this._createAjaxOpt(frontia_action, { header: { authorization: _generateAuth(namespace_.getApiKey()) }, contentType: 'application/json' }); // recreate callback requestOpt.callback = function(data) { if (data.error_code) { var error = new Error(data); self.options.error(error); frontia_action.err_code = error.code; frontia_action.err_msg = error.message; } else { var result = []; data.response_params.documents.forEach(function(elem) { var acl = new namespace_.ACL(); if (elem._acl) { acl._setPermission(elem._acl); delete elem._acl; } var metaData = new namespace_.Data(elem, acl); result.push(metaData); }) self.options.success({ result: result, count: data.response_params.count }); frontia_action.err_code = 0; } frontia_action.restimestamp = _getTimestamp(); _sendPBLog(frontia_action); } var ajax = namespace_.ajax; ajax.post(BSSUriPrefixs, JSON.stringify(body), 'json', requestOpt); }, _attachAccount: function(body) { var self = this; var account = null; if (namespace_.currentAccount && namespace_.currentAccount instanceof namespace_.Role && namespace_.currentAccount.getId()) { account = 'requester'; body[account] = namespace_.currentAccount.getType() + ':' + namespace_.currentAccount.getId(); } else if (namespace_.currentAccount && namespace_.currentAccount instanceof namespace_.User && namespace_.currentAccount.getAccessToken()) { account = 'requester'; body[account] = namespace_.currentAccount.getType() + ':' + namespace_.currentAccount.getAccessToken(); } return body; }, _createAjaxOpt: function(frontia_action, options) { var self = this; var deafaultOpt = { callback: function(data) { if (data.error_code) { var error = new Error(data); self.options.error(error); frontia_action.err_code = error.code; frontia_action.err_msg = error.message; } else { self.options.success(data); frontia_action.err_code = 0; } frontia_action.restimestamp = _getTimestamp(); _sendPBLog(frontia_action); }, onerror: function(xhr, error) { try { var err_data = namespace_.util.parseJSON(xhr.responseText); } catch(ex) { self.options.error(ex, xhr); return; } var error = new Error(err_data); self.options.error(error, xhr); frontia_action.err_code = error.code; frontia_action.err_msg = error.message; frontia_action.restimestamp = _getTimestamp(); _sendPBLog(frontia_action); } } return namespace_.util.mix(deafaultOpt, options); } } storage.Query = namespace_.Base.extend(/** @lends baidu.frontia.storage.Query.prototype*/{ currentKey: null, query: null, /** * 创建数据查询的query * * @example <code> * var query = new baiduf.frontia.storage.Query(); * query.on('user.age').lessThanEqual(50).greaterThan(20); * query.on('user‘).equal({foo: 'bar'}); * </code> * * @name baidu.frontia.storage.Query * @constructor */ constructor: function() { }, _set: function(field, expression) { this.query = this.query || {}; this.query[field] instanceof Object || (this.query[field] = {}); for (var i in expression) { if (expression.hasOwnProperty(i)) { this.query[field][i] = expression[i]; } } }, _build: function(operator, value) { if (this.currentKey === null) { throw new Error('Query key must not be null'); } switch(operator) { case storage.Query.EQUAL: this.query = this.query || {}; this.query[this.currentKey] = value; break; case storage.Query.LESSTHAN: this._set(this.currentKey, {$lt: value}); break; case storage.Query.LESSTHANEQUAL: this._set(this.currentKey, {$lte: value}); break; case storage.Query.GREATERTHAN: this._set(this.currentKey, {$gt: value}); break; case storage.Query.GREATERTHANEQUAL: this._set(this.currentKey, {$gte: value}); break; default: throw new Error('Query ' + operator + ' is not supported'); } }, /** * 等于查询 * @public * @param {Object} expected * @return {baidu.frontia.storage.Query} */ equal: function(expected) { this._build(storage.Query.EQUAL, expected); return this; }, /** * 小于查询 * * @param {Number} value * @return {baidu.frontia.storage.Query} */ lessThan: function(value) { this._build(storage.Query.LESSTHAN, value); return this; }, /** * 小于等于查询 * * @param {Number} value * @return {baidu.frontia.storage.Query} */ lessThanEqual: function(value) { this._build(storage.Query.LESSTHANEQUAL, value); return this; }, /** * 大于查询 * * @param {Number} value * @return {baidu.frontia.storage.Query} */ greaterThan: function(value) { this._build(storage.Query.GREATERTHAN, value); return this; }, /** * 大于等于查询 * * @param {Number} value * @return {baidu.frontia.storage.Query} */ greaterThanEqual: function(value) { this._build(storage.Query.GREATERTHANEQUAL, value); return this; }, /** * 设定需查询数据field * * @param {string} key * @return {baidu.frontia.storage.Query} */ on: function(key) { this.currentKey = key; return this; } }, { EQUAL: 1, LESSTHAN: 2, LESSTHANEQUAL: 3, GREATERTHAN: 4, GREATERTHANEQUAL: 5 }); function _generateAuth(ak) { var base64_ak = namespace_.util.toBase64('Application:' + ak); return 'Basic' + ' ' + base64_ak; } function _isEmptyObj(obj) { for (var i in obj) return false; return true; } function _sendPBLog(action) { var frontiaClient = { application_info: [{ app_frontia_version: namespace_.version, app_appid: namespace_.getApiKey(), user_id: namespace_.getCurrentAccount().getId() || '', frontia_action: [{ action_name: '', timestamp: null, restimestamp: null, err_code: '', err_msg: '' }] }] } frontiaClient['application_info'][0]['frontia_action'][0] = action; var body = {}; var deflate = new Zlib.Gzip(new Uint8Array(JSON.stringify(frontiaClient).split("").map(function(c) { return c.charCodeAt(0); }))); var deflate_str = deflate.compress(); body['stats'] = btoa(String.fromCharCode.apply(null, deflate_str)); var ajax = namespace_.ajax; ajax.post(PBLOGUriPrefixs, JSON.stringify(body), 'json', { contentType: 'application/json'}); } function _getTimestamp() { var timestamp = Math.floor(new Date().getTime() / 1000); return timestamp; } namespace_.storage = storage; })(baidu.frontia)
{'content_hash': 'f9635cf1a351408c20edd68cc9ff0c58', 'timestamp': '', 'source': 'github', 'line_count': 758, 'max_line_length': 147, 'avg_line_length': 31.439313984168866, 'alnum_prop': 0.5554529814107675, 'repo_name': 'woerwin/lightACT', 'id': '7ee00ce711b8fc24498138803cf59a2a24b5c0d6', 'size': '24555', 'binary': False, 'copies': '3', 'ref': 'refs/heads/master', 'path': 'public/frontia/src/store/storage.js', 'mode': '33188', 'license': 'mit', 'language': [{'name': 'CSS', 'bytes': '98345'}, {'name': 'JavaScript', 'bytes': '715203'}, {'name': 'PHP', 'bytes': '7579'}, {'name': 'Shell', 'bytes': '992'}]}
<!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1"> <title>lc: Not compatible 👼</title> <link rel="shortcut icon" type="image/png" href="../../../../../favicon.png" /> <link href="../../../../../bootstrap.min.css" rel="stylesheet"> <link href="../../../../../bootstrap-custom.css" rel="stylesheet"> <link href="//maxcdn.bootstrapcdn.com/font-awesome/4.2.0/css/font-awesome.min.css" rel="stylesheet"> <script src="../../../../../moment.min.js"></script> <!-- HTML5 Shim and Respond.js IE8 support of HTML5 elements and media queries --> <!-- WARNING: Respond.js doesn't work if you view the page via file:// --> <!--[if lt IE 9]> <script src="https://oss.maxcdn.com/html5shiv/3.7.2/html5shiv.min.js"></script> <script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script> <![endif]--> </head> <body> <div class="container"> <div class="navbar navbar-default" role="navigation"> <div class="container-fluid"> <div class="navbar-header"> <a class="navbar-brand" href="../../../../.."><i class="fa fa-lg fa-flag-checkered"></i> Coq bench</a> </div> <div id="navbar" class="collapse navbar-collapse"> <ul class="nav navbar-nav"> <li><a href="../..">clean / released</a></li> <li class="active"><a href="">8.8.1 / lc - 8.6.0</a></li> </ul> </div> </div> </div> <div class="article"> <div class="row"> <div class="col-md-12"> <a href="../..">« Up</a> <h1> lc <small> 8.6.0 <span class="label label-info">Not compatible 👼</span> </small> </h1> <p>📅 <em><script>document.write(moment("2022-04-08 16:37:15 +0000", "YYYY-MM-DD HH:mm:ss Z").fromNow());</script> (2022-04-08 16:37:15 UTC)</em><p> <h2>Context</h2> <pre># Packages matching: installed # Name # Installed # Synopsis base-bigarray base base-threads base base-unix base camlp5 7.14 Preprocessor-pretty-printer of OCaml conf-findutils 1 Virtual package relying on findutils conf-perl 2 Virtual package relying on perl coq 8.8.1 Formal proof management system num 1.4 The legacy Num library for arbitrary-precision integer and rational arithmetic ocaml 4.09.1 The OCaml compiler (virtual package) ocaml-base-compiler 4.09.1 Official release 4.09.1 ocaml-config 1 OCaml Switch Configuration ocamlfind 1.9.3 A library manager for OCaml # opam file: opam-version: &quot;2.0&quot; maintainer: &quot;Hugo.Herbelin@inria.fr&quot; homepage: &quot;https://github.com/coq-contribs/lc&quot; license: &quot;LGPL 2.1&quot; build: [make &quot;-j%{jobs}%&quot;] install: [make &quot;install&quot;] remove: [&quot;rm&quot; &quot;-R&quot; &quot;%{lib}%/coq/user-contrib/lc&quot;] depends: [ &quot;ocaml&quot; &quot;coq&quot; {&gt;= &quot;8.6&quot; &amp; &lt; &quot;8.7~&quot;} ] tags: [ &quot;keyword: modules&quot; &quot;keyword: monads&quot; &quot;keyword: category&quot; &quot;keyword: lambda calculus&quot; &quot;keyword: higher-order syntax&quot; &quot;category: Computer Science/Lambda Calculi&quot; &quot;date: 2006-01-12&quot; &quot;date: 2008-09-9&quot; ] authors: [ &quot;André Hirschowitz &lt;ah@math.unice.fr&gt; [http://math.unice.fr/~ah/]&quot; &quot;Marco Maggesi &lt;maggesi@math.unifi.it&gt; [http://www.math.unifi.it/~maggesi/]&quot; ] bug-reports: &quot;https://github.com/coq-contribs/lc/issues&quot; dev-repo: &quot;git+https://github.com/coq-contribs/lc.git&quot; synopsis: &quot;Modules over monads and lambda-calculi&quot; description: &quot;&quot;&quot; http://www.math.unifi.it/~/maggesi/mechanized/ We define a notion of module over a monad and use it to propose a new definition (or semantics) for abstract syntax (with binding constructions). Using our notion of module, we build a category of `exponential&#39; monads, which can be understood as the category of lambda-calculi, and prove that it has an initial object (the pure untyped lambda-calculus).&quot;&quot;&quot; flags: light-uninstall url { src: &quot;https://github.com/coq-contribs/lc/archive/v8.6.0.tar.gz&quot; checksum: &quot;md5=a827e42c57b1b80f30c7160d05029321&quot; } </pre> <h2>Lint</h2> <dl class="dl-horizontal"> <dt>Command</dt> <dd><code>true</code></dd> <dt>Return code</dt> <dd>0</dd> </dl> <h2>Dry install 🏜️</h2> <p>Dry install with the current Coq version:</p> <dl class="dl-horizontal"> <dt>Command</dt> <dd><code>opam install -y --show-action coq-lc.8.6.0 coq.8.8.1</code></dd> <dt>Return code</dt> <dd>5120</dd> <dt>Output</dt> <dd><pre>[NOTE] Package coq is already installed (current version is 8.8.1). The following dependencies couldn&#39;t be met: - coq-lc -&gt; coq &lt; 8.7~ -&gt; ocaml &lt; 4.06.0 base of this switch (use `--unlock-base&#39; to force) No solution found, exiting </pre></dd> </dl> <p>Dry install without Coq/switch base, to test if the problem was incompatibility with the current Coq/OCaml version:</p> <dl class="dl-horizontal"> <dt>Command</dt> <dd><code>opam remove -y coq; opam install -y --show-action --unlock-base coq-lc.8.6.0</code></dd> <dt>Return code</dt> <dd>0</dd> </dl> <h2>Install dependencies</h2> <dl class="dl-horizontal"> <dt>Command</dt> <dd><code>true</code></dd> <dt>Return code</dt> <dd>0</dd> <dt>Duration</dt> <dd>0 s</dd> </dl> <h2>Install 🚀</h2> <dl class="dl-horizontal"> <dt>Command</dt> <dd><code>true</code></dd> <dt>Return code</dt> <dd>0</dd> <dt>Duration</dt> <dd>0 s</dd> </dl> <h2>Installation size</h2> <p>No files were installed.</p> <h2>Uninstall 🧹</h2> <dl class="dl-horizontal"> <dt>Command</dt> <dd><code>true</code></dd> <dt>Return code</dt> <dd>0</dd> <dt>Missing removes</dt> <dd> none </dd> <dt>Wrong removes</dt> <dd> none </dd> </dl> </div> </div> </div> <hr/> <div class="footer"> <p class="text-center"> Sources are on <a href="https://github.com/coq-bench">GitHub</a> © Guillaume Claret 🐣 </p> </div> </div> <script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js"></script> <script src="../../../../../bootstrap.min.js"></script> </body> </html>
{'content_hash': 'ad37bf5d20410c5b542d6ce5fe0969f6', 'timestamp': '', 'source': 'github', 'line_count': 179, 'max_line_length': 188, 'avg_line_length': 41.06703910614525, 'alnum_prop': 0.5490409468099579, 'repo_name': 'coq-bench/coq-bench.github.io', 'id': 'bf044441127e5f35a20664aea9980bede2edcb9e', 'size': '7377', 'binary': False, 'copies': '1', 'ref': 'refs/heads/master', 'path': 'clean/Linux-x86_64-4.09.1-2.0.6/released/8.8.1/lc/8.6.0.html', 'mode': '33188', 'license': 'mit', 'language': []}
title: "New package VPdtw with initial version 2.1-11 " kind: article created_at: 2015-07-08 09:20:00 UTC author: CRANberries categories: tags: layout: post --- <strong>Package</strong>: VPdtw<br> <strong>Type</strong>: Package<br> <strong>Title</strong>: Variable Penalty Dynamic Time Warping<br> <strong>Version</strong>: 2.1-11<br> <strong>Date</strong>: 2015-07-06<br> <strong>Author</strong>: David Clifford, Glenn Stone<br> <strong>Maintainer</strong>: David Clifford &lt;David.Clifford+CRAN@gmail.com&gt;<br> <strong>Description</strong>: Variable Penalty Dynamic Time Warping for aligning GC-MS chromatograms to a master signal and more. With the appropriate penalty this method performs good alignment without altering the shape of peaks in GC-MS data.<br> <strong>License</strong>: GPL-2<br> <strong>NeedsCompilation</strong>: yes<br> <strong>Packaged</strong>: 2015-07-08 03:08:08 UTC; hua032<br> <strong>Repository</strong>: CRAN<br> <strong>Date/Publication</strong>: 2015-07-08 05:13:01<br> <p> <a href="http://cran.r-project.org/web/packages/VPdtw/index.html">More information about VPdtw at CRAN</a><div class="author"> <img src="" style="width: 96px; height: 96;"> <span style="position: absolute; padding: 32px 15px;"> <i>Original post by <a href="http://twitter.com/">CRANberries</a> - check out <a href="http://dirk.eddelbuettel.com/cranberries">CRANberries </a></i> </span> </div>
{'content_hash': '88f78a007b611b550c2ea552d4963674', 'timestamp': '', 'source': 'github', 'line_count': 29, 'max_line_length': 249, 'avg_line_length': 48.86206896551724, 'alnum_prop': 0.7325335215243473, 'repo_name': 'planetr/planetr.github.io', 'id': '2f8858ad1af90f7029df0e9a6a4f1ab7e2a67319', 'size': '1421', 'binary': False, 'copies': '1', 'ref': 'refs/heads/master', 'path': '_posts/2015-07-08-new-package-vpdtw-with-initial-version-2-1-11.markdown', 'mode': '33188', 'license': 'mit', 'language': [{'name': 'CSS', 'bytes': '9801'}, {'name': 'HTML', 'bytes': '33197'}, {'name': 'Makefile', 'bytes': '220'}, {'name': 'Ruby', 'bytes': '4077'}]}
/* Riot v4.0.8, @license MIT */ (function (global, factory) { typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports) : typeof define === 'function' && define.amd ? define(['exports'], factory) : (global = global || self, factory(global.riot = {})); }(this, function (exports) { 'use strict'; const COMPONENTS_IMPLEMENTATION_MAP = new Map(), DOM_COMPONENT_INSTANCE_PROPERTY = Symbol('riot-component'), PLUGINS_SET = new Set(), IS_DIRECTIVE = 'is', VALUE_ATTRIBUTE = 'value', ATTRIBUTES_KEY_SYMBOL = Symbol('attributes'), TEMPLATE_KEY_SYMBOL = Symbol('template'); var globals = /*#__PURE__*/Object.freeze({ COMPONENTS_IMPLEMENTATION_MAP: COMPONENTS_IMPLEMENTATION_MAP, DOM_COMPONENT_INSTANCE_PROPERTY: DOM_COMPONENT_INSTANCE_PROPERTY, PLUGINS_SET: PLUGINS_SET, IS_DIRECTIVE: IS_DIRECTIVE, VALUE_ATTRIBUTE: VALUE_ATTRIBUTE, ATTRIBUTES_KEY_SYMBOL: ATTRIBUTES_KEY_SYMBOL, TEMPLATE_KEY_SYMBOL: TEMPLATE_KEY_SYMBOL }); /** * Remove the child nodes from any DOM node * @param {HTMLElement} node - target node * @returns {undefined} */ function cleanNode(node) { const children = node.childNodes; Array.from(children).forEach(n => node.removeChild(n)); } const EACH = 0; const IF = 1; const SIMPLE = 2; const TAG = 3; const SLOT = 4; var bindingTypes = { EACH, IF, SIMPLE, TAG, SLOT }; /* get rid of the @ungap/essential-map polyfill */ const append = (get, parent, children, start, end, before) => { if (end - start < 2) parent.insertBefore(get(children[start], 1), before);else { const fragment = parent.ownerDocument.createDocumentFragment(); while (start < end) fragment.appendChild(get(children[start++], 1)); parent.insertBefore(fragment, before); } }; const eqeq = (a, b) => a == b; const identity = O => O; const indexOf = (moreNodes, moreStart, moreEnd, lessNodes, lessStart, lessEnd, compare) => { const length = lessEnd - lessStart; /* istanbul ignore if */ if (length < 1) return -1; while (moreEnd - moreStart >= length) { let m = moreStart; let l = lessStart; while (m < moreEnd && l < lessEnd && compare(moreNodes[m], lessNodes[l])) { m++; l++; } if (l === lessEnd) return moreStart; moreStart = m + 1; } return -1; }; const isReversed = (futureNodes, futureEnd, currentNodes, currentStart, currentEnd, compare) => { while (currentStart < currentEnd && compare(currentNodes[currentStart], futureNodes[futureEnd - 1])) { currentStart++; futureEnd--; } return futureEnd === 0; }; const next = (get, list, i, length, before) => i < length ? get(list[i], 0) : 0 < i ? get(list[i - 1], -0).nextSibling : before; const remove = (get, parent, children, start, end) => { if (end - start < 2) parent.removeChild(get(children[start], -1));else { const range = parent.ownerDocument.createRange(); range.setStartBefore(get(children[start], -1)); range.setEndAfter(get(children[end - 1], -1)); range.deleteContents(); } }; // - - - - - - - - - - - - - - - - - - - // diff related constants and utilities // - - - - - - - - - - - - - - - - - - - const DELETION = -1; const INSERTION = 1; const SKIP = 0; const SKIP_OND = 50; const HS = (futureNodes, futureStart, futureEnd, futureChanges, currentNodes, currentStart, currentEnd, currentChanges) => { let k = 0; /* istanbul ignore next */ let minLen = futureChanges < currentChanges ? futureChanges : currentChanges; const link = Array(minLen++); const tresh = Array(minLen); tresh[0] = -1; for (let i = 1; i < minLen; i++) tresh[i] = currentEnd; const keymap = new Map(); for (let i = currentStart; i < currentEnd; i++) keymap.set(currentNodes[i], i); for (let i = futureStart; i < futureEnd; i++) { const idxInOld = keymap.get(futureNodes[i]); if (idxInOld != null) { k = findK(tresh, minLen, idxInOld); /* istanbul ignore else */ if (-1 < k) { tresh[k] = idxInOld; link[k] = { newi: i, oldi: idxInOld, prev: link[k - 1] }; } } } k = --minLen; --currentEnd; while (tresh[k] > currentEnd) --k; minLen = currentChanges + futureChanges - k; const diff = Array(minLen); let ptr = link[k]; --futureEnd; while (ptr) { const { newi, oldi } = ptr; while (futureEnd > newi) { diff[--minLen] = INSERTION; --futureEnd; } while (currentEnd > oldi) { diff[--minLen] = DELETION; --currentEnd; } diff[--minLen] = SKIP; --futureEnd; --currentEnd; ptr = ptr.prev; } while (futureEnd >= futureStart) { diff[--minLen] = INSERTION; --futureEnd; } while (currentEnd >= currentStart) { diff[--minLen] = DELETION; --currentEnd; } return diff; }; // this is pretty much the same petit-dom code without the delete map part // https://github.com/yelouafi/petit-dom/blob/bd6f5c919b5ae5297be01612c524c40be45f14a7/src/vdom.js#L556-L561 const OND = (futureNodes, futureStart, rows, currentNodes, currentStart, cols, compare) => { const length = rows + cols; const v = []; let d, k, r, c, pv, cv, pd; outer: for (d = 0; d <= length; d++) { /* istanbul ignore if */ if (d > SKIP_OND) return null; pd = d - 1; /* istanbul ignore next */ pv = d ? v[d - 1] : [0, 0]; cv = v[d] = []; for (k = -d; k <= d; k += 2) { if (k === -d || k !== d && pv[pd + k - 1] < pv[pd + k + 1]) { c = pv[pd + k + 1]; } else { c = pv[pd + k - 1] + 1; } r = c - k; while (c < cols && r < rows && compare(currentNodes[currentStart + c], futureNodes[futureStart + r])) { c++; r++; } if (c === cols && r === rows) { break outer; } cv[d + k] = c; } } const diff = Array(d / 2 + length / 2); let diffIdx = diff.length - 1; for (d = v.length - 1; d >= 0; d--) { while (c > 0 && r > 0 && compare(currentNodes[currentStart + c - 1], futureNodes[futureStart + r - 1])) { // diagonal edge = equality diff[diffIdx--] = SKIP; c--; r--; } if (!d) break; pd = d - 1; /* istanbul ignore next */ pv = d ? v[d - 1] : [0, 0]; k = c - r; if (k === -d || k !== d && pv[pd + k - 1] < pv[pd + k + 1]) { // vertical edge = insertion r--; diff[diffIdx--] = INSERTION; } else { // horizontal edge = deletion c--; diff[diffIdx--] = DELETION; } } return diff; }; const applyDiff = (diff, get, parentNode, futureNodes, futureStart, currentNodes, currentStart, currentLength, before) => { const live = new Map(); const length = diff.length; let currentIndex = currentStart; let i = 0; while (i < length) { switch (diff[i++]) { case SKIP: futureStart++; currentIndex++; break; case INSERTION: // TODO: bulk appends for sequential nodes live.set(futureNodes[futureStart], 1); append(get, parentNode, futureNodes, futureStart++, futureStart, currentIndex < currentLength ? get(currentNodes[currentIndex], 0) : before); break; case DELETION: currentIndex++; break; } } i = 0; while (i < length) { switch (diff[i++]) { case SKIP: currentStart++; break; case DELETION: // TODO: bulk removes for sequential nodes if (live.has(currentNodes[currentStart])) currentStart++;else remove(get, parentNode, currentNodes, currentStart++, currentStart); break; } } }; const findK = (ktr, length, j) => { let lo = 1; let hi = length; while (lo < hi) { const mid = (lo + hi) / 2 >>> 0; if (j < ktr[mid]) hi = mid;else lo = mid + 1; } return lo; }; const smartDiff = (get, parentNode, futureNodes, futureStart, futureEnd, futureChanges, currentNodes, currentStart, currentEnd, currentChanges, currentLength, compare, before) => { applyDiff(OND(futureNodes, futureStart, futureChanges, currentNodes, currentStart, currentChanges, compare) || HS(futureNodes, futureStart, futureEnd, futureChanges, currentNodes, currentStart, currentEnd, currentChanges), get, parentNode, futureNodes, futureStart, currentNodes, currentStart, currentLength, before); }; /*! (c) 2018 Andrea Giammarchi (ISC) */ const domdiff = (parentNode, // where changes happen currentNodes, // Array of current items/nodes futureNodes, // Array of future items/nodes options // optional object with one of the following properties // before: domNode // compare(generic, generic) => true if same generic // node(generic) => Node ) => { if (!options) options = {}; const compare = options.compare || eqeq; const get = options.node || identity; const before = options.before == null ? null : get(options.before, 0); const currentLength = currentNodes.length; let currentEnd = currentLength; let currentStart = 0; let futureEnd = futureNodes.length; let futureStart = 0; // common prefix while (currentStart < currentEnd && futureStart < futureEnd && compare(currentNodes[currentStart], futureNodes[futureStart])) { currentStart++; futureStart++; } // common suffix while (currentStart < currentEnd && futureStart < futureEnd && compare(currentNodes[currentEnd - 1], futureNodes[futureEnd - 1])) { currentEnd--; futureEnd--; } const currentSame = currentStart === currentEnd; const futureSame = futureStart === futureEnd; // same list if (currentSame && futureSame) return futureNodes; // only stuff to add if (currentSame && futureStart < futureEnd) { append(get, parentNode, futureNodes, futureStart, futureEnd, next(get, currentNodes, currentStart, currentLength, before)); return futureNodes; } // only stuff to remove if (futureSame && currentStart < currentEnd) { remove(get, parentNode, currentNodes, currentStart, currentEnd); return futureNodes; } const currentChanges = currentEnd - currentStart; const futureChanges = futureEnd - futureStart; let i = -1; // 2 simple indels: the shortest sequence is a subsequence of the longest if (currentChanges < futureChanges) { i = indexOf(futureNodes, futureStart, futureEnd, currentNodes, currentStart, currentEnd, compare); // inner diff if (-1 < i) { append(get, parentNode, futureNodes, futureStart, i, get(currentNodes[currentStart], 0)); append(get, parentNode, futureNodes, i + currentChanges, futureEnd, next(get, currentNodes, currentEnd, currentLength, before)); return futureNodes; } } /* istanbul ignore else */ else if (futureChanges < currentChanges) { i = indexOf(currentNodes, currentStart, currentEnd, futureNodes, futureStart, futureEnd, compare); // outer diff if (-1 < i) { remove(get, parentNode, currentNodes, currentStart, i); remove(get, parentNode, currentNodes, i + futureChanges, currentEnd); return futureNodes; } } // common case with one replacement for many nodes // or many nodes replaced for a single one /* istanbul ignore else */ if (currentChanges < 2 || futureChanges < 2) { append(get, parentNode, futureNodes, futureStart, futureEnd, get(currentNodes[currentStart], 0)); remove(get, parentNode, currentNodes, currentStart, currentEnd); return futureNodes; } // the half match diff part has been skipped in petit-dom // https://github.com/yelouafi/petit-dom/blob/bd6f5c919b5ae5297be01612c524c40be45f14a7/src/vdom.js#L391-L397 // accordingly, I think it's safe to skip in here too // if one day it'll come out like the speediest thing ever to do // then I might add it in here too // Extra: before going too fancy, what about reversed lists ? // This should bail out pretty quickly if that's not the case. if (currentChanges === futureChanges && isReversed(futureNodes, futureEnd, currentNodes, currentStart, currentEnd, compare)) { append(get, parentNode, futureNodes, futureStart, futureEnd, next(get, currentNodes, currentEnd, currentLength, before)); return futureNodes; } // last resort through a smart diff smartDiff(get, parentNode, futureNodes, futureStart, futureEnd, futureChanges, currentNodes, currentStart, currentEnd, currentChanges, currentLength, compare, before); return futureNodes; }; const EachBinding = Object.seal({ // dynamic binding properties childrenMap: null, node: null, root: null, condition: null, evaluate: null, template: null, nodes: [], getKey: null, indexName: null, itemName: null, afterPlaceholder: null, placeholder: null, // API methods mount(scope, parentScope) { return this.update(scope, parentScope); }, update(scope, parentScope) { const { placeholder } = this; const collection = this.evaluate(scope); const items = collection ? Array.from(collection) : []; const parent = placeholder.parentNode; // prepare the diffing const { newChildrenMap, batches, futureNodes } = createPatch(items, scope, parentScope, this); // patch the DOM only if there are new nodes if (futureNodes.length) { domdiff(parent, this.nodes, futureNodes, { before: placeholder, node: patch(Array.from(this.childrenMap.values()), parentScope) }); } else { // remove all redundant templates unmountRedundant(this.childrenMap); } // trigger the mounts and the updates batches.forEach(fn => fn()); // update the children map this.childrenMap = newChildrenMap; this.nodes = futureNodes; return this; }, unmount(scope, parentScope) { unmountRedundant(this.childrenMap, parentScope); this.childrenMap = new Map(); this.nodes = []; return this; } }); /** * Patch the DOM while diffing * @param {TemplateChunk[]} redundant - redundant tepmplate chunks * @param {*} parentScope - scope of the parent template * @returns {Function} patch function used by domdiff */ function patch(redundant, parentScope) { return (item, info) => { if (info < 0) { const { template, context } = redundant.pop(); // notice that we pass null as last argument because // the root node and its children will be removed by domdiff template.unmount(context, parentScope, null); } return item; }; } /** * Unmount the remaining template instances * @param {Map} childrenMap - map containing the children template to unmount * @param {*} parentScope - scope of the parent template * @returns {TemplateChunk[]} collection containing the template chunks unmounted */ function unmountRedundant(childrenMap, parentScope) { return Array.from(childrenMap.values()).map((_ref) => { let { template, context } = _ref; return template.unmount(context, parentScope, true); }); } /** * Check whether a template must be filtered from a loop * @param {Function} condition - filter function * @param {Object} context - argument passed to the filter function * @returns {boolean} true if this item should be skipped */ function mustFilterItem(condition, context) { return condition ? Boolean(condition(context)) === false : false; } /** * Extend the scope of the looped template * @param {Object} scope - current template scope * @param {string} options.itemName - key to identify the looped item in the new context * @param {string} options.indexName - key to identify the index of the looped item * @param {number} options.index - current index * @param {*} options.item - collection item looped * @returns {Object} enhanced scope object */ function extendScope(scope, _ref2) { let { itemName, indexName, index, item } = _ref2; scope[itemName] = item; if (indexName) scope[indexName] = index; return scope; } /** * Loop the current template items * @param {Array} items - expression collection value * @param {*} scope - template scope * @param {*} parentScope - scope of the parent template * @param {EeachBinding} binding - each binding object instance * @returns {Object} data * @returns {Map} data.newChildrenMap - a Map containing the new children template structure * @returns {Array} data.batches - array containing the template lifecycle functions to trigger * @returns {Array} data.futureNodes - array containing the nodes we need to diff */ function createPatch(items, scope, parentScope, binding) { const { condition, template, childrenMap, itemName, getKey, indexName, root } = binding; const newChildrenMap = new Map(); const batches = []; const futureNodes = []; items.forEach((item, index) => { const context = extendScope(Object.create(scope), { itemName, indexName, index, item }); const key = getKey ? getKey(context) : index; const oldItem = childrenMap.get(key); if (mustFilterItem(condition, context)) { return; } const componentTemplate = oldItem ? oldItem.template : template.clone(); const el = oldItem ? componentTemplate.el : root.cloneNode(); if (!oldItem) { batches.push(() => componentTemplate.mount(el, context, parentScope)); } else { batches.push(() => componentTemplate.update(context, parentScope)); } // create the collection of nodes to update or to add futureNodes.push(el); // delete the old item from the children map childrenMap.delete(key); // update the children map newChildrenMap.set(key, { template: componentTemplate, context, index }); }); return { newChildrenMap, batches, futureNodes }; } function create(node, _ref3) { let { evaluate, condition, itemName, indexName, getKey, template } = _ref3; const placeholder = document.createTextNode(''); const parent = node.parentNode; const root = node.cloneNode(); const offset = Array.from(parent.childNodes).indexOf(node); parent.insertBefore(placeholder, node); parent.removeChild(node); return Object.assign({}, EachBinding, { childrenMap: new Map(), node, root, offset, condition, evaluate, template: template.createDOM(node), getKey, indexName, itemName, placeholder }); } /** * Binding responsible for the `if` directive */ const IfBinding = Object.seal({ // dynamic binding properties node: null, evaluate: null, placeholder: null, template: '', // API methods mount(scope, parentScope) { swap(this.placeholder, this.node); return this.update(scope, parentScope); }, update(scope, parentScope) { const value = !!this.evaluate(scope); const mustMount = !this.value && value; const mustUnmount = this.value && !value; switch (true) { case mustMount: swap(this.node, this.placeholder); if (this.template) { this.template = this.template.clone(); this.template.mount(this.node, scope, parentScope); } break; case mustUnmount: this.unmount(scope); swap(this.placeholder, this.node); break; default: if (value) this.template.update(scope, parentScope); } this.value = value; return this; }, unmount(scope, parentScope) { const { template } = this; if (template) { template.unmount(scope, parentScope); } return this; } }); function swap(inNode, outNode) { const parent = outNode.parentNode; parent.insertBefore(inNode, outNode); parent.removeChild(outNode); } function create$1(node, _ref4) { let { evaluate, template } = _ref4; return Object.assign({}, IfBinding, { node, evaluate, placeholder: document.createTextNode(''), template: template.createDOM(node) }); } const ATTRIBUTE = 0; const EVENT = 1; const TEXT = 2; const VALUE = 3; var expressionTypes = { ATTRIBUTE, EVENT, TEXT, VALUE }; const REMOVE_ATTRIBUTE = 'removeAttribute'; const SET_ATTIBUTE = 'setAttribute'; /** * Add all the attributes provided * @param {HTMLElement} node - target node * @param {Object} attributes - object containing the attributes names and values * @returns {undefined} sorry it's a void function :( */ function setAllAttributes(node, attributes) { Object.entries(attributes).forEach((_ref5) => { let [name, value] = _ref5; return attributeExpression(node, { name }, value); }); } /** * Remove all the attributes provided * @param {HTMLElement} node - target node * @param {Object} attributes - object containing all the attribute names * @returns {undefined} sorry it's a void function :( */ function removeAllAttributes(node, attributes) { Object.keys(attributes).forEach(attribute => node.removeAttribute(attribute)); } /** * This methods handles the DOM attributes updates * @param {HTMLElement} node - target node * @param {Object} expression - expression object * @param {string} expression.name - attribute name * @param {*} value - new expression value * @param {*} oldValue - the old expression cached value * @returns {undefined} */ function attributeExpression(node, _ref6, value, oldValue) { let { name } = _ref6; // is it a spread operator? {...attributes} if (!name) { // is the value still truthy? if (value) { setAllAttributes(node, value); } else if (oldValue) { // otherwise remove all the old attributes removeAllAttributes(node, oldValue); } return; } // handle boolean attributes if (typeof value === 'boolean') { node[name] = value; } node[getMethod(value)](name, normalizeValue(name, value)); } /** * Get the attribute modifier method * @param {*} value - if truthy we return `setAttribute` othewise `removeAttribute` * @returns {string} the node attribute modifier method name */ function getMethod(value) { return value && typeof value !== 'object' ? SET_ATTIBUTE : REMOVE_ATTRIBUTE; } /** * Get the value as string * @param {string} name - attribute name * @param {*} value - user input value * @returns {string} input value as string */ function normalizeValue(name, value) { // be sure that expressions like selected={ true } will be always rendered as selected='selected' if (value === true) return name; return value; } /** * Set a new event listener * @param {HTMLElement} node - target node * @param {Object} expression - expression object * @param {string} expression.name - event name * @param {*} value - new expression value * @returns {undefined} */ function eventExpression(node, _ref7, value) { let { name } = _ref7; node[name] = value; } /** * This methods handles a simple text expression update * @param {HTMLElement} node - target node * @param {Object} expression - expression object * @param {number} expression.childNodeIndex - index to find the text node to update * @param {*} value - new expression value * @returns {undefined} */ function textExpression(node, _ref8, value) { let { childNodeIndex } = _ref8; const target = node.childNodes[childNodeIndex]; const val = normalizeValue$1(value); // replace the target if it's a placeholder comment if (target.nodeType === Node.COMMENT_NODE) { const textNode = document.createTextNode(val); node.replaceChild(textNode, target); } else { target.data = normalizeValue$1(val); } } /** * Normalize the user value in order to render a empty string in case of falsy values * @param {*} value - user input value * @returns {string} hopefully a string */ function normalizeValue$1(value) { return value != null ? value : ''; } /** * This methods handles the input fileds value updates * @param {HTMLElement} node - target node * @param {Object} expression - expression object * @param {*} value - new expression value * @returns {undefined} */ function valueExpression(node, expression, value) { node.value = value; } var expressions = { [ATTRIBUTE]: attributeExpression, [EVENT]: eventExpression, [TEXT]: textExpression, [VALUE]: valueExpression }; const Expression = Object.seal({ // Static props node: null, value: null, // API methods /** * Mount the expression evaluating its initial value * @param {*} scope - argument passed to the expression to evaluate its current values * @returns {Expression} self */ mount(scope) { // hopefully a pure function this.value = this.evaluate(scope); // IO() DOM updates apply(this, this.value); return this; }, /** * Update the expression if its value changed * @param {*} scope - argument passed to the expression to evaluate its current values * @returns {Expression} self */ update(scope) { // pure function const value = this.evaluate(scope); if (this.value !== value) { // IO() DOM updates apply(this, value); this.value = value; } return this; }, /** * Expression teardown method * @returns {Expression} self */ unmount() { return this; } }); /** * IO() function to handle the DOM updates * @param {Expression} expression - expression object * @param {*} value - current expression value * @returns {undefined} */ function apply(expression, value) { return expressions[expression.type](expression.node, expression, value, expression.value); } function create$2(node, data) { return Object.assign({}, Expression, data, { node }); } /** * Create a flat object having as keys a list of methods that if dispatched will propagate * on the whole collection * @param {Array} collection - collection to iterate * @param {Array<string>} methods - methods to execute on each item of the collection * @param {*} context - context returned by the new methods created * @returns {Object} a new object to simplify the the nested methods dispatching */ function flattenCollectionMethods(collection, methods, context) { return methods.reduce((acc, method) => { return Object.assign({}, acc, { [method]: scope => { return collection.map(item => item[method](scope)) && context; } }); }, {}); } function create$3(node, _ref9) { let { expressions } = _ref9; return Object.assign({}, flattenCollectionMethods(expressions.map(expression => create$2(node, expression)), ['mount', 'update', 'unmount'])); } const SlotBinding = Object.seal({ // dynamic binding properties node: null, name: null, template: null, // API methods mount(scope, parentScope) { const templateData = scope.slots ? scope.slots.find((_ref10) => { let { id } = _ref10; return id === this.name; }) : false; const { parentNode } = this.node; this.template = templateData && create$6(templateData.html, templateData.bindings).createDOM(parentNode); if (this.template) { this.template.mount(this.node, parentScope); moveSlotInnerContent(this.node); } parentNode.removeChild(this.node); return this; }, update(scope, parentScope) { if (this.template && parentScope) { this.template.update(parentScope); } return this; }, unmount(scope, parentScope) { if (this.template) { this.template.unmount(parentScope); } return this; } }); /** * Move the inner content of the slots outside of them * @param {HTMLNode} slot - slot node * @returns {undefined} it's a void function */ function moveSlotInnerContent(slot) { if (slot.firstChild) { slot.parentNode.insertBefore(slot.firstChild, slot); moveSlotInnerContent(slot); } } /** * Create a single slot binding * @param {HTMLElement} node - slot node * @param {string} options.name - slot id * @returns {Object} Slot binding object */ function createSlot(node, _ref11) { let { name } = _ref11; return Object.assign({}, SlotBinding, { node, name }); } /** * Create a new tag object if it was registered before, otherwise fallback to the simple * template chunk * @param {Function} component - component factory function * @param {Array<Object>} slots - array containing the slots markup * @param {Array} attributes - dynamic attributes that will be received by the tag element * @returns {TagImplementation|TemplateChunk} a tag implementation or a template chunk as fallback */ function getTag(component, slots, attributes) { if (slots === void 0) { slots = []; } if (attributes === void 0) { attributes = []; } // if this tag was registered before we will return its implementation if (component) { return component({ slots, attributes }); } // otherwise we return a template chunk return create$6(slotsToMarkup(slots), [...slotBindings(slots), { // the attributes should be registered as binding // if we fallback to a normal template chunk expressions: attributes.map(attr => { return Object.assign({ type: ATTRIBUTE }, attr); }) }]); } /** * Merge all the slots bindings into a single array * @param {Array<Object>} slots - slots collection * @returns {Array<Bindings>} flatten bindings array */ function slotBindings(slots) { return slots.reduce((acc, _ref12) => { let { bindings } = _ref12; return acc.concat(bindings); }, []); } /** * Merge all the slots together in a single markup string * @param {Array<Object>} slots - slots collection * @returns {string} markup of all the slots in a single string */ function slotsToMarkup(slots) { return slots.reduce((acc, slot) => { return acc + slot.html; }, ''); } const TagBinding = Object.seal({ // dynamic binding properties node: null, evaluate: null, name: null, slots: null, tag: null, attributes: null, getComponent: null, mount(scope) { return this.update(scope); }, update(scope) { const name = this.evaluate(scope); // simple update if (name === this.name) { this.tag.update(scope); } else { // unmount the old tag if it exists this.unmount(); // mount the new tag this.name = name; this.tag = getTag(this.getComponent(name), this.slots, this.attributes); this.tag.mount(this.node, scope); } return this; }, unmount() { if (this.tag) { // keep the root tag this.tag.unmount(true); } return this; } }); function create$4(node, _ref13) { let { evaluate, getComponent, slots, attributes } = _ref13; return Object.assign({}, TagBinding, { node, evaluate, slots, attributes, getComponent }); } var bindings = { [IF]: create$1, [SIMPLE]: create$3, [EACH]: create, [TAG]: create$4, [SLOT]: createSlot }; /** * Bind a new expression object to a DOM node * @param {HTMLElement} root - DOM node where to bind the expression * @param {Object} binding - binding data * @returns {Expression} Expression object */ function create$5(root, binding) { const { selector, type, redundantAttribute, expressions } = binding; // find the node to apply the bindings const node = selector ? root.querySelector(selector) : root; // remove eventually additional attributes created only to select this node if (redundantAttribute) node.removeAttribute(redundantAttribute); // init the binding return (bindings[type] || bindings[SIMPLE])(node, Object.assign({}, binding, { expressions: expressions || [] })); } /** * Check if an element is part of an svg * @param {HTMLElement} el - element to check * @returns {boolean} true if we are in an svg context */ function isSvg(el) { const owner = el.ownerSVGElement; return !!owner || owner === null; } // in this case a simple innerHTML is enough function createHTMLTree(html) { const template = document.createElement('template'); template.innerHTML = html; return template.content; } // for svg nodes we need a bit more work function creteSVGTree(html, container) { // create the SVGNode const svgNode = container.ownerDocument.importNode(new window.DOMParser().parseFromString(`<svg xmlns="http://www.w3.org/2000/svg">${html}</svg>`, 'application/xml').documentElement, true); return svgNode; } /** * Create the DOM that will be injected * @param {Object} root - DOM node to find out the context where the fragment will be created * @param {string} html - DOM to create as string * @returns {HTMLDocumentFragment|HTMLElement} a new html fragment */ function createDOMTree(root, html) { if (isSvg(root)) return creteSVGTree(html, root); return createHTMLTree(html); } /** * Move all the child nodes from a source tag to another * @param {HTMLElement} source - source node * @param {HTMLElement} target - target node * @returns {undefined} it's a void method ¯\_(ツ)_/¯ */ // Ignore this helper because it's needed only for svg tags /* istanbul ignore next */ function moveChildren(source, target) { if (source.firstChild) { target.appendChild(source.firstChild); moveChildren(source, target); } } const SVG_RE = /svg/i; /** * Inject the DOM tree into a target node * @param {HTMLElement} el - target element * @param {HTMLFragment|SVGElement} dom - dom tree to inject * @returns {undefined} */ function injectDOM(el, dom) { if (SVG_RE.test(el.tagName)) { moveChildren(dom, el); } else { el.appendChild(dom); } } /** * Create the Template DOM skeleton * @param {HTMLElement} el - root node where the DOM will be injected * @param {string} html - markup that will be injected into the root node * @returns {HTMLFragment} fragment that will be injected into the root node */ function createTemplateDOM(el, html) { return html && (typeof html === 'string' ? createDOMTree(el, html) : html); } /** * Template Chunk model * @type {Object} */ const TemplateChunk = Object.freeze({ // Static props bindings: null, bindingsData: null, html: null, dom: null, el: null, /** * Create the template DOM structure that will be cloned on each mount * @param {HTMLElement} el - the root node * @returns {TemplateChunk} self */ createDOM(el) { // make sure that the DOM gets created before cloning the template this.dom = this.dom || createTemplateDOM(el, this.html); return this; }, // API methods /** * Attach the template to a DOM node * @param {HTMLElement} el - target DOM node * @param {*} scope - template data * @param {*} parentScope - scope of the parent template tag * @returns {TemplateChunk} self */ mount(el, scope, parentScope) { if (!el) throw new Error('Please provide DOM node to mount properly your template'); if (this.el) this.unmount(scope); this.el = el; // create the DOM if it wasn't created before this.createDOM(el); if (this.dom) injectDOM(el, this.dom.cloneNode(true)); // create the bindings this.bindings = this.bindingsData.map(binding => create$5(this.el, binding)); this.bindings.forEach(b => b.mount(scope, parentScope)); return this; }, /** * Update the template with fresh data * @param {*} scope - template data * @param {*} parentScope - scope of the parent template tag * @returns {TemplateChunk} self */ update(scope, parentScope) { this.bindings.forEach(b => b.update(scope, parentScope)); return this; }, /** * Remove the template from the node where it was initially mounted * @param {*} scope - template data * @param {*} parentScope - scope of the parent template tag * @param {boolean} mustRemoveRoot - if true remove the root element * @returns {TemplateChunk} self */ unmount(scope, parentScope, mustRemoveRoot) { if (this.el) { this.bindings.forEach(b => b.unmount(scope, parentScope)); if (mustRemoveRoot && this.el.parentNode) { this.el.parentNode.removeChild(this.el); } else if (mustRemoveRoot !== null) { cleanNode(this.el); } this.el = null; } return this; }, /** * Clone the template chunk * @returns {TemplateChunk} a clone of this object resetting the this.el property */ clone() { return Object.assign({}, this, { el: null }); } }); /** * Create a template chunk wiring also the bindings * @param {string|HTMLElement} html - template string * @param {Array} bindings - bindings collection * @returns {TemplateChunk} a new TemplateChunk copy */ function create$6(html, bindings) { if (bindings === void 0) { bindings = []; } return Object.assign({}, TemplateChunk, { html, bindingsData: bindings }); } /** * Quick type checking * @param {*} element - anything * @param {string} type - type definition * @returns {boolean} true if the type corresponds */ function checkType(element, type) { return typeof element === type; } /** * Check that will be passed if its argument is a function * @param {*} value - value to check * @returns {boolean} - true if the value is a function */ function isFunction(value) { return checkType(value, 'function'); } /* eslint-disable fp/no-mutating-methods */ /** * Throw an error * @param {string} error - error message * @returns {undefined} it's a IO void function */ function panic(error) { throw new Error(error); } /** * Call the first argument received only if it's a function otherwise return it as it is * @param {*} source - anything * @returns {*} anything */ function callOrAssign(source) { return isFunction(source) ? source.prototype && source.prototype.constructor ? new source() : source() : source; } /** * Convert a string from camel case to dash-case * @param {string} string - probably a component tag name * @returns {string} component name normalized */ function camelToDashCase(string) { return string.replace(/([a-z])([A-Z])/g, '$1-$2').toLowerCase(); } /** * Convert a string containing dashes to camel case * @param {string} string - input string * @returns {string} my-string -> myString */ function dashToCamelCase(string) { return string.replace(/-(\w)/g, (_, c) => c.toUpperCase()); } /** * Define default properties if they don't exist on the source object * @param {Object} source - object that will receive the default properties * @param {Object} defaults - object containing additional optional keys * @returns {Object} the original object received enhanced */ function defineDefaults(source, defaults) { Object.entries(defaults).forEach((_ref) => { let [key, value] = _ref; if (!source[key]) source[key] = value; }); return source; } // doese simply nothing function noop() { return this; } /** * Autobind the methods of a source object to itself * @param {Object} source - probably a riot tag instance * @param {Array<string>} methods - list of the methods to autobind * @returns {Object} the original object received */ function autobindMethods(source, methods) { methods.forEach(method => { source[method] = source[method].bind(source); }); return source; } /** * Helper function to set an immutable property * @param {Object} source - object where the new property will be set * @param {string} key - object key where the new property will be stored * @param {*} value - value of the new property * @param {Object} options - set the propery overriding the default options * @returns {Object} - the original object modified */ function defineProperty(source, key, value, options) { if (options === void 0) { options = {}; } Object.defineProperty(source, key, Object.assign({ value, enumerable: false, writable: false, configurable: true }, options)); return source; } /** * Define multiple properties on a target object * @param {Object} source - object where the new properties will be set * @param {Object} properties - object containing as key pair the key + value properties * @param {Object} options - set the propery overriding the default options * @returns {Object} the original object modified */ function defineProperties(source, properties, options) { Object.entries(properties).forEach((_ref2) => { let [key, value] = _ref2; defineProperty(source, key, value, options); }); return source; } /** * Evaluate a list of attribute expressions * @param {Array} attributes - attribute expressions generated by the riot compiler * @returns {Object} key value pairs with the result of the computation */ function evaluateAttributeExpressions(attributes) { return attributes.reduce((acc, attribute) => { const { value, type } = attribute; switch (true) { // spread attribute case !attribute.name && type === expressionTypes.ATTRIBUTE: return Object.assign({}, acc, value); // value attribute case type === expressionTypes.VALUE: acc[VALUE_ATTRIBUTE] = attribute.value; break; // normal attributes default: acc[dashToCamelCase(attribute.name)] = attribute.value; } return acc; }, {}); } /** * Converts any DOM node/s to a loopable array * @param { HTMLElement|NodeList } els - single html element or a node list * @returns { Array } always a loopable object */ function domToArray(els) { // can this object be already looped? if (!Array.isArray(els)) { // is it a node list? if (/^\[object (HTMLCollection|NodeList|Object)\]$/.test(Object.prototype.toString.call(els)) && typeof els.length === 'number') return Array.from(els);else // if it's a single node // it will be returned as "array" with one single entry return [els]; } // this object could be looped out of the box return els; } /** * Normalize the return values, in case of a single value we avoid to return an array * @param { Array } values - list of values we want to return * @returns { Array|string|boolean } either the whole list of values or the single one found * @private */ const normalize = values => values.length === 1 ? values[0] : values; /** * Parse all the nodes received to get/remove/check their attributes * @param { HTMLElement|NodeList|Array } els - DOM node/s to parse * @param { string|Array } name - name or list of attributes * @param { string } method - method that will be used to parse the attributes * @returns { Array|string } result of the parsing in a list or a single value * @private */ function parseNodes(els, name, method) { const names = typeof name === 'string' ? [name] : name; return normalize(domToArray(els).map(el => { return normalize(names.map(n => el[method](n))); })); } /** * Set any attribute on a single or a list of DOM nodes * @param { HTMLElement|NodeList|Array } els - DOM node/s to parse * @param { string|Object } name - either the name of the attribute to set * or a list of properties as object key - value * @param { string } value - the new value of the attribute (optional) * @returns { HTMLElement|NodeList|Array } the original array of elements passed to this function * * @example * * import { set } from 'bianco.attr' * * const img = document.createElement('img') * * set(img, 'width', 100) * * // or also * set(img, { * width: 300, * height: 300 * }) * */ function set(els, name, value) { const attrs = typeof name === 'object' ? name : { [name]: value }; const props = Object.keys(attrs); domToArray(els).forEach(el => { props.forEach(prop => el.setAttribute(prop, attrs[prop])); }); return els; } /** * Get any attribute from a single or a list of DOM nodes * @param { HTMLElement|NodeList|Array } els - DOM node/s to parse * @param { string|Array } name - name or list of attributes to get * @returns { Array|string } list of the attributes found * * @example * * import { get } from 'bianco.attr' * * const img = document.createElement('img') * * get(img, 'width') // => '200' * * // or also * get(img, ['width', 'height']) // => ['200', '300'] * * // or also * get([img1, img2], ['width', 'height']) // => [['200', '300'], ['500', '200']] */ function get(els, name) { return parseNodes(els, name, 'getAttribute'); } /** * Get all the element attributes as object * @param {HTMLElement} element - DOM node we want to parse * @returns {Object} all the attributes found as a key value pairs */ function DOMattributesToObject(element) { return Array.from(element.attributes).reduce((acc, attribute) => { acc[dashToCamelCase(attribute.name)] = attribute.value; return acc; }, {}); } /** * Get the tag name of any DOM node * @param {HTMLElement} element - DOM node we want to inspect * @returns {string} name to identify this dom node in riot */ function getName(element) { return get(element, IS_DIRECTIVE) || element.tagName.toLowerCase(); } /** * Simple helper to find DOM nodes returning them as array like loopable object * @param { string|DOMNodeList } selector - either the query or the DOM nodes to arraify * @param { HTMLElement } ctx - context defining where the query will search for the DOM nodes * @returns { Array } DOM nodes found as array */ function $(selector, ctx) { return domToArray(typeof selector === 'string' ? (ctx || document).querySelectorAll(selector) : selector); } const CSS_BY_NAME = new Map(); const STYLE_NODE_SELECTOR = 'style[riot]'; // memoized curried function const getStyleNode = (style => { return () => { // lazy evaluation: // if this function was already called before // we return its cached result if (style) return style; // create a new style element or use an existing one // and cache it internally style = $(STYLE_NODE_SELECTOR)[0] || document.createElement('style'); set(style, 'type', 'text/css'); /* istanbul ignore next */ if (!style.parentNode) document.head.appendChild(style); return style; }; })(); /** * Object that will be used to inject and manage the css of every tag instance */ var cssManager = { CSS_BY_NAME, /** * Save a tag style to be later injected into DOM * @param { string } name - if it's passed we will map the css to a tagname * @param { string } css - css string * @returns {Object} self */ add(name, css) { if (!CSS_BY_NAME.has(name)) { CSS_BY_NAME.set(name, css); this.inject(); } return this; }, /** * Inject all previously saved tag styles into DOM * innerHTML seems slow: http://jsperf.com/riot-insert-style * @returns {Object} self */ inject() { getStyleNode().innerHTML = [...CSS_BY_NAME.values()].join('\n'); return this; }, /** * Remove a tag style from the DOM * @param {string} name a registered tagname * @returns {Object} self */ remove(name) { if (CSS_BY_NAME.has(name)) { CSS_BY_NAME.delete(name); this.inject(); } return this; } }; /** * Function to curry any javascript method * @param {Function} fn - the target function we want to curry * @param {...[args]} acc - initial arguments * @returns {Function|*} it will return a function until the target function * will receive all of its arguments */ function curry(fn) { for (var _len = arguments.length, acc = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) { acc[_key - 1] = arguments[_key]; } return function () { for (var _len2 = arguments.length, args = new Array(_len2), _key2 = 0; _key2 < _len2; _key2++) { args[_key2] = arguments[_key2]; } args = [...acc, ...args]; return args.length < fn.length ? curry(fn, ...args) : fn(...args); }; } const COMPONENT_CORE_HELPERS = Object.freeze({ // component helpers $(selector) { return $(selector, this.root)[0]; }, $$(selector) { return $(selector, this.root); } }); const COMPONENT_LIFECYCLE_METHODS = Object.freeze({ shouldUpdate: noop, onBeforeMount: noop, onMounted: noop, onBeforeUpdate: noop, onUpdated: noop, onBeforeUnmount: noop, onUnmounted: noop }); const MOCKED_TEMPLATE_INTERFACE = { update: noop, mount: noop, unmount: noop, clone: noop, createDOM: noop /** * Factory function to create the component templates only once * @param {Function} template - component template creation function * @param {Object} components - object containing the nested components * @returns {TemplateChunk} template chunk object */ }; function componentTemplateFactory(template, components) { return template(create$6, expressionTypes, bindingTypes, name => { return components[name] || COMPONENTS_IMPLEMENTATION_MAP.get(name); }); } /** * Create the component interface needed for the @riotjs/dom-bindings tag bindings * @param {string} options.css - component css * @param {Function} options.template - functon that will return the dom-bindings template function * @param {Object} options.exports - component interface * @param {string} options.name - component name * @returns {Object} component like interface */ function createComponent(_ref) { let { css, template, exports, name } = _ref; const templateFn = template ? componentTemplateFactory(template, exports ? createSubcomponents(exports.components) : {}) : MOCKED_TEMPLATE_INTERFACE; return (_ref2) => { let { slots, attributes, props } = _ref2; const componentAPI = callOrAssign(exports) || {}; const component = defineComponent({ css, template: templateFn, componentAPI, name })({ slots, attributes, props }); // notice that for the components create via tag binding // we need to invert the mount (state/parentScope) arguments // the template bindings will only forward the parentScope updates // and never deal with the component state return { mount(element, parentScope, state) { return component.mount(element, state, parentScope); }, update(parentScope, state) { return component.update(state, parentScope); }, unmount(preserveRoot) { return component.unmount(preserveRoot); } }; }; } /** * Component definition function * @param {Object} implementation - the componen implementation will be generated via compiler * @param {Object} component - the component initial properties * @returns {Object} a new component implementation object */ function defineComponent(_ref3) { let { css, template, componentAPI, name } = _ref3; // add the component css into the DOM if (css && name) cssManager.add(name, css); return curry(enhanceComponentAPI)(defineProperties( // set the component defaults without overriding the original component API defineDefaults(componentAPI, Object.assign({}, COMPONENT_LIFECYCLE_METHODS, { state: {} })), Object.assign({ // defined during the component creation slots: null, root: null }, COMPONENT_CORE_HELPERS, { name, css, template }))); } /** * Evaluate the component properties either from its real attributes or from its attribute expressions * @param {HTMLElement} element - component root * @param {Array} attributeExpressions - attribute values generated via createAttributeBindings * @returns {Object} attributes key value pairs */ function evaluateProps(element, attributeExpressions) { if (attributeExpressions === void 0) { attributeExpressions = []; } return Object.assign({}, DOMattributesToObject(element), evaluateAttributeExpressions(attributeExpressions)); } /** * Create the bindings to update the component attributes * @param {HTMLElement} node - node where we will bind the expressions * @param {Array} attributes - list of attribute bindings * @returns {TemplateChunk} - template bindings object */ function createAttributeBindings(node, attributes) { if (attributes === void 0) { attributes = []; } const expressions = attributes.map(a => create$2(node, a)); const binding = {}; const updateValues = method => scope => { expressions.forEach(e => e[method](scope)); return binding; }; return Object.assign(binding, { expressions, mount: updateValues('mount'), update: updateValues('update'), unmount: updateValues('unmount') }); } /** * Create the subcomponents that can be included inside a tag in runtime * @param {Object} components - components imported in runtime * @returns {Object} all the components transformed into Riot.Component factory functions */ function createSubcomponents(components) { if (components === void 0) { components = {}; } return Object.entries(callOrAssign(components)).reduce((acc, _ref4) => { let [key, value] = _ref4; acc[camelToDashCase(key)] = createComponent(value); return acc; }, {}); } /** * Run the component instance through all the plugins set by the user * @param {Object} component - component instance * @returns {Object} the component enhanced by the plugins */ function runPlugins(component) { return [...PLUGINS_SET].reduce((c, fn) => fn(c) || c, component); } /** * Compute the component current state merging it with its previous state * @param {Object} oldState - previous state object * @param {Object} newState - new state givent to the `update` call * @returns {Object} new object state */ function computeState(oldState, newState) { return Object.assign({}, oldState, callOrAssign(newState)); } /** * Add eventually the "is" attribute to link this DOM node to its css * @param {HTMLElement} element - target root node * @param {string} name - name of the component mounted * @returns {undefined} it's a void function */ function addCssHook(element, name) { if (getName(element) !== name) { set(element, 'is', name); } } /** * Component creation factory function that will enhance the user provided API * @param {Object} component - a component implementation previously defined * @param {Array} options.slots - component slots generated via riot compiler * @param {Array} options.attributes - attribute expressions generated via riot compiler * @returns {Riot.Component} a riot component instance */ function enhanceComponentAPI(component, _ref5) { let { slots, attributes, props } = _ref5; const initialProps = callOrAssign(props); return autobindMethods(runPlugins(defineProperties(Object.create(component), { mount(element, state, parentScope) { if (state === void 0) { state = {}; } this[ATTRIBUTES_KEY_SYMBOL] = createAttributeBindings(element, attributes).mount(parentScope); this.props = Object.freeze(Object.assign({}, initialProps, evaluateProps(element, this[ATTRIBUTES_KEY_SYMBOL].expressions))); this.state = computeState(this.state, state); this[TEMPLATE_KEY_SYMBOL] = this.template.createDOM(element).clone(); // link this object to the DOM node element[DOM_COMPONENT_INSTANCE_PROPERTY] = this; // add eventually the 'is' attribute component.name && addCssHook(element, component.name); // define the root element defineProperty(this, 'root', element); // define the slots array defineProperty(this, 'slots', slots); // before mount lifecycle event this.onBeforeMount(this.props, this.state); // mount the template this[TEMPLATE_KEY_SYMBOL].mount(element, this, parentScope); this.onMounted(this.props, this.state); return this; }, update(state, parentScope) { if (state === void 0) { state = {}; } if (parentScope) { this[ATTRIBUTES_KEY_SYMBOL].update(parentScope); } const newProps = evaluateProps(this.root, this[ATTRIBUTES_KEY_SYMBOL].expressions); if (this.shouldUpdate(newProps, this.props) === false) return; this.props = Object.freeze(Object.assign({}, initialProps, newProps)); this.state = computeState(this.state, state); this.onBeforeUpdate(this.props, this.state); this[TEMPLATE_KEY_SYMBOL].update(this, parentScope); this.onUpdated(this.props, this.state); return this; }, unmount(preserveRoot) { this.onBeforeUnmount(this.props, this.state); this[ATTRIBUTES_KEY_SYMBOL].unmount(); this[TEMPLATE_KEY_SYMBOL].unmount(this, {}, !preserveRoot); this.onUnmounted(this.props, this.state); return this; } })), Object.keys(component).filter(prop => isFunction(component[prop]))); } /** * Component initialization function starting from a DOM node * @param {HTMLElement} element - element to upgrade * @param {Object} initialProps - initial component properties * @param {string} componentName - component id * @returns {Object} a new component instance bound to a DOM node */ function mountComponent(element, initialProps, componentName) { const name = componentName || getName(element); if (!COMPONENTS_IMPLEMENTATION_MAP.has(name)) panic(`The component named "${name}" was never registered`); const component = COMPONENTS_IMPLEMENTATION_MAP.get(name)({ props: initialProps }); return component.mount(element); } /** * Similar to compose but performs from left-to-right function composition.<br/> * {@link https://30secondsofcode.org/function#composeright see also} * @param {...[function]} fns) - list of unary function * @returns {*} result of the computation */ /** * Performs right-to-left function composition.<br/> * Use Array.prototype.reduce() to perform right-to-left function composition.<br/> * The last (rightmost) function can accept one or more arguments; the remaining functions must be unary.<br/> * {@link https://30secondsofcode.org/function#compose original source code} * @param {...[function]} fns) - list of unary function * @returns {*} result of the computation */ function compose() { for (var _len2 = arguments.length, fns = new Array(_len2), _key2 = 0; _key2 < _len2; _key2++) { fns[_key2] = arguments[_key2]; } return fns.reduce((f, g) => function () { return f(g(...arguments)); }); } const { DOM_COMPONENT_INSTANCE_PROPERTY: DOM_COMPONENT_INSTANCE_PROPERTY$1, COMPONENTS_IMPLEMENTATION_MAP: COMPONENTS_IMPLEMENTATION_MAP$1, PLUGINS_SET: PLUGINS_SET$1 } = globals; /** * Riot public api */ /** * Register a custom tag by name * @param {string} name - component name * @param {Object} implementation - tag implementation * @returns {Map} map containing all the components implementations */ function register(name, _ref) { let { css, template, exports } = _ref; if (COMPONENTS_IMPLEMENTATION_MAP$1.has(name)) panic(`The component "${name}" was already registered`); COMPONENTS_IMPLEMENTATION_MAP$1.set(name, createComponent({ name, css, template, exports })); return COMPONENTS_IMPLEMENTATION_MAP$1; } /** * Unregister a riot web component * @param {string} name - component name * @returns {Map} map containing all the components implementations */ function unregister(name) { if (!COMPONENTS_IMPLEMENTATION_MAP$1.has(name)) panic(`The component "${name}" was never registered`); COMPONENTS_IMPLEMENTATION_MAP$1.delete(name); cssManager.remove(name); return COMPONENTS_IMPLEMENTATION_MAP$1; } /** * Mounting function that will work only for the components that were globally registered * @param {string|HTMLElement} selector - query for the selection or a DOM element * @param {Object} initialProps - the initial component properties * @param {string} name - optional component name * @returns {Array} list of nodes upgraded */ function mount(selector, initialProps, name) { return $(selector).map(element => mountComponent(element, initialProps, name)); } /** * Sweet unmounting helper function for the DOM node mounted manually by the user * @param {string|HTMLElement} selector - query for the selection or a DOM element * @returns {Array} list of nodes unmounted */ function unmount(selector) { return $(selector).map(element => { if (element[DOM_COMPONENT_INSTANCE_PROPERTY$1]) { element[DOM_COMPONENT_INSTANCE_PROPERTY$1].unmount(); } return element; }); } /** * Define a riot plugin * @param {Function} plugin - function that will receive all the components created * @returns {Set} the set containing all the plugins installed */ function install(plugin) { if (!isFunction(plugin)) panic('Plugins must be of type function'); if (PLUGINS_SET$1.has(plugin)) panic('This plugin was already install'); PLUGINS_SET$1.add(plugin); return PLUGINS_SET$1; } /** * Uninstall a riot plugin * @param {Function} plugin - plugin previously installed * @returns {Set} the set containing all the plugins installed */ function uninstall(plugin) { if (!PLUGINS_SET$1.has(plugin)) panic('This plugin was never installed'); PLUGINS_SET$1.delete(plugin); return PLUGINS_SET$1; } /** * Helpter method to create component without relying on the registered ones * @param {Object} implementation - component implementation * @returns {Function} function that will allow you to mount a riot component on a DOM node */ function component(implementation) { return (el, props) => compose(c => c.mount(el), c => c({ props }), createComponent)(implementation); } /** @type {string} current riot version */ const version = 'v4.0.8'; // expose some internal stuff that might be used from external tools const __ = { cssManager, defineComponent, globals }; exports.__ = __; exports.component = component; exports.install = install; exports.mount = mount; exports.register = register; exports.uninstall = uninstall; exports.unmount = unmount; exports.unregister = unregister; exports.version = version; Object.defineProperty(exports, '__esModule', { value: true }); }));
{'content_hash': '5f5ae4d18accf20b049c6c83a20ab41d', 'timestamp': '', 'source': 'github', 'line_count': 2237, 'max_line_length': 321, 'avg_line_length': 29.485918641037102, 'alnum_prop': 0.61926925409339, 'repo_name': 'sufuf3/cdnjs', 'id': '8853ee706df8c0a14012970c86dfb0ff55548b69', 'size': '65964', 'binary': False, 'copies': '4', 'ref': 'refs/heads/master', 'path': 'ajax/libs/riot/4.0.8/riot.js', 'mode': '33188', 'license': 'mit', 'language': []}
.class final Ljava/util/concurrent/ConcurrentHashMap$EntrySetView; .super Ljava/util/concurrent/ConcurrentHashMap$CollectionView; .source "ConcurrentHashMap.java" # interfaces .implements Ljava/util/Set; .implements Ljava/io/Serializable; # annotations .annotation system Ldalvik/annotation/EnclosingClass; value = Ljava/util/concurrent/ConcurrentHashMap; .end annotation .annotation system Ldalvik/annotation/InnerClass; accessFlags = 0x18 name = "EntrySetView" .end annotation .annotation system Ldalvik/annotation/Signature; value = { "<K:", "Ljava/lang/Object;", "V:", "Ljava/lang/Object;", ">", "Ljava/util/concurrent/ConcurrentHashMap$CollectionView", "<TK;TV;", "Ljava/util/Map$Entry", "<TK;TV;>;>;", "Ljava/util/Set", "<", "Ljava/util/Map$Entry", "<TK;TV;>;>;", "Ljava/io/Serializable;" } .end annotation # static fields .field private static final serialVersionUID:J = 0x1f364c905893293dL # direct methods .method constructor <init>(Ljava/util/concurrent/ConcurrentHashMap;)V .locals 0 .annotation system Ldalvik/annotation/Signature; value = { "(", "Ljava/util/concurrent/ConcurrentHashMap", "<TK;TV;>;)V" } .end annotation .prologue .line 2957 .local p0, "this":Ljava/util/concurrent/ConcurrentHashMap$EntrySetView;, "Ljava/util/concurrent/ConcurrentHashMap$EntrySetView<TK;TV;>;" .local p1, "map":Ljava/util/concurrent/ConcurrentHashMap;, "Ljava/util/concurrent/ConcurrentHashMap<TK;TV;>;" invoke-direct {p0, p1}, Ljava/util/concurrent/ConcurrentHashMap$CollectionView;-><init>(Ljava/util/concurrent/ConcurrentHashMap;)V return-void .end method # virtual methods .method public bridge synthetic add(Ljava/lang/Object;)Z .locals 1 .prologue .line 2954 .local p0, "this":Ljava/util/concurrent/ConcurrentHashMap$EntrySetView;, "Ljava/util/concurrent/ConcurrentHashMap$EntrySetView<TK;TV;>;" check-cast p1, Ljava/util/Map$Entry; invoke-virtual {p0, p1}, Ljava/util/concurrent/ConcurrentHashMap$EntrySetView;->add(Ljava/util/Map$Entry;)Z move-result v0 return v0 .end method .method public add(Ljava/util/Map$Entry;)Z .locals 4 .annotation system Ldalvik/annotation/Signature; value = { "(", "Ljava/util/Map$Entry", "<TK;TV;>;)Z" } .end annotation .prologue .local p0, "this":Ljava/util/concurrent/ConcurrentHashMap$EntrySetView;, "Ljava/util/concurrent/ConcurrentHashMap$EntrySetView<TK;TV;>;" .local p1, "e":Ljava/util/Map$Entry;, "Ljava/util/Map$Entry<TK;TV;>;" const/4 v0, 0x0 .line 2987 iget-object v1, p0, Ljava/util/concurrent/ConcurrentHashMap$EntrySetView;->map:Ljava/util/concurrent/ConcurrentHashMap; invoke-interface {p1}, Ljava/util/Map$Entry;->getKey()Ljava/lang/Object; move-result-object v2 invoke-interface {p1}, Ljava/util/Map$Entry;->getValue()Ljava/lang/Object; move-result-object v3 invoke-virtual {v1, v2, v3, v0}, Ljava/util/concurrent/ConcurrentHashMap;->putVal(Ljava/lang/Object;Ljava/lang/Object;Z)Ljava/lang/Object; move-result-object v1 if-nez v1, :cond_0 const/4 v0, 0x1 :cond_0 return v0 .end method .method public addAll(Ljava/util/Collection;)Z .locals 4 .annotation system Ldalvik/annotation/Signature; value = { "(", "Ljava/util/Collection", "<+", "Ljava/util/Map$Entry", "<TK;TV;>;>;)Z" } .end annotation .prologue .line 2991 .local p0, "this":Ljava/util/concurrent/ConcurrentHashMap$EntrySetView;, "Ljava/util/concurrent/ConcurrentHashMap$EntrySetView<TK;TV;>;" .local p1, "c":Ljava/util/Collection;, "Ljava/util/Collection<+Ljava/util/Map$Entry<TK;TV;>;>;" const/4 v0, 0x0 .line 2992 .local v0, "added":Z invoke-interface {p1}, Ljava/util/Collection;->iterator()Ljava/util/Iterator; move-result-object v2 .local v2, "i$":Ljava/util/Iterator; :cond_0 :goto_0 invoke-interface {v2}, Ljava/util/Iterator;->hasNext()Z move-result v3 if-eqz v3, :cond_1 invoke-interface {v2}, Ljava/util/Iterator;->next()Ljava/lang/Object; move-result-object v1 check-cast v1, Ljava/util/Map$Entry; .line 2993 .local v1, "e":Ljava/util/Map$Entry;, "Ljava/util/Map$Entry<TK;TV;>;" invoke-virtual {p0, v1}, Ljava/util/concurrent/ConcurrentHashMap$EntrySetView;->add(Ljava/util/Map$Entry;)Z move-result v3 if-eqz v3, :cond_0 .line 2994 const/4 v0, 0x1 goto :goto_0 .line 2996 .end local v1 # "e":Ljava/util/Map$Entry;, "Ljava/util/Map$Entry<TK;TV;>;" :cond_1 return v0 .end method .method public contains(Ljava/lang/Object;)Z .locals 5 .param p1, "o" # Ljava/lang/Object; .prologue .line 2961 .local p0, "this":Ljava/util/concurrent/ConcurrentHashMap$EntrySetView;, "Ljava/util/concurrent/ConcurrentHashMap$EntrySetView<TK;TV;>;" instance-of v4, p1, Ljava/util/Map$Entry; if-eqz v4, :cond_1 move-object v0, p1 check-cast v0, Ljava/util/Map$Entry; .local v0, "e":Ljava/util/Map$Entry;, "Ljava/util/Map$Entry<**>;" invoke-interface {v0}, Ljava/util/Map$Entry;->getKey()Ljava/lang/Object; move-result-object v1 .local v1, "k":Ljava/lang/Object; if-eqz v1, :cond_1 iget-object v4, p0, Ljava/util/concurrent/ConcurrentHashMap$EntrySetView;->map:Ljava/util/concurrent/ConcurrentHashMap; invoke-virtual {v4, v1}, Ljava/util/concurrent/ConcurrentHashMap;->get(Ljava/lang/Object;)Ljava/lang/Object; move-result-object v2 .local v2, "r":Ljava/lang/Object; if-eqz v2, :cond_1 invoke-interface {v0}, Ljava/util/Map$Entry;->getValue()Ljava/lang/Object; move-result-object v3 .local v3, "v":Ljava/lang/Object; if-eqz v3, :cond_1 if-eq v3, v2, :cond_0 invoke-virtual {v3, v2}, Ljava/lang/Object;->equals(Ljava/lang/Object;)Z move-result v4 if-eqz v4, :cond_1 :cond_0 const/4 v4, 0x1 .end local v0 # "e":Ljava/util/Map$Entry;, "Ljava/util/Map$Entry<**>;" .end local v1 # "k":Ljava/lang/Object; .end local v2 # "r":Ljava/lang/Object; .end local v3 # "v":Ljava/lang/Object; :goto_0 return v4 :cond_1 const/4 v4, 0x0 goto :goto_0 .end method .method public final equals(Ljava/lang/Object;)Z .locals 2 .param p1, "o" # Ljava/lang/Object; .prologue .line 3013 .local p0, "this":Ljava/util/concurrent/ConcurrentHashMap$EntrySetView;, "Ljava/util/concurrent/ConcurrentHashMap$EntrySetView<TK;TV;>;" instance-of v1, p1, Ljava/util/Set; if-eqz v1, :cond_1 move-object v0, p1 check-cast v0, Ljava/util/Set; .local v0, "c":Ljava/util/Set;, "Ljava/util/Set<*>;" if-eq v0, p0, :cond_0 invoke-virtual {p0, v0}, Ljava/util/concurrent/ConcurrentHashMap$EntrySetView;->containsAll(Ljava/util/Collection;)Z move-result v1 if-eqz v1, :cond_1 invoke-interface {v0, p0}, Ljava/util/Set;->containsAll(Ljava/util/Collection;)Z move-result v1 if-eqz v1, :cond_1 :cond_0 const/4 v1, 0x1 .end local v0 # "c":Ljava/util/Set;, "Ljava/util/Set<*>;" :goto_0 return v1 :cond_1 const/4 v1, 0x0 goto :goto_0 .end method .method public final hashCode()I .locals 7 .prologue .line 3000 .local p0, "this":Ljava/util/concurrent/ConcurrentHashMap$EntrySetView;, "Ljava/util/concurrent/ConcurrentHashMap$EntrySetView<TK;TV;>;" const/4 v0, 0x0 .line 3002 .local v0, "h":I iget-object v4, p0, Ljava/util/concurrent/ConcurrentHashMap$EntrySetView;->map:Ljava/util/concurrent/ConcurrentHashMap; iget-object v3, v4, Ljava/util/concurrent/ConcurrentHashMap;->table:[Ljava/util/concurrent/ConcurrentHashMap$Node; .local v3, "t":[Ljava/util/concurrent/ConcurrentHashMap$Node;, "[Ljava/util/concurrent/ConcurrentHashMap$Node<TK;TV;>;" if-eqz v3, :cond_0 .line 3003 new-instance v1, Ljava/util/concurrent/ConcurrentHashMap$Traverser; array-length v4, v3 const/4 v5, 0x0 array-length v6, v3 invoke-direct {v1, v3, v4, v5, v6}, Ljava/util/concurrent/ConcurrentHashMap$Traverser;-><init>([Ljava/util/concurrent/ConcurrentHashMap$Node;III)V .line 3004 .local v1, "it":Ljava/util/concurrent/ConcurrentHashMap$Traverser;, "Ljava/util/concurrent/ConcurrentHashMap$Traverser<TK;TV;>;" :goto_0 invoke-virtual {v1}, Ljava/util/concurrent/ConcurrentHashMap$Traverser;->advance()Ljava/util/concurrent/ConcurrentHashMap$Node; move-result-object v2 .local v2, "p":Ljava/util/concurrent/ConcurrentHashMap$Node;, "Ljava/util/concurrent/ConcurrentHashMap$Node<TK;TV;>;" if-eqz v2, :cond_0 .line 3005 invoke-virtual {v2}, Ljava/util/concurrent/ConcurrentHashMap$Node;->hashCode()I move-result v4 add-int/2addr v0, v4 goto :goto_0 .line 3008 .end local v1 # "it":Ljava/util/concurrent/ConcurrentHashMap$Traverser;, "Ljava/util/concurrent/ConcurrentHashMap$Traverser<TK;TV;>;" .end local v2 # "p":Ljava/util/concurrent/ConcurrentHashMap$Node;, "Ljava/util/concurrent/ConcurrentHashMap$Node<TK;TV;>;" :cond_0 return v0 .end method .method public iterator()Ljava/util/Iterator; .locals 6 .annotation system Ldalvik/annotation/Signature; value = { "()", "Ljava/util/Iterator", "<", "Ljava/util/Map$Entry", "<TK;TV;>;>;" } .end annotation .prologue .local p0, "this":Ljava/util/concurrent/ConcurrentHashMap$EntrySetView;, "Ljava/util/concurrent/ConcurrentHashMap$EntrySetView<TK;TV;>;" const/4 v3, 0x0 .line 2980 iget-object v5, p0, Ljava/util/concurrent/ConcurrentHashMap$EntrySetView;->map:Ljava/util/concurrent/ConcurrentHashMap; .line 2982 .local v5, "m":Ljava/util/concurrent/ConcurrentHashMap;, "Ljava/util/concurrent/ConcurrentHashMap<TK;TV;>;" iget-object v1, v5, Ljava/util/concurrent/ConcurrentHashMap;->table:[Ljava/util/concurrent/ConcurrentHashMap$Node; .local v1, "t":[Ljava/util/concurrent/ConcurrentHashMap$Node;, "[Ljava/util/concurrent/ConcurrentHashMap$Node<TK;TV;>;" if-nez v1, :cond_0 move v2, v3 .line 2983 .local v2, "f":I :goto_0 new-instance v0, Ljava/util/concurrent/ConcurrentHashMap$EntryIterator; move v4, v2 invoke-direct/range {v0 .. v5}, Ljava/util/concurrent/ConcurrentHashMap$EntryIterator;-><init>([Ljava/util/concurrent/ConcurrentHashMap$Node;IIILjava/util/concurrent/ConcurrentHashMap;)V return-object v0 .line 2982 .end local v2 # "f":I :cond_0 array-length v2, v1 goto :goto_0 .end method .method public remove(Ljava/lang/Object;)Z .locals 4 .param p1, "o" # Ljava/lang/Object; .prologue .line 2970 .local p0, "this":Ljava/util/concurrent/ConcurrentHashMap$EntrySetView;, "Ljava/util/concurrent/ConcurrentHashMap$EntrySetView<TK;TV;>;" instance-of v3, p1, Ljava/util/Map$Entry; if-eqz v3, :cond_0 move-object v0, p1 check-cast v0, Ljava/util/Map$Entry; .local v0, "e":Ljava/util/Map$Entry;, "Ljava/util/Map$Entry<**>;" invoke-interface {v0}, Ljava/util/Map$Entry;->getKey()Ljava/lang/Object; move-result-object v1 .local v1, "k":Ljava/lang/Object; if-eqz v1, :cond_0 invoke-interface {v0}, Ljava/util/Map$Entry;->getValue()Ljava/lang/Object; move-result-object v2 .local v2, "v":Ljava/lang/Object; if-eqz v2, :cond_0 iget-object v3, p0, Ljava/util/concurrent/ConcurrentHashMap$EntrySetView;->map:Ljava/util/concurrent/ConcurrentHashMap; invoke-virtual {v3, v1, v2}, Ljava/util/concurrent/ConcurrentHashMap;->remove(Ljava/lang/Object;Ljava/lang/Object;)Z move-result v3 if-eqz v3, :cond_0 const/4 v3, 0x1 .end local v0 # "e":Ljava/util/Map$Entry;, "Ljava/util/Map$Entry<**>;" .end local v1 # "k":Ljava/lang/Object; .end local v2 # "v":Ljava/lang/Object; :goto_0 return v3 :cond_0 const/4 v3, 0x0 goto :goto_0 .end method
{'content_hash': 'ae1b2764766687de8c3e5dff6d54b095', 'timestamp': '', 'source': 'github', 'line_count': 434, 'max_line_length': 190, 'avg_line_length': 28.21889400921659, 'alnum_prop': 0.6670204948150568, 'repo_name': 'Liberations/Flyme5_devices_base_cm', 'id': '920d6d8d572d5b6a5f1c348f30fb01183a6b253a', 'size': '12247', 'binary': False, 'copies': '1', 'ref': 'refs/heads/master', 'path': 'vendor/aosp/core-libart.jar.out/smali/java/util/concurrent/ConcurrentHashMap$EntrySetView.smali', 'mode': '33188', 'license': 'apache-2.0', 'language': [{'name': 'GLSL', 'bytes': '1500'}, {'name': 'HTML', 'bytes': '96769'}, {'name': 'Makefile', 'bytes': '11209'}, {'name': 'Python', 'bytes': '1195'}, {'name': 'Shell', 'bytes': '55270'}, {'name': 'Smali', 'bytes': '160321888'}]}
///////////////////////////// /// IE DOM APIs ///////////////////////////// interface Algorithm { name?: string; } interface AriaRequestEventInit extends EventInit { attributeName?: string; attributeValue?: string; } interface ClipboardEventInit extends EventInit { data?: string; dataType?: string; } interface CommandEventInit extends EventInit { commandName?: string; detail?: string; } interface CompositionEventInit extends UIEventInit { data?: string; } interface ConfirmSiteSpecificExceptionsInformation extends ExceptionInformation { arrayOfDomainStrings?: string[]; } interface CustomEventInit extends EventInit { detail?: any; } interface DeviceAccelerationDict { x?: number; y?: number; z?: number; } interface DeviceRotationRateDict { alpha?: number; beta?: number; gamma?: number; } interface EventInit { bubbles?: boolean; cancelable?: boolean; } interface ExceptionInformation { domain?: string; } interface FocusEventInit extends UIEventInit { relatedTarget?: EventTarget; } interface HashChangeEventInit extends EventInit { newURL?: string; oldURL?: string; } interface KeyAlgorithm { name?: string; } interface KeyboardEventInit extends SharedKeyboardAndMouseEventInit { key?: string; location?: number; repeat?: boolean; } interface MouseEventInit extends SharedKeyboardAndMouseEventInit { screenX?: number; screenY?: number; clientX?: number; clientY?: number; button?: number; buttons?: number; relatedTarget?: EventTarget; } interface MsZoomToOptions { contentX?: number; contentY?: number; viewportX?: string; viewportY?: string; scaleFactor?: number; animate?: string; } interface MutationObserverInit { childList?: boolean; attributes?: boolean; characterData?: boolean; subtree?: boolean; attributeOldValue?: boolean; characterDataOldValue?: boolean; attributeFilter?: string[]; } interface ObjectURLOptions { oneTimeOnly?: boolean; } interface PointerEventInit extends MouseEventInit { pointerId?: number; width?: number; height?: number; pressure?: number; tiltX?: number; tiltY?: number; pointerType?: string; isPrimary?: boolean; } interface PositionOptions { enableHighAccuracy?: boolean; timeout?: number; maximumAge?: number; } interface SharedKeyboardAndMouseEventInit extends UIEventInit { ctrlKey?: boolean; shiftKey?: boolean; altKey?: boolean; metaKey?: boolean; keyModifierStateAltGraph?: boolean; keyModifierStateCapsLock?: boolean; keyModifierStateFn?: boolean; keyModifierStateFnLock?: boolean; keyModifierStateHyper?: boolean; keyModifierStateNumLock?: boolean; keyModifierStateOS?: boolean; keyModifierStateScrollLock?: boolean; keyModifierStateSuper?: boolean; keyModifierStateSymbol?: boolean; keyModifierStateSymbolLock?: boolean; } interface StoreExceptionsInformation extends ExceptionInformation { siteName?: string; explanationString?: string; detailURI?: string; } interface StoreSiteSpecificExceptionsInformation extends StoreExceptionsInformation { arrayOfDomainStrings?: string[]; } interface UIEventInit extends EventInit { view?: Window; detail?: number; } interface WebGLContextAttributes { alpha?: boolean; depth?: boolean; stencil?: boolean; antialias?: boolean; premultipliedAlpha?: boolean; preserveDrawingBuffer?: boolean; } interface WebGLContextEventInit extends EventInit { statusMessage?: string; } interface WheelEventInit extends MouseEventInit { deltaX?: number; deltaY?: number; deltaZ?: number; deltaMode?: number; } interface EventListener { (evt: Event): void; } interface ANGLE_instanced_arrays { drawArraysInstancedANGLE(mode: number, first: number, count: number, primcount: number): void; drawElementsInstancedANGLE(mode: number, count: number, type: number, offset: number, primcount: number): void; vertexAttribDivisorANGLE(index: number, divisor: number): void; VERTEX_ATTRIB_ARRAY_DIVISOR_ANGLE: number; } declare var ANGLE_instanced_arrays: { prototype: ANGLE_instanced_arrays; new(): ANGLE_instanced_arrays; VERTEX_ATTRIB_ARRAY_DIVISOR_ANGLE: number; } interface AnalyserNode extends AudioNode { fftSize: number; frequencyBinCount: number; maxDecibels: number; minDecibels: number; smoothingTimeConstant: number; getByteFrequencyData(array: Uint8Array): void; getByteTimeDomainData(array: Uint8Array): void; getFloatFrequencyData(array: any): void; getFloatTimeDomainData(array: any): void; } declare var AnalyserNode: { prototype: AnalyserNode; new(): AnalyserNode; } interface AnimationEvent extends Event { animationName: string; elapsedTime: number; initAnimationEvent(typeArg: string, canBubbleArg: boolean, cancelableArg: boolean, animationNameArg: string, elapsedTimeArg: number): void; } declare var AnimationEvent: { prototype: AnimationEvent; new(): AnimationEvent; } interface ApplicationCache extends EventTarget { oncached: (ev: Event) => any; onchecking: (ev: Event) => any; ondownloading: (ev: Event) => any; onerror: (ev: Event) => any; onnoupdate: (ev: Event) => any; onobsolete: (ev: Event) => any; onprogress: (ev: ProgressEvent) => any; onupdateready: (ev: Event) => any; status: number; abort(): void; swapCache(): void; update(): void; CHECKING: number; DOWNLOADING: number; IDLE: number; OBSOLETE: number; UNCACHED: number; UPDATEREADY: number; addEventListener(type: "cached", listener: (ev: Event) => any, useCapture?: boolean): void; addEventListener(type: "checking", listener: (ev: Event) => any, useCapture?: boolean): void; addEventListener(type: "downloading", listener: (ev: Event) => any, useCapture?: boolean): void; addEventListener(type: "error", listener: (ev: ErrorEvent) => any, useCapture?: boolean): void; addEventListener(type: "noupdate", listener: (ev: Event) => any, useCapture?: boolean): void; addEventListener(type: "obsolete", listener: (ev: Event) => any, useCapture?: boolean): void; addEventListener(type: "progress", listener: (ev: ProgressEvent) => any, useCapture?: boolean): void; addEventListener(type: "updateready", listener: (ev: Event) => any, useCapture?: boolean): void; addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; } declare var ApplicationCache: { prototype: ApplicationCache; new(): ApplicationCache; CHECKING: number; DOWNLOADING: number; IDLE: number; OBSOLETE: number; UNCACHED: number; UPDATEREADY: number; } interface AriaRequestEvent extends Event { attributeName: string; attributeValue: string; } declare var AriaRequestEvent: { prototype: AriaRequestEvent; new(type: string, eventInitDict?: AriaRequestEventInit): AriaRequestEvent; } interface Attr extends Node { name: string; ownerElement: Element; specified: boolean; value: string; } declare var Attr: { prototype: Attr; new(): Attr; } interface AudioBuffer { duration: number; length: number; numberOfChannels: number; sampleRate: number; getChannelData(channel: number): any; } declare var AudioBuffer: { prototype: AudioBuffer; new(): AudioBuffer; } interface AudioBufferSourceNode extends AudioNode { buffer: AudioBuffer; loop: boolean; loopEnd: number; loopStart: number; onended: (ev: Event) => any; playbackRate: AudioParam; start(when?: number, offset?: number, duration?: number): void; stop(when?: number): void; addEventListener(type: "ended", listener: (ev: Event) => any, useCapture?: boolean): void; addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; } declare var AudioBufferSourceNode: { prototype: AudioBufferSourceNode; new(): AudioBufferSourceNode; } interface AudioContext extends EventTarget { currentTime: number; destination: AudioDestinationNode; listener: AudioListener; sampleRate: number; createAnalyser(): AnalyserNode; createBiquadFilter(): BiquadFilterNode; createBuffer(numberOfChannels: number, length: number, sampleRate: number): AudioBuffer; createBufferSource(): AudioBufferSourceNode; createChannelMerger(numberOfInputs?: number): ChannelMergerNode; createChannelSplitter(numberOfOutputs?: number): ChannelSplitterNode; createConvolver(): ConvolverNode; createDelay(maxDelayTime?: number): DelayNode; createDynamicsCompressor(): DynamicsCompressorNode; createGain(): GainNode; createMediaElementSource(mediaElement: HTMLMediaElement): MediaElementAudioSourceNode; createOscillator(): OscillatorNode; createPanner(): PannerNode; createPeriodicWave(real: any, imag: any): PeriodicWave; createScriptProcessor(bufferSize?: number, numberOfInputChannels?: number, numberOfOutputChannels?: number): ScriptProcessorNode; createStereoPanner(): StereoPannerNode; createWaveShaper(): WaveShaperNode; decodeAudioData(audioData: ArrayBuffer, successCallback: DecodeSuccessCallback, errorCallback?: DecodeErrorCallback): void; } declare var AudioContext: { prototype: AudioContext; new(): AudioContext; } interface AudioDestinationNode extends AudioNode { maxChannelCount: number; } declare var AudioDestinationNode: { prototype: AudioDestinationNode; new(): AudioDestinationNode; } interface AudioListener { dopplerFactor: number; speedOfSound: number; setOrientation(x: number, y: number, z: number, xUp: number, yUp: number, zUp: number): void; setPosition(x: number, y: number, z: number): void; setVelocity(x: number, y: number, z: number): void; } declare var AudioListener: { prototype: AudioListener; new(): AudioListener; } interface AudioNode extends EventTarget { channelCount: number; channelCountMode: string; channelInterpretation: string; context: AudioContext; numberOfInputs: number; numberOfOutputs: number; connect(destination: AudioNode, output?: number, input?: number): void; disconnect(output?: number): void; } declare var AudioNode: { prototype: AudioNode; new(): AudioNode; } interface AudioParam { defaultValue: number; value: number; cancelScheduledValues(startTime: number): void; exponentialRampToValueAtTime(value: number, endTime: number): void; linearRampToValueAtTime(value: number, endTime: number): void; setTargetAtTime(target: number, startTime: number, timeConstant: number): void; setValueAtTime(value: number, startTime: number): void; setValueCurveAtTime(values: any, startTime: number, duration: number): void; } declare var AudioParam: { prototype: AudioParam; new(): AudioParam; } interface AudioProcessingEvent extends Event { inputBuffer: AudioBuffer; outputBuffer: AudioBuffer; playbackTime: number; } declare var AudioProcessingEvent: { prototype: AudioProcessingEvent; new(): AudioProcessingEvent; } interface AudioTrack { enabled: boolean; id: string; kind: string; label: string; language: string; sourceBuffer: SourceBuffer; } declare var AudioTrack: { prototype: AudioTrack; new(): AudioTrack; } interface AudioTrackList extends EventTarget { length: number; onaddtrack: (ev: TrackEvent) => any; onchange: (ev: Event) => any; onremovetrack: (ev: TrackEvent) => any; getTrackById(id: string): AudioTrack; item(index: number): AudioTrack; addEventListener(type: "addtrack", listener: (ev: TrackEvent) => any, useCapture?: boolean): void; addEventListener(type: "change", listener: (ev: Event) => any, useCapture?: boolean): void; addEventListener(type: "removetrack", listener: (ev: TrackEvent) => any, useCapture?: boolean): void; addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; [index: number]: AudioTrack; } declare var AudioTrackList: { prototype: AudioTrackList; new(): AudioTrackList; } interface BarProp { visible: boolean; } declare var BarProp: { prototype: BarProp; new(): BarProp; } interface BeforeUnloadEvent extends Event { returnValue: any; } declare var BeforeUnloadEvent: { prototype: BeforeUnloadEvent; new(): BeforeUnloadEvent; } interface BiquadFilterNode extends AudioNode { Q: AudioParam; detune: AudioParam; frequency: AudioParam; gain: AudioParam; type: string; getFrequencyResponse(frequencyHz: any, magResponse: any, phaseResponse: any): void; } declare var BiquadFilterNode: { prototype: BiquadFilterNode; new(): BiquadFilterNode; } interface Blob { size: number; type: string; msClose(): void; msDetachStream(): any; slice(start?: number, end?: number, contentType?: string): Blob; } declare var Blob: { prototype: Blob; new (blobParts?: any[], options?: BlobPropertyBag): Blob; } interface CDATASection extends Text { } declare var CDATASection: { prototype: CDATASection; new(): CDATASection; } interface CSS { supports(property: string, value?: string): boolean; } declare var CSS: CSS; interface CSSConditionRule extends CSSGroupingRule { conditionText: string; } declare var CSSConditionRule: { prototype: CSSConditionRule; new(): CSSConditionRule; } interface CSSFontFaceRule extends CSSRule { style: CSSStyleDeclaration; } declare var CSSFontFaceRule: { prototype: CSSFontFaceRule; new(): CSSFontFaceRule; } interface CSSGroupingRule extends CSSRule { cssRules: CSSRuleList; deleteRule(index?: number): void; insertRule(rule: string, index?: number): number; } declare var CSSGroupingRule: { prototype: CSSGroupingRule; new(): CSSGroupingRule; } interface CSSImportRule extends CSSRule { href: string; media: MediaList; styleSheet: CSSStyleSheet; } declare var CSSImportRule: { prototype: CSSImportRule; new(): CSSImportRule; } interface CSSKeyframeRule extends CSSRule { keyText: string; style: CSSStyleDeclaration; } declare var CSSKeyframeRule: { prototype: CSSKeyframeRule; new(): CSSKeyframeRule; } interface CSSKeyframesRule extends CSSRule { cssRules: CSSRuleList; name: string; appendRule(rule: string): void; deleteRule(rule: string): void; findRule(rule: string): CSSKeyframeRule; } declare var CSSKeyframesRule: { prototype: CSSKeyframesRule; new(): CSSKeyframesRule; } interface CSSMediaRule extends CSSConditionRule { media: MediaList; } declare var CSSMediaRule: { prototype: CSSMediaRule; new(): CSSMediaRule; } interface CSSNamespaceRule extends CSSRule { namespaceURI: string; prefix: string; } declare var CSSNamespaceRule: { prototype: CSSNamespaceRule; new(): CSSNamespaceRule; } interface CSSPageRule extends CSSRule { pseudoClass: string; selector: string; selectorText: string; style: CSSStyleDeclaration; } declare var CSSPageRule: { prototype: CSSPageRule; new(): CSSPageRule; } interface CSSRule { cssText: string; parentRule: CSSRule; parentStyleSheet: CSSStyleSheet; type: number; CHARSET_RULE: number; FONT_FACE_RULE: number; IMPORT_RULE: number; KEYFRAMES_RULE: number; KEYFRAME_RULE: number; MEDIA_RULE: number; NAMESPACE_RULE: number; PAGE_RULE: number; STYLE_RULE: number; SUPPORTS_RULE: number; UNKNOWN_RULE: number; VIEWPORT_RULE: number; } declare var CSSRule: { prototype: CSSRule; new(): CSSRule; CHARSET_RULE: number; FONT_FACE_RULE: number; IMPORT_RULE: number; KEYFRAMES_RULE: number; KEYFRAME_RULE: number; MEDIA_RULE: number; NAMESPACE_RULE: number; PAGE_RULE: number; STYLE_RULE: number; SUPPORTS_RULE: number; UNKNOWN_RULE: number; VIEWPORT_RULE: number; } interface CSSRuleList { length: number; item(index: number): CSSRule; [index: number]: CSSRule; } declare var CSSRuleList: { prototype: CSSRuleList; new(): CSSRuleList; } interface CSSStyleDeclaration { alignContent: string; alignItems: string; alignSelf: string; alignmentBaseline: string; animation: string; animationDelay: string; animationDirection: string; animationDuration: string; animationFillMode: string; animationIterationCount: string; animationName: string; animationPlayState: string; animationTimingFunction: string; backfaceVisibility: string; background: string; backgroundAttachment: string; backgroundClip: string; backgroundColor: string; backgroundImage: string; backgroundOrigin: string; backgroundPosition: string; backgroundPositionX: string; backgroundPositionY: string; backgroundRepeat: string; backgroundSize: string; baselineShift: string; border: string; borderBottom: string; borderBottomColor: string; borderBottomLeftRadius: string; borderBottomRightRadius: string; borderBottomStyle: string; borderBottomWidth: string; borderCollapse: string; borderColor: string; borderImage: string; borderImageOutset: string; borderImageRepeat: string; borderImageSlice: string; borderImageSource: string; borderImageWidth: string; borderLeft: string; borderLeftColor: string; borderLeftStyle: string; borderLeftWidth: string; borderRadius: string; borderRight: string; borderRightColor: string; borderRightStyle: string; borderRightWidth: string; borderSpacing: string; borderStyle: string; borderTop: string; borderTopColor: string; borderTopLeftRadius: string; borderTopRightRadius: string; borderTopStyle: string; borderTopWidth: string; borderWidth: string; bottom: string; boxShadow: string; boxSizing: string; breakAfter: string; breakBefore: string; breakInside: string; captionSide: string; clear: string; clip: string; clipPath: string; clipRule: string; color: string; colorInterpolationFilters: string; columnCount: any; columnFill: string; columnGap: any; columnRule: string; columnRuleColor: any; columnRuleStyle: string; columnRuleWidth: any; columnSpan: string; columnWidth: any; columns: string; content: string; counterIncrement: string; counterReset: string; cssFloat: string; cssText: string; cursor: string; direction: string; display: string; dominantBaseline: string; emptyCells: string; enableBackground: string; fill: string; fillOpacity: string; fillRule: string; filter: string; flex: string; flexBasis: string; flexDirection: string; flexFlow: string; flexGrow: string; flexShrink: string; flexWrap: string; floodColor: string; floodOpacity: string; font: string; fontFamily: string; fontFeatureSettings: string; fontSize: string; fontSizeAdjust: string; fontStretch: string; fontStyle: string; fontVariant: string; fontWeight: string; glyphOrientationHorizontal: string; glyphOrientationVertical: string; height: string; imeMode: string; justifyContent: string; kerning: string; left: string; length: number; letterSpacing: string; lightingColor: string; lineHeight: string; listStyle: string; listStyleImage: string; listStylePosition: string; listStyleType: string; margin: string; marginBottom: string; marginLeft: string; marginRight: string; marginTop: string; marker: string; markerEnd: string; markerMid: string; markerStart: string; mask: string; maxHeight: string; maxWidth: string; minHeight: string; minWidth: string; msContentZoomChaining: string; msContentZoomLimit: string; msContentZoomLimitMax: any; msContentZoomLimitMin: any; msContentZoomSnap: string; msContentZoomSnapPoints: string; msContentZoomSnapType: string; msContentZooming: string; msFlowFrom: string; msFlowInto: string; msFontFeatureSettings: string; msGridColumn: any; msGridColumnAlign: string; msGridColumnSpan: any; msGridColumns: string; msGridRow: any; msGridRowAlign: string; msGridRowSpan: any; msGridRows: string; msHighContrastAdjust: string; msHyphenateLimitChars: string; msHyphenateLimitLines: any; msHyphenateLimitZone: any; msHyphens: string; msImeAlign: string; msOverflowStyle: string; msScrollChaining: string; msScrollLimit: string; msScrollLimitXMax: any; msScrollLimitXMin: any; msScrollLimitYMax: any; msScrollLimitYMin: any; msScrollRails: string; msScrollSnapPointsX: string; msScrollSnapPointsY: string; msScrollSnapType: string; msScrollSnapX: string; msScrollSnapY: string; msScrollTranslation: string; msTextCombineHorizontal: string; msTextSizeAdjust: any; msTouchAction: string; msTouchSelect: string; msUserSelect: string; msWrapFlow: string; msWrapMargin: any; msWrapThrough: string; opacity: string; order: string; orphans: string; outline: string; outlineColor: string; outlineStyle: string; outlineWidth: string; overflow: string; overflowX: string; overflowY: string; padding: string; paddingBottom: string; paddingLeft: string; paddingRight: string; paddingTop: string; pageBreakAfter: string; pageBreakBefore: string; pageBreakInside: string; parentRule: CSSRule; perspective: string; perspectiveOrigin: string; pointerEvents: string; position: string; quotes: string; right: string; rubyAlign: string; rubyOverhang: string; rubyPosition: string; stopColor: string; stopOpacity: string; stroke: string; strokeDasharray: string; strokeDashoffset: string; strokeLinecap: string; strokeLinejoin: string; strokeMiterlimit: string; strokeOpacity: string; strokeWidth: string; tableLayout: string; textAlign: string; textAlignLast: string; textAnchor: string; textDecoration: string; textFillColor: string; textIndent: string; textJustify: string; textKashida: string; textKashidaSpace: string; textOverflow: string; textShadow: string; textTransform: string; textUnderlinePosition: string; top: string; touchAction: string; transform: string; transformOrigin: string; transformStyle: string; transition: string; transitionDelay: string; transitionDuration: string; transitionProperty: string; transitionTimingFunction: string; unicodeBidi: string; verticalAlign: string; visibility: string; webkitAlignContent: string; webkitAlignItems: string; webkitAlignSelf: string; webkitAnimation: string; webkitAnimationDelay: string; webkitAnimationDirection: string; webkitAnimationDuration: string; webkitAnimationFillMode: string; webkitAnimationIterationCount: string; webkitAnimationName: string; webkitAnimationPlayState: string; webkitAnimationTimingFunction: string; webkitAppearance: string; webkitBackfaceVisibility: string; webkitBackground: string; webkitBackgroundAttachment: string; webkitBackgroundClip: string; webkitBackgroundColor: string; webkitBackgroundImage: string; webkitBackgroundOrigin: string; webkitBackgroundPosition: string; webkitBackgroundPositionX: string; webkitBackgroundPositionY: string; webkitBackgroundRepeat: string; webkitBackgroundSize: string; webkitBorderBottomLeftRadius: string; webkitBorderBottomRightRadius: string; webkitBorderImage: string; webkitBorderImageOutset: string; webkitBorderImageRepeat: string; webkitBorderImageSlice: string; webkitBorderImageSource: string; webkitBorderImageWidth: string; webkitBorderRadius: string; webkitBorderTopLeftRadius: string; webkitBorderTopRightRadius: string; webkitBoxAlign: string; webkitBoxDirection: string; webkitBoxFlex: string; webkitBoxOrdinalGroup: string; webkitBoxOrient: string; webkitBoxPack: string; webkitBoxSizing: string; webkitColumnBreakAfter: string; webkitColumnBreakBefore: string; webkitColumnBreakInside: string; webkitColumnCount: any; webkitColumnGap: any; webkitColumnRule: string; webkitColumnRuleColor: any; webkitColumnRuleStyle: string; webkitColumnRuleWidth: any; webkitColumnSpan: string; webkitColumnWidth: any; webkitColumns: string; webkitFilter: string; webkitFlex: string; webkitFlexBasis: string; webkitFlexDirection: string; webkitFlexFlow: string; webkitFlexGrow: string; webkitFlexShrink: string; webkitFlexWrap: string; webkitJustifyContent: string; webkitOrder: string; webkitPerspective: string; webkitPerspectiveOrigin: string; webkitTapHighlightColor: string; webkitTextFillColor: string; webkitTextSizeAdjust: any; webkitTransform: string; webkitTransformOrigin: string; webkitTransformStyle: string; webkitTransition: string; webkitTransitionDelay: string; webkitTransitionDuration: string; webkitTransitionProperty: string; webkitTransitionTimingFunction: string; webkitUserSelect: string; webkitWritingMode: string; whiteSpace: string; widows: string; width: string; wordBreak: string; wordSpacing: string; wordWrap: string; writingMode: string; zIndex: string; zoom: string; getPropertyPriority(propertyName: string): string; getPropertyValue(propertyName: string): string; item(index: number): string; removeProperty(propertyName: string): string; setProperty(propertyName: string, value: string, priority?: string): void; [index: number]: string; } declare var CSSStyleDeclaration: { prototype: CSSStyleDeclaration; new(): CSSStyleDeclaration; } interface CSSStyleRule extends CSSRule { readOnly: boolean; selectorText: string; style: CSSStyleDeclaration; } declare var CSSStyleRule: { prototype: CSSStyleRule; new(): CSSStyleRule; } interface CSSStyleSheet extends StyleSheet { cssRules: CSSRuleList; cssText: string; href: string; id: string; imports: StyleSheetList; isAlternate: boolean; isPrefAlternate: boolean; ownerRule: CSSRule; owningElement: Element; pages: StyleSheetPageList; readOnly: boolean; rules: CSSRuleList; addImport(bstrURL: string, lIndex?: number): number; addPageRule(bstrSelector: string, bstrStyle: string, lIndex?: number): number; addRule(bstrSelector: string, bstrStyle?: string, lIndex?: number): number; deleteRule(index?: number): void; insertRule(rule: string, index?: number): number; removeImport(lIndex: number): void; removeRule(lIndex: number): void; } declare var CSSStyleSheet: { prototype: CSSStyleSheet; new(): CSSStyleSheet; } interface CSSSupportsRule extends CSSConditionRule { } declare var CSSSupportsRule: { prototype: CSSSupportsRule; new(): CSSSupportsRule; } interface CanvasGradient { addColorStop(offset: number, color: string): void; } declare var CanvasGradient: { prototype: CanvasGradient; new(): CanvasGradient; } interface CanvasPattern { } declare var CanvasPattern: { prototype: CanvasPattern; new(): CanvasPattern; } interface CanvasRenderingContext2D { canvas: HTMLCanvasElement; fillStyle: any; font: string; globalAlpha: number; globalCompositeOperation: string; lineCap: string; lineDashOffset: number; lineJoin: string; lineWidth: number; miterLimit: number; msFillRule: string; msImageSmoothingEnabled: boolean; shadowBlur: number; shadowColor: string; shadowOffsetX: number; shadowOffsetY: number; strokeStyle: any; textAlign: string; textBaseline: string; arc(x: number, y: number, radius: number, startAngle: number, endAngle: number, anticlockwise?: boolean): void; arcTo(x1: number, y1: number, x2: number, y2: number, radius: number): void; beginPath(): void; bezierCurveTo(cp1x: number, cp1y: number, cp2x: number, cp2y: number, x: number, y: number): void; clearRect(x: number, y: number, w: number, h: number): void; clip(fillRule?: string): void; closePath(): void; createImageData(imageDataOrSw: number | ImageData, sh?: number): ImageData; createLinearGradient(x0: number, y0: number, x1: number, y1: number): CanvasGradient; createPattern(image: HTMLImageElement | HTMLCanvasElement | HTMLVideoElement, repetition: string): CanvasPattern; createRadialGradient(x0: number, y0: number, r0: number, x1: number, y1: number, r1: number): CanvasGradient; drawImage(image: HTMLImageElement | HTMLCanvasElement | HTMLVideoElement, offsetX: number, offsetY: number, width?: number, height?: number, canvasOffsetX?: number, canvasOffsetY?: number, canvasImageWidth?: number, canvasImageHeight?: number): void; fill(fillRule?: string): void; fillRect(x: number, y: number, w: number, h: number): void; fillText(text: string, x: number, y: number, maxWidth?: number): void; getImageData(sx: number, sy: number, sw: number, sh: number): ImageData; getLineDash(): number[]; isPointInPath(x: number, y: number, fillRule?: string): boolean; lineTo(x: number, y: number): void; measureText(text: string): TextMetrics; moveTo(x: number, y: number): void; putImageData(imagedata: ImageData, dx: number, dy: number, dirtyX?: number, dirtyY?: number, dirtyWidth?: number, dirtyHeight?: number): void; quadraticCurveTo(cpx: number, cpy: number, x: number, y: number): void; rect(x: number, y: number, w: number, h: number): void; restore(): void; rotate(angle: number): void; save(): void; scale(x: number, y: number): void; setLineDash(segments: number[]): void; setTransform(m11: number, m12: number, m21: number, m22: number, dx: number, dy: number): void; stroke(): void; strokeRect(x: number, y: number, w: number, h: number): void; strokeText(text: string, x: number, y: number, maxWidth?: number): void; transform(m11: number, m12: number, m21: number, m22: number, dx: number, dy: number): void; translate(x: number, y: number): void; } declare var CanvasRenderingContext2D: { prototype: CanvasRenderingContext2D; new(): CanvasRenderingContext2D; } interface ChannelMergerNode extends AudioNode { } declare var ChannelMergerNode: { prototype: ChannelMergerNode; new(): ChannelMergerNode; } interface ChannelSplitterNode extends AudioNode { } declare var ChannelSplitterNode: { prototype: ChannelSplitterNode; new(): ChannelSplitterNode; } interface CharacterData extends Node, ChildNode { data: string; length: number; appendData(arg: string): void; deleteData(offset: number, count: number): void; insertData(offset: number, arg: string): void; replaceData(offset: number, count: number, arg: string): void; substringData(offset: number, count: number): string; addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; } declare var CharacterData: { prototype: CharacterData; new(): CharacterData; } interface ClientRect { bottom: number; height: number; left: number; right: number; top: number; width: number; } declare var ClientRect: { prototype: ClientRect; new(): ClientRect; } interface ClientRectList { length: number; item(index: number): ClientRect; [index: number]: ClientRect; } declare var ClientRectList: { prototype: ClientRectList; new(): ClientRectList; } interface ClipboardEvent extends Event { clipboardData: DataTransfer; } declare var ClipboardEvent: { prototype: ClipboardEvent; new(type: string, eventInitDict?: ClipboardEventInit): ClipboardEvent; } interface CloseEvent extends Event { code: number; reason: string; wasClean: boolean; initCloseEvent(typeArg: string, canBubbleArg: boolean, cancelableArg: boolean, wasCleanArg: boolean, codeArg: number, reasonArg: string): void; } declare var CloseEvent: { prototype: CloseEvent; new(): CloseEvent; } interface CommandEvent extends Event { commandName: string; detail: string; } declare var CommandEvent: { prototype: CommandEvent; new(type: string, eventInitDict?: CommandEventInit): CommandEvent; } interface Comment extends CharacterData { text: string; } declare var Comment: { prototype: Comment; new(): Comment; } interface CompositionEvent extends UIEvent { data: string; locale: string; initCompositionEvent(typeArg: string, canBubbleArg: boolean, cancelableArg: boolean, viewArg: Window, dataArg: string, locale: string): void; } declare var CompositionEvent: { prototype: CompositionEvent; new(typeArg: string, eventInitDict?: CompositionEventInit): CompositionEvent; } interface Console { assert(test?: boolean, message?: string, ...optionalParams: any[]): void; clear(): void; count(countTitle?: string): void; debug(message?: string, ...optionalParams: any[]): void; dir(value?: any, ...optionalParams: any[]): void; dirxml(value: any): void; error(message?: any, ...optionalParams: any[]): void; group(groupTitle?: string): void; groupCollapsed(groupTitle?: string): void; groupEnd(): void; info(message?: any, ...optionalParams: any[]): void; log(message?: any, ...optionalParams: any[]): void; msIsIndependentlyComposed(element: Element): boolean; profile(reportName?: string): void; profileEnd(): void; select(element: Element): void; time(timerName?: string): void; timeEnd(timerName?: string): void; trace(): void; warn(message?: any, ...optionalParams: any[]): void; } declare var Console: { prototype: Console; new(): Console; } interface ConvolverNode extends AudioNode { buffer: AudioBuffer; normalize: boolean; } declare var ConvolverNode: { prototype: ConvolverNode; new(): ConvolverNode; } interface Coordinates { accuracy: number; altitude: number; altitudeAccuracy: number; heading: number; latitude: number; longitude: number; speed: number; } declare var Coordinates: { prototype: Coordinates; new(): Coordinates; } interface Crypto extends Object, RandomSource { subtle: SubtleCrypto; } declare var Crypto: { prototype: Crypto; new(): Crypto; } interface CryptoKey { algorithm: KeyAlgorithm; extractable: boolean; type: string; usages: string[]; } declare var CryptoKey: { prototype: CryptoKey; new(): CryptoKey; } interface CryptoKeyPair { privateKey: CryptoKey; publicKey: CryptoKey; } declare var CryptoKeyPair: { prototype: CryptoKeyPair; new(): CryptoKeyPair; } interface CustomEvent extends Event { detail: any; initCustomEvent(typeArg: string, canBubbleArg: boolean, cancelableArg: boolean, detailArg: any): void; } declare var CustomEvent: { prototype: CustomEvent; new(typeArg: string, eventInitDict?: CustomEventInit): CustomEvent; } interface DOMError { name: string; toString(): string; } declare var DOMError: { prototype: DOMError; new(): DOMError; } interface DOMException { code: number; message: string; name: string; toString(): string; ABORT_ERR: number; DATA_CLONE_ERR: number; DOMSTRING_SIZE_ERR: number; HIERARCHY_REQUEST_ERR: number; INDEX_SIZE_ERR: number; INUSE_ATTRIBUTE_ERR: number; INVALID_ACCESS_ERR: number; INVALID_CHARACTER_ERR: number; INVALID_MODIFICATION_ERR: number; INVALID_NODE_TYPE_ERR: number; INVALID_STATE_ERR: number; NAMESPACE_ERR: number; NETWORK_ERR: number; NOT_FOUND_ERR: number; NOT_SUPPORTED_ERR: number; NO_DATA_ALLOWED_ERR: number; NO_MODIFICATION_ALLOWED_ERR: number; PARSE_ERR: number; QUOTA_EXCEEDED_ERR: number; SECURITY_ERR: number; SERIALIZE_ERR: number; SYNTAX_ERR: number; TIMEOUT_ERR: number; TYPE_MISMATCH_ERR: number; URL_MISMATCH_ERR: number; VALIDATION_ERR: number; WRONG_DOCUMENT_ERR: number; } declare var DOMException: { prototype: DOMException; new(): DOMException; ABORT_ERR: number; DATA_CLONE_ERR: number; DOMSTRING_SIZE_ERR: number; HIERARCHY_REQUEST_ERR: number; INDEX_SIZE_ERR: number; INUSE_ATTRIBUTE_ERR: number; INVALID_ACCESS_ERR: number; INVALID_CHARACTER_ERR: number; INVALID_MODIFICATION_ERR: number; INVALID_NODE_TYPE_ERR: number; INVALID_STATE_ERR: number; NAMESPACE_ERR: number; NETWORK_ERR: number; NOT_FOUND_ERR: number; NOT_SUPPORTED_ERR: number; NO_DATA_ALLOWED_ERR: number; NO_MODIFICATION_ALLOWED_ERR: number; PARSE_ERR: number; QUOTA_EXCEEDED_ERR: number; SECURITY_ERR: number; SERIALIZE_ERR: number; SYNTAX_ERR: number; TIMEOUT_ERR: number; TYPE_MISMATCH_ERR: number; URL_MISMATCH_ERR: number; VALIDATION_ERR: number; WRONG_DOCUMENT_ERR: number; } interface DOMImplementation { createDocument(namespaceURI: string, qualifiedName: string, doctype: DocumentType): Document; createDocumentType(qualifiedName: string, publicId: string, systemId: string): DocumentType; createHTMLDocument(title: string): Document; hasFeature(feature: string, version: string): boolean; } declare var DOMImplementation: { prototype: DOMImplementation; new(): DOMImplementation; } interface DOMParser { parseFromString(source: string, mimeType: string): Document; } declare var DOMParser: { prototype: DOMParser; new(): DOMParser; } interface DOMSettableTokenList extends DOMTokenList { value: string; } declare var DOMSettableTokenList: { prototype: DOMSettableTokenList; new(): DOMSettableTokenList; } interface DOMStringList { length: number; contains(str: string): boolean; item(index: number): string; [index: number]: string; } declare var DOMStringList: { prototype: DOMStringList; new(): DOMStringList; } interface DOMStringMap { [name: string]: string; } declare var DOMStringMap: { prototype: DOMStringMap; new(): DOMStringMap; } interface DOMTokenList { length: number; add(...token: string[]): void; contains(token: string): boolean; item(index: number): string; remove(...token: string[]): void; toString(): string; toggle(token: string, force?: boolean): boolean; [index: number]: string; } declare var DOMTokenList: { prototype: DOMTokenList; new(): DOMTokenList; } interface DataCue extends TextTrackCue { data: ArrayBuffer; } declare var DataCue: { prototype: DataCue; new(): DataCue; } interface DataTransfer { dropEffect: string; effectAllowed: string; files: FileList; items: DataTransferItemList; types: DOMStringList; clearData(format?: string): boolean; getData(format: string): string; setData(format: string, data: string): boolean; } declare var DataTransfer: { prototype: DataTransfer; new(): DataTransfer; } interface DataTransferItem { kind: string; type: string; getAsFile(): File; getAsString(_callback: FunctionStringCallback): void; } declare var DataTransferItem: { prototype: DataTransferItem; new(): DataTransferItem; } interface DataTransferItemList { length: number; add(data: File): DataTransferItem; clear(): void; item(index: number): File; remove(index: number): void; [index: number]: File; } declare var DataTransferItemList: { prototype: DataTransferItemList; new(): DataTransferItemList; } interface DeferredPermissionRequest { id: number; type: string; uri: string; allow(): void; deny(): void; } declare var DeferredPermissionRequest: { prototype: DeferredPermissionRequest; new(): DeferredPermissionRequest; } interface DelayNode extends AudioNode { delayTime: AudioParam; } declare var DelayNode: { prototype: DelayNode; new(): DelayNode; } interface DeviceAcceleration { x: number; y: number; z: number; } declare var DeviceAcceleration: { prototype: DeviceAcceleration; new(): DeviceAcceleration; } interface DeviceMotionEvent extends Event { acceleration: DeviceAcceleration; accelerationIncludingGravity: DeviceAcceleration; interval: number; rotationRate: DeviceRotationRate; initDeviceMotionEvent(type: string, bubbles: boolean, cancelable: boolean, acceleration: DeviceAccelerationDict, accelerationIncludingGravity: DeviceAccelerationDict, rotationRate: DeviceRotationRateDict, interval: number): void; } declare var DeviceMotionEvent: { prototype: DeviceMotionEvent; new(): DeviceMotionEvent; } interface DeviceOrientationEvent extends Event { absolute: boolean; alpha: number; beta: number; gamma: number; initDeviceOrientationEvent(type: string, bubbles: boolean, cancelable: boolean, alpha: number, beta: number, gamma: number, absolute: boolean): void; } declare var DeviceOrientationEvent: { prototype: DeviceOrientationEvent; new(): DeviceOrientationEvent; } interface DeviceRotationRate { alpha: number; beta: number; gamma: number; } declare var DeviceRotationRate: { prototype: DeviceRotationRate; new(): DeviceRotationRate; } interface Document extends Node, GlobalEventHandlers, NodeSelector, DocumentEvent { /** * Sets or gets the URL for the current document. */ URL: string; /** * Gets the URL for the document, stripped of any character encoding. */ URLUnencoded: string; /** * Gets the object that has the focus when the parent document has focus. */ activeElement: Element; /** * Sets or gets the color of all active links in the document. */ alinkColor: string; /** * Returns a reference to the collection of elements contained by the object. */ all: HTMLCollection; /** * Retrieves a collection of all a objects that have a name and/or id property. Objects in this collection are in HTML source order. */ anchors: HTMLCollection; /** * Retrieves a collection of all applet objects in the document. */ applets: HTMLCollection; /** * Deprecated. Sets or retrieves a value that indicates the background color behind the object. */ bgColor: string; /** * Specifies the beginning and end of the document body. */ body: HTMLElement; characterSet: string; /** * Gets or sets the character set used to encode the object. */ charset: string; /** * Gets a value that indicates whether standards-compliant mode is switched on for the object. */ compatMode: string; cookie: string; /** * Gets the default character set from the current regional language settings. */ defaultCharset: string; defaultView: Window; /** * Sets or gets a value that indicates whether the document can be edited. */ designMode: string; /** * Sets or retrieves a value that indicates the reading order of the object. */ dir: string; /** * Gets an object representing the document type declaration associated with the current document. */ doctype: DocumentType; /** * Gets a reference to the root node of the document. */ documentElement: HTMLElement; /** * Sets or gets the security domain of the document. */ domain: string; /** * Retrieves a collection of all embed objects in the document. */ embeds: HTMLCollection; /** * Sets or gets the foreground (text) color of the document. */ fgColor: string; /** * Retrieves a collection, in source order, of all form objects in the document. */ forms: HTMLCollection; fullscreenElement: Element; fullscreenEnabled: boolean; head: HTMLHeadElement; hidden: boolean; /** * Retrieves a collection, in source order, of img objects in the document. */ images: HTMLCollection; /** * Gets the implementation object of the current document. */ implementation: DOMImplementation; /** * Returns the character encoding used to create the webpage that is loaded into the document object. */ inputEncoding: string; /** * Gets the date that the page was last modified, if the page supplies one. */ lastModified: string; /** * Sets or gets the color of the document links. */ linkColor: string; /** * Retrieves a collection of all a objects that specify the href property and all area objects in the document. */ links: HTMLCollection; /** * Contains information about the current URL. */ location: Location; media: string; msCSSOMElementFloatMetrics: boolean; msCapsLockWarningOff: boolean; msHidden: boolean; msVisibilityState: string; /** * Fires when the user aborts the download. * @param ev The event. */ onabort: (ev: Event) => any; /** * Fires when the object is set as the active element. * @param ev The event. */ onactivate: (ev: UIEvent) => any; /** * Fires immediately before the object is set as the active element. * @param ev The event. */ onbeforeactivate: (ev: UIEvent) => any; /** * Fires immediately before the activeElement is changed from the current object to another object in the parent document. * @param ev The event. */ onbeforedeactivate: (ev: UIEvent) => any; /** * Fires when the object loses the input focus. * @param ev The focus event. */ onblur: (ev: FocusEvent) => any; /** * Occurs when playback is possible, but would require further buffering. * @param ev The event. */ oncanplay: (ev: Event) => any; oncanplaythrough: (ev: Event) => any; /** * Fires when the contents of the object or selection have changed. * @param ev The event. */ onchange: (ev: Event) => any; /** * Fires when the user clicks the left mouse button on the object * @param ev The mouse event. */ onclick: (ev: MouseEvent) => any; /** * Fires when the user clicks the right mouse button in the client area, opening the context menu. * @param ev The mouse event. */ oncontextmenu: (ev: PointerEvent) => any; /** * Fires when the user double-clicks the object. * @param ev The mouse event. */ ondblclick: (ev: MouseEvent) => any; /** * Fires when the activeElement is changed from the current object to another object in the parent document. * @param ev The UI Event */ ondeactivate: (ev: UIEvent) => any; /** * Fires on the source object continuously during a drag operation. * @param ev The event. */ ondrag: (ev: DragEvent) => any; /** * Fires on the source object when the user releases the mouse at the close of a drag operation. * @param ev The event. */ ondragend: (ev: DragEvent) => any; /** * Fires on the target element when the user drags the object to a valid drop target. * @param ev The drag event. */ ondragenter: (ev: DragEvent) => any; /** * Fires on the target object when the user moves the mouse out of a valid drop target during a drag operation. * @param ev The drag event. */ ondragleave: (ev: DragEvent) => any; /** * Fires on the target element continuously while the user drags the object over a valid drop target. * @param ev The event. */ ondragover: (ev: DragEvent) => any; /** * Fires on the source object when the user starts to drag a text selection or selected object. * @param ev The event. */ ondragstart: (ev: DragEvent) => any; ondrop: (ev: DragEvent) => any; /** * Occurs when the duration attribute is updated. * @param ev The event. */ ondurationchange: (ev: Event) => any; /** * Occurs when the media element is reset to its initial state. * @param ev The event. */ onemptied: (ev: Event) => any; /** * Occurs when the end of playback is reached. * @param ev The event */ onended: (ev: Event) => any; /** * Fires when an error occurs during object loading. * @param ev The event. */ onerror: (ev: Event) => any; /** * Fires when the object receives focus. * @param ev The event. */ onfocus: (ev: FocusEvent) => any; onfullscreenchange: (ev: Event) => any; onfullscreenerror: (ev: Event) => any; oninput: (ev: Event) => any; /** * Fires when the user presses a key. * @param ev The keyboard event */ onkeydown: (ev: KeyboardEvent) => any; /** * Fires when the user presses an alphanumeric key. * @param ev The event. */ onkeypress: (ev: KeyboardEvent) => any; /** * Fires when the user releases a key. * @param ev The keyboard event */ onkeyup: (ev: KeyboardEvent) => any; /** * Fires immediately after the browser loads the object. * @param ev The event. */ onload: (ev: Event) => any; /** * Occurs when media data is loaded at the current playback position. * @param ev The event. */ onloadeddata: (ev: Event) => any; /** * Occurs when the duration and dimensions of the media have been determined. * @param ev The event. */ onloadedmetadata: (ev: Event) => any; /** * Occurs when Internet Explorer begins looking for media data. * @param ev The event. */ onloadstart: (ev: Event) => any; /** * Fires when the user clicks the object with either mouse button. * @param ev The mouse event. */ onmousedown: (ev: MouseEvent) => any; /** * Fires when the user moves the mouse over the object. * @param ev The mouse event. */ onmousemove: (ev: MouseEvent) => any; /** * Fires when the user moves the mouse pointer outside the boundaries of the object. * @param ev The mouse event. */ onmouseout: (ev: MouseEvent) => any; /** * Fires when the user moves the mouse pointer into the object. * @param ev The mouse event. */ onmouseover: (ev: MouseEvent) => any; /** * Fires when the user releases a mouse button while the mouse is over the object. * @param ev The mouse event. */ onmouseup: (ev: MouseEvent) => any; /** * Fires when the wheel button is rotated. * @param ev The mouse event */ onmousewheel: (ev: MouseWheelEvent) => any; onmscontentzoom: (ev: UIEvent) => any; onmsgesturechange: (ev: MSGestureEvent) => any; onmsgesturedoubletap: (ev: MSGestureEvent) => any; onmsgestureend: (ev: MSGestureEvent) => any; onmsgesturehold: (ev: MSGestureEvent) => any; onmsgesturestart: (ev: MSGestureEvent) => any; onmsgesturetap: (ev: MSGestureEvent) => any; onmsinertiastart: (ev: MSGestureEvent) => any; onmsmanipulationstatechanged: (ev: MSManipulationEvent) => any; onmspointercancel: (ev: MSPointerEvent) => any; onmspointerdown: (ev: MSPointerEvent) => any; onmspointerenter: (ev: MSPointerEvent) => any; onmspointerleave: (ev: MSPointerEvent) => any; onmspointermove: (ev: MSPointerEvent) => any; onmspointerout: (ev: MSPointerEvent) => any; onmspointerover: (ev: MSPointerEvent) => any; onmspointerup: (ev: MSPointerEvent) => any; /** * Occurs when an item is removed from a Jump List of a webpage running in Site Mode. * @param ev The event. */ onmssitemodejumplistitemremoved: (ev: MSSiteModeEvent) => any; /** * Occurs when a user clicks a button in a Thumbnail Toolbar of a webpage running in Site Mode. * @param ev The event. */ onmsthumbnailclick: (ev: MSSiteModeEvent) => any; /** * Occurs when playback is paused. * @param ev The event. */ onpause: (ev: Event) => any; /** * Occurs when the play method is requested. * @param ev The event. */ onplay: (ev: Event) => any; /** * Occurs when the audio or video has started playing. * @param ev The event. */ onplaying: (ev: Event) => any; onpointerlockchange: (ev: Event) => any; onpointerlockerror: (ev: Event) => any; /** * Occurs to indicate progress while downloading media data. * @param ev The event. */ onprogress: (ev: ProgressEvent) => any; /** * Occurs when the playback rate is increased or decreased. * @param ev The event. */ onratechange: (ev: Event) => any; /** * Fires when the state of the object has changed. * @param ev The event */ onreadystatechange: (ev: ProgressEvent) => any; /** * Fires when the user resets a form. * @param ev The event. */ onreset: (ev: Event) => any; /** * Fires when the user repositions the scroll box in the scroll bar on the object. * @param ev The event. */ onscroll: (ev: UIEvent) => any; /** * Occurs when the seek operation ends. * @param ev The event. */ onseeked: (ev: Event) => any; /** * Occurs when the current playback position is moved. * @param ev The event. */ onseeking: (ev: Event) => any; /** * Fires when the current selection changes. * @param ev The event. */ onselect: (ev: UIEvent) => any; onselectstart: (ev: Event) => any; /** * Occurs when the download has stopped. * @param ev The event. */ onstalled: (ev: Event) => any; /** * Fires when the user clicks the Stop button or leaves the Web page. * @param ev The event. */ onstop: (ev: Event) => any; onsubmit: (ev: Event) => any; /** * Occurs if the load operation has been intentionally halted. * @param ev The event. */ onsuspend: (ev: Event) => any; /** * Occurs to indicate the current playback position. * @param ev The event. */ ontimeupdate: (ev: Event) => any; ontouchcancel: (ev: TouchEvent) => any; ontouchend: (ev: TouchEvent) => any; ontouchmove: (ev: TouchEvent) => any; ontouchstart: (ev: TouchEvent) => any; /** * Occurs when the volume is changed, or playback is muted or unmuted. * @param ev The event. */ onvolumechange: (ev: Event) => any; /** * Occurs when playback stops because the next frame of a video resource is not available. * @param ev The event. */ onwaiting: (ev: Event) => any; onwebkitfullscreenchange: (ev: Event) => any; onwebkitfullscreenerror: (ev: Event) => any; plugins: HTMLCollection; pointerLockElement: Element; /** * Retrieves a value that indicates the current state of the object. */ readyState: string; /** * Gets the URL of the location that referred the user to the current page. */ referrer: string; /** * Gets the root svg element in the document hierarchy. */ rootElement: SVGSVGElement; /** * Retrieves a collection of all script objects in the document. */ scripts: HTMLCollection; security: string; /** * Retrieves a collection of styleSheet objects representing the style sheets that correspond to each instance of a link or style object in the document. */ styleSheets: StyleSheetList; /** * Contains the title of the document. */ title: string; visibilityState: string; /** * Sets or gets the color of the links that the user has visited. */ vlinkColor: string; webkitCurrentFullScreenElement: Element; webkitFullscreenElement: Element; webkitFullscreenEnabled: boolean; webkitIsFullScreen: boolean; xmlEncoding: string; xmlStandalone: boolean; /** * Gets or sets the version attribute specified in the declaration of an XML document. */ xmlVersion: string; adoptNode(source: Node): Node; captureEvents(): void; clear(): void; /** * Closes an output stream and forces the sent data to display. */ close(): void; /** * Creates an attribute object with a specified name. * @param name String that sets the attribute object's name. */ createAttribute(name: string): Attr; createAttributeNS(namespaceURI: string, qualifiedName: string): Attr; createCDATASection(data: string): CDATASection; /** * Creates a comment object with the specified data. * @param data Sets the comment object's data. */ createComment(data: string): Comment; /** * Creates a new document. */ createDocumentFragment(): DocumentFragment; /** * Creates an instance of the element for the specified tag. * @param tagName The name of an element. */ createElement(tagName: "a"): HTMLAnchorElement; createElement(tagName: "abbr"): HTMLPhraseElement; createElement(tagName: "acronym"): HTMLPhraseElement; createElement(tagName: "address"): HTMLBlockElement; createElement(tagName: "applet"): HTMLAppletElement; createElement(tagName: "area"): HTMLAreaElement; createElement(tagName: "audio"): HTMLAudioElement; createElement(tagName: "b"): HTMLPhraseElement; createElement(tagName: "base"): HTMLBaseElement; createElement(tagName: "basefont"): HTMLBaseFontElement; createElement(tagName: "bdo"): HTMLPhraseElement; createElement(tagName: "big"): HTMLPhraseElement; createElement(tagName: "blockquote"): HTMLBlockElement; createElement(tagName: "body"): HTMLBodyElement; createElement(tagName: "br"): HTMLBRElement; createElement(tagName: "button"): HTMLButtonElement; createElement(tagName: "canvas"): HTMLCanvasElement; createElement(tagName: "caption"): HTMLTableCaptionElement; createElement(tagName: "center"): HTMLBlockElement; createElement(tagName: "cite"): HTMLPhraseElement; createElement(tagName: "code"): HTMLPhraseElement; createElement(tagName: "col"): HTMLTableColElement; createElement(tagName: "colgroup"): HTMLTableColElement; createElement(tagName: "datalist"): HTMLDataListElement; createElement(tagName: "dd"): HTMLDDElement; createElement(tagName: "del"): HTMLModElement; createElement(tagName: "dfn"): HTMLPhraseElement; createElement(tagName: "dir"): HTMLDirectoryElement; createElement(tagName: "div"): HTMLDivElement; createElement(tagName: "dl"): HTMLDListElement; createElement(tagName: "dt"): HTMLDTElement; createElement(tagName: "em"): HTMLPhraseElement; createElement(tagName: "embed"): HTMLEmbedElement; createElement(tagName: "fieldset"): HTMLFieldSetElement; createElement(tagName: "font"): HTMLFontElement; createElement(tagName: "form"): HTMLFormElement; createElement(tagName: "frame"): HTMLFrameElement; createElement(tagName: "frameset"): HTMLFrameSetElement; createElement(tagName: "h1"): HTMLHeadingElement; createElement(tagName: "h2"): HTMLHeadingElement; createElement(tagName: "h3"): HTMLHeadingElement; createElement(tagName: "h4"): HTMLHeadingElement; createElement(tagName: "h5"): HTMLHeadingElement; createElement(tagName: "h6"): HTMLHeadingElement; createElement(tagName: "head"): HTMLHeadElement; createElement(tagName: "hr"): HTMLHRElement; createElement(tagName: "html"): HTMLHtmlElement; createElement(tagName: "i"): HTMLPhraseElement; createElement(tagName: "iframe"): HTMLIFrameElement; createElement(tagName: "img"): HTMLImageElement; createElement(tagName: "input"): HTMLInputElement; createElement(tagName: "ins"): HTMLModElement; createElement(tagName: "isindex"): HTMLIsIndexElement; createElement(tagName: "kbd"): HTMLPhraseElement; createElement(tagName: "keygen"): HTMLBlockElement; createElement(tagName: "label"): HTMLLabelElement; createElement(tagName: "legend"): HTMLLegendElement; createElement(tagName: "li"): HTMLLIElement; createElement(tagName: "link"): HTMLLinkElement; createElement(tagName: "listing"): HTMLBlockElement; createElement(tagName: "map"): HTMLMapElement; createElement(tagName: "marquee"): HTMLMarqueeElement; createElement(tagName: "menu"): HTMLMenuElement; createElement(tagName: "meta"): HTMLMetaElement; createElement(tagName: "nextid"): HTMLNextIdElement; createElement(tagName: "nobr"): HTMLPhraseElement; createElement(tagName: "object"): HTMLObjectElement; createElement(tagName: "ol"): HTMLOListElement; createElement(tagName: "optgroup"): HTMLOptGroupElement; createElement(tagName: "option"): HTMLOptionElement; createElement(tagName: "p"): HTMLParagraphElement; createElement(tagName: "param"): HTMLParamElement; createElement(tagName: "plaintext"): HTMLBlockElement; createElement(tagName: "pre"): HTMLPreElement; createElement(tagName: "progress"): HTMLProgressElement; createElement(tagName: "q"): HTMLQuoteElement; createElement(tagName: "rt"): HTMLPhraseElement; createElement(tagName: "ruby"): HTMLPhraseElement; createElement(tagName: "s"): HTMLPhraseElement; createElement(tagName: "samp"): HTMLPhraseElement; createElement(tagName: "script"): HTMLScriptElement; createElement(tagName: "select"): HTMLSelectElement; createElement(tagName: "small"): HTMLPhraseElement; createElement(tagName: "source"): HTMLSourceElement; createElement(tagName: "span"): HTMLSpanElement; createElement(tagName: "strike"): HTMLPhraseElement; createElement(tagName: "strong"): HTMLPhraseElement; createElement(tagName: "style"): HTMLStyleElement; createElement(tagName: "sub"): HTMLPhraseElement; createElement(tagName: "sup"): HTMLPhraseElement; createElement(tagName: "table"): HTMLTableElement; createElement(tagName: "tbody"): HTMLTableSectionElement; createElement(tagName: "td"): HTMLTableDataCellElement; createElement(tagName: "textarea"): HTMLTextAreaElement; createElement(tagName: "tfoot"): HTMLTableSectionElement; createElement(tagName: "th"): HTMLTableHeaderCellElement; createElement(tagName: "thead"): HTMLTableSectionElement; createElement(tagName: "title"): HTMLTitleElement; createElement(tagName: "tr"): HTMLTableRowElement; createElement(tagName: "track"): HTMLTrackElement; createElement(tagName: "tt"): HTMLPhraseElement; createElement(tagName: "u"): HTMLPhraseElement; createElement(tagName: "ul"): HTMLUListElement; createElement(tagName: "var"): HTMLPhraseElement; createElement(tagName: "video"): HTMLVideoElement; createElement(tagName: "x-ms-webview"): MSHTMLWebViewElement; createElement(tagName: "xmp"): HTMLBlockElement; createElement(tagName: string): HTMLElement; createElementNS(namespaceURI: string, qualifiedName: string): Element; createExpression(expression: string, resolver: XPathNSResolver): XPathExpression; createNSResolver(nodeResolver: Node): XPathNSResolver; /** * Creates a NodeIterator object that you can use to traverse filtered lists of nodes or elements in a document. * @param root The root element or node to start traversing on. * @param whatToShow The type of nodes or elements to appear in the node list * @param filter A custom NodeFilter function to use. For more information, see filter. Use null for no filter. * @param entityReferenceExpansion A flag that specifies whether entity reference nodes are expanded. */ createNodeIterator(root: Node, whatToShow?: number, filter?: NodeFilter, entityReferenceExpansion?: boolean): NodeIterator; createProcessingInstruction(target: string, data: string): ProcessingInstruction; /** * Returns an empty range object that has both of its boundary points positioned at the beginning of the document. */ createRange(): Range; /** * Creates a text string from the specified value. * @param data String that specifies the nodeValue property of the text node. */ createTextNode(data: string): Text; createTouch(view: any, target: EventTarget, identifier: number, pageX: number, pageY: number, screenX: number, screenY: number): Touch; createTouchList(...touches: Touch[]): TouchList; /** * Creates a TreeWalker object that you can use to traverse filtered lists of nodes or elements in a document. * @param root The root element or node to start traversing on. * @param whatToShow The type of nodes or elements to appear in the node list. For more information, see whatToShow. * @param filter A custom NodeFilter function to use. * @param entityReferenceExpansion A flag that specifies whether entity reference nodes are expanded. */ createTreeWalker(root: Node, whatToShow?: number, filter?: NodeFilter, entityReferenceExpansion?: boolean): TreeWalker; /** * Returns the element for the specified x coordinate and the specified y coordinate. * @param x The x-offset * @param y The y-offset */ elementFromPoint(x: number, y: number): Element; evaluate(expression: string, contextNode: Node, resolver: XPathNSResolver, type: number, result: XPathResult): XPathResult; /** * Executes a command on the current document, current selection, or the given range. * @param commandId String that specifies the command to execute. This command can be any of the command identifiers that can be executed in script. * @param showUI Display the user interface, defaults to false. * @param value Value to assign. */ execCommand(commandId: string, showUI?: boolean, value?: any): boolean; /** * Displays help information for the given command identifier. * @param commandId Displays help information for the given command identifier. */ execCommandShowHelp(commandId: string): boolean; exitFullscreen(): void; exitPointerLock(): void; /** * Causes the element to receive the focus and executes the code specified by the onfocus event. */ focus(): void; /** * Returns a reference to the first object with the specified value of the ID or NAME attribute. * @param elementId String that specifies the ID value. Case-insensitive. */ getElementById(elementId: string): HTMLElement; getElementsByClassName(classNames: string): NodeListOf<Element>; /** * Gets a collection of objects based on the value of the NAME or ID attribute. * @param elementName Gets a collection of objects based on the value of the NAME or ID attribute. */ getElementsByName(elementName: string): NodeListOf<Element>; /** * Retrieves a collection of objects based on the specified element name. * @param name Specifies the name of an element. */ getElementsByTagName(tagname: "a"): NodeListOf<HTMLAnchorElement>; getElementsByTagName(tagname: "abbr"): NodeListOf<HTMLPhraseElement>; getElementsByTagName(tagname: "acronym"): NodeListOf<HTMLPhraseElement>; getElementsByTagName(tagname: "address"): NodeListOf<HTMLBlockElement>; getElementsByTagName(tagname: "applet"): NodeListOf<HTMLAppletElement>; getElementsByTagName(tagname: "area"): NodeListOf<HTMLAreaElement>; getElementsByTagName(tagname: "article"): NodeListOf<HTMLElement>; getElementsByTagName(tagname: "aside"): NodeListOf<HTMLElement>; getElementsByTagName(tagname: "audio"): NodeListOf<HTMLAudioElement>; getElementsByTagName(tagname: "b"): NodeListOf<HTMLPhraseElement>; getElementsByTagName(tagname: "base"): NodeListOf<HTMLBaseElement>; getElementsByTagName(tagname: "basefont"): NodeListOf<HTMLBaseFontElement>; getElementsByTagName(tagname: "bdo"): NodeListOf<HTMLPhraseElement>; getElementsByTagName(tagname: "big"): NodeListOf<HTMLPhraseElement>; getElementsByTagName(tagname: "blockquote"): NodeListOf<HTMLBlockElement>; getElementsByTagName(tagname: "body"): NodeListOf<HTMLBodyElement>; getElementsByTagName(tagname: "br"): NodeListOf<HTMLBRElement>; getElementsByTagName(tagname: "button"): NodeListOf<HTMLButtonElement>; getElementsByTagName(tagname: "canvas"): NodeListOf<HTMLCanvasElement>; getElementsByTagName(tagname: "caption"): NodeListOf<HTMLTableCaptionElement>; getElementsByTagName(tagname: "center"): NodeListOf<HTMLBlockElement>; getElementsByTagName(tagname: "circle"): NodeListOf<SVGCircleElement>; getElementsByTagName(tagname: "cite"): NodeListOf<HTMLPhraseElement>; getElementsByTagName(tagname: "clippath"): NodeListOf<SVGClipPathElement>; getElementsByTagName(tagname: "code"): NodeListOf<HTMLPhraseElement>; getElementsByTagName(tagname: "col"): NodeListOf<HTMLTableColElement>; getElementsByTagName(tagname: "colgroup"): NodeListOf<HTMLTableColElement>; getElementsByTagName(tagname: "datalist"): NodeListOf<HTMLDataListElement>; getElementsByTagName(tagname: "dd"): NodeListOf<HTMLDDElement>; getElementsByTagName(tagname: "defs"): NodeListOf<SVGDefsElement>; getElementsByTagName(tagname: "del"): NodeListOf<HTMLModElement>; getElementsByTagName(tagname: "desc"): NodeListOf<SVGDescElement>; getElementsByTagName(tagname: "dfn"): NodeListOf<HTMLPhraseElement>; getElementsByTagName(tagname: "dir"): NodeListOf<HTMLDirectoryElement>; getElementsByTagName(tagname: "div"): NodeListOf<HTMLDivElement>; getElementsByTagName(tagname: "dl"): NodeListOf<HTMLDListElement>; getElementsByTagName(tagname: "dt"): NodeListOf<HTMLDTElement>; getElementsByTagName(tagname: "ellipse"): NodeListOf<SVGEllipseElement>; getElementsByTagName(tagname: "em"): NodeListOf<HTMLPhraseElement>; getElementsByTagName(tagname: "embed"): NodeListOf<HTMLEmbedElement>; getElementsByTagName(tagname: "feblend"): NodeListOf<SVGFEBlendElement>; getElementsByTagName(tagname: "fecolormatrix"): NodeListOf<SVGFEColorMatrixElement>; getElementsByTagName(tagname: "fecomponenttransfer"): NodeListOf<SVGFEComponentTransferElement>; getElementsByTagName(tagname: "fecomposite"): NodeListOf<SVGFECompositeElement>; getElementsByTagName(tagname: "feconvolvematrix"): NodeListOf<SVGFEConvolveMatrixElement>; getElementsByTagName(tagname: "fediffuselighting"): NodeListOf<SVGFEDiffuseLightingElement>; getElementsByTagName(tagname: "fedisplacementmap"): NodeListOf<SVGFEDisplacementMapElement>; getElementsByTagName(tagname: "fedistantlight"): NodeListOf<SVGFEDistantLightElement>; getElementsByTagName(tagname: "feflood"): NodeListOf<SVGFEFloodElement>; getElementsByTagName(tagname: "fefunca"): NodeListOf<SVGFEFuncAElement>; getElementsByTagName(tagname: "fefuncb"): NodeListOf<SVGFEFuncBElement>; getElementsByTagName(tagname: "fefuncg"): NodeListOf<SVGFEFuncGElement>; getElementsByTagName(tagname: "fefuncr"): NodeListOf<SVGFEFuncRElement>; getElementsByTagName(tagname: "fegaussianblur"): NodeListOf<SVGFEGaussianBlurElement>; getElementsByTagName(tagname: "feimage"): NodeListOf<SVGFEImageElement>; getElementsByTagName(tagname: "femerge"): NodeListOf<SVGFEMergeElement>; getElementsByTagName(tagname: "femergenode"): NodeListOf<SVGFEMergeNodeElement>; getElementsByTagName(tagname: "femorphology"): NodeListOf<SVGFEMorphologyElement>; getElementsByTagName(tagname: "feoffset"): NodeListOf<SVGFEOffsetElement>; getElementsByTagName(tagname: "fepointlight"): NodeListOf<SVGFEPointLightElement>; getElementsByTagName(tagname: "fespecularlighting"): NodeListOf<SVGFESpecularLightingElement>; getElementsByTagName(tagname: "fespotlight"): NodeListOf<SVGFESpotLightElement>; getElementsByTagName(tagname: "fetile"): NodeListOf<SVGFETileElement>; getElementsByTagName(tagname: "feturbulence"): NodeListOf<SVGFETurbulenceElement>; getElementsByTagName(tagname: "fieldset"): NodeListOf<HTMLFieldSetElement>; getElementsByTagName(tagname: "figcaption"): NodeListOf<HTMLElement>; getElementsByTagName(tagname: "figure"): NodeListOf<HTMLElement>; getElementsByTagName(tagname: "filter"): NodeListOf<SVGFilterElement>; getElementsByTagName(tagname: "font"): NodeListOf<HTMLFontElement>; getElementsByTagName(tagname: "footer"): NodeListOf<HTMLElement>; getElementsByTagName(tagname: "foreignobject"): NodeListOf<SVGForeignObjectElement>; getElementsByTagName(tagname: "form"): NodeListOf<HTMLFormElement>; getElementsByTagName(tagname: "frame"): NodeListOf<HTMLFrameElement>; getElementsByTagName(tagname: "frameset"): NodeListOf<HTMLFrameSetElement>; getElementsByTagName(tagname: "g"): NodeListOf<SVGGElement>; getElementsByTagName(tagname: "h1"): NodeListOf<HTMLHeadingElement>; getElementsByTagName(tagname: "h2"): NodeListOf<HTMLHeadingElement>; getElementsByTagName(tagname: "h3"): NodeListOf<HTMLHeadingElement>; getElementsByTagName(tagname: "h4"): NodeListOf<HTMLHeadingElement>; getElementsByTagName(tagname: "h5"): NodeListOf<HTMLHeadingElement>; getElementsByTagName(tagname: "h6"): NodeListOf<HTMLHeadingElement>; getElementsByTagName(tagname: "head"): NodeListOf<HTMLHeadElement>; getElementsByTagName(tagname: "header"): NodeListOf<HTMLElement>; getElementsByTagName(tagname: "hgroup"): NodeListOf<HTMLElement>; getElementsByTagName(tagname: "hr"): NodeListOf<HTMLHRElement>; getElementsByTagName(tagname: "html"): NodeListOf<HTMLHtmlElement>; getElementsByTagName(tagname: "i"): NodeListOf<HTMLPhraseElement>; getElementsByTagName(tagname: "iframe"): NodeListOf<HTMLIFrameElement>; getElementsByTagName(tagname: "image"): NodeListOf<SVGImageElement>; getElementsByTagName(tagname: "img"): NodeListOf<HTMLImageElement>; getElementsByTagName(tagname: "input"): NodeListOf<HTMLInputElement>; getElementsByTagName(tagname: "ins"): NodeListOf<HTMLModElement>; getElementsByTagName(tagname: "isindex"): NodeListOf<HTMLIsIndexElement>; getElementsByTagName(tagname: "kbd"): NodeListOf<HTMLPhraseElement>; getElementsByTagName(tagname: "keygen"): NodeListOf<HTMLBlockElement>; getElementsByTagName(tagname: "label"): NodeListOf<HTMLLabelElement>; getElementsByTagName(tagname: "legend"): NodeListOf<HTMLLegendElement>; getElementsByTagName(tagname: "li"): NodeListOf<HTMLLIElement>; getElementsByTagName(tagname: "line"): NodeListOf<SVGLineElement>; getElementsByTagName(tagname: "lineargradient"): NodeListOf<SVGLinearGradientElement>; getElementsByTagName(tagname: "link"): NodeListOf<HTMLLinkElement>; getElementsByTagName(tagname: "listing"): NodeListOf<HTMLBlockElement>; getElementsByTagName(tagname: "map"): NodeListOf<HTMLMapElement>; getElementsByTagName(tagname: "mark"): NodeListOf<HTMLElement>; getElementsByTagName(tagname: "marker"): NodeListOf<SVGMarkerElement>; getElementsByTagName(tagname: "marquee"): NodeListOf<HTMLMarqueeElement>; getElementsByTagName(tagname: "mask"): NodeListOf<SVGMaskElement>; getElementsByTagName(tagname: "menu"): NodeListOf<HTMLMenuElement>; getElementsByTagName(tagname: "meta"): NodeListOf<HTMLMetaElement>; getElementsByTagName(tagname: "metadata"): NodeListOf<SVGMetadataElement>; getElementsByTagName(tagname: "nav"): NodeListOf<HTMLElement>; getElementsByTagName(tagname: "nextid"): NodeListOf<HTMLNextIdElement>; getElementsByTagName(tagname: "nobr"): NodeListOf<HTMLPhraseElement>; getElementsByTagName(tagname: "noframes"): NodeListOf<HTMLElement>; getElementsByTagName(tagname: "noscript"): NodeListOf<HTMLElement>; getElementsByTagName(tagname: "object"): NodeListOf<HTMLObjectElement>; getElementsByTagName(tagname: "ol"): NodeListOf<HTMLOListElement>; getElementsByTagName(tagname: "optgroup"): NodeListOf<HTMLOptGroupElement>; getElementsByTagName(tagname: "option"): NodeListOf<HTMLOptionElement>; getElementsByTagName(tagname: "p"): NodeListOf<HTMLParagraphElement>; getElementsByTagName(tagname: "param"): NodeListOf<HTMLParamElement>; getElementsByTagName(tagname: "path"): NodeListOf<SVGPathElement>; getElementsByTagName(tagname: "pattern"): NodeListOf<SVGPatternElement>; getElementsByTagName(tagname: "plaintext"): NodeListOf<HTMLBlockElement>; getElementsByTagName(tagname: "polygon"): NodeListOf<SVGPolygonElement>; getElementsByTagName(tagname: "polyline"): NodeListOf<SVGPolylineElement>; getElementsByTagName(tagname: "pre"): NodeListOf<HTMLPreElement>; getElementsByTagName(tagname: "progress"): NodeListOf<HTMLProgressElement>; getElementsByTagName(tagname: "q"): NodeListOf<HTMLQuoteElement>; getElementsByTagName(tagname: "radialgradient"): NodeListOf<SVGRadialGradientElement>; getElementsByTagName(tagname: "rect"): NodeListOf<SVGRectElement>; getElementsByTagName(tagname: "rt"): NodeListOf<HTMLPhraseElement>; getElementsByTagName(tagname: "ruby"): NodeListOf<HTMLPhraseElement>; getElementsByTagName(tagname: "s"): NodeListOf<HTMLPhraseElement>; getElementsByTagName(tagname: "samp"): NodeListOf<HTMLPhraseElement>; getElementsByTagName(tagname: "script"): NodeListOf<HTMLScriptElement>; getElementsByTagName(tagname: "section"): NodeListOf<HTMLElement>; getElementsByTagName(tagname: "select"): NodeListOf<HTMLSelectElement>; getElementsByTagName(tagname: "small"): NodeListOf<HTMLPhraseElement>; getElementsByTagName(tagname: "source"): NodeListOf<HTMLSourceElement>; getElementsByTagName(tagname: "span"): NodeListOf<HTMLSpanElement>; getElementsByTagName(tagname: "stop"): NodeListOf<SVGStopElement>; getElementsByTagName(tagname: "strike"): NodeListOf<HTMLPhraseElement>; getElementsByTagName(tagname: "strong"): NodeListOf<HTMLPhraseElement>; getElementsByTagName(tagname: "style"): NodeListOf<HTMLStyleElement>; getElementsByTagName(tagname: "sub"): NodeListOf<HTMLPhraseElement>; getElementsByTagName(tagname: "sup"): NodeListOf<HTMLPhraseElement>; getElementsByTagName(tagname: "svg"): NodeListOf<SVGSVGElement>; getElementsByTagName(tagname: "switch"): NodeListOf<SVGSwitchElement>; getElementsByTagName(tagname: "symbol"): NodeListOf<SVGSymbolElement>; getElementsByTagName(tagname: "table"): NodeListOf<HTMLTableElement>; getElementsByTagName(tagname: "tbody"): NodeListOf<HTMLTableSectionElement>; getElementsByTagName(tagname: "td"): NodeListOf<HTMLTableDataCellElement>; getElementsByTagName(tagname: "text"): NodeListOf<SVGTextElement>; getElementsByTagName(tagname: "textpath"): NodeListOf<SVGTextPathElement>; getElementsByTagName(tagname: "textarea"): NodeListOf<HTMLTextAreaElement>; getElementsByTagName(tagname: "tfoot"): NodeListOf<HTMLTableSectionElement>; getElementsByTagName(tagname: "th"): NodeListOf<HTMLTableHeaderCellElement>; getElementsByTagName(tagname: "thead"): NodeListOf<HTMLTableSectionElement>; getElementsByTagName(tagname: "title"): NodeListOf<HTMLTitleElement>; getElementsByTagName(tagname: "tr"): NodeListOf<HTMLTableRowElement>; getElementsByTagName(tagname: "track"): NodeListOf<HTMLTrackElement>; getElementsByTagName(tagname: "tspan"): NodeListOf<SVGTSpanElement>; getElementsByTagName(tagname: "tt"): NodeListOf<HTMLPhraseElement>; getElementsByTagName(tagname: "u"): NodeListOf<HTMLPhraseElement>; getElementsByTagName(tagname: "ul"): NodeListOf<HTMLUListElement>; getElementsByTagName(tagname: "use"): NodeListOf<SVGUseElement>; getElementsByTagName(tagname: "var"): NodeListOf<HTMLPhraseElement>; getElementsByTagName(tagname: "video"): NodeListOf<HTMLVideoElement>; getElementsByTagName(tagname: "view"): NodeListOf<SVGViewElement>; getElementsByTagName(tagname: "wbr"): NodeListOf<HTMLElement>; getElementsByTagName(tagname: "x-ms-webview"): NodeListOf<MSHTMLWebViewElement>; getElementsByTagName(tagname: "xmp"): NodeListOf<HTMLBlockElement>; getElementsByTagName(tagname: string): NodeListOf<Element>; getElementsByTagNameNS(namespaceURI: string, localName: string): NodeListOf<Element>; /** * Returns an object representing the current selection of the document that is loaded into the object displaying a webpage. */ getSelection(): Selection; /** * Gets a value indicating whether the object currently has focus. */ hasFocus(): boolean; importNode(importedNode: Node, deep: boolean): Node; msElementsFromPoint(x: number, y: number): NodeList; msElementsFromRect(left: number, top: number, width: number, height: number): NodeList; msGetPrintDocumentForNamedFlow(flowName: string): Document; msSetPrintDocumentUriForNamedFlow(flowName: string, uri: string): void; /** * Opens a new window and loads a document specified by a given URL. Also, opens a new window that uses the url parameter and the name parameter to collect the output of the write method and the writeln method. * @param url Specifies a MIME type for the document. * @param name Specifies the name of the window. This name is used as the value for the TARGET attribute on a form or an anchor element. * @param features Contains a list of items separated by commas. Each item consists of an option and a value, separated by an equals sign (for example, "fullscreen=yes, toolbar=yes"). The following values are supported. * @param replace Specifies whether the existing entry for the document is replaced in the history list. */ open(url?: string, name?: string, features?: string, replace?: boolean): Document; /** * Returns a Boolean value that indicates whether a specified command can be successfully executed using execCommand, given the current state of the document. * @param commandId Specifies a command identifier. */ queryCommandEnabled(commandId: string): boolean; /** * Returns a Boolean value that indicates whether the specified command is in the indeterminate state. * @param commandId String that specifies a command identifier. */ queryCommandIndeterm(commandId: string): boolean; /** * Returns a Boolean value that indicates the current state of the command. * @param commandId String that specifies a command identifier. */ queryCommandState(commandId: string): boolean; /** * Returns a Boolean value that indicates whether the current command is supported on the current range. * @param commandId Specifies a command identifier. */ queryCommandSupported(commandId: string): boolean; /** * Retrieves the string associated with a command. * @param commandId String that contains the identifier of a command. This can be any command identifier given in the list of Command Identifiers. */ queryCommandText(commandId: string): string; /** * Returns the current value of the document, range, or current selection for the given command. * @param commandId String that specifies a command identifier. */ queryCommandValue(commandId: string): string; releaseEvents(): void; /** * Allows updating the print settings for the page. */ updateSettings(): void; webkitCancelFullScreen(): void; webkitExitFullscreen(): void; /** * Writes one or more HTML expressions to a document in the specified window. * @param content Specifies the text and HTML tags to write. */ write(...content: string[]): void; /** * Writes one or more HTML expressions, followed by a carriage return, to a document in the specified window. * @param content The text and HTML tags to write. */ writeln(...content: string[]): void; addEventListener(type: "MSContentZoom", listener: (ev: UIEvent) => any, useCapture?: boolean): void; addEventListener(type: "MSGestureChange", listener: (ev: MSGestureEvent) => any, useCapture?: boolean): void; addEventListener(type: "MSGestureDoubleTap", listener: (ev: MSGestureEvent) => any, useCapture?: boolean): void; addEventListener(type: "MSGestureEnd", listener: (ev: MSGestureEvent) => any, useCapture?: boolean): void; addEventListener(type: "MSGestureHold", listener: (ev: MSGestureEvent) => any, useCapture?: boolean): void; addEventListener(type: "MSGestureStart", listener: (ev: MSGestureEvent) => any, useCapture?: boolean): void; addEventListener(type: "MSGestureTap", listener: (ev: MSGestureEvent) => any, useCapture?: boolean): void; addEventListener(type: "MSInertiaStart", listener: (ev: MSGestureEvent) => any, useCapture?: boolean): void; addEventListener(type: "MSManipulationStateChanged", listener: (ev: MSManipulationEvent) => any, useCapture?: boolean): void; addEventListener(type: "MSPointerCancel", listener: (ev: MSPointerEvent) => any, useCapture?: boolean): void; addEventListener(type: "MSPointerDown", listener: (ev: MSPointerEvent) => any, useCapture?: boolean): void; addEventListener(type: "MSPointerEnter", listener: (ev: MSPointerEvent) => any, useCapture?: boolean): void; addEventListener(type: "MSPointerLeave", listener: (ev: MSPointerEvent) => any, useCapture?: boolean): void; addEventListener(type: "MSPointerMove", listener: (ev: MSPointerEvent) => any, useCapture?: boolean): void; addEventListener(type: "MSPointerOut", listener: (ev: MSPointerEvent) => any, useCapture?: boolean): void; addEventListener(type: "MSPointerOver", listener: (ev: MSPointerEvent) => any, useCapture?: boolean): void; addEventListener(type: "MSPointerUp", listener: (ev: MSPointerEvent) => any, useCapture?: boolean): void; addEventListener(type: "abort", listener: (ev: UIEvent) => any, useCapture?: boolean): void; addEventListener(type: "activate", listener: (ev: UIEvent) => any, useCapture?: boolean): void; addEventListener(type: "beforeactivate", listener: (ev: UIEvent) => any, useCapture?: boolean): void; addEventListener(type: "beforedeactivate", listener: (ev: UIEvent) => any, useCapture?: boolean): void; addEventListener(type: "blur", listener: (ev: FocusEvent) => any, useCapture?: boolean): void; addEventListener(type: "canplay", listener: (ev: Event) => any, useCapture?: boolean): void; addEventListener(type: "canplaythrough", listener: (ev: Event) => any, useCapture?: boolean): void; addEventListener(type: "change", listener: (ev: Event) => any, useCapture?: boolean): void; addEventListener(type: "click", listener: (ev: MouseEvent) => any, useCapture?: boolean): void; addEventListener(type: "contextmenu", listener: (ev: PointerEvent) => any, useCapture?: boolean): void; addEventListener(type: "dblclick", listener: (ev: MouseEvent) => any, useCapture?: boolean): void; addEventListener(type: "deactivate", listener: (ev: UIEvent) => any, useCapture?: boolean): void; addEventListener(type: "drag", listener: (ev: DragEvent) => any, useCapture?: boolean): void; addEventListener(type: "dragend", listener: (ev: DragEvent) => any, useCapture?: boolean): void; addEventListener(type: "dragenter", listener: (ev: DragEvent) => any, useCapture?: boolean): void; addEventListener(type: "dragleave", listener: (ev: DragEvent) => any, useCapture?: boolean): void; addEventListener(type: "dragover", listener: (ev: DragEvent) => any, useCapture?: boolean): void; addEventListener(type: "dragstart", listener: (ev: DragEvent) => any, useCapture?: boolean): void; addEventListener(type: "drop", listener: (ev: DragEvent) => any, useCapture?: boolean): void; addEventListener(type: "durationchange", listener: (ev: Event) => any, useCapture?: boolean): void; addEventListener(type: "emptied", listener: (ev: Event) => any, useCapture?: boolean): void; addEventListener(type: "ended", listener: (ev: Event) => any, useCapture?: boolean): void; addEventListener(type: "error", listener: (ev: ErrorEvent) => any, useCapture?: boolean): void; addEventListener(type: "focus", listener: (ev: FocusEvent) => any, useCapture?: boolean): void; addEventListener(type: "fullscreenchange", listener: (ev: Event) => any, useCapture?: boolean): void; addEventListener(type: "fullscreenerror", listener: (ev: Event) => any, useCapture?: boolean): void; addEventListener(type: "input", listener: (ev: Event) => any, useCapture?: boolean): void; addEventListener(type: "keydown", listener: (ev: KeyboardEvent) => any, useCapture?: boolean): void; addEventListener(type: "keypress", listener: (ev: KeyboardEvent) => any, useCapture?: boolean): void; addEventListener(type: "keyup", listener: (ev: KeyboardEvent) => any, useCapture?: boolean): void; addEventListener(type: "load", listener: (ev: Event) => any, useCapture?: boolean): void; addEventListener(type: "loadeddata", listener: (ev: Event) => any, useCapture?: boolean): void; addEventListener(type: "loadedmetadata", listener: (ev: Event) => any, useCapture?: boolean): void; addEventListener(type: "loadstart", listener: (ev: Event) => any, useCapture?: boolean): void; addEventListener(type: "mousedown", listener: (ev: MouseEvent) => any, useCapture?: boolean): void; addEventListener(type: "mousemove", listener: (ev: MouseEvent) => any, useCapture?: boolean): void; addEventListener(type: "mouseout", listener: (ev: MouseEvent) => any, useCapture?: boolean): void; addEventListener(type: "mouseover", listener: (ev: MouseEvent) => any, useCapture?: boolean): void; addEventListener(type: "mouseup", listener: (ev: MouseEvent) => any, useCapture?: boolean): void; addEventListener(type: "mousewheel", listener: (ev: MouseWheelEvent) => any, useCapture?: boolean): void; addEventListener(type: "mssitemodejumplistitemremoved", listener: (ev: MSSiteModeEvent) => any, useCapture?: boolean): void; addEventListener(type: "msthumbnailclick", listener: (ev: MSSiteModeEvent) => any, useCapture?: boolean): void; addEventListener(type: "pause", listener: (ev: Event) => any, useCapture?: boolean): void; addEventListener(type: "play", listener: (ev: Event) => any, useCapture?: boolean): void; addEventListener(type: "playing", listener: (ev: Event) => any, useCapture?: boolean): void; addEventListener(type: "pointercancel", listener: (ev: PointerEvent) => any, useCapture?: boolean): void; addEventListener(type: "pointerdown", listener: (ev: PointerEvent) => any, useCapture?: boolean): void; addEventListener(type: "pointerenter", listener: (ev: PointerEvent) => any, useCapture?: boolean): void; addEventListener(type: "pointerleave", listener: (ev: PointerEvent) => any, useCapture?: boolean): void; addEventListener(type: "pointerlockchange", listener: (ev: Event) => any, useCapture?: boolean): void; addEventListener(type: "pointerlockerror", listener: (ev: Event) => any, useCapture?: boolean): void; addEventListener(type: "pointermove", listener: (ev: PointerEvent) => any, useCapture?: boolean): void; addEventListener(type: "pointerout", listener: (ev: PointerEvent) => any, useCapture?: boolean): void; addEventListener(type: "pointerover", listener: (ev: PointerEvent) => any, useCapture?: boolean): void; addEventListener(type: "pointerup", listener: (ev: PointerEvent) => any, useCapture?: boolean): void; addEventListener(type: "progress", listener: (ev: ProgressEvent) => any, useCapture?: boolean): void; addEventListener(type: "ratechange", listener: (ev: Event) => any, useCapture?: boolean): void; addEventListener(type: "readystatechange", listener: (ev: ProgressEvent) => any, useCapture?: boolean): void; addEventListener(type: "reset", listener: (ev: Event) => any, useCapture?: boolean): void; addEventListener(type: "scroll", listener: (ev: UIEvent) => any, useCapture?: boolean): void; addEventListener(type: "seeked", listener: (ev: Event) => any, useCapture?: boolean): void; addEventListener(type: "seeking", listener: (ev: Event) => any, useCapture?: boolean): void; addEventListener(type: "select", listener: (ev: UIEvent) => any, useCapture?: boolean): void; addEventListener(type: "selectstart", listener: (ev: Event) => any, useCapture?: boolean): void; addEventListener(type: "stalled", listener: (ev: Event) => any, useCapture?: boolean): void; addEventListener(type: "stop", listener: (ev: Event) => any, useCapture?: boolean): void; addEventListener(type: "submit", listener: (ev: Event) => any, useCapture?: boolean): void; addEventListener(type: "suspend", listener: (ev: Event) => any, useCapture?: boolean): void; addEventListener(type: "timeupdate", listener: (ev: Event) => any, useCapture?: boolean): void; addEventListener(type: "touchcancel", listener: (ev: TouchEvent) => any, useCapture?: boolean): void; addEventListener(type: "touchend", listener: (ev: TouchEvent) => any, useCapture?: boolean): void; addEventListener(type: "touchmove", listener: (ev: TouchEvent) => any, useCapture?: boolean): void; addEventListener(type: "touchstart", listener: (ev: TouchEvent) => any, useCapture?: boolean): void; addEventListener(type: "volumechange", listener: (ev: Event) => any, useCapture?: boolean): void; addEventListener(type: "waiting", listener: (ev: Event) => any, useCapture?: boolean): void; addEventListener(type: "webkitfullscreenchange", listener: (ev: Event) => any, useCapture?: boolean): void; addEventListener(type: "webkitfullscreenerror", listener: (ev: Event) => any, useCapture?: boolean): void; addEventListener(type: "wheel", listener: (ev: WheelEvent) => any, useCapture?: boolean): void; addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; } declare var Document: { prototype: Document; new(): Document; } interface DocumentFragment extends Node, NodeSelector { addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; } declare var DocumentFragment: { prototype: DocumentFragment; new(): DocumentFragment; } interface DocumentType extends Node, ChildNode { entities: NamedNodeMap; internalSubset: string; name: string; notations: NamedNodeMap; publicId: string; systemId: string; addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; } declare var DocumentType: { prototype: DocumentType; new(): DocumentType; } interface DragEvent extends MouseEvent { dataTransfer: DataTransfer; initDragEvent(typeArg: string, canBubbleArg: boolean, cancelableArg: boolean, viewArg: Window, detailArg: number, screenXArg: number, screenYArg: number, clientXArg: number, clientYArg: number, ctrlKeyArg: boolean, altKeyArg: boolean, shiftKeyArg: boolean, metaKeyArg: boolean, buttonArg: number, relatedTargetArg: EventTarget, dataTransferArg: DataTransfer): void; msConvertURL(file: File, targetType: string, targetURL?: string): void; } declare var DragEvent: { prototype: DragEvent; new(): DragEvent; } interface DynamicsCompressorNode extends AudioNode { attack: AudioParam; knee: AudioParam; ratio: AudioParam; reduction: AudioParam; release: AudioParam; threshold: AudioParam; } declare var DynamicsCompressorNode: { prototype: DynamicsCompressorNode; new(): DynamicsCompressorNode; } interface EXT_texture_filter_anisotropic { MAX_TEXTURE_MAX_ANISOTROPY_EXT: number; TEXTURE_MAX_ANISOTROPY_EXT: number; } declare var EXT_texture_filter_anisotropic: { prototype: EXT_texture_filter_anisotropic; new(): EXT_texture_filter_anisotropic; MAX_TEXTURE_MAX_ANISOTROPY_EXT: number; TEXTURE_MAX_ANISOTROPY_EXT: number; } interface Element extends Node, GlobalEventHandlers, ElementTraversal, NodeSelector, ChildNode { classList: DOMTokenList; clientHeight: number; clientLeft: number; clientTop: number; clientWidth: number; msContentZoomFactor: number; msRegionOverflow: string; onariarequest: (ev: AriaRequestEvent) => any; oncommand: (ev: CommandEvent) => any; ongotpointercapture: (ev: PointerEvent) => any; onlostpointercapture: (ev: PointerEvent) => any; onmsgesturechange: (ev: MSGestureEvent) => any; onmsgesturedoubletap: (ev: MSGestureEvent) => any; onmsgestureend: (ev: MSGestureEvent) => any; onmsgesturehold: (ev: MSGestureEvent) => any; onmsgesturestart: (ev: MSGestureEvent) => any; onmsgesturetap: (ev: MSGestureEvent) => any; onmsgotpointercapture: (ev: MSPointerEvent) => any; onmsinertiastart: (ev: MSGestureEvent) => any; onmslostpointercapture: (ev: MSPointerEvent) => any; onmspointercancel: (ev: MSPointerEvent) => any; onmspointerdown: (ev: MSPointerEvent) => any; onmspointerenter: (ev: MSPointerEvent) => any; onmspointerleave: (ev: MSPointerEvent) => any; onmspointermove: (ev: MSPointerEvent) => any; onmspointerout: (ev: MSPointerEvent) => any; onmspointerover: (ev: MSPointerEvent) => any; onmspointerup: (ev: MSPointerEvent) => any; ontouchcancel: (ev: TouchEvent) => any; ontouchend: (ev: TouchEvent) => any; ontouchmove: (ev: TouchEvent) => any; ontouchstart: (ev: TouchEvent) => any; onwebkitfullscreenchange: (ev: Event) => any; onwebkitfullscreenerror: (ev: Event) => any; scrollHeight: number; scrollLeft: number; scrollTop: number; scrollWidth: number; tagName: string; id: string; className: string; getAttribute(name?: string): string; getAttributeNS(namespaceURI: string, localName: string): string; getAttributeNode(name: string): Attr; getAttributeNodeNS(namespaceURI: string, localName: string): Attr; getBoundingClientRect(): ClientRect; getClientRects(): ClientRectList; getElementsByTagName(name: "a"): NodeListOf<HTMLAnchorElement>; getElementsByTagName(name: "abbr"): NodeListOf<HTMLPhraseElement>; getElementsByTagName(name: "acronym"): NodeListOf<HTMLPhraseElement>; getElementsByTagName(name: "address"): NodeListOf<HTMLBlockElement>; getElementsByTagName(name: "applet"): NodeListOf<HTMLAppletElement>; getElementsByTagName(name: "area"): NodeListOf<HTMLAreaElement>; getElementsByTagName(name: "article"): NodeListOf<HTMLElement>; getElementsByTagName(name: "aside"): NodeListOf<HTMLElement>; getElementsByTagName(name: "audio"): NodeListOf<HTMLAudioElement>; getElementsByTagName(name: "b"): NodeListOf<HTMLPhraseElement>; getElementsByTagName(name: "base"): NodeListOf<HTMLBaseElement>; getElementsByTagName(name: "basefont"): NodeListOf<HTMLBaseFontElement>; getElementsByTagName(name: "bdo"): NodeListOf<HTMLPhraseElement>; getElementsByTagName(name: "big"): NodeListOf<HTMLPhraseElement>; getElementsByTagName(name: "blockquote"): NodeListOf<HTMLBlockElement>; getElementsByTagName(name: "body"): NodeListOf<HTMLBodyElement>; getElementsByTagName(name: "br"): NodeListOf<HTMLBRElement>; getElementsByTagName(name: "button"): NodeListOf<HTMLButtonElement>; getElementsByTagName(name: "canvas"): NodeListOf<HTMLCanvasElement>; getElementsByTagName(name: "caption"): NodeListOf<HTMLTableCaptionElement>; getElementsByTagName(name: "center"): NodeListOf<HTMLBlockElement>; getElementsByTagName(name: "circle"): NodeListOf<SVGCircleElement>; getElementsByTagName(name: "cite"): NodeListOf<HTMLPhraseElement>; getElementsByTagName(name: "clippath"): NodeListOf<SVGClipPathElement>; getElementsByTagName(name: "code"): NodeListOf<HTMLPhraseElement>; getElementsByTagName(name: "col"): NodeListOf<HTMLTableColElement>; getElementsByTagName(name: "colgroup"): NodeListOf<HTMLTableColElement>; getElementsByTagName(name: "datalist"): NodeListOf<HTMLDataListElement>; getElementsByTagName(name: "dd"): NodeListOf<HTMLDDElement>; getElementsByTagName(name: "defs"): NodeListOf<SVGDefsElement>; getElementsByTagName(name: "del"): NodeListOf<HTMLModElement>; getElementsByTagName(name: "desc"): NodeListOf<SVGDescElement>; getElementsByTagName(name: "dfn"): NodeListOf<HTMLPhraseElement>; getElementsByTagName(name: "dir"): NodeListOf<HTMLDirectoryElement>; getElementsByTagName(name: "div"): NodeListOf<HTMLDivElement>; getElementsByTagName(name: "dl"): NodeListOf<HTMLDListElement>; getElementsByTagName(name: "dt"): NodeListOf<HTMLDTElement>; getElementsByTagName(name: "ellipse"): NodeListOf<SVGEllipseElement>; getElementsByTagName(name: "em"): NodeListOf<HTMLPhraseElement>; getElementsByTagName(name: "embed"): NodeListOf<HTMLEmbedElement>; getElementsByTagName(name: "feblend"): NodeListOf<SVGFEBlendElement>; getElementsByTagName(name: "fecolormatrix"): NodeListOf<SVGFEColorMatrixElement>; getElementsByTagName(name: "fecomponenttransfer"): NodeListOf<SVGFEComponentTransferElement>; getElementsByTagName(name: "fecomposite"): NodeListOf<SVGFECompositeElement>; getElementsByTagName(name: "feconvolvematrix"): NodeListOf<SVGFEConvolveMatrixElement>; getElementsByTagName(name: "fediffuselighting"): NodeListOf<SVGFEDiffuseLightingElement>; getElementsByTagName(name: "fedisplacementmap"): NodeListOf<SVGFEDisplacementMapElement>; getElementsByTagName(name: "fedistantlight"): NodeListOf<SVGFEDistantLightElement>; getElementsByTagName(name: "feflood"): NodeListOf<SVGFEFloodElement>; getElementsByTagName(name: "fefunca"): NodeListOf<SVGFEFuncAElement>; getElementsByTagName(name: "fefuncb"): NodeListOf<SVGFEFuncBElement>; getElementsByTagName(name: "fefuncg"): NodeListOf<SVGFEFuncGElement>; getElementsByTagName(name: "fefuncr"): NodeListOf<SVGFEFuncRElement>; getElementsByTagName(name: "fegaussianblur"): NodeListOf<SVGFEGaussianBlurElement>; getElementsByTagName(name: "feimage"): NodeListOf<SVGFEImageElement>; getElementsByTagName(name: "femerge"): NodeListOf<SVGFEMergeElement>; getElementsByTagName(name: "femergenode"): NodeListOf<SVGFEMergeNodeElement>; getElementsByTagName(name: "femorphology"): NodeListOf<SVGFEMorphologyElement>; getElementsByTagName(name: "feoffset"): NodeListOf<SVGFEOffsetElement>; getElementsByTagName(name: "fepointlight"): NodeListOf<SVGFEPointLightElement>; getElementsByTagName(name: "fespecularlighting"): NodeListOf<SVGFESpecularLightingElement>; getElementsByTagName(name: "fespotlight"): NodeListOf<SVGFESpotLightElement>; getElementsByTagName(name: "fetile"): NodeListOf<SVGFETileElement>; getElementsByTagName(name: "feturbulence"): NodeListOf<SVGFETurbulenceElement>; getElementsByTagName(name: "fieldset"): NodeListOf<HTMLFieldSetElement>; getElementsByTagName(name: "figcaption"): NodeListOf<HTMLElement>; getElementsByTagName(name: "figure"): NodeListOf<HTMLElement>; getElementsByTagName(name: "filter"): NodeListOf<SVGFilterElement>; getElementsByTagName(name: "font"): NodeListOf<HTMLFontElement>; getElementsByTagName(name: "footer"): NodeListOf<HTMLElement>; getElementsByTagName(name: "foreignobject"): NodeListOf<SVGForeignObjectElement>; getElementsByTagName(name: "form"): NodeListOf<HTMLFormElement>; getElementsByTagName(name: "frame"): NodeListOf<HTMLFrameElement>; getElementsByTagName(name: "frameset"): NodeListOf<HTMLFrameSetElement>; getElementsByTagName(name: "g"): NodeListOf<SVGGElement>; getElementsByTagName(name: "h1"): NodeListOf<HTMLHeadingElement>; getElementsByTagName(name: "h2"): NodeListOf<HTMLHeadingElement>; getElementsByTagName(name: "h3"): NodeListOf<HTMLHeadingElement>; getElementsByTagName(name: "h4"): NodeListOf<HTMLHeadingElement>; getElementsByTagName(name: "h5"): NodeListOf<HTMLHeadingElement>; getElementsByTagName(name: "h6"): NodeListOf<HTMLHeadingElement>; getElementsByTagName(name: "head"): NodeListOf<HTMLHeadElement>; getElementsByTagName(name: "header"): NodeListOf<HTMLElement>; getElementsByTagName(name: "hgroup"): NodeListOf<HTMLElement>; getElementsByTagName(name: "hr"): NodeListOf<HTMLHRElement>; getElementsByTagName(name: "html"): NodeListOf<HTMLHtmlElement>; getElementsByTagName(name: "i"): NodeListOf<HTMLPhraseElement>; getElementsByTagName(name: "iframe"): NodeListOf<HTMLIFrameElement>; getElementsByTagName(name: "image"): NodeListOf<SVGImageElement>; getElementsByTagName(name: "img"): NodeListOf<HTMLImageElement>; getElementsByTagName(name: "input"): NodeListOf<HTMLInputElement>; getElementsByTagName(name: "ins"): NodeListOf<HTMLModElement>; getElementsByTagName(name: "isindex"): NodeListOf<HTMLIsIndexElement>; getElementsByTagName(name: "kbd"): NodeListOf<HTMLPhraseElement>; getElementsByTagName(name: "keygen"): NodeListOf<HTMLBlockElement>; getElementsByTagName(name: "label"): NodeListOf<HTMLLabelElement>; getElementsByTagName(name: "legend"): NodeListOf<HTMLLegendElement>; getElementsByTagName(name: "li"): NodeListOf<HTMLLIElement>; getElementsByTagName(name: "line"): NodeListOf<SVGLineElement>; getElementsByTagName(name: "lineargradient"): NodeListOf<SVGLinearGradientElement>; getElementsByTagName(name: "link"): NodeListOf<HTMLLinkElement>; getElementsByTagName(name: "listing"): NodeListOf<HTMLBlockElement>; getElementsByTagName(name: "map"): NodeListOf<HTMLMapElement>; getElementsByTagName(name: "mark"): NodeListOf<HTMLElement>; getElementsByTagName(name: "marker"): NodeListOf<SVGMarkerElement>; getElementsByTagName(name: "marquee"): NodeListOf<HTMLMarqueeElement>; getElementsByTagName(name: "mask"): NodeListOf<SVGMaskElement>; getElementsByTagName(name: "menu"): NodeListOf<HTMLMenuElement>; getElementsByTagName(name: "meta"): NodeListOf<HTMLMetaElement>; getElementsByTagName(name: "metadata"): NodeListOf<SVGMetadataElement>; getElementsByTagName(name: "nav"): NodeListOf<HTMLElement>; getElementsByTagName(name: "nextid"): NodeListOf<HTMLNextIdElement>; getElementsByTagName(name: "nobr"): NodeListOf<HTMLPhraseElement>; getElementsByTagName(name: "noframes"): NodeListOf<HTMLElement>; getElementsByTagName(name: "noscript"): NodeListOf<HTMLElement>; getElementsByTagName(name: "object"): NodeListOf<HTMLObjectElement>; getElementsByTagName(name: "ol"): NodeListOf<HTMLOListElement>; getElementsByTagName(name: "optgroup"): NodeListOf<HTMLOptGroupElement>; getElementsByTagName(name: "option"): NodeListOf<HTMLOptionElement>; getElementsByTagName(name: "p"): NodeListOf<HTMLParagraphElement>; getElementsByTagName(name: "param"): NodeListOf<HTMLParamElement>; getElementsByTagName(name: "path"): NodeListOf<SVGPathElement>; getElementsByTagName(name: "pattern"): NodeListOf<SVGPatternElement>; getElementsByTagName(name: "plaintext"): NodeListOf<HTMLBlockElement>; getElementsByTagName(name: "polygon"): NodeListOf<SVGPolygonElement>; getElementsByTagName(name: "polyline"): NodeListOf<SVGPolylineElement>; getElementsByTagName(name: "pre"): NodeListOf<HTMLPreElement>; getElementsByTagName(name: "progress"): NodeListOf<HTMLProgressElement>; getElementsByTagName(name: "q"): NodeListOf<HTMLQuoteElement>; getElementsByTagName(name: "radialgradient"): NodeListOf<SVGRadialGradientElement>; getElementsByTagName(name: "rect"): NodeListOf<SVGRectElement>; getElementsByTagName(name: "rt"): NodeListOf<HTMLPhraseElement>; getElementsByTagName(name: "ruby"): NodeListOf<HTMLPhraseElement>; getElementsByTagName(name: "s"): NodeListOf<HTMLPhraseElement>; getElementsByTagName(name: "samp"): NodeListOf<HTMLPhraseElement>; getElementsByTagName(name: "script"): NodeListOf<HTMLScriptElement>; getElementsByTagName(name: "section"): NodeListOf<HTMLElement>; getElementsByTagName(name: "select"): NodeListOf<HTMLSelectElement>; getElementsByTagName(name: "small"): NodeListOf<HTMLPhraseElement>; getElementsByTagName(name: "source"): NodeListOf<HTMLSourceElement>; getElementsByTagName(name: "span"): NodeListOf<HTMLSpanElement>; getElementsByTagName(name: "stop"): NodeListOf<SVGStopElement>; getElementsByTagName(name: "strike"): NodeListOf<HTMLPhraseElement>; getElementsByTagName(name: "strong"): NodeListOf<HTMLPhraseElement>; getElementsByTagName(name: "style"): NodeListOf<HTMLStyleElement>; getElementsByTagName(name: "sub"): NodeListOf<HTMLPhraseElement>; getElementsByTagName(name: "sup"): NodeListOf<HTMLPhraseElement>; getElementsByTagName(name: "svg"): NodeListOf<SVGSVGElement>; getElementsByTagName(name: "switch"): NodeListOf<SVGSwitchElement>; getElementsByTagName(name: "symbol"): NodeListOf<SVGSymbolElement>; getElementsByTagName(name: "table"): NodeListOf<HTMLTableElement>; getElementsByTagName(name: "tbody"): NodeListOf<HTMLTableSectionElement>; getElementsByTagName(name: "td"): NodeListOf<HTMLTableDataCellElement>; getElementsByTagName(name: "text"): NodeListOf<SVGTextElement>; getElementsByTagName(name: "textpath"): NodeListOf<SVGTextPathElement>; getElementsByTagName(name: "textarea"): NodeListOf<HTMLTextAreaElement>; getElementsByTagName(name: "tfoot"): NodeListOf<HTMLTableSectionElement>; getElementsByTagName(name: "th"): NodeListOf<HTMLTableHeaderCellElement>; getElementsByTagName(name: "thead"): NodeListOf<HTMLTableSectionElement>; getElementsByTagName(name: "title"): NodeListOf<HTMLTitleElement>; getElementsByTagName(name: "tr"): NodeListOf<HTMLTableRowElement>; getElementsByTagName(name: "track"): NodeListOf<HTMLTrackElement>; getElementsByTagName(name: "tspan"): NodeListOf<SVGTSpanElement>; getElementsByTagName(name: "tt"): NodeListOf<HTMLPhraseElement>; getElementsByTagName(name: "u"): NodeListOf<HTMLPhraseElement>; getElementsByTagName(name: "ul"): NodeListOf<HTMLUListElement>; getElementsByTagName(name: "use"): NodeListOf<SVGUseElement>; getElementsByTagName(name: "var"): NodeListOf<HTMLPhraseElement>; getElementsByTagName(name: "video"): NodeListOf<HTMLVideoElement>; getElementsByTagName(name: "view"): NodeListOf<SVGViewElement>; getElementsByTagName(name: "wbr"): NodeListOf<HTMLElement>; getElementsByTagName(name: "x-ms-webview"): NodeListOf<MSHTMLWebViewElement>; getElementsByTagName(name: "xmp"): NodeListOf<HTMLBlockElement>; getElementsByTagName(name: string): NodeListOf<Element>; getElementsByTagNameNS(namespaceURI: string, localName: string): NodeListOf<Element>; hasAttribute(name: string): boolean; hasAttributeNS(namespaceURI: string, localName: string): boolean; msGetRegionContent(): MSRangeCollection; msGetUntransformedBounds(): ClientRect; msMatchesSelector(selectors: string): boolean; msReleasePointerCapture(pointerId: number): void; msSetPointerCapture(pointerId: number): void; msZoomTo(args: MsZoomToOptions): void; releasePointerCapture(pointerId: number): void; removeAttribute(name?: string): void; removeAttributeNS(namespaceURI: string, localName: string): void; removeAttributeNode(oldAttr: Attr): Attr; requestFullscreen(): void; requestPointerLock(): void; setAttribute(name?: string, value?: string): void; setAttributeNS(namespaceURI: string, qualifiedName: string, value: string): void; setAttributeNode(newAttr: Attr): Attr; setAttributeNodeNS(newAttr: Attr): Attr; setPointerCapture(pointerId: number): void; webkitMatchesSelector(selectors: string): boolean; webkitRequestFullScreen(): void; webkitRequestFullscreen(): void; getElementsByClassName(classNames: string): NodeListOf<Element>; addEventListener(type: "MSGestureChange", listener: (ev: MSGestureEvent) => any, useCapture?: boolean): void; addEventListener(type: "MSGestureDoubleTap", listener: (ev: MSGestureEvent) => any, useCapture?: boolean): void; addEventListener(type: "MSGestureEnd", listener: (ev: MSGestureEvent) => any, useCapture?: boolean): void; addEventListener(type: "MSGestureHold", listener: (ev: MSGestureEvent) => any, useCapture?: boolean): void; addEventListener(type: "MSGestureStart", listener: (ev: MSGestureEvent) => any, useCapture?: boolean): void; addEventListener(type: "MSGestureTap", listener: (ev: MSGestureEvent) => any, useCapture?: boolean): void; addEventListener(type: "MSGotPointerCapture", listener: (ev: MSPointerEvent) => any, useCapture?: boolean): void; addEventListener(type: "MSInertiaStart", listener: (ev: MSGestureEvent) => any, useCapture?: boolean): void; addEventListener(type: "MSLostPointerCapture", listener: (ev: MSPointerEvent) => any, useCapture?: boolean): void; addEventListener(type: "MSPointerCancel", listener: (ev: MSPointerEvent) => any, useCapture?: boolean): void; addEventListener(type: "MSPointerDown", listener: (ev: MSPointerEvent) => any, useCapture?: boolean): void; addEventListener(type: "MSPointerEnter", listener: (ev: MSPointerEvent) => any, useCapture?: boolean): void; addEventListener(type: "MSPointerLeave", listener: (ev: MSPointerEvent) => any, useCapture?: boolean): void; addEventListener(type: "MSPointerMove", listener: (ev: MSPointerEvent) => any, useCapture?: boolean): void; addEventListener(type: "MSPointerOut", listener: (ev: MSPointerEvent) => any, useCapture?: boolean): void; addEventListener(type: "MSPointerOver", listener: (ev: MSPointerEvent) => any, useCapture?: boolean): void; addEventListener(type: "MSPointerUp", listener: (ev: MSPointerEvent) => any, useCapture?: boolean): void; addEventListener(type: "ariarequest", listener: (ev: AriaRequestEvent) => any, useCapture?: boolean): void; addEventListener(type: "command", listener: (ev: CommandEvent) => any, useCapture?: boolean): void; addEventListener(type: "gotpointercapture", listener: (ev: PointerEvent) => any, useCapture?: boolean): void; addEventListener(type: "lostpointercapture", listener: (ev: PointerEvent) => any, useCapture?: boolean): void; addEventListener(type: "pointercancel", listener: (ev: PointerEvent) => any, useCapture?: boolean): void; addEventListener(type: "pointerdown", listener: (ev: PointerEvent) => any, useCapture?: boolean): void; addEventListener(type: "pointerenter", listener: (ev: PointerEvent) => any, useCapture?: boolean): void; addEventListener(type: "pointerleave", listener: (ev: PointerEvent) => any, useCapture?: boolean): void; addEventListener(type: "pointermove", listener: (ev: PointerEvent) => any, useCapture?: boolean): void; addEventListener(type: "pointerout", listener: (ev: PointerEvent) => any, useCapture?: boolean): void; addEventListener(type: "pointerover", listener: (ev: PointerEvent) => any, useCapture?: boolean): void; addEventListener(type: "pointerup", listener: (ev: PointerEvent) => any, useCapture?: boolean): void; addEventListener(type: "touchcancel", listener: (ev: TouchEvent) => any, useCapture?: boolean): void; addEventListener(type: "touchend", listener: (ev: TouchEvent) => any, useCapture?: boolean): void; addEventListener(type: "touchmove", listener: (ev: TouchEvent) => any, useCapture?: boolean): void; addEventListener(type: "touchstart", listener: (ev: TouchEvent) => any, useCapture?: boolean): void; addEventListener(type: "webkitfullscreenchange", listener: (ev: Event) => any, useCapture?: boolean): void; addEventListener(type: "webkitfullscreenerror", listener: (ev: Event) => any, useCapture?: boolean): void; addEventListener(type: "wheel", listener: (ev: WheelEvent) => any, useCapture?: boolean): void; addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; } declare var Element: { prototype: Element; new(): Element; } interface ErrorEvent extends Event { colno: number; error: any; filename: string; lineno: number; message: string; initErrorEvent(typeArg: string, canBubbleArg: boolean, cancelableArg: boolean, messageArg: string, filenameArg: string, linenoArg: number): void; } declare var ErrorEvent: { prototype: ErrorEvent; new(): ErrorEvent; } interface Event { bubbles: boolean; cancelBubble: boolean; cancelable: boolean; currentTarget: EventTarget; defaultPrevented: boolean; eventPhase: number; isTrusted: boolean; returnValue: boolean; srcElement: Element; target: EventTarget; timeStamp: number; type: string; initEvent(eventTypeArg: string, canBubbleArg: boolean, cancelableArg: boolean): void; preventDefault(): void; stopImmediatePropagation(): void; stopPropagation(): void; AT_TARGET: number; BUBBLING_PHASE: number; CAPTURING_PHASE: number; } declare var Event: { prototype: Event; new(type: string, eventInitDict?: EventInit): Event; AT_TARGET: number; BUBBLING_PHASE: number; CAPTURING_PHASE: number; } interface EventTarget { addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; dispatchEvent(evt: Event): boolean; removeEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; } declare var EventTarget: { prototype: EventTarget; new(): EventTarget; } interface External { } declare var External: { prototype: External; new(): External; } interface File extends Blob { lastModifiedDate: any; name: string; } declare var File: { prototype: File; new (parts: (ArrayBuffer | ArrayBufferView | Blob | string)[], filename: string, properties?: FilePropertyBag): File; } interface FileList { length: number; item(index: number): File; [index: number]: File; } declare var FileList: { prototype: FileList; new(): FileList; } interface FileReader extends EventTarget, MSBaseReader { error: DOMError; readAsArrayBuffer(blob: Blob): void; readAsBinaryString(blob: Blob): void; readAsDataURL(blob: Blob): void; readAsText(blob: Blob, encoding?: string): void; addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; } declare var FileReader: { prototype: FileReader; new(): FileReader; } interface FocusEvent extends UIEvent { relatedTarget: EventTarget; initFocusEvent(typeArg: string, canBubbleArg: boolean, cancelableArg: boolean, viewArg: Window, detailArg: number, relatedTargetArg: EventTarget): void; } declare var FocusEvent: { prototype: FocusEvent; new(typeArg: string, eventInitDict?: FocusEventInit): FocusEvent; } interface FormData { append(name: any, value: any, blobName?: string): void; } declare var FormData: { prototype: FormData; new (form?: HTMLFormElement): FormData; } interface GainNode extends AudioNode { gain: AudioParam; } declare var GainNode: { prototype: GainNode; new(): GainNode; } interface Gamepad { axes: number[]; buttons: GamepadButton[]; connected: boolean; id: string; index: number; mapping: string; timestamp: number; } declare var Gamepad: { prototype: Gamepad; new(): Gamepad; } interface GamepadButton { pressed: boolean; value: number; } declare var GamepadButton: { prototype: GamepadButton; new(): GamepadButton; } interface GamepadEvent extends Event { gamepad: Gamepad; } declare var GamepadEvent: { prototype: GamepadEvent; new(): GamepadEvent; } interface Geolocation { clearWatch(watchId: number): void; getCurrentPosition(successCallback: PositionCallback, errorCallback?: PositionErrorCallback, options?: PositionOptions): void; watchPosition(successCallback: PositionCallback, errorCallback?: PositionErrorCallback, options?: PositionOptions): number; } declare var Geolocation: { prototype: Geolocation; new(): Geolocation; } interface HTMLAllCollection extends HTMLCollection { namedItem(name: string): Element; } declare var HTMLAllCollection: { prototype: HTMLAllCollection; new(): HTMLAllCollection; } interface HTMLAnchorElement extends HTMLElement { Methods: string; /** * Sets or retrieves the character set used to encode the object. */ charset: string; /** * Sets or retrieves the coordinates of the object. */ coords: string; /** * Contains the anchor portion of the URL including the hash sign (#). */ hash: string; /** * Contains the hostname and port values of the URL. */ host: string; /** * Contains the hostname of a URL. */ hostname: string; /** * Sets or retrieves a destination URL or an anchor point. */ href: string; /** * Sets or retrieves the language code of the object. */ hreflang: string; mimeType: string; /** * Sets or retrieves the shape of the object. */ name: string; nameProp: string; /** * Contains the pathname of the URL. */ pathname: string; /** * Sets or retrieves the port number associated with a URL. */ port: string; /** * Contains the protocol of the URL. */ protocol: string; protocolLong: string; /** * Sets or retrieves the relationship between the object and the destination of the link. */ rel: string; /** * Sets or retrieves the relationship between the object and the destination of the link. */ rev: string; /** * Sets or retrieves the substring of the href property that follows the question mark. */ search: string; /** * Sets or retrieves the shape of the object. */ shape: string; /** * Sets or retrieves the window or frame at which to target content. */ target: string; /** * Retrieves or sets the text of the object as a string. */ text: string; type: string; urn: string; /** * Returns a string representation of an object. */ toString(): string; } declare var HTMLAnchorElement: { prototype: HTMLAnchorElement; new(): HTMLAnchorElement; } interface HTMLAppletElement extends HTMLElement { /** * Retrieves a string of the URL where the object tag can be found. This is often the href of the document that the object is in, or the value set by a base element. */ BaseHref: string; align: string; /** * Sets or retrieves a text alternative to the graphic. */ alt: string; /** * Gets or sets the optional alternative HTML script to execute if the object fails to load. */ altHtml: string; /** * Sets or retrieves a character string that can be used to implement your own archive functionality for the object. */ archive: string; border: string; code: string; /** * Sets or retrieves the URL of the component. */ codeBase: string; /** * Sets or retrieves the Internet media type for the code associated with the object. */ codeType: string; /** * Address of a pointer to the document this page or frame contains. If there is no document, then null will be returned. */ contentDocument: Document; /** * Sets or retrieves the URL that references the data of the object. */ data: string; /** * Sets or retrieves a character string that can be used to implement your own declare functionality for the object. */ declare: boolean; form: HTMLFormElement; /** * Sets or retrieves the height of the object. */ height: string; hspace: number; /** * Sets or retrieves the shape of the object. */ name: string; object: string; /** * Sets or retrieves a message to be displayed while an object is loading. */ standby: string; /** * Returns the content type of the object. */ type: string; /** * Sets or retrieves the URL, often with a bookmark extension (#name), to use as a client-side image map. */ useMap: string; vspace: number; width: number; } declare var HTMLAppletElement: { prototype: HTMLAppletElement; new(): HTMLAppletElement; } interface HTMLAreaElement extends HTMLElement { /** * Sets or retrieves a text alternative to the graphic. */ alt: string; /** * Sets or retrieves the coordinates of the object. */ coords: string; /** * Sets or retrieves the subsection of the href property that follows the number sign (#). */ hash: string; /** * Sets or retrieves the hostname and port number of the location or URL. */ host: string; /** * Sets or retrieves the host name part of the location or URL. */ hostname: string; /** * Sets or retrieves a destination URL or an anchor point. */ href: string; /** * Sets or gets whether clicks in this region cause action. */ noHref: boolean; /** * Sets or retrieves the file name or path specified by the object. */ pathname: string; /** * Sets or retrieves the port number associated with a URL. */ port: string; /** * Sets or retrieves the protocol portion of a URL. */ protocol: string; rel: string; /** * Sets or retrieves the substring of the href property that follows the question mark. */ search: string; /** * Sets or retrieves the shape of the object. */ shape: string; /** * Sets or retrieves the window or frame at which to target content. */ target: string; /** * Returns a string representation of an object. */ toString(): string; } declare var HTMLAreaElement: { prototype: HTMLAreaElement; new(): HTMLAreaElement; } interface HTMLAreasCollection extends HTMLCollection { /** * Adds an element to the areas, controlRange, or options collection. */ add(element: HTMLElement, before?: HTMLElement | number): void; /** * Removes an element from the collection. */ remove(index?: number): void; } declare var HTMLAreasCollection: { prototype: HTMLAreasCollection; new(): HTMLAreasCollection; } interface HTMLAudioElement extends HTMLMediaElement { } declare var HTMLAudioElement: { prototype: HTMLAudioElement; new(): HTMLAudioElement; } interface HTMLBRElement extends HTMLElement { /** * Sets or retrieves the side on which floating objects are not to be positioned when any IHTMLBlockElement is inserted into the document. */ clear: string; } declare var HTMLBRElement: { prototype: HTMLBRElement; new(): HTMLBRElement; } interface HTMLBaseElement extends HTMLElement { /** * Gets or sets the baseline URL on which relative links are based. */ href: string; /** * Sets or retrieves the window or frame at which to target content. */ target: string; } declare var HTMLBaseElement: { prototype: HTMLBaseElement; new(): HTMLBaseElement; } interface HTMLBaseFontElement extends HTMLElement, DOML2DeprecatedColorProperty { /** * Sets or retrieves the current typeface family. */ face: string; /** * Sets or retrieves the font size of the object. */ size: number; addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; } declare var HTMLBaseFontElement: { prototype: HTMLBaseFontElement; new(): HTMLBaseFontElement; } interface HTMLBlockElement extends HTMLElement { /** * Sets or retrieves reference information about the object. */ cite: string; clear: string; /** * Sets or retrieves the width of the object. */ width: number; } declare var HTMLBlockElement: { prototype: HTMLBlockElement; new(): HTMLBlockElement; } interface HTMLBodyElement extends HTMLElement { aLink: any; background: string; bgColor: any; bgProperties: string; link: any; noWrap: boolean; onafterprint: (ev: Event) => any; onbeforeprint: (ev: Event) => any; onbeforeunload: (ev: BeforeUnloadEvent) => any; onblur: (ev: FocusEvent) => any; onerror: (ev: Event) => any; onfocus: (ev: FocusEvent) => any; onhashchange: (ev: HashChangeEvent) => any; onload: (ev: Event) => any; onmessage: (ev: MessageEvent) => any; onoffline: (ev: Event) => any; ononline: (ev: Event) => any; onorientationchange: (ev: Event) => any; onpagehide: (ev: PageTransitionEvent) => any; onpageshow: (ev: PageTransitionEvent) => any; onpopstate: (ev: PopStateEvent) => any; onresize: (ev: UIEvent) => any; onstorage: (ev: StorageEvent) => any; onunload: (ev: Event) => any; text: any; vLink: any; createTextRange(): TextRange; addEventListener(type: "MSContentZoom", listener: (ev: UIEvent) => any, useCapture?: boolean): void; addEventListener(type: "MSGestureChange", listener: (ev: MSGestureEvent) => any, useCapture?: boolean): void; addEventListener(type: "MSGestureDoubleTap", listener: (ev: MSGestureEvent) => any, useCapture?: boolean): void; addEventListener(type: "MSGestureEnd", listener: (ev: MSGestureEvent) => any, useCapture?: boolean): void; addEventListener(type: "MSGestureHold", listener: (ev: MSGestureEvent) => any, useCapture?: boolean): void; addEventListener(type: "MSGestureStart", listener: (ev: MSGestureEvent) => any, useCapture?: boolean): void; addEventListener(type: "MSGestureTap", listener: (ev: MSGestureEvent) => any, useCapture?: boolean): void; addEventListener(type: "MSGotPointerCapture", listener: (ev: MSPointerEvent) => any, useCapture?: boolean): void; addEventListener(type: "MSInertiaStart", listener: (ev: MSGestureEvent) => any, useCapture?: boolean): void; addEventListener(type: "MSLostPointerCapture", listener: (ev: MSPointerEvent) => any, useCapture?: boolean): void; addEventListener(type: "MSManipulationStateChanged", listener: (ev: MSManipulationEvent) => any, useCapture?: boolean): void; addEventListener(type: "MSPointerCancel", listener: (ev: MSPointerEvent) => any, useCapture?: boolean): void; addEventListener(type: "MSPointerDown", listener: (ev: MSPointerEvent) => any, useCapture?: boolean): void; addEventListener(type: "MSPointerEnter", listener: (ev: MSPointerEvent) => any, useCapture?: boolean): void; addEventListener(type: "MSPointerLeave", listener: (ev: MSPointerEvent) => any, useCapture?: boolean): void; addEventListener(type: "MSPointerMove", listener: (ev: MSPointerEvent) => any, useCapture?: boolean): void; addEventListener(type: "MSPointerOut", listener: (ev: MSPointerEvent) => any, useCapture?: boolean): void; addEventListener(type: "MSPointerOver", listener: (ev: MSPointerEvent) => any, useCapture?: boolean): void; addEventListener(type: "MSPointerUp", listener: (ev: MSPointerEvent) => any, useCapture?: boolean): void; addEventListener(type: "abort", listener: (ev: UIEvent) => any, useCapture?: boolean): void; addEventListener(type: "activate", listener: (ev: UIEvent) => any, useCapture?: boolean): void; addEventListener(type: "afterprint", listener: (ev: Event) => any, useCapture?: boolean): void; addEventListener(type: "ariarequest", listener: (ev: AriaRequestEvent) => any, useCapture?: boolean): void; addEventListener(type: "beforeactivate", listener: (ev: UIEvent) => any, useCapture?: boolean): void; addEventListener(type: "beforecopy", listener: (ev: DragEvent) => any, useCapture?: boolean): void; addEventListener(type: "beforecut", listener: (ev: DragEvent) => any, useCapture?: boolean): void; addEventListener(type: "beforedeactivate", listener: (ev: UIEvent) => any, useCapture?: boolean): void; addEventListener(type: "beforepaste", listener: (ev: DragEvent) => any, useCapture?: boolean): void; addEventListener(type: "beforeprint", listener: (ev: Event) => any, useCapture?: boolean): void; addEventListener(type: "beforeunload", listener: (ev: BeforeUnloadEvent) => any, useCapture?: boolean): void; addEventListener(type: "blur", listener: (ev: FocusEvent) => any, useCapture?: boolean): void; addEventListener(type: "blur", listener: (ev: FocusEvent) => any, useCapture?: boolean): void; addEventListener(type: "canplay", listener: (ev: Event) => any, useCapture?: boolean): void; addEventListener(type: "canplaythrough", listener: (ev: Event) => any, useCapture?: boolean): void; addEventListener(type: "change", listener: (ev: Event) => any, useCapture?: boolean): void; addEventListener(type: "click", listener: (ev: MouseEvent) => any, useCapture?: boolean): void; addEventListener(type: "command", listener: (ev: CommandEvent) => any, useCapture?: boolean): void; addEventListener(type: "contextmenu", listener: (ev: PointerEvent) => any, useCapture?: boolean): void; addEventListener(type: "copy", listener: (ev: DragEvent) => any, useCapture?: boolean): void; addEventListener(type: "cuechange", listener: (ev: Event) => any, useCapture?: boolean): void; addEventListener(type: "cut", listener: (ev: DragEvent) => any, useCapture?: boolean): void; addEventListener(type: "dblclick", listener: (ev: MouseEvent) => any, useCapture?: boolean): void; addEventListener(type: "deactivate", listener: (ev: UIEvent) => any, useCapture?: boolean): void; addEventListener(type: "drag", listener: (ev: DragEvent) => any, useCapture?: boolean): void; addEventListener(type: "dragend", listener: (ev: DragEvent) => any, useCapture?: boolean): void; addEventListener(type: "dragenter", listener: (ev: DragEvent) => any, useCapture?: boolean): void; addEventListener(type: "dragleave", listener: (ev: DragEvent) => any, useCapture?: boolean): void; addEventListener(type: "dragover", listener: (ev: DragEvent) => any, useCapture?: boolean): void; addEventListener(type: "dragstart", listener: (ev: DragEvent) => any, useCapture?: boolean): void; addEventListener(type: "drop", listener: (ev: DragEvent) => any, useCapture?: boolean): void; addEventListener(type: "durationchange", listener: (ev: Event) => any, useCapture?: boolean): void; addEventListener(type: "emptied", listener: (ev: Event) => any, useCapture?: boolean): void; addEventListener(type: "ended", listener: (ev: Event) => any, useCapture?: boolean): void; addEventListener(type: "error", listener: (ev: ErrorEvent) => any, useCapture?: boolean): void; addEventListener(type: "error", listener: (ev: ErrorEvent) => any, useCapture?: boolean): void; addEventListener(type: "focus", listener: (ev: FocusEvent) => any, useCapture?: boolean): void; addEventListener(type: "focus", listener: (ev: FocusEvent) => any, useCapture?: boolean): void; addEventListener(type: "gotpointercapture", listener: (ev: PointerEvent) => any, useCapture?: boolean): void; addEventListener(type: "hashchange", listener: (ev: HashChangeEvent) => any, useCapture?: boolean): void; addEventListener(type: "input", listener: (ev: Event) => any, useCapture?: boolean): void; addEventListener(type: "keydown", listener: (ev: KeyboardEvent) => any, useCapture?: boolean): void; addEventListener(type: "keypress", listener: (ev: KeyboardEvent) => any, useCapture?: boolean): void; addEventListener(type: "keyup", listener: (ev: KeyboardEvent) => any, useCapture?: boolean): void; addEventListener(type: "load", listener: (ev: Event) => any, useCapture?: boolean): void; addEventListener(type: "load", listener: (ev: Event) => any, useCapture?: boolean): void; addEventListener(type: "loadeddata", listener: (ev: Event) => any, useCapture?: boolean): void; addEventListener(type: "loadedmetadata", listener: (ev: Event) => any, useCapture?: boolean): void; addEventListener(type: "loadstart", listener: (ev: Event) => any, useCapture?: boolean): void; addEventListener(type: "lostpointercapture", listener: (ev: PointerEvent) => any, useCapture?: boolean): void; addEventListener(type: "message", listener: (ev: MessageEvent) => any, useCapture?: boolean): void; addEventListener(type: "mousedown", listener: (ev: MouseEvent) => any, useCapture?: boolean): void; addEventListener(type: "mouseenter", listener: (ev: MouseEvent) => any, useCapture?: boolean): void; addEventListener(type: "mouseleave", listener: (ev: MouseEvent) => any, useCapture?: boolean): void; addEventListener(type: "mousemove", listener: (ev: MouseEvent) => any, useCapture?: boolean): void; addEventListener(type: "mouseout", listener: (ev: MouseEvent) => any, useCapture?: boolean): void; addEventListener(type: "mouseover", listener: (ev: MouseEvent) => any, useCapture?: boolean): void; addEventListener(type: "mouseup", listener: (ev: MouseEvent) => any, useCapture?: boolean): void; addEventListener(type: "mousewheel", listener: (ev: MouseWheelEvent) => any, useCapture?: boolean): void; addEventListener(type: "offline", listener: (ev: Event) => any, useCapture?: boolean): void; addEventListener(type: "online", listener: (ev: Event) => any, useCapture?: boolean): void; addEventListener(type: "orientationchange", listener: (ev: Event) => any, useCapture?: boolean): void; addEventListener(type: "pagehide", listener: (ev: PageTransitionEvent) => any, useCapture?: boolean): void; addEventListener(type: "pageshow", listener: (ev: PageTransitionEvent) => any, useCapture?: boolean): void; addEventListener(type: "paste", listener: (ev: DragEvent) => any, useCapture?: boolean): void; addEventListener(type: "pause", listener: (ev: Event) => any, useCapture?: boolean): void; addEventListener(type: "play", listener: (ev: Event) => any, useCapture?: boolean): void; addEventListener(type: "playing", listener: (ev: Event) => any, useCapture?: boolean): void; addEventListener(type: "pointercancel", listener: (ev: PointerEvent) => any, useCapture?: boolean): void; addEventListener(type: "pointerdown", listener: (ev: PointerEvent) => any, useCapture?: boolean): void; addEventListener(type: "pointerenter", listener: (ev: PointerEvent) => any, useCapture?: boolean): void; addEventListener(type: "pointerleave", listener: (ev: PointerEvent) => any, useCapture?: boolean): void; addEventListener(type: "pointermove", listener: (ev: PointerEvent) => any, useCapture?: boolean): void; addEventListener(type: "pointerout", listener: (ev: PointerEvent) => any, useCapture?: boolean): void; addEventListener(type: "pointerover", listener: (ev: PointerEvent) => any, useCapture?: boolean): void; addEventListener(type: "pointerup", listener: (ev: PointerEvent) => any, useCapture?: boolean): void; addEventListener(type: "popstate", listener: (ev: PopStateEvent) => any, useCapture?: boolean): void; addEventListener(type: "progress", listener: (ev: ProgressEvent) => any, useCapture?: boolean): void; addEventListener(type: "ratechange", listener: (ev: Event) => any, useCapture?: boolean): void; addEventListener(type: "reset", listener: (ev: Event) => any, useCapture?: boolean): void; addEventListener(type: "resize", listener: (ev: UIEvent) => any, useCapture?: boolean): void; addEventListener(type: "scroll", listener: (ev: UIEvent) => any, useCapture?: boolean): void; addEventListener(type: "seeked", listener: (ev: Event) => any, useCapture?: boolean): void; addEventListener(type: "seeking", listener: (ev: Event) => any, useCapture?: boolean): void; addEventListener(type: "select", listener: (ev: UIEvent) => any, useCapture?: boolean): void; addEventListener(type: "selectstart", listener: (ev: Event) => any, useCapture?: boolean): void; addEventListener(type: "stalled", listener: (ev: Event) => any, useCapture?: boolean): void; addEventListener(type: "storage", listener: (ev: StorageEvent) => any, useCapture?: boolean): void; addEventListener(type: "submit", listener: (ev: Event) => any, useCapture?: boolean): void; addEventListener(type: "suspend", listener: (ev: Event) => any, useCapture?: boolean): void; addEventListener(type: "timeupdate", listener: (ev: Event) => any, useCapture?: boolean): void; addEventListener(type: "touchcancel", listener: (ev: TouchEvent) => any, useCapture?: boolean): void; addEventListener(type: "touchend", listener: (ev: TouchEvent) => any, useCapture?: boolean): void; addEventListener(type: "touchmove", listener: (ev: TouchEvent) => any, useCapture?: boolean): void; addEventListener(type: "touchstart", listener: (ev: TouchEvent) => any, useCapture?: boolean): void; addEventListener(type: "unload", listener: (ev: Event) => any, useCapture?: boolean): void; addEventListener(type: "volumechange", listener: (ev: Event) => any, useCapture?: boolean): void; addEventListener(type: "waiting", listener: (ev: Event) => any, useCapture?: boolean): void; addEventListener(type: "webkitfullscreenchange", listener: (ev: Event) => any, useCapture?: boolean): void; addEventListener(type: "webkitfullscreenerror", listener: (ev: Event) => any, useCapture?: boolean): void; addEventListener(type: "wheel", listener: (ev: WheelEvent) => any, useCapture?: boolean): void; addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; } declare var HTMLBodyElement: { prototype: HTMLBodyElement; new(): HTMLBodyElement; } interface HTMLButtonElement extends HTMLElement { /** * Provides a way to direct a user to a specific field when a document loads. This can provide both direction and convenience for a user, reducing the need to click or tab to a field when a page opens. This attribute is true when present on an element, and false when missing. */ autofocus: boolean; disabled: boolean; /** * Retrieves a reference to the form that the object is embedded in. */ form: HTMLFormElement; /** * Overrides the action attribute (where the data on a form is sent) on the parent form element. */ formAction: string; /** * Used to override the encoding (formEnctype attribute) specified on the form element. */ formEnctype: string; /** * Overrides the submit method attribute previously specified on a form element. */ formMethod: string; /** * Overrides any validation or required attributes on a form or form elements to allow it to be submitted without validation. This can be used to create a "save draft"-type submit option. */ formNoValidate: string; /** * Overrides the target attribute on a form element. */ formTarget: string; /** * Sets or retrieves the name of the object. */ name: string; status: any; /** * Gets the classification and default behavior of the button. */ type: string; /** * Returns the error message that would be displayed if the user submits the form, or an empty string if no error message. It also triggers the standard error message, such as "this is a required field". The result is that the user sees validation messages without actually submitting. */ validationMessage: string; /** * Returns a ValidityState object that represents the validity states of an element. */ validity: ValidityState; /** * Sets or retrieves the default or selected value of the control. */ value: string; /** * Returns whether an element will successfully validate based on forms validation rules and constraints. */ willValidate: boolean; /** * Returns whether a form will validate when it is submitted, without having to submit it. */ checkValidity(): boolean; /** * Creates a TextRange object for the element. */ createTextRange(): TextRange; /** * Sets a custom error message that is displayed when a form is submitted. * @param error Sets a custom error message that is displayed when a form is submitted. */ setCustomValidity(error: string): void; } declare var HTMLButtonElement: { prototype: HTMLButtonElement; new(): HTMLButtonElement; } interface HTMLCanvasElement extends HTMLElement { /** * Gets or sets the height of a canvas element on a document. */ height: number; /** * Gets or sets the width of a canvas element on a document. */ width: number; /** * Returns an object that provides methods and properties for drawing and manipulating images and graphics on a canvas element in a document. A context object includes information about colors, line widths, fonts, and other graphic parameters that can be drawn on a canvas. * @param contextId The identifier (ID) of the type of canvas to create. Internet Explorer 9 and Internet Explorer 10 support only a 2-D context using canvas.getContext("2d"); IE11 Preview also supports 3-D or WebGL context using canvas.getContext("experimental-webgl"); */ getContext(contextId: "2d"): CanvasRenderingContext2D; getContext(contextId: "experimental-webgl"): WebGLRenderingContext; getContext(contextId: string, ...args: any[]): CanvasRenderingContext2D | WebGLRenderingContext; /** * Returns a blob object encoded as a Portable Network Graphics (PNG) format from a canvas image or drawing. */ msToBlob(): Blob; /** * Returns the content of the current canvas as an image that you can use as a source for another canvas or an HTML element. * @param type The standard MIME type for the image format to return. If you do not specify this parameter, the default value is a PNG format image. */ toDataURL(type?: string, ...args: any[]): string; } declare var HTMLCanvasElement: { prototype: HTMLCanvasElement; new(): HTMLCanvasElement; } interface HTMLCollection { /** * Sets or retrieves the number of objects in a collection. */ length: number; /** * Retrieves an object from various collections. */ item(nameOrIndex?: any, optionalIndex?: any): Element; /** * Retrieves a select object or an object from an options collection. */ namedItem(name: string): Element; [index: number]: Element; } declare var HTMLCollection: { prototype: HTMLCollection; new(): HTMLCollection; } interface HTMLDDElement extends HTMLElement { /** * Sets or retrieves whether the browser automatically performs wordwrap. */ noWrap: boolean; } declare var HTMLDDElement: { prototype: HTMLDDElement; new(): HTMLDDElement; } interface HTMLDListElement extends HTMLElement { compact: boolean; } declare var HTMLDListElement: { prototype: HTMLDListElement; new(): HTMLDListElement; } interface HTMLDTElement extends HTMLElement { /** * Sets or retrieves whether the browser automatically performs wordwrap. */ noWrap: boolean; } declare var HTMLDTElement: { prototype: HTMLDTElement; new(): HTMLDTElement; } interface HTMLDataListElement extends HTMLElement { options: HTMLCollection; } declare var HTMLDataListElement: { prototype: HTMLDataListElement; new(): HTMLDataListElement; } interface HTMLDirectoryElement extends HTMLElement { compact: boolean; } declare var HTMLDirectoryElement: { prototype: HTMLDirectoryElement; new(): HTMLDirectoryElement; } interface HTMLDivElement extends HTMLElement { /** * Sets or retrieves how the object is aligned with adjacent text. */ align: string; /** * Sets or retrieves whether the browser automatically performs wordwrap. */ noWrap: boolean; } declare var HTMLDivElement: { prototype: HTMLDivElement; new(): HTMLDivElement; } interface HTMLDocument extends Document { } declare var HTMLDocument: { prototype: HTMLDocument; new(): HTMLDocument; } interface HTMLElement extends Element { accessKey: string; children: HTMLCollection; contentEditable: string; dataset: DOMStringMap; dir: string; draggable: boolean; hidden: boolean; hideFocus: boolean; innerHTML: string; innerText: string; isContentEditable: boolean; lang: string; offsetHeight: number; offsetLeft: number; offsetParent: Element; offsetTop: number; offsetWidth: number; onabort: (ev: Event) => any; onactivate: (ev: UIEvent) => any; onbeforeactivate: (ev: UIEvent) => any; onbeforecopy: (ev: DragEvent) => any; onbeforecut: (ev: DragEvent) => any; onbeforedeactivate: (ev: UIEvent) => any; onbeforepaste: (ev: DragEvent) => any; onblur: (ev: FocusEvent) => any; oncanplay: (ev: Event) => any; oncanplaythrough: (ev: Event) => any; onchange: (ev: Event) => any; onclick: (ev: MouseEvent) => any; oncontextmenu: (ev: PointerEvent) => any; oncopy: (ev: DragEvent) => any; oncuechange: (ev: Event) => any; oncut: (ev: DragEvent) => any; ondblclick: (ev: MouseEvent) => any; ondeactivate: (ev: UIEvent) => any; ondrag: (ev: DragEvent) => any; ondragend: (ev: DragEvent) => any; ondragenter: (ev: DragEvent) => any; ondragleave: (ev: DragEvent) => any; ondragover: (ev: DragEvent) => any; ondragstart: (ev: DragEvent) => any; ondrop: (ev: DragEvent) => any; ondurationchange: (ev: Event) => any; onemptied: (ev: Event) => any; onended: (ev: Event) => any; onerror: (ev: Event) => any; onfocus: (ev: FocusEvent) => any; oninput: (ev: Event) => any; onkeydown: (ev: KeyboardEvent) => any; onkeypress: (ev: KeyboardEvent) => any; onkeyup: (ev: KeyboardEvent) => any; onload: (ev: Event) => any; onloadeddata: (ev: Event) => any; onloadedmetadata: (ev: Event) => any; onloadstart: (ev: Event) => any; onmousedown: (ev: MouseEvent) => any; onmouseenter: (ev: MouseEvent) => any; onmouseleave: (ev: MouseEvent) => any; onmousemove: (ev: MouseEvent) => any; onmouseout: (ev: MouseEvent) => any; onmouseover: (ev: MouseEvent) => any; onmouseup: (ev: MouseEvent) => any; onmousewheel: (ev: MouseWheelEvent) => any; onmscontentzoom: (ev: UIEvent) => any; onmsmanipulationstatechanged: (ev: MSManipulationEvent) => any; onpaste: (ev: DragEvent) => any; onpause: (ev: Event) => any; onplay: (ev: Event) => any; onplaying: (ev: Event) => any; onprogress: (ev: ProgressEvent) => any; onratechange: (ev: Event) => any; onreset: (ev: Event) => any; onscroll: (ev: UIEvent) => any; onseeked: (ev: Event) => any; onseeking: (ev: Event) => any; onselect: (ev: UIEvent) => any; onselectstart: (ev: Event) => any; onstalled: (ev: Event) => any; onsubmit: (ev: Event) => any; onsuspend: (ev: Event) => any; ontimeupdate: (ev: Event) => any; onvolumechange: (ev: Event) => any; onwaiting: (ev: Event) => any; outerHTML: string; outerText: string; spellcheck: boolean; style: CSSStyleDeclaration; tabIndex: number; title: string; blur(): void; click(): void; contains(child: HTMLElement): boolean; dragDrop(): boolean; focus(): void; insertAdjacentElement(position: string, insertedElement: Element): Element; insertAdjacentHTML(where: string, html: string): void; insertAdjacentText(where: string, text: string): void; msGetInputContext(): MSInputMethodContext; scrollIntoView(top?: boolean): void; setActive(): void; addEventListener(type: "MSContentZoom", listener: (ev: UIEvent) => any, useCapture?: boolean): void; addEventListener(type: "MSGestureChange", listener: (ev: MSGestureEvent) => any, useCapture?: boolean): void; addEventListener(type: "MSGestureDoubleTap", listener: (ev: MSGestureEvent) => any, useCapture?: boolean): void; addEventListener(type: "MSGestureEnd", listener: (ev: MSGestureEvent) => any, useCapture?: boolean): void; addEventListener(type: "MSGestureHold", listener: (ev: MSGestureEvent) => any, useCapture?: boolean): void; addEventListener(type: "MSGestureStart", listener: (ev: MSGestureEvent) => any, useCapture?: boolean): void; addEventListener(type: "MSGestureTap", listener: (ev: MSGestureEvent) => any, useCapture?: boolean): void; addEventListener(type: "MSGotPointerCapture", listener: (ev: MSPointerEvent) => any, useCapture?: boolean): void; addEventListener(type: "MSInertiaStart", listener: (ev: MSGestureEvent) => any, useCapture?: boolean): void; addEventListener(type: "MSLostPointerCapture", listener: (ev: MSPointerEvent) => any, useCapture?: boolean): void; addEventListener(type: "MSManipulationStateChanged", listener: (ev: MSManipulationEvent) => any, useCapture?: boolean): void; addEventListener(type: "MSPointerCancel", listener: (ev: MSPointerEvent) => any, useCapture?: boolean): void; addEventListener(type: "MSPointerDown", listener: (ev: MSPointerEvent) => any, useCapture?: boolean): void; addEventListener(type: "MSPointerEnter", listener: (ev: MSPointerEvent) => any, useCapture?: boolean): void; addEventListener(type: "MSPointerLeave", listener: (ev: MSPointerEvent) => any, useCapture?: boolean): void; addEventListener(type: "MSPointerMove", listener: (ev: MSPointerEvent) => any, useCapture?: boolean): void; addEventListener(type: "MSPointerOut", listener: (ev: MSPointerEvent) => any, useCapture?: boolean): void; addEventListener(type: "MSPointerOver", listener: (ev: MSPointerEvent) => any, useCapture?: boolean): void; addEventListener(type: "MSPointerUp", listener: (ev: MSPointerEvent) => any, useCapture?: boolean): void; addEventListener(type: "abort", listener: (ev: UIEvent) => any, useCapture?: boolean): void; addEventListener(type: "activate", listener: (ev: UIEvent) => any, useCapture?: boolean): void; addEventListener(type: "ariarequest", listener: (ev: AriaRequestEvent) => any, useCapture?: boolean): void; addEventListener(type: "beforeactivate", listener: (ev: UIEvent) => any, useCapture?: boolean): void; addEventListener(type: "beforecopy", listener: (ev: DragEvent) => any, useCapture?: boolean): void; addEventListener(type: "beforecut", listener: (ev: DragEvent) => any, useCapture?: boolean): void; addEventListener(type: "beforedeactivate", listener: (ev: UIEvent) => any, useCapture?: boolean): void; addEventListener(type: "beforepaste", listener: (ev: DragEvent) => any, useCapture?: boolean): void; addEventListener(type: "blur", listener: (ev: FocusEvent) => any, useCapture?: boolean): void; addEventListener(type: "canplay", listener: (ev: Event) => any, useCapture?: boolean): void; addEventListener(type: "canplaythrough", listener: (ev: Event) => any, useCapture?: boolean): void; addEventListener(type: "change", listener: (ev: Event) => any, useCapture?: boolean): void; addEventListener(type: "click", listener: (ev: MouseEvent) => any, useCapture?: boolean): void; addEventListener(type: "command", listener: (ev: CommandEvent) => any, useCapture?: boolean): void; addEventListener(type: "contextmenu", listener: (ev: PointerEvent) => any, useCapture?: boolean): void; addEventListener(type: "copy", listener: (ev: DragEvent) => any, useCapture?: boolean): void; addEventListener(type: "cuechange", listener: (ev: Event) => any, useCapture?: boolean): void; addEventListener(type: "cut", listener: (ev: DragEvent) => any, useCapture?: boolean): void; addEventListener(type: "dblclick", listener: (ev: MouseEvent) => any, useCapture?: boolean): void; addEventListener(type: "deactivate", listener: (ev: UIEvent) => any, useCapture?: boolean): void; addEventListener(type: "drag", listener: (ev: DragEvent) => any, useCapture?: boolean): void; addEventListener(type: "dragend", listener: (ev: DragEvent) => any, useCapture?: boolean): void; addEventListener(type: "dragenter", listener: (ev: DragEvent) => any, useCapture?: boolean): void; addEventListener(type: "dragleave", listener: (ev: DragEvent) => any, useCapture?: boolean): void; addEventListener(type: "dragover", listener: (ev: DragEvent) => any, useCapture?: boolean): void; addEventListener(type: "dragstart", listener: (ev: DragEvent) => any, useCapture?: boolean): void; addEventListener(type: "drop", listener: (ev: DragEvent) => any, useCapture?: boolean): void; addEventListener(type: "durationchange", listener: (ev: Event) => any, useCapture?: boolean): void; addEventListener(type: "emptied", listener: (ev: Event) => any, useCapture?: boolean): void; addEventListener(type: "ended", listener: (ev: Event) => any, useCapture?: boolean): void; addEventListener(type: "error", listener: (ev: ErrorEvent) => any, useCapture?: boolean): void; addEventListener(type: "focus", listener: (ev: FocusEvent) => any, useCapture?: boolean): void; addEventListener(type: "gotpointercapture", listener: (ev: PointerEvent) => any, useCapture?: boolean): void; addEventListener(type: "input", listener: (ev: Event) => any, useCapture?: boolean): void; addEventListener(type: "keydown", listener: (ev: KeyboardEvent) => any, useCapture?: boolean): void; addEventListener(type: "keypress", listener: (ev: KeyboardEvent) => any, useCapture?: boolean): void; addEventListener(type: "keyup", listener: (ev: KeyboardEvent) => any, useCapture?: boolean): void; addEventListener(type: "load", listener: (ev: Event) => any, useCapture?: boolean): void; addEventListener(type: "loadeddata", listener: (ev: Event) => any, useCapture?: boolean): void; addEventListener(type: "loadedmetadata", listener: (ev: Event) => any, useCapture?: boolean): void; addEventListener(type: "loadstart", listener: (ev: Event) => any, useCapture?: boolean): void; addEventListener(type: "lostpointercapture", listener: (ev: PointerEvent) => any, useCapture?: boolean): void; addEventListener(type: "mousedown", listener: (ev: MouseEvent) => any, useCapture?: boolean): void; addEventListener(type: "mouseenter", listener: (ev: MouseEvent) => any, useCapture?: boolean): void; addEventListener(type: "mouseleave", listener: (ev: MouseEvent) => any, useCapture?: boolean): void; addEventListener(type: "mousemove", listener: (ev: MouseEvent) => any, useCapture?: boolean): void; addEventListener(type: "mouseout", listener: (ev: MouseEvent) => any, useCapture?: boolean): void; addEventListener(type: "mouseover", listener: (ev: MouseEvent) => any, useCapture?: boolean): void; addEventListener(type: "mouseup", listener: (ev: MouseEvent) => any, useCapture?: boolean): void; addEventListener(type: "mousewheel", listener: (ev: MouseWheelEvent) => any, useCapture?: boolean): void; addEventListener(type: "paste", listener: (ev: DragEvent) => any, useCapture?: boolean): void; addEventListener(type: "pause", listener: (ev: Event) => any, useCapture?: boolean): void; addEventListener(type: "play", listener: (ev: Event) => any, useCapture?: boolean): void; addEventListener(type: "playing", listener: (ev: Event) => any, useCapture?: boolean): void; addEventListener(type: "pointercancel", listener: (ev: PointerEvent) => any, useCapture?: boolean): void; addEventListener(type: "pointerdown", listener: (ev: PointerEvent) => any, useCapture?: boolean): void; addEventListener(type: "pointerenter", listener: (ev: PointerEvent) => any, useCapture?: boolean): void; addEventListener(type: "pointerleave", listener: (ev: PointerEvent) => any, useCapture?: boolean): void; addEventListener(type: "pointermove", listener: (ev: PointerEvent) => any, useCapture?: boolean): void; addEventListener(type: "pointerout", listener: (ev: PointerEvent) => any, useCapture?: boolean): void; addEventListener(type: "pointerover", listener: (ev: PointerEvent) => any, useCapture?: boolean): void; addEventListener(type: "pointerup", listener: (ev: PointerEvent) => any, useCapture?: boolean): void; addEventListener(type: "progress", listener: (ev: ProgressEvent) => any, useCapture?: boolean): void; addEventListener(type: "ratechange", listener: (ev: Event) => any, useCapture?: boolean): void; addEventListener(type: "reset", listener: (ev: Event) => any, useCapture?: boolean): void; addEventListener(type: "scroll", listener: (ev: UIEvent) => any, useCapture?: boolean): void; addEventListener(type: "seeked", listener: (ev: Event) => any, useCapture?: boolean): void; addEventListener(type: "seeking", listener: (ev: Event) => any, useCapture?: boolean): void; addEventListener(type: "select", listener: (ev: UIEvent) => any, useCapture?: boolean): void; addEventListener(type: "selectstart", listener: (ev: Event) => any, useCapture?: boolean): void; addEventListener(type: "stalled", listener: (ev: Event) => any, useCapture?: boolean): void; addEventListener(type: "submit", listener: (ev: Event) => any, useCapture?: boolean): void; addEventListener(type: "suspend", listener: (ev: Event) => any, useCapture?: boolean): void; addEventListener(type: "timeupdate", listener: (ev: Event) => any, useCapture?: boolean): void; addEventListener(type: "touchcancel", listener: (ev: TouchEvent) => any, useCapture?: boolean): void; addEventListener(type: "touchend", listener: (ev: TouchEvent) => any, useCapture?: boolean): void; addEventListener(type: "touchmove", listener: (ev: TouchEvent) => any, useCapture?: boolean): void; addEventListener(type: "touchstart", listener: (ev: TouchEvent) => any, useCapture?: boolean): void; addEventListener(type: "volumechange", listener: (ev: Event) => any, useCapture?: boolean): void; addEventListener(type: "waiting", listener: (ev: Event) => any, useCapture?: boolean): void; addEventListener(type: "webkitfullscreenchange", listener: (ev: Event) => any, useCapture?: boolean): void; addEventListener(type: "webkitfullscreenerror", listener: (ev: Event) => any, useCapture?: boolean): void; addEventListener(type: "wheel", listener: (ev: WheelEvent) => any, useCapture?: boolean): void; addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; } declare var HTMLElement: { prototype: HTMLElement; new(): HTMLElement; } interface HTMLEmbedElement extends HTMLElement, GetSVGDocument { /** * Sets or retrieves the height of the object. */ height: string; hidden: any; /** * Gets or sets whether the DLNA PlayTo device is available. */ msPlayToDisabled: boolean; /** * Gets or sets the path to the preferred media source. This enables the Play To target device to stream the media content, which can be DRM protected, from a different location, such as a cloud media server. */ msPlayToPreferredSourceUri: string; /** * Gets or sets the primary DLNA PlayTo device. */ msPlayToPrimary: boolean; /** * Gets the source associated with the media element for use by the PlayToManager. */ msPlayToSource: any; /** * Sets or retrieves the name of the object. */ name: string; /** * Retrieves the palette used for the embedded document. */ palette: string; /** * Retrieves the URL of the plug-in used to view an embedded document. */ pluginspage: string; readyState: string; /** * Sets or retrieves a URL to be loaded by the object. */ src: string; /** * Sets or retrieves the height and width units of the embed object. */ units: string; /** * Sets or retrieves the width of the object. */ width: string; addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; } declare var HTMLEmbedElement: { prototype: HTMLEmbedElement; new(): HTMLEmbedElement; } interface HTMLFieldSetElement extends HTMLElement { /** * Sets or retrieves how the object is aligned with adjacent text. */ align: string; disabled: boolean; /** * Retrieves a reference to the form that the object is embedded in. */ form: HTMLFormElement; /** * Returns the error message that would be displayed if the user submits the form, or an empty string if no error message. It also triggers the standard error message, such as "this is a required field". The result is that the user sees validation messages without actually submitting. */ validationMessage: string; /** * Returns a ValidityState object that represents the validity states of an element. */ validity: ValidityState; /** * Returns whether an element will successfully validate based on forms validation rules and constraints. */ willValidate: boolean; /** * Returns whether a form will validate when it is submitted, without having to submit it. */ checkValidity(): boolean; /** * Sets a custom error message that is displayed when a form is submitted. * @param error Sets a custom error message that is displayed when a form is submitted. */ setCustomValidity(error: string): void; } declare var HTMLFieldSetElement: { prototype: HTMLFieldSetElement; new(): HTMLFieldSetElement; } interface HTMLFontElement extends HTMLElement, DOML2DeprecatedColorProperty, DOML2DeprecatedSizeProperty { /** * Sets or retrieves the current typeface family. */ face: string; addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; } declare var HTMLFontElement: { prototype: HTMLFontElement; new(): HTMLFontElement; } interface HTMLFormElement extends HTMLElement { /** * Sets or retrieves a list of character encodings for input data that must be accepted by the server processing the form. */ acceptCharset: string; /** * Sets or retrieves the URL to which the form content is sent for processing. */ action: string; /** * Specifies whether autocomplete is applied to an editable text field. */ autocomplete: string; /** * Retrieves a collection, in source order, of all controls in a given form. */ elements: HTMLCollection; /** * Sets or retrieves the MIME encoding for the form. */ encoding: string; /** * Sets or retrieves the encoding type for the form. */ enctype: string; /** * Sets or retrieves the number of objects in a collection. */ length: number; /** * Sets or retrieves how to send the form data to the server. */ method: string; /** * Sets or retrieves the name of the object. */ name: string; /** * Designates a form that is not validated when submitted. */ noValidate: boolean; /** * Sets or retrieves the window or frame at which to target content. */ target: string; /** * Returns whether a form will validate when it is submitted, without having to submit it. */ checkValidity(): boolean; /** * Retrieves a form object or an object from an elements collection. * @param name Variant of type Number or String that specifies the object or collection to retrieve. If this parameter is a Number, it is the zero-based index of the object. If this parameter is a string, all objects with matching name or id properties are retrieved, and a collection is returned if more than one match is made. * @param index Variant of type Number that specifies the zero-based index of the object to retrieve when a collection is returned. */ item(name?: any, index?: any): any; /** * Retrieves a form object or an object from an elements collection. */ namedItem(name: string): any; /** * Fires when the user resets a form. */ reset(): void; /** * Fires when a FORM is about to be submitted. */ submit(): void; [name: string]: any; } declare var HTMLFormElement: { prototype: HTMLFormElement; new(): HTMLFormElement; } interface HTMLFrameElement extends HTMLElement, GetSVGDocument { /** * Specifies the properties of a border drawn around an object. */ border: string; /** * Sets or retrieves the border color of the object. */ borderColor: any; /** * Retrieves the document object of the page or frame. */ contentDocument: Document; /** * Retrieves the object of the specified. */ contentWindow: Window; /** * Sets or retrieves whether to display a border for the frame. */ frameBorder: string; /** * Sets or retrieves the amount of additional space between the frames. */ frameSpacing: any; /** * Sets or retrieves the height of the object. */ height: string | number; /** * Sets or retrieves a URI to a long description of the object. */ longDesc: string; /** * Sets or retrieves the top and bottom margin heights before displaying the text in a frame. */ marginHeight: string; /** * Sets or retrieves the left and right margin widths before displaying the text in a frame. */ marginWidth: string; /** * Sets or retrieves the frame name. */ name: string; /** * Sets or retrieves whether the user can resize the frame. */ noResize: boolean; /** * Raised when the object has been completely received from the server. */ onload: (ev: Event) => any; /** * Sets or retrieves whether the frame can be scrolled. */ scrolling: string; /** * Sets the value indicating whether the source file of a frame or iframe has specific security restrictions applied. */ security: any; /** * Sets or retrieves a URL to be loaded by the object. */ src: string; /** * Sets or retrieves the width of the object. */ width: string | number; addEventListener(type: "MSContentZoom", listener: (ev: UIEvent) => any, useCapture?: boolean): void; addEventListener(type: "MSGestureChange", listener: (ev: MSGestureEvent) => any, useCapture?: boolean): void; addEventListener(type: "MSGestureDoubleTap", listener: (ev: MSGestureEvent) => any, useCapture?: boolean): void; addEventListener(type: "MSGestureEnd", listener: (ev: MSGestureEvent) => any, useCapture?: boolean): void; addEventListener(type: "MSGestureHold", listener: (ev: MSGestureEvent) => any, useCapture?: boolean): void; addEventListener(type: "MSGestureStart", listener: (ev: MSGestureEvent) => any, useCapture?: boolean): void; addEventListener(type: "MSGestureTap", listener: (ev: MSGestureEvent) => any, useCapture?: boolean): void; addEventListener(type: "MSGotPointerCapture", listener: (ev: MSPointerEvent) => any, useCapture?: boolean): void; addEventListener(type: "MSInertiaStart", listener: (ev: MSGestureEvent) => any, useCapture?: boolean): void; addEventListener(type: "MSLostPointerCapture", listener: (ev: MSPointerEvent) => any, useCapture?: boolean): void; addEventListener(type: "MSManipulationStateChanged", listener: (ev: MSManipulationEvent) => any, useCapture?: boolean): void; addEventListener(type: "MSPointerCancel", listener: (ev: MSPointerEvent) => any, useCapture?: boolean): void; addEventListener(type: "MSPointerDown", listener: (ev: MSPointerEvent) => any, useCapture?: boolean): void; addEventListener(type: "MSPointerEnter", listener: (ev: MSPointerEvent) => any, useCapture?: boolean): void; addEventListener(type: "MSPointerLeave", listener: (ev: MSPointerEvent) => any, useCapture?: boolean): void; addEventListener(type: "MSPointerMove", listener: (ev: MSPointerEvent) => any, useCapture?: boolean): void; addEventListener(type: "MSPointerOut", listener: (ev: MSPointerEvent) => any, useCapture?: boolean): void; addEventListener(type: "MSPointerOver", listener: (ev: MSPointerEvent) => any, useCapture?: boolean): void; addEventListener(type: "MSPointerUp", listener: (ev: MSPointerEvent) => any, useCapture?: boolean): void; addEventListener(type: "abort", listener: (ev: UIEvent) => any, useCapture?: boolean): void; addEventListener(type: "activate", listener: (ev: UIEvent) => any, useCapture?: boolean): void; addEventListener(type: "ariarequest", listener: (ev: AriaRequestEvent) => any, useCapture?: boolean): void; addEventListener(type: "beforeactivate", listener: (ev: UIEvent) => any, useCapture?: boolean): void; addEventListener(type: "beforecopy", listener: (ev: DragEvent) => any, useCapture?: boolean): void; addEventListener(type: "beforecut", listener: (ev: DragEvent) => any, useCapture?: boolean): void; addEventListener(type: "beforedeactivate", listener: (ev: UIEvent) => any, useCapture?: boolean): void; addEventListener(type: "beforepaste", listener: (ev: DragEvent) => any, useCapture?: boolean): void; addEventListener(type: "blur", listener: (ev: FocusEvent) => any, useCapture?: boolean): void; addEventListener(type: "canplay", listener: (ev: Event) => any, useCapture?: boolean): void; addEventListener(type: "canplaythrough", listener: (ev: Event) => any, useCapture?: boolean): void; addEventListener(type: "change", listener: (ev: Event) => any, useCapture?: boolean): void; addEventListener(type: "click", listener: (ev: MouseEvent) => any, useCapture?: boolean): void; addEventListener(type: "command", listener: (ev: CommandEvent) => any, useCapture?: boolean): void; addEventListener(type: "contextmenu", listener: (ev: PointerEvent) => any, useCapture?: boolean): void; addEventListener(type: "copy", listener: (ev: DragEvent) => any, useCapture?: boolean): void; addEventListener(type: "cuechange", listener: (ev: Event) => any, useCapture?: boolean): void; addEventListener(type: "cut", listener: (ev: DragEvent) => any, useCapture?: boolean): void; addEventListener(type: "dblclick", listener: (ev: MouseEvent) => any, useCapture?: boolean): void; addEventListener(type: "deactivate", listener: (ev: UIEvent) => any, useCapture?: boolean): void; addEventListener(type: "drag", listener: (ev: DragEvent) => any, useCapture?: boolean): void; addEventListener(type: "dragend", listener: (ev: DragEvent) => any, useCapture?: boolean): void; addEventListener(type: "dragenter", listener: (ev: DragEvent) => any, useCapture?: boolean): void; addEventListener(type: "dragleave", listener: (ev: DragEvent) => any, useCapture?: boolean): void; addEventListener(type: "dragover", listener: (ev: DragEvent) => any, useCapture?: boolean): void; addEventListener(type: "dragstart", listener: (ev: DragEvent) => any, useCapture?: boolean): void; addEventListener(type: "drop", listener: (ev: DragEvent) => any, useCapture?: boolean): void; addEventListener(type: "durationchange", listener: (ev: Event) => any, useCapture?: boolean): void; addEventListener(type: "emptied", listener: (ev: Event) => any, useCapture?: boolean): void; addEventListener(type: "ended", listener: (ev: Event) => any, useCapture?: boolean): void; addEventListener(type: "error", listener: (ev: ErrorEvent) => any, useCapture?: boolean): void; addEventListener(type: "focus", listener: (ev: FocusEvent) => any, useCapture?: boolean): void; addEventListener(type: "gotpointercapture", listener: (ev: PointerEvent) => any, useCapture?: boolean): void; addEventListener(type: "input", listener: (ev: Event) => any, useCapture?: boolean): void; addEventListener(type: "keydown", listener: (ev: KeyboardEvent) => any, useCapture?: boolean): void; addEventListener(type: "keypress", listener: (ev: KeyboardEvent) => any, useCapture?: boolean): void; addEventListener(type: "keyup", listener: (ev: KeyboardEvent) => any, useCapture?: boolean): void; addEventListener(type: "load", listener: (ev: Event) => any, useCapture?: boolean): void; addEventListener(type: "load", listener: (ev: Event) => any, useCapture?: boolean): void; addEventListener(type: "loadeddata", listener: (ev: Event) => any, useCapture?: boolean): void; addEventListener(type: "loadedmetadata", listener: (ev: Event) => any, useCapture?: boolean): void; addEventListener(type: "loadstart", listener: (ev: Event) => any, useCapture?: boolean): void; addEventListener(type: "lostpointercapture", listener: (ev: PointerEvent) => any, useCapture?: boolean): void; addEventListener(type: "mousedown", listener: (ev: MouseEvent) => any, useCapture?: boolean): void; addEventListener(type: "mouseenter", listener: (ev: MouseEvent) => any, useCapture?: boolean): void; addEventListener(type: "mouseleave", listener: (ev: MouseEvent) => any, useCapture?: boolean): void; addEventListener(type: "mousemove", listener: (ev: MouseEvent) => any, useCapture?: boolean): void; addEventListener(type: "mouseout", listener: (ev: MouseEvent) => any, useCapture?: boolean): void; addEventListener(type: "mouseover", listener: (ev: MouseEvent) => any, useCapture?: boolean): void; addEventListener(type: "mouseup", listener: (ev: MouseEvent) => any, useCapture?: boolean): void; addEventListener(type: "mousewheel", listener: (ev: MouseWheelEvent) => any, useCapture?: boolean): void; addEventListener(type: "paste", listener: (ev: DragEvent) => any, useCapture?: boolean): void; addEventListener(type: "pause", listener: (ev: Event) => any, useCapture?: boolean): void; addEventListener(type: "play", listener: (ev: Event) => any, useCapture?: boolean): void; addEventListener(type: "playing", listener: (ev: Event) => any, useCapture?: boolean): void; addEventListener(type: "pointercancel", listener: (ev: PointerEvent) => any, useCapture?: boolean): void; addEventListener(type: "pointerdown", listener: (ev: PointerEvent) => any, useCapture?: boolean): void; addEventListener(type: "pointerenter", listener: (ev: PointerEvent) => any, useCapture?: boolean): void; addEventListener(type: "pointerleave", listener: (ev: PointerEvent) => any, useCapture?: boolean): void; addEventListener(type: "pointermove", listener: (ev: PointerEvent) => any, useCapture?: boolean): void; addEventListener(type: "pointerout", listener: (ev: PointerEvent) => any, useCapture?: boolean): void; addEventListener(type: "pointerover", listener: (ev: PointerEvent) => any, useCapture?: boolean): void; addEventListener(type: "pointerup", listener: (ev: PointerEvent) => any, useCapture?: boolean): void; addEventListener(type: "progress", listener: (ev: ProgressEvent) => any, useCapture?: boolean): void; addEventListener(type: "ratechange", listener: (ev: Event) => any, useCapture?: boolean): void; addEventListener(type: "reset", listener: (ev: Event) => any, useCapture?: boolean): void; addEventListener(type: "scroll", listener: (ev: UIEvent) => any, useCapture?: boolean): void; addEventListener(type: "seeked", listener: (ev: Event) => any, useCapture?: boolean): void; addEventListener(type: "seeking", listener: (ev: Event) => any, useCapture?: boolean): void; addEventListener(type: "select", listener: (ev: UIEvent) => any, useCapture?: boolean): void; addEventListener(type: "selectstart", listener: (ev: Event) => any, useCapture?: boolean): void; addEventListener(type: "stalled", listener: (ev: Event) => any, useCapture?: boolean): void; addEventListener(type: "submit", listener: (ev: Event) => any, useCapture?: boolean): void; addEventListener(type: "suspend", listener: (ev: Event) => any, useCapture?: boolean): void; addEventListener(type: "timeupdate", listener: (ev: Event) => any, useCapture?: boolean): void; addEventListener(type: "touchcancel", listener: (ev: TouchEvent) => any, useCapture?: boolean): void; addEventListener(type: "touchend", listener: (ev: TouchEvent) => any, useCapture?: boolean): void; addEventListener(type: "touchmove", listener: (ev: TouchEvent) => any, useCapture?: boolean): void; addEventListener(type: "touchstart", listener: (ev: TouchEvent) => any, useCapture?: boolean): void; addEventListener(type: "volumechange", listener: (ev: Event) => any, useCapture?: boolean): void; addEventListener(type: "waiting", listener: (ev: Event) => any, useCapture?: boolean): void; addEventListener(type: "webkitfullscreenchange", listener: (ev: Event) => any, useCapture?: boolean): void; addEventListener(type: "webkitfullscreenerror", listener: (ev: Event) => any, useCapture?: boolean): void; addEventListener(type: "wheel", listener: (ev: WheelEvent) => any, useCapture?: boolean): void; addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; } declare var HTMLFrameElement: { prototype: HTMLFrameElement; new(): HTMLFrameElement; } interface HTMLFrameSetElement extends HTMLElement { border: string; /** * Sets or retrieves the border color of the object. */ borderColor: any; /** * Sets or retrieves the frame widths of the object. */ cols: string; /** * Sets or retrieves whether to display a border for the frame. */ frameBorder: string; /** * Sets or retrieves the amount of additional space between the frames. */ frameSpacing: any; name: string; onafterprint: (ev: Event) => any; onbeforeprint: (ev: Event) => any; onbeforeunload: (ev: BeforeUnloadEvent) => any; /** * Fires when the object loses the input focus. */ onblur: (ev: FocusEvent) => any; onerror: (ev: Event) => any; /** * Fires when the object receives focus. */ onfocus: (ev: FocusEvent) => any; onhashchange: (ev: HashChangeEvent) => any; onload: (ev: Event) => any; onmessage: (ev: MessageEvent) => any; onoffline: (ev: Event) => any; ononline: (ev: Event) => any; onorientationchange: (ev: Event) => any; onpagehide: (ev: PageTransitionEvent) => any; onpageshow: (ev: PageTransitionEvent) => any; onresize: (ev: UIEvent) => any; onstorage: (ev: StorageEvent) => any; onunload: (ev: Event) => any; /** * Sets or retrieves the frame heights of the object. */ rows: string; addEventListener(type: "MSContentZoom", listener: (ev: UIEvent) => any, useCapture?: boolean): void; addEventListener(type: "MSGestureChange", listener: (ev: MSGestureEvent) => any, useCapture?: boolean): void; addEventListener(type: "MSGestureDoubleTap", listener: (ev: MSGestureEvent) => any, useCapture?: boolean): void; addEventListener(type: "MSGestureEnd", listener: (ev: MSGestureEvent) => any, useCapture?: boolean): void; addEventListener(type: "MSGestureHold", listener: (ev: MSGestureEvent) => any, useCapture?: boolean): void; addEventListener(type: "MSGestureStart", listener: (ev: MSGestureEvent) => any, useCapture?: boolean): void; addEventListener(type: "MSGestureTap", listener: (ev: MSGestureEvent) => any, useCapture?: boolean): void; addEventListener(type: "MSGotPointerCapture", listener: (ev: MSPointerEvent) => any, useCapture?: boolean): void; addEventListener(type: "MSInertiaStart", listener: (ev: MSGestureEvent) => any, useCapture?: boolean): void; addEventListener(type: "MSLostPointerCapture", listener: (ev: MSPointerEvent) => any, useCapture?: boolean): void; addEventListener(type: "MSManipulationStateChanged", listener: (ev: MSManipulationEvent) => any, useCapture?: boolean): void; addEventListener(type: "MSPointerCancel", listener: (ev: MSPointerEvent) => any, useCapture?: boolean): void; addEventListener(type: "MSPointerDown", listener: (ev: MSPointerEvent) => any, useCapture?: boolean): void; addEventListener(type: "MSPointerEnter", listener: (ev: MSPointerEvent) => any, useCapture?: boolean): void; addEventListener(type: "MSPointerLeave", listener: (ev: MSPointerEvent) => any, useCapture?: boolean): void; addEventListener(type: "MSPointerMove", listener: (ev: MSPointerEvent) => any, useCapture?: boolean): void; addEventListener(type: "MSPointerOut", listener: (ev: MSPointerEvent) => any, useCapture?: boolean): void; addEventListener(type: "MSPointerOver", listener: (ev: MSPointerEvent) => any, useCapture?: boolean): void; addEventListener(type: "MSPointerUp", listener: (ev: MSPointerEvent) => any, useCapture?: boolean): void; addEventListener(type: "abort", listener: (ev: UIEvent) => any, useCapture?: boolean): void; addEventListener(type: "activate", listener: (ev: UIEvent) => any, useCapture?: boolean): void; addEventListener(type: "ariarequest", listener: (ev: AriaRequestEvent) => any, useCapture?: boolean): void; addEventListener(type: "beforeactivate", listener: (ev: UIEvent) => any, useCapture?: boolean): void; addEventListener(type: "beforecopy", listener: (ev: DragEvent) => any, useCapture?: boolean): void; addEventListener(type: "beforecut", listener: (ev: DragEvent) => any, useCapture?: boolean): void; addEventListener(type: "beforedeactivate", listener: (ev: UIEvent) => any, useCapture?: boolean): void; addEventListener(type: "beforepaste", listener: (ev: DragEvent) => any, useCapture?: boolean): void; addEventListener(type: "beforeprint", listener: (ev: Event) => any, useCapture?: boolean): void; addEventListener(type: "beforeunload", listener: (ev: BeforeUnloadEvent) => any, useCapture?: boolean): void; addEventListener(type: "blur", listener: (ev: FocusEvent) => any, useCapture?: boolean): void; addEventListener(type: "blur", listener: (ev: FocusEvent) => any, useCapture?: boolean): void; addEventListener(type: "canplay", listener: (ev: Event) => any, useCapture?: boolean): void; addEventListener(type: "canplaythrough", listener: (ev: Event) => any, useCapture?: boolean): void; addEventListener(type: "change", listener: (ev: Event) => any, useCapture?: boolean): void; addEventListener(type: "click", listener: (ev: MouseEvent) => any, useCapture?: boolean): void; addEventListener(type: "command", listener: (ev: CommandEvent) => any, useCapture?: boolean): void; addEventListener(type: "contextmenu", listener: (ev: PointerEvent) => any, useCapture?: boolean): void; addEventListener(type: "copy", listener: (ev: DragEvent) => any, useCapture?: boolean): void; addEventListener(type: "cuechange", listener: (ev: Event) => any, useCapture?: boolean): void; addEventListener(type: "cut", listener: (ev: DragEvent) => any, useCapture?: boolean): void; addEventListener(type: "dblclick", listener: (ev: MouseEvent) => any, useCapture?: boolean): void; addEventListener(type: "deactivate", listener: (ev: UIEvent) => any, useCapture?: boolean): void; addEventListener(type: "drag", listener: (ev: DragEvent) => any, useCapture?: boolean): void; addEventListener(type: "dragend", listener: (ev: DragEvent) => any, useCapture?: boolean): void; addEventListener(type: "dragenter", listener: (ev: DragEvent) => any, useCapture?: boolean): void; addEventListener(type: "dragleave", listener: (ev: DragEvent) => any, useCapture?: boolean): void; addEventListener(type: "dragover", listener: (ev: DragEvent) => any, useCapture?: boolean): void; addEventListener(type: "dragstart", listener: (ev: DragEvent) => any, useCapture?: boolean): void; addEventListener(type: "drop", listener: (ev: DragEvent) => any, useCapture?: boolean): void; addEventListener(type: "durationchange", listener: (ev: Event) => any, useCapture?: boolean): void; addEventListener(type: "emptied", listener: (ev: Event) => any, useCapture?: boolean): void; addEventListener(type: "ended", listener: (ev: Event) => any, useCapture?: boolean): void; addEventListener(type: "error", listener: (ev: ErrorEvent) => any, useCapture?: boolean): void; addEventListener(type: "error", listener: (ev: ErrorEvent) => any, useCapture?: boolean): void; addEventListener(type: "focus", listener: (ev: FocusEvent) => any, useCapture?: boolean): void; addEventListener(type: "focus", listener: (ev: FocusEvent) => any, useCapture?: boolean): void; addEventListener(type: "gotpointercapture", listener: (ev: PointerEvent) => any, useCapture?: boolean): void; addEventListener(type: "hashchange", listener: (ev: HashChangeEvent) => any, useCapture?: boolean): void; addEventListener(type: "input", listener: (ev: Event) => any, useCapture?: boolean): void; addEventListener(type: "keydown", listener: (ev: KeyboardEvent) => any, useCapture?: boolean): void; addEventListener(type: "keypress", listener: (ev: KeyboardEvent) => any, useCapture?: boolean): void; addEventListener(type: "keyup", listener: (ev: KeyboardEvent) => any, useCapture?: boolean): void; addEventListener(type: "load", listener: (ev: Event) => any, useCapture?: boolean): void; addEventListener(type: "load", listener: (ev: Event) => any, useCapture?: boolean): void; addEventListener(type: "loadeddata", listener: (ev: Event) => any, useCapture?: boolean): void; addEventListener(type: "loadedmetadata", listener: (ev: Event) => any, useCapture?: boolean): void; addEventListener(type: "loadstart", listener: (ev: Event) => any, useCapture?: boolean): void; addEventListener(type: "lostpointercapture", listener: (ev: PointerEvent) => any, useCapture?: boolean): void; addEventListener(type: "message", listener: (ev: MessageEvent) => any, useCapture?: boolean): void; addEventListener(type: "mousedown", listener: (ev: MouseEvent) => any, useCapture?: boolean): void; addEventListener(type: "mouseenter", listener: (ev: MouseEvent) => any, useCapture?: boolean): void; addEventListener(type: "mouseleave", listener: (ev: MouseEvent) => any, useCapture?: boolean): void; addEventListener(type: "mousemove", listener: (ev: MouseEvent) => any, useCapture?: boolean): void; addEventListener(type: "mouseout", listener: (ev: MouseEvent) => any, useCapture?: boolean): void; addEventListener(type: "mouseover", listener: (ev: MouseEvent) => any, useCapture?: boolean): void; addEventListener(type: "mouseup", listener: (ev: MouseEvent) => any, useCapture?: boolean): void; addEventListener(type: "mousewheel", listener: (ev: MouseWheelEvent) => any, useCapture?: boolean): void; addEventListener(type: "offline", listener: (ev: Event) => any, useCapture?: boolean): void; addEventListener(type: "online", listener: (ev: Event) => any, useCapture?: boolean): void; addEventListener(type: "orientationchange", listener: (ev: Event) => any, useCapture?: boolean): void; addEventListener(type: "pagehide", listener: (ev: PageTransitionEvent) => any, useCapture?: boolean): void; addEventListener(type: "pageshow", listener: (ev: PageTransitionEvent) => any, useCapture?: boolean): void; addEventListener(type: "paste", listener: (ev: DragEvent) => any, useCapture?: boolean): void; addEventListener(type: "pause", listener: (ev: Event) => any, useCapture?: boolean): void; addEventListener(type: "play", listener: (ev: Event) => any, useCapture?: boolean): void; addEventListener(type: "playing", listener: (ev: Event) => any, useCapture?: boolean): void; addEventListener(type: "pointercancel", listener: (ev: PointerEvent) => any, useCapture?: boolean): void; addEventListener(type: "pointerdown", listener: (ev: PointerEvent) => any, useCapture?: boolean): void; addEventListener(type: "pointerenter", listener: (ev: PointerEvent) => any, useCapture?: boolean): void; addEventListener(type: "pointerleave", listener: (ev: PointerEvent) => any, useCapture?: boolean): void; addEventListener(type: "pointermove", listener: (ev: PointerEvent) => any, useCapture?: boolean): void; addEventListener(type: "pointerout", listener: (ev: PointerEvent) => any, useCapture?: boolean): void; addEventListener(type: "pointerover", listener: (ev: PointerEvent) => any, useCapture?: boolean): void; addEventListener(type: "pointerup", listener: (ev: PointerEvent) => any, useCapture?: boolean): void; addEventListener(type: "progress", listener: (ev: ProgressEvent) => any, useCapture?: boolean): void; addEventListener(type: "ratechange", listener: (ev: Event) => any, useCapture?: boolean): void; addEventListener(type: "reset", listener: (ev: Event) => any, useCapture?: boolean): void; addEventListener(type: "resize", listener: (ev: UIEvent) => any, useCapture?: boolean): void; addEventListener(type: "scroll", listener: (ev: UIEvent) => any, useCapture?: boolean): void; addEventListener(type: "seeked", listener: (ev: Event) => any, useCapture?: boolean): void; addEventListener(type: "seeking", listener: (ev: Event) => any, useCapture?: boolean): void; addEventListener(type: "select", listener: (ev: UIEvent) => any, useCapture?: boolean): void; addEventListener(type: "selectstart", listener: (ev: Event) => any, useCapture?: boolean): void; addEventListener(type: "stalled", listener: (ev: Event) => any, useCapture?: boolean): void; addEventListener(type: "storage", listener: (ev: StorageEvent) => any, useCapture?: boolean): void; addEventListener(type: "submit", listener: (ev: Event) => any, useCapture?: boolean): void; addEventListener(type: "suspend", listener: (ev: Event) => any, useCapture?: boolean): void; addEventListener(type: "timeupdate", listener: (ev: Event) => any, useCapture?: boolean): void; addEventListener(type: "touchcancel", listener: (ev: TouchEvent) => any, useCapture?: boolean): void; addEventListener(type: "touchend", listener: (ev: TouchEvent) => any, useCapture?: boolean): void; addEventListener(type: "touchmove", listener: (ev: TouchEvent) => any, useCapture?: boolean): void; addEventListener(type: "touchstart", listener: (ev: TouchEvent) => any, useCapture?: boolean): void; addEventListener(type: "unload", listener: (ev: Event) => any, useCapture?: boolean): void; addEventListener(type: "volumechange", listener: (ev: Event) => any, useCapture?: boolean): void; addEventListener(type: "waiting", listener: (ev: Event) => any, useCapture?: boolean): void; addEventListener(type: "webkitfullscreenchange", listener: (ev: Event) => any, useCapture?: boolean): void; addEventListener(type: "webkitfullscreenerror", listener: (ev: Event) => any, useCapture?: boolean): void; addEventListener(type: "wheel", listener: (ev: WheelEvent) => any, useCapture?: boolean): void; addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; } declare var HTMLFrameSetElement: { prototype: HTMLFrameSetElement; new(): HTMLFrameSetElement; } interface HTMLHRElement extends HTMLElement, DOML2DeprecatedColorProperty, DOML2DeprecatedSizeProperty { /** * Sets or retrieves how the object is aligned with adjacent text. */ align: string; /** * Sets or retrieves whether the horizontal rule is drawn with 3-D shading. */ noShade: boolean; /** * Sets or retrieves the width of the object. */ width: number; addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; } declare var HTMLHRElement: { prototype: HTMLHRElement; new(): HTMLHRElement; } interface HTMLHeadElement extends HTMLElement { profile: string; } declare var HTMLHeadElement: { prototype: HTMLHeadElement; new(): HTMLHeadElement; } interface HTMLHeadingElement extends HTMLElement { /** * Sets or retrieves a value that indicates the table alignment. */ align: string; clear: string; } declare var HTMLHeadingElement: { prototype: HTMLHeadingElement; new(): HTMLHeadingElement; } interface HTMLHtmlElement extends HTMLElement { /** * Sets or retrieves the DTD version that governs the current document. */ version: string; } declare var HTMLHtmlElement: { prototype: HTMLHtmlElement; new(): HTMLHtmlElement; } interface HTMLIFrameElement extends HTMLElement, GetSVGDocument { /** * Sets or retrieves how the object is aligned with adjacent text. */ align: string; allowFullscreen: boolean; /** * Specifies the properties of a border drawn around an object. */ border: string; /** * Retrieves the document object of the page or frame. */ contentDocument: Document; /** * Retrieves the object of the specified. */ contentWindow: Window; /** * Sets or retrieves whether to display a border for the frame. */ frameBorder: string; /** * Sets or retrieves the amount of additional space between the frames. */ frameSpacing: any; /** * Sets or retrieves the height of the object. */ height: string; /** * Sets or retrieves the horizontal margin for the object. */ hspace: number; /** * Sets or retrieves a URI to a long description of the object. */ longDesc: string; /** * Sets or retrieves the top and bottom margin heights before displaying the text in a frame. */ marginHeight: string; /** * Sets or retrieves the left and right margin widths before displaying the text in a frame. */ marginWidth: string; /** * Sets or retrieves the frame name. */ name: string; /** * Sets or retrieves whether the user can resize the frame. */ noResize: boolean; /** * Raised when the object has been completely received from the server. */ onload: (ev: Event) => any; sandbox: DOMSettableTokenList; /** * Sets or retrieves whether the frame can be scrolled. */ scrolling: string; /** * Sets the value indicating whether the source file of a frame or iframe has specific security restrictions applied. */ security: any; /** * Sets or retrieves a URL to be loaded by the object. */ src: string; /** * Sets or retrieves the vertical margin for the object. */ vspace: number; /** * Sets or retrieves the width of the object. */ width: string; addEventListener(type: "MSContentZoom", listener: (ev: UIEvent) => any, useCapture?: boolean): void; addEventListener(type: "MSGestureChange", listener: (ev: MSGestureEvent) => any, useCapture?: boolean): void; addEventListener(type: "MSGestureDoubleTap", listener: (ev: MSGestureEvent) => any, useCapture?: boolean): void; addEventListener(type: "MSGestureEnd", listener: (ev: MSGestureEvent) => any, useCapture?: boolean): void; addEventListener(type: "MSGestureHold", listener: (ev: MSGestureEvent) => any, useCapture?: boolean): void; addEventListener(type: "MSGestureStart", listener: (ev: MSGestureEvent) => any, useCapture?: boolean): void; addEventListener(type: "MSGestureTap", listener: (ev: MSGestureEvent) => any, useCapture?: boolean): void; addEventListener(type: "MSGotPointerCapture", listener: (ev: MSPointerEvent) => any, useCapture?: boolean): void; addEventListener(type: "MSInertiaStart", listener: (ev: MSGestureEvent) => any, useCapture?: boolean): void; addEventListener(type: "MSLostPointerCapture", listener: (ev: MSPointerEvent) => any, useCapture?: boolean): void; addEventListener(type: "MSManipulationStateChanged", listener: (ev: MSManipulationEvent) => any, useCapture?: boolean): void; addEventListener(type: "MSPointerCancel", listener: (ev: MSPointerEvent) => any, useCapture?: boolean): void; addEventListener(type: "MSPointerDown", listener: (ev: MSPointerEvent) => any, useCapture?: boolean): void; addEventListener(type: "MSPointerEnter", listener: (ev: MSPointerEvent) => any, useCapture?: boolean): void; addEventListener(type: "MSPointerLeave", listener: (ev: MSPointerEvent) => any, useCapture?: boolean): void; addEventListener(type: "MSPointerMove", listener: (ev: MSPointerEvent) => any, useCapture?: boolean): void; addEventListener(type: "MSPointerOut", listener: (ev: MSPointerEvent) => any, useCapture?: boolean): void; addEventListener(type: "MSPointerOver", listener: (ev: MSPointerEvent) => any, useCapture?: boolean): void; addEventListener(type: "MSPointerUp", listener: (ev: MSPointerEvent) => any, useCapture?: boolean): void; addEventListener(type: "abort", listener: (ev: UIEvent) => any, useCapture?: boolean): void; addEventListener(type: "activate", listener: (ev: UIEvent) => any, useCapture?: boolean): void; addEventListener(type: "ariarequest", listener: (ev: AriaRequestEvent) => any, useCapture?: boolean): void; addEventListener(type: "beforeactivate", listener: (ev: UIEvent) => any, useCapture?: boolean): void; addEventListener(type: "beforecopy", listener: (ev: DragEvent) => any, useCapture?: boolean): void; addEventListener(type: "beforecut", listener: (ev: DragEvent) => any, useCapture?: boolean): void; addEventListener(type: "beforedeactivate", listener: (ev: UIEvent) => any, useCapture?: boolean): void; addEventListener(type: "beforepaste", listener: (ev: DragEvent) => any, useCapture?: boolean): void; addEventListener(type: "blur", listener: (ev: FocusEvent) => any, useCapture?: boolean): void; addEventListener(type: "canplay", listener: (ev: Event) => any, useCapture?: boolean): void; addEventListener(type: "canplaythrough", listener: (ev: Event) => any, useCapture?: boolean): void; addEventListener(type: "change", listener: (ev: Event) => any, useCapture?: boolean): void; addEventListener(type: "click", listener: (ev: MouseEvent) => any, useCapture?: boolean): void; addEventListener(type: "command", listener: (ev: CommandEvent) => any, useCapture?: boolean): void; addEventListener(type: "contextmenu", listener: (ev: PointerEvent) => any, useCapture?: boolean): void; addEventListener(type: "copy", listener: (ev: DragEvent) => any, useCapture?: boolean): void; addEventListener(type: "cuechange", listener: (ev: Event) => any, useCapture?: boolean): void; addEventListener(type: "cut", listener: (ev: DragEvent) => any, useCapture?: boolean): void; addEventListener(type: "dblclick", listener: (ev: MouseEvent) => any, useCapture?: boolean): void; addEventListener(type: "deactivate", listener: (ev: UIEvent) => any, useCapture?: boolean): void; addEventListener(type: "drag", listener: (ev: DragEvent) => any, useCapture?: boolean): void; addEventListener(type: "dragend", listener: (ev: DragEvent) => any, useCapture?: boolean): void; addEventListener(type: "dragenter", listener: (ev: DragEvent) => any, useCapture?: boolean): void; addEventListener(type: "dragleave", listener: (ev: DragEvent) => any, useCapture?: boolean): void; addEventListener(type: "dragover", listener: (ev: DragEvent) => any, useCapture?: boolean): void; addEventListener(type: "dragstart", listener: (ev: DragEvent) => any, useCapture?: boolean): void; addEventListener(type: "drop", listener: (ev: DragEvent) => any, useCapture?: boolean): void; addEventListener(type: "durationchange", listener: (ev: Event) => any, useCapture?: boolean): void; addEventListener(type: "emptied", listener: (ev: Event) => any, useCapture?: boolean): void; addEventListener(type: "ended", listener: (ev: Event) => any, useCapture?: boolean): void; addEventListener(type: "error", listener: (ev: ErrorEvent) => any, useCapture?: boolean): void; addEventListener(type: "focus", listener: (ev: FocusEvent) => any, useCapture?: boolean): void; addEventListener(type: "gotpointercapture", listener: (ev: PointerEvent) => any, useCapture?: boolean): void; addEventListener(type: "input", listener: (ev: Event) => any, useCapture?: boolean): void; addEventListener(type: "keydown", listener: (ev: KeyboardEvent) => any, useCapture?: boolean): void; addEventListener(type: "keypress", listener: (ev: KeyboardEvent) => any, useCapture?: boolean): void; addEventListener(type: "keyup", listener: (ev: KeyboardEvent) => any, useCapture?: boolean): void; addEventListener(type: "load", listener: (ev: Event) => any, useCapture?: boolean): void; addEventListener(type: "load", listener: (ev: Event) => any, useCapture?: boolean): void; addEventListener(type: "loadeddata", listener: (ev: Event) => any, useCapture?: boolean): void; addEventListener(type: "loadedmetadata", listener: (ev: Event) => any, useCapture?: boolean): void; addEventListener(type: "loadstart", listener: (ev: Event) => any, useCapture?: boolean): void; addEventListener(type: "lostpointercapture", listener: (ev: PointerEvent) => any, useCapture?: boolean): void; addEventListener(type: "mousedown", listener: (ev: MouseEvent) => any, useCapture?: boolean): void; addEventListener(type: "mouseenter", listener: (ev: MouseEvent) => any, useCapture?: boolean): void; addEventListener(type: "mouseleave", listener: (ev: MouseEvent) => any, useCapture?: boolean): void; addEventListener(type: "mousemove", listener: (ev: MouseEvent) => any, useCapture?: boolean): void; addEventListener(type: "mouseout", listener: (ev: MouseEvent) => any, useCapture?: boolean): void; addEventListener(type: "mouseover", listener: (ev: MouseEvent) => any, useCapture?: boolean): void; addEventListener(type: "mouseup", listener: (ev: MouseEvent) => any, useCapture?: boolean): void; addEventListener(type: "mousewheel", listener: (ev: MouseWheelEvent) => any, useCapture?: boolean): void; addEventListener(type: "paste", listener: (ev: DragEvent) => any, useCapture?: boolean): void; addEventListener(type: "pause", listener: (ev: Event) => any, useCapture?: boolean): void; addEventListener(type: "play", listener: (ev: Event) => any, useCapture?: boolean): void; addEventListener(type: "playing", listener: (ev: Event) => any, useCapture?: boolean): void; addEventListener(type: "pointercancel", listener: (ev: PointerEvent) => any, useCapture?: boolean): void; addEventListener(type: "pointerdown", listener: (ev: PointerEvent) => any, useCapture?: boolean): void; addEventListener(type: "pointerenter", listener: (ev: PointerEvent) => any, useCapture?: boolean): void; addEventListener(type: "pointerleave", listener: (ev: PointerEvent) => any, useCapture?: boolean): void; addEventListener(type: "pointermove", listener: (ev: PointerEvent) => any, useCapture?: boolean): void; addEventListener(type: "pointerout", listener: (ev: PointerEvent) => any, useCapture?: boolean): void; addEventListener(type: "pointerover", listener: (ev: PointerEvent) => any, useCapture?: boolean): void; addEventListener(type: "pointerup", listener: (ev: PointerEvent) => any, useCapture?: boolean): void; addEventListener(type: "progress", listener: (ev: ProgressEvent) => any, useCapture?: boolean): void; addEventListener(type: "ratechange", listener: (ev: Event) => any, useCapture?: boolean): void; addEventListener(type: "reset", listener: (ev: Event) => any, useCapture?: boolean): void; addEventListener(type: "scroll", listener: (ev: UIEvent) => any, useCapture?: boolean): void; addEventListener(type: "seeked", listener: (ev: Event) => any, useCapture?: boolean): void; addEventListener(type: "seeking", listener: (ev: Event) => any, useCapture?: boolean): void; addEventListener(type: "select", listener: (ev: UIEvent) => any, useCapture?: boolean): void; addEventListener(type: "selectstart", listener: (ev: Event) => any, useCapture?: boolean): void; addEventListener(type: "stalled", listener: (ev: Event) => any, useCapture?: boolean): void; addEventListener(type: "submit", listener: (ev: Event) => any, useCapture?: boolean): void; addEventListener(type: "suspend", listener: (ev: Event) => any, useCapture?: boolean): void; addEventListener(type: "timeupdate", listener: (ev: Event) => any, useCapture?: boolean): void; addEventListener(type: "touchcancel", listener: (ev: TouchEvent) => any, useCapture?: boolean): void; addEventListener(type: "touchend", listener: (ev: TouchEvent) => any, useCapture?: boolean): void; addEventListener(type: "touchmove", listener: (ev: TouchEvent) => any, useCapture?: boolean): void; addEventListener(type: "touchstart", listener: (ev: TouchEvent) => any, useCapture?: boolean): void; addEventListener(type: "volumechange", listener: (ev: Event) => any, useCapture?: boolean): void; addEventListener(type: "waiting", listener: (ev: Event) => any, useCapture?: boolean): void; addEventListener(type: "webkitfullscreenchange", listener: (ev: Event) => any, useCapture?: boolean): void; addEventListener(type: "webkitfullscreenerror", listener: (ev: Event) => any, useCapture?: boolean): void; addEventListener(type: "wheel", listener: (ev: WheelEvent) => any, useCapture?: boolean): void; addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; } declare var HTMLIFrameElement: { prototype: HTMLIFrameElement; new(): HTMLIFrameElement; } interface HTMLImageElement extends HTMLElement { /** * Sets or retrieves how the object is aligned with adjacent text. */ align: string; /** * Sets or retrieves a text alternative to the graphic. */ alt: string; /** * Specifies the properties of a border drawn around an object. */ border: string; /** * Retrieves whether the object is fully loaded. */ complete: boolean; crossOrigin: string; currentSrc: string; /** * Sets or retrieves the height of the object. */ height: number; /** * Sets or retrieves the width of the border to draw around the object. */ hspace: number; /** * Sets or retrieves whether the image is a server-side image map. */ isMap: boolean; /** * Sets or retrieves a Uniform Resource Identifier (URI) to a long description of the object. */ longDesc: string; /** * Gets or sets whether the DLNA PlayTo device is available. */ msPlayToDisabled: boolean; msPlayToPreferredSourceUri: string; /** * Gets or sets the primary DLNA PlayTo device. */ msPlayToPrimary: boolean; /** * Gets the source associated with the media element for use by the PlayToManager. */ msPlayToSource: any; /** * Sets or retrieves the name of the object. */ name: string; /** * The original height of the image resource before sizing. */ naturalHeight: number; /** * The original width of the image resource before sizing. */ naturalWidth: number; /** * The address or URL of the a media resource that is to be considered. */ src: string; srcset: string; /** * Sets or retrieves the URL, often with a bookmark extension (#name), to use as a client-side image map. */ useMap: string; /** * Sets or retrieves the vertical margin for the object. */ vspace: number; /** * Sets or retrieves the width of the object. */ width: number; x: number; y: number; msGetAsCastingSource(): any; } declare var HTMLImageElement: { prototype: HTMLImageElement; new(): HTMLImageElement; create(): HTMLImageElement; } interface HTMLInputElement extends HTMLElement { /** * Sets or retrieves a comma-separated list of content types. */ accept: string; /** * Sets or retrieves how the object is aligned with adjacent text. */ align: string; /** * Sets or retrieves a text alternative to the graphic. */ alt: string; /** * Specifies whether autocomplete is applied to an editable text field. */ autocomplete: string; /** * Provides a way to direct a user to a specific field when a document loads. This can provide both direction and convenience for a user, reducing the need to click or tab to a field when a page opens. This attribute is true when present on an element, and false when missing. */ autofocus: boolean; /** * Sets or retrieves the width of the border to draw around the object. */ border: string; /** * Sets or retrieves the state of the check box or radio button. */ checked: boolean; /** * Retrieves whether the object is fully loaded. */ complete: boolean; /** * Sets or retrieves the state of the check box or radio button. */ defaultChecked: boolean; /** * Sets or retrieves the initial contents of the object. */ defaultValue: string; disabled: boolean; /** * Returns a FileList object on a file type input object. */ files: FileList; /** * Retrieves a reference to the form that the object is embedded in. */ form: HTMLFormElement; /** * Overrides the action attribute (where the data on a form is sent) on the parent form element. */ formAction: string; /** * Used to override the encoding (formEnctype attribute) specified on the form element. */ formEnctype: string; /** * Overrides the submit method attribute previously specified on a form element. */ formMethod: string; /** * Overrides any validation or required attributes on a form or form elements to allow it to be submitted without validation. This can be used to create a "save draft"-type submit option. */ formNoValidate: string; /** * Overrides the target attribute on a form element. */ formTarget: string; /** * Sets or retrieves the height of the object. */ height: string; /** * Sets or retrieves the width of the border to draw around the object. */ hspace: number; indeterminate: boolean; /** * Specifies the ID of a pre-defined datalist of options for an input element. */ list: HTMLElement; /** * Defines the maximum acceptable value for an input element with type="number".When used with the min and step attributes, lets you control the range and increment (such as only even numbers) that the user can enter into an input field. */ max: string; /** * Sets or retrieves the maximum number of characters that the user can enter in a text control. */ maxLength: number; /** * Defines the minimum acceptable value for an input element with type="number". When used with the max and step attributes, lets you control the range and increment (such as even numbers only) that the user can enter into an input field. */ min: string; /** * Sets or retrieves the Boolean value indicating whether multiple items can be selected from a list. */ multiple: boolean; /** * Sets or retrieves the name of the object. */ name: string; /** * Gets or sets a string containing a regular expression that the user's input must match. */ pattern: string; /** * Gets or sets a text string that is displayed in an input field as a hint or prompt to users as the format or type of information they need to enter.The text appears in an input field until the user puts focus on the field. */ placeholder: string; readOnly: boolean; /** * When present, marks an element that can't be submitted without a value. */ required: boolean; /** * Gets or sets the end position or offset of a text selection. */ selectionEnd: number; /** * Gets or sets the starting position or offset of a text selection. */ selectionStart: number; size: number; /** * The address or URL of the a media resource that is to be considered. */ src: string; status: boolean; /** * Defines an increment or jump between values that you want to allow the user to enter. When used with the max and min attributes, lets you control the range and increment (for example, allow only even numbers) that the user can enter into an input field. */ step: string; /** * Returns the content type of the object. */ type: string; /** * Sets or retrieves the URL, often with a bookmark extension (#name), to use as a client-side image map. */ useMap: string; /** * Returns the error message that would be displayed if the user submits the form, or an empty string if no error message. It also triggers the standard error message, such as "this is a required field". The result is that the user sees validation messages without actually submitting. */ validationMessage: string; /** * Returns a ValidityState object that represents the validity states of an element. */ validity: ValidityState; /** * Returns the value of the data at the cursor's current position. */ value: string; valueAsDate: Date; /** * Returns the input field value as a number. */ valueAsNumber: number; /** * Sets or retrieves the vertical margin for the object. */ vspace: number; /** * Sets or retrieves the width of the object. */ width: string; /** * Returns whether an element will successfully validate based on forms validation rules and constraints. */ willValidate: boolean; /** * Returns whether a form will validate when it is submitted, without having to submit it. */ checkValidity(): boolean; /** * Creates a TextRange object for the element. */ createTextRange(): TextRange; /** * Makes the selection equal to the current object. */ select(): void; /** * Sets a custom error message that is displayed when a form is submitted. * @param error Sets a custom error message that is displayed when a form is submitted. */ setCustomValidity(error: string): void; /** * Sets the start and end positions of a selection in a text field. * @param start The offset into the text field for the start of the selection. * @param end The offset into the text field for the end of the selection. */ setSelectionRange(start: number, end: number): void; /** * Decrements a range input control's value by the value given by the Step attribute. If the optional parameter is used, it will decrement the input control's step value multiplied by the parameter's value. * @param n Value to decrement the value by. */ stepDown(n?: number): void; /** * Increments a range input control's value by the value given by the Step attribute. If the optional parameter is used, will increment the input control's value by that value. * @param n Value to increment the value by. */ stepUp(n?: number): void; } declare var HTMLInputElement: { prototype: HTMLInputElement; new(): HTMLInputElement; } interface HTMLIsIndexElement extends HTMLElement { /** * Sets or retrieves the URL to which the form content is sent for processing. */ action: string; /** * Retrieves a reference to the form that the object is embedded in. */ form: HTMLFormElement; prompt: string; } declare var HTMLIsIndexElement: { prototype: HTMLIsIndexElement; new(): HTMLIsIndexElement; } interface HTMLLIElement extends HTMLElement { type: string; /** * Sets or retrieves the value of a list item. */ value: number; } declare var HTMLLIElement: { prototype: HTMLLIElement; new(): HTMLLIElement; } interface HTMLLabelElement extends HTMLElement { /** * Retrieves a reference to the form that the object is embedded in. */ form: HTMLFormElement; /** * Sets or retrieves the object to which the given label object is assigned. */ htmlFor: string; } declare var HTMLLabelElement: { prototype: HTMLLabelElement; new(): HTMLLabelElement; } interface HTMLLegendElement extends HTMLElement { /** * Retrieves a reference to the form that the object is embedded in. */ align: string; /** * Retrieves a reference to the form that the object is embedded in. */ form: HTMLFormElement; } declare var HTMLLegendElement: { prototype: HTMLLegendElement; new(): HTMLLegendElement; } interface HTMLLinkElement extends HTMLElement, LinkStyle { /** * Sets or retrieves the character set used to encode the object. */ charset: string; disabled: boolean; /** * Sets or retrieves a destination URL or an anchor point. */ href: string; /** * Sets or retrieves the language code of the object. */ hreflang: string; /** * Sets or retrieves the media type. */ media: string; /** * Sets or retrieves the relationship between the object and the destination of the link. */ rel: string; /** * Sets or retrieves the relationship between the object and the destination of the link. */ rev: string; /** * Sets or retrieves the window or frame at which to target content. */ target: string; /** * Sets or retrieves the MIME type of the object. */ type: string; addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; } declare var HTMLLinkElement: { prototype: HTMLLinkElement; new(): HTMLLinkElement; } interface HTMLMapElement extends HTMLElement { /** * Retrieves a collection of the area objects defined for the given map object. */ areas: HTMLAreasCollection; /** * Sets or retrieves the name of the object. */ name: string; } declare var HTMLMapElement: { prototype: HTMLMapElement; new(): HTMLMapElement; } interface HTMLMarqueeElement extends HTMLElement { behavior: string; bgColor: any; direction: string; height: string; hspace: number; loop: number; onbounce: (ev: Event) => any; onfinish: (ev: Event) => any; onstart: (ev: Event) => any; scrollAmount: number; scrollDelay: number; trueSpeed: boolean; vspace: number; width: string; start(): void; stop(): void; addEventListener(type: "MSContentZoom", listener: (ev: UIEvent) => any, useCapture?: boolean): void; addEventListener(type: "MSGestureChange", listener: (ev: MSGestureEvent) => any, useCapture?: boolean): void; addEventListener(type: "MSGestureDoubleTap", listener: (ev: MSGestureEvent) => any, useCapture?: boolean): void; addEventListener(type: "MSGestureEnd", listener: (ev: MSGestureEvent) => any, useCapture?: boolean): void; addEventListener(type: "MSGestureHold", listener: (ev: MSGestureEvent) => any, useCapture?: boolean): void; addEventListener(type: "MSGestureStart", listener: (ev: MSGestureEvent) => any, useCapture?: boolean): void; addEventListener(type: "MSGestureTap", listener: (ev: MSGestureEvent) => any, useCapture?: boolean): void; addEventListener(type: "MSGotPointerCapture", listener: (ev: MSPointerEvent) => any, useCapture?: boolean): void; addEventListener(type: "MSInertiaStart", listener: (ev: MSGestureEvent) => any, useCapture?: boolean): void; addEventListener(type: "MSLostPointerCapture", listener: (ev: MSPointerEvent) => any, useCapture?: boolean): void; addEventListener(type: "MSManipulationStateChanged", listener: (ev: MSManipulationEvent) => any, useCapture?: boolean): void; addEventListener(type: "MSPointerCancel", listener: (ev: MSPointerEvent) => any, useCapture?: boolean): void; addEventListener(type: "MSPointerDown", listener: (ev: MSPointerEvent) => any, useCapture?: boolean): void; addEventListener(type: "MSPointerEnter", listener: (ev: MSPointerEvent) => any, useCapture?: boolean): void; addEventListener(type: "MSPointerLeave", listener: (ev: MSPointerEvent) => any, useCapture?: boolean): void; addEventListener(type: "MSPointerMove", listener: (ev: MSPointerEvent) => any, useCapture?: boolean): void; addEventListener(type: "MSPointerOut", listener: (ev: MSPointerEvent) => any, useCapture?: boolean): void; addEventListener(type: "MSPointerOver", listener: (ev: MSPointerEvent) => any, useCapture?: boolean): void; addEventListener(type: "MSPointerUp", listener: (ev: MSPointerEvent) => any, useCapture?: boolean): void; addEventListener(type: "abort", listener: (ev: UIEvent) => any, useCapture?: boolean): void; addEventListener(type: "activate", listener: (ev: UIEvent) => any, useCapture?: boolean): void; addEventListener(type: "ariarequest", listener: (ev: AriaRequestEvent) => any, useCapture?: boolean): void; addEventListener(type: "beforeactivate", listener: (ev: UIEvent) => any, useCapture?: boolean): void; addEventListener(type: "beforecopy", listener: (ev: DragEvent) => any, useCapture?: boolean): void; addEventListener(type: "beforecut", listener: (ev: DragEvent) => any, useCapture?: boolean): void; addEventListener(type: "beforedeactivate", listener: (ev: UIEvent) => any, useCapture?: boolean): void; addEventListener(type: "beforepaste", listener: (ev: DragEvent) => any, useCapture?: boolean): void; addEventListener(type: "blur", listener: (ev: FocusEvent) => any, useCapture?: boolean): void; addEventListener(type: "bounce", listener: (ev: Event) => any, useCapture?: boolean): void; addEventListener(type: "canplay", listener: (ev: Event) => any, useCapture?: boolean): void; addEventListener(type: "canplaythrough", listener: (ev: Event) => any, useCapture?: boolean): void; addEventListener(type: "change", listener: (ev: Event) => any, useCapture?: boolean): void; addEventListener(type: "click", listener: (ev: MouseEvent) => any, useCapture?: boolean): void; addEventListener(type: "command", listener: (ev: CommandEvent) => any, useCapture?: boolean): void; addEventListener(type: "contextmenu", listener: (ev: PointerEvent) => any, useCapture?: boolean): void; addEventListener(type: "copy", listener: (ev: DragEvent) => any, useCapture?: boolean): void; addEventListener(type: "cuechange", listener: (ev: Event) => any, useCapture?: boolean): void; addEventListener(type: "cut", listener: (ev: DragEvent) => any, useCapture?: boolean): void; addEventListener(type: "dblclick", listener: (ev: MouseEvent) => any, useCapture?: boolean): void; addEventListener(type: "deactivate", listener: (ev: UIEvent) => any, useCapture?: boolean): void; addEventListener(type: "drag", listener: (ev: DragEvent) => any, useCapture?: boolean): void; addEventListener(type: "dragend", listener: (ev: DragEvent) => any, useCapture?: boolean): void; addEventListener(type: "dragenter", listener: (ev: DragEvent) => any, useCapture?: boolean): void; addEventListener(type: "dragleave", listener: (ev: DragEvent) => any, useCapture?: boolean): void; addEventListener(type: "dragover", listener: (ev: DragEvent) => any, useCapture?: boolean): void; addEventListener(type: "dragstart", listener: (ev: DragEvent) => any, useCapture?: boolean): void; addEventListener(type: "drop", listener: (ev: DragEvent) => any, useCapture?: boolean): void; addEventListener(type: "durationchange", listener: (ev: Event) => any, useCapture?: boolean): void; addEventListener(type: "emptied", listener: (ev: Event) => any, useCapture?: boolean): void; addEventListener(type: "ended", listener: (ev: Event) => any, useCapture?: boolean): void; addEventListener(type: "error", listener: (ev: ErrorEvent) => any, useCapture?: boolean): void; addEventListener(type: "finish", listener: (ev: Event) => any, useCapture?: boolean): void; addEventListener(type: "focus", listener: (ev: FocusEvent) => any, useCapture?: boolean): void; addEventListener(type: "gotpointercapture", listener: (ev: PointerEvent) => any, useCapture?: boolean): void; addEventListener(type: "input", listener: (ev: Event) => any, useCapture?: boolean): void; addEventListener(type: "keydown", listener: (ev: KeyboardEvent) => any, useCapture?: boolean): void; addEventListener(type: "keypress", listener: (ev: KeyboardEvent) => any, useCapture?: boolean): void; addEventListener(type: "keyup", listener: (ev: KeyboardEvent) => any, useCapture?: boolean): void; addEventListener(type: "load", listener: (ev: Event) => any, useCapture?: boolean): void; addEventListener(type: "loadeddata", listener: (ev: Event) => any, useCapture?: boolean): void; addEventListener(type: "loadedmetadata", listener: (ev: Event) => any, useCapture?: boolean): void; addEventListener(type: "loadstart", listener: (ev: Event) => any, useCapture?: boolean): void; addEventListener(type: "lostpointercapture", listener: (ev: PointerEvent) => any, useCapture?: boolean): void; addEventListener(type: "mousedown", listener: (ev: MouseEvent) => any, useCapture?: boolean): void; addEventListener(type: "mouseenter", listener: (ev: MouseEvent) => any, useCapture?: boolean): void; addEventListener(type: "mouseleave", listener: (ev: MouseEvent) => any, useCapture?: boolean): void; addEventListener(type: "mousemove", listener: (ev: MouseEvent) => any, useCapture?: boolean): void; addEventListener(type: "mouseout", listener: (ev: MouseEvent) => any, useCapture?: boolean): void; addEventListener(type: "mouseover", listener: (ev: MouseEvent) => any, useCapture?: boolean): void; addEventListener(type: "mouseup", listener: (ev: MouseEvent) => any, useCapture?: boolean): void; addEventListener(type: "mousewheel", listener: (ev: MouseWheelEvent) => any, useCapture?: boolean): void; addEventListener(type: "paste", listener: (ev: DragEvent) => any, useCapture?: boolean): void; addEventListener(type: "pause", listener: (ev: Event) => any, useCapture?: boolean): void; addEventListener(type: "play", listener: (ev: Event) => any, useCapture?: boolean): void; addEventListener(type: "playing", listener: (ev: Event) => any, useCapture?: boolean): void; addEventListener(type: "pointercancel", listener: (ev: PointerEvent) => any, useCapture?: boolean): void; addEventListener(type: "pointerdown", listener: (ev: PointerEvent) => any, useCapture?: boolean): void; addEventListener(type: "pointerenter", listener: (ev: PointerEvent) => any, useCapture?: boolean): void; addEventListener(type: "pointerleave", listener: (ev: PointerEvent) => any, useCapture?: boolean): void; addEventListener(type: "pointermove", listener: (ev: PointerEvent) => any, useCapture?: boolean): void; addEventListener(type: "pointerout", listener: (ev: PointerEvent) => any, useCapture?: boolean): void; addEventListener(type: "pointerover", listener: (ev: PointerEvent) => any, useCapture?: boolean): void; addEventListener(type: "pointerup", listener: (ev: PointerEvent) => any, useCapture?: boolean): void; addEventListener(type: "progress", listener: (ev: ProgressEvent) => any, useCapture?: boolean): void; addEventListener(type: "ratechange", listener: (ev: Event) => any, useCapture?: boolean): void; addEventListener(type: "reset", listener: (ev: Event) => any, useCapture?: boolean): void; addEventListener(type: "scroll", listener: (ev: UIEvent) => any, useCapture?: boolean): void; addEventListener(type: "seeked", listener: (ev: Event) => any, useCapture?: boolean): void; addEventListener(type: "seeking", listener: (ev: Event) => any, useCapture?: boolean): void; addEventListener(type: "select", listener: (ev: UIEvent) => any, useCapture?: boolean): void; addEventListener(type: "selectstart", listener: (ev: Event) => any, useCapture?: boolean): void; addEventListener(type: "stalled", listener: (ev: Event) => any, useCapture?: boolean): void; addEventListener(type: "start", listener: (ev: Event) => any, useCapture?: boolean): void; addEventListener(type: "submit", listener: (ev: Event) => any, useCapture?: boolean): void; addEventListener(type: "suspend", listener: (ev: Event) => any, useCapture?: boolean): void; addEventListener(type: "timeupdate", listener: (ev: Event) => any, useCapture?: boolean): void; addEventListener(type: "touchcancel", listener: (ev: TouchEvent) => any, useCapture?: boolean): void; addEventListener(type: "touchend", listener: (ev: TouchEvent) => any, useCapture?: boolean): void; addEventListener(type: "touchmove", listener: (ev: TouchEvent) => any, useCapture?: boolean): void; addEventListener(type: "touchstart", listener: (ev: TouchEvent) => any, useCapture?: boolean): void; addEventListener(type: "volumechange", listener: (ev: Event) => any, useCapture?: boolean): void; addEventListener(type: "waiting", listener: (ev: Event) => any, useCapture?: boolean): void; addEventListener(type: "webkitfullscreenchange", listener: (ev: Event) => any, useCapture?: boolean): void; addEventListener(type: "webkitfullscreenerror", listener: (ev: Event) => any, useCapture?: boolean): void; addEventListener(type: "wheel", listener: (ev: WheelEvent) => any, useCapture?: boolean): void; addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; } declare var HTMLMarqueeElement: { prototype: HTMLMarqueeElement; new(): HTMLMarqueeElement; } interface HTMLMediaElement extends HTMLElement { /** * Returns an AudioTrackList object with the audio tracks for a given video element. */ audioTracks: AudioTrackList; /** * Gets or sets a value that indicates whether to start playing the media automatically. */ autoplay: boolean; /** * Gets a collection of buffered time ranges. */ buffered: TimeRanges; /** * Gets or sets a flag that indicates whether the client provides a set of controls for the media (in case the developer does not include controls for the player). */ controls: boolean; /** * Gets the address or URL of the current media resource that is selected by IHTMLMediaElement. */ currentSrc: string; /** * Gets or sets the current playback position, in seconds. */ currentTime: number; defaultMuted: boolean; /** * Gets or sets the default playback rate when the user is not using fast forward or reverse for a video or audio resource. */ defaultPlaybackRate: number; /** * Returns the duration in seconds of the current media resource. A NaN value is returned if duration is not available, or Infinity if the media resource is streaming. */ duration: number; /** * Gets information about whether the playback has ended or not. */ ended: boolean; /** * Returns an object representing the current error state of the audio or video element. */ error: MediaError; /** * Gets or sets a flag to specify whether playback should restart after it completes. */ loop: boolean; /** * Specifies the purpose of the audio or video media, such as background audio or alerts. */ msAudioCategory: string; /** * Specifies the output device id that the audio will be sent to. */ msAudioDeviceType: string; msGraphicsTrustStatus: MSGraphicsTrust; /** * Gets the MSMediaKeys object, which is used for decrypting media data, that is associated with this media element. */ msKeys: MSMediaKeys; /** * Gets or sets whether the DLNA PlayTo device is available. */ msPlayToDisabled: boolean; /** * Gets or sets the path to the preferred media source. This enables the Play To target device to stream the media content, which can be DRM protected, from a different location, such as a cloud media server. */ msPlayToPreferredSourceUri: string; /** * Gets or sets the primary DLNA PlayTo device. */ msPlayToPrimary: boolean; /** * Gets the source associated with the media element for use by the PlayToManager. */ msPlayToSource: any; /** * Specifies whether or not to enable low-latency playback on the media element. */ msRealTime: boolean; /** * Gets or sets a flag that indicates whether the audio (either audio or the audio track on video media) is muted. */ muted: boolean; /** * Gets the current network activity for the element. */ networkState: number; onmsneedkey: (ev: MSMediaKeyNeededEvent) => any; /** * Gets a flag that specifies whether playback is paused. */ paused: boolean; /** * Gets or sets the current rate of speed for the media resource to play. This speed is expressed as a multiple of the normal speed of the media resource. */ playbackRate: number; /** * Gets TimeRanges for the current media resource that has been played. */ played: TimeRanges; /** * Gets or sets the current playback position, in seconds. */ preload: string; readyState: any; /** * Returns a TimeRanges object that represents the ranges of the current media resource that can be seeked. */ seekable: TimeRanges; /** * Gets a flag that indicates whether the the client is currently moving to a new playback position in the media resource. */ seeking: boolean; /** * The address or URL of the a media resource that is to be considered. */ src: string; textTracks: TextTrackList; videoTracks: VideoTrackList; /** * Gets or sets the volume level for audio portions of the media element. */ volume: number; addTextTrack(kind: string, label?: string, language?: string): TextTrack; /** * Returns a string that specifies whether the client can play a given media resource type. */ canPlayType(type: string): string; /** * Fires immediately after the client loads the object. */ load(): void; /** * Clears all effects from the media pipeline. */ msClearEffects(): void; msGetAsCastingSource(): any; /** * Inserts the specified audio effect into media pipeline. */ msInsertAudioEffect(activatableClassId: string, effectRequired: boolean, config?: any): void; msSetMediaKeys(mediaKeys: MSMediaKeys): void; /** * Specifies the media protection manager for a given media pipeline. */ msSetMediaProtectionManager(mediaProtectionManager?: any): void; /** * Pauses the current playback and sets paused to TRUE. This can be used to test whether the media is playing or paused. You can also use the pause or play events to tell whether the media is playing or not. */ pause(): void; /** * Loads and starts playback of a media resource. */ play(): void; HAVE_CURRENT_DATA: number; HAVE_ENOUGH_DATA: number; HAVE_FUTURE_DATA: number; HAVE_METADATA: number; HAVE_NOTHING: number; NETWORK_EMPTY: number; NETWORK_IDLE: number; NETWORK_LOADING: number; NETWORK_NO_SOURCE: number; addEventListener(type: "MSContentZoom", listener: (ev: UIEvent) => any, useCapture?: boolean): void; addEventListener(type: "MSGestureChange", listener: (ev: MSGestureEvent) => any, useCapture?: boolean): void; addEventListener(type: "MSGestureDoubleTap", listener: (ev: MSGestureEvent) => any, useCapture?: boolean): void; addEventListener(type: "MSGestureEnd", listener: (ev: MSGestureEvent) => any, useCapture?: boolean): void; addEventListener(type: "MSGestureHold", listener: (ev: MSGestureEvent) => any, useCapture?: boolean): void; addEventListener(type: "MSGestureStart", listener: (ev: MSGestureEvent) => any, useCapture?: boolean): void; addEventListener(type: "MSGestureTap", listener: (ev: MSGestureEvent) => any, useCapture?: boolean): void; addEventListener(type: "MSGotPointerCapture", listener: (ev: MSPointerEvent) => any, useCapture?: boolean): void; addEventListener(type: "MSInertiaStart", listener: (ev: MSGestureEvent) => any, useCapture?: boolean): void; addEventListener(type: "MSLostPointerCapture", listener: (ev: MSPointerEvent) => any, useCapture?: boolean): void; addEventListener(type: "MSManipulationStateChanged", listener: (ev: MSManipulationEvent) => any, useCapture?: boolean): void; addEventListener(type: "MSPointerCancel", listener: (ev: MSPointerEvent) => any, useCapture?: boolean): void; addEventListener(type: "MSPointerDown", listener: (ev: MSPointerEvent) => any, useCapture?: boolean): void; addEventListener(type: "MSPointerEnter", listener: (ev: MSPointerEvent) => any, useCapture?: boolean): void; addEventListener(type: "MSPointerLeave", listener: (ev: MSPointerEvent) => any, useCapture?: boolean): void; addEventListener(type: "MSPointerMove", listener: (ev: MSPointerEvent) => any, useCapture?: boolean): void; addEventListener(type: "MSPointerOut", listener: (ev: MSPointerEvent) => any, useCapture?: boolean): void; addEventListener(type: "MSPointerOver", listener: (ev: MSPointerEvent) => any, useCapture?: boolean): void; addEventListener(type: "MSPointerUp", listener: (ev: MSPointerEvent) => any, useCapture?: boolean): void; addEventListener(type: "abort", listener: (ev: UIEvent) => any, useCapture?: boolean): void; addEventListener(type: "activate", listener: (ev: UIEvent) => any, useCapture?: boolean): void; addEventListener(type: "ariarequest", listener: (ev: AriaRequestEvent) => any, useCapture?: boolean): void; addEventListener(type: "beforeactivate", listener: (ev: UIEvent) => any, useCapture?: boolean): void; addEventListener(type: "beforecopy", listener: (ev: DragEvent) => any, useCapture?: boolean): void; addEventListener(type: "beforecut", listener: (ev: DragEvent) => any, useCapture?: boolean): void; addEventListener(type: "beforedeactivate", listener: (ev: UIEvent) => any, useCapture?: boolean): void; addEventListener(type: "beforepaste", listener: (ev: DragEvent) => any, useCapture?: boolean): void; addEventListener(type: "blur", listener: (ev: FocusEvent) => any, useCapture?: boolean): void; addEventListener(type: "canplay", listener: (ev: Event) => any, useCapture?: boolean): void; addEventListener(type: "canplaythrough", listener: (ev: Event) => any, useCapture?: boolean): void; addEventListener(type: "change", listener: (ev: Event) => any, useCapture?: boolean): void; addEventListener(type: "click", listener: (ev: MouseEvent) => any, useCapture?: boolean): void; addEventListener(type: "command", listener: (ev: CommandEvent) => any, useCapture?: boolean): void; addEventListener(type: "contextmenu", listener: (ev: PointerEvent) => any, useCapture?: boolean): void; addEventListener(type: "copy", listener: (ev: DragEvent) => any, useCapture?: boolean): void; addEventListener(type: "cuechange", listener: (ev: Event) => any, useCapture?: boolean): void; addEventListener(type: "cut", listener: (ev: DragEvent) => any, useCapture?: boolean): void; addEventListener(type: "dblclick", listener: (ev: MouseEvent) => any, useCapture?: boolean): void; addEventListener(type: "deactivate", listener: (ev: UIEvent) => any, useCapture?: boolean): void; addEventListener(type: "drag", listener: (ev: DragEvent) => any, useCapture?: boolean): void; addEventListener(type: "dragend", listener: (ev: DragEvent) => any, useCapture?: boolean): void; addEventListener(type: "dragenter", listener: (ev: DragEvent) => any, useCapture?: boolean): void; addEventListener(type: "dragleave", listener: (ev: DragEvent) => any, useCapture?: boolean): void; addEventListener(type: "dragover", listener: (ev: DragEvent) => any, useCapture?: boolean): void; addEventListener(type: "dragstart", listener: (ev: DragEvent) => any, useCapture?: boolean): void; addEventListener(type: "drop", listener: (ev: DragEvent) => any, useCapture?: boolean): void; addEventListener(type: "durationchange", listener: (ev: Event) => any, useCapture?: boolean): void; addEventListener(type: "emptied", listener: (ev: Event) => any, useCapture?: boolean): void; addEventListener(type: "ended", listener: (ev: Event) => any, useCapture?: boolean): void; addEventListener(type: "error", listener: (ev: ErrorEvent) => any, useCapture?: boolean): void; addEventListener(type: "focus", listener: (ev: FocusEvent) => any, useCapture?: boolean): void; addEventListener(type: "gotpointercapture", listener: (ev: PointerEvent) => any, useCapture?: boolean): void; addEventListener(type: "input", listener: (ev: Event) => any, useCapture?: boolean): void; addEventListener(type: "keydown", listener: (ev: KeyboardEvent) => any, useCapture?: boolean): void; addEventListener(type: "keypress", listener: (ev: KeyboardEvent) => any, useCapture?: boolean): void; addEventListener(type: "keyup", listener: (ev: KeyboardEvent) => any, useCapture?: boolean): void; addEventListener(type: "load", listener: (ev: Event) => any, useCapture?: boolean): void; addEventListener(type: "loadeddata", listener: (ev: Event) => any, useCapture?: boolean): void; addEventListener(type: "loadedmetadata", listener: (ev: Event) => any, useCapture?: boolean): void; addEventListener(type: "loadstart", listener: (ev: Event) => any, useCapture?: boolean): void; addEventListener(type: "lostpointercapture", listener: (ev: PointerEvent) => any, useCapture?: boolean): void; addEventListener(type: "mousedown", listener: (ev: MouseEvent) => any, useCapture?: boolean): void; addEventListener(type: "mouseenter", listener: (ev: MouseEvent) => any, useCapture?: boolean): void; addEventListener(type: "mouseleave", listener: (ev: MouseEvent) => any, useCapture?: boolean): void; addEventListener(type: "mousemove", listener: (ev: MouseEvent) => any, useCapture?: boolean): void; addEventListener(type: "mouseout", listener: (ev: MouseEvent) => any, useCapture?: boolean): void; addEventListener(type: "mouseover", listener: (ev: MouseEvent) => any, useCapture?: boolean): void; addEventListener(type: "mouseup", listener: (ev: MouseEvent) => any, useCapture?: boolean): void; addEventListener(type: "mousewheel", listener: (ev: MouseWheelEvent) => any, useCapture?: boolean): void; addEventListener(type: "msneedkey", listener: (ev: MSMediaKeyNeededEvent) => any, useCapture?: boolean): void; addEventListener(type: "paste", listener: (ev: DragEvent) => any, useCapture?: boolean): void; addEventListener(type: "pause", listener: (ev: Event) => any, useCapture?: boolean): void; addEventListener(type: "play", listener: (ev: Event) => any, useCapture?: boolean): void; addEventListener(type: "playing", listener: (ev: Event) => any, useCapture?: boolean): void; addEventListener(type: "pointercancel", listener: (ev: PointerEvent) => any, useCapture?: boolean): void; addEventListener(type: "pointerdown", listener: (ev: PointerEvent) => any, useCapture?: boolean): void; addEventListener(type: "pointerenter", listener: (ev: PointerEvent) => any, useCapture?: boolean): void; addEventListener(type: "pointerleave", listener: (ev: PointerEvent) => any, useCapture?: boolean): void; addEventListener(type: "pointermove", listener: (ev: PointerEvent) => any, useCapture?: boolean): void; addEventListener(type: "pointerout", listener: (ev: PointerEvent) => any, useCapture?: boolean): void; addEventListener(type: "pointerover", listener: (ev: PointerEvent) => any, useCapture?: boolean): void; addEventListener(type: "pointerup", listener: (ev: PointerEvent) => any, useCapture?: boolean): void; addEventListener(type: "progress", listener: (ev: ProgressEvent) => any, useCapture?: boolean): void; addEventListener(type: "ratechange", listener: (ev: Event) => any, useCapture?: boolean): void; addEventListener(type: "reset", listener: (ev: Event) => any, useCapture?: boolean): void; addEventListener(type: "scroll", listener: (ev: UIEvent) => any, useCapture?: boolean): void; addEventListener(type: "seeked", listener: (ev: Event) => any, useCapture?: boolean): void; addEventListener(type: "seeking", listener: (ev: Event) => any, useCapture?: boolean): void; addEventListener(type: "select", listener: (ev: UIEvent) => any, useCapture?: boolean): void; addEventListener(type: "selectstart", listener: (ev: Event) => any, useCapture?: boolean): void; addEventListener(type: "stalled", listener: (ev: Event) => any, useCapture?: boolean): void; addEventListener(type: "submit", listener: (ev: Event) => any, useCapture?: boolean): void; addEventListener(type: "suspend", listener: (ev: Event) => any, useCapture?: boolean): void; addEventListener(type: "timeupdate", listener: (ev: Event) => any, useCapture?: boolean): void; addEventListener(type: "touchcancel", listener: (ev: TouchEvent) => any, useCapture?: boolean): void; addEventListener(type: "touchend", listener: (ev: TouchEvent) => any, useCapture?: boolean): void; addEventListener(type: "touchmove", listener: (ev: TouchEvent) => any, useCapture?: boolean): void; addEventListener(type: "touchstart", listener: (ev: TouchEvent) => any, useCapture?: boolean): void; addEventListener(type: "volumechange", listener: (ev: Event) => any, useCapture?: boolean): void; addEventListener(type: "waiting", listener: (ev: Event) => any, useCapture?: boolean): void; addEventListener(type: "webkitfullscreenchange", listener: (ev: Event) => any, useCapture?: boolean): void; addEventListener(type: "webkitfullscreenerror", listener: (ev: Event) => any, useCapture?: boolean): void; addEventListener(type: "wheel", listener: (ev: WheelEvent) => any, useCapture?: boolean): void; addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; } declare var HTMLMediaElement: { prototype: HTMLMediaElement; new(): HTMLMediaElement; HAVE_CURRENT_DATA: number; HAVE_ENOUGH_DATA: number; HAVE_FUTURE_DATA: number; HAVE_METADATA: number; HAVE_NOTHING: number; NETWORK_EMPTY: number; NETWORK_IDLE: number; NETWORK_LOADING: number; NETWORK_NO_SOURCE: number; } interface HTMLMenuElement extends HTMLElement { compact: boolean; type: string; } declare var HTMLMenuElement: { prototype: HTMLMenuElement; new(): HTMLMenuElement; } interface HTMLMetaElement extends HTMLElement { /** * Sets or retrieves the character set used to encode the object. */ charset: string; /** * Gets or sets meta-information to associate with httpEquiv or name. */ content: string; /** * Gets or sets information used to bind the value of a content attribute of a meta element to an HTTP response header. */ httpEquiv: string; /** * Sets or retrieves the value specified in the content attribute of the meta object. */ name: string; /** * Sets or retrieves a scheme to be used in interpreting the value of a property specified for the object. */ scheme: string; /** * Sets or retrieves the URL property that will be loaded after the specified time has elapsed. */ url: string; } declare var HTMLMetaElement: { prototype: HTMLMetaElement; new(): HTMLMetaElement; } interface HTMLModElement extends HTMLElement { /** * Sets or retrieves reference information about the object. */ cite: string; /** * Sets or retrieves the date and time of a modification to the object. */ dateTime: string; } declare var HTMLModElement: { prototype: HTMLModElement; new(): HTMLModElement; } interface HTMLNextIdElement extends HTMLElement { n: string; } declare var HTMLNextIdElement: { prototype: HTMLNextIdElement; new(): HTMLNextIdElement; } interface HTMLOListElement extends HTMLElement { compact: boolean; /** * The starting number. */ start: number; type: string; } declare var HTMLOListElement: { prototype: HTMLOListElement; new(): HTMLOListElement; } interface HTMLObjectElement extends HTMLElement, GetSVGDocument { /** * Retrieves a string of the URL where the object tag can be found. This is often the href of the document that the object is in, or the value set by a base element. */ BaseHref: string; align: string; /** * Sets or retrieves a text alternative to the graphic. */ alt: string; /** * Gets or sets the optional alternative HTML script to execute if the object fails to load. */ altHtml: string; /** * Sets or retrieves a character string that can be used to implement your own archive functionality for the object. */ archive: string; border: string; /** * Sets or retrieves the URL of the file containing the compiled Java class. */ code: string; /** * Sets or retrieves the URL of the component. */ codeBase: string; /** * Sets or retrieves the Internet media type for the code associated with the object. */ codeType: string; /** * Retrieves the document object of the page or frame. */ contentDocument: Document; /** * Sets or retrieves the URL that references the data of the object. */ data: string; declare: boolean; /** * Retrieves a reference to the form that the object is embedded in. */ form: HTMLFormElement; /** * Sets or retrieves the height of the object. */ height: string; hspace: number; /** * Gets or sets whether the DLNA PlayTo device is available. */ msPlayToDisabled: boolean; /** * Gets or sets the path to the preferred media source. This enables the Play To target device to stream the media content, which can be DRM protected, from a different location, such as a cloud media server. */ msPlayToPreferredSourceUri: string; /** * Gets or sets the primary DLNA PlayTo device. */ msPlayToPrimary: boolean; /** * Gets the source associated with the media element for use by the PlayToManager. */ msPlayToSource: any; /** * Sets or retrieves the name of the object. */ name: string; /** * Retrieves the contained object. */ object: any; readyState: number; /** * Sets or retrieves a message to be displayed while an object is loading. */ standby: string; /** * Sets or retrieves the MIME type of the object. */ type: string; /** * Sets or retrieves the URL, often with a bookmark extension (#name), to use as a client-side image map. */ useMap: string; /** * Returns the error message that would be displayed if the user submits the form, or an empty string if no error message. It also triggers the standard error message, such as "this is a required field". The result is that the user sees validation messages without actually submitting. */ validationMessage: string; /** * Returns a ValidityState object that represents the validity states of an element. */ validity: ValidityState; vspace: number; /** * Sets or retrieves the width of the object. */ width: string; /** * Returns whether an element will successfully validate based on forms validation rules and constraints. */ willValidate: boolean; /** * Returns whether a form will validate when it is submitted, without having to submit it. */ checkValidity(): boolean; /** * Sets a custom error message that is displayed when a form is submitted. * @param error Sets a custom error message that is displayed when a form is submitted. */ setCustomValidity(error: string): void; addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; } declare var HTMLObjectElement: { prototype: HTMLObjectElement; new(): HTMLObjectElement; } interface HTMLOptGroupElement extends HTMLElement { /** * Sets or retrieves the status of an option. */ defaultSelected: boolean; disabled: boolean; /** * Retrieves a reference to the form that the object is embedded in. */ form: HTMLFormElement; /** * Sets or retrieves the ordinal position of an option in a list box. */ index: number; /** * Sets or retrieves a value that you can use to implement your own label functionality for the object. */ label: string; /** * Sets or retrieves whether the option in the list box is the default item. */ selected: boolean; /** * Sets or retrieves the text string specified by the option tag. */ text: string; /** * Sets or retrieves the value which is returned to the server when the form control is submitted. */ value: string; } declare var HTMLOptGroupElement: { prototype: HTMLOptGroupElement; new(): HTMLOptGroupElement; } interface HTMLOptionElement extends HTMLElement { /** * Sets or retrieves the status of an option. */ defaultSelected: boolean; disabled: boolean; /** * Retrieves a reference to the form that the object is embedded in. */ form: HTMLFormElement; /** * Sets or retrieves the ordinal position of an option in a list box. */ index: number; /** * Sets or retrieves a value that you can use to implement your own label functionality for the object. */ label: string; /** * Sets or retrieves whether the option in the list box is the default item. */ selected: boolean; /** * Sets or retrieves the text string specified by the option tag. */ text: string; /** * Sets or retrieves the value which is returned to the server when the form control is submitted. */ value: string; } declare var HTMLOptionElement: { prototype: HTMLOptionElement; new(): HTMLOptionElement; create(): HTMLOptionElement; } interface HTMLParagraphElement extends HTMLElement { /** * Sets or retrieves how the object is aligned with adjacent text. */ align: string; clear: string; } declare var HTMLParagraphElement: { prototype: HTMLParagraphElement; new(): HTMLParagraphElement; } interface HTMLParamElement extends HTMLElement { /** * Sets or retrieves the name of an input parameter for an element. */ name: string; /** * Sets or retrieves the content type of the resource designated by the value attribute. */ type: string; /** * Sets or retrieves the value of an input parameter for an element. */ value: string; /** * Sets or retrieves the data type of the value attribute. */ valueType: string; } declare var HTMLParamElement: { prototype: HTMLParamElement; new(): HTMLParamElement; } interface HTMLPhraseElement extends HTMLElement { /** * Sets or retrieves reference information about the object. */ cite: string; /** * Sets or retrieves the date and time of a modification to the object. */ dateTime: string; } declare var HTMLPhraseElement: { prototype: HTMLPhraseElement; new(): HTMLPhraseElement; } interface HTMLPreElement extends HTMLElement { /** * Indicates a citation by rendering text in italic type. */ cite: string; clear: string; /** * Sets or gets a value that you can use to implement your own width functionality for the object. */ width: number; } declare var HTMLPreElement: { prototype: HTMLPreElement; new(): HTMLPreElement; } interface HTMLProgressElement extends HTMLElement { /** * Retrieves a reference to the form that the object is embedded in. */ form: HTMLFormElement; /** * Defines the maximum, or "done" value for a progress element. */ max: number; /** * Returns the quotient of value/max when the value attribute is set (determinate progress bar), or -1 when the value attribute is missing (indeterminate progress bar). */ position: number; /** * Sets or gets the current value of a progress element. The value must be a non-negative number between 0 and the max value. */ value: number; } declare var HTMLProgressElement: { prototype: HTMLProgressElement; new(): HTMLProgressElement; } interface HTMLQuoteElement extends HTMLElement { /** * Sets or retrieves reference information about the object. */ cite: string; /** * Sets or retrieves the date and time of a modification to the object. */ dateTime: string; } declare var HTMLQuoteElement: { prototype: HTMLQuoteElement; new(): HTMLQuoteElement; } interface HTMLScriptElement extends HTMLElement { async: boolean; /** * Sets or retrieves the character set used to encode the object. */ charset: string; /** * Sets or retrieves the status of the script. */ defer: boolean; /** * Sets or retrieves the event for which the script is written. */ event: string; /** * Sets or retrieves the object that is bound to the event script. */ htmlFor: string; /** * Retrieves the URL to an external file that contains the source code or data. */ src: string; /** * Retrieves or sets the text of the object as a string. */ text: string; /** * Sets or retrieves the MIME type for the associated scripting engine. */ type: string; } declare var HTMLScriptElement: { prototype: HTMLScriptElement; new(): HTMLScriptElement; } interface HTMLSelectElement extends HTMLElement { /** * Provides a way to direct a user to a specific field when a document loads. This can provide both direction and convenience for a user, reducing the need to click or tab to a field when a page opens. This attribute is true when present on an element, and false when missing. */ autofocus: boolean; disabled: boolean; /** * Retrieves a reference to the form that the object is embedded in. */ form: HTMLFormElement; /** * Sets or retrieves the number of objects in a collection. */ length: number; /** * Sets or retrieves the Boolean value indicating whether multiple items can be selected from a list. */ multiple: boolean; /** * Sets or retrieves the name of the object. */ name: string; options: HTMLSelectElement; /** * When present, marks an element that can't be submitted without a value. */ required: boolean; /** * Sets or retrieves the index of the selected option in a select object. */ selectedIndex: number; /** * Sets or retrieves the number of rows in the list box. */ size: number; /** * Retrieves the type of select control based on the value of the MULTIPLE attribute. */ type: string; /** * Returns the error message that would be displayed if the user submits the form, or an empty string if no error message. It also triggers the standard error message, such as "this is a required field". The result is that the user sees validation messages without actually submitting. */ validationMessage: string; /** * Returns a ValidityState object that represents the validity states of an element. */ validity: ValidityState; /** * Sets or retrieves the value which is returned to the server when the form control is submitted. */ value: string; /** * Returns whether an element will successfully validate based on forms validation rules and constraints. */ willValidate: boolean; /** * Adds an element to the areas, controlRange, or options collection. * @param element Variant of type Number that specifies the index position in the collection where the element is placed. If no value is given, the method places the element at the end of the collection. * @param before Variant of type Object that specifies an element to insert before, or null to append the object to the collection. */ add(element: HTMLElement, before?: HTMLElement | number): void; /** * Returns whether a form will validate when it is submitted, without having to submit it. */ checkValidity(): boolean; /** * Retrieves a select object or an object from an options collection. * @param name Variant of type Number or String that specifies the object or collection to retrieve. If this parameter is an integer, it is the zero-based index of the object. If this parameter is a string, all objects with matching name or id properties are retrieved, and a collection is returned if more than one match is made. * @param index Variant of type Number that specifies the zero-based index of the object to retrieve when a collection is returned. */ item(name?: any, index?: any): any; /** * Retrieves a select object or an object from an options collection. * @param namedItem A String that specifies the name or id property of the object to retrieve. A collection is returned if more than one match is made. */ namedItem(name: string): any; /** * Removes an element from the collection. * @param index Number that specifies the zero-based index of the element to remove from the collection. */ remove(index?: number): void; /** * Sets a custom error message that is displayed when a form is submitted. * @param error Sets a custom error message that is displayed when a form is submitted. */ setCustomValidity(error: string): void; [name: string]: any; } declare var HTMLSelectElement: { prototype: HTMLSelectElement; new(): HTMLSelectElement; } interface HTMLSourceElement extends HTMLElement { /** * Gets or sets the intended media type of the media source. */ media: string; msKeySystem: string; /** * The address or URL of the a media resource that is to be considered. */ src: string; /** * Gets or sets the MIME type of a media resource. */ type: string; } declare var HTMLSourceElement: { prototype: HTMLSourceElement; new(): HTMLSourceElement; } interface HTMLSpanElement extends HTMLElement { } declare var HTMLSpanElement: { prototype: HTMLSpanElement; new(): HTMLSpanElement; } interface HTMLStyleElement extends HTMLElement, LinkStyle { /** * Sets or retrieves the media type. */ media: string; /** * Retrieves the CSS language in which the style sheet is written. */ type: string; addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; } declare var HTMLStyleElement: { prototype: HTMLStyleElement; new(): HTMLStyleElement; } interface HTMLTableCaptionElement extends HTMLElement { /** * Sets or retrieves the alignment of the caption or legend. */ align: string; /** * Sets or retrieves whether the caption appears at the top or bottom of the table. */ vAlign: string; } declare var HTMLTableCaptionElement: { prototype: HTMLTableCaptionElement; new(): HTMLTableCaptionElement; } interface HTMLTableCellElement extends HTMLElement, HTMLTableAlignment { /** * Sets or retrieves abbreviated text for the object. */ abbr: string; /** * Sets or retrieves how the object is aligned with adjacent text. */ align: string; /** * Sets or retrieves a comma-delimited list of conceptual categories associated with the object. */ axis: string; bgColor: any; /** * Retrieves the position of the object in the cells collection of a row. */ cellIndex: number; /** * Sets or retrieves the number columns in the table that the object should span. */ colSpan: number; /** * Sets or retrieves a list of header cells that provide information for the object. */ headers: string; /** * Sets or retrieves the height of the object. */ height: any; /** * Sets or retrieves whether the browser automatically performs wordwrap. */ noWrap: boolean; /** * Sets or retrieves how many rows in a table the cell should span. */ rowSpan: number; /** * Sets or retrieves the group of cells in a table to which the object's information applies. */ scope: string; /** * Sets or retrieves the width of the object. */ width: string; addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; } declare var HTMLTableCellElement: { prototype: HTMLTableCellElement; new(): HTMLTableCellElement; } interface HTMLTableColElement extends HTMLElement, HTMLTableAlignment { /** * Sets or retrieves the alignment of the object relative to the display or table. */ align: string; /** * Sets or retrieves the number of columns in the group. */ span: number; /** * Sets or retrieves the width of the object. */ width: any; addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; } declare var HTMLTableColElement: { prototype: HTMLTableColElement; new(): HTMLTableColElement; } interface HTMLTableDataCellElement extends HTMLTableCellElement { } declare var HTMLTableDataCellElement: { prototype: HTMLTableDataCellElement; new(): HTMLTableDataCellElement; } interface HTMLTableElement extends HTMLElement { /** * Sets or retrieves a value that indicates the table alignment. */ align: string; bgColor: any; /** * Sets or retrieves the width of the border to draw around the object. */ border: string; /** * Sets or retrieves the border color of the object. */ borderColor: any; /** * Retrieves the caption object of a table. */ caption: HTMLTableCaptionElement; /** * Sets or retrieves the amount of space between the border of the cell and the content of the cell. */ cellPadding: string; /** * Sets or retrieves the amount of space between cells in a table. */ cellSpacing: string; /** * Sets or retrieves the number of columns in the table. */ cols: number; /** * Sets or retrieves the way the border frame around the table is displayed. */ frame: string; /** * Sets or retrieves the height of the object. */ height: any; /** * Sets or retrieves the number of horizontal rows contained in the object. */ rows: HTMLCollection; /** * Sets or retrieves which dividing lines (inner borders) are displayed. */ rules: string; /** * Sets or retrieves a description and/or structure of the object. */ summary: string; /** * Retrieves a collection of all tBody objects in the table. Objects in this collection are in source order. */ tBodies: HTMLCollection; /** * Retrieves the tFoot object of the table. */ tFoot: HTMLTableSectionElement; /** * Retrieves the tHead object of the table. */ tHead: HTMLTableSectionElement; /** * Sets or retrieves the width of the object. */ width: string; /** * Creates an empty caption element in the table. */ createCaption(): HTMLElement; /** * Creates an empty tBody element in the table. */ createTBody(): HTMLElement; /** * Creates an empty tFoot element in the table. */ createTFoot(): HTMLElement; /** * Returns the tHead element object if successful, or null otherwise. */ createTHead(): HTMLElement; /** * Deletes the caption element and its contents from the table. */ deleteCaption(): void; /** * Removes the specified row (tr) from the element and from the rows collection. * @param index Number that specifies the zero-based position in the rows collection of the row to remove. */ deleteRow(index?: number): void; /** * Deletes the tFoot element and its contents from the table. */ deleteTFoot(): void; /** * Deletes the tHead element and its contents from the table. */ deleteTHead(): void; /** * Creates a new row (tr) in the table, and adds the row to the rows collection. * @param index Number that specifies where to insert the row in the rows collection. The default value is -1, which appends the new row to the end of the rows collection. */ insertRow(index?: number): HTMLElement; } declare var HTMLTableElement: { prototype: HTMLTableElement; new(): HTMLTableElement; } interface HTMLTableHeaderCellElement extends HTMLTableCellElement { /** * Sets or retrieves the group of cells in a table to which the object's information applies. */ scope: string; } declare var HTMLTableHeaderCellElement: { prototype: HTMLTableHeaderCellElement; new(): HTMLTableHeaderCellElement; } interface HTMLTableRowElement extends HTMLElement, HTMLTableAlignment { /** * Sets or retrieves how the object is aligned with adjacent text. */ align: string; bgColor: any; /** * Retrieves a collection of all cells in the table row. */ cells: HTMLCollection; /** * Sets or retrieves the height of the object. */ height: any; /** * Retrieves the position of the object in the rows collection for the table. */ rowIndex: number; /** * Retrieves the position of the object in the collection. */ sectionRowIndex: number; /** * Removes the specified cell from the table row, as well as from the cells collection. * @param index Number that specifies the zero-based position of the cell to remove from the table row. If no value is provided, the last cell in the cells collection is deleted. */ deleteCell(index?: number): void; /** * Creates a new cell in the table row, and adds the cell to the cells collection. * @param index Number that specifies where to insert the cell in the tr. The default value is -1, which appends the new cell to the end of the cells collection. */ insertCell(index?: number): HTMLElement; addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; } declare var HTMLTableRowElement: { prototype: HTMLTableRowElement; new(): HTMLTableRowElement; } interface HTMLTableSectionElement extends HTMLElement, HTMLTableAlignment { /** * Sets or retrieves a value that indicates the table alignment. */ align: string; /** * Sets or retrieves the number of horizontal rows contained in the object. */ rows: HTMLCollection; /** * Removes the specified row (tr) from the element and from the rows collection. * @param index Number that specifies the zero-based position in the rows collection of the row to remove. */ deleteRow(index?: number): void; /** * Creates a new row (tr) in the table, and adds the row to the rows collection. * @param index Number that specifies where to insert the row in the rows collection. The default value is -1, which appends the new row to the end of the rows collection. */ insertRow(index?: number): HTMLElement; addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; } declare var HTMLTableSectionElement: { prototype: HTMLTableSectionElement; new(): HTMLTableSectionElement; } interface HTMLTextAreaElement extends HTMLElement { /** * Provides a way to direct a user to a specific field when a document loads. This can provide both direction and convenience for a user, reducing the need to click or tab to a field when a page opens. This attribute is true when present on an element, and false when missing. */ autofocus: boolean; /** * Sets or retrieves the width of the object. */ cols: number; /** * Sets or retrieves the initial contents of the object. */ defaultValue: string; disabled: boolean; /** * Retrieves a reference to the form that the object is embedded in. */ form: HTMLFormElement; /** * Sets or retrieves the maximum number of characters that the user can enter in a text control. */ maxLength: number; /** * Sets or retrieves the name of the object. */ name: string; /** * Gets or sets a text string that is displayed in an input field as a hint or prompt to users as the format or type of information they need to enter.The text appears in an input field until the user puts focus on the field. */ placeholder: string; /** * Sets or retrieves the value indicated whether the content of the object is read-only. */ readOnly: boolean; /** * When present, marks an element that can't be submitted without a value. */ required: boolean; /** * Sets or retrieves the number of horizontal rows contained in the object. */ rows: number; /** * Gets or sets the end position or offset of a text selection. */ selectionEnd: number; /** * Gets or sets the starting position or offset of a text selection. */ selectionStart: number; /** * Sets or retrieves the value indicating whether the control is selected. */ status: any; /** * Retrieves the type of control. */ type: string; /** * Returns the error message that would be displayed if the user submits the form, or an empty string if no error message. It also triggers the standard error message, such as "this is a required field". The result is that the user sees validation messages without actually submitting. */ validationMessage: string; /** * Returns a ValidityState object that represents the validity states of an element. */ validity: ValidityState; /** * Retrieves or sets the text in the entry field of the textArea element. */ value: string; /** * Returns whether an element will successfully validate based on forms validation rules and constraints. */ willValidate: boolean; /** * Sets or retrieves how to handle wordwrapping in the object. */ wrap: string; /** * Returns whether a form will validate when it is submitted, without having to submit it. */ checkValidity(): boolean; /** * Creates a TextRange object for the element. */ createTextRange(): TextRange; /** * Highlights the input area of a form element. */ select(): void; /** * Sets a custom error message that is displayed when a form is submitted. * @param error Sets a custom error message that is displayed when a form is submitted. */ setCustomValidity(error: string): void; /** * Sets the start and end positions of a selection in a text field. * @param start The offset into the text field for the start of the selection. * @param end The offset into the text field for the end of the selection. */ setSelectionRange(start: number, end: number): void; } declare var HTMLTextAreaElement: { prototype: HTMLTextAreaElement; new(): HTMLTextAreaElement; } interface HTMLTitleElement extends HTMLElement { /** * Retrieves or sets the text of the object as a string. */ text: string; } declare var HTMLTitleElement: { prototype: HTMLTitleElement; new(): HTMLTitleElement; } interface HTMLTrackElement extends HTMLElement { default: boolean; kind: string; label: string; readyState: number; src: string; srclang: string; track: TextTrack; ERROR: number; LOADED: number; LOADING: number; NONE: number; } declare var HTMLTrackElement: { prototype: HTMLTrackElement; new(): HTMLTrackElement; ERROR: number; LOADED: number; LOADING: number; NONE: number; } interface HTMLUListElement extends HTMLElement { compact: boolean; type: string; } declare var HTMLUListElement: { prototype: HTMLUListElement; new(): HTMLUListElement; } interface HTMLUnknownElement extends HTMLElement { } declare var HTMLUnknownElement: { prototype: HTMLUnknownElement; new(): HTMLUnknownElement; } interface HTMLVideoElement extends HTMLMediaElement { /** * Gets or sets the height of the video element. */ height: number; msHorizontalMirror: boolean; msIsLayoutOptimalForPlayback: boolean; msIsStereo3D: boolean; msStereo3DPackingMode: string; msStereo3DRenderMode: string; msZoom: boolean; onMSVideoFormatChanged: (ev: Event) => any; onMSVideoFrameStepCompleted: (ev: Event) => any; onMSVideoOptimalLayoutChanged: (ev: Event) => any; /** * Gets or sets a URL of an image to display, for example, like a movie poster. This can be a still frame from the video, or another image if no video data is available. */ poster: string; /** * Gets the intrinsic height of a video in CSS pixels, or zero if the dimensions are not known. */ videoHeight: number; /** * Gets the intrinsic width of a video in CSS pixels, or zero if the dimensions are not known. */ videoWidth: number; webkitDisplayingFullscreen: boolean; webkitSupportsFullscreen: boolean; /** * Gets or sets the width of the video element. */ width: number; getVideoPlaybackQuality(): VideoPlaybackQuality; msFrameStep(forward: boolean): void; msInsertVideoEffect(activatableClassId: string, effectRequired: boolean, config?: any): void; msSetVideoRectangle(left: number, top: number, right: number, bottom: number): void; webkitEnterFullScreen(): void; webkitEnterFullscreen(): void; webkitExitFullScreen(): void; webkitExitFullscreen(): void; addEventListener(type: "MSContentZoom", listener: (ev: UIEvent) => any, useCapture?: boolean): void; addEventListener(type: "MSGestureChange", listener: (ev: MSGestureEvent) => any, useCapture?: boolean): void; addEventListener(type: "MSGestureDoubleTap", listener: (ev: MSGestureEvent) => any, useCapture?: boolean): void; addEventListener(type: "MSGestureEnd", listener: (ev: MSGestureEvent) => any, useCapture?: boolean): void; addEventListener(type: "MSGestureHold", listener: (ev: MSGestureEvent) => any, useCapture?: boolean): void; addEventListener(type: "MSGestureStart", listener: (ev: MSGestureEvent) => any, useCapture?: boolean): void; addEventListener(type: "MSGestureTap", listener: (ev: MSGestureEvent) => any, useCapture?: boolean): void; addEventListener(type: "MSGotPointerCapture", listener: (ev: MSPointerEvent) => any, useCapture?: boolean): void; addEventListener(type: "MSInertiaStart", listener: (ev: MSGestureEvent) => any, useCapture?: boolean): void; addEventListener(type: "MSLostPointerCapture", listener: (ev: MSPointerEvent) => any, useCapture?: boolean): void; addEventListener(type: "MSManipulationStateChanged", listener: (ev: MSManipulationEvent) => any, useCapture?: boolean): void; addEventListener(type: "MSPointerCancel", listener: (ev: MSPointerEvent) => any, useCapture?: boolean): void; addEventListener(type: "MSPointerDown", listener: (ev: MSPointerEvent) => any, useCapture?: boolean): void; addEventListener(type: "MSPointerEnter", listener: (ev: MSPointerEvent) => any, useCapture?: boolean): void; addEventListener(type: "MSPointerLeave", listener: (ev: MSPointerEvent) => any, useCapture?: boolean): void; addEventListener(type: "MSPointerMove", listener: (ev: MSPointerEvent) => any, useCapture?: boolean): void; addEventListener(type: "MSPointerOut", listener: (ev: MSPointerEvent) => any, useCapture?: boolean): void; addEventListener(type: "MSPointerOver", listener: (ev: MSPointerEvent) => any, useCapture?: boolean): void; addEventListener(type: "MSPointerUp", listener: (ev: MSPointerEvent) => any, useCapture?: boolean): void; addEventListener(type: "MSVideoFormatChanged", listener: (ev: Event) => any, useCapture?: boolean): void; addEventListener(type: "MSVideoFrameStepCompleted", listener: (ev: Event) => any, useCapture?: boolean): void; addEventListener(type: "MSVideoOptimalLayoutChanged", listener: (ev: Event) => any, useCapture?: boolean): void; addEventListener(type: "abort", listener: (ev: UIEvent) => any, useCapture?: boolean): void; addEventListener(type: "activate", listener: (ev: UIEvent) => any, useCapture?: boolean): void; addEventListener(type: "ariarequest", listener: (ev: AriaRequestEvent) => any, useCapture?: boolean): void; addEventListener(type: "beforeactivate", listener: (ev: UIEvent) => any, useCapture?: boolean): void; addEventListener(type: "beforecopy", listener: (ev: DragEvent) => any, useCapture?: boolean): void; addEventListener(type: "beforecut", listener: (ev: DragEvent) => any, useCapture?: boolean): void; addEventListener(type: "beforedeactivate", listener: (ev: UIEvent) => any, useCapture?: boolean): void; addEventListener(type: "beforepaste", listener: (ev: DragEvent) => any, useCapture?: boolean): void; addEventListener(type: "blur", listener: (ev: FocusEvent) => any, useCapture?: boolean): void; addEventListener(type: "canplay", listener: (ev: Event) => any, useCapture?: boolean): void; addEventListener(type: "canplaythrough", listener: (ev: Event) => any, useCapture?: boolean): void; addEventListener(type: "change", listener: (ev: Event) => any, useCapture?: boolean): void; addEventListener(type: "click", listener: (ev: MouseEvent) => any, useCapture?: boolean): void; addEventListener(type: "command", listener: (ev: CommandEvent) => any, useCapture?: boolean): void; addEventListener(type: "contextmenu", listener: (ev: PointerEvent) => any, useCapture?: boolean): void; addEventListener(type: "copy", listener: (ev: DragEvent) => any, useCapture?: boolean): void; addEventListener(type: "cuechange", listener: (ev: Event) => any, useCapture?: boolean): void; addEventListener(type: "cut", listener: (ev: DragEvent) => any, useCapture?: boolean): void; addEventListener(type: "dblclick", listener: (ev: MouseEvent) => any, useCapture?: boolean): void; addEventListener(type: "deactivate", listener: (ev: UIEvent) => any, useCapture?: boolean): void; addEventListener(type: "drag", listener: (ev: DragEvent) => any, useCapture?: boolean): void; addEventListener(type: "dragend", listener: (ev: DragEvent) => any, useCapture?: boolean): void; addEventListener(type: "dragenter", listener: (ev: DragEvent) => any, useCapture?: boolean): void; addEventListener(type: "dragleave", listener: (ev: DragEvent) => any, useCapture?: boolean): void; addEventListener(type: "dragover", listener: (ev: DragEvent) => any, useCapture?: boolean): void; addEventListener(type: "dragstart", listener: (ev: DragEvent) => any, useCapture?: boolean): void; addEventListener(type: "drop", listener: (ev: DragEvent) => any, useCapture?: boolean): void; addEventListener(type: "durationchange", listener: (ev: Event) => any, useCapture?: boolean): void; addEventListener(type: "emptied", listener: (ev: Event) => any, useCapture?: boolean): void; addEventListener(type: "ended", listener: (ev: Event) => any, useCapture?: boolean): void; addEventListener(type: "error", listener: (ev: ErrorEvent) => any, useCapture?: boolean): void; addEventListener(type: "focus", listener: (ev: FocusEvent) => any, useCapture?: boolean): void; addEventListener(type: "gotpointercapture", listener: (ev: PointerEvent) => any, useCapture?: boolean): void; addEventListener(type: "input", listener: (ev: Event) => any, useCapture?: boolean): void; addEventListener(type: "keydown", listener: (ev: KeyboardEvent) => any, useCapture?: boolean): void; addEventListener(type: "keypress", listener: (ev: KeyboardEvent) => any, useCapture?: boolean): void; addEventListener(type: "keyup", listener: (ev: KeyboardEvent) => any, useCapture?: boolean): void; addEventListener(type: "load", listener: (ev: Event) => any, useCapture?: boolean): void; addEventListener(type: "loadeddata", listener: (ev: Event) => any, useCapture?: boolean): void; addEventListener(type: "loadedmetadata", listener: (ev: Event) => any, useCapture?: boolean): void; addEventListener(type: "loadstart", listener: (ev: Event) => any, useCapture?: boolean): void; addEventListener(type: "lostpointercapture", listener: (ev: PointerEvent) => any, useCapture?: boolean): void; addEventListener(type: "mousedown", listener: (ev: MouseEvent) => any, useCapture?: boolean): void; addEventListener(type: "mouseenter", listener: (ev: MouseEvent) => any, useCapture?: boolean): void; addEventListener(type: "mouseleave", listener: (ev: MouseEvent) => any, useCapture?: boolean): void; addEventListener(type: "mousemove", listener: (ev: MouseEvent) => any, useCapture?: boolean): void; addEventListener(type: "mouseout", listener: (ev: MouseEvent) => any, useCapture?: boolean): void; addEventListener(type: "mouseover", listener: (ev: MouseEvent) => any, useCapture?: boolean): void; addEventListener(type: "mouseup", listener: (ev: MouseEvent) => any, useCapture?: boolean): void; addEventListener(type: "mousewheel", listener: (ev: MouseWheelEvent) => any, useCapture?: boolean): void; addEventListener(type: "msneedkey", listener: (ev: MSMediaKeyNeededEvent) => any, useCapture?: boolean): void; addEventListener(type: "paste", listener: (ev: DragEvent) => any, useCapture?: boolean): void; addEventListener(type: "pause", listener: (ev: Event) => any, useCapture?: boolean): void; addEventListener(type: "play", listener: (ev: Event) => any, useCapture?: boolean): void; addEventListener(type: "playing", listener: (ev: Event) => any, useCapture?: boolean): void; addEventListener(type: "pointercancel", listener: (ev: PointerEvent) => any, useCapture?: boolean): void; addEventListener(type: "pointerdown", listener: (ev: PointerEvent) => any, useCapture?: boolean): void; addEventListener(type: "pointerenter", listener: (ev: PointerEvent) => any, useCapture?: boolean): void; addEventListener(type: "pointerleave", listener: (ev: PointerEvent) => any, useCapture?: boolean): void; addEventListener(type: "pointermove", listener: (ev: PointerEvent) => any, useCapture?: boolean): void; addEventListener(type: "pointerout", listener: (ev: PointerEvent) => any, useCapture?: boolean): void; addEventListener(type: "pointerover", listener: (ev: PointerEvent) => any, useCapture?: boolean): void; addEventListener(type: "pointerup", listener: (ev: PointerEvent) => any, useCapture?: boolean): void; addEventListener(type: "progress", listener: (ev: ProgressEvent) => any, useCapture?: boolean): void; addEventListener(type: "ratechange", listener: (ev: Event) => any, useCapture?: boolean): void; addEventListener(type: "reset", listener: (ev: Event) => any, useCapture?: boolean): void; addEventListener(type: "scroll", listener: (ev: UIEvent) => any, useCapture?: boolean): void; addEventListener(type: "seeked", listener: (ev: Event) => any, useCapture?: boolean): void; addEventListener(type: "seeking", listener: (ev: Event) => any, useCapture?: boolean): void; addEventListener(type: "select", listener: (ev: UIEvent) => any, useCapture?: boolean): void; addEventListener(type: "selectstart", listener: (ev: Event) => any, useCapture?: boolean): void; addEventListener(type: "stalled", listener: (ev: Event) => any, useCapture?: boolean): void; addEventListener(type: "submit", listener: (ev: Event) => any, useCapture?: boolean): void; addEventListener(type: "suspend", listener: (ev: Event) => any, useCapture?: boolean): void; addEventListener(type: "timeupdate", listener: (ev: Event) => any, useCapture?: boolean): void; addEventListener(type: "touchcancel", listener: (ev: TouchEvent) => any, useCapture?: boolean): void; addEventListener(type: "touchend", listener: (ev: TouchEvent) => any, useCapture?: boolean): void; addEventListener(type: "touchmove", listener: (ev: TouchEvent) => any, useCapture?: boolean): void; addEventListener(type: "touchstart", listener: (ev: TouchEvent) => any, useCapture?: boolean): void; addEventListener(type: "volumechange", listener: (ev: Event) => any, useCapture?: boolean): void; addEventListener(type: "waiting", listener: (ev: Event) => any, useCapture?: boolean): void; addEventListener(type: "webkitfullscreenchange", listener: (ev: Event) => any, useCapture?: boolean): void; addEventListener(type: "webkitfullscreenerror", listener: (ev: Event) => any, useCapture?: boolean): void; addEventListener(type: "wheel", listener: (ev: WheelEvent) => any, useCapture?: boolean): void; addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; } declare var HTMLVideoElement: { prototype: HTMLVideoElement; new(): HTMLVideoElement; } interface HashChangeEvent extends Event { newURL: string; oldURL: string; } declare var HashChangeEvent: { prototype: HashChangeEvent; new(type: string, eventInitDict?: HashChangeEventInit): HashChangeEvent; } interface History { length: number; state: any; back(distance?: any): void; forward(distance?: any): void; go(delta?: any): void; pushState(statedata: any, title?: string, url?: string): void; replaceState(statedata: any, title?: string, url?: string): void; } declare var History: { prototype: History; new(): History; } interface IDBCursor { direction: string; key: any; primaryKey: any; source: any; advance(count: number): void; continue(key?: any): void; delete(): IDBRequest; update(value: any): IDBRequest; NEXT: string; NEXT_NO_DUPLICATE: string; PREV: string; PREV_NO_DUPLICATE: string; } declare var IDBCursor: { prototype: IDBCursor; new(): IDBCursor; NEXT: string; NEXT_NO_DUPLICATE: string; PREV: string; PREV_NO_DUPLICATE: string; } interface IDBCursorWithValue extends IDBCursor { value: any; } declare var IDBCursorWithValue: { prototype: IDBCursorWithValue; new(): IDBCursorWithValue; } interface IDBDatabase extends EventTarget { name: string; objectStoreNames: DOMStringList; onabort: (ev: Event) => any; onerror: (ev: Event) => any; version: string; close(): void; createObjectStore(name: string, optionalParameters?: any): IDBObjectStore; deleteObjectStore(name: string): void; transaction(storeNames: any, mode?: string): IDBTransaction; addEventListener(type: "abort", listener: (ev: Event) => any, useCapture?: boolean): void; addEventListener(type: "error", listener: (ev: ErrorEvent) => any, useCapture?: boolean): void; addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; } declare var IDBDatabase: { prototype: IDBDatabase; new(): IDBDatabase; } interface IDBFactory { cmp(first: any, second: any): number; deleteDatabase(name: string): IDBOpenDBRequest; open(name: string, version?: number): IDBOpenDBRequest; } declare var IDBFactory: { prototype: IDBFactory; new(): IDBFactory; } interface IDBIndex { keyPath: string; name: string; objectStore: IDBObjectStore; unique: boolean; count(key?: any): IDBRequest; get(key: any): IDBRequest; getKey(key: any): IDBRequest; openCursor(range?: IDBKeyRange, direction?: string): IDBRequest; openKeyCursor(range?: IDBKeyRange, direction?: string): IDBRequest; } declare var IDBIndex: { prototype: IDBIndex; new(): IDBIndex; } interface IDBKeyRange { lower: any; lowerOpen: boolean; upper: any; upperOpen: boolean; } declare var IDBKeyRange: { prototype: IDBKeyRange; new(): IDBKeyRange; bound(lower: any, upper: any, lowerOpen?: boolean, upperOpen?: boolean): IDBKeyRange; lowerBound(bound: any, open?: boolean): IDBKeyRange; only(value: any): IDBKeyRange; upperBound(bound: any, open?: boolean): IDBKeyRange; } interface IDBObjectStore { indexNames: DOMStringList; keyPath: string; name: string; transaction: IDBTransaction; add(value: any, key?: any): IDBRequest; clear(): IDBRequest; count(key?: any): IDBRequest; createIndex(name: string, keyPath: string, optionalParameters?: any): IDBIndex; delete(key: any): IDBRequest; deleteIndex(indexName: string): void; get(key: any): IDBRequest; index(name: string): IDBIndex; openCursor(range?: any, direction?: string): IDBRequest; put(value: any, key?: any): IDBRequest; } declare var IDBObjectStore: { prototype: IDBObjectStore; new(): IDBObjectStore; } interface IDBOpenDBRequest extends IDBRequest { onblocked: (ev: Event) => any; onupgradeneeded: (ev: IDBVersionChangeEvent) => any; addEventListener(type: "blocked", listener: (ev: Event) => any, useCapture?: boolean): void; addEventListener(type: "error", listener: (ev: ErrorEvent) => any, useCapture?: boolean): void; addEventListener(type: "success", listener: (ev: Event) => any, useCapture?: boolean): void; addEventListener(type: "upgradeneeded", listener: (ev: IDBVersionChangeEvent) => any, useCapture?: boolean): void; addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; } declare var IDBOpenDBRequest: { prototype: IDBOpenDBRequest; new(): IDBOpenDBRequest; } interface IDBRequest extends EventTarget { error: DOMError; onerror: (ev: Event) => any; onsuccess: (ev: Event) => any; readyState: string; result: any; source: any; transaction: IDBTransaction; addEventListener(type: "error", listener: (ev: ErrorEvent) => any, useCapture?: boolean): void; addEventListener(type: "success", listener: (ev: Event) => any, useCapture?: boolean): void; addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; } declare var IDBRequest: { prototype: IDBRequest; new(): IDBRequest; } interface IDBTransaction extends EventTarget { db: IDBDatabase; error: DOMError; mode: string; onabort: (ev: Event) => any; oncomplete: (ev: Event) => any; onerror: (ev: Event) => any; abort(): void; objectStore(name: string): IDBObjectStore; READ_ONLY: string; READ_WRITE: string; VERSION_CHANGE: string; addEventListener(type: "abort", listener: (ev: Event) => any, useCapture?: boolean): void; addEventListener(type: "complete", listener: (ev: Event) => any, useCapture?: boolean): void; addEventListener(type: "error", listener: (ev: ErrorEvent) => any, useCapture?: boolean): void; addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; } declare var IDBTransaction: { prototype: IDBTransaction; new(): IDBTransaction; READ_ONLY: string; READ_WRITE: string; VERSION_CHANGE: string; } interface IDBVersionChangeEvent extends Event { newVersion: number; oldVersion: number; } declare var IDBVersionChangeEvent: { prototype: IDBVersionChangeEvent; new(): IDBVersionChangeEvent; } interface ImageData { data: number[]; height: number; width: number; } interface ImageDataConstructor { prototype: ImageData; new(width: number, height: number): ImageData; new(array: Uint8ClampedArray, width: number, height: number): ImageData; } declare var ImageData: ImageDataConstructor; interface KeyboardEvent extends UIEvent { altKey: boolean; char: string; charCode: number; ctrlKey: boolean; key: string; keyCode: number; locale: string; location: number; metaKey: boolean; repeat: boolean; shiftKey: boolean; which: number; getModifierState(keyArg: string): boolean; initKeyboardEvent(typeArg: string, canBubbleArg: boolean, cancelableArg: boolean, viewArg: Window, keyArg: string, locationArg: number, modifiersListArg: string, repeat: boolean, locale: string): void; DOM_KEY_LOCATION_JOYSTICK: number; DOM_KEY_LOCATION_LEFT: number; DOM_KEY_LOCATION_MOBILE: number; DOM_KEY_LOCATION_NUMPAD: number; DOM_KEY_LOCATION_RIGHT: number; DOM_KEY_LOCATION_STANDARD: number; } declare var KeyboardEvent: { prototype: KeyboardEvent; new(typeArg: string, eventInitDict?: KeyboardEventInit): KeyboardEvent; DOM_KEY_LOCATION_JOYSTICK: number; DOM_KEY_LOCATION_LEFT: number; DOM_KEY_LOCATION_MOBILE: number; DOM_KEY_LOCATION_NUMPAD: number; DOM_KEY_LOCATION_RIGHT: number; DOM_KEY_LOCATION_STANDARD: number; } interface Location { hash: string; host: string; hostname: string; href: string; origin: string; pathname: string; port: string; protocol: string; search: string; assign(url: string): void; reload(forcedReload?: boolean): void; replace(url: string): void; toString(): string; } declare var Location: { prototype: Location; new(): Location; } interface LongRunningScriptDetectedEvent extends Event { executionTime: number; stopPageScriptExecution: boolean; } declare var LongRunningScriptDetectedEvent: { prototype: LongRunningScriptDetectedEvent; new(): LongRunningScriptDetectedEvent; } interface MSApp { clearTemporaryWebDataAsync(): MSAppAsyncOperation; createBlobFromRandomAccessStream(type: string, seeker: any): Blob; createDataPackage(object: any): any; createDataPackageFromSelection(): any; createFileFromStorageFile(storageFile: any): File; createStreamFromInputStream(type: string, inputStream: any): MSStream; execAsyncAtPriority(asynchronousCallback: MSExecAtPriorityFunctionCallback, priority: string, ...args: any[]): void; execAtPriority(synchronousCallback: MSExecAtPriorityFunctionCallback, priority: string, ...args: any[]): any; getCurrentPriority(): string; getHtmlPrintDocumentSourceAsync(htmlDoc: any): any; getViewId(view: any): any; isTaskScheduledAtPriorityOrHigher(priority: string): boolean; pageHandlesAllApplicationActivations(enabled: boolean): void; suppressSubdownloadCredentialPrompts(suppress: boolean): void; terminateApp(exceptionObject: any): void; CURRENT: string; HIGH: string; IDLE: string; NORMAL: string; } declare var MSApp: MSApp; interface MSAppAsyncOperation extends EventTarget { error: DOMError; oncomplete: (ev: Event) => any; onerror: (ev: Event) => any; readyState: number; result: any; start(): void; COMPLETED: number; ERROR: number; STARTED: number; addEventListener(type: "complete", listener: (ev: Event) => any, useCapture?: boolean): void; addEventListener(type: "error", listener: (ev: ErrorEvent) => any, useCapture?: boolean): void; addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; } declare var MSAppAsyncOperation: { prototype: MSAppAsyncOperation; new(): MSAppAsyncOperation; COMPLETED: number; ERROR: number; STARTED: number; } interface MSBlobBuilder { append(data: any, endings?: string): void; getBlob(contentType?: string): Blob; } declare var MSBlobBuilder: { prototype: MSBlobBuilder; new(): MSBlobBuilder; } interface MSCSSMatrix { a: number; b: number; c: number; d: number; e: number; f: number; m11: number; m12: number; m13: number; m14: number; m21: number; m22: number; m23: number; m24: number; m31: number; m32: number; m33: number; m34: number; m41: number; m42: number; m43: number; m44: number; inverse(): MSCSSMatrix; multiply(secondMatrix: MSCSSMatrix): MSCSSMatrix; rotate(angleX: number, angleY?: number, angleZ?: number): MSCSSMatrix; rotateAxisAngle(x: number, y: number, z: number, angle: number): MSCSSMatrix; scale(scaleX: number, scaleY?: number, scaleZ?: number): MSCSSMatrix; setMatrixValue(value: string): void; skewX(angle: number): MSCSSMatrix; skewY(angle: number): MSCSSMatrix; toString(): string; translate(x: number, y: number, z?: number): MSCSSMatrix; } declare var MSCSSMatrix: { prototype: MSCSSMatrix; new(text?: string): MSCSSMatrix; } interface MSGesture { target: Element; addPointer(pointerId: number): void; stop(): void; } declare var MSGesture: { prototype: MSGesture; new(): MSGesture; } interface MSGestureEvent extends UIEvent { clientX: number; clientY: number; expansion: number; gestureObject: any; hwTimestamp: number; offsetX: number; offsetY: number; rotation: number; scale: number; screenX: number; screenY: number; translationX: number; translationY: number; velocityAngular: number; velocityExpansion: number; velocityX: number; velocityY: number; initGestureEvent(typeArg: string, canBubbleArg: boolean, cancelableArg: boolean, viewArg: Window, detailArg: number, screenXArg: number, screenYArg: number, clientXArg: number, clientYArg: number, offsetXArg: number, offsetYArg: number, translationXArg: number, translationYArg: number, scaleArg: number, expansionArg: number, rotationArg: number, velocityXArg: number, velocityYArg: number, velocityExpansionArg: number, velocityAngularArg: number, hwTimestampArg: number): void; MSGESTURE_FLAG_BEGIN: number; MSGESTURE_FLAG_CANCEL: number; MSGESTURE_FLAG_END: number; MSGESTURE_FLAG_INERTIA: number; MSGESTURE_FLAG_NONE: number; } declare var MSGestureEvent: { prototype: MSGestureEvent; new(): MSGestureEvent; MSGESTURE_FLAG_BEGIN: number; MSGESTURE_FLAG_CANCEL: number; MSGESTURE_FLAG_END: number; MSGESTURE_FLAG_INERTIA: number; MSGESTURE_FLAG_NONE: number; } interface MSGraphicsTrust { constrictionActive: boolean; status: string; } declare var MSGraphicsTrust: { prototype: MSGraphicsTrust; new(): MSGraphicsTrust; } interface MSHTMLWebViewElement extends HTMLElement { canGoBack: boolean; canGoForward: boolean; containsFullScreenElement: boolean; documentTitle: string; height: number; settings: MSWebViewSettings; src: string; width: number; addWebAllowedObject(name: string, applicationObject: any): void; buildLocalStreamUri(contentIdentifier: string, relativePath: string): string; capturePreviewToBlobAsync(): MSWebViewAsyncOperation; captureSelectedContentToDataPackageAsync(): MSWebViewAsyncOperation; getDeferredPermissionRequestById(id: number): DeferredPermissionRequest; getDeferredPermissionRequests(): DeferredPermissionRequest[]; goBack(): void; goForward(): void; invokeScriptAsync(scriptName: string, ...args: any[]): MSWebViewAsyncOperation; navigate(uri: string): void; navigateToLocalStreamUri(source: string, streamResolver: any): void; navigateToString(contents: string): void; navigateWithHttpRequestMessage(requestMessage: any): void; refresh(): void; stop(): void; } declare var MSHTMLWebViewElement: { prototype: MSHTMLWebViewElement; new(): MSHTMLWebViewElement; } interface MSHeaderFooter { URL: string; dateLong: string; dateShort: string; font: string; htmlFoot: string; htmlHead: string; page: number; pageTotal: number; textFoot: string; textHead: string; timeLong: string; timeShort: string; title: string; } declare var MSHeaderFooter: { prototype: MSHeaderFooter; new(): MSHeaderFooter; } interface MSInputMethodContext extends EventTarget { compositionEndOffset: number; compositionStartOffset: number; oncandidatewindowhide: (ev: Event) => any; oncandidatewindowshow: (ev: Event) => any; oncandidatewindowupdate: (ev: Event) => any; target: HTMLElement; getCandidateWindowClientRect(): ClientRect; getCompositionAlternatives(): string[]; hasComposition(): boolean; isCandidateWindowVisible(): boolean; addEventListener(type: "MSCandidateWindowHide", listener: (ev: Event) => any, useCapture?: boolean): void; addEventListener(type: "MSCandidateWindowShow", listener: (ev: Event) => any, useCapture?: boolean): void; addEventListener(type: "MSCandidateWindowUpdate", listener: (ev: Event) => any, useCapture?: boolean): void; addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; } declare var MSInputMethodContext: { prototype: MSInputMethodContext; new(): MSInputMethodContext; } interface MSManipulationEvent extends UIEvent { currentState: number; inertiaDestinationX: number; inertiaDestinationY: number; lastState: number; initMSManipulationEvent(typeArg: string, canBubbleArg: boolean, cancelableArg: boolean, viewArg: Window, detailArg: number, lastState: number, currentState: number): void; MS_MANIPULATION_STATE_ACTIVE: number; MS_MANIPULATION_STATE_CANCELLED: number; MS_MANIPULATION_STATE_COMMITTED: number; MS_MANIPULATION_STATE_DRAGGING: number; MS_MANIPULATION_STATE_INERTIA: number; MS_MANIPULATION_STATE_PRESELECT: number; MS_MANIPULATION_STATE_SELECTING: number; MS_MANIPULATION_STATE_STOPPED: number; } declare var MSManipulationEvent: { prototype: MSManipulationEvent; new(): MSManipulationEvent; MS_MANIPULATION_STATE_ACTIVE: number; MS_MANIPULATION_STATE_CANCELLED: number; MS_MANIPULATION_STATE_COMMITTED: number; MS_MANIPULATION_STATE_DRAGGING: number; MS_MANIPULATION_STATE_INERTIA: number; MS_MANIPULATION_STATE_PRESELECT: number; MS_MANIPULATION_STATE_SELECTING: number; MS_MANIPULATION_STATE_STOPPED: number; } interface MSMediaKeyError { code: number; systemCode: number; MS_MEDIA_KEYERR_CLIENT: number; MS_MEDIA_KEYERR_DOMAIN: number; MS_MEDIA_KEYERR_HARDWARECHANGE: number; MS_MEDIA_KEYERR_OUTPUT: number; MS_MEDIA_KEYERR_SERVICE: number; MS_MEDIA_KEYERR_UNKNOWN: number; } declare var MSMediaKeyError: { prototype: MSMediaKeyError; new(): MSMediaKeyError; MS_MEDIA_KEYERR_CLIENT: number; MS_MEDIA_KEYERR_DOMAIN: number; MS_MEDIA_KEYERR_HARDWARECHANGE: number; MS_MEDIA_KEYERR_OUTPUT: number; MS_MEDIA_KEYERR_SERVICE: number; MS_MEDIA_KEYERR_UNKNOWN: number; } interface MSMediaKeyMessageEvent extends Event { destinationURL: string; message: Uint8Array; } declare var MSMediaKeyMessageEvent: { prototype: MSMediaKeyMessageEvent; new(): MSMediaKeyMessageEvent; } interface MSMediaKeyNeededEvent extends Event { initData: Uint8Array; } declare var MSMediaKeyNeededEvent: { prototype: MSMediaKeyNeededEvent; new(): MSMediaKeyNeededEvent; } interface MSMediaKeySession extends EventTarget { error: MSMediaKeyError; keySystem: string; sessionId: string; close(): void; update(key: Uint8Array): void; } declare var MSMediaKeySession: { prototype: MSMediaKeySession; new(): MSMediaKeySession; } interface MSMediaKeys { keySystem: string; createSession(type: string, initData: Uint8Array, cdmData?: Uint8Array): MSMediaKeySession; } declare var MSMediaKeys: { prototype: MSMediaKeys; new(keySystem: string): MSMediaKeys; isTypeSupported(keySystem: string, type?: string): boolean; } interface MSMimeTypesCollection { length: number; } declare var MSMimeTypesCollection: { prototype: MSMimeTypesCollection; new(): MSMimeTypesCollection; } interface MSPluginsCollection { length: number; refresh(reload?: boolean): void; } declare var MSPluginsCollection: { prototype: MSPluginsCollection; new(): MSPluginsCollection; } interface MSPointerEvent extends MouseEvent { currentPoint: any; height: number; hwTimestamp: number; intermediatePoints: any; isPrimary: boolean; pointerId: number; pointerType: any; pressure: number; rotation: number; tiltX: number; tiltY: number; width: number; getCurrentPoint(element: Element): void; getIntermediatePoints(element: Element): void; initPointerEvent(typeArg: string, canBubbleArg: boolean, cancelableArg: boolean, viewArg: Window, detailArg: number, screenXArg: number, screenYArg: number, clientXArg: number, clientYArg: number, ctrlKeyArg: boolean, altKeyArg: boolean, shiftKeyArg: boolean, metaKeyArg: boolean, buttonArg: number, relatedTargetArg: EventTarget, offsetXArg: number, offsetYArg: number, widthArg: number, heightArg: number, pressure: number, rotation: number, tiltX: number, tiltY: number, pointerIdArg: number, pointerType: any, hwTimestampArg: number, isPrimary: boolean): void; } declare var MSPointerEvent: { prototype: MSPointerEvent; new(typeArg: string, eventInitDict?: PointerEventInit): MSPointerEvent; } interface MSPrintManagerTemplatePrinter extends MSTemplatePrinter, EventTarget { percentScale: number; showHeaderFooter: boolean; shrinkToFit: boolean; drawPreviewPage(element: HTMLElement, pageNumber: number): void; endPrint(): void; getPrintTaskOptionValue(key: string): any; invalidatePreview(): void; setPageCount(pageCount: number): void; startPrint(): void; addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; } declare var MSPrintManagerTemplatePrinter: { prototype: MSPrintManagerTemplatePrinter; new(): MSPrintManagerTemplatePrinter; } interface MSRangeCollection { length: number; item(index: number): Range; [index: number]: Range; } declare var MSRangeCollection: { prototype: MSRangeCollection; new(): MSRangeCollection; } interface MSSiteModeEvent extends Event { actionURL: string; buttonID: number; } declare var MSSiteModeEvent: { prototype: MSSiteModeEvent; new(): MSSiteModeEvent; } interface MSStream { type: string; msClose(): void; msDetachStream(): any; } declare var MSStream: { prototype: MSStream; new(): MSStream; } interface MSStreamReader extends EventTarget, MSBaseReader { error: DOMError; readAsArrayBuffer(stream: MSStream, size?: number): void; readAsBinaryString(stream: MSStream, size?: number): void; readAsBlob(stream: MSStream, size?: number): void; readAsDataURL(stream: MSStream, size?: number): void; readAsText(stream: MSStream, encoding?: string, size?: number): void; addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; } declare var MSStreamReader: { prototype: MSStreamReader; new(): MSStreamReader; } interface MSTemplatePrinter { collate: boolean; copies: number; currentPage: boolean; currentPageAvail: boolean; duplex: boolean; footer: string; frameActive: boolean; frameActiveEnabled: boolean; frameAsShown: boolean; framesetDocument: boolean; header: string; headerFooterFont: string; marginBottom: number; marginLeft: number; marginRight: number; marginTop: number; orientation: string; pageFrom: number; pageHeight: number; pageTo: number; pageWidth: number; selectedPages: boolean; selection: boolean; selectionEnabled: boolean; unprintableBottom: number; unprintableLeft: number; unprintableRight: number; unprintableTop: number; usePrinterCopyCollate: boolean; createHeaderFooter(): MSHeaderFooter; deviceSupports(property: string): any; ensurePrintDialogDefaults(): boolean; getPageMarginBottom(pageRule: CSSPageRule, pageWidth: number, pageHeight: number): any; getPageMarginBottomImportant(pageRule: CSSPageRule): boolean; getPageMarginLeft(pageRule: CSSPageRule, pageWidth: number, pageHeight: number): any; getPageMarginLeftImportant(pageRule: CSSPageRule): boolean; getPageMarginRight(pageRule: CSSPageRule, pageWidth: number, pageHeight: number): any; getPageMarginRightImportant(pageRule: CSSPageRule): boolean; getPageMarginTop(pageRule: CSSPageRule, pageWidth: number, pageHeight: number): any; getPageMarginTopImportant(pageRule: CSSPageRule): boolean; printBlankPage(): void; printNonNative(document: any): boolean; printNonNativeFrames(document: any, activeFrame: boolean): void; printPage(element: HTMLElement): void; showPageSetupDialog(): boolean; showPrintDialog(): boolean; startDoc(title: string): boolean; stopDoc(): void; updatePageStatus(status: number): void; } declare var MSTemplatePrinter: { prototype: MSTemplatePrinter; new(): MSTemplatePrinter; } interface MSWebViewAsyncOperation extends EventTarget { error: DOMError; oncomplete: (ev: Event) => any; onerror: (ev: Event) => any; readyState: number; result: any; target: MSHTMLWebViewElement; type: number; start(): void; COMPLETED: number; ERROR: number; STARTED: number; TYPE_CAPTURE_PREVIEW_TO_RANDOM_ACCESS_STREAM: number; TYPE_CREATE_DATA_PACKAGE_FROM_SELECTION: number; TYPE_INVOKE_SCRIPT: number; addEventListener(type: "complete", listener: (ev: Event) => any, useCapture?: boolean): void; addEventListener(type: "error", listener: (ev: ErrorEvent) => any, useCapture?: boolean): void; addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; } declare var MSWebViewAsyncOperation: { prototype: MSWebViewAsyncOperation; new(): MSWebViewAsyncOperation; COMPLETED: number; ERROR: number; STARTED: number; TYPE_CAPTURE_PREVIEW_TO_RANDOM_ACCESS_STREAM: number; TYPE_CREATE_DATA_PACKAGE_FROM_SELECTION: number; TYPE_INVOKE_SCRIPT: number; } interface MSWebViewSettings { isIndexedDBEnabled: boolean; isJavaScriptEnabled: boolean; } declare var MSWebViewSettings: { prototype: MSWebViewSettings; new(): MSWebViewSettings; } interface MediaElementAudioSourceNode extends AudioNode { } declare var MediaElementAudioSourceNode: { prototype: MediaElementAudioSourceNode; new(): MediaElementAudioSourceNode; } interface MediaError { code: number; msExtendedCode: number; MEDIA_ERR_ABORTED: number; MEDIA_ERR_DECODE: number; MEDIA_ERR_NETWORK: number; MEDIA_ERR_SRC_NOT_SUPPORTED: number; MS_MEDIA_ERR_ENCRYPTED: number; } declare var MediaError: { prototype: MediaError; new(): MediaError; MEDIA_ERR_ABORTED: number; MEDIA_ERR_DECODE: number; MEDIA_ERR_NETWORK: number; MEDIA_ERR_SRC_NOT_SUPPORTED: number; MS_MEDIA_ERR_ENCRYPTED: number; } interface MediaList { length: number; mediaText: string; appendMedium(newMedium: string): void; deleteMedium(oldMedium: string): void; item(index: number): string; toString(): string; [index: number]: string; } declare var MediaList: { prototype: MediaList; new(): MediaList; } interface MediaQueryList { matches: boolean; media: string; addListener(listener: MediaQueryListListener): void; removeListener(listener: MediaQueryListListener): void; } declare var MediaQueryList: { prototype: MediaQueryList; new(): MediaQueryList; } interface MediaSource extends EventTarget { activeSourceBuffers: SourceBufferList; duration: number; readyState: number; sourceBuffers: SourceBufferList; addSourceBuffer(type: string): SourceBuffer; endOfStream(error?: number): void; removeSourceBuffer(sourceBuffer: SourceBuffer): void; } declare var MediaSource: { prototype: MediaSource; new(): MediaSource; isTypeSupported(type: string): boolean; } interface MessageChannel { port1: MessagePort; port2: MessagePort; } declare var MessageChannel: { prototype: MessageChannel; new(): MessageChannel; } interface MessageEvent extends Event { data: any; origin: string; ports: any; source: Window; initMessageEvent(typeArg: string, canBubbleArg: boolean, cancelableArg: boolean, dataArg: any, originArg: string, lastEventIdArg: string, sourceArg: Window): void; } declare var MessageEvent: { prototype: MessageEvent; new(): MessageEvent; } interface MessagePort extends EventTarget { onmessage: (ev: MessageEvent) => any; close(): void; postMessage(message?: any, ports?: any): void; start(): void; addEventListener(type: "message", listener: (ev: MessageEvent) => any, useCapture?: boolean): void; addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; } declare var MessagePort: { prototype: MessagePort; new(): MessagePort; } interface MimeType { description: string; enabledPlugin: Plugin; suffixes: string; type: string; } declare var MimeType: { prototype: MimeType; new(): MimeType; } interface MimeTypeArray { length: number; item(index: number): Plugin; namedItem(type: string): Plugin; [index: number]: Plugin; } declare var MimeTypeArray: { prototype: MimeTypeArray; new(): MimeTypeArray; } interface MouseEvent extends UIEvent { altKey: boolean; button: number; buttons: number; clientX: number; clientY: number; ctrlKey: boolean; fromElement: Element; layerX: number; layerY: number; metaKey: boolean; movementX: number; movementY: number; offsetX: number; offsetY: number; pageX: number; pageY: number; relatedTarget: EventTarget; screenX: number; screenY: number; shiftKey: boolean; toElement: Element; which: number; x: number; y: number; getModifierState(keyArg: string): boolean; initMouseEvent(typeArg: string, canBubbleArg: boolean, cancelableArg: boolean, viewArg: Window, detailArg: number, screenXArg: number, screenYArg: number, clientXArg: number, clientYArg: number, ctrlKeyArg: boolean, altKeyArg: boolean, shiftKeyArg: boolean, metaKeyArg: boolean, buttonArg: number, relatedTargetArg: EventTarget): void; } declare var MouseEvent: { prototype: MouseEvent; new(typeArg: string, eventInitDict?: MouseEventInit): MouseEvent; } interface MouseWheelEvent extends MouseEvent { wheelDelta: number; wheelDeltaX: number; wheelDeltaY: number; initMouseWheelEvent(typeArg: string, canBubbleArg: boolean, cancelableArg: boolean, viewArg: Window, detailArg: number, screenXArg: number, screenYArg: number, clientXArg: number, clientYArg: number, buttonArg: number, relatedTargetArg: EventTarget, modifiersListArg: string, wheelDeltaArg: number): void; } declare var MouseWheelEvent: { prototype: MouseWheelEvent; new(): MouseWheelEvent; } interface MutationEvent extends Event { attrChange: number; attrName: string; newValue: string; prevValue: string; relatedNode: Node; initMutationEvent(typeArg: string, canBubbleArg: boolean, cancelableArg: boolean, relatedNodeArg: Node, prevValueArg: string, newValueArg: string, attrNameArg: string, attrChangeArg: number): void; ADDITION: number; MODIFICATION: number; REMOVAL: number; } declare var MutationEvent: { prototype: MutationEvent; new(): MutationEvent; ADDITION: number; MODIFICATION: number; REMOVAL: number; } interface MutationObserver { disconnect(): void; observe(target: Node, options: MutationObserverInit): void; takeRecords(): MutationRecord[]; } declare var MutationObserver: { prototype: MutationObserver; new(callback: MutationCallback): MutationObserver; } interface MutationRecord { addedNodes: NodeList; attributeName: string; attributeNamespace: string; nextSibling: Node; oldValue: string; previousSibling: Node; removedNodes: NodeList; target: Node; type: string; } declare var MutationRecord: { prototype: MutationRecord; new(): MutationRecord; } interface NamedNodeMap { length: number; getNamedItem(name: string): Attr; getNamedItemNS(namespaceURI: string, localName: string): Attr; item(index: number): Attr; removeNamedItem(name: string): Attr; removeNamedItemNS(namespaceURI: string, localName: string): Attr; setNamedItem(arg: Attr): Attr; setNamedItemNS(arg: Attr): Attr; [index: number]: Attr; } declare var NamedNodeMap: { prototype: NamedNodeMap; new(): NamedNodeMap; } interface NavigationCompletedEvent extends NavigationEvent { isSuccess: boolean; webErrorStatus: number; } declare var NavigationCompletedEvent: { prototype: NavigationCompletedEvent; new(): NavigationCompletedEvent; } interface NavigationEvent extends Event { uri: string; } declare var NavigationEvent: { prototype: NavigationEvent; new(): NavigationEvent; } interface NavigationEventWithReferrer extends NavigationEvent { referer: string; } declare var NavigationEventWithReferrer: { prototype: NavigationEventWithReferrer; new(): NavigationEventWithReferrer; } interface Navigator extends Object, NavigatorID, NavigatorOnLine, NavigatorContentUtils, NavigatorStorageUtils, NavigatorGeolocation, MSNavigatorDoNotTrack, MSFileSaver { appCodeName: string; appMinorVersion: string; browserLanguage: string; connectionSpeed: number; cookieEnabled: boolean; cpuClass: string; language: string; maxTouchPoints: number; mimeTypes: MSMimeTypesCollection; msManipulationViewsEnabled: boolean; msMaxTouchPoints: number; msPointerEnabled: boolean; plugins: MSPluginsCollection; pointerEnabled: boolean; systemLanguage: string; userLanguage: string; webdriver: boolean; getGamepads(): Gamepad[]; javaEnabled(): boolean; msLaunchUri(uri: string, successCallback?: MSLaunchUriCallback, noHandlerCallback?: MSLaunchUriCallback): void; addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; } declare var Navigator: { prototype: Navigator; new(): Navigator; } interface Node extends EventTarget { attributes: NamedNodeMap; baseURI: string; childNodes: NodeList; firstChild: Node; lastChild: Node; localName: string; namespaceURI: string; nextSibling: Node; nodeName: string; nodeType: number; nodeValue: string; ownerDocument: Document; parentElement: HTMLElement; parentNode: Node; prefix: string; previousSibling: Node; textContent: string; appendChild(newChild: Node): Node; cloneNode(deep?: boolean): Node; compareDocumentPosition(other: Node): number; hasAttributes(): boolean; hasChildNodes(): boolean; insertBefore(newChild: Node, refChild?: Node): Node; isDefaultNamespace(namespaceURI: string): boolean; isEqualNode(arg: Node): boolean; isSameNode(other: Node): boolean; lookupNamespaceURI(prefix: string): string; lookupPrefix(namespaceURI: string): string; normalize(): void; removeChild(oldChild: Node): Node; replaceChild(newChild: Node, oldChild: Node): Node; ATTRIBUTE_NODE: number; CDATA_SECTION_NODE: number; COMMENT_NODE: number; DOCUMENT_FRAGMENT_NODE: number; DOCUMENT_NODE: number; DOCUMENT_POSITION_CONTAINED_BY: number; DOCUMENT_POSITION_CONTAINS: number; DOCUMENT_POSITION_DISCONNECTED: number; DOCUMENT_POSITION_FOLLOWING: number; DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC: number; DOCUMENT_POSITION_PRECEDING: number; DOCUMENT_TYPE_NODE: number; ELEMENT_NODE: number; ENTITY_NODE: number; ENTITY_REFERENCE_NODE: number; NOTATION_NODE: number; PROCESSING_INSTRUCTION_NODE: number; TEXT_NODE: number; } declare var Node: { prototype: Node; new(): Node; ATTRIBUTE_NODE: number; CDATA_SECTION_NODE: number; COMMENT_NODE: number; DOCUMENT_FRAGMENT_NODE: number; DOCUMENT_NODE: number; DOCUMENT_POSITION_CONTAINED_BY: number; DOCUMENT_POSITION_CONTAINS: number; DOCUMENT_POSITION_DISCONNECTED: number; DOCUMENT_POSITION_FOLLOWING: number; DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC: number; DOCUMENT_POSITION_PRECEDING: number; DOCUMENT_TYPE_NODE: number; ELEMENT_NODE: number; ENTITY_NODE: number; ENTITY_REFERENCE_NODE: number; NOTATION_NODE: number; PROCESSING_INSTRUCTION_NODE: number; TEXT_NODE: number; } interface NodeFilter { FILTER_ACCEPT: number; FILTER_REJECT: number; FILTER_SKIP: number; SHOW_ALL: number; SHOW_ATTRIBUTE: number; SHOW_CDATA_SECTION: number; SHOW_COMMENT: number; SHOW_DOCUMENT: number; SHOW_DOCUMENT_FRAGMENT: number; SHOW_DOCUMENT_TYPE: number; SHOW_ELEMENT: number; SHOW_ENTITY: number; SHOW_ENTITY_REFERENCE: number; SHOW_NOTATION: number; SHOW_PROCESSING_INSTRUCTION: number; SHOW_TEXT: number; } declare var NodeFilter: NodeFilter; interface NodeIterator { expandEntityReferences: boolean; filter: NodeFilter; root: Node; whatToShow: number; detach(): void; nextNode(): Node; previousNode(): Node; } declare var NodeIterator: { prototype: NodeIterator; new(): NodeIterator; } interface NodeList { length: number; item(index: number): Node; [index: number]: Node; } declare var NodeList: { prototype: NodeList; new(): NodeList; } interface OES_element_index_uint { } declare var OES_element_index_uint: { prototype: OES_element_index_uint; new(): OES_element_index_uint; } interface OES_standard_derivatives { FRAGMENT_SHADER_DERIVATIVE_HINT_OES: number; } declare var OES_standard_derivatives: { prototype: OES_standard_derivatives; new(): OES_standard_derivatives; FRAGMENT_SHADER_DERIVATIVE_HINT_OES: number; } interface OES_texture_float { } declare var OES_texture_float: { prototype: OES_texture_float; new(): OES_texture_float; } interface OES_texture_float_linear { } declare var OES_texture_float_linear: { prototype: OES_texture_float_linear; new(): OES_texture_float_linear; } interface OfflineAudioCompletionEvent extends Event { renderedBuffer: AudioBuffer; } declare var OfflineAudioCompletionEvent: { prototype: OfflineAudioCompletionEvent; new(): OfflineAudioCompletionEvent; } interface OfflineAudioContext extends AudioContext { oncomplete: (ev: Event) => any; startRendering(): void; addEventListener(type: "complete", listener: (ev: Event) => any, useCapture?: boolean): void; addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; } declare var OfflineAudioContext: { prototype: OfflineAudioContext; new(numberOfChannels: number, length: number, sampleRate: number): OfflineAudioContext; } interface OscillatorNode extends AudioNode { detune: AudioParam; frequency: AudioParam; onended: (ev: Event) => any; type: string; setPeriodicWave(periodicWave: PeriodicWave): void; start(when?: number): void; stop(when?: number): void; addEventListener(type: "ended", listener: (ev: Event) => any, useCapture?: boolean): void; addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; } declare var OscillatorNode: { prototype: OscillatorNode; new(): OscillatorNode; } interface PageTransitionEvent extends Event { persisted: boolean; } declare var PageTransitionEvent: { prototype: PageTransitionEvent; new(): PageTransitionEvent; } interface PannerNode extends AudioNode { coneInnerAngle: number; coneOuterAngle: number; coneOuterGain: number; distanceModel: string; maxDistance: number; panningModel: string; refDistance: number; rolloffFactor: number; setOrientation(x: number, y: number, z: number): void; setPosition(x: number, y: number, z: number): void; setVelocity(x: number, y: number, z: number): void; } declare var PannerNode: { prototype: PannerNode; new(): PannerNode; } interface PerfWidgetExternal { activeNetworkRequestCount: number; averageFrameTime: number; averagePaintTime: number; extraInformationEnabled: boolean; independentRenderingEnabled: boolean; irDisablingContentString: string; irStatusAvailable: boolean; maxCpuSpeed: number; paintRequestsPerSecond: number; performanceCounter: number; performanceCounterFrequency: number; addEventListener(eventType: string, callback: Function): void; getMemoryUsage(): number; getProcessCpuUsage(): number; getRecentCpuUsage(last: number): any; getRecentFrames(last: number): any; getRecentMemoryUsage(last: number): any; getRecentPaintRequests(last: number): any; removeEventListener(eventType: string, callback: Function): void; repositionWindow(x: number, y: number): void; resizeWindow(width: number, height: number): void; } declare var PerfWidgetExternal: { prototype: PerfWidgetExternal; new(): PerfWidgetExternal; } interface Performance { navigation: PerformanceNavigation; timing: PerformanceTiming; clearMarks(markName?: string): void; clearMeasures(measureName?: string): void; clearResourceTimings(): void; getEntries(): any; getEntriesByName(name: string, entryType?: string): any; getEntriesByType(entryType: string): any; getMarks(markName?: string): any; getMeasures(measureName?: string): any; mark(markName: string): void; measure(measureName: string, startMarkName?: string, endMarkName?: string): void; now(): number; setResourceTimingBufferSize(maxSize: number): void; toJSON(): any; } declare var Performance: { prototype: Performance; new(): Performance; } interface PerformanceEntry { duration: number; entryType: string; name: string; startTime: number; } declare var PerformanceEntry: { prototype: PerformanceEntry; new(): PerformanceEntry; } interface PerformanceMark extends PerformanceEntry { } declare var PerformanceMark: { prototype: PerformanceMark; new(): PerformanceMark; } interface PerformanceMeasure extends PerformanceEntry { } declare var PerformanceMeasure: { prototype: PerformanceMeasure; new(): PerformanceMeasure; } interface PerformanceNavigation { redirectCount: number; type: number; toJSON(): any; TYPE_BACK_FORWARD: number; TYPE_NAVIGATE: number; TYPE_RELOAD: number; TYPE_RESERVED: number; } declare var PerformanceNavigation: { prototype: PerformanceNavigation; new(): PerformanceNavigation; TYPE_BACK_FORWARD: number; TYPE_NAVIGATE: number; TYPE_RELOAD: number; TYPE_RESERVED: number; } interface PerformanceNavigationTiming extends PerformanceEntry { connectEnd: number; connectStart: number; domComplete: number; domContentLoadedEventEnd: number; domContentLoadedEventStart: number; domInteractive: number; domLoading: number; domainLookupEnd: number; domainLookupStart: number; fetchStart: number; loadEventEnd: number; loadEventStart: number; navigationStart: number; redirectCount: number; redirectEnd: number; redirectStart: number; requestStart: number; responseEnd: number; responseStart: number; type: string; unloadEventEnd: number; unloadEventStart: number; } declare var PerformanceNavigationTiming: { prototype: PerformanceNavigationTiming; new(): PerformanceNavigationTiming; } interface PerformanceResourceTiming extends PerformanceEntry { connectEnd: number; connectStart: number; domainLookupEnd: number; domainLookupStart: number; fetchStart: number; initiatorType: string; redirectEnd: number; redirectStart: number; requestStart: number; responseEnd: number; responseStart: number; } declare var PerformanceResourceTiming: { prototype: PerformanceResourceTiming; new(): PerformanceResourceTiming; } interface PerformanceTiming { connectEnd: number; connectStart: number; domComplete: number; domContentLoadedEventEnd: number; domContentLoadedEventStart: number; domInteractive: number; domLoading: number; domainLookupEnd: number; domainLookupStart: number; fetchStart: number; loadEventEnd: number; loadEventStart: number; msFirstPaint: number; navigationStart: number; redirectEnd: number; redirectStart: number; requestStart: number; responseEnd: number; responseStart: number; unloadEventEnd: number; unloadEventStart: number; toJSON(): any; } declare var PerformanceTiming: { prototype: PerformanceTiming; new(): PerformanceTiming; } interface PeriodicWave { } declare var PeriodicWave: { prototype: PeriodicWave; new(): PeriodicWave; } interface PermissionRequest extends DeferredPermissionRequest { state: string; defer(): void; } declare var PermissionRequest: { prototype: PermissionRequest; new(): PermissionRequest; } interface PermissionRequestedEvent extends Event { permissionRequest: PermissionRequest; } declare var PermissionRequestedEvent: { prototype: PermissionRequestedEvent; new(): PermissionRequestedEvent; } interface Plugin { description: string; filename: string; length: number; name: string; version: string; item(index: number): MimeType; namedItem(type: string): MimeType; [index: number]: MimeType; } declare var Plugin: { prototype: Plugin; new(): Plugin; } interface PluginArray { length: number; item(index: number): Plugin; namedItem(name: string): Plugin; refresh(reload?: boolean): void; [index: number]: Plugin; } declare var PluginArray: { prototype: PluginArray; new(): PluginArray; } interface PointerEvent extends MouseEvent { currentPoint: any; height: number; hwTimestamp: number; intermediatePoints: any; isPrimary: boolean; pointerId: number; pointerType: any; pressure: number; rotation: number; tiltX: number; tiltY: number; width: number; getCurrentPoint(element: Element): void; getIntermediatePoints(element: Element): void; initPointerEvent(typeArg: string, canBubbleArg: boolean, cancelableArg: boolean, viewArg: Window, detailArg: number, screenXArg: number, screenYArg: number, clientXArg: number, clientYArg: number, ctrlKeyArg: boolean, altKeyArg: boolean, shiftKeyArg: boolean, metaKeyArg: boolean, buttonArg: number, relatedTargetArg: EventTarget, offsetXArg: number, offsetYArg: number, widthArg: number, heightArg: number, pressure: number, rotation: number, tiltX: number, tiltY: number, pointerIdArg: number, pointerType: any, hwTimestampArg: number, isPrimary: boolean): void; } declare var PointerEvent: { prototype: PointerEvent; new(typeArg: string, eventInitDict?: PointerEventInit): PointerEvent; } interface PopStateEvent extends Event { state: any; initPopStateEvent(typeArg: string, canBubbleArg: boolean, cancelableArg: boolean, stateArg: any): void; } declare var PopStateEvent: { prototype: PopStateEvent; new(): PopStateEvent; } interface Position { coords: Coordinates; timestamp: number; } declare var Position: { prototype: Position; new(): Position; } interface PositionError { code: number; message: string; toString(): string; PERMISSION_DENIED: number; POSITION_UNAVAILABLE: number; TIMEOUT: number; } declare var PositionError: { prototype: PositionError; new(): PositionError; PERMISSION_DENIED: number; POSITION_UNAVAILABLE: number; TIMEOUT: number; } interface ProcessingInstruction extends CharacterData { target: string; } declare var ProcessingInstruction: { prototype: ProcessingInstruction; new(): ProcessingInstruction; } interface ProgressEvent extends Event { lengthComputable: boolean; loaded: number; total: number; initProgressEvent(typeArg: string, canBubbleArg: boolean, cancelableArg: boolean, lengthComputableArg: boolean, loadedArg: number, totalArg: number): void; } declare var ProgressEvent: { prototype: ProgressEvent; new(): ProgressEvent; } interface Range { collapsed: boolean; commonAncestorContainer: Node; endContainer: Node; endOffset: number; startContainer: Node; startOffset: number; cloneContents(): DocumentFragment; cloneRange(): Range; collapse(toStart: boolean): void; compareBoundaryPoints(how: number, sourceRange: Range): number; createContextualFragment(fragment: string): DocumentFragment; deleteContents(): void; detach(): void; expand(Unit: string): boolean; extractContents(): DocumentFragment; getBoundingClientRect(): ClientRect; getClientRects(): ClientRectList; insertNode(newNode: Node): void; selectNode(refNode: Node): void; selectNodeContents(refNode: Node): void; setEnd(refNode: Node, offset: number): void; setEndAfter(refNode: Node): void; setEndBefore(refNode: Node): void; setStart(refNode: Node, offset: number): void; setStartAfter(refNode: Node): void; setStartBefore(refNode: Node): void; surroundContents(newParent: Node): void; toString(): string; END_TO_END: number; END_TO_START: number; START_TO_END: number; START_TO_START: number; } declare var Range: { prototype: Range; new(): Range; END_TO_END: number; END_TO_START: number; START_TO_END: number; START_TO_START: number; } interface SVGAElement extends SVGElement, SVGStylable, SVGTransformable, SVGTests, SVGLangSpace, SVGExternalResourcesRequired, SVGURIReference { target: SVGAnimatedString; addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; } declare var SVGAElement: { prototype: SVGAElement; new(): SVGAElement; } interface SVGAngle { unitType: number; value: number; valueAsString: string; valueInSpecifiedUnits: number; convertToSpecifiedUnits(unitType: number): void; newValueSpecifiedUnits(unitType: number, valueInSpecifiedUnits: number): void; SVG_ANGLETYPE_DEG: number; SVG_ANGLETYPE_GRAD: number; SVG_ANGLETYPE_RAD: number; SVG_ANGLETYPE_UNKNOWN: number; SVG_ANGLETYPE_UNSPECIFIED: number; } declare var SVGAngle: { prototype: SVGAngle; new(): SVGAngle; SVG_ANGLETYPE_DEG: number; SVG_ANGLETYPE_GRAD: number; SVG_ANGLETYPE_RAD: number; SVG_ANGLETYPE_UNKNOWN: number; SVG_ANGLETYPE_UNSPECIFIED: number; } interface SVGAnimatedAngle { animVal: SVGAngle; baseVal: SVGAngle; } declare var SVGAnimatedAngle: { prototype: SVGAnimatedAngle; new(): SVGAnimatedAngle; } interface SVGAnimatedBoolean { animVal: boolean; baseVal: boolean; } declare var SVGAnimatedBoolean: { prototype: SVGAnimatedBoolean; new(): SVGAnimatedBoolean; } interface SVGAnimatedEnumeration { animVal: number; baseVal: number; } declare var SVGAnimatedEnumeration: { prototype: SVGAnimatedEnumeration; new(): SVGAnimatedEnumeration; } interface SVGAnimatedInteger { animVal: number; baseVal: number; } declare var SVGAnimatedInteger: { prototype: SVGAnimatedInteger; new(): SVGAnimatedInteger; } interface SVGAnimatedLength { animVal: SVGLength; baseVal: SVGLength; } declare var SVGAnimatedLength: { prototype: SVGAnimatedLength; new(): SVGAnimatedLength; } interface SVGAnimatedLengthList { animVal: SVGLengthList; baseVal: SVGLengthList; } declare var SVGAnimatedLengthList: { prototype: SVGAnimatedLengthList; new(): SVGAnimatedLengthList; } interface SVGAnimatedNumber { animVal: number; baseVal: number; } declare var SVGAnimatedNumber: { prototype: SVGAnimatedNumber; new(): SVGAnimatedNumber; } interface SVGAnimatedNumberList { animVal: SVGNumberList; baseVal: SVGNumberList; } declare var SVGAnimatedNumberList: { prototype: SVGAnimatedNumberList; new(): SVGAnimatedNumberList; } interface SVGAnimatedPreserveAspectRatio { animVal: SVGPreserveAspectRatio; baseVal: SVGPreserveAspectRatio; } declare var SVGAnimatedPreserveAspectRatio: { prototype: SVGAnimatedPreserveAspectRatio; new(): SVGAnimatedPreserveAspectRatio; } interface SVGAnimatedRect { animVal: SVGRect; baseVal: SVGRect; } declare var SVGAnimatedRect: { prototype: SVGAnimatedRect; new(): SVGAnimatedRect; } interface SVGAnimatedString { animVal: string; baseVal: string; } declare var SVGAnimatedString: { prototype: SVGAnimatedString; new(): SVGAnimatedString; } interface SVGAnimatedTransformList { animVal: SVGTransformList; baseVal: SVGTransformList; } declare var SVGAnimatedTransformList: { prototype: SVGAnimatedTransformList; new(): SVGAnimatedTransformList; } interface SVGCircleElement extends SVGElement, SVGStylable, SVGTransformable, SVGTests, SVGLangSpace, SVGExternalResourcesRequired { cx: SVGAnimatedLength; cy: SVGAnimatedLength; r: SVGAnimatedLength; addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; } declare var SVGCircleElement: { prototype: SVGCircleElement; new(): SVGCircleElement; } interface SVGClipPathElement extends SVGElement, SVGStylable, SVGTransformable, SVGTests, SVGLangSpace, SVGExternalResourcesRequired, SVGUnitTypes { clipPathUnits: SVGAnimatedEnumeration; addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; } declare var SVGClipPathElement: { prototype: SVGClipPathElement; new(): SVGClipPathElement; } interface SVGComponentTransferFunctionElement extends SVGElement { amplitude: SVGAnimatedNumber; exponent: SVGAnimatedNumber; intercept: SVGAnimatedNumber; offset: SVGAnimatedNumber; slope: SVGAnimatedNumber; tableValues: SVGAnimatedNumberList; type: SVGAnimatedEnumeration; SVG_FECOMPONENTTRANSFER_TYPE_DISCRETE: number; SVG_FECOMPONENTTRANSFER_TYPE_GAMMA: number; SVG_FECOMPONENTTRANSFER_TYPE_IDENTITY: number; SVG_FECOMPONENTTRANSFER_TYPE_LINEAR: number; SVG_FECOMPONENTTRANSFER_TYPE_TABLE: number; SVG_FECOMPONENTTRANSFER_TYPE_UNKNOWN: number; } declare var SVGComponentTransferFunctionElement: { prototype: SVGComponentTransferFunctionElement; new(): SVGComponentTransferFunctionElement; SVG_FECOMPONENTTRANSFER_TYPE_DISCRETE: number; SVG_FECOMPONENTTRANSFER_TYPE_GAMMA: number; SVG_FECOMPONENTTRANSFER_TYPE_IDENTITY: number; SVG_FECOMPONENTTRANSFER_TYPE_LINEAR: number; SVG_FECOMPONENTTRANSFER_TYPE_TABLE: number; SVG_FECOMPONENTTRANSFER_TYPE_UNKNOWN: number; } interface SVGDefsElement extends SVGElement, SVGStylable, SVGTransformable, SVGTests, SVGLangSpace, SVGExternalResourcesRequired { addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; } declare var SVGDefsElement: { prototype: SVGDefsElement; new(): SVGDefsElement; } interface SVGDescElement extends SVGElement, SVGStylable, SVGLangSpace { addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; } declare var SVGDescElement: { prototype: SVGDescElement; new(): SVGDescElement; } interface SVGElement extends Element { id: string; className: any; onclick: (ev: MouseEvent) => any; ondblclick: (ev: MouseEvent) => any; onfocusin: (ev: FocusEvent) => any; onfocusout: (ev: FocusEvent) => any; onload: (ev: Event) => any; onmousedown: (ev: MouseEvent) => any; onmousemove: (ev: MouseEvent) => any; onmouseout: (ev: MouseEvent) => any; onmouseover: (ev: MouseEvent) => any; onmouseup: (ev: MouseEvent) => any; ownerSVGElement: SVGSVGElement; viewportElement: SVGElement; xmlbase: string; addEventListener(type: "MSGestureChange", listener: (ev: MSGestureEvent) => any, useCapture?: boolean): void; addEventListener(type: "MSGestureDoubleTap", listener: (ev: MSGestureEvent) => any, useCapture?: boolean): void; addEventListener(type: "MSGestureEnd", listener: (ev: MSGestureEvent) => any, useCapture?: boolean): void; addEventListener(type: "MSGestureHold", listener: (ev: MSGestureEvent) => any, useCapture?: boolean): void; addEventListener(type: "MSGestureStart", listener: (ev: MSGestureEvent) => any, useCapture?: boolean): void; addEventListener(type: "MSGestureTap", listener: (ev: MSGestureEvent) => any, useCapture?: boolean): void; addEventListener(type: "MSGotPointerCapture", listener: (ev: MSPointerEvent) => any, useCapture?: boolean): void; addEventListener(type: "MSInertiaStart", listener: (ev: MSGestureEvent) => any, useCapture?: boolean): void; addEventListener(type: "MSLostPointerCapture", listener: (ev: MSPointerEvent) => any, useCapture?: boolean): void; addEventListener(type: "MSPointerCancel", listener: (ev: MSPointerEvent) => any, useCapture?: boolean): void; addEventListener(type: "MSPointerDown", listener: (ev: MSPointerEvent) => any, useCapture?: boolean): void; addEventListener(type: "MSPointerEnter", listener: (ev: MSPointerEvent) => any, useCapture?: boolean): void; addEventListener(type: "MSPointerLeave", listener: (ev: MSPointerEvent) => any, useCapture?: boolean): void; addEventListener(type: "MSPointerMove", listener: (ev: MSPointerEvent) => any, useCapture?: boolean): void; addEventListener(type: "MSPointerOut", listener: (ev: MSPointerEvent) => any, useCapture?: boolean): void; addEventListener(type: "MSPointerOver", listener: (ev: MSPointerEvent) => any, useCapture?: boolean): void; addEventListener(type: "MSPointerUp", listener: (ev: MSPointerEvent) => any, useCapture?: boolean): void; addEventListener(type: "ariarequest", listener: (ev: AriaRequestEvent) => any, useCapture?: boolean): void; addEventListener(type: "click", listener: (ev: MouseEvent) => any, useCapture?: boolean): void; addEventListener(type: "command", listener: (ev: CommandEvent) => any, useCapture?: boolean): void; addEventListener(type: "dblclick", listener: (ev: MouseEvent) => any, useCapture?: boolean): void; addEventListener(type: "focusin", listener: (ev: FocusEvent) => any, useCapture?: boolean): void; addEventListener(type: "focusout", listener: (ev: FocusEvent) => any, useCapture?: boolean): void; addEventListener(type: "gotpointercapture", listener: (ev: PointerEvent) => any, useCapture?: boolean): void; addEventListener(type: "load", listener: (ev: Event) => any, useCapture?: boolean): void; addEventListener(type: "lostpointercapture", listener: (ev: PointerEvent) => any, useCapture?: boolean): void; addEventListener(type: "mousedown", listener: (ev: MouseEvent) => any, useCapture?: boolean): void; addEventListener(type: "mousemove", listener: (ev: MouseEvent) => any, useCapture?: boolean): void; addEventListener(type: "mouseout", listener: (ev: MouseEvent) => any, useCapture?: boolean): void; addEventListener(type: "mouseover", listener: (ev: MouseEvent) => any, useCapture?: boolean): void; addEventListener(type: "mouseup", listener: (ev: MouseEvent) => any, useCapture?: boolean): void; addEventListener(type: "pointercancel", listener: (ev: PointerEvent) => any, useCapture?: boolean): void; addEventListener(type: "pointerdown", listener: (ev: PointerEvent) => any, useCapture?: boolean): void; addEventListener(type: "pointerenter", listener: (ev: PointerEvent) => any, useCapture?: boolean): void; addEventListener(type: "pointerleave", listener: (ev: PointerEvent) => any, useCapture?: boolean): void; addEventListener(type: "pointermove", listener: (ev: PointerEvent) => any, useCapture?: boolean): void; addEventListener(type: "pointerout", listener: (ev: PointerEvent) => any, useCapture?: boolean): void; addEventListener(type: "pointerover", listener: (ev: PointerEvent) => any, useCapture?: boolean): void; addEventListener(type: "pointerup", listener: (ev: PointerEvent) => any, useCapture?: boolean): void; addEventListener(type: "touchcancel", listener: (ev: TouchEvent) => any, useCapture?: boolean): void; addEventListener(type: "touchend", listener: (ev: TouchEvent) => any, useCapture?: boolean): void; addEventListener(type: "touchmove", listener: (ev: TouchEvent) => any, useCapture?: boolean): void; addEventListener(type: "touchstart", listener: (ev: TouchEvent) => any, useCapture?: boolean): void; addEventListener(type: "webkitfullscreenchange", listener: (ev: Event) => any, useCapture?: boolean): void; addEventListener(type: "webkitfullscreenerror", listener: (ev: Event) => any, useCapture?: boolean): void; addEventListener(type: "wheel", listener: (ev: WheelEvent) => any, useCapture?: boolean): void; addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; } declare var SVGElement: { prototype: SVGElement; new(): SVGElement; } interface SVGElementInstance extends EventTarget { childNodes: SVGElementInstanceList; correspondingElement: SVGElement; correspondingUseElement: SVGUseElement; firstChild: SVGElementInstance; lastChild: SVGElementInstance; nextSibling: SVGElementInstance; parentNode: SVGElementInstance; previousSibling: SVGElementInstance; } declare var SVGElementInstance: { prototype: SVGElementInstance; new(): SVGElementInstance; } interface SVGElementInstanceList { length: number; item(index: number): SVGElementInstance; } declare var SVGElementInstanceList: { prototype: SVGElementInstanceList; new(): SVGElementInstanceList; } interface SVGEllipseElement extends SVGElement, SVGStylable, SVGTransformable, SVGTests, SVGLangSpace, SVGExternalResourcesRequired { cx: SVGAnimatedLength; cy: SVGAnimatedLength; rx: SVGAnimatedLength; ry: SVGAnimatedLength; addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; } declare var SVGEllipseElement: { prototype: SVGEllipseElement; new(): SVGEllipseElement; } interface SVGFEBlendElement extends SVGElement, SVGFilterPrimitiveStandardAttributes { in1: SVGAnimatedString; in2: SVGAnimatedString; mode: SVGAnimatedEnumeration; SVG_FEBLEND_MODE_COLOR: number; SVG_FEBLEND_MODE_COLOR_BURN: number; SVG_FEBLEND_MODE_COLOR_DODGE: number; SVG_FEBLEND_MODE_DARKEN: number; SVG_FEBLEND_MODE_DIFFERENCE: number; SVG_FEBLEND_MODE_EXCLUSION: number; SVG_FEBLEND_MODE_HARD_LIGHT: number; SVG_FEBLEND_MODE_HUE: number; SVG_FEBLEND_MODE_LIGHTEN: number; SVG_FEBLEND_MODE_LUMINOSITY: number; SVG_FEBLEND_MODE_MULTIPLY: number; SVG_FEBLEND_MODE_NORMAL: number; SVG_FEBLEND_MODE_OVERLAY: number; SVG_FEBLEND_MODE_SATURATION: number; SVG_FEBLEND_MODE_SCREEN: number; SVG_FEBLEND_MODE_SOFT_LIGHT: number; SVG_FEBLEND_MODE_UNKNOWN: number; addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; } declare var SVGFEBlendElement: { prototype: SVGFEBlendElement; new(): SVGFEBlendElement; SVG_FEBLEND_MODE_COLOR: number; SVG_FEBLEND_MODE_COLOR_BURN: number; SVG_FEBLEND_MODE_COLOR_DODGE: number; SVG_FEBLEND_MODE_DARKEN: number; SVG_FEBLEND_MODE_DIFFERENCE: number; SVG_FEBLEND_MODE_EXCLUSION: number; SVG_FEBLEND_MODE_HARD_LIGHT: number; SVG_FEBLEND_MODE_HUE: number; SVG_FEBLEND_MODE_LIGHTEN: number; SVG_FEBLEND_MODE_LUMINOSITY: number; SVG_FEBLEND_MODE_MULTIPLY: number; SVG_FEBLEND_MODE_NORMAL: number; SVG_FEBLEND_MODE_OVERLAY: number; SVG_FEBLEND_MODE_SATURATION: number; SVG_FEBLEND_MODE_SCREEN: number; SVG_FEBLEND_MODE_SOFT_LIGHT: number; SVG_FEBLEND_MODE_UNKNOWN: number; } interface SVGFEColorMatrixElement extends SVGElement, SVGFilterPrimitiveStandardAttributes { in1: SVGAnimatedString; type: SVGAnimatedEnumeration; values: SVGAnimatedNumberList; SVG_FECOLORMATRIX_TYPE_HUEROTATE: number; SVG_FECOLORMATRIX_TYPE_LUMINANCETOALPHA: number; SVG_FECOLORMATRIX_TYPE_MATRIX: number; SVG_FECOLORMATRIX_TYPE_SATURATE: number; SVG_FECOLORMATRIX_TYPE_UNKNOWN: number; addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; } declare var SVGFEColorMatrixElement: { prototype: SVGFEColorMatrixElement; new(): SVGFEColorMatrixElement; SVG_FECOLORMATRIX_TYPE_HUEROTATE: number; SVG_FECOLORMATRIX_TYPE_LUMINANCETOALPHA: number; SVG_FECOLORMATRIX_TYPE_MATRIX: number; SVG_FECOLORMATRIX_TYPE_SATURATE: number; SVG_FECOLORMATRIX_TYPE_UNKNOWN: number; } interface SVGFEComponentTransferElement extends SVGElement, SVGFilterPrimitiveStandardAttributes { in1: SVGAnimatedString; addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; } declare var SVGFEComponentTransferElement: { prototype: SVGFEComponentTransferElement; new(): SVGFEComponentTransferElement; } interface SVGFECompositeElement extends SVGElement, SVGFilterPrimitiveStandardAttributes { in1: SVGAnimatedString; in2: SVGAnimatedString; k1: SVGAnimatedNumber; k2: SVGAnimatedNumber; k3: SVGAnimatedNumber; k4: SVGAnimatedNumber; operator: SVGAnimatedEnumeration; SVG_FECOMPOSITE_OPERATOR_ARITHMETIC: number; SVG_FECOMPOSITE_OPERATOR_ATOP: number; SVG_FECOMPOSITE_OPERATOR_IN: number; SVG_FECOMPOSITE_OPERATOR_OUT: number; SVG_FECOMPOSITE_OPERATOR_OVER: number; SVG_FECOMPOSITE_OPERATOR_UNKNOWN: number; SVG_FECOMPOSITE_OPERATOR_XOR: number; addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; } declare var SVGFECompositeElement: { prototype: SVGFECompositeElement; new(): SVGFECompositeElement; SVG_FECOMPOSITE_OPERATOR_ARITHMETIC: number; SVG_FECOMPOSITE_OPERATOR_ATOP: number; SVG_FECOMPOSITE_OPERATOR_IN: number; SVG_FECOMPOSITE_OPERATOR_OUT: number; SVG_FECOMPOSITE_OPERATOR_OVER: number; SVG_FECOMPOSITE_OPERATOR_UNKNOWN: number; SVG_FECOMPOSITE_OPERATOR_XOR: number; } interface SVGFEConvolveMatrixElement extends SVGElement, SVGFilterPrimitiveStandardAttributes { bias: SVGAnimatedNumber; divisor: SVGAnimatedNumber; edgeMode: SVGAnimatedEnumeration; in1: SVGAnimatedString; kernelMatrix: SVGAnimatedNumberList; kernelUnitLengthX: SVGAnimatedNumber; kernelUnitLengthY: SVGAnimatedNumber; orderX: SVGAnimatedInteger; orderY: SVGAnimatedInteger; preserveAlpha: SVGAnimatedBoolean; targetX: SVGAnimatedInteger; targetY: SVGAnimatedInteger; SVG_EDGEMODE_DUPLICATE: number; SVG_EDGEMODE_NONE: number; SVG_EDGEMODE_UNKNOWN: number; SVG_EDGEMODE_WRAP: number; addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; } declare var SVGFEConvolveMatrixElement: { prototype: SVGFEConvolveMatrixElement; new(): SVGFEConvolveMatrixElement; SVG_EDGEMODE_DUPLICATE: number; SVG_EDGEMODE_NONE: number; SVG_EDGEMODE_UNKNOWN: number; SVG_EDGEMODE_WRAP: number; } interface SVGFEDiffuseLightingElement extends SVGElement, SVGFilterPrimitiveStandardAttributes { diffuseConstant: SVGAnimatedNumber; in1: SVGAnimatedString; kernelUnitLengthX: SVGAnimatedNumber; kernelUnitLengthY: SVGAnimatedNumber; surfaceScale: SVGAnimatedNumber; addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; } declare var SVGFEDiffuseLightingElement: { prototype: SVGFEDiffuseLightingElement; new(): SVGFEDiffuseLightingElement; } interface SVGFEDisplacementMapElement extends SVGElement, SVGFilterPrimitiveStandardAttributes { in1: SVGAnimatedString; in2: SVGAnimatedString; scale: SVGAnimatedNumber; xChannelSelector: SVGAnimatedEnumeration; yChannelSelector: SVGAnimatedEnumeration; SVG_CHANNEL_A: number; SVG_CHANNEL_B: number; SVG_CHANNEL_G: number; SVG_CHANNEL_R: number; SVG_CHANNEL_UNKNOWN: number; addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; } declare var SVGFEDisplacementMapElement: { prototype: SVGFEDisplacementMapElement; new(): SVGFEDisplacementMapElement; SVG_CHANNEL_A: number; SVG_CHANNEL_B: number; SVG_CHANNEL_G: number; SVG_CHANNEL_R: number; SVG_CHANNEL_UNKNOWN: number; } interface SVGFEDistantLightElement extends SVGElement { azimuth: SVGAnimatedNumber; elevation: SVGAnimatedNumber; } declare var SVGFEDistantLightElement: { prototype: SVGFEDistantLightElement; new(): SVGFEDistantLightElement; } interface SVGFEFloodElement extends SVGElement, SVGFilterPrimitiveStandardAttributes { addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; } declare var SVGFEFloodElement: { prototype: SVGFEFloodElement; new(): SVGFEFloodElement; } interface SVGFEFuncAElement extends SVGComponentTransferFunctionElement { } declare var SVGFEFuncAElement: { prototype: SVGFEFuncAElement; new(): SVGFEFuncAElement; } interface SVGFEFuncBElement extends SVGComponentTransferFunctionElement { } declare var SVGFEFuncBElement: { prototype: SVGFEFuncBElement; new(): SVGFEFuncBElement; } interface SVGFEFuncGElement extends SVGComponentTransferFunctionElement { } declare var SVGFEFuncGElement: { prototype: SVGFEFuncGElement; new(): SVGFEFuncGElement; } interface SVGFEFuncRElement extends SVGComponentTransferFunctionElement { } declare var SVGFEFuncRElement: { prototype: SVGFEFuncRElement; new(): SVGFEFuncRElement; } interface SVGFEGaussianBlurElement extends SVGElement, SVGFilterPrimitiveStandardAttributes { in1: SVGAnimatedString; stdDeviationX: SVGAnimatedNumber; stdDeviationY: SVGAnimatedNumber; setStdDeviation(stdDeviationX: number, stdDeviationY: number): void; addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; } declare var SVGFEGaussianBlurElement: { prototype: SVGFEGaussianBlurElement; new(): SVGFEGaussianBlurElement; } interface SVGFEImageElement extends SVGElement, SVGFilterPrimitiveStandardAttributes, SVGLangSpace, SVGURIReference, SVGExternalResourcesRequired { preserveAspectRatio: SVGAnimatedPreserveAspectRatio; addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; } declare var SVGFEImageElement: { prototype: SVGFEImageElement; new(): SVGFEImageElement; } interface SVGFEMergeElement extends SVGElement, SVGFilterPrimitiveStandardAttributes { addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; } declare var SVGFEMergeElement: { prototype: SVGFEMergeElement; new(): SVGFEMergeElement; } interface SVGFEMergeNodeElement extends SVGElement { in1: SVGAnimatedString; } declare var SVGFEMergeNodeElement: { prototype: SVGFEMergeNodeElement; new(): SVGFEMergeNodeElement; } interface SVGFEMorphologyElement extends SVGElement, SVGFilterPrimitiveStandardAttributes { in1: SVGAnimatedString; operator: SVGAnimatedEnumeration; radiusX: SVGAnimatedNumber; radiusY: SVGAnimatedNumber; SVG_MORPHOLOGY_OPERATOR_DILATE: number; SVG_MORPHOLOGY_OPERATOR_ERODE: number; SVG_MORPHOLOGY_OPERATOR_UNKNOWN: number; addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; } declare var SVGFEMorphologyElement: { prototype: SVGFEMorphologyElement; new(): SVGFEMorphologyElement; SVG_MORPHOLOGY_OPERATOR_DILATE: number; SVG_MORPHOLOGY_OPERATOR_ERODE: number; SVG_MORPHOLOGY_OPERATOR_UNKNOWN: number; } interface SVGFEOffsetElement extends SVGElement, SVGFilterPrimitiveStandardAttributes { dx: SVGAnimatedNumber; dy: SVGAnimatedNumber; in1: SVGAnimatedString; addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; } declare var SVGFEOffsetElement: { prototype: SVGFEOffsetElement; new(): SVGFEOffsetElement; } interface SVGFEPointLightElement extends SVGElement { x: SVGAnimatedNumber; y: SVGAnimatedNumber; z: SVGAnimatedNumber; } declare var SVGFEPointLightElement: { prototype: SVGFEPointLightElement; new(): SVGFEPointLightElement; } interface SVGFESpecularLightingElement extends SVGElement, SVGFilterPrimitiveStandardAttributes { in1: SVGAnimatedString; kernelUnitLengthX: SVGAnimatedNumber; kernelUnitLengthY: SVGAnimatedNumber; specularConstant: SVGAnimatedNumber; specularExponent: SVGAnimatedNumber; surfaceScale: SVGAnimatedNumber; addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; } declare var SVGFESpecularLightingElement: { prototype: SVGFESpecularLightingElement; new(): SVGFESpecularLightingElement; } interface SVGFESpotLightElement extends SVGElement { limitingConeAngle: SVGAnimatedNumber; pointsAtX: SVGAnimatedNumber; pointsAtY: SVGAnimatedNumber; pointsAtZ: SVGAnimatedNumber; specularExponent: SVGAnimatedNumber; x: SVGAnimatedNumber; y: SVGAnimatedNumber; z: SVGAnimatedNumber; } declare var SVGFESpotLightElement: { prototype: SVGFESpotLightElement; new(): SVGFESpotLightElement; } interface SVGFETileElement extends SVGElement, SVGFilterPrimitiveStandardAttributes { in1: SVGAnimatedString; addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; } declare var SVGFETileElement: { prototype: SVGFETileElement; new(): SVGFETileElement; } interface SVGFETurbulenceElement extends SVGElement, SVGFilterPrimitiveStandardAttributes { baseFrequencyX: SVGAnimatedNumber; baseFrequencyY: SVGAnimatedNumber; numOctaves: SVGAnimatedInteger; seed: SVGAnimatedNumber; stitchTiles: SVGAnimatedEnumeration; type: SVGAnimatedEnumeration; SVG_STITCHTYPE_NOSTITCH: number; SVG_STITCHTYPE_STITCH: number; SVG_STITCHTYPE_UNKNOWN: number; SVG_TURBULENCE_TYPE_FRACTALNOISE: number; SVG_TURBULENCE_TYPE_TURBULENCE: number; SVG_TURBULENCE_TYPE_UNKNOWN: number; addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; } declare var SVGFETurbulenceElement: { prototype: SVGFETurbulenceElement; new(): SVGFETurbulenceElement; SVG_STITCHTYPE_NOSTITCH: number; SVG_STITCHTYPE_STITCH: number; SVG_STITCHTYPE_UNKNOWN: number; SVG_TURBULENCE_TYPE_FRACTALNOISE: number; SVG_TURBULENCE_TYPE_TURBULENCE: number; SVG_TURBULENCE_TYPE_UNKNOWN: number; } interface SVGFilterElement extends SVGElement, SVGUnitTypes, SVGStylable, SVGLangSpace, SVGURIReference, SVGExternalResourcesRequired { filterResX: SVGAnimatedInteger; filterResY: SVGAnimatedInteger; filterUnits: SVGAnimatedEnumeration; height: SVGAnimatedLength; primitiveUnits: SVGAnimatedEnumeration; width: SVGAnimatedLength; x: SVGAnimatedLength; y: SVGAnimatedLength; setFilterRes(filterResX: number, filterResY: number): void; addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; } declare var SVGFilterElement: { prototype: SVGFilterElement; new(): SVGFilterElement; } interface SVGForeignObjectElement extends SVGElement, SVGStylable, SVGTransformable, SVGTests, SVGLangSpace, SVGExternalResourcesRequired { height: SVGAnimatedLength; width: SVGAnimatedLength; x: SVGAnimatedLength; y: SVGAnimatedLength; addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; } declare var SVGForeignObjectElement: { prototype: SVGForeignObjectElement; new(): SVGForeignObjectElement; } interface SVGGElement extends SVGElement, SVGStylable, SVGTransformable, SVGTests, SVGLangSpace, SVGExternalResourcesRequired { addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; } declare var SVGGElement: { prototype: SVGGElement; new(): SVGGElement; } interface SVGGradientElement extends SVGElement, SVGStylable, SVGExternalResourcesRequired, SVGURIReference, SVGUnitTypes { gradientTransform: SVGAnimatedTransformList; gradientUnits: SVGAnimatedEnumeration; spreadMethod: SVGAnimatedEnumeration; SVG_SPREADMETHOD_PAD: number; SVG_SPREADMETHOD_REFLECT: number; SVG_SPREADMETHOD_REPEAT: number; SVG_SPREADMETHOD_UNKNOWN: number; addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; } declare var SVGGradientElement: { prototype: SVGGradientElement; new(): SVGGradientElement; SVG_SPREADMETHOD_PAD: number; SVG_SPREADMETHOD_REFLECT: number; SVG_SPREADMETHOD_REPEAT: number; SVG_SPREADMETHOD_UNKNOWN: number; } interface SVGImageElement extends SVGElement, SVGStylable, SVGTransformable, SVGTests, SVGLangSpace, SVGExternalResourcesRequired, SVGURIReference { height: SVGAnimatedLength; preserveAspectRatio: SVGAnimatedPreserveAspectRatio; width: SVGAnimatedLength; x: SVGAnimatedLength; y: SVGAnimatedLength; addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; } declare var SVGImageElement: { prototype: SVGImageElement; new(): SVGImageElement; } interface SVGLength { unitType: number; value: number; valueAsString: string; valueInSpecifiedUnits: number; convertToSpecifiedUnits(unitType: number): void; newValueSpecifiedUnits(unitType: number, valueInSpecifiedUnits: number): void; SVG_LENGTHTYPE_CM: number; SVG_LENGTHTYPE_EMS: number; SVG_LENGTHTYPE_EXS: number; SVG_LENGTHTYPE_IN: number; SVG_LENGTHTYPE_MM: number; SVG_LENGTHTYPE_NUMBER: number; SVG_LENGTHTYPE_PC: number; SVG_LENGTHTYPE_PERCENTAGE: number; SVG_LENGTHTYPE_PT: number; SVG_LENGTHTYPE_PX: number; SVG_LENGTHTYPE_UNKNOWN: number; } declare var SVGLength: { prototype: SVGLength; new(): SVGLength; SVG_LENGTHTYPE_CM: number; SVG_LENGTHTYPE_EMS: number; SVG_LENGTHTYPE_EXS: number; SVG_LENGTHTYPE_IN: number; SVG_LENGTHTYPE_MM: number; SVG_LENGTHTYPE_NUMBER: number; SVG_LENGTHTYPE_PC: number; SVG_LENGTHTYPE_PERCENTAGE: number; SVG_LENGTHTYPE_PT: number; SVG_LENGTHTYPE_PX: number; SVG_LENGTHTYPE_UNKNOWN: number; } interface SVGLengthList { numberOfItems: number; appendItem(newItem: SVGLength): SVGLength; clear(): void; getItem(index: number): SVGLength; initialize(newItem: SVGLength): SVGLength; insertItemBefore(newItem: SVGLength, index: number): SVGLength; removeItem(index: number): SVGLength; replaceItem(newItem: SVGLength, index: number): SVGLength; } declare var SVGLengthList: { prototype: SVGLengthList; new(): SVGLengthList; } interface SVGLineElement extends SVGElement, SVGStylable, SVGTransformable, SVGTests, SVGLangSpace, SVGExternalResourcesRequired { x1: SVGAnimatedLength; x2: SVGAnimatedLength; y1: SVGAnimatedLength; y2: SVGAnimatedLength; addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; } declare var SVGLineElement: { prototype: SVGLineElement; new(): SVGLineElement; } interface SVGLinearGradientElement extends SVGGradientElement { x1: SVGAnimatedLength; x2: SVGAnimatedLength; y1: SVGAnimatedLength; y2: SVGAnimatedLength; } declare var SVGLinearGradientElement: { prototype: SVGLinearGradientElement; new(): SVGLinearGradientElement; } interface SVGMarkerElement extends SVGElement, SVGStylable, SVGLangSpace, SVGExternalResourcesRequired, SVGFitToViewBox { markerHeight: SVGAnimatedLength; markerUnits: SVGAnimatedEnumeration; markerWidth: SVGAnimatedLength; orientAngle: SVGAnimatedAngle; orientType: SVGAnimatedEnumeration; refX: SVGAnimatedLength; refY: SVGAnimatedLength; setOrientToAngle(angle: SVGAngle): void; setOrientToAuto(): void; SVG_MARKERUNITS_STROKEWIDTH: number; SVG_MARKERUNITS_UNKNOWN: number; SVG_MARKERUNITS_USERSPACEONUSE: number; SVG_MARKER_ORIENT_ANGLE: number; SVG_MARKER_ORIENT_AUTO: number; SVG_MARKER_ORIENT_UNKNOWN: number; addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; } declare var SVGMarkerElement: { prototype: SVGMarkerElement; new(): SVGMarkerElement; SVG_MARKERUNITS_STROKEWIDTH: number; SVG_MARKERUNITS_UNKNOWN: number; SVG_MARKERUNITS_USERSPACEONUSE: number; SVG_MARKER_ORIENT_ANGLE: number; SVG_MARKER_ORIENT_AUTO: number; SVG_MARKER_ORIENT_UNKNOWN: number; } interface SVGMaskElement extends SVGElement, SVGStylable, SVGTests, SVGLangSpace, SVGExternalResourcesRequired, SVGUnitTypes { height: SVGAnimatedLength; maskContentUnits: SVGAnimatedEnumeration; maskUnits: SVGAnimatedEnumeration; width: SVGAnimatedLength; x: SVGAnimatedLength; y: SVGAnimatedLength; addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; } declare var SVGMaskElement: { prototype: SVGMaskElement; new(): SVGMaskElement; } interface SVGMatrix { a: number; b: number; c: number; d: number; e: number; f: number; flipX(): SVGMatrix; flipY(): SVGMatrix; inverse(): SVGMatrix; multiply(secondMatrix: SVGMatrix): SVGMatrix; rotate(angle: number): SVGMatrix; rotateFromVector(x: number, y: number): SVGMatrix; scale(scaleFactor: number): SVGMatrix; scaleNonUniform(scaleFactorX: number, scaleFactorY: number): SVGMatrix; skewX(angle: number): SVGMatrix; skewY(angle: number): SVGMatrix; translate(x: number, y: number): SVGMatrix; } declare var SVGMatrix: { prototype: SVGMatrix; new(): SVGMatrix; } interface SVGMetadataElement extends SVGElement { } declare var SVGMetadataElement: { prototype: SVGMetadataElement; new(): SVGMetadataElement; } interface SVGNumber { value: number; } declare var SVGNumber: { prototype: SVGNumber; new(): SVGNumber; } interface SVGNumberList { numberOfItems: number; appendItem(newItem: SVGNumber): SVGNumber; clear(): void; getItem(index: number): SVGNumber; initialize(newItem: SVGNumber): SVGNumber; insertItemBefore(newItem: SVGNumber, index: number): SVGNumber; removeItem(index: number): SVGNumber; replaceItem(newItem: SVGNumber, index: number): SVGNumber; } declare var SVGNumberList: { prototype: SVGNumberList; new(): SVGNumberList; } interface SVGPathElement extends SVGElement, SVGStylable, SVGTransformable, SVGTests, SVGLangSpace, SVGExternalResourcesRequired, SVGAnimatedPathData { createSVGPathSegArcAbs(x: number, y: number, r1: number, r2: number, angle: number, largeArcFlag: boolean, sweepFlag: boolean): SVGPathSegArcAbs; createSVGPathSegArcRel(x: number, y: number, r1: number, r2: number, angle: number, largeArcFlag: boolean, sweepFlag: boolean): SVGPathSegArcRel; createSVGPathSegClosePath(): SVGPathSegClosePath; createSVGPathSegCurvetoCubicAbs(x: number, y: number, x1: number, y1: number, x2: number, y2: number): SVGPathSegCurvetoCubicAbs; createSVGPathSegCurvetoCubicRel(x: number, y: number, x1: number, y1: number, x2: number, y2: number): SVGPathSegCurvetoCubicRel; createSVGPathSegCurvetoCubicSmoothAbs(x: number, y: number, x2: number, y2: number): SVGPathSegCurvetoCubicSmoothAbs; createSVGPathSegCurvetoCubicSmoothRel(x: number, y: number, x2: number, y2: number): SVGPathSegCurvetoCubicSmoothRel; createSVGPathSegCurvetoQuadraticAbs(x: number, y: number, x1: number, y1: number): SVGPathSegCurvetoQuadraticAbs; createSVGPathSegCurvetoQuadraticRel(x: number, y: number, x1: number, y1: number): SVGPathSegCurvetoQuadraticRel; createSVGPathSegCurvetoQuadraticSmoothAbs(x: number, y: number): SVGPathSegCurvetoQuadraticSmoothAbs; createSVGPathSegCurvetoQuadraticSmoothRel(x: number, y: number): SVGPathSegCurvetoQuadraticSmoothRel; createSVGPathSegLinetoAbs(x: number, y: number): SVGPathSegLinetoAbs; createSVGPathSegLinetoHorizontalAbs(x: number): SVGPathSegLinetoHorizontalAbs; createSVGPathSegLinetoHorizontalRel(x: number): SVGPathSegLinetoHorizontalRel; createSVGPathSegLinetoRel(x: number, y: number): SVGPathSegLinetoRel; createSVGPathSegLinetoVerticalAbs(y: number): SVGPathSegLinetoVerticalAbs; createSVGPathSegLinetoVerticalRel(y: number): SVGPathSegLinetoVerticalRel; createSVGPathSegMovetoAbs(x: number, y: number): SVGPathSegMovetoAbs; createSVGPathSegMovetoRel(x: number, y: number): SVGPathSegMovetoRel; getPathSegAtLength(distance: number): number; getPointAtLength(distance: number): SVGPoint; getTotalLength(): number; addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; } declare var SVGPathElement: { prototype: SVGPathElement; new(): SVGPathElement; } interface SVGPathSeg { pathSegType: number; pathSegTypeAsLetter: string; PATHSEG_ARC_ABS: number; PATHSEG_ARC_REL: number; PATHSEG_CLOSEPATH: number; PATHSEG_CURVETO_CUBIC_ABS: number; PATHSEG_CURVETO_CUBIC_REL: number; PATHSEG_CURVETO_CUBIC_SMOOTH_ABS: number; PATHSEG_CURVETO_CUBIC_SMOOTH_REL: number; PATHSEG_CURVETO_QUADRATIC_ABS: number; PATHSEG_CURVETO_QUADRATIC_REL: number; PATHSEG_CURVETO_QUADRATIC_SMOOTH_ABS: number; PATHSEG_CURVETO_QUADRATIC_SMOOTH_REL: number; PATHSEG_LINETO_ABS: number; PATHSEG_LINETO_HORIZONTAL_ABS: number; PATHSEG_LINETO_HORIZONTAL_REL: number; PATHSEG_LINETO_REL: number; PATHSEG_LINETO_VERTICAL_ABS: number; PATHSEG_LINETO_VERTICAL_REL: number; PATHSEG_MOVETO_ABS: number; PATHSEG_MOVETO_REL: number; PATHSEG_UNKNOWN: number; } declare var SVGPathSeg: { prototype: SVGPathSeg; new(): SVGPathSeg; PATHSEG_ARC_ABS: number; PATHSEG_ARC_REL: number; PATHSEG_CLOSEPATH: number; PATHSEG_CURVETO_CUBIC_ABS: number; PATHSEG_CURVETO_CUBIC_REL: number; PATHSEG_CURVETO_CUBIC_SMOOTH_ABS: number; PATHSEG_CURVETO_CUBIC_SMOOTH_REL: number; PATHSEG_CURVETO_QUADRATIC_ABS: number; PATHSEG_CURVETO_QUADRATIC_REL: number; PATHSEG_CURVETO_QUADRATIC_SMOOTH_ABS: number; PATHSEG_CURVETO_QUADRATIC_SMOOTH_REL: number; PATHSEG_LINETO_ABS: number; PATHSEG_LINETO_HORIZONTAL_ABS: number; PATHSEG_LINETO_HORIZONTAL_REL: number; PATHSEG_LINETO_REL: number; PATHSEG_LINETO_VERTICAL_ABS: number; PATHSEG_LINETO_VERTICAL_REL: number; PATHSEG_MOVETO_ABS: number; PATHSEG_MOVETO_REL: number; PATHSEG_UNKNOWN: number; } interface SVGPathSegArcAbs extends SVGPathSeg { angle: number; largeArcFlag: boolean; r1: number; r2: number; sweepFlag: boolean; x: number; y: number; } declare var SVGPathSegArcAbs: { prototype: SVGPathSegArcAbs; new(): SVGPathSegArcAbs; } interface SVGPathSegArcRel extends SVGPathSeg { angle: number; largeArcFlag: boolean; r1: number; r2: number; sweepFlag: boolean; x: number; y: number; } declare var SVGPathSegArcRel: { prototype: SVGPathSegArcRel; new(): SVGPathSegArcRel; } interface SVGPathSegClosePath extends SVGPathSeg { } declare var SVGPathSegClosePath: { prototype: SVGPathSegClosePath; new(): SVGPathSegClosePath; } interface SVGPathSegCurvetoCubicAbs extends SVGPathSeg { x: number; x1: number; x2: number; y: number; y1: number; y2: number; } declare var SVGPathSegCurvetoCubicAbs: { prototype: SVGPathSegCurvetoCubicAbs; new(): SVGPathSegCurvetoCubicAbs; } interface SVGPathSegCurvetoCubicRel extends SVGPathSeg { x: number; x1: number; x2: number; y: number; y1: number; y2: number; } declare var SVGPathSegCurvetoCubicRel: { prototype: SVGPathSegCurvetoCubicRel; new(): SVGPathSegCurvetoCubicRel; } interface SVGPathSegCurvetoCubicSmoothAbs extends SVGPathSeg { x: number; x2: number; y: number; y2: number; } declare var SVGPathSegCurvetoCubicSmoothAbs: { prototype: SVGPathSegCurvetoCubicSmoothAbs; new(): SVGPathSegCurvetoCubicSmoothAbs; } interface SVGPathSegCurvetoCubicSmoothRel extends SVGPathSeg { x: number; x2: number; y: number; y2: number; } declare var SVGPathSegCurvetoCubicSmoothRel: { prototype: SVGPathSegCurvetoCubicSmoothRel; new(): SVGPathSegCurvetoCubicSmoothRel; } interface SVGPathSegCurvetoQuadraticAbs extends SVGPathSeg { x: number; x1: number; y: number; y1: number; } declare var SVGPathSegCurvetoQuadraticAbs: { prototype: SVGPathSegCurvetoQuadraticAbs; new(): SVGPathSegCurvetoQuadraticAbs; } interface SVGPathSegCurvetoQuadraticRel extends SVGPathSeg { x: number; x1: number; y: number; y1: number; } declare var SVGPathSegCurvetoQuadraticRel: { prototype: SVGPathSegCurvetoQuadraticRel; new(): SVGPathSegCurvetoQuadraticRel; } interface SVGPathSegCurvetoQuadraticSmoothAbs extends SVGPathSeg { x: number; y: number; } declare var SVGPathSegCurvetoQuadraticSmoothAbs: { prototype: SVGPathSegCurvetoQuadraticSmoothAbs; new(): SVGPathSegCurvetoQuadraticSmoothAbs; } interface SVGPathSegCurvetoQuadraticSmoothRel extends SVGPathSeg { x: number; y: number; } declare var SVGPathSegCurvetoQuadraticSmoothRel: { prototype: SVGPathSegCurvetoQuadraticSmoothRel; new(): SVGPathSegCurvetoQuadraticSmoothRel; } interface SVGPathSegLinetoAbs extends SVGPathSeg { x: number; y: number; } declare var SVGPathSegLinetoAbs: { prototype: SVGPathSegLinetoAbs; new(): SVGPathSegLinetoAbs; } interface SVGPathSegLinetoHorizontalAbs extends SVGPathSeg { x: number; } declare var SVGPathSegLinetoHorizontalAbs: { prototype: SVGPathSegLinetoHorizontalAbs; new(): SVGPathSegLinetoHorizontalAbs; } interface SVGPathSegLinetoHorizontalRel extends SVGPathSeg { x: number; } declare var SVGPathSegLinetoHorizontalRel: { prototype: SVGPathSegLinetoHorizontalRel; new(): SVGPathSegLinetoHorizontalRel; } interface SVGPathSegLinetoRel extends SVGPathSeg { x: number; y: number; } declare var SVGPathSegLinetoRel: { prototype: SVGPathSegLinetoRel; new(): SVGPathSegLinetoRel; } interface SVGPathSegLinetoVerticalAbs extends SVGPathSeg { y: number; } declare var SVGPathSegLinetoVerticalAbs: { prototype: SVGPathSegLinetoVerticalAbs; new(): SVGPathSegLinetoVerticalAbs; } interface SVGPathSegLinetoVerticalRel extends SVGPathSeg { y: number; } declare var SVGPathSegLinetoVerticalRel: { prototype: SVGPathSegLinetoVerticalRel; new(): SVGPathSegLinetoVerticalRel; } interface SVGPathSegList { numberOfItems: number; appendItem(newItem: SVGPathSeg): SVGPathSeg; clear(): void; getItem(index: number): SVGPathSeg; initialize(newItem: SVGPathSeg): SVGPathSeg; insertItemBefore(newItem: SVGPathSeg, index: number): SVGPathSeg; removeItem(index: number): SVGPathSeg; replaceItem(newItem: SVGPathSeg, index: number): SVGPathSeg; } declare var SVGPathSegList: { prototype: SVGPathSegList; new(): SVGPathSegList; } interface SVGPathSegMovetoAbs extends SVGPathSeg { x: number; y: number; } declare var SVGPathSegMovetoAbs: { prototype: SVGPathSegMovetoAbs; new(): SVGPathSegMovetoAbs; } interface SVGPathSegMovetoRel extends SVGPathSeg { x: number; y: number; } declare var SVGPathSegMovetoRel: { prototype: SVGPathSegMovetoRel; new(): SVGPathSegMovetoRel; } interface SVGPatternElement extends SVGElement, SVGStylable, SVGTests, SVGLangSpace, SVGExternalResourcesRequired, SVGFitToViewBox, SVGURIReference, SVGUnitTypes { height: SVGAnimatedLength; patternContentUnits: SVGAnimatedEnumeration; patternTransform: SVGAnimatedTransformList; patternUnits: SVGAnimatedEnumeration; width: SVGAnimatedLength; x: SVGAnimatedLength; y: SVGAnimatedLength; addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; } declare var SVGPatternElement: { prototype: SVGPatternElement; new(): SVGPatternElement; } interface SVGPoint { x: number; y: number; matrixTransform(matrix: SVGMatrix): SVGPoint; } declare var SVGPoint: { prototype: SVGPoint; new(): SVGPoint; } interface SVGPointList { numberOfItems: number; appendItem(newItem: SVGPoint): SVGPoint; clear(): void; getItem(index: number): SVGPoint; initialize(newItem: SVGPoint): SVGPoint; insertItemBefore(newItem: SVGPoint, index: number): SVGPoint; removeItem(index: number): SVGPoint; replaceItem(newItem: SVGPoint, index: number): SVGPoint; } declare var SVGPointList: { prototype: SVGPointList; new(): SVGPointList; } interface SVGPolygonElement extends SVGElement, SVGStylable, SVGTransformable, SVGTests, SVGLangSpace, SVGExternalResourcesRequired, SVGAnimatedPoints { addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; } declare var SVGPolygonElement: { prototype: SVGPolygonElement; new(): SVGPolygonElement; } interface SVGPolylineElement extends SVGElement, SVGStylable, SVGTransformable, SVGTests, SVGLangSpace, SVGExternalResourcesRequired, SVGAnimatedPoints { addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; } declare var SVGPolylineElement: { prototype: SVGPolylineElement; new(): SVGPolylineElement; } interface SVGPreserveAspectRatio { align: number; meetOrSlice: number; SVG_MEETORSLICE_MEET: number; SVG_MEETORSLICE_SLICE: number; SVG_MEETORSLICE_UNKNOWN: number; SVG_PRESERVEASPECTRATIO_NONE: number; SVG_PRESERVEASPECTRATIO_UNKNOWN: number; SVG_PRESERVEASPECTRATIO_XMAXYMAX: number; SVG_PRESERVEASPECTRATIO_XMAXYMID: number; SVG_PRESERVEASPECTRATIO_XMAXYMIN: number; SVG_PRESERVEASPECTRATIO_XMIDYMAX: number; SVG_PRESERVEASPECTRATIO_XMIDYMID: number; SVG_PRESERVEASPECTRATIO_XMIDYMIN: number; SVG_PRESERVEASPECTRATIO_XMINYMAX: number; SVG_PRESERVEASPECTRATIO_XMINYMID: number; SVG_PRESERVEASPECTRATIO_XMINYMIN: number; } declare var SVGPreserveAspectRatio: { prototype: SVGPreserveAspectRatio; new(): SVGPreserveAspectRatio; SVG_MEETORSLICE_MEET: number; SVG_MEETORSLICE_SLICE: number; SVG_MEETORSLICE_UNKNOWN: number; SVG_PRESERVEASPECTRATIO_NONE: number; SVG_PRESERVEASPECTRATIO_UNKNOWN: number; SVG_PRESERVEASPECTRATIO_XMAXYMAX: number; SVG_PRESERVEASPECTRATIO_XMAXYMID: number; SVG_PRESERVEASPECTRATIO_XMAXYMIN: number; SVG_PRESERVEASPECTRATIO_XMIDYMAX: number; SVG_PRESERVEASPECTRATIO_XMIDYMID: number; SVG_PRESERVEASPECTRATIO_XMIDYMIN: number; SVG_PRESERVEASPECTRATIO_XMINYMAX: number; SVG_PRESERVEASPECTRATIO_XMINYMID: number; SVG_PRESERVEASPECTRATIO_XMINYMIN: number; } interface SVGRadialGradientElement extends SVGGradientElement { cx: SVGAnimatedLength; cy: SVGAnimatedLength; fx: SVGAnimatedLength; fy: SVGAnimatedLength; r: SVGAnimatedLength; } declare var SVGRadialGradientElement: { prototype: SVGRadialGradientElement; new(): SVGRadialGradientElement; } interface SVGRect { height: number; width: number; x: number; y: number; } declare var SVGRect: { prototype: SVGRect; new(): SVGRect; } interface SVGRectElement extends SVGElement, SVGStylable, SVGTransformable, SVGTests, SVGLangSpace, SVGExternalResourcesRequired { height: SVGAnimatedLength; rx: SVGAnimatedLength; ry: SVGAnimatedLength; width: SVGAnimatedLength; x: SVGAnimatedLength; y: SVGAnimatedLength; addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; } declare var SVGRectElement: { prototype: SVGRectElement; new(): SVGRectElement; } interface SVGSVGElement extends SVGElement, DocumentEvent, SVGLocatable, SVGTests, SVGStylable, SVGLangSpace, SVGExternalResourcesRequired, SVGFitToViewBox, SVGZoomAndPan { contentScriptType: string; contentStyleType: string; currentScale: number; currentTranslate: SVGPoint; height: SVGAnimatedLength; onabort: (ev: Event) => any; onerror: (ev: Event) => any; onresize: (ev: UIEvent) => any; onscroll: (ev: UIEvent) => any; onunload: (ev: Event) => any; onzoom: (ev: SVGZoomEvent) => any; pixelUnitToMillimeterX: number; pixelUnitToMillimeterY: number; screenPixelToMillimeterX: number; screenPixelToMillimeterY: number; viewport: SVGRect; width: SVGAnimatedLength; x: SVGAnimatedLength; y: SVGAnimatedLength; checkEnclosure(element: SVGElement, rect: SVGRect): boolean; checkIntersection(element: SVGElement, rect: SVGRect): boolean; createSVGAngle(): SVGAngle; createSVGLength(): SVGLength; createSVGMatrix(): SVGMatrix; createSVGNumber(): SVGNumber; createSVGPoint(): SVGPoint; createSVGRect(): SVGRect; createSVGTransform(): SVGTransform; createSVGTransformFromMatrix(matrix: SVGMatrix): SVGTransform; deselectAll(): void; forceRedraw(): void; getComputedStyle(elt: Element, pseudoElt?: string): CSSStyleDeclaration; getCurrentTime(): number; getElementById(elementId: string): Element; getEnclosureList(rect: SVGRect, referenceElement: SVGElement): NodeList; getIntersectionList(rect: SVGRect, referenceElement: SVGElement): NodeList; pauseAnimations(): void; setCurrentTime(seconds: number): void; suspendRedraw(maxWaitMilliseconds: number): number; unpauseAnimations(): void; unsuspendRedraw(suspendHandleID: number): void; unsuspendRedrawAll(): void; addEventListener(type: "MSGestureChange", listener: (ev: MSGestureEvent) => any, useCapture?: boolean): void; addEventListener(type: "MSGestureDoubleTap", listener: (ev: MSGestureEvent) => any, useCapture?: boolean): void; addEventListener(type: "MSGestureEnd", listener: (ev: MSGestureEvent) => any, useCapture?: boolean): void; addEventListener(type: "MSGestureHold", listener: (ev: MSGestureEvent) => any, useCapture?: boolean): void; addEventListener(type: "MSGestureStart", listener: (ev: MSGestureEvent) => any, useCapture?: boolean): void; addEventListener(type: "MSGestureTap", listener: (ev: MSGestureEvent) => any, useCapture?: boolean): void; addEventListener(type: "MSGotPointerCapture", listener: (ev: MSPointerEvent) => any, useCapture?: boolean): void; addEventListener(type: "MSInertiaStart", listener: (ev: MSGestureEvent) => any, useCapture?: boolean): void; addEventListener(type: "MSLostPointerCapture", listener: (ev: MSPointerEvent) => any, useCapture?: boolean): void; addEventListener(type: "MSPointerCancel", listener: (ev: MSPointerEvent) => any, useCapture?: boolean): void; addEventListener(type: "MSPointerDown", listener: (ev: MSPointerEvent) => any, useCapture?: boolean): void; addEventListener(type: "MSPointerEnter", listener: (ev: MSPointerEvent) => any, useCapture?: boolean): void; addEventListener(type: "MSPointerLeave", listener: (ev: MSPointerEvent) => any, useCapture?: boolean): void; addEventListener(type: "MSPointerMove", listener: (ev: MSPointerEvent) => any, useCapture?: boolean): void; addEventListener(type: "MSPointerOut", listener: (ev: MSPointerEvent) => any, useCapture?: boolean): void; addEventListener(type: "MSPointerOver", listener: (ev: MSPointerEvent) => any, useCapture?: boolean): void; addEventListener(type: "MSPointerUp", listener: (ev: MSPointerEvent) => any, useCapture?: boolean): void; addEventListener(type: "SVGAbort", listener: (ev: Event) => any, useCapture?: boolean): void; addEventListener(type: "SVGError", listener: (ev: Event) => any, useCapture?: boolean): void; addEventListener(type: "SVGUnload", listener: (ev: Event) => any, useCapture?: boolean): void; addEventListener(type: "SVGZoom", listener: (ev: SVGZoomEvent) => any, useCapture?: boolean): void; addEventListener(type: "ariarequest", listener: (ev: AriaRequestEvent) => any, useCapture?: boolean): void; addEventListener(type: "click", listener: (ev: MouseEvent) => any, useCapture?: boolean): void; addEventListener(type: "command", listener: (ev: CommandEvent) => any, useCapture?: boolean): void; addEventListener(type: "dblclick", listener: (ev: MouseEvent) => any, useCapture?: boolean): void; addEventListener(type: "focusin", listener: (ev: FocusEvent) => any, useCapture?: boolean): void; addEventListener(type: "focusout", listener: (ev: FocusEvent) => any, useCapture?: boolean): void; addEventListener(type: "gotpointercapture", listener: (ev: PointerEvent) => any, useCapture?: boolean): void; addEventListener(type: "load", listener: (ev: Event) => any, useCapture?: boolean): void; addEventListener(type: "lostpointercapture", listener: (ev: PointerEvent) => any, useCapture?: boolean): void; addEventListener(type: "mousedown", listener: (ev: MouseEvent) => any, useCapture?: boolean): void; addEventListener(type: "mousemove", listener: (ev: MouseEvent) => any, useCapture?: boolean): void; addEventListener(type: "mouseout", listener: (ev: MouseEvent) => any, useCapture?: boolean): void; addEventListener(type: "mouseover", listener: (ev: MouseEvent) => any, useCapture?: boolean): void; addEventListener(type: "mouseup", listener: (ev: MouseEvent) => any, useCapture?: boolean): void; addEventListener(type: "pointercancel", listener: (ev: PointerEvent) => any, useCapture?: boolean): void; addEventListener(type: "pointerdown", listener: (ev: PointerEvent) => any, useCapture?: boolean): void; addEventListener(type: "pointerenter", listener: (ev: PointerEvent) => any, useCapture?: boolean): void; addEventListener(type: "pointerleave", listener: (ev: PointerEvent) => any, useCapture?: boolean): void; addEventListener(type: "pointermove", listener: (ev: PointerEvent) => any, useCapture?: boolean): void; addEventListener(type: "pointerout", listener: (ev: PointerEvent) => any, useCapture?: boolean): void; addEventListener(type: "pointerover", listener: (ev: PointerEvent) => any, useCapture?: boolean): void; addEventListener(type: "pointerup", listener: (ev: PointerEvent) => any, useCapture?: boolean): void; addEventListener(type: "resize", listener: (ev: UIEvent) => any, useCapture?: boolean): void; addEventListener(type: "scroll", listener: (ev: UIEvent) => any, useCapture?: boolean): void; addEventListener(type: "touchcancel", listener: (ev: TouchEvent) => any, useCapture?: boolean): void; addEventListener(type: "touchend", listener: (ev: TouchEvent) => any, useCapture?: boolean): void; addEventListener(type: "touchmove", listener: (ev: TouchEvent) => any, useCapture?: boolean): void; addEventListener(type: "touchstart", listener: (ev: TouchEvent) => any, useCapture?: boolean): void; addEventListener(type: "webkitfullscreenchange", listener: (ev: Event) => any, useCapture?: boolean): void; addEventListener(type: "webkitfullscreenerror", listener: (ev: Event) => any, useCapture?: boolean): void; addEventListener(type: "wheel", listener: (ev: WheelEvent) => any, useCapture?: boolean): void; addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; } declare var SVGSVGElement: { prototype: SVGSVGElement; new(): SVGSVGElement; } interface SVGScriptElement extends SVGElement, SVGExternalResourcesRequired, SVGURIReference { type: string; addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; } declare var SVGScriptElement: { prototype: SVGScriptElement; new(): SVGScriptElement; } interface SVGStopElement extends SVGElement, SVGStylable { offset: SVGAnimatedNumber; addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; } declare var SVGStopElement: { prototype: SVGStopElement; new(): SVGStopElement; } interface SVGStringList { numberOfItems: number; appendItem(newItem: string): string; clear(): void; getItem(index: number): string; initialize(newItem: string): string; insertItemBefore(newItem: string, index: number): string; removeItem(index: number): string; replaceItem(newItem: string, index: number): string; } declare var SVGStringList: { prototype: SVGStringList; new(): SVGStringList; } interface SVGStyleElement extends SVGElement, SVGLangSpace { media: string; title: string; type: string; addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; } declare var SVGStyleElement: { prototype: SVGStyleElement; new(): SVGStyleElement; } interface SVGSwitchElement extends SVGElement, SVGStylable, SVGTransformable, SVGTests, SVGLangSpace, SVGExternalResourcesRequired { addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; } declare var SVGSwitchElement: { prototype: SVGSwitchElement; new(): SVGSwitchElement; } interface SVGSymbolElement extends SVGElement, SVGStylable, SVGLangSpace, SVGExternalResourcesRequired, SVGFitToViewBox { addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; } declare var SVGSymbolElement: { prototype: SVGSymbolElement; new(): SVGSymbolElement; } interface SVGTSpanElement extends SVGTextPositioningElement { } declare var SVGTSpanElement: { prototype: SVGTSpanElement; new(): SVGTSpanElement; } interface SVGTextContentElement extends SVGElement, SVGStylable, SVGTests, SVGLangSpace, SVGExternalResourcesRequired { lengthAdjust: SVGAnimatedEnumeration; textLength: SVGAnimatedLength; getCharNumAtPosition(point: SVGPoint): number; getComputedTextLength(): number; getEndPositionOfChar(charnum: number): SVGPoint; getExtentOfChar(charnum: number): SVGRect; getNumberOfChars(): number; getRotationOfChar(charnum: number): number; getStartPositionOfChar(charnum: number): SVGPoint; getSubStringLength(charnum: number, nchars: number): number; selectSubString(charnum: number, nchars: number): void; LENGTHADJUST_SPACING: number; LENGTHADJUST_SPACINGANDGLYPHS: number; LENGTHADJUST_UNKNOWN: number; addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; } declare var SVGTextContentElement: { prototype: SVGTextContentElement; new(): SVGTextContentElement; LENGTHADJUST_SPACING: number; LENGTHADJUST_SPACINGANDGLYPHS: number; LENGTHADJUST_UNKNOWN: number; } interface SVGTextElement extends SVGTextPositioningElement, SVGTransformable { addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; } declare var SVGTextElement: { prototype: SVGTextElement; new(): SVGTextElement; } interface SVGTextPathElement extends SVGTextContentElement, SVGURIReference { method: SVGAnimatedEnumeration; spacing: SVGAnimatedEnumeration; startOffset: SVGAnimatedLength; TEXTPATH_METHODTYPE_ALIGN: number; TEXTPATH_METHODTYPE_STRETCH: number; TEXTPATH_METHODTYPE_UNKNOWN: number; TEXTPATH_SPACINGTYPE_AUTO: number; TEXTPATH_SPACINGTYPE_EXACT: number; TEXTPATH_SPACINGTYPE_UNKNOWN: number; addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; } declare var SVGTextPathElement: { prototype: SVGTextPathElement; new(): SVGTextPathElement; TEXTPATH_METHODTYPE_ALIGN: number; TEXTPATH_METHODTYPE_STRETCH: number; TEXTPATH_METHODTYPE_UNKNOWN: number; TEXTPATH_SPACINGTYPE_AUTO: number; TEXTPATH_SPACINGTYPE_EXACT: number; TEXTPATH_SPACINGTYPE_UNKNOWN: number; } interface SVGTextPositioningElement extends SVGTextContentElement { dx: SVGAnimatedLengthList; dy: SVGAnimatedLengthList; rotate: SVGAnimatedNumberList; x: SVGAnimatedLengthList; y: SVGAnimatedLengthList; } declare var SVGTextPositioningElement: { prototype: SVGTextPositioningElement; new(): SVGTextPositioningElement; } interface SVGTitleElement extends SVGElement, SVGStylable, SVGLangSpace { addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; } declare var SVGTitleElement: { prototype: SVGTitleElement; new(): SVGTitleElement; } interface SVGTransform { angle: number; matrix: SVGMatrix; type: number; setMatrix(matrix: SVGMatrix): void; setRotate(angle: number, cx: number, cy: number): void; setScale(sx: number, sy: number): void; setSkewX(angle: number): void; setSkewY(angle: number): void; setTranslate(tx: number, ty: number): void; SVG_TRANSFORM_MATRIX: number; SVG_TRANSFORM_ROTATE: number; SVG_TRANSFORM_SCALE: number; SVG_TRANSFORM_SKEWX: number; SVG_TRANSFORM_SKEWY: number; SVG_TRANSFORM_TRANSLATE: number; SVG_TRANSFORM_UNKNOWN: number; } declare var SVGTransform: { prototype: SVGTransform; new(): SVGTransform; SVG_TRANSFORM_MATRIX: number; SVG_TRANSFORM_ROTATE: number; SVG_TRANSFORM_SCALE: number; SVG_TRANSFORM_SKEWX: number; SVG_TRANSFORM_SKEWY: number; SVG_TRANSFORM_TRANSLATE: number; SVG_TRANSFORM_UNKNOWN: number; } interface SVGTransformList { numberOfItems: number; appendItem(newItem: SVGTransform): SVGTransform; clear(): void; consolidate(): SVGTransform; createSVGTransformFromMatrix(matrix: SVGMatrix): SVGTransform; getItem(index: number): SVGTransform; initialize(newItem: SVGTransform): SVGTransform; insertItemBefore(newItem: SVGTransform, index: number): SVGTransform; removeItem(index: number): SVGTransform; replaceItem(newItem: SVGTransform, index: number): SVGTransform; } declare var SVGTransformList: { prototype: SVGTransformList; new(): SVGTransformList; } interface SVGUnitTypes { SVG_UNIT_TYPE_OBJECTBOUNDINGBOX: number; SVG_UNIT_TYPE_UNKNOWN: number; SVG_UNIT_TYPE_USERSPACEONUSE: number; } declare var SVGUnitTypes: SVGUnitTypes; interface SVGUseElement extends SVGElement, SVGStylable, SVGTransformable, SVGTests, SVGLangSpace, SVGExternalResourcesRequired, SVGURIReference { animatedInstanceRoot: SVGElementInstance; height: SVGAnimatedLength; instanceRoot: SVGElementInstance; width: SVGAnimatedLength; x: SVGAnimatedLength; y: SVGAnimatedLength; addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; } declare var SVGUseElement: { prototype: SVGUseElement; new(): SVGUseElement; } interface SVGViewElement extends SVGElement, SVGExternalResourcesRequired, SVGFitToViewBox, SVGZoomAndPan { viewTarget: SVGStringList; addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; } declare var SVGViewElement: { prototype: SVGViewElement; new(): SVGViewElement; } interface SVGZoomAndPan { SVG_ZOOMANDPAN_DISABLE: number; SVG_ZOOMANDPAN_MAGNIFY: number; SVG_ZOOMANDPAN_UNKNOWN: number; } declare var SVGZoomAndPan: SVGZoomAndPan; interface SVGZoomEvent extends UIEvent { newScale: number; newTranslate: SVGPoint; previousScale: number; previousTranslate: SVGPoint; zoomRectScreen: SVGRect; } declare var SVGZoomEvent: { prototype: SVGZoomEvent; new(): SVGZoomEvent; } interface Screen extends EventTarget { availHeight: number; availWidth: number; bufferDepth: number; colorDepth: number; deviceXDPI: number; deviceYDPI: number; fontSmoothingEnabled: boolean; height: number; logicalXDPI: number; logicalYDPI: number; msOrientation: string; onmsorientationchange: (ev: Event) => any; pixelDepth: number; systemXDPI: number; systemYDPI: number; width: number; msLockOrientation(orientations: string | string[]): boolean; msUnlockOrientation(): void; addEventListener(type: "MSOrientationChange", listener: (ev: Event) => any, useCapture?: boolean): void; addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; } declare var Screen: { prototype: Screen; new(): Screen; } interface ScriptNotifyEvent extends Event { callingUri: string; value: string; } declare var ScriptNotifyEvent: { prototype: ScriptNotifyEvent; new(): ScriptNotifyEvent; } interface ScriptProcessorNode extends AudioNode { bufferSize: number; onaudioprocess: (ev: AudioProcessingEvent) => any; addEventListener(type: "audioprocess", listener: (ev: AudioProcessingEvent) => any, useCapture?: boolean): void; addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; } declare var ScriptProcessorNode: { prototype: ScriptProcessorNode; new(): ScriptProcessorNode; } interface Selection { anchorNode: Node; anchorOffset: number; focusNode: Node; focusOffset: number; isCollapsed: boolean; rangeCount: number; type: string; addRange(range: Range): void; collapse(parentNode: Node, offset: number): void; collapseToEnd(): void; collapseToStart(): void; containsNode(node: Node, partlyContained: boolean): boolean; deleteFromDocument(): void; empty(): void; extend(newNode: Node, offset: number): void; getRangeAt(index: number): Range; removeAllRanges(): void; removeRange(range: Range): void; selectAllChildren(parentNode: Node): void; setBaseAndExtent(baseNode: Node, baseOffset: number, extentNode: Node, extentOffset: number): void; toString(): string; } declare var Selection: { prototype: Selection; new(): Selection; } interface SourceBuffer extends EventTarget { appendWindowEnd: number; appendWindowStart: number; audioTracks: AudioTrackList; buffered: TimeRanges; mode: string; timestampOffset: number; updating: boolean; videoTracks: VideoTrackList; abort(): void; appendBuffer(data: ArrayBuffer | ArrayBufferView): void; appendStream(stream: MSStream, maxSize?: number): void; remove(start: number, end: number): void; } declare var SourceBuffer: { prototype: SourceBuffer; new(): SourceBuffer; } interface SourceBufferList extends EventTarget { length: number; item(index: number): SourceBuffer; [index: number]: SourceBuffer; } declare var SourceBufferList: { prototype: SourceBufferList; new(): SourceBufferList; } interface StereoPannerNode extends AudioNode { pan: AudioParam; } declare var StereoPannerNode: { prototype: StereoPannerNode; new(): StereoPannerNode; } interface Storage { length: number; clear(): void; getItem(key: string): any; key(index: number): string; removeItem(key: string): void; setItem(key: string, data: string): void; [key: string]: any; [index: number]: string; } declare var Storage: { prototype: Storage; new(): Storage; } interface StorageEvent extends Event { key: string; newValue: any; oldValue: any; storageArea: Storage; url: string; initStorageEvent(typeArg: string, canBubbleArg: boolean, cancelableArg: boolean, keyArg: string, oldValueArg: any, newValueArg: any, urlArg: string, storageAreaArg: Storage): void; } declare var StorageEvent: { prototype: StorageEvent; new(): StorageEvent; } interface StyleMedia { type: string; matchMedium(mediaquery: string): boolean; } declare var StyleMedia: { prototype: StyleMedia; new(): StyleMedia; } interface StyleSheet { disabled: boolean; href: string; media: MediaList; ownerNode: Node; parentStyleSheet: StyleSheet; title: string; type: string; } declare var StyleSheet: { prototype: StyleSheet; new(): StyleSheet; } interface StyleSheetList { length: number; item(index?: number): StyleSheet; [index: number]: StyleSheet; } declare var StyleSheetList: { prototype: StyleSheetList; new(): StyleSheetList; } interface StyleSheetPageList { length: number; item(index: number): CSSPageRule; [index: number]: CSSPageRule; } declare var StyleSheetPageList: { prototype: StyleSheetPageList; new(): StyleSheetPageList; } interface SubtleCrypto { decrypt(algorithm: string | Algorithm, key: CryptoKey, data: ArrayBufferView): any; deriveBits(algorithm: string | Algorithm, baseKey: CryptoKey, length: number): any; deriveKey(algorithm: string | Algorithm, baseKey: CryptoKey, derivedKeyType: string | Algorithm, extractable: boolean, keyUsages: string[]): any; digest(algorithm: string | Algorithm, data: ArrayBufferView): any; encrypt(algorithm: string | Algorithm, key: CryptoKey, data: ArrayBufferView): any; exportKey(format: string, key: CryptoKey): any; generateKey(algorithm: string | Algorithm, extractable: boolean, keyUsages: string[]): any; importKey(format: string, keyData: ArrayBufferView, algorithm: string | Algorithm, extractable: boolean, keyUsages: string[]): any; sign(algorithm: string | Algorithm, key: CryptoKey, data: ArrayBufferView): any; unwrapKey(format: string, wrappedKey: ArrayBufferView, unwrappingKey: CryptoKey, unwrapAlgorithm: string | Algorithm, unwrappedKeyAlgorithm: string | Algorithm, extractable: boolean, keyUsages: string[]): any; verify(algorithm: string | Algorithm, key: CryptoKey, signature: ArrayBufferView, data: ArrayBufferView): any; wrapKey(format: string, key: CryptoKey, wrappingKey: CryptoKey, wrapAlgorithm: string | Algorithm): any; } declare var SubtleCrypto: { prototype: SubtleCrypto; new(): SubtleCrypto; } interface Text extends CharacterData { wholeText: string; replaceWholeText(content: string): Text; splitText(offset: number): Text; } declare var Text: { prototype: Text; new(): Text; } interface TextEvent extends UIEvent { data: string; inputMethod: number; locale: string; initTextEvent(typeArg: string, canBubbleArg: boolean, cancelableArg: boolean, viewArg: Window, dataArg: string, inputMethod: number, locale: string): void; DOM_INPUT_METHOD_DROP: number; DOM_INPUT_METHOD_HANDWRITING: number; DOM_INPUT_METHOD_IME: number; DOM_INPUT_METHOD_KEYBOARD: number; DOM_INPUT_METHOD_MULTIMODAL: number; DOM_INPUT_METHOD_OPTION: number; DOM_INPUT_METHOD_PASTE: number; DOM_INPUT_METHOD_SCRIPT: number; DOM_INPUT_METHOD_UNKNOWN: number; DOM_INPUT_METHOD_VOICE: number; } declare var TextEvent: { prototype: TextEvent; new(): TextEvent; DOM_INPUT_METHOD_DROP: number; DOM_INPUT_METHOD_HANDWRITING: number; DOM_INPUT_METHOD_IME: number; DOM_INPUT_METHOD_KEYBOARD: number; DOM_INPUT_METHOD_MULTIMODAL: number; DOM_INPUT_METHOD_OPTION: number; DOM_INPUT_METHOD_PASTE: number; DOM_INPUT_METHOD_SCRIPT: number; DOM_INPUT_METHOD_UNKNOWN: number; DOM_INPUT_METHOD_VOICE: number; } interface TextMetrics { width: number; } declare var TextMetrics: { prototype: TextMetrics; new(): TextMetrics; } interface TextRange { boundingHeight: number; boundingLeft: number; boundingTop: number; boundingWidth: number; htmlText: string; offsetLeft: number; offsetTop: number; text: string; collapse(start?: boolean): void; compareEndPoints(how: string, sourceRange: TextRange): number; duplicate(): TextRange; execCommand(cmdID: string, showUI?: boolean, value?: any): boolean; execCommandShowHelp(cmdID: string): boolean; expand(Unit: string): boolean; findText(string: string, count?: number, flags?: number): boolean; getBookmark(): string; getBoundingClientRect(): ClientRect; getClientRects(): ClientRectList; inRange(range: TextRange): boolean; isEqual(range: TextRange): boolean; move(unit: string, count?: number): number; moveEnd(unit: string, count?: number): number; moveStart(unit: string, count?: number): number; moveToBookmark(bookmark: string): boolean; moveToElementText(element: Element): void; moveToPoint(x: number, y: number): void; parentElement(): Element; pasteHTML(html: string): void; queryCommandEnabled(cmdID: string): boolean; queryCommandIndeterm(cmdID: string): boolean; queryCommandState(cmdID: string): boolean; queryCommandSupported(cmdID: string): boolean; queryCommandText(cmdID: string): string; queryCommandValue(cmdID: string): any; scrollIntoView(fStart?: boolean): void; select(): void; setEndPoint(how: string, SourceRange: TextRange): void; } declare var TextRange: { prototype: TextRange; new(): TextRange; } interface TextRangeCollection { length: number; item(index: number): TextRange; [index: number]: TextRange; } declare var TextRangeCollection: { prototype: TextRangeCollection; new(): TextRangeCollection; } interface TextTrack extends EventTarget { activeCues: TextTrackCueList; cues: TextTrackCueList; inBandMetadataTrackDispatchType: string; kind: string; label: string; language: string; mode: any; oncuechange: (ev: Event) => any; onerror: (ev: Event) => any; onload: (ev: Event) => any; readyState: number; addCue(cue: TextTrackCue): void; removeCue(cue: TextTrackCue): void; DISABLED: number; ERROR: number; HIDDEN: number; LOADED: number; LOADING: number; NONE: number; SHOWING: number; addEventListener(type: "cuechange", listener: (ev: Event) => any, useCapture?: boolean): void; addEventListener(type: "error", listener: (ev: ErrorEvent) => any, useCapture?: boolean): void; addEventListener(type: "load", listener: (ev: Event) => any, useCapture?: boolean): void; addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; } declare var TextTrack: { prototype: TextTrack; new(): TextTrack; DISABLED: number; ERROR: number; HIDDEN: number; LOADED: number; LOADING: number; NONE: number; SHOWING: number; } interface TextTrackCue extends EventTarget { endTime: number; id: string; onenter: (ev: Event) => any; onexit: (ev: Event) => any; pauseOnExit: boolean; startTime: number; text: string; track: TextTrack; getCueAsHTML(): DocumentFragment; addEventListener(type: "enter", listener: (ev: Event) => any, useCapture?: boolean): void; addEventListener(type: "exit", listener: (ev: Event) => any, useCapture?: boolean): void; addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; } declare var TextTrackCue: { prototype: TextTrackCue; new(startTime: number, endTime: number, text: string): TextTrackCue; } interface TextTrackCueList { length: number; getCueById(id: string): TextTrackCue; item(index: number): TextTrackCue; [index: number]: TextTrackCue; } declare var TextTrackCueList: { prototype: TextTrackCueList; new(): TextTrackCueList; } interface TextTrackList extends EventTarget { length: number; onaddtrack: (ev: TrackEvent) => any; item(index: number): TextTrack; addEventListener(type: "addtrack", listener: (ev: TrackEvent) => any, useCapture?: boolean): void; addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; [index: number]: TextTrack; } declare var TextTrackList: { prototype: TextTrackList; new(): TextTrackList; } interface TimeRanges { length: number; end(index: number): number; start(index: number): number; } declare var TimeRanges: { prototype: TimeRanges; new(): TimeRanges; } interface Touch { clientX: number; clientY: number; identifier: number; pageX: number; pageY: number; screenX: number; screenY: number; target: EventTarget; } declare var Touch: { prototype: Touch; new(): Touch; } interface TouchEvent extends UIEvent { altKey: boolean; changedTouches: TouchList; ctrlKey: boolean; metaKey: boolean; shiftKey: boolean; targetTouches: TouchList; touches: TouchList; } declare var TouchEvent: { prototype: TouchEvent; new(): TouchEvent; } interface TouchList { length: number; item(index: number): Touch; [index: number]: Touch; } declare var TouchList: { prototype: TouchList; new(): TouchList; } interface TrackEvent extends Event { track: any; } declare var TrackEvent: { prototype: TrackEvent; new(): TrackEvent; } interface TransitionEvent extends Event { elapsedTime: number; propertyName: string; initTransitionEvent(typeArg: string, canBubbleArg: boolean, cancelableArg: boolean, propertyNameArg: string, elapsedTimeArg: number): void; } declare var TransitionEvent: { prototype: TransitionEvent; new(): TransitionEvent; } interface TreeWalker { currentNode: Node; expandEntityReferences: boolean; filter: NodeFilter; root: Node; whatToShow: number; firstChild(): Node; lastChild(): Node; nextNode(): Node; nextSibling(): Node; parentNode(): Node; previousNode(): Node; previousSibling(): Node; } declare var TreeWalker: { prototype: TreeWalker; new(): TreeWalker; } interface UIEvent extends Event { detail: number; view: Window; initUIEvent(typeArg: string, canBubbleArg: boolean, cancelableArg: boolean, viewArg: Window, detailArg: number): void; } declare var UIEvent: { prototype: UIEvent; new(type: string, eventInitDict?: UIEventInit): UIEvent; } interface URL { createObjectURL(object: any, options?: ObjectURLOptions): string; revokeObjectURL(url: string): void; } declare var URL: URL; interface UnviewableContentIdentifiedEvent extends NavigationEventWithReferrer { mediaType: string; } declare var UnviewableContentIdentifiedEvent: { prototype: UnviewableContentIdentifiedEvent; new(): UnviewableContentIdentifiedEvent; } interface ValidityState { badInput: boolean; customError: boolean; patternMismatch: boolean; rangeOverflow: boolean; rangeUnderflow: boolean; stepMismatch: boolean; tooLong: boolean; typeMismatch: boolean; valid: boolean; valueMissing: boolean; } declare var ValidityState: { prototype: ValidityState; new(): ValidityState; } interface VideoPlaybackQuality { corruptedVideoFrames: number; creationTime: number; droppedVideoFrames: number; totalFrameDelay: number; totalVideoFrames: number; } declare var VideoPlaybackQuality: { prototype: VideoPlaybackQuality; new(): VideoPlaybackQuality; } interface VideoTrack { id: string; kind: string; label: string; language: string; selected: boolean; sourceBuffer: SourceBuffer; } declare var VideoTrack: { prototype: VideoTrack; new(): VideoTrack; } interface VideoTrackList extends EventTarget { length: number; onaddtrack: (ev: TrackEvent) => any; onchange: (ev: Event) => any; onremovetrack: (ev: TrackEvent) => any; selectedIndex: number; getTrackById(id: string): VideoTrack; item(index: number): VideoTrack; addEventListener(type: "addtrack", listener: (ev: TrackEvent) => any, useCapture?: boolean): void; addEventListener(type: "change", listener: (ev: Event) => any, useCapture?: boolean): void; addEventListener(type: "removetrack", listener: (ev: TrackEvent) => any, useCapture?: boolean): void; addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; [index: number]: VideoTrack; } declare var VideoTrackList: { prototype: VideoTrackList; new(): VideoTrackList; } interface WEBGL_compressed_texture_s3tc { COMPRESSED_RGBA_S3TC_DXT1_EXT: number; COMPRESSED_RGBA_S3TC_DXT3_EXT: number; COMPRESSED_RGBA_S3TC_DXT5_EXT: number; COMPRESSED_RGB_S3TC_DXT1_EXT: number; } declare var WEBGL_compressed_texture_s3tc: { prototype: WEBGL_compressed_texture_s3tc; new(): WEBGL_compressed_texture_s3tc; COMPRESSED_RGBA_S3TC_DXT1_EXT: number; COMPRESSED_RGBA_S3TC_DXT3_EXT: number; COMPRESSED_RGBA_S3TC_DXT5_EXT: number; COMPRESSED_RGB_S3TC_DXT1_EXT: number; } interface WEBGL_debug_renderer_info { UNMASKED_RENDERER_WEBGL: number; UNMASKED_VENDOR_WEBGL: number; } declare var WEBGL_debug_renderer_info: { prototype: WEBGL_debug_renderer_info; new(): WEBGL_debug_renderer_info; UNMASKED_RENDERER_WEBGL: number; UNMASKED_VENDOR_WEBGL: number; } interface WEBGL_depth_texture { UNSIGNED_INT_24_8_WEBGL: number; } declare var WEBGL_depth_texture: { prototype: WEBGL_depth_texture; new(): WEBGL_depth_texture; UNSIGNED_INT_24_8_WEBGL: number; } interface WaveShaperNode extends AudioNode { curve: any; oversample: string; } declare var WaveShaperNode: { prototype: WaveShaperNode; new(): WaveShaperNode; } interface WebGLActiveInfo { name: string; size: number; type: number; } declare var WebGLActiveInfo: { prototype: WebGLActiveInfo; new(): WebGLActiveInfo; } interface WebGLBuffer extends WebGLObject { } declare var WebGLBuffer: { prototype: WebGLBuffer; new(): WebGLBuffer; } interface WebGLContextEvent extends Event { statusMessage: string; } declare var WebGLContextEvent: { prototype: WebGLContextEvent; new(): WebGLContextEvent; } interface WebGLFramebuffer extends WebGLObject { } declare var WebGLFramebuffer: { prototype: WebGLFramebuffer; new(): WebGLFramebuffer; } interface WebGLObject { } declare var WebGLObject: { prototype: WebGLObject; new(): WebGLObject; } interface WebGLProgram extends WebGLObject { } declare var WebGLProgram: { prototype: WebGLProgram; new(): WebGLProgram; } interface WebGLRenderbuffer extends WebGLObject { } declare var WebGLRenderbuffer: { prototype: WebGLRenderbuffer; new(): WebGLRenderbuffer; } interface WebGLRenderingContext { canvas: HTMLCanvasElement; drawingBufferHeight: number; drawingBufferWidth: number; activeTexture(texture: number): void; attachShader(program: WebGLProgram, shader: WebGLShader): void; bindAttribLocation(program: WebGLProgram, index: number, name: string): void; bindBuffer(target: number, buffer: WebGLBuffer): void; bindFramebuffer(target: number, framebuffer: WebGLFramebuffer): void; bindRenderbuffer(target: number, renderbuffer: WebGLRenderbuffer): void; bindTexture(target: number, texture: WebGLTexture): void; blendColor(red: number, green: number, blue: number, alpha: number): void; blendEquation(mode: number): void; blendEquationSeparate(modeRGB: number, modeAlpha: number): void; blendFunc(sfactor: number, dfactor: number): void; blendFuncSeparate(srcRGB: number, dstRGB: number, srcAlpha: number, dstAlpha: number): void; bufferData(target: number, size: number | ArrayBufferView | ArrayBuffer, usage: number): void; bufferSubData(target: number, offset: number, data: ArrayBufferView | ArrayBuffer): void; checkFramebufferStatus(target: number): number; clear(mask: number): void; clearColor(red: number, green: number, blue: number, alpha: number): void; clearDepth(depth: number): void; clearStencil(s: number): void; colorMask(red: boolean, green: boolean, blue: boolean, alpha: boolean): void; compileShader(shader: WebGLShader): void; compressedTexImage2D(target: number, level: number, internalformat: number, width: number, height: number, border: number, data: ArrayBufferView): void; compressedTexSubImage2D(target: number, level: number, xoffset: number, yoffset: number, width: number, height: number, format: number, data: ArrayBufferView): void; copyTexImage2D(target: number, level: number, internalformat: number, x: number, y: number, width: number, height: number, border: number): void; copyTexSubImage2D(target: number, level: number, xoffset: number, yoffset: number, x: number, y: number, width: number, height: number): void; createBuffer(): WebGLBuffer; createFramebuffer(): WebGLFramebuffer; createProgram(): WebGLProgram; createRenderbuffer(): WebGLRenderbuffer; createShader(type: number): WebGLShader; createTexture(): WebGLTexture; cullFace(mode: number): void; deleteBuffer(buffer: WebGLBuffer): void; deleteFramebuffer(framebuffer: WebGLFramebuffer): void; deleteProgram(program: WebGLProgram): void; deleteRenderbuffer(renderbuffer: WebGLRenderbuffer): void; deleteShader(shader: WebGLShader): void; deleteTexture(texture: WebGLTexture): void; depthFunc(func: number): void; depthMask(flag: boolean): void; depthRange(zNear: number, zFar: number): void; detachShader(program: WebGLProgram, shader: WebGLShader): void; disable(cap: number): void; disableVertexAttribArray(index: number): void; drawArrays(mode: number, first: number, count: number): void; drawElements(mode: number, count: number, type: number, offset: number): void; enable(cap: number): void; enableVertexAttribArray(index: number): void; finish(): void; flush(): void; framebufferRenderbuffer(target: number, attachment: number, renderbuffertarget: number, renderbuffer: WebGLRenderbuffer): void; framebufferTexture2D(target: number, attachment: number, textarget: number, texture: WebGLTexture, level: number): void; frontFace(mode: number): void; generateMipmap(target: number): void; getActiveAttrib(program: WebGLProgram, index: number): WebGLActiveInfo; getActiveUniform(program: WebGLProgram, index: number): WebGLActiveInfo; getAttachedShaders(program: WebGLProgram): WebGLShader[]; getAttribLocation(program: WebGLProgram, name: string): number; getBufferParameter(target: number, pname: number): any; getContextAttributes(): WebGLContextAttributes; getError(): number; getExtension(name: string): any; getFramebufferAttachmentParameter(target: number, attachment: number, pname: number): any; getParameter(pname: number): any; getProgramInfoLog(program: WebGLProgram): string; getProgramParameter(program: WebGLProgram, pname: number): any; getRenderbufferParameter(target: number, pname: number): any; getShaderInfoLog(shader: WebGLShader): string; getShaderParameter(shader: WebGLShader, pname: number): any; getShaderPrecisionFormat(shadertype: number, precisiontype: number): WebGLShaderPrecisionFormat; getShaderSource(shader: WebGLShader): string; getSupportedExtensions(): string[]; getTexParameter(target: number, pname: number): any; getUniform(program: WebGLProgram, location: WebGLUniformLocation): any; getUniformLocation(program: WebGLProgram, name: string): WebGLUniformLocation; getVertexAttrib(index: number, pname: number): any; getVertexAttribOffset(index: number, pname: number): number; hint(target: number, mode: number): void; isBuffer(buffer: WebGLBuffer): boolean; isContextLost(): boolean; isEnabled(cap: number): boolean; isFramebuffer(framebuffer: WebGLFramebuffer): boolean; isProgram(program: WebGLProgram): boolean; isRenderbuffer(renderbuffer: WebGLRenderbuffer): boolean; isShader(shader: WebGLShader): boolean; isTexture(texture: WebGLTexture): boolean; lineWidth(width: number): void; linkProgram(program: WebGLProgram): void; pixelStorei(pname: number, param: number): void; polygonOffset(factor: number, units: number): void; readPixels(x: number, y: number, width: number, height: number, format: number, type: number, pixels: ArrayBufferView): void; renderbufferStorage(target: number, internalformat: number, width: number, height: number): void; sampleCoverage(value: number, invert: boolean): void; scissor(x: number, y: number, width: number, height: number): void; shaderSource(shader: WebGLShader, source: string): void; stencilFunc(func: number, ref: number, mask: number): void; stencilFuncSeparate(face: number, func: number, ref: number, mask: number): void; stencilMask(mask: number): void; stencilMaskSeparate(face: number, mask: number): void; stencilOp(fail: number, zfail: number, zpass: number): void; stencilOpSeparate(face: number, fail: number, zfail: number, zpass: number): void; texImage2D(target: number, level: number, internalformat: number, width: number, height: number, border: number, format: number, type: number, pixels: ArrayBufferView): void; texImage2D(target: number, level: number, internalformat: number, format: number, type: number, image: HTMLImageElement): void; texImage2D(target: number, level: number, internalformat: number, format: number, type: number, canvas: HTMLCanvasElement): void; texImage2D(target: number, level: number, internalformat: number, format: number, type: number, video: HTMLVideoElement): void; texImage2D(target: number, level: number, internalformat: number, format: number, type: number, pixels: ImageData): void; texParameterf(target: number, pname: number, param: number): void; texParameteri(target: number, pname: number, param: number): void; texSubImage2D(target: number, level: number, xoffset: number, yoffset: number, width: number, height: number, format: number, type: number, pixels: ArrayBufferView): void; texSubImage2D(target: number, level: number, xoffset: number, yoffset: number, format: number, type: number, image: HTMLImageElement): void; texSubImage2D(target: number, level: number, xoffset: number, yoffset: number, format: number, type: number, canvas: HTMLCanvasElement): void; texSubImage2D(target: number, level: number, xoffset: number, yoffset: number, format: number, type: number, video: HTMLVideoElement): void; texSubImage2D(target: number, level: number, xoffset: number, yoffset: number, format: number, type: number, pixels: ImageData): void; uniform1f(location: WebGLUniformLocation, x: number): void; uniform1fv(location: WebGLUniformLocation, v: any): void; uniform1i(location: WebGLUniformLocation, x: number): void; uniform1iv(location: WebGLUniformLocation, v: Int32Array): void; uniform2f(location: WebGLUniformLocation, x: number, y: number): void; uniform2fv(location: WebGLUniformLocation, v: any): void; uniform2i(location: WebGLUniformLocation, x: number, y: number): void; uniform2iv(location: WebGLUniformLocation, v: Int32Array): void; uniform3f(location: WebGLUniformLocation, x: number, y: number, z: number): void; uniform3fv(location: WebGLUniformLocation, v: any): void; uniform3i(location: WebGLUniformLocation, x: number, y: number, z: number): void; uniform3iv(location: WebGLUniformLocation, v: Int32Array): void; uniform4f(location: WebGLUniformLocation, x: number, y: number, z: number, w: number): void; uniform4fv(location: WebGLUniformLocation, v: any): void; uniform4i(location: WebGLUniformLocation, x: number, y: number, z: number, w: number): void; uniform4iv(location: WebGLUniformLocation, v: Int32Array): void; uniformMatrix2fv(location: WebGLUniformLocation, transpose: boolean, value: any): void; uniformMatrix3fv(location: WebGLUniformLocation, transpose: boolean, value: any): void; uniformMatrix4fv(location: WebGLUniformLocation, transpose: boolean, value: any): void; useProgram(program: WebGLProgram): void; validateProgram(program: WebGLProgram): void; vertexAttrib1f(indx: number, x: number): void; vertexAttrib1fv(indx: number, values: any): void; vertexAttrib2f(indx: number, x: number, y: number): void; vertexAttrib2fv(indx: number, values: any): void; vertexAttrib3f(indx: number, x: number, y: number, z: number): void; vertexAttrib3fv(indx: number, values: any): void; vertexAttrib4f(indx: number, x: number, y: number, z: number, w: number): void; vertexAttrib4fv(indx: number, values: any): void; vertexAttribPointer(indx: number, size: number, type: number, normalized: boolean, stride: number, offset: number): void; viewport(x: number, y: number, width: number, height: number): void; ACTIVE_ATTRIBUTES: number; ACTIVE_TEXTURE: number; ACTIVE_UNIFORMS: number; ALIASED_LINE_WIDTH_RANGE: number; ALIASED_POINT_SIZE_RANGE: number; ALPHA: number; ALPHA_BITS: number; ALWAYS: number; ARRAY_BUFFER: number; ARRAY_BUFFER_BINDING: number; ATTACHED_SHADERS: number; BACK: number; BLEND: number; BLEND_COLOR: number; BLEND_DST_ALPHA: number; BLEND_DST_RGB: number; BLEND_EQUATION: number; BLEND_EQUATION_ALPHA: number; BLEND_EQUATION_RGB: number; BLEND_SRC_ALPHA: number; BLEND_SRC_RGB: number; BLUE_BITS: number; BOOL: number; BOOL_VEC2: number; BOOL_VEC3: number; BOOL_VEC4: number; BROWSER_DEFAULT_WEBGL: number; BUFFER_SIZE: number; BUFFER_USAGE: number; BYTE: number; CCW: number; CLAMP_TO_EDGE: number; COLOR_ATTACHMENT0: number; COLOR_BUFFER_BIT: number; COLOR_CLEAR_VALUE: number; COLOR_WRITEMASK: number; COMPILE_STATUS: number; COMPRESSED_TEXTURE_FORMATS: number; CONSTANT_ALPHA: number; CONSTANT_COLOR: number; CONTEXT_LOST_WEBGL: number; CULL_FACE: number; CULL_FACE_MODE: number; CURRENT_PROGRAM: number; CURRENT_VERTEX_ATTRIB: number; CW: number; DECR: number; DECR_WRAP: number; DELETE_STATUS: number; DEPTH_ATTACHMENT: number; DEPTH_BITS: number; DEPTH_BUFFER_BIT: number; DEPTH_CLEAR_VALUE: number; DEPTH_COMPONENT: number; DEPTH_COMPONENT16: number; DEPTH_FUNC: number; DEPTH_RANGE: number; DEPTH_STENCIL: number; DEPTH_STENCIL_ATTACHMENT: number; DEPTH_TEST: number; DEPTH_WRITEMASK: number; DITHER: number; DONT_CARE: number; DST_ALPHA: number; DST_COLOR: number; DYNAMIC_DRAW: number; ELEMENT_ARRAY_BUFFER: number; ELEMENT_ARRAY_BUFFER_BINDING: number; EQUAL: number; FASTEST: number; FLOAT: number; FLOAT_MAT2: number; FLOAT_MAT3: number; FLOAT_MAT4: number; FLOAT_VEC2: number; FLOAT_VEC3: number; FLOAT_VEC4: number; FRAGMENT_SHADER: number; FRAMEBUFFER: number; FRAMEBUFFER_ATTACHMENT_OBJECT_NAME: number; FRAMEBUFFER_ATTACHMENT_OBJECT_TYPE: number; FRAMEBUFFER_ATTACHMENT_TEXTURE_CUBE_MAP_FACE: number; FRAMEBUFFER_ATTACHMENT_TEXTURE_LEVEL: number; FRAMEBUFFER_BINDING: number; FRAMEBUFFER_COMPLETE: number; FRAMEBUFFER_INCOMPLETE_ATTACHMENT: number; FRAMEBUFFER_INCOMPLETE_DIMENSIONS: number; FRAMEBUFFER_INCOMPLETE_MISSING_ATTACHMENT: number; FRAMEBUFFER_UNSUPPORTED: number; FRONT: number; FRONT_AND_BACK: number; FRONT_FACE: number; FUNC_ADD: number; FUNC_REVERSE_SUBTRACT: number; FUNC_SUBTRACT: number; GENERATE_MIPMAP_HINT: number; GEQUAL: number; GREATER: number; GREEN_BITS: number; HIGH_FLOAT: number; HIGH_INT: number; IMPLEMENTATION_COLOR_READ_FORMAT: number; IMPLEMENTATION_COLOR_READ_TYPE: number; INCR: number; INCR_WRAP: number; INT: number; INT_VEC2: number; INT_VEC3: number; INT_VEC4: number; INVALID_ENUM: number; INVALID_FRAMEBUFFER_OPERATION: number; INVALID_OPERATION: number; INVALID_VALUE: number; INVERT: number; KEEP: number; LEQUAL: number; LESS: number; LINEAR: number; LINEAR_MIPMAP_LINEAR: number; LINEAR_MIPMAP_NEAREST: number; LINES: number; LINE_LOOP: number; LINE_STRIP: number; LINE_WIDTH: number; LINK_STATUS: number; LOW_FLOAT: number; LOW_INT: number; LUMINANCE: number; LUMINANCE_ALPHA: number; MAX_COMBINED_TEXTURE_IMAGE_UNITS: number; MAX_CUBE_MAP_TEXTURE_SIZE: number; MAX_FRAGMENT_UNIFORM_VECTORS: number; MAX_RENDERBUFFER_SIZE: number; MAX_TEXTURE_IMAGE_UNITS: number; MAX_TEXTURE_SIZE: number; MAX_VARYING_VECTORS: number; MAX_VERTEX_ATTRIBS: number; MAX_VERTEX_TEXTURE_IMAGE_UNITS: number; MAX_VERTEX_UNIFORM_VECTORS: number; MAX_VIEWPORT_DIMS: number; MEDIUM_FLOAT: number; MEDIUM_INT: number; MIRRORED_REPEAT: number; NEAREST: number; NEAREST_MIPMAP_LINEAR: number; NEAREST_MIPMAP_NEAREST: number; NEVER: number; NICEST: number; NONE: number; NOTEQUAL: number; NO_ERROR: number; ONE: number; ONE_MINUS_CONSTANT_ALPHA: number; ONE_MINUS_CONSTANT_COLOR: number; ONE_MINUS_DST_ALPHA: number; ONE_MINUS_DST_COLOR: number; ONE_MINUS_SRC_ALPHA: number; ONE_MINUS_SRC_COLOR: number; OUT_OF_MEMORY: number; PACK_ALIGNMENT: number; POINTS: number; POLYGON_OFFSET_FACTOR: number; POLYGON_OFFSET_FILL: number; POLYGON_OFFSET_UNITS: number; RED_BITS: number; RENDERBUFFER: number; RENDERBUFFER_ALPHA_SIZE: number; RENDERBUFFER_BINDING: number; RENDERBUFFER_BLUE_SIZE: number; RENDERBUFFER_DEPTH_SIZE: number; RENDERBUFFER_GREEN_SIZE: number; RENDERBUFFER_HEIGHT: number; RENDERBUFFER_INTERNAL_FORMAT: number; RENDERBUFFER_RED_SIZE: number; RENDERBUFFER_STENCIL_SIZE: number; RENDERBUFFER_WIDTH: number; RENDERER: number; REPEAT: number; REPLACE: number; RGB: number; RGB565: number; RGB5_A1: number; RGBA: number; RGBA4: number; SAMPLER_2D: number; SAMPLER_CUBE: number; SAMPLES: number; SAMPLE_ALPHA_TO_COVERAGE: number; SAMPLE_BUFFERS: number; SAMPLE_COVERAGE: number; SAMPLE_COVERAGE_INVERT: number; SAMPLE_COVERAGE_VALUE: number; SCISSOR_BOX: number; SCISSOR_TEST: number; SHADER_TYPE: number; SHADING_LANGUAGE_VERSION: number; SHORT: number; SRC_ALPHA: number; SRC_ALPHA_SATURATE: number; SRC_COLOR: number; STATIC_DRAW: number; STENCIL_ATTACHMENT: number; STENCIL_BACK_FAIL: number; STENCIL_BACK_FUNC: number; STENCIL_BACK_PASS_DEPTH_FAIL: number; STENCIL_BACK_PASS_DEPTH_PASS: number; STENCIL_BACK_REF: number; STENCIL_BACK_VALUE_MASK: number; STENCIL_BACK_WRITEMASK: number; STENCIL_BITS: number; STENCIL_BUFFER_BIT: number; STENCIL_CLEAR_VALUE: number; STENCIL_FAIL: number; STENCIL_FUNC: number; STENCIL_INDEX: number; STENCIL_INDEX8: number; STENCIL_PASS_DEPTH_FAIL: number; STENCIL_PASS_DEPTH_PASS: number; STENCIL_REF: number; STENCIL_TEST: number; STENCIL_VALUE_MASK: number; STENCIL_WRITEMASK: number; STREAM_DRAW: number; SUBPIXEL_BITS: number; TEXTURE: number; TEXTURE0: number; TEXTURE1: number; TEXTURE10: number; TEXTURE11: number; TEXTURE12: number; TEXTURE13: number; TEXTURE14: number; TEXTURE15: number; TEXTURE16: number; TEXTURE17: number; TEXTURE18: number; TEXTURE19: number; TEXTURE2: number; TEXTURE20: number; TEXTURE21: number; TEXTURE22: number; TEXTURE23: number; TEXTURE24: number; TEXTURE25: number; TEXTURE26: number; TEXTURE27: number; TEXTURE28: number; TEXTURE29: number; TEXTURE3: number; TEXTURE30: number; TEXTURE31: number; TEXTURE4: number; TEXTURE5: number; TEXTURE6: number; TEXTURE7: number; TEXTURE8: number; TEXTURE9: number; TEXTURE_2D: number; TEXTURE_BINDING_2D: number; TEXTURE_BINDING_CUBE_MAP: number; TEXTURE_CUBE_MAP: number; TEXTURE_CUBE_MAP_NEGATIVE_X: number; TEXTURE_CUBE_MAP_NEGATIVE_Y: number; TEXTURE_CUBE_MAP_NEGATIVE_Z: number; TEXTURE_CUBE_MAP_POSITIVE_X: number; TEXTURE_CUBE_MAP_POSITIVE_Y: number; TEXTURE_CUBE_MAP_POSITIVE_Z: number; TEXTURE_MAG_FILTER: number; TEXTURE_MIN_FILTER: number; TEXTURE_WRAP_S: number; TEXTURE_WRAP_T: number; TRIANGLES: number; TRIANGLE_FAN: number; TRIANGLE_STRIP: number; UNPACK_ALIGNMENT: number; UNPACK_COLORSPACE_CONVERSION_WEBGL: number; UNPACK_FLIP_Y_WEBGL: number; UNPACK_PREMULTIPLY_ALPHA_WEBGL: number; UNSIGNED_BYTE: number; UNSIGNED_INT: number; UNSIGNED_SHORT: number; UNSIGNED_SHORT_4_4_4_4: number; UNSIGNED_SHORT_5_5_5_1: number; UNSIGNED_SHORT_5_6_5: number; VALIDATE_STATUS: number; VENDOR: number; VERSION: number; VERTEX_ATTRIB_ARRAY_BUFFER_BINDING: number; VERTEX_ATTRIB_ARRAY_ENABLED: number; VERTEX_ATTRIB_ARRAY_NORMALIZED: number; VERTEX_ATTRIB_ARRAY_POINTER: number; VERTEX_ATTRIB_ARRAY_SIZE: number; VERTEX_ATTRIB_ARRAY_STRIDE: number; VERTEX_ATTRIB_ARRAY_TYPE: number; VERTEX_SHADER: number; VIEWPORT: number; ZERO: number; } declare var WebGLRenderingContext: { prototype: WebGLRenderingContext; new(): WebGLRenderingContext; ACTIVE_ATTRIBUTES: number; ACTIVE_TEXTURE: number; ACTIVE_UNIFORMS: number; ALIASED_LINE_WIDTH_RANGE: number; ALIASED_POINT_SIZE_RANGE: number; ALPHA: number; ALPHA_BITS: number; ALWAYS: number; ARRAY_BUFFER: number; ARRAY_BUFFER_BINDING: number; ATTACHED_SHADERS: number; BACK: number; BLEND: number; BLEND_COLOR: number; BLEND_DST_ALPHA: number; BLEND_DST_RGB: number; BLEND_EQUATION: number; BLEND_EQUATION_ALPHA: number; BLEND_EQUATION_RGB: number; BLEND_SRC_ALPHA: number; BLEND_SRC_RGB: number; BLUE_BITS: number; BOOL: number; BOOL_VEC2: number; BOOL_VEC3: number; BOOL_VEC4: number; BROWSER_DEFAULT_WEBGL: number; BUFFER_SIZE: number; BUFFER_USAGE: number; BYTE: number; CCW: number; CLAMP_TO_EDGE: number; COLOR_ATTACHMENT0: number; COLOR_BUFFER_BIT: number; COLOR_CLEAR_VALUE: number; COLOR_WRITEMASK: number; COMPILE_STATUS: number; COMPRESSED_TEXTURE_FORMATS: number; CONSTANT_ALPHA: number; CONSTANT_COLOR: number; CONTEXT_LOST_WEBGL: number; CULL_FACE: number; CULL_FACE_MODE: number; CURRENT_PROGRAM: number; CURRENT_VERTEX_ATTRIB: number; CW: number; DECR: number; DECR_WRAP: number; DELETE_STATUS: number; DEPTH_ATTACHMENT: number; DEPTH_BITS: number; DEPTH_BUFFER_BIT: number; DEPTH_CLEAR_VALUE: number; DEPTH_COMPONENT: number; DEPTH_COMPONENT16: number; DEPTH_FUNC: number; DEPTH_RANGE: number; DEPTH_STENCIL: number; DEPTH_STENCIL_ATTACHMENT: number; DEPTH_TEST: number; DEPTH_WRITEMASK: number; DITHER: number; DONT_CARE: number; DST_ALPHA: number; DST_COLOR: number; DYNAMIC_DRAW: number; ELEMENT_ARRAY_BUFFER: number; ELEMENT_ARRAY_BUFFER_BINDING: number; EQUAL: number; FASTEST: number; FLOAT: number; FLOAT_MAT2: number; FLOAT_MAT3: number; FLOAT_MAT4: number; FLOAT_VEC2: number; FLOAT_VEC3: number; FLOAT_VEC4: number; FRAGMENT_SHADER: number; FRAMEBUFFER: number; FRAMEBUFFER_ATTACHMENT_OBJECT_NAME: number; FRAMEBUFFER_ATTACHMENT_OBJECT_TYPE: number; FRAMEBUFFER_ATTACHMENT_TEXTURE_CUBE_MAP_FACE: number; FRAMEBUFFER_ATTACHMENT_TEXTURE_LEVEL: number; FRAMEBUFFER_BINDING: number; FRAMEBUFFER_COMPLETE: number; FRAMEBUFFER_INCOMPLETE_ATTACHMENT: number; FRAMEBUFFER_INCOMPLETE_DIMENSIONS: number; FRAMEBUFFER_INCOMPLETE_MISSING_ATTACHMENT: number; FRAMEBUFFER_UNSUPPORTED: number; FRONT: number; FRONT_AND_BACK: number; FRONT_FACE: number; FUNC_ADD: number; FUNC_REVERSE_SUBTRACT: number; FUNC_SUBTRACT: number; GENERATE_MIPMAP_HINT: number; GEQUAL: number; GREATER: number; GREEN_BITS: number; HIGH_FLOAT: number; HIGH_INT: number; IMPLEMENTATION_COLOR_READ_FORMAT: number; IMPLEMENTATION_COLOR_READ_TYPE: number; INCR: number; INCR_WRAP: number; INT: number; INT_VEC2: number; INT_VEC3: number; INT_VEC4: number; INVALID_ENUM: number; INVALID_FRAMEBUFFER_OPERATION: number; INVALID_OPERATION: number; INVALID_VALUE: number; INVERT: number; KEEP: number; LEQUAL: number; LESS: number; LINEAR: number; LINEAR_MIPMAP_LINEAR: number; LINEAR_MIPMAP_NEAREST: number; LINES: number; LINE_LOOP: number; LINE_STRIP: number; LINE_WIDTH: number; LINK_STATUS: number; LOW_FLOAT: number; LOW_INT: number; LUMINANCE: number; LUMINANCE_ALPHA: number; MAX_COMBINED_TEXTURE_IMAGE_UNITS: number; MAX_CUBE_MAP_TEXTURE_SIZE: number; MAX_FRAGMENT_UNIFORM_VECTORS: number; MAX_RENDERBUFFER_SIZE: number; MAX_TEXTURE_IMAGE_UNITS: number; MAX_TEXTURE_SIZE: number; MAX_VARYING_VECTORS: number; MAX_VERTEX_ATTRIBS: number; MAX_VERTEX_TEXTURE_IMAGE_UNITS: number; MAX_VERTEX_UNIFORM_VECTORS: number; MAX_VIEWPORT_DIMS: number; MEDIUM_FLOAT: number; MEDIUM_INT: number; MIRRORED_REPEAT: number; NEAREST: number; NEAREST_MIPMAP_LINEAR: number; NEAREST_MIPMAP_NEAREST: number; NEVER: number; NICEST: number; NONE: number; NOTEQUAL: number; NO_ERROR: number; ONE: number; ONE_MINUS_CONSTANT_ALPHA: number; ONE_MINUS_CONSTANT_COLOR: number; ONE_MINUS_DST_ALPHA: number; ONE_MINUS_DST_COLOR: number; ONE_MINUS_SRC_ALPHA: number; ONE_MINUS_SRC_COLOR: number; OUT_OF_MEMORY: number; PACK_ALIGNMENT: number; POINTS: number; POLYGON_OFFSET_FACTOR: number; POLYGON_OFFSET_FILL: number; POLYGON_OFFSET_UNITS: number; RED_BITS: number; RENDERBUFFER: number; RENDERBUFFER_ALPHA_SIZE: number; RENDERBUFFER_BINDING: number; RENDERBUFFER_BLUE_SIZE: number; RENDERBUFFER_DEPTH_SIZE: number; RENDERBUFFER_GREEN_SIZE: number; RENDERBUFFER_HEIGHT: number; RENDERBUFFER_INTERNAL_FORMAT: number; RENDERBUFFER_RED_SIZE: number; RENDERBUFFER_STENCIL_SIZE: number; RENDERBUFFER_WIDTH: number; RENDERER: number; REPEAT: number; REPLACE: number; RGB: number; RGB565: number; RGB5_A1: number; RGBA: number; RGBA4: number; SAMPLER_2D: number; SAMPLER_CUBE: number; SAMPLES: number; SAMPLE_ALPHA_TO_COVERAGE: number; SAMPLE_BUFFERS: number; SAMPLE_COVERAGE: number; SAMPLE_COVERAGE_INVERT: number; SAMPLE_COVERAGE_VALUE: number; SCISSOR_BOX: number; SCISSOR_TEST: number; SHADER_TYPE: number; SHADING_LANGUAGE_VERSION: number; SHORT: number; SRC_ALPHA: number; SRC_ALPHA_SATURATE: number; SRC_COLOR: number; STATIC_DRAW: number; STENCIL_ATTACHMENT: number; STENCIL_BACK_FAIL: number; STENCIL_BACK_FUNC: number; STENCIL_BACK_PASS_DEPTH_FAIL: number; STENCIL_BACK_PASS_DEPTH_PASS: number; STENCIL_BACK_REF: number; STENCIL_BACK_VALUE_MASK: number; STENCIL_BACK_WRITEMASK: number; STENCIL_BITS: number; STENCIL_BUFFER_BIT: number; STENCIL_CLEAR_VALUE: number; STENCIL_FAIL: number; STENCIL_FUNC: number; STENCIL_INDEX: number; STENCIL_INDEX8: number; STENCIL_PASS_DEPTH_FAIL: number; STENCIL_PASS_DEPTH_PASS: number; STENCIL_REF: number; STENCIL_TEST: number; STENCIL_VALUE_MASK: number; STENCIL_WRITEMASK: number; STREAM_DRAW: number; SUBPIXEL_BITS: number; TEXTURE: number; TEXTURE0: number; TEXTURE1: number; TEXTURE10: number; TEXTURE11: number; TEXTURE12: number; TEXTURE13: number; TEXTURE14: number; TEXTURE15: number; TEXTURE16: number; TEXTURE17: number; TEXTURE18: number; TEXTURE19: number; TEXTURE2: number; TEXTURE20: number; TEXTURE21: number; TEXTURE22: number; TEXTURE23: number; TEXTURE24: number; TEXTURE25: number; TEXTURE26: number; TEXTURE27: number; TEXTURE28: number; TEXTURE29: number; TEXTURE3: number; TEXTURE30: number; TEXTURE31: number; TEXTURE4: number; TEXTURE5: number; TEXTURE6: number; TEXTURE7: number; TEXTURE8: number; TEXTURE9: number; TEXTURE_2D: number; TEXTURE_BINDING_2D: number; TEXTURE_BINDING_CUBE_MAP: number; TEXTURE_CUBE_MAP: number; TEXTURE_CUBE_MAP_NEGATIVE_X: number; TEXTURE_CUBE_MAP_NEGATIVE_Y: number; TEXTURE_CUBE_MAP_NEGATIVE_Z: number; TEXTURE_CUBE_MAP_POSITIVE_X: number; TEXTURE_CUBE_MAP_POSITIVE_Y: number; TEXTURE_CUBE_MAP_POSITIVE_Z: number; TEXTURE_MAG_FILTER: number; TEXTURE_MIN_FILTER: number; TEXTURE_WRAP_S: number; TEXTURE_WRAP_T: number; TRIANGLES: number; TRIANGLE_FAN: number; TRIANGLE_STRIP: number; UNPACK_ALIGNMENT: number; UNPACK_COLORSPACE_CONVERSION_WEBGL: number; UNPACK_FLIP_Y_WEBGL: number; UNPACK_PREMULTIPLY_ALPHA_WEBGL: number; UNSIGNED_BYTE: number; UNSIGNED_INT: number; UNSIGNED_SHORT: number; UNSIGNED_SHORT_4_4_4_4: number; UNSIGNED_SHORT_5_5_5_1: number; UNSIGNED_SHORT_5_6_5: number; VALIDATE_STATUS: number; VENDOR: number; VERSION: number; VERTEX_ATTRIB_ARRAY_BUFFER_BINDING: number; VERTEX_ATTRIB_ARRAY_ENABLED: number; VERTEX_ATTRIB_ARRAY_NORMALIZED: number; VERTEX_ATTRIB_ARRAY_POINTER: number; VERTEX_ATTRIB_ARRAY_SIZE: number; VERTEX_ATTRIB_ARRAY_STRIDE: number; VERTEX_ATTRIB_ARRAY_TYPE: number; VERTEX_SHADER: number; VIEWPORT: number; ZERO: number; } interface WebGLShader extends WebGLObject { } declare var WebGLShader: { prototype: WebGLShader; new(): WebGLShader; } interface WebGLShaderPrecisionFormat { precision: number; rangeMax: number; rangeMin: number; } declare var WebGLShaderPrecisionFormat: { prototype: WebGLShaderPrecisionFormat; new(): WebGLShaderPrecisionFormat; } interface WebGLTexture extends WebGLObject { } declare var WebGLTexture: { prototype: WebGLTexture; new(): WebGLTexture; } interface WebGLUniformLocation { } declare var WebGLUniformLocation: { prototype: WebGLUniformLocation; new(): WebGLUniformLocation; } interface WebKitCSSMatrix { a: number; b: number; c: number; d: number; e: number; f: number; m11: number; m12: number; m13: number; m14: number; m21: number; m22: number; m23: number; m24: number; m31: number; m32: number; m33: number; m34: number; m41: number; m42: number; m43: number; m44: number; inverse(): WebKitCSSMatrix; multiply(secondMatrix: WebKitCSSMatrix): WebKitCSSMatrix; rotate(angleX: number, angleY?: number, angleZ?: number): WebKitCSSMatrix; rotateAxisAngle(x: number, y: number, z: number, angle: number): WebKitCSSMatrix; scale(scaleX: number, scaleY?: number, scaleZ?: number): WebKitCSSMatrix; setMatrixValue(value: string): void; skewX(angle: number): WebKitCSSMatrix; skewY(angle: number): WebKitCSSMatrix; toString(): string; translate(x: number, y: number, z?: number): WebKitCSSMatrix; } declare var WebKitCSSMatrix: { prototype: WebKitCSSMatrix; new(text?: string): WebKitCSSMatrix; } interface WebKitPoint { x: number; y: number; } declare var WebKitPoint: { prototype: WebKitPoint; new(x?: number, y?: number): WebKitPoint; } interface WebSocket extends EventTarget { binaryType: string; bufferedAmount: number; extensions: string; onclose: (ev: CloseEvent) => any; onerror: (ev: Event) => any; onmessage: (ev: MessageEvent) => any; onopen: (ev: Event) => any; protocol: string; readyState: number; url: string; close(code?: number, reason?: string): void; send(data: any): void; CLOSED: number; CLOSING: number; CONNECTING: number; OPEN: number; addEventListener(type: "close", listener: (ev: CloseEvent) => any, useCapture?: boolean): void; addEventListener(type: "error", listener: (ev: ErrorEvent) => any, useCapture?: boolean): void; addEventListener(type: "message", listener: (ev: MessageEvent) => any, useCapture?: boolean): void; addEventListener(type: "open", listener: (ev: Event) => any, useCapture?: boolean): void; addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; } declare var WebSocket: { prototype: WebSocket; new(url: string, protocols?: string | string[]): WebSocket; CLOSED: number; CLOSING: number; CONNECTING: number; OPEN: number; } interface WheelEvent extends MouseEvent { deltaMode: number; deltaX: number; deltaY: number; deltaZ: number; getCurrentPoint(element: Element): void; initWheelEvent(typeArg: string, canBubbleArg: boolean, cancelableArg: boolean, viewArg: Window, detailArg: number, screenXArg: number, screenYArg: number, clientXArg: number, clientYArg: number, buttonArg: number, relatedTargetArg: EventTarget, modifiersListArg: string, deltaXArg: number, deltaYArg: number, deltaZArg: number, deltaMode: number): void; DOM_DELTA_LINE: number; DOM_DELTA_PAGE: number; DOM_DELTA_PIXEL: number; } declare var WheelEvent: { prototype: WheelEvent; new(typeArg: string, eventInitDict?: WheelEventInit): WheelEvent; DOM_DELTA_LINE: number; DOM_DELTA_PAGE: number; DOM_DELTA_PIXEL: number; } interface Window extends EventTarget, WindowTimers, WindowSessionStorage, WindowLocalStorage, WindowConsole, GlobalEventHandlers, IDBEnvironment, WindowBase64 { animationStartTime: number; applicationCache: ApplicationCache; clientInformation: Navigator; closed: boolean; crypto: Crypto; defaultStatus: string; devicePixelRatio: number; doNotTrack: string; document: Document; event: Event; external: External; frameElement: Element; frames: Window; history: History; innerHeight: number; innerWidth: number; length: number; location: Location; locationbar: BarProp; menubar: BarProp; msAnimationStartTime: number; msTemplatePrinter: MSTemplatePrinter; name: string; navigator: Navigator; offscreenBuffering: string | boolean; onabort: (ev: Event) => any; onafterprint: (ev: Event) => any; onbeforeprint: (ev: Event) => any; onbeforeunload: (ev: BeforeUnloadEvent) => any; onblur: (ev: FocusEvent) => any; oncanplay: (ev: Event) => any; oncanplaythrough: (ev: Event) => any; onchange: (ev: Event) => any; onclick: (ev: MouseEvent) => any; oncompassneedscalibration: (ev: Event) => any; oncontextmenu: (ev: PointerEvent) => any; ondblclick: (ev: MouseEvent) => any; ondevicemotion: (ev: DeviceMotionEvent) => any; ondeviceorientation: (ev: DeviceOrientationEvent) => any; ondrag: (ev: DragEvent) => any; ondragend: (ev: DragEvent) => any; ondragenter: (ev: DragEvent) => any; ondragleave: (ev: DragEvent) => any; ondragover: (ev: DragEvent) => any; ondragstart: (ev: DragEvent) => any; ondrop: (ev: DragEvent) => any; ondurationchange: (ev: Event) => any; onemptied: (ev: Event) => any; onended: (ev: Event) => any; onerror: ErrorEventHandler; onfocus: (ev: FocusEvent) => any; onhashchange: (ev: HashChangeEvent) => any; oninput: (ev: Event) => any; onkeydown: (ev: KeyboardEvent) => any; onkeypress: (ev: KeyboardEvent) => any; onkeyup: (ev: KeyboardEvent) => any; onload: (ev: Event) => any; onloadeddata: (ev: Event) => any; onloadedmetadata: (ev: Event) => any; onloadstart: (ev: Event) => any; onmessage: (ev: MessageEvent) => any; onmousedown: (ev: MouseEvent) => any; onmouseenter: (ev: MouseEvent) => any; onmouseleave: (ev: MouseEvent) => any; onmousemove: (ev: MouseEvent) => any; onmouseout: (ev: MouseEvent) => any; onmouseover: (ev: MouseEvent) => any; onmouseup: (ev: MouseEvent) => any; onmousewheel: (ev: MouseWheelEvent) => any; onmsgesturechange: (ev: MSGestureEvent) => any; onmsgesturedoubletap: (ev: MSGestureEvent) => any; onmsgestureend: (ev: MSGestureEvent) => any; onmsgesturehold: (ev: MSGestureEvent) => any; onmsgesturestart: (ev: MSGestureEvent) => any; onmsgesturetap: (ev: MSGestureEvent) => any; onmsinertiastart: (ev: MSGestureEvent) => any; onmspointercancel: (ev: MSPointerEvent) => any; onmspointerdown: (ev: MSPointerEvent) => any; onmspointerenter: (ev: MSPointerEvent) => any; onmspointerleave: (ev: MSPointerEvent) => any; onmspointermove: (ev: MSPointerEvent) => any; onmspointerout: (ev: MSPointerEvent) => any; onmspointerover: (ev: MSPointerEvent) => any; onmspointerup: (ev: MSPointerEvent) => any; onoffline: (ev: Event) => any; ononline: (ev: Event) => any; onorientationchange: (ev: Event) => any; onpagehide: (ev: PageTransitionEvent) => any; onpageshow: (ev: PageTransitionEvent) => any; onpause: (ev: Event) => any; onplay: (ev: Event) => any; onplaying: (ev: Event) => any; onpopstate: (ev: PopStateEvent) => any; onprogress: (ev: ProgressEvent) => any; onratechange: (ev: Event) => any; onreadystatechange: (ev: ProgressEvent) => any; onreset: (ev: Event) => any; onresize: (ev: UIEvent) => any; onscroll: (ev: UIEvent) => any; onseeked: (ev: Event) => any; onseeking: (ev: Event) => any; onselect: (ev: UIEvent) => any; onstalled: (ev: Event) => any; onstorage: (ev: StorageEvent) => any; onsubmit: (ev: Event) => any; onsuspend: (ev: Event) => any; ontimeupdate: (ev: Event) => any; ontouchcancel: any; ontouchend: any; ontouchmove: any; ontouchstart: any; onunload: (ev: Event) => any; onvolumechange: (ev: Event) => any; onwaiting: (ev: Event) => any; opener: Window; orientation: string | number; outerHeight: number; outerWidth: number; pageXOffset: number; pageYOffset: number; parent: Window; performance: Performance; personalbar: BarProp; screen: Screen; screenLeft: number; screenTop: number; screenX: number; screenY: number; scrollX: number; scrollY: number; scrollbars: BarProp; self: Window; status: string; statusbar: BarProp; styleMedia: StyleMedia; toolbar: BarProp; top: Window; window: Window; URL: URL; alert(message?: any): void; blur(): void; cancelAnimationFrame(handle: number): void; captureEvents(): void; close(): void; confirm(message?: string): boolean; focus(): void; getComputedStyle(elt: Element, pseudoElt?: string): CSSStyleDeclaration; getMatchedCSSRules(elt: Element, pseudoElt?: string): CSSRuleList; getSelection(): Selection; matchMedia(mediaQuery: string): MediaQueryList; moveBy(x?: number, y?: number): void; moveTo(x?: number, y?: number): void; msCancelRequestAnimationFrame(handle: number): void; msMatchMedia(mediaQuery: string): MediaQueryList; msRequestAnimationFrame(callback: FrameRequestCallback): number; msWriteProfilerMark(profilerMarkName: string): void; open(url?: string, target?: string, features?: string, replace?: boolean): any; postMessage(message: any, targetOrigin: string, ports?: any): void; print(): void; prompt(message?: string, _default?: string): string; releaseEvents(): void; requestAnimationFrame(callback: FrameRequestCallback): number; resizeBy(x?: number, y?: number): void; resizeTo(x?: number, y?: number): void; scroll(x?: number, y?: number): void; scrollBy(x?: number, y?: number): void; scrollTo(x?: number, y?: number): void; webkitConvertPointFromNodeToPage(node: Node, pt: WebKitPoint): WebKitPoint; webkitConvertPointFromPageToNode(node: Node, pt: WebKitPoint): WebKitPoint; addEventListener(type: "MSGestureChange", listener: (ev: MSGestureEvent) => any, useCapture?: boolean): void; addEventListener(type: "MSGestureDoubleTap", listener: (ev: MSGestureEvent) => any, useCapture?: boolean): void; addEventListener(type: "MSGestureEnd", listener: (ev: MSGestureEvent) => any, useCapture?: boolean): void; addEventListener(type: "MSGestureHold", listener: (ev: MSGestureEvent) => any, useCapture?: boolean): void; addEventListener(type: "MSGestureStart", listener: (ev: MSGestureEvent) => any, useCapture?: boolean): void; addEventListener(type: "MSGestureTap", listener: (ev: MSGestureEvent) => any, useCapture?: boolean): void; addEventListener(type: "MSInertiaStart", listener: (ev: MSGestureEvent) => any, useCapture?: boolean): void; addEventListener(type: "MSPointerCancel", listener: (ev: MSPointerEvent) => any, useCapture?: boolean): void; addEventListener(type: "MSPointerDown", listener: (ev: MSPointerEvent) => any, useCapture?: boolean): void; addEventListener(type: "MSPointerEnter", listener: (ev: MSPointerEvent) => any, useCapture?: boolean): void; addEventListener(type: "MSPointerLeave", listener: (ev: MSPointerEvent) => any, useCapture?: boolean): void; addEventListener(type: "MSPointerMove", listener: (ev: MSPointerEvent) => any, useCapture?: boolean): void; addEventListener(type: "MSPointerOut", listener: (ev: MSPointerEvent) => any, useCapture?: boolean): void; addEventListener(type: "MSPointerOver", listener: (ev: MSPointerEvent) => any, useCapture?: boolean): void; addEventListener(type: "MSPointerUp", listener: (ev: MSPointerEvent) => any, useCapture?: boolean): void; addEventListener(type: "abort", listener: (ev: UIEvent) => any, useCapture?: boolean): void; addEventListener(type: "afterprint", listener: (ev: Event) => any, useCapture?: boolean): void; addEventListener(type: "beforeprint", listener: (ev: Event) => any, useCapture?: boolean): void; addEventListener(type: "beforeunload", listener: (ev: BeforeUnloadEvent) => any, useCapture?: boolean): void; addEventListener(type: "blur", listener: (ev: FocusEvent) => any, useCapture?: boolean): void; addEventListener(type: "canplay", listener: (ev: Event) => any, useCapture?: boolean): void; addEventListener(type: "canplaythrough", listener: (ev: Event) => any, useCapture?: boolean): void; addEventListener(type: "change", listener: (ev: Event) => any, useCapture?: boolean): void; addEventListener(type: "click", listener: (ev: MouseEvent) => any, useCapture?: boolean): void; addEventListener(type: "compassneedscalibration", listener: (ev: Event) => any, useCapture?: boolean): void; addEventListener(type: "contextmenu", listener: (ev: PointerEvent) => any, useCapture?: boolean): void; addEventListener(type: "dblclick", listener: (ev: MouseEvent) => any, useCapture?: boolean): void; addEventListener(type: "devicemotion", listener: (ev: DeviceMotionEvent) => any, useCapture?: boolean): void; addEventListener(type: "deviceorientation", listener: (ev: DeviceOrientationEvent) => any, useCapture?: boolean): void; addEventListener(type: "drag", listener: (ev: DragEvent) => any, useCapture?: boolean): void; addEventListener(type: "dragend", listener: (ev: DragEvent) => any, useCapture?: boolean): void; addEventListener(type: "dragenter", listener: (ev: DragEvent) => any, useCapture?: boolean): void; addEventListener(type: "dragleave", listener: (ev: DragEvent) => any, useCapture?: boolean): void; addEventListener(type: "dragover", listener: (ev: DragEvent) => any, useCapture?: boolean): void; addEventListener(type: "dragstart", listener: (ev: DragEvent) => any, useCapture?: boolean): void; addEventListener(type: "drop", listener: (ev: DragEvent) => any, useCapture?: boolean): void; addEventListener(type: "durationchange", listener: (ev: Event) => any, useCapture?: boolean): void; addEventListener(type: "emptied", listener: (ev: Event) => any, useCapture?: boolean): void; addEventListener(type: "ended", listener: (ev: Event) => any, useCapture?: boolean): void; addEventListener(type: "focus", listener: (ev: FocusEvent) => any, useCapture?: boolean): void; addEventListener(type: "hashchange", listener: (ev: HashChangeEvent) => any, useCapture?: boolean): void; addEventListener(type: "input", listener: (ev: Event) => any, useCapture?: boolean): void; addEventListener(type: "keydown", listener: (ev: KeyboardEvent) => any, useCapture?: boolean): void; addEventListener(type: "keypress", listener: (ev: KeyboardEvent) => any, useCapture?: boolean): void; addEventListener(type: "keyup", listener: (ev: KeyboardEvent) => any, useCapture?: boolean): void; addEventListener(type: "load", listener: (ev: Event) => any, useCapture?: boolean): void; addEventListener(type: "loadeddata", listener: (ev: Event) => any, useCapture?: boolean): void; addEventListener(type: "loadedmetadata", listener: (ev: Event) => any, useCapture?: boolean): void; addEventListener(type: "loadstart", listener: (ev: Event) => any, useCapture?: boolean): void; addEventListener(type: "message", listener: (ev: MessageEvent) => any, useCapture?: boolean): void; addEventListener(type: "mousedown", listener: (ev: MouseEvent) => any, useCapture?: boolean): void; addEventListener(type: "mouseenter", listener: (ev: MouseEvent) => any, useCapture?: boolean): void; addEventListener(type: "mouseleave", listener: (ev: MouseEvent) => any, useCapture?: boolean): void; addEventListener(type: "mousemove", listener: (ev: MouseEvent) => any, useCapture?: boolean): void; addEventListener(type: "mouseout", listener: (ev: MouseEvent) => any, useCapture?: boolean): void; addEventListener(type: "mouseover", listener: (ev: MouseEvent) => any, useCapture?: boolean): void; addEventListener(type: "mouseup", listener: (ev: MouseEvent) => any, useCapture?: boolean): void; addEventListener(type: "mousewheel", listener: (ev: MouseWheelEvent) => any, useCapture?: boolean): void; addEventListener(type: "offline", listener: (ev: Event) => any, useCapture?: boolean): void; addEventListener(type: "online", listener: (ev: Event) => any, useCapture?: boolean): void; addEventListener(type: "orientationchange", listener: (ev: Event) => any, useCapture?: boolean): void; addEventListener(type: "pagehide", listener: (ev: PageTransitionEvent) => any, useCapture?: boolean): void; addEventListener(type: "pageshow", listener: (ev: PageTransitionEvent) => any, useCapture?: boolean): void; addEventListener(type: "pause", listener: (ev: Event) => any, useCapture?: boolean): void; addEventListener(type: "play", listener: (ev: Event) => any, useCapture?: boolean): void; addEventListener(type: "playing", listener: (ev: Event) => any, useCapture?: boolean): void; addEventListener(type: "pointercancel", listener: (ev: PointerEvent) => any, useCapture?: boolean): void; addEventListener(type: "pointerdown", listener: (ev: PointerEvent) => any, useCapture?: boolean): void; addEventListener(type: "pointerenter", listener: (ev: PointerEvent) => any, useCapture?: boolean): void; addEventListener(type: "pointerleave", listener: (ev: PointerEvent) => any, useCapture?: boolean): void; addEventListener(type: "pointermove", listener: (ev: PointerEvent) => any, useCapture?: boolean): void; addEventListener(type: "pointerout", listener: (ev: PointerEvent) => any, useCapture?: boolean): void; addEventListener(type: "pointerover", listener: (ev: PointerEvent) => any, useCapture?: boolean): void; addEventListener(type: "pointerup", listener: (ev: PointerEvent) => any, useCapture?: boolean): void; addEventListener(type: "popstate", listener: (ev: PopStateEvent) => any, useCapture?: boolean): void; addEventListener(type: "progress", listener: (ev: ProgressEvent) => any, useCapture?: boolean): void; addEventListener(type: "ratechange", listener: (ev: Event) => any, useCapture?: boolean): void; addEventListener(type: "readystatechange", listener: (ev: ProgressEvent) => any, useCapture?: boolean): void; addEventListener(type: "reset", listener: (ev: Event) => any, useCapture?: boolean): void; addEventListener(type: "resize", listener: (ev: UIEvent) => any, useCapture?: boolean): void; addEventListener(type: "scroll", listener: (ev: UIEvent) => any, useCapture?: boolean): void; addEventListener(type: "seeked", listener: (ev: Event) => any, useCapture?: boolean): void; addEventListener(type: "seeking", listener: (ev: Event) => any, useCapture?: boolean): void; addEventListener(type: "select", listener: (ev: UIEvent) => any, useCapture?: boolean): void; addEventListener(type: "stalled", listener: (ev: Event) => any, useCapture?: boolean): void; addEventListener(type: "storage", listener: (ev: StorageEvent) => any, useCapture?: boolean): void; addEventListener(type: "submit", listener: (ev: Event) => any, useCapture?: boolean): void; addEventListener(type: "suspend", listener: (ev: Event) => any, useCapture?: boolean): void; addEventListener(type: "timeupdate", listener: (ev: Event) => any, useCapture?: boolean): void; addEventListener(type: "unload", listener: (ev: Event) => any, useCapture?: boolean): void; addEventListener(type: "volumechange", listener: (ev: Event) => any, useCapture?: boolean): void; addEventListener(type: "waiting", listener: (ev: Event) => any, useCapture?: boolean): void; addEventListener(type: "wheel", listener: (ev: WheelEvent) => any, useCapture?: boolean): void; addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; [index: number]: Window; } declare var Window: { prototype: Window; new(): Window; } interface Worker extends EventTarget, AbstractWorker { onmessage: (ev: MessageEvent) => any; postMessage(message: any, ports?: any): void; terminate(): void; addEventListener(type: "error", listener: (ev: ErrorEvent) => any, useCapture?: boolean): void; addEventListener(type: "message", listener: (ev: MessageEvent) => any, useCapture?: boolean): void; addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; } declare var Worker: { prototype: Worker; new(stringUrl: string): Worker; } interface XMLDocument extends Document { } declare var XMLDocument: { prototype: XMLDocument; new(): XMLDocument; } interface XMLHttpRequest extends EventTarget, XMLHttpRequestEventTarget { msCaching: string; onreadystatechange: (ev: ProgressEvent) => any; readyState: number; response: any; responseBody: any; responseText: string; responseType: string; responseXML: any; status: number; statusText: string; timeout: number; upload: XMLHttpRequestUpload; withCredentials: boolean; abort(): void; getAllResponseHeaders(): string; getResponseHeader(header: string): string; msCachingEnabled(): boolean; open(method: string, url: string, async?: boolean, user?: string, password?: string): void; overrideMimeType(mime: string): void; send(data?: Document): void; send(data?: string): void; send(data?: any): void; setRequestHeader(header: string, value: string): void; DONE: number; HEADERS_RECEIVED: number; LOADING: number; OPENED: number; UNSENT: number; addEventListener(type: "abort", listener: (ev: Event) => any, useCapture?: boolean): void; addEventListener(type: "error", listener: (ev: ErrorEvent) => any, useCapture?: boolean): void; addEventListener(type: "load", listener: (ev: Event) => any, useCapture?: boolean): void; addEventListener(type: "loadend", listener: (ev: ProgressEvent) => any, useCapture?: boolean): void; addEventListener(type: "loadstart", listener: (ev: Event) => any, useCapture?: boolean): void; addEventListener(type: "progress", listener: (ev: ProgressEvent) => any, useCapture?: boolean): void; addEventListener(type: "readystatechange", listener: (ev: ProgressEvent) => any, useCapture?: boolean): void; addEventListener(type: "timeout", listener: (ev: ProgressEvent) => any, useCapture?: boolean): void; addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; } declare var XMLHttpRequest: { prototype: XMLHttpRequest; new(): XMLHttpRequest; DONE: number; HEADERS_RECEIVED: number; LOADING: number; OPENED: number; UNSENT: number; create(): XMLHttpRequest; } interface XMLHttpRequestUpload extends EventTarget, XMLHttpRequestEventTarget { addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; } declare var XMLHttpRequestUpload: { prototype: XMLHttpRequestUpload; new(): XMLHttpRequestUpload; } interface XMLSerializer { serializeToString(target: Node): string; } declare var XMLSerializer: { prototype: XMLSerializer; new(): XMLSerializer; } interface XPathEvaluator { createExpression(expression: string, resolver: XPathNSResolver): XPathExpression; createNSResolver(nodeResolver?: Node): XPathNSResolver; evaluate(expression: string, contextNode: Node, resolver: XPathNSResolver, type: number, result: XPathResult): XPathResult; } declare var XPathEvaluator: { prototype: XPathEvaluator; new(): XPathEvaluator; } interface XPathExpression { evaluate(contextNode: Node, type: number, result: XPathResult): XPathExpression; } declare var XPathExpression: { prototype: XPathExpression; new(): XPathExpression; } interface XPathNSResolver { lookupNamespaceURI(prefix: string): string; } declare var XPathNSResolver: { prototype: XPathNSResolver; new(): XPathNSResolver; } interface XPathResult { booleanValue: boolean; invalidIteratorState: boolean; numberValue: number; resultType: number; singleNodeValue: Node; snapshotLength: number; stringValue: string; iterateNext(): Node; snapshotItem(index: number): Node; ANY_TYPE: number; ANY_UNORDERED_NODE_TYPE: number; BOOLEAN_TYPE: number; FIRST_ORDERED_NODE_TYPE: number; NUMBER_TYPE: number; ORDERED_NODE_ITERATOR_TYPE: number; ORDERED_NODE_SNAPSHOT_TYPE: number; STRING_TYPE: number; UNORDERED_NODE_ITERATOR_TYPE: number; UNORDERED_NODE_SNAPSHOT_TYPE: number; } declare var XPathResult: { prototype: XPathResult; new(): XPathResult; ANY_TYPE: number; ANY_UNORDERED_NODE_TYPE: number; BOOLEAN_TYPE: number; FIRST_ORDERED_NODE_TYPE: number; NUMBER_TYPE: number; ORDERED_NODE_ITERATOR_TYPE: number; ORDERED_NODE_SNAPSHOT_TYPE: number; STRING_TYPE: number; UNORDERED_NODE_ITERATOR_TYPE: number; UNORDERED_NODE_SNAPSHOT_TYPE: number; } interface XSLTProcessor { clearParameters(): void; getParameter(namespaceURI: string, localName: string): any; importStylesheet(style: Node): void; removeParameter(namespaceURI: string, localName: string): void; reset(): void; setParameter(namespaceURI: string, localName: string, value: any): void; transformToDocument(source: Node): Document; transformToFragment(source: Node, document: Document): DocumentFragment; } declare var XSLTProcessor: { prototype: XSLTProcessor; new(): XSLTProcessor; } interface AbstractWorker { onerror: (ev: Event) => any; addEventListener(type: "error", listener: (ev: ErrorEvent) => any, useCapture?: boolean): void; addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; } interface ChildNode { remove(): void; } interface DOML2DeprecatedColorProperty { color: string; } interface DOML2DeprecatedSizeProperty { size: number; } interface DocumentEvent { createEvent(eventInterface:"AnimationEvent"): AnimationEvent; createEvent(eventInterface:"AriaRequestEvent"): AriaRequestEvent; createEvent(eventInterface:"AudioProcessingEvent"): AudioProcessingEvent; createEvent(eventInterface:"BeforeUnloadEvent"): BeforeUnloadEvent; createEvent(eventInterface:"ClipboardEvent"): ClipboardEvent; createEvent(eventInterface:"CloseEvent"): CloseEvent; createEvent(eventInterface:"CommandEvent"): CommandEvent; createEvent(eventInterface:"CompositionEvent"): CompositionEvent; createEvent(eventInterface:"CustomEvent"): CustomEvent; createEvent(eventInterface:"DeviceMotionEvent"): DeviceMotionEvent; createEvent(eventInterface:"DeviceOrientationEvent"): DeviceOrientationEvent; createEvent(eventInterface:"DragEvent"): DragEvent; createEvent(eventInterface:"ErrorEvent"): ErrorEvent; createEvent(eventInterface:"Event"): Event; createEvent(eventInterface:"Events"): Event; createEvent(eventInterface:"FocusEvent"): FocusEvent; createEvent(eventInterface:"GamepadEvent"): GamepadEvent; createEvent(eventInterface:"HashChangeEvent"): HashChangeEvent; createEvent(eventInterface:"IDBVersionChangeEvent"): IDBVersionChangeEvent; createEvent(eventInterface:"KeyboardEvent"): KeyboardEvent; createEvent(eventInterface:"LongRunningScriptDetectedEvent"): LongRunningScriptDetectedEvent; createEvent(eventInterface:"MSGestureEvent"): MSGestureEvent; createEvent(eventInterface:"MSManipulationEvent"): MSManipulationEvent; createEvent(eventInterface:"MSMediaKeyMessageEvent"): MSMediaKeyMessageEvent; createEvent(eventInterface:"MSMediaKeyNeededEvent"): MSMediaKeyNeededEvent; createEvent(eventInterface:"MSPointerEvent"): MSPointerEvent; createEvent(eventInterface:"MSSiteModeEvent"): MSSiteModeEvent; createEvent(eventInterface:"MessageEvent"): MessageEvent; createEvent(eventInterface:"MouseEvent"): MouseEvent; createEvent(eventInterface:"MouseEvents"): MouseEvent; createEvent(eventInterface:"MouseWheelEvent"): MouseWheelEvent; createEvent(eventInterface:"MutationEvent"): MutationEvent; createEvent(eventInterface:"MutationEvents"): MutationEvent; createEvent(eventInterface:"NavigationCompletedEvent"): NavigationCompletedEvent; createEvent(eventInterface:"NavigationEvent"): NavigationEvent; createEvent(eventInterface:"NavigationEventWithReferrer"): NavigationEventWithReferrer; createEvent(eventInterface:"OfflineAudioCompletionEvent"): OfflineAudioCompletionEvent; createEvent(eventInterface:"PageTransitionEvent"): PageTransitionEvent; createEvent(eventInterface:"PermissionRequestedEvent"): PermissionRequestedEvent; createEvent(eventInterface:"PointerEvent"): PointerEvent; createEvent(eventInterface:"PopStateEvent"): PopStateEvent; createEvent(eventInterface:"ProgressEvent"): ProgressEvent; createEvent(eventInterface:"SVGZoomEvent"): SVGZoomEvent; createEvent(eventInterface:"SVGZoomEvents"): SVGZoomEvent; createEvent(eventInterface:"ScriptNotifyEvent"): ScriptNotifyEvent; createEvent(eventInterface:"StorageEvent"): StorageEvent; createEvent(eventInterface:"TextEvent"): TextEvent; createEvent(eventInterface:"TouchEvent"): TouchEvent; createEvent(eventInterface:"TrackEvent"): TrackEvent; createEvent(eventInterface:"TransitionEvent"): TransitionEvent; createEvent(eventInterface:"UIEvent"): UIEvent; createEvent(eventInterface:"UIEvents"): UIEvent; createEvent(eventInterface:"UnviewableContentIdentifiedEvent"): UnviewableContentIdentifiedEvent; createEvent(eventInterface:"WebGLContextEvent"): WebGLContextEvent; createEvent(eventInterface:"WheelEvent"): WheelEvent; createEvent(eventInterface: string): Event; } interface ElementTraversal { childElementCount: number; firstElementChild: Element; lastElementChild: Element; nextElementSibling: Element; previousElementSibling: Element; } interface GetSVGDocument { getSVGDocument(): Document; } interface GlobalEventHandlers { onpointercancel: (ev: PointerEvent) => any; onpointerdown: (ev: PointerEvent) => any; onpointerenter: (ev: PointerEvent) => any; onpointerleave: (ev: PointerEvent) => any; onpointermove: (ev: PointerEvent) => any; onpointerout: (ev: PointerEvent) => any; onpointerover: (ev: PointerEvent) => any; onpointerup: (ev: PointerEvent) => any; onwheel: (ev: WheelEvent) => any; addEventListener(type: "pointercancel", listener: (ev: PointerEvent) => any, useCapture?: boolean): void; addEventListener(type: "pointerdown", listener: (ev: PointerEvent) => any, useCapture?: boolean): void; addEventListener(type: "pointerenter", listener: (ev: PointerEvent) => any, useCapture?: boolean): void; addEventListener(type: "pointerleave", listener: (ev: PointerEvent) => any, useCapture?: boolean): void; addEventListener(type: "pointermove", listener: (ev: PointerEvent) => any, useCapture?: boolean): void; addEventListener(type: "pointerout", listener: (ev: PointerEvent) => any, useCapture?: boolean): void; addEventListener(type: "pointerover", listener: (ev: PointerEvent) => any, useCapture?: boolean): void; addEventListener(type: "pointerup", listener: (ev: PointerEvent) => any, useCapture?: boolean): void; addEventListener(type: "wheel", listener: (ev: WheelEvent) => any, useCapture?: boolean): void; addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; } interface HTMLTableAlignment { /** * Sets or retrieves a value that you can use to implement your own ch functionality for the object. */ ch: string; /** * Sets or retrieves a value that you can use to implement your own chOff functionality for the object. */ chOff: string; /** * Sets or retrieves how text and other content are vertically aligned within the object that contains them. */ vAlign: string; } interface IDBEnvironment { indexedDB: IDBFactory; msIndexedDB: IDBFactory; } interface LinkStyle { sheet: StyleSheet; } interface MSBaseReader { onabort: (ev: Event) => any; onerror: (ev: Event) => any; onload: (ev: Event) => any; onloadend: (ev: ProgressEvent) => any; onloadstart: (ev: Event) => any; onprogress: (ev: ProgressEvent) => any; readyState: number; result: any; abort(): void; DONE: number; EMPTY: number; LOADING: number; addEventListener(type: "abort", listener: (ev: Event) => any, useCapture?: boolean): void; addEventListener(type: "error", listener: (ev: ErrorEvent) => any, useCapture?: boolean): void; addEventListener(type: "load", listener: (ev: Event) => any, useCapture?: boolean): void; addEventListener(type: "loadend", listener: (ev: ProgressEvent) => any, useCapture?: boolean): void; addEventListener(type: "loadstart", listener: (ev: Event) => any, useCapture?: boolean): void; addEventListener(type: "progress", listener: (ev: ProgressEvent) => any, useCapture?: boolean): void; addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; } interface MSFileSaver { msSaveBlob(blob: any, defaultName?: string): boolean; msSaveOrOpenBlob(blob: any, defaultName?: string): boolean; } interface MSNavigatorDoNotTrack { confirmSiteSpecificTrackingException(args: ConfirmSiteSpecificExceptionsInformation): boolean; confirmWebWideTrackingException(args: ExceptionInformation): boolean; removeSiteSpecificTrackingException(args: ExceptionInformation): void; removeWebWideTrackingException(args: ExceptionInformation): void; storeSiteSpecificTrackingException(args: StoreSiteSpecificExceptionsInformation): void; storeWebWideTrackingException(args: StoreExceptionsInformation): void; } interface NavigatorContentUtils { } interface NavigatorGeolocation { geolocation: Geolocation; } interface NavigatorID { appName: string; appVersion: string; platform: string; product: string; productSub: string; userAgent: string; vendor: string; vendorSub: string; } interface NavigatorOnLine { onLine: boolean; } interface NavigatorStorageUtils { } interface NodeSelector { querySelector(selectors: string): Element; querySelectorAll(selectors: string): NodeListOf<Element>; } interface RandomSource { getRandomValues(array: ArrayBufferView): ArrayBufferView; } interface SVGAnimatedPathData { pathSegList: SVGPathSegList; } interface SVGAnimatedPoints { animatedPoints: SVGPointList; points: SVGPointList; } interface SVGExternalResourcesRequired { externalResourcesRequired: SVGAnimatedBoolean; } interface SVGFilterPrimitiveStandardAttributes extends SVGStylable { height: SVGAnimatedLength; result: SVGAnimatedString; width: SVGAnimatedLength; x: SVGAnimatedLength; y: SVGAnimatedLength; } interface SVGFitToViewBox { preserveAspectRatio: SVGAnimatedPreserveAspectRatio; viewBox: SVGAnimatedRect; } interface SVGLangSpace { xmllang: string; xmlspace: string; } interface SVGLocatable { farthestViewportElement: SVGElement; nearestViewportElement: SVGElement; getBBox(): SVGRect; getCTM(): SVGMatrix; getScreenCTM(): SVGMatrix; getTransformToElement(element: SVGElement): SVGMatrix; } interface SVGStylable { className: any; style: CSSStyleDeclaration; } interface SVGTests { requiredExtensions: SVGStringList; requiredFeatures: SVGStringList; systemLanguage: SVGStringList; hasExtension(extension: string): boolean; } interface SVGTransformable extends SVGLocatable { transform: SVGAnimatedTransformList; } interface SVGURIReference { href: SVGAnimatedString; } interface WindowBase64 { atob(encodedString: string): string; btoa(rawString: string): string; } interface WindowConsole { console: Console; } interface WindowLocalStorage { localStorage: Storage; } interface WindowSessionStorage { sessionStorage: Storage; } interface WindowTimers extends Object, WindowTimersExtension { clearInterval(handle: number): void; clearTimeout(handle: number): void; setInterval(handler: any, timeout?: any, ...args: any[]): number; setTimeout(handler: any, timeout?: any, ...args: any[]): number; } interface WindowTimersExtension { clearImmediate(handle: number): void; msClearImmediate(handle: number): void; msSetImmediate(expression: any, ...args: any[]): number; setImmediate(expression: any, ...args: any[]): number; } interface XMLHttpRequestEventTarget { onabort: (ev: Event) => any; onerror: (ev: Event) => any; onload: (ev: Event) => any; onloadend: (ev: ProgressEvent) => any; onloadstart: (ev: Event) => any; onprogress: (ev: ProgressEvent) => any; ontimeout: (ev: ProgressEvent) => any; addEventListener(type: "abort", listener: (ev: Event) => any, useCapture?: boolean): void; addEventListener(type: "error", listener: (ev: ErrorEvent) => any, useCapture?: boolean): void; addEventListener(type: "load", listener: (ev: Event) => any, useCapture?: boolean): void; addEventListener(type: "loadend", listener: (ev: ProgressEvent) => any, useCapture?: boolean): void; addEventListener(type: "loadstart", listener: (ev: Event) => any, useCapture?: boolean): void; addEventListener(type: "progress", listener: (ev: ProgressEvent) => any, useCapture?: boolean): void; addEventListener(type: "timeout", listener: (ev: ProgressEvent) => any, useCapture?: boolean): void; addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; } interface NodeListOf<TNode extends Node> extends NodeList { length: number; item(index: number): TNode; [index: number]: TNode; } interface BlobPropertyBag { type?: string; endings?: string; } interface FilePropertyBag { type?: string; lastModified?: number; } interface EventListenerObject { handleEvent(evt: Event): void; } declare type EventListenerOrEventListenerObject = EventListener | EventListenerObject; interface ErrorEventHandler { (message: string, filename?: string, lineno?: number, colno?: number, error?:Error): void; } interface PositionCallback { (position: Position): void; } interface PositionErrorCallback { (error: PositionError): void; } interface MediaQueryListListener { (mql: MediaQueryList): void; } interface MSLaunchUriCallback { (): void; } interface FrameRequestCallback { (time: number): void; } interface MSUnsafeFunctionCallback { (): any; } interface MSExecAtPriorityFunctionCallback { (...args: any[]): any; } interface MutationCallback { (mutations: MutationRecord[], observer: MutationObserver): void; } interface DecodeSuccessCallback { (decodedData: AudioBuffer): void; } interface DecodeErrorCallback { (): void; } interface FunctionStringCallback { (data: string): void; } declare var Audio: {new(src?: string): HTMLAudioElement; }; declare var Image: {new(width?: number, height?: number): HTMLImageElement; }; declare var Option: {new(text?: string, value?: string, defaultSelected?: boolean, selected?: boolean): HTMLOptionElement; }; declare var animationStartTime: number; declare var applicationCache: ApplicationCache; declare var clientInformation: Navigator; declare var closed: boolean; declare var crypto: Crypto; declare var defaultStatus: string; declare var devicePixelRatio: number; declare var doNotTrack: string; declare var document: Document; declare var event: Event; declare var external: External; declare var frameElement: Element; declare var frames: Window; declare var history: History; declare var innerHeight: number; declare var innerWidth: number; declare var length: number; declare var location: Location; declare var locationbar: BarProp; declare var menubar: BarProp; declare var msAnimationStartTime: number; declare var msTemplatePrinter: MSTemplatePrinter; declare var name: string; declare var navigator: Navigator; declare var offscreenBuffering: string | boolean; declare var onabort: (ev: Event) => any; declare var onafterprint: (ev: Event) => any; declare var onbeforeprint: (ev: Event) => any; declare var onbeforeunload: (ev: BeforeUnloadEvent) => any; declare var onblur: (ev: FocusEvent) => any; declare var oncanplay: (ev: Event) => any; declare var oncanplaythrough: (ev: Event) => any; declare var onchange: (ev: Event) => any; declare var onclick: (ev: MouseEvent) => any; declare var oncompassneedscalibration: (ev: Event) => any; declare var oncontextmenu: (ev: PointerEvent) => any; declare var ondblclick: (ev: MouseEvent) => any; declare var ondevicemotion: (ev: DeviceMotionEvent) => any; declare var ondeviceorientation: (ev: DeviceOrientationEvent) => any; declare var ondrag: (ev: DragEvent) => any; declare var ondragend: (ev: DragEvent) => any; declare var ondragenter: (ev: DragEvent) => any; declare var ondragleave: (ev: DragEvent) => any; declare var ondragover: (ev: DragEvent) => any; declare var ondragstart: (ev: DragEvent) => any; declare var ondrop: (ev: DragEvent) => any; declare var ondurationchange: (ev: Event) => any; declare var onemptied: (ev: Event) => any; declare var onended: (ev: Event) => any; declare var onerror: ErrorEventHandler; declare var onfocus: (ev: FocusEvent) => any; declare var onhashchange: (ev: HashChangeEvent) => any; declare var oninput: (ev: Event) => any; declare var onkeydown: (ev: KeyboardEvent) => any; declare var onkeypress: (ev: KeyboardEvent) => any; declare var onkeyup: (ev: KeyboardEvent) => any; declare var onload: (ev: Event) => any; declare var onloadeddata: (ev: Event) => any; declare var onloadedmetadata: (ev: Event) => any; declare var onloadstart: (ev: Event) => any; declare var onmessage: (ev: MessageEvent) => any; declare var onmousedown: (ev: MouseEvent) => any; declare var onmouseenter: (ev: MouseEvent) => any; declare var onmouseleave: (ev: MouseEvent) => any; declare var onmousemove: (ev: MouseEvent) => any; declare var onmouseout: (ev: MouseEvent) => any; declare var onmouseover: (ev: MouseEvent) => any; declare var onmouseup: (ev: MouseEvent) => any; declare var onmousewheel: (ev: MouseWheelEvent) => any; declare var onmsgesturechange: (ev: MSGestureEvent) => any; declare var onmsgesturedoubletap: (ev: MSGestureEvent) => any; declare var onmsgestureend: (ev: MSGestureEvent) => any; declare var onmsgesturehold: (ev: MSGestureEvent) => any; declare var onmsgesturestart: (ev: MSGestureEvent) => any; declare var onmsgesturetap: (ev: MSGestureEvent) => any; declare var onmsinertiastart: (ev: MSGestureEvent) => any; declare var onmspointercancel: (ev: MSPointerEvent) => any; declare var onmspointerdown: (ev: MSPointerEvent) => any; declare var onmspointerenter: (ev: MSPointerEvent) => any; declare var onmspointerleave: (ev: MSPointerEvent) => any; declare var onmspointermove: (ev: MSPointerEvent) => any; declare var onmspointerout: (ev: MSPointerEvent) => any; declare var onmspointerover: (ev: MSPointerEvent) => any; declare var onmspointerup: (ev: MSPointerEvent) => any; declare var onoffline: (ev: Event) => any; declare var ononline: (ev: Event) => any; declare var onorientationchange: (ev: Event) => any; declare var onpagehide: (ev: PageTransitionEvent) => any; declare var onpageshow: (ev: PageTransitionEvent) => any; declare var onpause: (ev: Event) => any; declare var onplay: (ev: Event) => any; declare var onplaying: (ev: Event) => any; declare var onpopstate: (ev: PopStateEvent) => any; declare var onprogress: (ev: ProgressEvent) => any; declare var onratechange: (ev: Event) => any; declare var onreadystatechange: (ev: ProgressEvent) => any; declare var onreset: (ev: Event) => any; declare var onresize: (ev: UIEvent) => any; declare var onscroll: (ev: UIEvent) => any; declare var onseeked: (ev: Event) => any; declare var onseeking: (ev: Event) => any; declare var onselect: (ev: UIEvent) => any; declare var onstalled: (ev: Event) => any; declare var onstorage: (ev: StorageEvent) => any; declare var onsubmit: (ev: Event) => any; declare var onsuspend: (ev: Event) => any; declare var ontimeupdate: (ev: Event) => any; declare var ontouchcancel: any; declare var ontouchend: any; declare var ontouchmove: any; declare var ontouchstart: any; declare var onunload: (ev: Event) => any; declare var onvolumechange: (ev: Event) => any; declare var onwaiting: (ev: Event) => any; declare var opener: Window; declare var orientation: string | number; declare var outerHeight: number; declare var outerWidth: number; declare var pageXOffset: number; declare var pageYOffset: number; declare var parent: Window; declare var performance: Performance; declare var personalbar: BarProp; declare var screen: Screen; declare var screenLeft: number; declare var screenTop: number; declare var screenX: number; declare var screenY: number; declare var scrollX: number; declare var scrollY: number; declare var scrollbars: BarProp; declare var self: Window; declare var status: string; declare var statusbar: BarProp; declare var styleMedia: StyleMedia; declare var toolbar: BarProp; declare var top: Window; declare var window: Window; declare var URL: URL; declare function alert(message?: any): void; declare function blur(): void; declare function cancelAnimationFrame(handle: number): void; declare function captureEvents(): void; declare function close(): void; declare function confirm(message?: string): boolean; declare function focus(): void; declare function getComputedStyle(elt: Element, pseudoElt?: string): CSSStyleDeclaration; declare function getMatchedCSSRules(elt: Element, pseudoElt?: string): CSSRuleList; declare function getSelection(): Selection; declare function matchMedia(mediaQuery: string): MediaQueryList; declare function moveBy(x?: number, y?: number): void; declare function moveTo(x?: number, y?: number): void; declare function msCancelRequestAnimationFrame(handle: number): void; declare function msMatchMedia(mediaQuery: string): MediaQueryList; declare function msRequestAnimationFrame(callback: FrameRequestCallback): number; declare function msWriteProfilerMark(profilerMarkName: string): void; declare function open(url?: string, target?: string, features?: string, replace?: boolean): any; declare function postMessage(message: any, targetOrigin: string, ports?: any): void; declare function print(): void; declare function prompt(message?: string, _default?: string): string; declare function releaseEvents(): void; declare function requestAnimationFrame(callback: FrameRequestCallback): number; declare function resizeBy(x?: number, y?: number): void; declare function resizeTo(x?: number, y?: number): void; declare function scroll(x?: number, y?: number): void; declare function scrollBy(x?: number, y?: number): void; declare function scrollTo(x?: number, y?: number): void; declare function webkitConvertPointFromNodeToPage(node: Node, pt: WebKitPoint): WebKitPoint; declare function webkitConvertPointFromPageToNode(node: Node, pt: WebKitPoint): WebKitPoint; declare function toString(): string; declare function addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; declare function dispatchEvent(evt: Event): boolean; declare function removeEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; declare function clearInterval(handle: number): void; declare function clearTimeout(handle: number): void; declare function setInterval(handler: any, timeout?: any, ...args: any[]): number; declare function setTimeout(handler: any, timeout?: any, ...args: any[]): number; declare function clearImmediate(handle: number): void; declare function msClearImmediate(handle: number): void; declare function msSetImmediate(expression: any, ...args: any[]): number; declare function setImmediate(expression: any, ...args: any[]): number; declare var sessionStorage: Storage; declare var localStorage: Storage; declare var console: Console; declare var onpointercancel: (ev: PointerEvent) => any; declare var onpointerdown: (ev: PointerEvent) => any; declare var onpointerenter: (ev: PointerEvent) => any; declare var onpointerleave: (ev: PointerEvent) => any; declare var onpointermove: (ev: PointerEvent) => any; declare var onpointerout: (ev: PointerEvent) => any; declare var onpointerover: (ev: PointerEvent) => any; declare var onpointerup: (ev: PointerEvent) => any; declare var onwheel: (ev: WheelEvent) => any; declare var indexedDB: IDBFactory; declare var msIndexedDB: IDBFactory; declare function atob(encodedString: string): string; declare function btoa(rawString: string): string; declare function addEventListener(type: "MSGestureChange", listener: (ev: MSGestureEvent) => any, useCapture?: boolean): void; declare function addEventListener(type: "MSGestureDoubleTap", listener: (ev: MSGestureEvent) => any, useCapture?: boolean): void; declare function addEventListener(type: "MSGestureEnd", listener: (ev: MSGestureEvent) => any, useCapture?: boolean): void; declare function addEventListener(type: "MSGestureHold", listener: (ev: MSGestureEvent) => any, useCapture?: boolean): void; declare function addEventListener(type: "MSGestureStart", listener: (ev: MSGestureEvent) => any, useCapture?: boolean): void; declare function addEventListener(type: "MSGestureTap", listener: (ev: MSGestureEvent) => any, useCapture?: boolean): void; declare function addEventListener(type: "MSInertiaStart", listener: (ev: MSGestureEvent) => any, useCapture?: boolean): void; declare function addEventListener(type: "MSPointerCancel", listener: (ev: MSPointerEvent) => any, useCapture?: boolean): void; declare function addEventListener(type: "MSPointerDown", listener: (ev: MSPointerEvent) => any, useCapture?: boolean): void; declare function addEventListener(type: "MSPointerEnter", listener: (ev: MSPointerEvent) => any, useCapture?: boolean): void; declare function addEventListener(type: "MSPointerLeave", listener: (ev: MSPointerEvent) => any, useCapture?: boolean): void; declare function addEventListener(type: "MSPointerMove", listener: (ev: MSPointerEvent) => any, useCapture?: boolean): void; declare function addEventListener(type: "MSPointerOut", listener: (ev: MSPointerEvent) => any, useCapture?: boolean): void; declare function addEventListener(type: "MSPointerOver", listener: (ev: MSPointerEvent) => any, useCapture?: boolean): void; declare function addEventListener(type: "MSPointerUp", listener: (ev: MSPointerEvent) => any, useCapture?: boolean): void; declare function addEventListener(type: "abort", listener: (ev: UIEvent) => any, useCapture?: boolean): void; declare function addEventListener(type: "afterprint", listener: (ev: Event) => any, useCapture?: boolean): void; declare function addEventListener(type: "beforeprint", listener: (ev: Event) => any, useCapture?: boolean): void; declare function addEventListener(type: "beforeunload", listener: (ev: BeforeUnloadEvent) => any, useCapture?: boolean): void; declare function addEventListener(type: "blur", listener: (ev: FocusEvent) => any, useCapture?: boolean): void; declare function addEventListener(type: "canplay", listener: (ev: Event) => any, useCapture?: boolean): void; declare function addEventListener(type: "canplaythrough", listener: (ev: Event) => any, useCapture?: boolean): void; declare function addEventListener(type: "change", listener: (ev: Event) => any, useCapture?: boolean): void; declare function addEventListener(type: "click", listener: (ev: MouseEvent) => any, useCapture?: boolean): void; declare function addEventListener(type: "compassneedscalibration", listener: (ev: Event) => any, useCapture?: boolean): void; declare function addEventListener(type: "contextmenu", listener: (ev: PointerEvent) => any, useCapture?: boolean): void; declare function addEventListener(type: "dblclick", listener: (ev: MouseEvent) => any, useCapture?: boolean): void; declare function addEventListener(type: "devicemotion", listener: (ev: DeviceMotionEvent) => any, useCapture?: boolean): void; declare function addEventListener(type: "deviceorientation", listener: (ev: DeviceOrientationEvent) => any, useCapture?: boolean): void; declare function addEventListener(type: "drag", listener: (ev: DragEvent) => any, useCapture?: boolean): void; declare function addEventListener(type: "dragend", listener: (ev: DragEvent) => any, useCapture?: boolean): void; declare function addEventListener(type: "dragenter", listener: (ev: DragEvent) => any, useCapture?: boolean): void; declare function addEventListener(type: "dragleave", listener: (ev: DragEvent) => any, useCapture?: boolean): void; declare function addEventListener(type: "dragover", listener: (ev: DragEvent) => any, useCapture?: boolean): void; declare function addEventListener(type: "dragstart", listener: (ev: DragEvent) => any, useCapture?: boolean): void; declare function addEventListener(type: "drop", listener: (ev: DragEvent) => any, useCapture?: boolean): void; declare function addEventListener(type: "durationchange", listener: (ev: Event) => any, useCapture?: boolean): void; declare function addEventListener(type: "emptied", listener: (ev: Event) => any, useCapture?: boolean): void; declare function addEventListener(type: "ended", listener: (ev: Event) => any, useCapture?: boolean): void; declare function addEventListener(type: "focus", listener: (ev: FocusEvent) => any, useCapture?: boolean): void; declare function addEventListener(type: "hashchange", listener: (ev: HashChangeEvent) => any, useCapture?: boolean): void; declare function addEventListener(type: "input", listener: (ev: Event) => any, useCapture?: boolean): void; declare function addEventListener(type: "keydown", listener: (ev: KeyboardEvent) => any, useCapture?: boolean): void; declare function addEventListener(type: "keypress", listener: (ev: KeyboardEvent) => any, useCapture?: boolean): void; declare function addEventListener(type: "keyup", listener: (ev: KeyboardEvent) => any, useCapture?: boolean): void; declare function addEventListener(type: "load", listener: (ev: Event) => any, useCapture?: boolean): void; declare function addEventListener(type: "loadeddata", listener: (ev: Event) => any, useCapture?: boolean): void; declare function addEventListener(type: "loadedmetadata", listener: (ev: Event) => any, useCapture?: boolean): void; declare function addEventListener(type: "loadstart", listener: (ev: Event) => any, useCapture?: boolean): void; declare function addEventListener(type: "message", listener: (ev: MessageEvent) => any, useCapture?: boolean): void; declare function addEventListener(type: "mousedown", listener: (ev: MouseEvent) => any, useCapture?: boolean): void; declare function addEventListener(type: "mouseenter", listener: (ev: MouseEvent) => any, useCapture?: boolean): void; declare function addEventListener(type: "mouseleave", listener: (ev: MouseEvent) => any, useCapture?: boolean): void; declare function addEventListener(type: "mousemove", listener: (ev: MouseEvent) => any, useCapture?: boolean): void; declare function addEventListener(type: "mouseout", listener: (ev: MouseEvent) => any, useCapture?: boolean): void; declare function addEventListener(type: "mouseover", listener: (ev: MouseEvent) => any, useCapture?: boolean): void; declare function addEventListener(type: "mouseup", listener: (ev: MouseEvent) => any, useCapture?: boolean): void; declare function addEventListener(type: "mousewheel", listener: (ev: MouseWheelEvent) => any, useCapture?: boolean): void; declare function addEventListener(type: "offline", listener: (ev: Event) => any, useCapture?: boolean): void; declare function addEventListener(type: "online", listener: (ev: Event) => any, useCapture?: boolean): void; declare function addEventListener(type: "orientationchange", listener: (ev: Event) => any, useCapture?: boolean): void; declare function addEventListener(type: "pagehide", listener: (ev: PageTransitionEvent) => any, useCapture?: boolean): void; declare function addEventListener(type: "pageshow", listener: (ev: PageTransitionEvent) => any, useCapture?: boolean): void; declare function addEventListener(type: "pause", listener: (ev: Event) => any, useCapture?: boolean): void; declare function addEventListener(type: "play", listener: (ev: Event) => any, useCapture?: boolean): void; declare function addEventListener(type: "playing", listener: (ev: Event) => any, useCapture?: boolean): void; declare function addEventListener(type: "pointercancel", listener: (ev: PointerEvent) => any, useCapture?: boolean): void; declare function addEventListener(type: "pointerdown", listener: (ev: PointerEvent) => any, useCapture?: boolean): void; declare function addEventListener(type: "pointerenter", listener: (ev: PointerEvent) => any, useCapture?: boolean): void; declare function addEventListener(type: "pointerleave", listener: (ev: PointerEvent) => any, useCapture?: boolean): void; declare function addEventListener(type: "pointermove", listener: (ev: PointerEvent) => any, useCapture?: boolean): void; declare function addEventListener(type: "pointerout", listener: (ev: PointerEvent) => any, useCapture?: boolean): void; declare function addEventListener(type: "pointerover", listener: (ev: PointerEvent) => any, useCapture?: boolean): void; declare function addEventListener(type: "pointerup", listener: (ev: PointerEvent) => any, useCapture?: boolean): void; declare function addEventListener(type: "popstate", listener: (ev: PopStateEvent) => any, useCapture?: boolean): void; declare function addEventListener(type: "progress", listener: (ev: ProgressEvent) => any, useCapture?: boolean): void; declare function addEventListener(type: "ratechange", listener: (ev: Event) => any, useCapture?: boolean): void; declare function addEventListener(type: "readystatechange", listener: (ev: ProgressEvent) => any, useCapture?: boolean): void; declare function addEventListener(type: "reset", listener: (ev: Event) => any, useCapture?: boolean): void; declare function addEventListener(type: "resize", listener: (ev: UIEvent) => any, useCapture?: boolean): void; declare function addEventListener(type: "scroll", listener: (ev: UIEvent) => any, useCapture?: boolean): void; declare function addEventListener(type: "seeked", listener: (ev: Event) => any, useCapture?: boolean): void; declare function addEventListener(type: "seeking", listener: (ev: Event) => any, useCapture?: boolean): void; declare function addEventListener(type: "select", listener: (ev: UIEvent) => any, useCapture?: boolean): void; declare function addEventListener(type: "stalled", listener: (ev: Event) => any, useCapture?: boolean): void; declare function addEventListener(type: "storage", listener: (ev: StorageEvent) => any, useCapture?: boolean): void; declare function addEventListener(type: "submit", listener: (ev: Event) => any, useCapture?: boolean): void; declare function addEventListener(type: "suspend", listener: (ev: Event) => any, useCapture?: boolean): void; declare function addEventListener(type: "timeupdate", listener: (ev: Event) => any, useCapture?: boolean): void; declare function addEventListener(type: "unload", listener: (ev: Event) => any, useCapture?: boolean): void; declare function addEventListener(type: "volumechange", listener: (ev: Event) => any, useCapture?: boolean): void; declare function addEventListener(type: "waiting", listener: (ev: Event) => any, useCapture?: boolean): void; declare function addEventListener(type: "wheel", listener: (ev: WheelEvent) => any, useCapture?: boolean): void; declare function addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void;
{'content_hash': '5cc0c64127a60d042559f93f1c059ede', 'timestamp': '', 'source': 'github', 'line_count': 12964, 'max_line_length': 568, 'avg_line_length': 40.67641160135761, 'alnum_prop': 0.6885435847450074, 'repo_name': 'billti/TypeScript', 'id': '19907d2edf9c2cf12781104d27a82676fdf89b0f', 'size': '527329', 'binary': False, 'copies': '1', 'ref': 'refs/heads/master', 'path': 'src/lib/dom.generated.d.ts', 'mode': '33188', 'license': 'apache-2.0', 'language': [{'name': 'Batchfile', 'bytes': '945'}, {'name': 'HTML', 'bytes': '4843'}, {'name': 'JavaScript', 'bytes': '175'}, {'name': 'PowerShell', 'bytes': '2855'}, {'name': 'TypeScript', 'bytes': '25401491'}]}
{% extends "base_website.html" %} {% block title %}Fotos{% endblock %} {% block content %} <!-- Main begin --> <div id="main" class="round_8 clearfix"> <div class="page_title round_6"> <h1 class="replace">Fotos</h1> </div> <div id="content-clear" class="left alpha omega"> <div class="col_146"> <div class="gallery_module"><a href="/media/website/img/stock/600x400_gallery_placeholder_7.jpg" rel="example1"><img src="/media/website/img/stock/130x98_gallery_placeholder_7.jpg" alt="placeholder" /></a> </div> </div> <div class="col_146"> <div class="gallery_module"><a href="/media/website/img/stock/600x400_gallery_placeholder_8.jpg" rel="example1"><img src="/media/website/img/stock/130x98_gallery_placeholder_8.jpg" alt="placeholder" /></a> </div> </div> <div class="col_146"> <div class="gallery_module"><a href="/media/website/img/stock/600x400_gallery_placeholder_15.jpg" rel="example1"><img src="/media/website/img/stock/130x98_gallery_placeholder_15.jpg" alt="placeholder" /></a> </div> </div> <div class="col_146"> <div class="gallery_module"><a href="/media/website/img/stock/600x400_gallery_placeholder_10.jpg" rel="example1"><img src="/media/website/img/stock/130x98_gallery_placeholder_10.jpg" alt="placeholder" /></a> </div> </div> <div class="clear"></div> <div class="col_146"> <div class="gallery_module"><a href="/media/website/img/stock/600x400_gallery_placeholder_11.jpg" rel="example1"><img src="/media/website/img/stock/130x98_gallery_placeholder_11.jpg" alt="placeholder" /></a> </div> </div> <div class="col_146"> <div class="gallery_module"><a href="/media/website/img/stock/600x400_gallery_placeholder_12.jpg" rel="example1"><img src="/media/website/img/stock/130x98_gallery_placeholder_12.jpg" alt="placeholder" /></a> </div> </div> <div class="col_146"> <div class="gallery_module"><a href="/media/website/img/stock/600x400_gallery_placeholder_13.jpg" rel="example1"><img src="/media/website/img/stock/130x98_gallery_placeholder_13.jpg" alt="placeholder" /></a> </div> </div> <div class="col_146"> <div class="gallery_module"><a href="/media/website/img/stock/600x400_gallery_placeholder_14.jpg" rel="example1"><img src="/media/website/img/stock/130x98_gallery_placeholder_14.jpg" alt="placeholder" /></a> </div> </div> <div class="clear"></div> </div> <!-- <div id="sidebar" class="left"> <div class="sidebar-widget"> <div class="minimal shadow-light"> <h4 class="replace">Categorias</h4> <ul> <!--<li class="item"><a href="./fotos.html">Jardín</a></li> <li class="item"><a href="#">Próximamente más fotos!</a></li> </ul> </div> </div> </div>--> </div> <!-- Main end --> {% endblock %}
{'content_hash': '6bde0f96606f319300f4a17856051517', 'timestamp': '', 'source': 'github', 'line_count': 51, 'max_line_length': 234, 'avg_line_length': 66.41176470588235, 'alnum_prop': 0.5379391792146442, 'repo_name': 'mfalcon/edujango', 'id': '3aaaecc26ef4b99fd65cb3df0dc262d3eb064726', 'size': '3390', 'binary': False, 'copies': '1', 'ref': 'refs/heads/master', 'path': 'edujango/templates/website/fotos.html', 'mode': '33261', 'license': 'apache-2.0', 'language': [{'name': 'CSS', 'bytes': '1422089'}, {'name': 'HTML', 'bytes': '1793045'}, {'name': 'JavaScript', 'bytes': '8694110'}, {'name': 'PHP', 'bytes': '2156'}, {'name': 'Python', 'bytes': '885118'}, {'name': 'Ruby', 'bytes': '249'}]}
<?xml version="1.0" encoding="utf-8"?> <resources> <string name="Farm_intRowStatus"></string> <string name="Farm_uidOfflineCaseID"></string> <string name="Farm_idParent"></string> <string name="Farm_idfFarm">Ферманың дара №</string> <string name="Farm_idfsHerd"></string> <string name="Farm_blnIsRoot"></string> <string name="Farm_strFarmName"></string> <string name="Farm_strFarmCode">Ферманың дара №</string> <string name="Farm_idfRootFarm">Ферманың атауы</string> <string name="Farm_strOwnerLastName">Ферма иесінің тегі</string> <string name="Farm_strOwnerFirstName">Ферма иесінің аты</string> <string name="Farm_strOwnerMiddleName">Ферма иесінің әкесінің аты</string> <string name="Farm_strPhone">Пациенттің үй телефоны</string> <string name="Farm_strFax">Факс</string> <string name="Farm_strEmail">Электрондық пошта</string> <string name="Farm_idfsRegion">Облыс/Өңір</string> <string name="Farm_idfsRayon">Аудан</string> <string name="Farm_idfsSettlement">Елді мекен</string> <string name="Farm_strStreetName">Көше</string> <string name="Farm_strBuilding">Корпус</string> <string name="Farm_strHouse">Үй</string> <string name="Farm_strApartment">Пәтер</string> <string name="Farm_strPostCode">Пошта индексі</string> <string name="Farm_dblLongitude">Бойлық</string> <string name="Farm_dblLatitude">Ендік</string> <string name="Farm_GetCoordinates"></string> </resources>
{'content_hash': '6dd41ede1b2437a826f43fd787fd5831', 'timestamp': '', 'source': 'github', 'line_count': 29, 'max_line_length': 76, 'avg_line_length': 50.206896551724135, 'alnum_prop': 0.7190934065934066, 'repo_name': 'EIDSS/EIDSS-Legacy', 'id': '0516ad80d6bb7cf30354f4f63dde9da192973ee5', 'size': '1654', 'binary': False, 'copies': '1', 'ref': 'refs/heads/master', 'path': 'EIDSS v6.1/Android/app/src/main/res/values-kk/Farm_fields.xml', 'mode': '33188', 'license': 'bsd-2-clause', 'language': [{'name': 'ASP', 'bytes': '256377'}, {'name': 'Batchfile', 'bytes': '30009'}, {'name': 'C#', 'bytes': '106160789'}, {'name': 'CSS', 'bytes': '833586'}, {'name': 'HTML', 'bytes': '7507'}, {'name': 'Java', 'bytes': '2188690'}, {'name': 'JavaScript', 'bytes': '17000221'}, {'name': 'PLSQL', 'bytes': '2499'}, {'name': 'PLpgSQL', 'bytes': '6422'}, {'name': 'Pascal', 'bytes': '159898'}, {'name': 'PowerShell', 'bytes': '339522'}, {'name': 'Puppet', 'bytes': '3758'}, {'name': 'SQLPL', 'bytes': '12198'}, {'name': 'Smalltalk', 'bytes': '301266'}, {'name': 'Visual Basic', 'bytes': '20819564'}, {'name': 'XSLT', 'bytes': '4253600'}]}
#pragma once #ifdef _WIN32 #include <intrin.h> #include <stdint.h> #include <folly/Portability.h> FOLLY_ALWAYS_INLINE int64_t __sync_fetch_and_add(volatile int64_t* ptr, int64_t value) { return _InterlockedExchangeAdd64(ptr, value); } #endif
{'content_hash': 'ee3ec2515d078c412bb3c749abb872d0', 'timestamp': '', 'source': 'github', 'line_count': 17, 'max_line_length': 68, 'avg_line_length': 14.764705882352942, 'alnum_prop': 0.7211155378486056, 'repo_name': 'Dagers/React-Native-Differential-Updater', 'id': '8aa9f307c464cfbb714d01205e3074e46a7cfda1', 'size': '846', 'binary': False, 'copies': '5', 'ref': 'refs/heads/master', 'path': 'App/node_modules/react-native/third-party/folly-2016.09.26.00/folly/portability/Atomic.h', 'mode': '33261', 'license': 'mit', 'language': [{'name': 'C', 'bytes': '25791'}, {'name': 'C++', 'bytes': '1139'}, {'name': 'HTML', 'bytes': '4980'}, {'name': 'Java', 'bytes': '1922327'}, {'name': 'JavaScript', 'bytes': '128039'}, {'name': 'Objective-C', 'bytes': '183227'}, {'name': 'Python', 'bytes': '1730'}]}
package org.springframework.boot.test.autoconfigure.jdbc; import javax.sql.DataSource; import org.junit.Test; import org.junit.runner.RunWith; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.boot.autoconfigure.EnableAutoConfiguration; import org.springframework.context.annotation.Bean; import org.springframework.context.annotation.Configuration; import org.springframework.context.annotation.Primary; import org.springframework.jdbc.datasource.embedded.EmbeddedDatabaseBuilder; import org.springframework.jdbc.datasource.embedded.EmbeddedDatabaseType; import org.springframework.test.context.junit4.SpringRunner; import static org.assertj.core.api.Assertions.assertThat; /** * Integration tests for {@link AutoConfigureTestDatabase} when there are multiple * datasources. * * @author Greg Potter */ @RunWith(SpringRunner.class) @JdbcTest @AutoConfigureTestDatabase public class AutoConfigureTestDatabaseWithMultipleDatasourcesIntegrationTests { @Autowired private DataSource dataSource; @Test public void replacesDefinedDataSourceWithExplicit() throws Exception { // Look that the datasource is replaced with an H2 DB. String product = this.dataSource.getConnection().getMetaData() .getDatabaseProductName(); assertThat(product).startsWith("H2"); } @Configuration @EnableAutoConfiguration static class Config { @Bean @Primary public DataSource dataSource() { return new EmbeddedDatabaseBuilder().generateUniqueName(true) .setType(EmbeddedDatabaseType.HSQL).build(); } @Bean public DataSource secondaryDataSource() { return new EmbeddedDatabaseBuilder().generateUniqueName(true) .setType(EmbeddedDatabaseType.HSQL).build(); } } }
{'content_hash': 'd7b23a4ae5a7d2173d8449ad9abdd246', 'timestamp': '', 'source': 'github', 'line_count': 62, 'max_line_length': 82, 'avg_line_length': 28.080645161290324, 'alnum_prop': 0.8058587018954624, 'repo_name': 'drumonii/spring-boot', 'id': '2ea3b843b524f3ee0851a54025bd31f987e38736', 'size': '2361', 'binary': False, 'copies': '1', 'ref': 'refs/heads/master', 'path': 'spring-boot-project/spring-boot-test-autoconfigure/src/test/java/org/springframework/boot/test/autoconfigure/jdbc/AutoConfigureTestDatabaseWithMultipleDatasourcesIntegrationTests.java', 'mode': '33188', 'license': 'apache-2.0', 'language': [{'name': 'Batchfile', 'bytes': '1948'}, {'name': 'CSS', 'bytes': '5769'}, {'name': 'Dockerfile', 'bytes': '5379'}, {'name': 'FreeMarker', 'bytes': '3599'}, {'name': 'Groovy', 'bytes': '51602'}, {'name': 'HTML', 'bytes': '69601'}, {'name': 'Java', 'bytes': '14190824'}, {'name': 'JavaScript', 'bytes': '37789'}, {'name': 'Kotlin', 'bytes': '25029'}, {'name': 'Ruby', 'bytes': '1308'}, {'name': 'Shell', 'bytes': '32644'}, {'name': 'Smarty', 'bytes': '2885'}, {'name': 'XSLT', 'bytes': '36394'}]}
package com.raukhvarger.examples.spring_orm.app; import com.raukhvarger.examples.spring_orm.db.DAO; import com.raukhvarger.examples.spring_orm.db.entity.Person; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.context.ApplicationContext; import org.springframework.context.annotation.AnnotationConfigApplicationContext; import org.springframework.stereotype.Component; /** * Created by jerde on 03.11.2016. */ @Component public class App { @Autowired DAO dao; public static void main(String args[]) { ApplicationContext context = new AnnotationConfigApplicationContext(SpringConfigContext.class); App app = context.getBean(App.class); app.dao.persist(new Person("Ivan Petrov", 25)); app.dao.persist(new Person("Sidor Ivanov", 31)); pr(app.dao.findAll()); } public static void pr(Object str) { System.out.println(str); } }
{'content_hash': '28fefe85a37dd6ccf622798003f0d94b', 'timestamp': '', 'source': 'github', 'line_count': 35, 'max_line_length': 103, 'avg_line_length': 27.057142857142857, 'alnum_prop': 0.7307286166842661, 'repo_name': 'mraukhvarger/spring_orm_without_xml', 'id': '42de3410f0c6348e5e6482b3b1388b57855ae226', 'size': '947', 'binary': False, 'copies': '1', 'ref': 'refs/heads/master', 'path': 'src/main/java/com/raukhvarger/examples/spring_orm/app/App.java', 'mode': '33188', 'license': 'apache-2.0', 'language': [{'name': 'Java', 'bytes': '5069'}]}
""" entry points to pastescript """ import sys from .urldispatcher import URLDispatcher def make_urldispatch_application(_, **settings): """ paste.app_factory interface for URLDispatcher""" patterns = [p.split("=", 1) for p in settings['patterns'].split('\n') if p] application = URLDispatcher() for pattern, app in patterns: pattern = pattern.strip() app = app.strip() mod, obj = app.split(":", 1) if mod not in sys.modules: __import__(mod) mod = sys.modules[mod] obj = getattr(mod, obj) application.add_url(app, pattern, obj) return application
{'content_hash': '420cad587ae11ef7470655f7976c8983', 'timestamp': '', 'source': 'github', 'line_count': 24, 'max_line_length': 57, 'avg_line_length': 27.958333333333332, 'alnum_prop': 0.5842026825633383, 'repo_name': 'aodag/WebDispatch', 'id': 'cf0ddbc109a1f7862e90c770ce9be0da781c9aee', 'size': '671', 'binary': False, 'copies': '1', 'ref': 'refs/heads/master', 'path': 'webdispatch/paster.py', 'mode': '33188', 'license': 'mit', 'language': [{'name': 'Gherkin', 'bytes': '22'}, {'name': 'Python', 'bytes': '39639'}]}
'use strict'; var _ = require("lodash"), EventEmitter = require("events").EventEmitter, fs = require("fs"), subTemplates = require('simplator-subtemplates'), simplator = require("simplator"); var tabs = fs.readFileSync(__dirname + "/../templates/tabs.html", "utf8"), tab = fs.readFileSync(__dirname + "/../templates/tab.html", "utf8"), templates = { tabs: simplator.compile(tabs), tab: simplator.compile(tab) }; subTemplates.use(templates); function TabsView($) { this.$ = $; this.events = new EventEmitter(); } module.exports = TabsView; TabsView.prototype.onTabClick = function (tab) { var li = this.$(tab).parent("li"); var attr = li.attr("id"); this.events.emit('tabClicked', attr); }; TabsView.prototype.setCaption = function (tabId,newCaption) { var _this = this; _this.$(".tabs #"+tabId+" a").html(newCaption); }; TabsView.prototype.run = function () { var _this = this; _this.$(".tabs a").click(function () { _this.onTabClick(this); }); }; TabsView.prototype.setActive = function (tabId) { this.$(".tabs li").removeClass("active"); this.$(".tabs #"+tabId).addClass("active"); }; TabsView.prototype.addTab = function (tab) { this.$(".tabs").append(templates.tab(tab)); var _this = this; _this.$(".tabs #"+tab.id+ " a").click(function () { _this.onTabClick(this); }); }; TabsView.prototype.removeTab = function (tabId) { this.$(".tabs #"+tabId+ " a").off("click"); this.$(".tabs #"+tabId).remove(); }; TabsView.prototype.render = function (tabsPresenter) { return templates.tabs(tabsPresenter); };
{'content_hash': 'eeabae5b027547ae8e4e9e04f00618fa', 'timestamp': '', 'source': 'github', 'line_count': 76, 'max_line_length': 74, 'avg_line_length': 21.894736842105264, 'alnum_prop': 0.6087740384615384, 'repo_name': 'parroit/tabs-mvp', 'id': 'dc642eff6cc6df19cbfc49a61f106e25b794da5b', 'size': '1664', 'binary': False, 'copies': '1', 'ref': 'refs/heads/master', 'path': 'lib/TabsView.js', 'mode': '33188', 'license': 'mit', 'language': [{'name': 'JavaScript', 'bytes': '14186'}]}
<?xml version="1.0" encoding="utf-8"?> <manifest xmlns:android="http://schemas.android.com/apk/res/android" package="admu.thesis.secureauthenticator" android:versionCode="1" android:versionName="1.0" > <uses-sdk android:minSdkVersion="15" android:targetSdkVersion="17" /> <uses-permission android:name="android.permission.INTERNET" /> <uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" /> <application android:name="admu.thesis.secureauthenticator.OTPItem" android:allowBackup="true" android:icon="@drawable/ic_launcher" android:label="@string/app_name" android:theme="@style/AppTheme" > <activity android:name="admu.thesis.secureauthenticator.MainActivity" android:label="@string/app_name" > </activity> <activity android:name="admu.thesis.secureauthenticator.AppPasswordActivity" android:label="@string/app_name" > <intent-filter> <action android:name="android.intent.action.MAIN" /> <category android:name="android.intent.category.LAUNCHER" /> </intent-filter> </activity> </application> </manifest>
{'content_hash': '87e81debbfb728ec5e61d6af3d660653', 'timestamp': '', 'source': 'github', 'line_count': 35, 'max_line_length': 78, 'avg_line_length': 35.8, 'alnum_prop': 0.6384676775738228, 'repo_name': 'wizfactor/secure-authenticator', 'id': 'ed58743c1fea06b268271f1d9dec2d853d3f33e2', 'size': '1253', 'binary': False, 'copies': '1', 'ref': 'refs/heads/master', 'path': 'SecureAuthenticator/src/main/AndroidManifest.xml', 'mode': '33188', 'license': 'mit', 'language': [{'name': 'Java', 'bytes': '19866'}]}
<div data-ng-controller="SlideshowplayerController" ng-init="findOne()"> <!-- Alle Slides hintereinander weg als Bildelement auflisten --> <div id="slides" class="player-slides"> <img ng-repeat="slide in slides track by $index" class="player-slide" src="{{slide.imageData}}" id="{{$index}}" ng-click="fullscreen($index)"/> </div> <!-- In diesem Container wird jeweils eins der Bilder im Vollbildmodus angezeigt --> <div ng-hide="!isFullscreen" class="fullscreen-container" id="fullscreen-container"> <!-- per touch/klick auf linke/rechte seite des bildes zwischen slides navigieren --> <div class="clickable-fullscreen-overlay-left" id="clickable-fullscreen-overlay-left" ng-click="previousSlide()"> </div> <div class="clickable-fullscreen-overlay-right" id="clickable-fullscreen-overlay-right" ng-click="nextSlide()"> </div> <div class="fullscreen-container-footer"> <button type="button" class="btn btn-default btn-lg" ng-click="exitFullscreen()"> <span class="glyphicon glyphicon-fullscreen"></span> </button> <button type="button" class="btn btn-default btn-lg"> <span class="glyphicon glyphicon-volume-up"></span> </button> <button type="button" class="btn btn-default btn-lg"> <span class="glyphicon glyphicon-list-alt"></span> </button> </div> </div> </div>
{'content_hash': 'd536b00ff9d9affcbc181b030f9d5c50', 'timestamp': '', 'source': 'github', 'line_count': 39, 'max_line_length': 147, 'avg_line_length': 35.61538461538461, 'alnum_prop': 0.6709863210943124, 'repo_name': 'OdenthalKay/abschluss', 'id': '195647dfdeb729eb18a6bd80252df3e8a5b1ce8d', 'size': '1389', 'binary': False, 'copies': '1', 'ref': 'refs/heads/master', 'path': 'packages/custom/slideshowplayer/public/views/index.html', 'mode': '33188', 'license': 'mit', 'language': [{'name': 'CSS', 'bytes': '152733'}, {'name': 'Java', 'bytes': '3095'}, {'name': 'JavaScript', 'bytes': '284659'}, {'name': 'Perl', 'bytes': '48'}, {'name': 'Shell', 'bytes': '250'}]}
import logging #from logging.handlers import RotatingFileHandler from logging.handlers import TimedRotatingFileHandler from os import mkdir, path import sys reload(sys) sys.setdefaultencoding("utf-8") __author__ = "Jani Yli-Kantola" __credits__ = ["Jani Yli-Kantola", "Tommi Portti", "Harri Hirvonsalo", "Kari Liukkunen", "Björn Elmers", "Olov Ståhl"] __license__ = "" __status__ = "Development" # TODO: Capture printouts of external modules ## About capturing and redirecting stdout # https://wrongsideofmemphis.wordpress.com/2010/03/01/store-standard-output-on-a-variable-in-python/ # http://stackoverflow.com/questions/22822267/python-capture-print-output-of-another-module LOG_PATH = './logs/' LOG_FILE = LOG_PATH + 'restAPI.log' if LOG_PATH != "./": try: mkdir(LOG_PATH) print("Creating LOG_PATH: '{}'.".format(LOG_PATH)) except IOError: print("LOG_PATH: '{}' already exists.".format(LOG_PATH)) except Exception as e: print("LOG_PATH: '{}' could not be created. Exception: {}.".format(LOG_PATH, repr(e))) # Logger functionality logger = logging.getLogger('RestAPI') # Get Logger logger.setLevel(logging.DEBUG) # Set logging level # Log levels # -> CRITICAL # -> ERROR # -> WARNING # -> INFO # -> DEBUG # -> NOTSET # Logging to file if 'vagrant' in path.abspath(__file__): # Log everything to one file when running vagrant # http://stackoverflow.com/questions/22852555/rotatingfilehandler-text-file-busy-in-windows # http://bugs.python.org/issue4749 logFileHandler = logging.FileHandler(LOG_FILE) # Handler to log to file else: # To switch log file when it reaches specified file-size #bytes = 1024 * 1024 * 5 # 5 MB #logFileHandler = RotatingFileHandler(LOG_FILE, maxBytes=bytes, backupCount=5) # To switch log file based on time logFileHandler = TimedRotatingFileHandler(LOG_FILE, when="midnight", interval=1, backupCount=7, utc=True) # To set logging-level for logFileHandler logFileHandler.setLevel(logging.DEBUG) # Set logging level # Logging to Console logConsoleHandler = logging.StreamHandler() # Handler to log to console logConsoleHandler.setLevel(logging.DEBUG) # Set logging level # Log formatter for handlers logFileFormatter = logging.Formatter('%(asctime)s - %(filename)-22s on line %(lineno)-6d - %(levelname)-10s - %(message)s') logConsoleFormatter = logging.Formatter('%(asctime)s - %(filename)-22s - %(levelname)-10s - %(message)s') # Add log formatter to log handlers logFileHandler.setFormatter(logFileFormatter) logConsoleHandler.setFormatter(logConsoleFormatter) # Add log handlers to logger logger.addHandler(logFileHandler) logger.addHandler(logConsoleHandler) logger.debug("****************")
{'content_hash': '78ea10b1ba015862b408c8937353d389', 'timestamp': '', 'source': 'github', 'line_count': 75, 'max_line_length': 123, 'avg_line_length': 36.38666666666666, 'alnum_prop': 0.7207768413338219, 'repo_name': 'improve-project/platform', 'id': 'cf64b1d75e0bbb2a814ecd32bcdc661c4e26d50b', 'size': '2890', 'binary': False, 'copies': '1', 'ref': 'refs/heads/master', 'path': 'api_logger.py', 'mode': '33261', 'license': 'bsd-3-clause', 'language': [{'name': 'Python', 'bytes': '554005'}]}
<?xml version="1.0" encoding="UTF-8"?> <!-- This is the JRebel configuration file. It maps the running application to your IDE workspace, enabling JRebel reloading for this project. Refer to https://manuals.zeroturnaround.com/jrebel/standalone/config.html for more information. --> <application generated-by="intellij" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://www.zeroturnaround.com" xsi:schemaLocation="http://www.zeroturnaround.com http://update.zeroturnaround.com/jrebel/rebel-2_1.xsd"> <classpath> <dir name="D:/GitHub/school-website/target/classes"> </dir> </classpath> <web> <link target="/"> <dir name="D:/GitHub/school-website/src/main/webapp"> </dir> </link> </web> </application>
{'content_hash': '9c144475a8361184c3e99ebf145eb75a', 'timestamp': '', 'source': 'github', 'line_count': 21, 'max_line_length': 234, 'avg_line_length': 35.38095238095238, 'alnum_prop': 0.7227456258411844, 'repo_name': 'Topview-us/school-website', 'id': '763926ffa76ebcda4f761c2c059c35a56f98795d', 'size': '743', 'binary': False, 'copies': '1', 'ref': 'refs/heads/master', 'path': 'src/main/resources/rebel.xml', 'mode': '33188', 'license': 'mit', 'language': [{'name': 'Java', 'bytes': '457556'}]}
package com.canyinghao.canadapter; import android.view.View; import android.widget.CompoundButton; public class CanOnItemListener { public void onItemChildClick(View view, int position) { } public boolean onItemChildLongClick(View view, int position) { return false; } public void onItemChildCheckedChanged(CompoundButton view, int position, boolean isChecked) { } }
{'content_hash': '18a5b4e4c61dd593835d8ea8f4a864ba', 'timestamp': '', 'source': 'github', 'line_count': 21, 'max_line_length': 97, 'avg_line_length': 19.428571428571427, 'alnum_prop': 0.7352941176470589, 'repo_name': 'canyinghao/CanAdapter', 'id': 'acad1fb227869f281605f35365bf68562e2d94fd', 'size': '1003', 'binary': False, 'copies': '1', 'ref': 'refs/heads/master', 'path': 'canadapter/src/main/java/com/canyinghao/canadapter/CanOnItemListener.java', 'mode': '33188', 'license': 'apache-2.0', 'language': [{'name': 'Java', 'bytes': '113035'}]}
ACCEPTED #### According to International Plant Names Index #### Published in Fl Filip. 283. 1837 #### Original name null ### Remarks null
{'content_hash': 'e4ae1d6ecfee25ac1b9aff1abe8a34bc', 'timestamp': '', 'source': 'github', 'line_count': 13, 'max_line_length': 31, 'avg_line_length': 10.846153846153847, 'alnum_prop': 0.7021276595744681, 'repo_name': 'mdoering/backbone', 'id': 'c4680e85f8d0a810bf8b3d5b1d8d5afe25f8f8cf', 'size': '192', 'binary': False, 'copies': '1', 'ref': 'refs/heads/master', 'path': 'life/Plantae/Magnoliophyta/Magnoliopsida/Piperales/Aristolochiaceae/Aristolochia/Aristolochia sericea/README.md', 'mode': '33188', 'license': 'apache-2.0', 'language': []}
<?php $this->pageTitle = Yii::t('dressing', 'Documentation'); // menu $this->menu = SiteMenu::getItemsFromMenu(SiteMenu::MENU_MAIN); // breadcrumbs $this->addBreadcrumb(Yii::t('dressing', 'Help'), array('/site/page', 'view' => 'help')); echo '<h2>' . Yii::t('dressing', 'Vendor Documentation') . '</h2>'; $this->widget('bootstrap.widgets.TbNav', array( 'type' => TbHtml::NAV_TYPE_PILLS, 'stacked' => false, 'items' => array( array('label' => Yii::t('dressing', 'Yii'), 'url' => 'http://www.yiiframework.com/doc/'), array('label' => Yii::t('dressing', 'YiiExt'), 'url' => 'http://yiiext.github.io/'), array('label' => Yii::t('dressing', 'Yii Booster'), 'url' => 'http://yiibooster.clevertech.biz/'), array('label' => Yii::t('dressing', 'Yii Bootstrap'), 'url' => 'http://www.cniska.net/yii-bootstrap'), array('label' => Yii::t('dressing', 'Bootstrap'), 'url' => 'http://twitter.github.io/bootstrap/'), array('label' => Yii::t('dressing', 'jQuery'), 'url' => 'http://api.jquery.com/'), array('label' => Yii::t('dressing', 'Swift Mailer'), 'url' => 'http://swiftmailer.org/docs/introduction.html'), array('label' => Yii::t('dressing', 'Mustache PHP'), 'url' => 'https://github.com/bobthecow/mustache.php'), array('label' => Yii::t('dressing', 'Kint'), 'url' => 'http://raveren.github.io/kint/'), array('label' => Yii::t('dressing', 'Highcharts'), 'url' => 'http://api.highcharts.com/highcharts'), ), ));
{'content_hash': 'e2d42a4017bfe2d0cfe42c004afb40d2', 'timestamp': '', 'source': 'github', 'line_count': 28, 'max_line_length': 119, 'avg_line_length': 53.642857142857146, 'alnum_prop': 0.5832223701731025, 'repo_name': 'cornernote/yii-dressing', 'id': '05d2e9bcb7707d1cffbd89a8448c53dd6f3556ea', 'size': '1812', 'binary': False, 'copies': '1', 'ref': 'refs/heads/master', 'path': 'yii-dressing/views/tool/pages/documentation.php', 'mode': '33188', 'license': 'bsd-3-clause', 'language': [{'name': 'CSS', 'bytes': '88039'}, {'name': 'CoffeeScript', 'bytes': '1254'}, {'name': 'HTML', 'bytes': '70017'}, {'name': 'JavaScript', 'bytes': '486720'}, {'name': 'PHP', 'bytes': '583377'}]}
<?php defined('BASEPATH') OR exit('No direct script access allowed'); /* |-------------------------------------------------------------------------- | Base Site URL |-------------------------------------------------------------------------- | | URL to your CodeIgniter root. Typically this will be your base URL, | WITH a trailing slash: | | http://example.com/ | | WARNING: You MUST set this value! | | If it is not set, then CodeIgniter will try guess the protocol and path | your installation, but due to security concerns the hostname will be set | to $_SERVER['SERVER_ADDR'] if available, or localhost otherwise. | The auto-detection mechanism exists only for convenience during | development and MUST NOT be used in production! | | If you need to allow multiple domains, remember that this file is still | a PHP script and you can easily do that on your own. | */ $config['base_url'] = 'https://lab-imetanon.c9users.io/yoyo/'; /* |-------------------------------------------------------------------------- | Index File |-------------------------------------------------------------------------- | | Typically this will be your index.php file, unless you've renamed it to | something else. If you are using mod_rewrite to remove the page set this | variable so that it is blank. | */ $config['index_page'] = 'index.php'; /* |-------------------------------------------------------------------------- | URI PROTOCOL |-------------------------------------------------------------------------- | | This item determines which server global should be used to retrieve the | URI string. The default setting of 'REQUEST_URI' works for most servers. | If your links do not seem to work, try one of the other delicious flavors: | | 'REQUEST_URI' Uses $_SERVER['REQUEST_URI'] | 'QUERY_STRING' Uses $_SERVER['QUERY_STRING'] | 'PATH_INFO' Uses $_SERVER['PATH_INFO'] | | WARNING: If you set this to 'PATH_INFO', URIs will always be URL-decoded! */ $config['uri_protocol'] = 'REQUEST_URI'; /* |-------------------------------------------------------------------------- | URL suffix |-------------------------------------------------------------------------- | | This option allows you to add a suffix to all URLs generated by CodeIgniter. | For more information please see the user guide: | | https://codeigniter.com/user_guide/general/urls.html */ $config['url_suffix'] = ''; /* |-------------------------------------------------------------------------- | Default Language |-------------------------------------------------------------------------- | | This determines which set of language files should be used. Make sure | there is an available translation if you intend to use something other | than english. | */ $config['language'] = 'english'; /* |-------------------------------------------------------------------------- | Default Character Set |-------------------------------------------------------------------------- | | This determines which character set is used by default in various methods | that require a character set to be provided. | | See http://php.net/htmlspecialchars for a list of supported charsets. | */ $config['charset'] = 'UTF-8'; /* |-------------------------------------------------------------------------- | Enable/Disable System Hooks |-------------------------------------------------------------------------- | | If you would like to use the 'hooks' feature you must enable it by | setting this variable to TRUE (boolean). See the user guide for details. | */ $config['enable_hooks'] = FALSE; /* |-------------------------------------------------------------------------- | Class Extension Prefix |-------------------------------------------------------------------------- | | This item allows you to set the filename/classname prefix when extending | native libraries. For more information please see the user guide: | | https://codeigniter.com/user_guide/general/core_classes.html | https://codeigniter.com/user_guide/general/creating_libraries.html | */ $config['subclass_prefix'] = 'MY_'; /* |-------------------------------------------------------------------------- | Composer auto-loading |-------------------------------------------------------------------------- | | Enabling this setting will tell CodeIgniter to look for a Composer | package auto-loader script in application/vendor/autoload.php. | | $config['composer_autoload'] = TRUE; | | Or if you have your vendor/ directory located somewhere else, you | can opt to set a specific path as well: | | $config['composer_autoload'] = '/path/to/vendor/autoload.php'; | | For more information about Composer, please visit http://getcomposer.org/ | | Note: This will NOT disable or override the CodeIgniter-specific | autoloading (application/config/autoload.php) */ $config['composer_autoload'] = FALSE; /* |-------------------------------------------------------------------------- | Allowed URL Characters |-------------------------------------------------------------------------- | | This lets you specify which characters are permitted within your URLs. | When someone tries to submit a URL with disallowed characters they will | get a warning message. | | As a security measure you are STRONGLY encouraged to restrict URLs to | as few characters as possible. By default only these are allowed: a-z 0-9~%.:_- | | Leave blank to allow all characters -- but only if you are insane. | | The configured value is actually a regular expression character group | and it will be executed as: ! preg_match('/^[<permitted_uri_chars>]+$/i | | DO NOT CHANGE THIS UNLESS YOU FULLY UNDERSTAND THE REPERCUSSIONS!! | */ $config['permitted_uri_chars'] = 'a-z 0-9~%.:_\-'; /* |-------------------------------------------------------------------------- | Enable Query Strings |-------------------------------------------------------------------------- | | By default CodeIgniter uses search-engine friendly segment based URLs: | example.com/who/what/where/ | | You can optionally enable standard query string based URLs: | example.com?who=me&what=something&where=here | | Options are: TRUE or FALSE (boolean) | | The other items let you set the query string 'words' that will | invoke your controllers and its functions: | example.com/index.php?c=controller&m=function | | Please note that some of the helpers won't work as expected when | this feature is enabled, since CodeIgniter is designed primarily to | use segment based URLs. | */ $config['enable_query_strings'] = FALSE; $config['controller_trigger'] = 'c'; $config['function_trigger'] = 'm'; $config['directory_trigger'] = 'd'; /* |-------------------------------------------------------------------------- | Allow $_GET array |-------------------------------------------------------------------------- | | By default CodeIgniter enables access to the $_GET array. If for some | reason you would like to disable it, set 'allow_get_array' to FALSE. | | WARNING: This feature is DEPRECATED and currently available only | for backwards compatibility purposes! | */ $config['allow_get_array'] = TRUE; /* |-------------------------------------------------------------------------- | Error Logging Threshold |-------------------------------------------------------------------------- | | You can enable error logging by setting a threshold over zero. The | threshold determines what gets logged. Threshold options are: | | 0 = Disables logging, Error logging TURNED OFF | 1 = Error Messages (including PHP errors) | 2 = Debug Messages | 3 = Informational Messages | 4 = All Messages | | You can also pass an array with threshold levels to show individual error types | | array(2) = Debug Messages, without Error Messages | | For a live site you'll usually only enable Errors (1) to be logged otherwise | your log files will fill up very fast. | */ $config['log_threshold'] = 0; /* |-------------------------------------------------------------------------- | Error Logging Directory Path |-------------------------------------------------------------------------- | | Leave this BLANK unless you would like to set something other than the default | application/logs/ directory. Use a full server path with trailing slash. | */ $config['log_path'] = ''; /* |-------------------------------------------------------------------------- | Log File Extension |-------------------------------------------------------------------------- | | The default filename extension for log files. The default 'php' allows for | protecting the log files via basic scripting, when they are to be stored | under a publicly accessible directory. | | Note: Leaving it blank will default to 'php'. | */ $config['log_file_extension'] = ''; /* |-------------------------------------------------------------------------- | Log File Permissions |-------------------------------------------------------------------------- | | The file system permissions to be applied on newly created log files. | | IMPORTANT: This MUST be an integer (no quotes) and you MUST use octal | integer notation (i.e. 0700, 0644, etc.) */ $config['log_file_permissions'] = 0644; /* |-------------------------------------------------------------------------- | Date Format for Logs |-------------------------------------------------------------------------- | | Each item that is logged has an associated date. You can use PHP date | codes to set your own date formatting | */ $config['log_date_format'] = 'Y-m-d H:i:s'; /* |-------------------------------------------------------------------------- | Error Views Directory Path |-------------------------------------------------------------------------- | | Leave this BLANK unless you would like to set something other than the default | application/views/errors/ directory. Use a full server path with trailing slash. | */ $config['error_views_path'] = ''; /* |-------------------------------------------------------------------------- | Cache Directory Path |-------------------------------------------------------------------------- | | Leave this BLANK unless you would like to set something other than the default | application/cache/ directory. Use a full server path with trailing slash. | */ $config['cache_path'] = ''; /* |-------------------------------------------------------------------------- | Cache Include Query String |-------------------------------------------------------------------------- | | Whether to take the URL query string into consideration when generating | output cache files. Valid options are: | | FALSE = Disabled | TRUE = Enabled, take all query parameters into account. | Please be aware that this may result in numerous cache | files generated for the same page over and over again. | array('q') = Enabled, but only take into account the specified list | of query parameters. | */ $config['cache_query_string'] = FALSE; /* |-------------------------------------------------------------------------- | Encryption Key |-------------------------------------------------------------------------- | | If you use the Encryption class, you must set an encryption key. | See the user guide for more info. | | https://codeigniter.com/user_guide/libraries/encryption.html | */ $config['encryption_key'] = ''; /* |-------------------------------------------------------------------------- | Session Variables |-------------------------------------------------------------------------- | | 'sess_driver' | | The storage driver to use: files, database, redis, memcached | | 'sess_cookie_name' | | The session cookie name, must contain only [0-9a-z_-] characters | | 'sess_expiration' | | The number of SECONDS you want the session to last. | Setting to 0 (zero) means expire when the browser is closed. | | 'sess_save_path' | | The location to save sessions to, driver dependent. | | For the 'files' driver, it's a path to a writable directory. | WARNING: Only absolute paths are supported! | | For the 'database' driver, it's a table name. | Please read up the manual for the format with other session drivers. | | IMPORTANT: You are REQUIRED to set a valid save path! | | 'sess_match_ip' | | Whether to match the user's IP address when reading the session data. | | WARNING: If you're using the database driver, don't forget to update | your session table's PRIMARY KEY when changing this setting. | | 'sess_time_to_update' | | How many seconds between CI regenerating the session ID. | | 'sess_regenerate_destroy' | | Whether to destroy session data associated with the old session ID | when auto-regenerating the session ID. When set to FALSE, the data | will be later deleted by the garbage collector. | | Other session cookie settings are shared with the rest of the application, | except for 'cookie_prefix' and 'cookie_httponly', which are ignored here. | */ $config['sess_driver'] = 'files'; $config['sess_cookie_name'] = 'ci_session'; $config['sess_expiration'] = 7200; $config['sess_save_path'] = NULL; $config['sess_match_ip'] = FALSE; $config['sess_time_to_update'] = 300; $config['sess_regenerate_destroy'] = FALSE; /* |-------------------------------------------------------------------------- | Cookie Related Variables |-------------------------------------------------------------------------- | | 'cookie_prefix' = Set a cookie name prefix if you need to avoid collisions | 'cookie_domain' = Set to .your-domain.com for site-wide cookies | 'cookie_path' = Typically will be a forward slash | 'cookie_secure' = Cookie will only be set if a secure HTTPS connection exists. | 'cookie_httponly' = Cookie will only be accessible via HTTP(S) (no javascript) | | Note: These settings (with the exception of 'cookie_prefix' and | 'cookie_httponly') will also affect sessions. | */ $config['cookie_prefix'] = ''; $config['cookie_domain'] = ''; $config['cookie_path'] = '/'; $config['cookie_secure'] = FALSE; $config['cookie_httponly'] = FALSE; /* |-------------------------------------------------------------------------- | Standardize newlines |-------------------------------------------------------------------------- | | Determines whether to standardize newline characters in input data, | meaning to replace \r\n, \r, \n occurrences with the PHP_EOL value. | | WARNING: This feature is DEPRECATED and currently available only | for backwards compatibility purposes! | */ $config['standardize_newlines'] = FALSE; /* |-------------------------------------------------------------------------- | Global XSS Filtering |-------------------------------------------------------------------------- | | Determines whether the XSS filter is always active when GET, POST or | COOKIE data is encountered | | WARNING: This feature is DEPRECATED and currently available only | for backwards compatibility purposes! | */ $config['global_xss_filtering'] = FALSE; /* |-------------------------------------------------------------------------- | Cross Site Request Forgery |-------------------------------------------------------------------------- | Enables a CSRF cookie token to be set. When set to TRUE, token will be | checked on a submitted form. If you are accepting user data, it is strongly | recommended CSRF protection be enabled. | | 'csrf_token_name' = The token name | 'csrf_cookie_name' = The cookie name | 'csrf_expire' = The number in seconds the token should expire. | 'csrf_regenerate' = Regenerate token on every submission | 'csrf_exclude_uris' = Array of URIs which ignore CSRF checks */ $config['csrf_protection'] = FALSE; $config['csrf_token_name'] = 'csrf_test_name'; $config['csrf_cookie_name'] = 'csrf_cookie_name'; $config['csrf_expire'] = 7200; $config['csrf_regenerate'] = TRUE; $config['csrf_exclude_uris'] = array(); /* |-------------------------------------------------------------------------- | Output Compression |-------------------------------------------------------------------------- | | Enables Gzip output compression for faster page loads. When enabled, | the output class will test whether your server supports Gzip. | Even if it does, however, not all browsers support compression | so enable only if you are reasonably sure your visitors can handle it. | | Only used if zlib.output_compression is turned off in your php.ini. | Please do not use it together with httpd-level output compression. | | VERY IMPORTANT: If you are getting a blank page when compression is enabled it | means you are prematurely outputting something to your browser. It could | even be a line of whitespace at the end of one of your scripts. For | compression to work, nothing can be sent before the output buffer is called | by the output class. Do not 'echo' any values with compression enabled. | */ $config['compress_output'] = FALSE; /* |-------------------------------------------------------------------------- | Master Time Reference |-------------------------------------------------------------------------- | | Options are 'local' or any PHP supported timezone. This preference tells | the system whether to use your server's local time as the master 'now' | reference, or convert it to the configured one timezone. See the 'date | helper' page of the user guide for information regarding date handling. | */ $config['time_reference'] = 'local'; /* |-------------------------------------------------------------------------- | Rewrite PHP Short Tags |-------------------------------------------------------------------------- | | If your PHP installation does not have short tag support enabled CI | can rewrite the tags on-the-fly, enabling you to utilize that syntax | in your view files. Options are TRUE or FALSE (boolean) | | Note: You need to have eval() enabled for this to work. | */ $config['rewrite_short_tags'] = FALSE; /* |-------------------------------------------------------------------------- | Reverse Proxy IPs |-------------------------------------------------------------------------- | | If your server is behind a reverse proxy, you must whitelist the proxy | IP addresses from which CodeIgniter should trust headers such as | HTTP_X_FORWARDED_FOR and HTTP_CLIENT_IP in order to properly identify | the visitor's IP address. | | You can use both an array or a comma-separated list of proxy addresses, | as well as specifying whole subnets. Here are a few examples: | | Comma-separated: '10.0.1.200,192.168.5.0/24' | Array: array('10.0.1.200', '192.168.5.0/24') */ $config['proxy_ips'] = '';
{'content_hash': '3232e1aaff6651bf4db0a79810a2efd3', 'timestamp': '', 'source': 'github', 'line_count': 523, 'max_line_length': 83, 'avg_line_length': 35.32122370936902, 'alnum_prop': 0.5427921831862719, 'repo_name': 'imetanon/yoyo', 'id': '812395dbc2873156ff15dbf4f87caec4f292993f', 'size': '18473', 'binary': False, 'copies': '1', 'ref': 'refs/heads/master', 'path': 'application/config/config.php', 'mode': '33188', 'license': 'mit', 'language': [{'name': 'ApacheConf', 'bytes': '240'}, {'name': 'CSS', 'bytes': '247554'}, {'name': 'HTML', 'bytes': '5633'}, {'name': 'JavaScript', 'bytes': '11428'}, {'name': 'PHP', 'bytes': '2062551'}]}
<?php /* @var $installer Mage_Sales_Model_Entity_Setup */ $installer = $this; $billingAgreementTable = $installer->getTable('sales/billing_agreement'); $installer->getConnection()->addColumn($billingAgreementTable, 'store_id', 'smallint(5) unsigned DEFAULT NULL'); $installer->getConnection()->addConstraint( 'FK_BILLING_AGREEMENT_STORE', $billingAgreementTable, 'store_id', $installer->getTable('core/store'), 'store_id', 'SET NULL', 'CASCADE' );
{'content_hash': '8561f38e209351f3b3733c4af7c6b9c4', 'timestamp': '', 'source': 'github', 'line_count': 20, 'max_line_length': 73, 'avg_line_length': 24.25, 'alnum_prop': 0.6845360824742268, 'repo_name': 'tagalpha/library', 'id': 'bee9781b90f49dd8da87ff9561a63c534d0b69d7', 'size': '1437', 'binary': False, 'copies': '3', 'ref': 'refs/heads/master', 'path': 'app/code/core/Mage/Sales/sql/sales_setup/mysql4-upgrade-1.4.0.16-1.4.0.17.php', 'mode': '33188', 'license': 'mit', 'language': [{'name': 'ActionScript', 'bytes': '20063'}, {'name': 'ApacheConf', 'bytes': '8117'}, {'name': 'Batchfile', 'bytes': '1036'}, {'name': 'CSS', 'bytes': '1805855'}, {'name': 'HTML', 'bytes': '5531269'}, {'name': 'JavaScript', 'bytes': '1295882'}, {'name': 'PHP', 'bytes': '45317581'}, {'name': 'PowerShell', 'bytes': '1028'}, {'name': 'Ruby', 'bytes': '288'}, {'name': 'Shell', 'bytes': '19717'}, {'name': 'XSLT', 'bytes': '2066'}]}
package org.apache.wicket.util.tester.apps_5; import org.apache.wicket.Page; import org.apache.wicket.WicketTestCase; import org.apache.wicket.ajax.AjaxRequestTarget; import org.apache.wicket.ajax.markup.html.AjaxFallbackLink; import org.apache.wicket.ajax.markup.html.AjaxLink; import org.apache.wicket.util.tester.ITestPageSource; /** * Test that the clickLink method also works with AjaxLinks * * @author Frank Bille */ public class AjaxLinkClickTest extends WicketTestCase { private boolean linkClicked; private AjaxRequestTarget ajaxRequestTarget; /** * Construct. */ public AjaxLinkClickTest() { super("AjaxLink click test"); } /** * Make sure that our test flags are reset between every test. * * @see org.apache.wicket.WicketTestCase#setUp() */ @Override protected void setUp() throws Exception { super.setUp(); linkClicked = false; ajaxRequestTarget = null; } /** * Test that an AjaxLink's onClick method is actually invoked. */ public void testBasicAjaxLinkClick() { // Create a link, which we test is actually invoked final AjaxLink<Void> ajaxLink = new AjaxLink<Void>("ajaxLink") { private static final long serialVersionUID = 1L; @Override public void onClick(AjaxRequestTarget target) { linkClicked = true; ajaxRequestTarget = target; } }; tester.startPage(new ITestPageSource() { /** * */ private static final long serialVersionUID = 1L; public Page getTestPage() { Page page = new MockPageWithLink(); page.add(ajaxLink); return page; } }); tester.clickLink("ajaxLink"); assertTrue(linkClicked); assertNotNull(ajaxRequestTarget); } /** * Test that clickLink also works with AjaxFallbackLinks * * AjaxFallbackLinks should be clicked and interpreted as an AjaxLink, which means that * AjaxRequestTarget is not null. */ public void testAjaxFallbackLinkClick() { final Page page = new MockPageWithLink(); // Create a link, which we test is actually invoked page.add(new AjaxFallbackLink<Void>("ajaxLink") { private static final long serialVersionUID = 1L; @Override public void onClick(AjaxRequestTarget target) { linkClicked = true; ajaxRequestTarget = target; } }); tester.startPage(new ITestPageSource() { /** * */ private static final long serialVersionUID = 1L; public Page getTestPage() { return page; } }); tester.clickLink("ajaxLink"); assertTrue(linkClicked); assertNotNull(ajaxRequestTarget); } /** * Test that when AJAX is disabled, the AjaxFallbackLink is invoked with null as * AjaxRequestTarget. */ public void testFallbackLinkWithAjaxDisabled() { final Page page = new MockPageWithLink(); // Create a link, which we test is actually invoked page.add(new AjaxFallbackLink<Void>("ajaxLink") { private static final long serialVersionUID = 1L; @Override public void onClick(AjaxRequestTarget target) { linkClicked = true; ajaxRequestTarget = target; } }); tester.startPage(new ITestPageSource() { /** * */ private static final long serialVersionUID = 1L; public Page getTestPage() { return page; } }); // Click the link with ajax disabled tester.clickLink("ajaxLink", false); assertTrue(linkClicked); assertNull(ajaxRequestTarget); } }
{'content_hash': 'c5701b437b14226b9e5ffd5978b4f56d', 'timestamp': '', 'source': 'github', 'line_count': 166, 'max_line_length': 88, 'avg_line_length': 20.379518072289155, 'alnum_prop': 0.697014484185634, 'repo_name': 'Servoy/wicket', 'id': '2dd2d52362bc19b57c958ba83e63fde7124dc176', 'size': '4185', 'binary': False, 'copies': '1', 'ref': 'refs/heads/wicket-1.4.x', 'path': 'wicket/src/test/java/org/apache/wicket/util/tester/apps_5/AjaxLinkClickTest.java', 'mode': '33188', 'license': 'apache-2.0', 'language': [{'name': 'CSS', 'bytes': '58903'}, {'name': 'HTML', 'bytes': '772575'}, {'name': 'Java', 'bytes': '8970322'}, {'name': 'JavaScript', 'bytes': '203125'}, {'name': 'Perl', 'bytes': '2053'}, {'name': 'Roff', 'bytes': '95314'}, {'name': 'Shell', 'bytes': '13496'}, {'name': 'XSLT', 'bytes': '2567'}]}
package gov.hhs.fha.nhinc.admingui.model.direct; import java.text.SimpleDateFormat; import org.nhind.config.Anchor; import org.nhind.config.EntityStatus; /** * * @author jasonasmith */ public class DirectAnchor { private String trustedDomainOrUser; private long id; private long certificateId; private String owner; private String thumbprint; private EntityStatus status; private String createTime; private String validEndDate; private String validStartDate; private boolean isOutgoing; private boolean isIncoming; /** * */ public DirectAnchor() { } /** * * @param anchor * @param trustedDomainOrUser */ public DirectAnchor(Anchor anchor, String trustedDomainOrUser) { this.trustedDomainOrUser = trustedDomainOrUser; id = anchor.getId(); certificateId = anchor.getCertificateId(); owner = anchor.getOwner(); thumbprint = anchor.getThumbprint(); status = anchor.getStatus(); SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd HH:mm"); createTime = sdf.format(anchor.getCreateTime().toGregorianCalendar().getTime()); validEndDate = sdf.format(anchor.getValidEndDate().toGregorianCalendar().getTime()); validStartDate = sdf.format(anchor.getValidStartDate().toGregorianCalendar().getTime()); isIncoming = anchor.isIncoming(); isOutgoing = anchor.isOutgoing(); } /** * * @return */ public String getTrustedDomainOrUser() { return trustedDomainOrUser; } /** * * @return */ public long getId() { return id; } /** * * @return */ public long getCertificateId() { return certificateId; } /** * * @return */ public String getOwner() { return owner; } /** * * @return */ public String getThumbprint() { return thumbprint; } /** * * @return */ public EntityStatus getStatus() { return status; } /** * * @return */ public String getCreateTime() { return createTime; } /** * * @return */ public String getValidEndDate() { return validEndDate; } /** * * @return */ public boolean isOutgoing() { return isOutgoing; } /** * * @return */ public boolean isIncoming() { return isIncoming; } /** * * @return */ public String getValidStartDate() { return validStartDate; } /** * * @param trustedDomainOrUser */ public void setTrustedDomainOrUser(String trustedDomainOrUser) { this.trustedDomainOrUser = trustedDomainOrUser; } /** * * @param id */ public void setId(long id) { this.id = id; } /** * * @param certificateId */ public void setCertificateId(long certificateId) { this.certificateId = certificateId; } /** * * @param owner */ public void setOwner(String owner) { this.owner = owner; } /** * * @param thumbprint */ public void setThumbprint(String thumbprint) { this.thumbprint = thumbprint; } /** * * @param status */ public void setStatus(EntityStatus status) { this.status = status; } /** * * @param createTime */ public void setCreateTime(String createTime) { this.createTime = createTime; } /** * * @param validEndDate */ public void setValidEndDate(String validEndDate) { this.validEndDate = validEndDate; } /** * * @param validStartDate */ public void setValidStartDate(String validStartDate) { this.validStartDate = validStartDate; } /** * * @param isOutgoing */ public void setOutgoing(boolean isOutgoing) { this.isOutgoing = isOutgoing; } /** * * @param isIncoming */ public void setIncoming(boolean isIncoming) { this.isIncoming = isIncoming; } }
{'content_hash': 'eb5bcfc3b94eaf4988bdf150de608d32', 'timestamp': '', 'source': 'github', 'line_count': 238, 'max_line_length': 96, 'avg_line_length': 17.886554621848738, 'alnum_prop': 0.5588442565186751, 'repo_name': 'healthreveal/CONNECT', 'id': '6cce8f913fa02e4bd41c24d180bea0a0578c6732', 'size': '5867', 'binary': False, 'copies': '2', 'ref': 'refs/heads/hrv_integration_4.4', 'path': 'Product/Production/Adapters/General/CONNECTAdminGUI/src/main/java/gov/hhs/fha/nhinc/admingui/model/direct/DirectAnchor.java', 'mode': '33188', 'license': 'bsd-3-clause', 'language': [{'name': 'CSS', 'bytes': '62138'}, {'name': 'Groovy', 'bytes': '1641'}, {'name': 'HTML', 'bytes': '170838'}, {'name': 'Java', 'bytes': '13788093'}, {'name': 'JavaScript', 'bytes': '6991'}, {'name': 'PLSQL', 'bytes': '67181'}, {'name': 'Python', 'bytes': '773'}, {'name': 'SQLPL', 'bytes': '1363363'}, {'name': 'Shell', 'bytes': '17435'}, {'name': 'XSLT', 'bytes': '35057'}]}
using namespace Neander; ProgramCounter::ProgramCounter() : ProgramCounter(0) {} ProgramCounter::ProgramCounter(unsigned long address) { mAddress = address; } unsigned long ProgramCounter::getAddress() const { return mAddress; } void ProgramCounter::setAddress(unsigned long address) { mAddress = address; } unsigned long ProgramCounter::incrementAddress() { return ++mAddress; }
{'content_hash': '5cc407b261657bc5b2f82894a1405b6e', 'timestamp': '', 'source': 'github', 'line_count': 19, 'max_line_length': 56, 'avg_line_length': 20.473684210526315, 'alnum_prop': 0.7686375321336761, 'repo_name': 'pietrocaselani/Neander', 'id': '049d3f995d1563e03be7917f5cf37cdb86fda4dc', 'size': '468', 'binary': False, 'copies': '1', 'ref': 'refs/heads/master', 'path': 'Neander/ProgramCounter.cpp', 'mode': '33188', 'license': 'apache-2.0', 'language': [{'name': 'C++', 'bytes': '21333'}, {'name': 'CMake', 'bytes': '1203'}]}
namespace blink { HIDConnectionEvent* HIDConnectionEvent::Create( const AtomicString& type, const HIDConnectionEventInit* initializer) { return MakeGarbageCollected<HIDConnectionEvent>(type, initializer); } HIDConnectionEvent* HIDConnectionEvent::Create(const AtomicString& type, HIDDevice* device) { return MakeGarbageCollected<HIDConnectionEvent>(type, device); } HIDConnectionEvent::HIDConnectionEvent( const AtomicString& type, const HIDConnectionEventInit* initializer) : Event(type, initializer) {} HIDConnectionEvent::HIDConnectionEvent(const AtomicString& type, HIDDevice* device) : Event(type, Bubbles::kNo, Cancelable::kNo), device_(device) {} void HIDConnectionEvent::Trace(Visitor* visitor) const { visitor->Trace(device_); Event::Trace(visitor); } } // namespace blink
{'content_hash': '1a6703a639bb6ad968eac03a9279a2ff', 'timestamp': '', 'source': 'github', 'line_count': 28, 'max_line_length': 72, 'avg_line_length': 32.392857142857146, 'alnum_prop': 0.6968026460859978, 'repo_name': 'chromium/chromium', 'id': 'abafd7cfd9971070d80a77e8042f151d793bf243', 'size': '1278', 'binary': False, 'copies': '6', 'ref': 'refs/heads/main', 'path': 'third_party/blink/renderer/modules/hid/hid_connection_event.cc', 'mode': '33188', 'license': 'bsd-3-clause', 'language': []}
<div class="row"> <div class="contribute"> <i class="icon-fork"></i><p> If you want to be added to this page please open a new <a //href="https://github.com/spf13/hugoThemes/issues">issue</a> with a link to your GitHub repo.</p> <p><small>Last built: {{ .Now.Format "Mon Jan 2 2006 15:04" }}</small></p> </div> </div>
{'content_hash': 'a44a72731076ceae3077fe4e9dd5c006', 'timestamp': '', 'source': 'github', 'line_count': 6, 'max_line_length': 194, 'avg_line_length': 56.0, 'alnum_prop': 0.625, 'repo_name': 'dindinet/hugo-forestry', 'id': '7bd18a864e5cf1a4653b21b9c0535986e6eeb1db', 'size': '336', 'binary': False, 'copies': '1', 'ref': 'refs/heads/master', 'path': 'layouts/partials/contribute.html', 'mode': '33188', 'license': 'apache-2.0', 'language': [{'name': 'CSS', 'bytes': '145404'}, {'name': 'HTML', 'bytes': '34186'}, {'name': 'JavaScript', 'bytes': '43313'}]}
<!--[if IE]> <link rel="stylesheet" type="text/css" href="/stylesheets/countdown_ie.css" media="all"/> <![endif]--> {% include "breadcrumbs" %} {% if page.headline.size > 0 %} <h2 class="headline">{{ page.headline }}</h2> {% endif %} <div id="content"> {% if page.moneybomb.content.size > 0 %} <div id="moneybomb-content"> {{ page.moneybomb.content }} </div> {% endif %} {% if page.show_social_slider? and page.public_activities_count > 0 %} {% include "social_slider" %} {% endif %} {% if page.moneybomb.has_start_at? and page.moneybomb.is_active? == false and page.moneybomb.is_past? == false %} <div class="event-detail"> <div class="subhead">COUNTDOWN TO {{ page.moneybomb.local_start_at | moneybomb_time }}</div> <div class="subtext"> <div id="pre-countdown" class="countdown"></div> </div> </div> {% elsif page.moneybomb.is_active? %} <div class="event-detail"> <div class="subhead">TIME LEFT TO DONATE</div> <div class="subtext"> <div id="active-countdown" class="countdown"></div> </div> </div> {% endif %} {% assign thermo_width = 50 %} {% if page.moneybomb.has_amount_goal? %} <div class="clearfix"> <div class="progress" style="width: {{ thermo_width }}%;"> <div class="bar bar-success" style="width: {{ page.moneybomb.percent_of_amount_goal | times:100 }}%;"> {% if page.pledges_count < 1 %} <div class="bar-text">JUST STARTED</div> {% else %} <div class="bar-text">{{ page.pledges_amount_format }} pledged</div> {% endif %} </div> </div> <div class="bar-goal">GOAL: {{ page.moneybomb.amount_goal_format }}</div> </div> {% elsif page.moneybomb.has_pledger_goal? %} <div class="clearfix"> <div class="progress" style="width: {{ thermo_width }}%;"> <div class="bar bar-success" style="width: {{ page.moneybomb.percent_of_pledger_goal | times:100 }}%;"> {% if page.pledges_count < 2 %} <div class="bar-text">JUST STARTED</div> {% else %} <div class="bar-text">{{ page.pledges_count }} pledgers</div> {% endif %} </div> </div> <div class="bar-goal">GOAL: {{ page.moneybomb.pledger_goal }} PLEDGERS</div> </div> {% endif %} {% if page.moneybomb.is_pledged? %} {% form_for pledge %} <div class="form-wrap"> <div class="form"> <h3>Thank you for pledging!</h3> <div class="form-errors">{% error_messages_for pledges %}</div> <label for="pledge_content">Change your pledge amount</label> <div class="padtop padbottom"> <div class="radio-inline">{{ page.moneybomb.form_amount_options }}</div> </div> {% if page.is_commentable? %} {% submit_tag "Save pledge", class:"submit-button" %} &nbsp; {% endif %} {{ page.moneybomb.current_pledge | delete_link message: "Cancel pledge" class_name: "button destroy-link" }} <div class="form-submit"></div> </div> </div> {% endform_for %} {% else %} {% form_for pledge %} <div class="form-wrap"> <div class="form"> {% if request.sorta_logged_in? %} <h4>Hi {{ request.current_signup.name_or_email }}, how much will you pledge to donate{% if page.moneybomb.has_start_at? %} on {{ page.moneybomb.local_start_at | moneybomb_time }}{% endif %}?</h4> {% if request.logged_in? == false %} <div class="padtop"> If you're not {{ request.current_signup.name_or_email }}, <a href="{{ request.current_signup.logout_url }}">click here</a>. </div> {% endif %} {% else %} <h4>How much will you pledge to donate{% if page.moneybomb.has_start_at? %} on {{ page.moneybomb.local_start_at | moneybomb_time }}{% endif %}?</h4> {% endif %} <div class="form-errors">{% error_messages_for pledge %}</div> <div class="padtop padbottom"> <div class="radio-inline">{{ page.moneybomb.form_amount_options }}</div> </div> {% if request.sorta_logged_in? == false or request.current_signup.has_name? == false %} <div class="row-fluid"> <div class="span6"><label for="pledge_first_name">First Name</label>{% text_field "first_name", class:"text" %} </div> <div class="span6"><label for="pledge_last_name">Last Name</label>{% text_field "last_name", class:"text" %} </div> </div> {% endif %} {% if request.sorta_logged_in? == false %} <div class="row-fluid"> <div class="span6"><label for="pledge_email">Email</label>{% email_field "email", class:"text" %}</div> {% if site.ask_for_mobiles? %} <div class="span6"> <label for="pledge_mobile_number">Mobile phone (optional)</label>{% phone_field "mobile_number", class:"text" %} </div> {% endif %} </div> {% unless page.show_consent_form? %} <div class="row-fluid"> <div class="span6"> <label class="checkbox" for="pledge_email_opt_in">{% check_box "email_opt_in", class:"checkbox" %} Send me email updates</label> </div> {% if site.ask_for_mobiles? %} <div class="span6"> <label class="checkbox" for="pledge_mobile_opt_in">{% check_box "mobile_opt_in", class:"checkbox" %} Send me text message updates</label> </div> {% endif %} </div> {% endunless %} {% endif %} {% if request.sorta_logged_in? == false or request.current_signup.has_full_address? == false %} <div class="row-fluid"> <div class="span12"> <label for="pledge_submitted_address">Address (Street, City, State, Postal code)</label>{% text_field "submitted_address", class:"text" %} </div> </div> {% endif %} {% if site.ask_to_publish_to_stream? %} <div class="row-fluid"> <div class="span12"> <label class="checkbox" for="pledge_is_private">{% check_box "is_private", class:"checkbox" %} Don't publish this on the website</label> </div> </div> {% endif %} {% if request.sorta_logged_in? == false or request.current_signup.is_volunteer == false %} <div class="row-fluid"> <div class="span12"> <label class="checkbox" for="pledge_is_volunteer">{% check_box "is_volunteer", class:"checkbox" %} I want to volunteer</label> </div> </div> {% endif %} {% if page.show_consent_form? %}{% include "consent_form" %}{% endif %} {% submit_tag "Add pledge", class:"submit-button" %} <div class="form-submit"></div> {% endform_for %} {% if page.text_keyword_instructions.size > 0 %} <div class="row-fluid padtopmore padbottommore"> <div class="span12"> or {{ page.text_keyword_instructions }} </div> </div> {% endif %} </div> </div> {% endif %} {% if page.tags_count > 0 %} <div id="page-tags" class="page-tags"> {% include "page_tags" with page %} </div> {% endif %} <div class="like-page"> <div class="padtop padbottom"> <strong>Like this to spread the word:</strong> {% include "like_page" %} </div> </div> </div> {% if page.show_stream? %} {% include "page_stream" %} {% endif %} <script type="text/javascript" src="/javascripts/jquery.countdown.min.js"></script> <script type="text/javascript" src="/assets/liquid/money-bomb.js"></script> <script type="text/javascript"> $(function () { var moneyBomb = new NB.Liquid.MoneyBomb(); moneyBomb.setCountdown({ $el : $('#pre-countdown'), until: +{{ page.moneybomb.seconds_until }} }); moneyBomb.setCountdown({ $el : $('#active-countdown'), until: +{{ page.moneybomb.seconds_left }} }); }); </script>
{'content_hash': '3ff546a18110507fa06b0977cfd3bf91', 'timestamp': '', 'source': 'github', 'line_count': 242, 'max_line_length': 201, 'avg_line_length': 31.99586776859504, 'alnum_prop': 0.5770373240346119, 'repo_name': 'votejayarnold/NationBuilder', 'id': '10007fe15f0834f09ab2e493d53719d9176fe34f', 'size': '7743', 'binary': False, 'copies': '1', 'ref': 'refs/heads/master', 'path': 'themes/friends-of-jay-arnold-6048586ac29480095e9a71f0/pages_show_moneybomb.html', 'mode': '33188', 'license': 'mit', 'language': [{'name': 'CSS', 'bytes': '135736'}, {'name': 'HTML', 'bytes': '231842'}, {'name': 'JavaScript', 'bytes': '12212'}]}
<!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <meta name="generator" content="rustdoc"> <meta name="description" content="API documentation for the Rust `XKB_KEY_braille_dots_23568` constant in crate `wayland_kbd`."> <meta name="keywords" content="rust, rustlang, rust-lang, XKB_KEY_braille_dots_23568"> <title>wayland_kbd::keysyms::XKB_KEY_braille_dots_23568 - Rust</title> <link rel="stylesheet" type="text/css" href="../../main.css"> </head> <body class="rustdoc"> <!--[if lte IE 8]> <div class="warning"> This old browser is unsupported and will most likely display funky things. </div> <![endif]--> <section class="sidebar"> <p class='location'><a href='../index.html'>wayland_kbd</a>::<wbr><a href='index.html'>keysyms</a></p><script>window.sidebarCurrent = {name: 'XKB_KEY_braille_dots_23568', ty: 'constant', relpath: ''};</script><script defer src="sidebar-items.js"></script> </section> <nav class="sub"> <form class="search-form js-only"> <div class="search-container"> <input class="search-input" name="search" autocomplete="off" placeholder="Click or press 'S' to search, '?' for more options..." type="search"> </div> </form> </nav> <section id='main' class="content constant"> <h1 class='fqn'><span class='in-band'><a href='../index.html'>wayland_kbd</a>::<wbr><a href='index.html'>keysyms</a>::<wbr><a class='constant' href=''>XKB_KEY_braille_dots_23568</a></span><span class='out-of-band'><span id='render-detail'> <a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs"> [<span class='inner'>&#x2212;</span>] </a> </span><a id='src-5855' class='srclink' href='../../src/wayland_kbd/ffi/keysyms.rs.html#2288' title='goto source code'>[src]</a></span></h1> <pre class='rust const'>pub const XKB_KEY_braille_dots_23568: <a href='http://doc.rust-lang.org/nightly/std/primitive.u32.html'>u32</a><code> = </code><code>0x10028b6</code></pre></section> <section id='search' class="content hidden"></section> <section class="footer"></section> <div id="help" class="hidden"> <div class="shortcuts"> <h1>Keyboard shortcuts</h1> <dl> <dt>?</dt> <dd>Show this help dialog</dd> <dt>S</dt> <dd>Focus the search field</dd> <dt>&larrb;</dt> <dd>Move up in search results</dd> <dt>&rarrb;</dt> <dd>Move down in search results</dd> <dt>&#9166;</dt> <dd>Go to active search result</dd> </dl> </div> <div class="infos"> <h1>Search tricks</h1> <p> Prefix searches with a type followed by a colon (e.g. <code>fn:</code>) to restrict the search to a given type. </p> <p> Accepted types are: <code>fn</code>, <code>mod</code>, <code>struct</code>, <code>enum</code>, <code>trait</code>, <code>typedef</code> (or <code>tdef</code>). </p> <p> Search functions by type signature (e.g. <code>vec -> usize</code>) </p> </div> </div> <script> window.rootPath = "../../"; window.currentCrate = "wayland_kbd"; window.playgroundUrl = ""; </script> <script src="../../jquery.js"></script> <script src="../../main.js"></script> <script async src="../../search-index.js"></script> </body> </html>
{'content_hash': 'b9b3574c1befb50a33bfb1dc9eb662d6', 'timestamp': '', 'source': 'github', 'line_count': 101, 'max_line_length': 263, 'avg_line_length': 38.53465346534654, 'alnum_prop': 0.5354573484069887, 'repo_name': 'mcanders/bevy', 'id': '3ab9a974b018a4245f4d9c9f8b8b59f5cc62036a', 'size': '3892', 'binary': False, 'copies': '1', 'ref': 'refs/heads/master', 'path': 'doc/wayland_kbd/keysyms/constant.XKB_KEY_braille_dots_23568.html', 'mode': '33188', 'license': 'mit', 'language': [{'name': 'Rust', 'bytes': '316751'}]}
autoscale: true build-lists: true --- # Functional Programming Patterns v2 # (for the pragmatic programmer) ~ @raulraja CTO @47deg --- ## Acknowledgment ## - Scalaz : Functional programming in Scala - Rúnar Bjarnason : Compositional Application Architecture With Reasonably Priced Monads - Noel Markham : A purely functional approach to building large applications - Wouter Swierstra : FUNCTIONAL PEARL Data types a la carte - Rapture : Jon Pretty --- Functions are first class citizens in FP Architecture --- Most functional patterns are derived from Category Theory --- When I build an app I want it to be - Free of Interpretation - Composable pieces - Dependency Injection / IOC - Fault Tolerance --- When I build an app I want it to be - Free of Interpretation : **Free Monads** - Composable pieces : **Coproducts** - Dependency Injection / IOC : **Implicits & Kleisli** - Fault tolerant : **Dependently typed checked exceptions** --- ## Interpretation : Free Monads ## What is a Free Monad? -- A monad on a custom algebra that can be run through an Interpreter --- ## Interpretation : Free Monads ## What is an Application? -- A collection of algebras and the Coproduct resulting from their interaction --- ## Interpretation : Free Monads ## Let's build an app that reads a contact and performs some operations with it --- ## Interpretation : Free Monads ## A very simple model ```scala case class Contact( firstName: String, lastName: String, phoneNumber: String) ``` --- ## Interpretation : Free Monads ## Our first Algebra is interaction with a user ```scala sealed trait Interact[A] case class Ask(prompt: String) extends Interact[String] case class Tell(msg: String) extends Interact[Unit] ``` --- ## Interpretation : Free Monads ## Our second Algebra is about persistence ```scala sealed trait DataOp[A] case class AddContact(a: Contact) extends DataOp[Unit] case class GetAllContacts() extends DataOp[List[Contact]] ``` --- ## Interpretation : Free Monads ## **An application is the Coproduct of its algebras** ```scala type AgendaApp[A] = Coproduct[DataOp, Interact, A] ``` --- ## Interpretation : Free Monads ## **Coyoneda can gives functors for free for our Algebras** ```scala type ACoyo[A] = Coyoneda[AgendaApp,A] type AFree[A] = Free[ACoyo,A] ``` --- ## Interpretation : Free Monads ## **We can now lift different algebras to our App Coproduct** ```scala def lift[F[_], G[_], A](fa: F[A])(implicit I: Inject[F, G]): FreeC[G, A] = Free.liftFC(I.inj(fa)) ``` --- ## Interpretation : Free Monads ## **We can now lift different algebras to our App monad and compose them** ```scala class Interacts[F[_]](implicit I: Inject[Interact, F]) { def tell(msg: String): Free.FreeC[F, Unit] = lift(Tell(msg)) def ask(prompt: String): Free.FreeC[F, String] = lift(Ask(prompt)) } object Interacts { implicit def interacts[F[_]](implicit I: Inject[Interact, F]): Interacts[F] = new Interacts[F] } ``` --- ## Interpretation : Free Monads ## **We can now lift different algebras to our App monad and compose them** ```scala class DataSource[F[_]](implicit I: Inject[DataOp, F]) { def addContact(a: Contact): FreeC[F, Unit] = lift[DataOp, F, Unit](AddContact(a)) def getAllContacts: FreeC[F, List[Contact]] = lift[DataOp, F, List[Contact]](GetAllContacts()) } object DataSource { implicit def dataSource[F[_]](implicit I: Inject[DataOp, F]): DataSource[F] = new DataSource[F] } ``` --- ## Interpretation : Free Monads ## At this point a program is nothing but **Data** describing the sequence of execution but **FREE** of its runtime interpretation. ```scala def program(implicit I : Interacts[AgendaApp], D : DataSource[AgendaApp]) = { import I._, D._ for { firstName <- ask("First Name:") lastName <- ask("Last Name:") phoneNumber <- ask("Phone Number:") _ <- addContact(Contact(firstName, lastName, phoneNumber)) contacts <- getAllContacts _ <- tell(contacts.toString) } yield () } ``` --- ## Interpretation : Free Monads ## We isolate interpretations via Natural transformations AKA `Interpreters`. In other words with map over the outer type constructor of our Algebras ```scala object ConsoleContactReader extends (Interact ~> Id.Id) { def apply[A](i: Interact[A]) = i match { case Ask(prompt) => println(prompt) scala.io.StdIn.readLine() case Tell(msg) => println(msg) } } ``` --- ## Interpretation : Free Monads ## We isolate interpretations via Natural transformations AKA `Interpreters`. In other words with map over the outer type constructor of our Algebras ```scala object InMemoryDatasourceInterpreter extends (DataOp ~> Id.Id) { private[this] val memDataSet = new ListBuffer[Contact] override def apply[A](fa: DataOp[A]) = fa match { case AddContact(a) => memDataSet.append(a); () case GetAllContacts() => memDataSet.toList } } ``` --- ## Interpretation : Free Monads ## A tree of interpreters may be described to branch accordingly on each algebra when evaluating a Coproduct ```scala def or[F[_], G[_], H[_]](f: F ~> H, g: G ~> H): ({type cp[α] = Coproduct[F, G, α]})#cp ~> H = new NaturalTransformation[({type cp[α] = Coproduct[F, G, α]})#cp, H] { def apply[A](fa: Coproduct[F, G, A]): H[A] = fa.run match { case -\/(ff) => f(ff) case \/-(gg) => g(gg) } } ``` --- ## Interpretation : Free Monads ## Now that we have a way to combine interpreters we can lift them to the app Coproduct ```scala val interpreters: AgendaApp ~> Id.Id = or(InMemoryDatasourceInterpreter, ConsoleContactReader) val coyoint: ({type f[x] = Coyoneda[AgendaApp, x]})#f ~> Id.Id = Coyoneda.liftTF(interpreters) ``` --- ## Interpretation : Free Monads ## And we can finally apply our program applying the interpreter to the free monad ```scala val evaled = program mapSuspension coyoint ``` --- ## Composability ## Composition gives us the power to easily mix simple functions to achieve more complex workflows. --- ## Composability ## We can achieve monadic function composition with **Kleisli Arrows** `A ⇒ M[B]` In other words a function that for a given input it returns a type constructor… `List[B], Option[B], Either[B], Task[B], Future[B]…` --- ## Composability ## When the type constructor `M[_]` it's a Monad it can be monadically composed ```scala val composed = for { a <- Kleisli((x : String) ⇒ Option(x.toInt + 1)) b <- Kleisli((x : String) ⇒ Option(x.toInt * 2)) } yield a + b ``` --- ## Composability ## The deferred injection of the input parameter enables **Dependency Injection**. This is an alternative to implicits commonly known as DI with the Reader monad. ```scala val composed = for { a <- Kleisli((x : String) ⇒ Option(x.toInt + 1)) b <- Kleisli((x : String) ⇒ Option(x.toInt * 2)) } yield a + b composed.run("1") ``` --- ## Requirements ## - **Free of Interpretation** - **Composable pieces** - **Dependency Injection / IOC** - Fault Tolerance --- ## Fault Tolerance ## Most containers and patterns generalize to the most common super-type or simply `Throwable` loosing type information. ```scala val f = scala.concurrent.Future.failed(new NumberFormatException) val t = scala.util.Try(throw new NumberFormatException) val d = for { a <- 1.right[NumberFormatException] b <- (new RuntimeException).left[Int] } yield a + b ``` --- ## Fault Tolerance ## We don't have to settle for `Throwable`!!! We could use instead… - Nested disjunctions - Delimited, Monadic, Dependently-typed, Accumulating Checked Exceptions --- ## Fault Tolerance : Dependently-typed Acc Exceptions ## Introducing `rapture.core.Result` --- ## Fault Tolerance : Dependently-typed Acc Exceptions ## `Result` is similar to `\/` but has 3 possible outcomes (Answer, Errata, Unforeseen) ```scala val op = for { a <- Result.catching[NumberFormatException]("1".toInt) b <- Result.errata[Int, IllegalArgumentException]( new IllegalArgumentException("expected")) } yield a + b ``` --- ## Fault Tolerance : Dependently-typed Acc Exceptions ## `Result` uses dependently typed monadic exception accumulation ```scala val op = for { a <- Result.catching[NumberFormatException]("1".toInt) b <- Result.errata[Int, IllegalArgumentException]( new IllegalArgumentException("expected")) } yield a + b ``` --- ## Fault Tolerance : Dependently-typed Acc Exceptions ## You may recover by `resolving` errors to an `Answer`. ```scala op resolve ( each[IllegalArgumentException](_ ⇒ 0), each[NumberFormatException](_ ⇒ 0), each[IndexOutOfBoundsException](_ ⇒ 0)) ``` --- ## Fault Tolerance : Dependently-typed Acc Exceptions ## Or `reconcile` exceptions into a new custom one. ```scala case class MyCustomException(e : Exception) extends Exception(e.getMessage) op reconcile ( each[IllegalArgumentException](MyCustomException(_)), each[NumberFormatException](MyCustomException(_)), each[IndexOutOfBoundsException](MyCustomException(_))) ``` --- ## Recap ## - **Free Monads** : Free of Interpretation - **Coproducts** : Composable pieces - **Implicits & Kleisli** : Dependency Injection / IOC - **Dependently typed checked exceptions** Fault tolerant --- ## What's next? ## If you want to sequence or comprehend over unrelated monads you need Transformers. Transformers are supermonads that help you flatten through nested monads such as Future[Option] or Kleisli[Task[Disjuntion]] binding to the most inner value. Attend @larsr_h talk about monad transformers **OptimusPrimeT** http://www.47deg.com/blog/fp-for-the-average-joe-part-2-scalaz-monad-transformers --- ## Questions? & Thanks! ## @raulraja @47deg http://github.com/47deg/func-architecture-v2 https://speakerdeck.com/raulraja/functional-programming-patterns-v2 ---
{'content_hash': 'e93f50309216899ec7d1daab6a523a77', 'timestamp': '', 'source': 'github', 'line_count': 481, 'max_line_length': 97, 'avg_line_length': 20.53014553014553, 'alnum_prop': 0.6910379746835443, 'repo_name': '47deg/func-architecture-v2', 'id': '551466076496b8ce9498fccfe52288afa8e62dae', 'size': '9902', 'binary': False, 'copies': '1', 'ref': 'refs/heads/master', 'path': 'presentation.md', 'mode': '33188', 'license': 'apache-2.0', 'language': [{'name': 'Scala', 'bytes': '17997'}]}
<?xml version="1.0" encoding="UTF-8"?> <testsuite name="org.apache.sling.launchpad.webapp.integrationtest.issues.SLING2094Test" time="0.842" tests="2" errors="0" skipped="0" failures="0"> <properties> <property name="project.bundle.file" value="/home/xumakgt5/Desarrollo/Apache/sling/bundles/commons/log/target/org.apache.sling.commons.log-4.0.1-SNAPSHOT.jar"/> <property name="java.runtime.name" value="Java(TM) SE Runtime Environment"/> <property name="sun.boot.library.path" value="/usr/lib/jvm/java-7-oracle/jre/lib/amd64"/> <property name="java.vm.version" value="24.55-b03"/> <property name="java.vm.vendor" value="Oracle Corporation"/> <property name="java.vendor.url" value="http://java.oracle.com/"/> <property name="path.separator" value=":"/> <property name="guice.disable.misplaced.annotation.check" value="true"/> <property name="java.vm.name" value="Java HotSpot(TM) 64-Bit Server VM"/> <property name="file.encoding.pkg" value="sun.io"/> <property name="user.country" value="GT"/> <property name="sun.java.launcher" value="SUN_STANDARD"/> <property name="sun.os.patch.level" value="unknown"/> <property name="java.vm.specification.name" value="Java Virtual Machine Specification"/> <property name="user.dir" value="/home/xumakgt5/Desarrollo/Apache/sling"/> <property name="java.runtime.version" value="1.7.0_55-b13"/> <property name="java.awt.graphicsenv" value="sun.awt.X11GraphicsEnvironment"/> <property name="java.endorsed.dirs" value="/usr/lib/jvm/java-7-oracle/jre/lib/endorsed"/> <property name="os.arch" value="amd64"/> <property name="java.io.tmpdir" value="/tmp"/> <property name="line.separator" value="&#10;"/> <property name="java.vm.specification.vendor" value="Oracle Corporation"/> <property name="os.name" value="Linux"/> <property name="classworlds.conf" value="/usr/share/maven/bin/m2.conf"/> <property name="sun.jnu.encoding" value="UTF-8"/> <property name="java.library.path" value="/usr/java/packages/lib/amd64:/usr/lib64:/lib64:/lib:/usr/lib"/> <property name="org.apache.jackrabbit.core.util.RepositoryLock:/home/xumakgt5/Desarrollo/Apache/sling/launchpad/testing/sling/jackrabbit" value="org.apache.jackrabbit.core.util.RepositoryLock:/home/xumakgt5/Desarrollo/Apache/sling/launchpad/testing/sling/jackrabbit"/> <property name="java.specification.name" value="Java Platform API Specification"/> <property name="java.class.version" value="51.0"/> <property name="sun.management.compiler" value="HotSpot 64-Bit Tiered Compilers"/> <property name="os.version" value="3.11.0-20-generic"/> <property name="user.home" value="/home/xumakgt5"/> <property name="user.timezone" value="America/Guatemala"/> <property name="java.awt.printerjob" value="sun.print.PSPrinterJob"/> <property name="java.specification.version" value="1.7"/> <property name="file.encoding" value="UTF-8"/> <property name="http.port" value="49169"/> <property name="user.name" value="xumakgt5"/> <property name="java.class.path" value="/usr/share/maven/boot/plexus-classworlds-2.x.jar"/> <property name="java.vm.specification.version" value="1.7"/> <property name="sun.arch.data.model" value="64"/> <property name="java.home" value="/usr/lib/jvm/java-7-oracle/jre"/> <property name="sun.java.command" value="org.codehaus.plexus.classworlds.launcher.Launcher clean install"/> <property name="org.terracotta.quartz.skipUpdateCheck" value="true"/> <property name="java.specification.vendor" value="Oracle Corporation"/> <property name="user.language" value="es"/> <property name="awt.toolkit" value="sun.awt.X11.XToolkit"/> <property name="java.vm.info" value="mixed mode"/> <property name="java.version" value="1.7.0_55"/> <property name="java.ext.dirs" value="/usr/lib/jvm/java-7-oracle/jre/lib/ext:/usr/java/packages/lib/ext"/> <property name="securerandom.source" value="file:/dev/./urandom"/> <property name="sun.boot.class.path" value="/usr/lib/jvm/java-7-oracle/jre/lib/resources.jar:/usr/lib/jvm/java-7-oracle/jre/lib/rt.jar:/usr/lib/jvm/java-7-oracle/jre/lib/sunrsasign.jar:/usr/lib/jvm/java-7-oracle/jre/lib/jsse.jar:/usr/lib/jvm/java-7-oracle/jre/lib/jce.jar:/usr/lib/jvm/java-7-oracle/jre/lib/charsets.jar:/usr/lib/jvm/java-7-oracle/jre/lib/jfr.jar:/usr/lib/jvm/java-7-oracle/jre/classes"/> <property name="java.vendor" value="Oracle Corporation"/> <property name="maven.home" value="/usr/share/maven"/> <property name="file.separator" value="/"/> <property name="derby.stream.error.file" value="/home/xumakgt5/Desarrollo/Apache/sling/launchpad/testing/sling/jackrabbit/derby.log"/> <property name="java.vendor.url.bug" value="http://bugreport.sun.com/bugreport/"/> <property name="sun.cpu.endian" value="little"/> <property name="sun.io.unicode.encoding" value="UnicodeLittle"/> <property name="sun.font.fontmanager" value="sun.awt.X11FontManager"/> <property name="sun.desktop" value="gnome"/> <property name="sun.cpu.isalist" value=""/> </properties> <testcase name="testWithoutError" classname="org.apache.sling.launchpad.webapp.integrationtest.issues.SLING2094Test" time="0.364"/> <testcase name="testWithError" classname="org.apache.sling.launchpad.webapp.integrationtest.issues.SLING2094Test" time="0.478"/> </testsuite>
{'content_hash': '5c165ea5cccc229c14e283f48f3a72d7', 'timestamp': '', 'source': 'github', 'line_count': 69, 'max_line_length': 408, 'avg_line_length': 78.20289855072464, 'alnum_prop': 0.7157153446997776, 'repo_name': 'MRivas-XumaK/slingBuild', 'id': '78193beb4eacad744a951255ff0fb9970a4c80d3', 'size': '5396', 'binary': False, 'copies': '1', 'ref': 'refs/heads/master', 'path': 'launchpad/testing/target/failsafe-reports/TEST-org.apache.sling.launchpad.webapp.integrationtest.issues.SLING2094Test.xml', 'mode': '33188', 'license': 'apache-2.0', 'language': [{'name': 'CSS', 'bytes': '78948'}, {'name': 'Groovy', 'bytes': '7964'}, {'name': 'Java', 'bytes': '15000817'}, {'name': 'JavaScript', 'bytes': '380961'}, {'name': 'Python', 'bytes': '298'}, {'name': 'Scala', 'bytes': '127988'}, {'name': 'Shell', 'bytes': '5532'}, {'name': 'XProc', 'bytes': '2290'}, {'name': 'XSLT', 'bytes': '10005'}]}
<?xml version="1.0" encoding="utf-8"?> <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:tools="http://schemas.android.com/tools" android:layout_width="match_parent" android:layout_height="match_parent" android:background="@color/green" android:paddingBottom="@dimen/activity_vertical_margin" android:paddingLeft="@dimen/activity_horizontal_margin" android:paddingRight="@dimen/activity_horizontal_margin" android:paddingTop="@dimen/activity_vertical_margin" tools:context="com.example.ratzf.pos_projekt.MainActivity"> <TextView android:layout_width="wrap_content" android:layout_height="wrap_content" android:textAppearance="?android:attr/textAppearanceLarge" android:text="Wissensapp" android:textStyle="bold" android:id="@+id/textView_title" android:layout_alignParentTop="true" android:layout_centerHorizontal="true" android:layout_marginTop="37dp" android:textColor="#ffffff" android:textSize="50dp" /> <Button android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="Neues Spiel" android:id="@+id/button_newGame" android:layout_below="@+id/imageView_logo" android:layout_centerHorizontal="true" android:onClick="new_Game"/> <Button android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="Highscore" android:id="@+id/button_highscore" android:layout_below="@+id/button_newGame" android:layout_alignLeft="@+id/button_newGame" android:layout_alignStart="@+id/button_newGame" android:layout_alignRight="@+id/button_newGame" android:layout_alignEnd="@+id/button_newGame" /> <Button android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="Options" android:id="@+id/button_options" android:layout_below="@+id/button_highscore" android:layout_alignLeft="@+id/button_highscore" android:layout_alignStart="@+id/button_highscore" android:layout_alignRight="@+id/button_highscore" android:layout_alignEnd="@+id/button_highscore" /> <TextView android:layout_width="wrap_content" android:layout_height="wrap_content" android:textAppearance="?android:attr/textAppearanceSmall" android:text="(C) Florian &amp; Patricia" android:id="@+id/textView" android:layout_alignParentBottom="true" android:layout_alignParentLeft="true" android:layout_alignParentStart="true" android:textColor="#ffffff" /> <ImageView android:layout_width="150dp" android:layout_height="150dp" android:id="@+id/imageView_logo" android:layout_below="@+id/textView_title" android:layout_centerHorizontal="true" /> </RelativeLayout>
{'content_hash': 'c48cd57a29bad63e7246979a0a7af5d8', 'timestamp': '', 'source': 'github', 'line_count': 75, 'max_line_length': 74, 'avg_line_length': 39.74666666666667, 'alnum_prop': 0.6682321368668233, 'repo_name': 'POS-Projekt/POS_Projekt', 'id': '5e67bdc04a35533427ad5b2cb4afa42a30ed4a8c', 'size': '2981', 'binary': False, 'copies': '1', 'ref': 'refs/heads/master', 'path': 'app/src/main/res/layout/main.xml', 'mode': '33188', 'license': 'mit', 'language': [{'name': 'Java', 'bytes': '35668'}]}
// Copyright 2016 Twitter. All rights reserved. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in writing, software // distributed under the License is distributed on an "AS IS" BASIS, // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. // See the License for the specific language governing permissions and // limitations under the License. package com.twitter.heron.packing.binpacking; import java.util.ArrayList; import java.util.Collections; import java.util.HashMap; import java.util.Iterator; import java.util.List; import java.util.Map; import java.util.Set; import java.util.logging.Logger; import com.google.common.base.Optional; import com.twitter.heron.api.generated.TopologyAPI; import com.twitter.heron.common.basics.Pair; import com.twitter.heron.packing.Container; import com.twitter.heron.packing.PackingUtils; import com.twitter.heron.packing.RamRequirement; import com.twitter.heron.spi.common.Config; import com.twitter.heron.spi.common.Constants; import com.twitter.heron.spi.common.Context; import com.twitter.heron.spi.packing.IPacking; import com.twitter.heron.spi.packing.IRepacking; import com.twitter.heron.spi.packing.InstanceId; import com.twitter.heron.spi.packing.PackingPlan; import com.twitter.heron.spi.packing.Resource; import com.twitter.heron.spi.utils.TopologyUtils; import static com.twitter.heron.api.Config.TOPOLOGY_CONTAINER_MAX_CPU_HINT; import static com.twitter.heron.api.Config.TOPOLOGY_CONTAINER_MAX_DISK_HINT; import static com.twitter.heron.api.Config.TOPOLOGY_CONTAINER_MAX_RAM_HINT; import static com.twitter.heron.api.Config.TOPOLOGY_CONTAINER_PADDING_PERCENTAGE; /** * FirstFitDecreasing packing algorithm * <p> * This IPacking implementation generates a PackingPlan based on the * First Fit Decreasing heuristic for the binpacking problem. The algorithm attempts to minimize * the amount of resources used. * <p> * Following semantics are guaranteed: * 1. Supports heterogeneous containers. The number of containers used is determined * by the algorithm and not by the config file. * The user provides a hint for the maximum container size and a padding percentage. * The padding percentage whose values range from [0, 100], determines the per container * resources allocated for system-related processes (e.g., the stream manager). * <p> * 2. The user provides a hint for the maximum CPU, RAM and Disk that can be used by each container through * the com.twitter.heron.api.Config.TOPOLOGY_CONTAINER_MAX_CPU_HINT, * com.twitter.heron.api.Config.TOPOLOGY_CONTAINER_MAX_RAM_HINT, * com.twitter.heron.api.Config.TOPOLOGY_CONTAINER_MAX_DISK_HINT parameters. * If the parameters are not specified then a default value is used for the maximum container * size. * <p> * 3. The user provides a percentage of each container size that will be used for padding * through the com.twitter.heron.api.Config.TOPOLOGY_CONTAINER_PADDING_PERCENTAGE * If the parameter is not specified then a default value of 10 is used (10% of the container size) * <p> * 4. The ram required for one instance is calculated as: * value in com.twitter.heron.api.Config.TOPOLOGY_COMPONENT_RAMMAP if exists, otherwise, * the default ram value for one instance. * <p> * 5. The cpu required for one instance is calculated as the default cpu value for one instance. * <p> * 6. The disk required for one instance is calculated as the default disk value for one instance. * <p> * 7. The ram required for a container is calculated as: * (ram for instances in container) + (paddingPercentage * ram for instances in container) * <p> * 8. The cpu required for a container is calculated as: * (cpu for instances in container) + (paddingPercentage * cpu for instances in container) * <p> * 9. The disk required for a container is calculated as: * (disk for instances in container) + ((paddingPercentage * disk for instances in container) * <p> * 10. The pack() return null if PackingPlan fails to pass the safe check, for instance, * the size of ram for an instance is less than the minimal required value. */ public class FirstFitDecreasingPacking implements IPacking, IRepacking { private static final long MIN_RAM_PER_INSTANCE = 192L * Constants.MB; private static final int DEFAULT_CONTAINER_PADDING_PERCENTAGE = 10; private static final int DEFAULT_NUMBER_INSTANCES_PER_CONTAINER = 4; private static final Logger LOG = Logger.getLogger(FirstFitDecreasingPacking.class.getName()); private TopologyAPI.Topology topology; private Resource defaultInstanceResources; private Resource maxContainerResources; private int paddingPercentage; @Override public void initialize(Config config, TopologyAPI.Topology inputTopology) { this.topology = inputTopology; setPackingConfigs(config); } /** * Instatiate the packing algorithm parameters related to this topology. */ private void setPackingConfigs(Config config) { List<TopologyAPI.Config.KeyValue> topologyConfig = topology.getTopologyConfig().getKvsList(); this.defaultInstanceResources = new Resource( Context.instanceCpu(config), Context.instanceRam(config), Context.instanceDisk(config)); this.paddingPercentage = TopologyUtils.getConfigWithDefault(topologyConfig, TOPOLOGY_CONTAINER_PADDING_PERCENTAGE, DEFAULT_CONTAINER_PADDING_PERCENTAGE); double defaultCpu = this.defaultInstanceResources.getCpu() * DEFAULT_NUMBER_INSTANCES_PER_CONTAINER; long defaultRam = this.defaultInstanceResources.getRam() * DEFAULT_NUMBER_INSTANCES_PER_CONTAINER; long defaultDisk = this.defaultInstanceResources.getDisk() * DEFAULT_NUMBER_INSTANCES_PER_CONTAINER; this.maxContainerResources = new Resource( TopologyUtils.getConfigWithDefault(topologyConfig, TOPOLOGY_CONTAINER_MAX_CPU_HINT, (double) Math.round(PackingUtils.increaseBy(defaultCpu, paddingPercentage))), TopologyUtils.getConfigWithDefault(topologyConfig, TOPOLOGY_CONTAINER_MAX_RAM_HINT, PackingUtils.increaseBy(defaultRam, paddingPercentage)), TopologyUtils.getConfigWithDefault(topologyConfig, TOPOLOGY_CONTAINER_MAX_DISK_HINT, PackingUtils.increaseBy(defaultDisk, paddingPercentage))); } /** * Get a packing plan using First Fit Decreasing * * @return packing plan */ @Override public PackingPlan pack() { // Get the instances using FFD allocation Map<Integer, List<InstanceId>> ffdAllocation = getFFDAllocation(); // Construct the PackingPlan Map<String, Long> ramMap = TopologyUtils.getComponentRamMapConfig(topology); Set<PackingPlan.ContainerPlan> containerPlans = PackingUtils.buildContainerPlans( ffdAllocation, ramMap, this.defaultInstanceResources, this.paddingPercentage); return new PackingPlan(topology.getId(), containerPlans); } /** * Get a new packing plan given an existing packing plan and component-level changes. * @return new packing plan */ public PackingPlan repack(PackingPlan currentPackingPlan, Map<String, Integer> componentChanges) { // Get the instances using FFD allocation Map<Integer, List<InstanceId>> ffdAllocation = getFFDAllocation(currentPackingPlan, componentChanges); // Construct the PackingPlan Map<String, Long> ramMap = TopologyUtils.getComponentRamMapConfig(topology); Set<PackingPlan.ContainerPlan> containerPlans = PackingUtils.buildContainerPlans( ffdAllocation, ramMap, defaultInstanceResources, paddingPercentage); return new PackingPlan(topology.getId(), containerPlans); } @Override public void close() { } /** * Sort the components in decreasing order based on their RAM requirements * * @return The sorted list of components and their RAM requirements */ private ArrayList<RamRequirement> getSortedRAMInstances(Map<String, Integer> parallelismMap) { ArrayList<RamRequirement> ramRequirements = new ArrayList<>(); Map<String, Long> ramMap = TopologyUtils.getComponentRamMapConfig(topology); for (String component : parallelismMap.keySet()) { if (ramMap.containsKey(component)) { if (!PackingUtils.isValidInstance( this.defaultInstanceResources.cloneWithRam(ramMap.get(component)), MIN_RAM_PER_INSTANCE, maxContainerResources, this.paddingPercentage)) { throw new RuntimeException("The topology configuration does not have " + "valid resource requirements. Please make sure that the instance resource " + "requirements do not exceed the maximum per-container resources."); } else { ramRequirements.add(new RamRequirement(component, ramMap.get(component))); } } else { if (!PackingUtils.isValidInstance(this.defaultInstanceResources, MIN_RAM_PER_INSTANCE, maxContainerResources, this.paddingPercentage)) { throw new RuntimeException("The topology configuration does not have " + "valid resource requirements. Please make sure that the instance resource " + "requirements do not exceed the maximum per-container resources."); } else { ramRequirements.add( new RamRequirement(component, this.defaultInstanceResources.getRam())); } } } Collections.sort(ramRequirements, Collections.reverseOrder()); return ramRequirements; } /** * Get the instances' allocation based on the First Fit Decreasing algorithm * * @return Map &lt; containerId, list of InstanceId belonging to this container &gt; */ private Map<Integer, List<InstanceId>> getFFDAllocation() { Map<String, Integer> parallelismMap = TopologyUtils.getComponentParallelism(topology); HashMap<Integer, List<InstanceId>> allocation = new HashMap<>(); assignInstancesToContainers(new ArrayList<Container>(), allocation, parallelismMap, 1, maxContainerResources); return allocation; } /** * Get the instances' allocation based on the First Fit Decreasing algorithm * * @return Map &lt; containerId, list of InstanceId belonging to this container &gt; */ private Map<Integer, List<InstanceId>> getFFDAllocation(PackingPlan currentPackingPlan, Map<String, Integer> componentChanges) { Map<String, Integer> componentsToScaleDown = PackingUtils.getComponentsToScale(componentChanges, PackingUtils.ScalingDirection.DOWN); Map<String, Integer> componentsToScaleUp = PackingUtils.getComponentsToScale(componentChanges, PackingUtils.ScalingDirection.UP); ArrayList<Container> containers = PackingUtils.getContainers(currentPackingPlan, this.paddingPercentage); Map<Integer, List<InstanceId>> allocation = PackingUtils.getAllocation(currentPackingPlan); int maxInstanceIndex = 0; for (PackingPlan.ContainerPlan containerPlan : currentPackingPlan.getContainers()) { for (PackingPlan.InstancePlan instancePlan : containerPlan.getInstances()) { maxInstanceIndex = Math.max(maxInstanceIndex, instancePlan.getTaskId()); } } if (!componentsToScaleDown.isEmpty()) { removeInstancesFromContainers(containers, allocation, componentsToScaleDown); } if (!componentsToScaleUp.isEmpty()) { assignInstancesToContainers(containers, allocation, componentsToScaleUp, maxInstanceIndex + 1, containers.get(0).getCapacity()); } removeEmptyContainers(allocation); return allocation; } /** * Removes containers from tha allocation that do not contain any instances */ private void removeEmptyContainers(Map<Integer, List<InstanceId>> allocation) { Iterator<Integer> containerIds = allocation.keySet().iterator(); while (containerIds.hasNext()) { Integer containerId = containerIds.next(); if (allocation.get(containerId).isEmpty()) { containerIds.remove(); } } } /** * Generates the containers that correspond to the current packing plan * along with their associated instances. * * @return List of containers for the current packing plan */ private ArrayList<Container> getContainers(PackingPlan currentPackingPlan) { ArrayList<Container> containers = new ArrayList<>(); //sort containers based on containerIds; PackingPlan.ContainerPlan[] currentContainers = PackingUtils.sortOnContainerId(currentPackingPlan.getContainers()); Resource capacity = currentPackingPlan.getMaxContainerResources(); for (int i = 0; i < currentContainers.length; i++) { int containerId = PackingUtils.allocateNewContainer( containers, capacity, this.paddingPercentage); for (PackingPlan.InstancePlan instancePlan : currentContainers[i].getInstances()) { containers.get(containerId - 1).add(instancePlan); } } return containers; } /** * Generates an instance allocation for the current packing plan * * @return Map &lt; containerId, list of InstanceId belonging to this container &gt; */ private Map<Integer, List<InstanceId>> getAllocation(PackingPlan currentPackingPlan) { Map<Integer, List<InstanceId>> allocation = new HashMap<Integer, List<InstanceId>>(); for (PackingPlan.ContainerPlan containerPlan : currentPackingPlan.getContainers()) { ArrayList<InstanceId> instances = new ArrayList<InstanceId>(); for (PackingPlan.InstancePlan instance : containerPlan.getInstances()) { instances.add(new InstanceId(instance.getComponentName(), instance.getTaskId(), instance.getComponentIndex())); } allocation.put(containerPlan.getId(), instances); } PackingUtils.removeEmptyContainers(allocation); return allocation; } /** * Assigns instances to containers * * @param containers helper data structure that describes the containers' status * @param allocation existing packing plan * @param parallelismMap component parallelism * @param firstTaskIndex first taskId to use for the new instances */ private void assignInstancesToContainers( ArrayList<Container> containers, Map<Integer, List<InstanceId>> allocation, Map<String, Integer> parallelismMap, int firstTaskIndex, Resource containerCapacity) { ArrayList<RamRequirement> ramRequirements = getSortedRAMInstances(parallelismMap); int globalTaskIndex = firstTaskIndex; for (RamRequirement ramRequirement : ramRequirements) { String component = ramRequirement.getComponentName(); int numInstance = parallelismMap.get(component); for (int j = 0; j < numInstance; j++) { Resource instanceResource = this.defaultInstanceResources.cloneWithRam(ramRequirement.getRamRequirement()); int containerId = placeFFDInstance(containers, new PackingPlan.InstancePlan(new InstanceId( component, globalTaskIndex, j), instanceResource), containerCapacity); List<InstanceId> instances = allocation.get(containerId); if (instances == null) { instances = new ArrayList<>(); } instances.add(new InstanceId(component, globalTaskIndex++, j)); allocation.put(containerId, instances); } } } /** * Removes instances from containers during scaling down * * @param containers helper data structure that describes the containers' status * @param allocation existing packing plan * @param componentsToScaleDown scale down factor for the components. */ private void removeInstancesFromContainers( ArrayList<Container> containers, Map<Integer, List<InstanceId>> allocation, Map<String, Integer> componentsToScaleDown) { ArrayList<RamRequirement> ramRequirements = getSortedRAMInstances(componentsToScaleDown); for (RamRequirement ramRequirement : ramRequirements) { String component = ramRequirement.getComponentName(); int numInstancesToRemove = -componentsToScaleDown.get(component); for (int j = 0; j < numInstancesToRemove; j++) { Pair<Integer, InstanceId> idPair = removeFFDInstance(containers, component); List<InstanceId> instances = allocation.get(idPair.first); instances.remove(idPair.second); allocation.put(idPair.first, instances); } } } /** * Assign a particular instance to an existing container or to a new container * * @return the container Id that incorporated the instance */ private int placeFFDInstance(ArrayList<Container> containers, PackingPlan.InstancePlan instancePlan, Resource containerCapacity) { boolean placed = false; int containerId = 0; for (int i = 0; i < containers.size() && !placed; i++) { if (containers.get(i).add(instancePlan)) { placed = true; containerId = i + 1; } } if (!placed) { containerId = PackingUtils.allocateNewContainer(containers, containerCapacity, this.paddingPercentage); containers.get(containerId - 1).add(instancePlan); } return containerId; } /** * Remove an instance of a particular component from the containers * * @return the pairId that captures the corresponding container and instance id. */ private Pair<Integer, InstanceId> removeFFDInstance(ArrayList<Container> containers, String component) throws RuntimeException { boolean removed = false; int containerId = 0; for (int i = 0; i < containers.size() && !removed; i++) { Optional<PackingPlan.InstancePlan> instancePlan = containers.get(i).removeAnyInstanceOfComponent(component); if (instancePlan.isPresent()) { removed = true; containerId = i + 1; PackingPlan.InstancePlan plan = instancePlan.get(); return new Pair<Integer, InstanceId>(containerId, new InstanceId(plan.getComponentName(), plan.getTaskId(), plan.getComponentIndex())); } } throw new RuntimeException("Cannot remove instance." + " No more instances of component " + component + " exist" + " in the containers."); } }
{'content_hash': '4d64a8a91cc5b2088528755241df1d7d', 'timestamp': '', 'source': 'github', 'line_count': 428, 'max_line_length': 107, 'avg_line_length': 43.14018691588785, 'alnum_prop': 0.724382582322357, 'repo_name': 'billonahill/heron', 'id': '008525182af53edeec398ee681530ee33c43322c', 'size': '18464', 'binary': False, 'copies': '2', 'ref': 'refs/heads/master', 'path': 'heron/packing/src/java/com/twitter/heron/packing/binpacking/FirstFitDecreasingPacking.java', 'mode': '33188', 'license': 'apache-2.0', 'language': [{'name': 'C', 'bytes': '8537'}, {'name': 'C++', 'bytes': '1066813'}, {'name': 'CSS', 'bytes': '106404'}, {'name': 'HTML', 'bytes': '153681'}, {'name': 'Java', 'bytes': '2808587'}, {'name': 'JavaScript', 'bytes': '165520'}, {'name': 'M4', 'bytes': '17941'}, {'name': 'Makefile', 'bytes': '498'}, {'name': 'Objective-C', 'bytes': '1445'}, {'name': 'Perl', 'bytes': '9085'}, {'name': 'Protocol Buffer', 'bytes': '20620'}, {'name': 'Python', 'bytes': '1167255'}, {'name': 'Ruby', 'bytes': '1930'}, {'name': 'Scala', 'bytes': '4640'}, {'name': 'Shell', 'bytes': '130327'}, {'name': 'Thrift', 'bytes': '915'}]}
<?php # Generated by the protocol buffer compiler. DO NOT EDIT! # source: google/ads/googleads/v11/common/ad_type_infos.proto namespace Google\Ads\GoogleAds\V11\Common; use Google\Protobuf\Internal\GPBType; use Google\Protobuf\Internal\RepeatedField; use Google\Protobuf\Internal\GPBUtil; /** * A discovery multi asset ad. * * Generated from protobuf message <code>google.ads.googleads.v11.common.DiscoveryMultiAssetAdInfo</code> */ class DiscoveryMultiAssetAdInfo extends \Google\Protobuf\Internal\Message { /** * Marketing image assets to be used in the ad. Valid image types are GIF, * JPEG, and PNG. The minimum size is 600x314 and the aspect ratio must * be 1.91:1 (+-1%). Required if square_marketing_images is * not present. Combined with `square_marketing_images` and * `portrait_marketing_images` the maximum is 20. * * Generated from protobuf field <code>repeated .google.ads.googleads.v11.common.AdImageAsset marketing_images = 1;</code> */ private $marketing_images; /** * Square marketing image assets to be used in the ad. Valid image types are * GIF, JPEG, and PNG. The minimum size is 300x300 and the aspect ratio must * be 1:1 (+-1%). Required if marketing_images is not present. Combined with * `marketing_images` and `portrait_marketing_images` the maximum is 20. * * Generated from protobuf field <code>repeated .google.ads.googleads.v11.common.AdImageAsset square_marketing_images = 2;</code> */ private $square_marketing_images; /** * Portrait marketing image assets to be used in the ad. Valid image types are * GIF, JPEG, and PNG. The minimum size is 480x600 and the aspect ratio must * be 4:5 (+-1%). Combined with `marketing_images` and * `square_marketing_images` the maximum is 20. * * Generated from protobuf field <code>repeated .google.ads.googleads.v11.common.AdImageAsset portrait_marketing_images = 3;</code> */ private $portrait_marketing_images; /** * Logo image assets to be used in the ad. Valid image types are GIF, * JPEG, and PNG. The minimum size is 128x128 and the aspect ratio must be * 1:1(+-1%). At least 1 and max 5 logo images can be specified. * * Generated from protobuf field <code>repeated .google.ads.googleads.v11.common.AdImageAsset logo_images = 4;</code> */ private $logo_images; /** * Headline text asset of the ad. Maximum display width is 30. At least 1 and * max 5 headlines can be specified. * * Generated from protobuf field <code>repeated .google.ads.googleads.v11.common.AdTextAsset headlines = 5;</code> */ private $headlines; /** * The descriptive text of the ad. Maximum display width is 90. At least 1 and * max 5 descriptions can be specified. * * Generated from protobuf field <code>repeated .google.ads.googleads.v11.common.AdTextAsset descriptions = 6;</code> */ private $descriptions; /** * The Advertiser/brand name. Maximum display width is 25. Required. * * Generated from protobuf field <code>optional string business_name = 7;</code> */ protected $business_name = null; /** * Call to action text. * * Generated from protobuf field <code>optional string call_to_action_text = 8;</code> */ protected $call_to_action_text = null; /** * Boolean option that indicates if this ad must be served with lead form. * * Generated from protobuf field <code>optional bool lead_form_only = 9;</code> */ protected $lead_form_only = null; /** * Constructor. * * @param array $data { * Optional. Data for populating the Message object. * * @type array<\Google\Ads\GoogleAds\V11\Common\AdImageAsset>|\Google\Protobuf\Internal\RepeatedField $marketing_images * Marketing image assets to be used in the ad. Valid image types are GIF, * JPEG, and PNG. The minimum size is 600x314 and the aspect ratio must * be 1.91:1 (+-1%). Required if square_marketing_images is * not present. Combined with `square_marketing_images` and * `portrait_marketing_images` the maximum is 20. * @type array<\Google\Ads\GoogleAds\V11\Common\AdImageAsset>|\Google\Protobuf\Internal\RepeatedField $square_marketing_images * Square marketing image assets to be used in the ad. Valid image types are * GIF, JPEG, and PNG. The minimum size is 300x300 and the aspect ratio must * be 1:1 (+-1%). Required if marketing_images is not present. Combined with * `marketing_images` and `portrait_marketing_images` the maximum is 20. * @type array<\Google\Ads\GoogleAds\V11\Common\AdImageAsset>|\Google\Protobuf\Internal\RepeatedField $portrait_marketing_images * Portrait marketing image assets to be used in the ad. Valid image types are * GIF, JPEG, and PNG. The minimum size is 480x600 and the aspect ratio must * be 4:5 (+-1%). Combined with `marketing_images` and * `square_marketing_images` the maximum is 20. * @type array<\Google\Ads\GoogleAds\V11\Common\AdImageAsset>|\Google\Protobuf\Internal\RepeatedField $logo_images * Logo image assets to be used in the ad. Valid image types are GIF, * JPEG, and PNG. The minimum size is 128x128 and the aspect ratio must be * 1:1(+-1%). At least 1 and max 5 logo images can be specified. * @type array<\Google\Ads\GoogleAds\V11\Common\AdTextAsset>|\Google\Protobuf\Internal\RepeatedField $headlines * Headline text asset of the ad. Maximum display width is 30. At least 1 and * max 5 headlines can be specified. * @type array<\Google\Ads\GoogleAds\V11\Common\AdTextAsset>|\Google\Protobuf\Internal\RepeatedField $descriptions * The descriptive text of the ad. Maximum display width is 90. At least 1 and * max 5 descriptions can be specified. * @type string $business_name * The Advertiser/brand name. Maximum display width is 25. Required. * @type string $call_to_action_text * Call to action text. * @type bool $lead_form_only * Boolean option that indicates if this ad must be served with lead form. * } */ public function __construct($data = NULL) { \GPBMetadata\Google\Ads\GoogleAds\V11\Common\AdTypeInfos::initOnce(); parent::__construct($data); } /** * Marketing image assets to be used in the ad. Valid image types are GIF, * JPEG, and PNG. The minimum size is 600x314 and the aspect ratio must * be 1.91:1 (+-1%). Required if square_marketing_images is * not present. Combined with `square_marketing_images` and * `portrait_marketing_images` the maximum is 20. * * Generated from protobuf field <code>repeated .google.ads.googleads.v11.common.AdImageAsset marketing_images = 1;</code> * @return \Google\Protobuf\Internal\RepeatedField */ public function getMarketingImages() { return $this->marketing_images; } /** * Marketing image assets to be used in the ad. Valid image types are GIF, * JPEG, and PNG. The minimum size is 600x314 and the aspect ratio must * be 1.91:1 (+-1%). Required if square_marketing_images is * not present. Combined with `square_marketing_images` and * `portrait_marketing_images` the maximum is 20. * * Generated from protobuf field <code>repeated .google.ads.googleads.v11.common.AdImageAsset marketing_images = 1;</code> * @param array<\Google\Ads\GoogleAds\V11\Common\AdImageAsset>|\Google\Protobuf\Internal\RepeatedField $var * @return $this */ public function setMarketingImages($var) { $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Ads\GoogleAds\V11\Common\AdImageAsset::class); $this->marketing_images = $arr; return $this; } /** * Square marketing image assets to be used in the ad. Valid image types are * GIF, JPEG, and PNG. The minimum size is 300x300 and the aspect ratio must * be 1:1 (+-1%). Required if marketing_images is not present. Combined with * `marketing_images` and `portrait_marketing_images` the maximum is 20. * * Generated from protobuf field <code>repeated .google.ads.googleads.v11.common.AdImageAsset square_marketing_images = 2;</code> * @return \Google\Protobuf\Internal\RepeatedField */ public function getSquareMarketingImages() { return $this->square_marketing_images; } /** * Square marketing image assets to be used in the ad. Valid image types are * GIF, JPEG, and PNG. The minimum size is 300x300 and the aspect ratio must * be 1:1 (+-1%). Required if marketing_images is not present. Combined with * `marketing_images` and `portrait_marketing_images` the maximum is 20. * * Generated from protobuf field <code>repeated .google.ads.googleads.v11.common.AdImageAsset square_marketing_images = 2;</code> * @param array<\Google\Ads\GoogleAds\V11\Common\AdImageAsset>|\Google\Protobuf\Internal\RepeatedField $var * @return $this */ public function setSquareMarketingImages($var) { $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Ads\GoogleAds\V11\Common\AdImageAsset::class); $this->square_marketing_images = $arr; return $this; } /** * Portrait marketing image assets to be used in the ad. Valid image types are * GIF, JPEG, and PNG. The minimum size is 480x600 and the aspect ratio must * be 4:5 (+-1%). Combined with `marketing_images` and * `square_marketing_images` the maximum is 20. * * Generated from protobuf field <code>repeated .google.ads.googleads.v11.common.AdImageAsset portrait_marketing_images = 3;</code> * @return \Google\Protobuf\Internal\RepeatedField */ public function getPortraitMarketingImages() { return $this->portrait_marketing_images; } /** * Portrait marketing image assets to be used in the ad. Valid image types are * GIF, JPEG, and PNG. The minimum size is 480x600 and the aspect ratio must * be 4:5 (+-1%). Combined with `marketing_images` and * `square_marketing_images` the maximum is 20. * * Generated from protobuf field <code>repeated .google.ads.googleads.v11.common.AdImageAsset portrait_marketing_images = 3;</code> * @param array<\Google\Ads\GoogleAds\V11\Common\AdImageAsset>|\Google\Protobuf\Internal\RepeatedField $var * @return $this */ public function setPortraitMarketingImages($var) { $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Ads\GoogleAds\V11\Common\AdImageAsset::class); $this->portrait_marketing_images = $arr; return $this; } /** * Logo image assets to be used in the ad. Valid image types are GIF, * JPEG, and PNG. The minimum size is 128x128 and the aspect ratio must be * 1:1(+-1%). At least 1 and max 5 logo images can be specified. * * Generated from protobuf field <code>repeated .google.ads.googleads.v11.common.AdImageAsset logo_images = 4;</code> * @return \Google\Protobuf\Internal\RepeatedField */ public function getLogoImages() { return $this->logo_images; } /** * Logo image assets to be used in the ad. Valid image types are GIF, * JPEG, and PNG. The minimum size is 128x128 and the aspect ratio must be * 1:1(+-1%). At least 1 and max 5 logo images can be specified. * * Generated from protobuf field <code>repeated .google.ads.googleads.v11.common.AdImageAsset logo_images = 4;</code> * @param array<\Google\Ads\GoogleAds\V11\Common\AdImageAsset>|\Google\Protobuf\Internal\RepeatedField $var * @return $this */ public function setLogoImages($var) { $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Ads\GoogleAds\V11\Common\AdImageAsset::class); $this->logo_images = $arr; return $this; } /** * Headline text asset of the ad. Maximum display width is 30. At least 1 and * max 5 headlines can be specified. * * Generated from protobuf field <code>repeated .google.ads.googleads.v11.common.AdTextAsset headlines = 5;</code> * @return \Google\Protobuf\Internal\RepeatedField */ public function getHeadlines() { return $this->headlines; } /** * Headline text asset of the ad. Maximum display width is 30. At least 1 and * max 5 headlines can be specified. * * Generated from protobuf field <code>repeated .google.ads.googleads.v11.common.AdTextAsset headlines = 5;</code> * @param array<\Google\Ads\GoogleAds\V11\Common\AdTextAsset>|\Google\Protobuf\Internal\RepeatedField $var * @return $this */ public function setHeadlines($var) { $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Ads\GoogleAds\V11\Common\AdTextAsset::class); $this->headlines = $arr; return $this; } /** * The descriptive text of the ad. Maximum display width is 90. At least 1 and * max 5 descriptions can be specified. * * Generated from protobuf field <code>repeated .google.ads.googleads.v11.common.AdTextAsset descriptions = 6;</code> * @return \Google\Protobuf\Internal\RepeatedField */ public function getDescriptions() { return $this->descriptions; } /** * The descriptive text of the ad. Maximum display width is 90. At least 1 and * max 5 descriptions can be specified. * * Generated from protobuf field <code>repeated .google.ads.googleads.v11.common.AdTextAsset descriptions = 6;</code> * @param array<\Google\Ads\GoogleAds\V11\Common\AdTextAsset>|\Google\Protobuf\Internal\RepeatedField $var * @return $this */ public function setDescriptions($var) { $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Ads\GoogleAds\V11\Common\AdTextAsset::class); $this->descriptions = $arr; return $this; } /** * The Advertiser/brand name. Maximum display width is 25. Required. * * Generated from protobuf field <code>optional string business_name = 7;</code> * @return string */ public function getBusinessName() { return isset($this->business_name) ? $this->business_name : ''; } public function hasBusinessName() { return isset($this->business_name); } public function clearBusinessName() { unset($this->business_name); } /** * The Advertiser/brand name. Maximum display width is 25. Required. * * Generated from protobuf field <code>optional string business_name = 7;</code> * @param string $var * @return $this */ public function setBusinessName($var) { GPBUtil::checkString($var, True); $this->business_name = $var; return $this; } /** * Call to action text. * * Generated from protobuf field <code>optional string call_to_action_text = 8;</code> * @return string */ public function getCallToActionText() { return isset($this->call_to_action_text) ? $this->call_to_action_text : ''; } public function hasCallToActionText() { return isset($this->call_to_action_text); } public function clearCallToActionText() { unset($this->call_to_action_text); } /** * Call to action text. * * Generated from protobuf field <code>optional string call_to_action_text = 8;</code> * @param string $var * @return $this */ public function setCallToActionText($var) { GPBUtil::checkString($var, True); $this->call_to_action_text = $var; return $this; } /** * Boolean option that indicates if this ad must be served with lead form. * * Generated from protobuf field <code>optional bool lead_form_only = 9;</code> * @return bool */ public function getLeadFormOnly() { return isset($this->lead_form_only) ? $this->lead_form_only : false; } public function hasLeadFormOnly() { return isset($this->lead_form_only); } public function clearLeadFormOnly() { unset($this->lead_form_only); } /** * Boolean option that indicates if this ad must be served with lead form. * * Generated from protobuf field <code>optional bool lead_form_only = 9;</code> * @param bool $var * @return $this */ public function setLeadFormOnly($var) { GPBUtil::checkBool($var); $this->lead_form_only = $var; return $this; } }
{'content_hash': 'cbcf2786be9612d9a52af6ad6dc19d2d', 'timestamp': '', 'source': 'github', 'line_count': 425, 'max_line_length': 147, 'avg_line_length': 40.54352941176471, 'alnum_prop': 0.6557367535256224, 'repo_name': 'googleads/google-ads-php', 'id': 'b04248a751e681c811d9bd1af51504e8688cdb8a', 'size': '17231', 'binary': False, 'copies': '1', 'ref': 'refs/heads/main', 'path': 'src/Google/Ads/GoogleAds/V11/Common/DiscoveryMultiAssetAdInfo.php', 'mode': '33188', 'license': 'apache-2.0', 'language': [{'name': 'Dockerfile', 'bytes': '899'}, {'name': 'PHP', 'bytes': '9952711'}, {'name': 'Shell', 'bytes': '338'}]}
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <!-- NewPage --> <html lang="en"> <head> <!-- Generated by javadoc (1.8.0_102) on Wed Nov 02 19:53:25 IST 2016 --> <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> <title>Uses of Class org.apache.solr.handler.dataimport.Transformer (Solr 6.3.0 API)</title> <meta name="date" content="2016-11-02"> <link rel="stylesheet" type="text/css" href="../../../../../../stylesheet.css" title="Style"> <script type="text/javascript" src="../../../../../../script.js"></script> </head> <body> <script type="text/javascript"><!-- try { if (location.href.indexOf('is-external=true') == -1) { parent.document.title="Uses of Class org.apache.solr.handler.dataimport.Transformer (Solr 6.3.0 API)"; } } catch(err) { } //--> </script> <noscript> <div>JavaScript is disabled on your browser.</div> </noscript> <!-- ========= START OF TOP NAVBAR ======= --> <div class="topNav"><a name="navbar.top"> <!-- --> </a> <div class="skipNav"><a href="#skip.navbar.top" title="Skip navigation links">Skip navigation links</a></div> <a name="navbar.top.firstrow"> <!-- --> </a> <ul class="navList" title="Navigation"> <li><a href="../../../../../../overview-summary.html">Overview</a></li> <li><a href="../package-summary.html">Package</a></li> <li><a href="../../../../../../org/apache/solr/handler/dataimport/Transformer.html" title="class in org.apache.solr.handler.dataimport">Class</a></li> <li class="navBarCell1Rev">Use</li> <li><a href="../package-tree.html">Tree</a></li> <li><a href="../../../../../../deprecated-list.html">Deprecated</a></li> <li><a href="../../../../../../help-doc.html">Help</a></li> </ul> </div> <div class="subNav"> <ul class="navList"> <li>Prev</li> <li>Next</li> </ul> <ul class="navList"> <li><a href="../../../../../../index.html?org/apache/solr/handler/dataimport/class-use/Transformer.html" target="_top">Frames</a></li> <li><a href="Transformer.html" target="_top">No&nbsp;Frames</a></li> </ul> <ul class="navList" id="allclasses_navbar_top"> <li><a href="../../../../../../allclasses-noframe.html">All&nbsp;Classes</a></li> </ul> <div> <script type="text/javascript"><!-- allClassesLink = document.getElementById("allclasses_navbar_top"); if(window==top) { allClassesLink.style.display = "block"; } else { allClassesLink.style.display = "none"; } //--> </script> </div> <a name="skip.navbar.top"> <!-- --> </a></div> <!-- ========= END OF TOP NAVBAR ========= --> <div class="header"> <h2 title="Uses of Class org.apache.solr.handler.dataimport.Transformer" class="title">Uses of Class<br>org.apache.solr.handler.dataimport.Transformer</h2> </div> <div class="classUseContainer"> <ul class="blockList"> <li class="blockList"> <table class="useSummary" border="0" cellpadding="3" cellspacing="0" summary="Use table, listing packages, and an explanation"> <caption><span>Packages that use <a href="../../../../../../org/apache/solr/handler/dataimport/Transformer.html" title="class in org.apache.solr.handler.dataimport">Transformer</a></span><span class="tabEnd">&nbsp;</span></caption> <tr> <th class="colFirst" scope="col">Package</th> <th class="colLast" scope="col">Description</th> </tr> <tbody> <tr class="altColor"> <td class="colFirst"><a href="#org.apache.solr.handler.dataimport">org.apache.solr.handler.dataimport</a></td> <td class="colLast"> <div class="block"><a href="../../../../../../org/apache/solr/handler/dataimport/DataImportHandler.html" title="class in org.apache.solr.handler.dataimport"><code>DataImportHandler</code></a> and related code.</div> </td> </tr> </tbody> </table> </li> <li class="blockList"> <ul class="blockList"> <li class="blockList"><a name="org.apache.solr.handler.dataimport"> <!-- --> </a> <h3>Uses of <a href="../../../../../../org/apache/solr/handler/dataimport/Transformer.html" title="class in org.apache.solr.handler.dataimport">Transformer</a> in <a href="../../../../../../org/apache/solr/handler/dataimport/package-summary.html">org.apache.solr.handler.dataimport</a></h3> <table class="useSummary" border="0" cellpadding="3" cellspacing="0" summary="Use table, listing subclasses, and an explanation"> <caption><span>Subclasses of <a href="../../../../../../org/apache/solr/handler/dataimport/Transformer.html" title="class in org.apache.solr.handler.dataimport">Transformer</a> in <a href="../../../../../../org/apache/solr/handler/dataimport/package-summary.html">org.apache.solr.handler.dataimport</a></span><span class="tabEnd">&nbsp;</span></caption> <tr> <th class="colFirst" scope="col">Modifier and Type</th> <th class="colLast" scope="col">Class and Description</th> </tr> <tbody> <tr class="altColor"> <td class="colFirst"><code>class&nbsp;</code></td> <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../../org/apache/solr/handler/dataimport/ClobTransformer.html" title="class in org.apache.solr.handler.dataimport">ClobTransformer</a></span></code> <div class="block"><a href="../../../../../../org/apache/solr/handler/dataimport/Transformer.html" title="class in org.apache.solr.handler.dataimport"><code>Transformer</code></a> instance which converts a <a href="https://docs.oracle.com/javase/8/docs/api/java/sql/Clob.html?is-external=true" title="class or interface in java.sql"><code>Clob</code></a> to a <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang"><code>String</code></a>.</div> </td> </tr> <tr class="rowColor"> <td class="colFirst"><code>class&nbsp;</code></td> <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../../org/apache/solr/handler/dataimport/DateFormatTransformer.html" title="class in org.apache.solr.handler.dataimport">DateFormatTransformer</a></span></code> <div class="block"> <a href="../../../../../../org/apache/solr/handler/dataimport/Transformer.html" title="class in org.apache.solr.handler.dataimport"><code>Transformer</code></a> instance which creates <a href="https://docs.oracle.com/javase/8/docs/api/java/util/Date.html?is-external=true" title="class or interface in java.util"><code>Date</code></a> instances out of <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang"><code>String</code></a>s.</div> </td> </tr> <tr class="altColor"> <td class="colFirst"><code>class&nbsp;</code></td> <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../../org/apache/solr/handler/dataimport/HTMLStripTransformer.html" title="class in org.apache.solr.handler.dataimport">HTMLStripTransformer</a></span></code> <div class="block">A <a href="../../../../../../org/apache/solr/handler/dataimport/Transformer.html" title="class in org.apache.solr.handler.dataimport"><code>Transformer</code></a> implementation which strip off HTML tags using <a href="http://lucene.apache.org/core/6_3_0/analyzers-common/org/apache/lucene/analysis/charfilter/HTMLStripCharFilter.html?is-external=true" title="class or interface in org.apache.lucene.analysis.charfilter"><code>HTMLStripCharFilter</code></a> This is useful in case you don't need this HTML anyway.</div> </td> </tr> <tr class="rowColor"> <td class="colFirst"><code>class&nbsp;</code></td> <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../../org/apache/solr/handler/dataimport/LogTransformer.html" title="class in org.apache.solr.handler.dataimport">LogTransformer</a></span></code> <div class="block">A <a href="../../../../../../org/apache/solr/handler/dataimport/Transformer.html" title="class in org.apache.solr.handler.dataimport"><code>Transformer</code></a> implementation which logs messages in a given template format.</div> </td> </tr> <tr class="altColor"> <td class="colFirst"><code>class&nbsp;</code></td> <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../../org/apache/solr/handler/dataimport/NumberFormatTransformer.html" title="class in org.apache.solr.handler.dataimport">NumberFormatTransformer</a></span></code> <div class="block"> A <a href="../../../../../../org/apache/solr/handler/dataimport/Transformer.html" title="class in org.apache.solr.handler.dataimport"><code>Transformer</code></a> instance which can extract numbers out of strings.</div> </td> </tr> <tr class="rowColor"> <td class="colFirst"><code>class&nbsp;</code></td> <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../../org/apache/solr/handler/dataimport/RegexTransformer.html" title="class in org.apache.solr.handler.dataimport">RegexTransformer</a></span></code> <div class="block"> A <a href="../../../../../../org/apache/solr/handler/dataimport/Transformer.html" title="class in org.apache.solr.handler.dataimport"><code>Transformer</code></a> implementation which uses Regular Expressions to extract, split and replace data in fields.</div> </td> </tr> <tr class="altColor"> <td class="colFirst"><code>class&nbsp;</code></td> <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../../org/apache/solr/handler/dataimport/ScriptTransformer.html" title="class in org.apache.solr.handler.dataimport">ScriptTransformer</a></span></code> <div class="block"> A <a href="../../../../../../org/apache/solr/handler/dataimport/Transformer.html" title="class in org.apache.solr.handler.dataimport"><code>Transformer</code></a> instance capable of executing functions written in scripting languages as a <a href="../../../../../../org/apache/solr/handler/dataimport/Transformer.html" title="class in org.apache.solr.handler.dataimport"><code>Transformer</code></a> instance.</div> </td> </tr> <tr class="rowColor"> <td class="colFirst"><code>class&nbsp;</code></td> <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../../org/apache/solr/handler/dataimport/TemplateTransformer.html" title="class in org.apache.solr.handler.dataimport">TemplateTransformer</a></span></code> <div class="block"> A <a href="../../../../../../org/apache/solr/handler/dataimport/Transformer.html" title="class in org.apache.solr.handler.dataimport"><code>Transformer</code></a> which can put values into a column by resolving an expression containing other columns</div> </td> </tr> </tbody> </table> <table class="useSummary" border="0" cellpadding="3" cellspacing="0" summary="Use table, listing fields, and an explanation"> <caption><span>Fields in <a href="../../../../../../org/apache/solr/handler/dataimport/package-summary.html">org.apache.solr.handler.dataimport</a> with type parameters of type <a href="../../../../../../org/apache/solr/handler/dataimport/Transformer.html" title="class in org.apache.solr.handler.dataimport">Transformer</a></span><span class="tabEnd">&nbsp;</span></caption> <tr> <th class="colFirst" scope="col">Modifier and Type</th> <th class="colLast" scope="col">Field and Description</th> </tr> <tbody> <tr class="altColor"> <td class="colFirst"><code>protected <a href="https://docs.oracle.com/javase/8/docs/api/java/util/List.html?is-external=true" title="class or interface in java.util">List</a>&lt;<a href="../../../../../../org/apache/solr/handler/dataimport/Transformer.html" title="class in org.apache.solr.handler.dataimport">Transformer</a>&gt;</code></td> <td class="colLast"><span class="typeNameLabel">EntityProcessorWrapper.</span><code><span class="memberNameLink"><a href="../../../../../../org/apache/solr/handler/dataimport/EntityProcessorWrapper.html#transformers">transformers</a></span></code>&nbsp;</td> </tr> </tbody> </table> </li> </ul> </li> </ul> </div> <!-- ======= START OF BOTTOM NAVBAR ====== --> <div class="bottomNav"><a name="navbar.bottom"> <!-- --> </a> <div class="skipNav"><a href="#skip.navbar.bottom" title="Skip navigation links">Skip navigation links</a></div> <a name="navbar.bottom.firstrow"> <!-- --> </a> <ul class="navList" title="Navigation"> <li><a href="../../../../../../overview-summary.html">Overview</a></li> <li><a href="../package-summary.html">Package</a></li> <li><a href="../../../../../../org/apache/solr/handler/dataimport/Transformer.html" title="class in org.apache.solr.handler.dataimport">Class</a></li> <li class="navBarCell1Rev">Use</li> <li><a href="../package-tree.html">Tree</a></li> <li><a href="../../../../../../deprecated-list.html">Deprecated</a></li> <li><a href="../../../../../../help-doc.html">Help</a></li> </ul> </div> <div class="subNav"> <ul class="navList"> <li>Prev</li> <li>Next</li> </ul> <ul class="navList"> <li><a href="../../../../../../index.html?org/apache/solr/handler/dataimport/class-use/Transformer.html" target="_top">Frames</a></li> <li><a href="Transformer.html" target="_top">No&nbsp;Frames</a></li> </ul> <ul class="navList" id="allclasses_navbar_bottom"> <li><a href="../../../../../../allclasses-noframe.html">All&nbsp;Classes</a></li> </ul> <div> <script type="text/javascript"><!-- allClassesLink = document.getElementById("allclasses_navbar_bottom"); if(window==top) { allClassesLink.style.display = "block"; } else { allClassesLink.style.display = "none"; } //--> </script> </div> <a name="skip.navbar.bottom"> <!-- --> </a></div> <!-- ======== END OF BOTTOM NAVBAR ======= --> <p class="legalCopy"><small> <i>Copyright &copy; 2000-2016 Apache Software Foundation. All Rights Reserved.</i> <script src='../../../../../../prettify.js' type='text/javascript'></script> <script type='text/javascript'> (function(){ var oldonload = window.onload; if (typeof oldonload != 'function') { window.onload = prettyPrint; } else { window.onload = function() { oldonload(); prettyPrint(); } } })(); </script> </small></p> </body> </html>
{'content_hash': '935780977980c7dedd8096c5e924c270', 'timestamp': '', 'source': 'github', 'line_count': 248, 'max_line_length': 521, 'avg_line_length': 56.40725806451613, 'alnum_prop': 0.6665236971906497, 'repo_name': 'johannesbraun/clm_autocomplete', 'id': '362d4b40b04b41e2ce76017a7991571d322348e7', 'size': '13989', 'binary': False, 'copies': '1', 'ref': 'refs/heads/master', 'path': 'docs/solr-dataimporthandler/org/apache/solr/handler/dataimport/class-use/Transformer.html', 'mode': '33188', 'license': 'apache-2.0', 'language': [{'name': 'AMPL', 'bytes': '291'}, {'name': 'Batchfile', 'bytes': '63061'}, {'name': 'CSS', 'bytes': '238996'}, {'name': 'HTML', 'bytes': '230318'}, {'name': 'JavaScript', 'bytes': '1224188'}, {'name': 'Jupyter Notebook', 'bytes': '638688'}, {'name': 'Python', 'bytes': '3829'}, {'name': 'Roff', 'bytes': '34741083'}, {'name': 'Shell', 'bytes': '96828'}, {'name': 'XSLT', 'bytes': '124838'}]}
from UnitTest import UnitTest, PY27_BEHAVIOUR import sys class MyException: def __str__(self): return "MyException" class MyException2: def __str__(self): return "MyException2" class ExceptionTest(UnitTest): def testTypeError(self): try: raise TypeError("fred") except: self.assertTrue(True, "the exception should have happened") return self.assertTrue(False, "the exception should have happened") def testExceptionOrdTrigger(self): try: x = ord(5) # shouldn't be a number except: self.assertTrue(True, "the exception should have happened") return self.assertTrue(False, "mustn't be able to do ord() on a number") def testExceptionOrdNoTrigger(self): try: x = ord("5") except: self.assertTrue(False, "the exception shouldn't have happened") return self.assertTrue(True, "the exception should have happened") def testRaiseException(self): try: raise MyException() except: return self.fail('MyException was not raised') def testCatchClassException(self): try: raise MyException() except MyException, e: self.assertEqual(e.__str__(), 'MyException', "Caught exception does not match") return self.fail('MyException was not caught or raised') def testCatchMultiClassException(self): try: raise MyException() except (MyException, MyException2), e: self.assertEqual(e.__str__(), 'MyException', "Caught exception does not match") return self.fail('MyException was not caught or raised') def testCatchStringException(self): # str exceptions were removed since 2.6 if sys.version_info >= (2, 6): return try: raise "test" except "test": return except TypeError, e: self.fail(e) self.fail('"test" was not caught or raised') def testBuiltInException(self): try: raise LookupError('hoschi') except LookupError, err: self.assertEqual(err.__class__.__name__, 'LookupError') return self.fail("LookupError should be caught") def testZeroDivisionError(self): try: v = 1/0 except ZeroDivisionError, err: self.assertEqual(err.__class__.__name__, 'ZeroDivisionError') return self.fail("ZeroDivisionError should be caught bug #265") def testStrReprSingleArg(self): args = ('test',) e = BaseException(*args) self.assertEqual(e.args[0], args[0]) self.assertEqual(str(e), args[0]) self.assertEqual(repr(e), "BaseException('test',)") e = Exception(*args) self.assertEqual(str(e), args[0]) self.assertEqual(repr(e), "Exception('test',)") e = TypeError(*args) self.assertEqual(str(e), args[0]) self.assertEqual(repr(e), "TypeError('test',)") e = StandardError(*args) self.assertEqual(str(e), args[0]) self.assertEqual(repr(e), "StandardError('test',)") e = LookupError(*args) self.assertEqual(str(e), args[0]) self.assertEqual(repr(e), "LookupError('test',)") e = KeyError(*args) self.assertEqual(str(e), "'%s'" % args[0]) self.assertEqual(repr(e), "KeyError('test',)") e = AttributeError(*args) self.assertEqual(str(e), args[0]) self.assertEqual(repr(e), "AttributeError('test',)") e = NameError(*args) self.assertEqual(str(e), args[0]) self.assertEqual(repr(e), "NameError('test',)") e = ValueError(*args) self.assertEqual(str(e), args[0]) self.assertEqual(repr(e), "ValueError('test',)") e = IndexError(*args) self.assertEqual(str(e), args[0]) self.assertEqual(repr(e), "IndexError('test',)") def test_exc_info_traceback(self): def func(): raise ValueError('Baaa!') try: func() except: tb = sys.exc_info()[2] count = 1 while tb.tb_next: tb = tb.tb_next count += 1 self.assertEqual(count, 2, 'sys.exc_info() traceback must be relative to caller') else: self.fail('Exception expected') def testSyntax(self): try: pass except KeyError, e: pass except (TypeError, LookupError), e: pass except: pass finally: pass try: a = 1 except: a = 2 else: a = 3 finally: self.assertEqual(a, 3) a = 4 self.assertEqual(a, 4) try: a = 11 raise KeyError('test') except: a = 12 else: a = 13 finally: self.assertEqual(a, 12) a = 14 self.assertEqual(a, 14) try: a = 1 finally: a = 2 self.assertEqual(a, 2) try: a = 1 try: b = 1 except: b = 2 else: b = 3 finally: self.assertEqual(b, 3) b = 4 except: a = 2 else: a = 3 finally: self.assertEqual(a, 3) a = 4 self.assertEqual(a, 4) self.assertEqual(b, 4) sys.exc_clear() try: raise self.fail("No error raised on 'raise' after 'sys.exc_clear()'") except TypeError, e: # use message which works for both Python 2.5 and 2.6 self.assertTrue(e.args[0].startswith('exceptions must be'), e.args[0]) except: e = sys.exc_info() self.fail('TypeError expected, got %s' % e[0]) try: raise KeyError, 'test' self.fail('No error raised') except KeyError, e: self.assertEqual(e.args[0], 'test') except: e = sys.exc_info() self.fail('KeyError expected, got %s' % e[0]) e = e[1] try: raise except: err = sys.exc_info() self.assertEqual(e.args[0], err[1].args[0]) raise_errors = [KeyError('KeyError'), TypeError('TypeError'), AttributeError('AttributeError'), LookupError('LookupError')] raised_errors = [] for err in raise_errors: try: raise err self.fail("Failed to raise exception") except (KeyError, TypeError), e1: raised_errors.append(e1) if isinstance(e1, KeyError): self.assertEqual(e1.args[0], 'KeyError') elif isinstance(e1, TypeError): self.assertEqual(e1.args[0], 'TypeError') else: self.fail('neither KeyError nor TypeError in except (KeyError, TypeError)') except AttributeError, e2: raised_errors.append(e2) self.assertEqual(e2.args[0], 'AttributeError') except: e3 = sys.exc_info()[1] raised_errors.append(e3) self.assertEqual(e3.args[0], 'LookupError') self.assertEqual(len(raised_errors), len(raise_errors)) try: try: raise TypeError('TypeError') except KeyError, e: self.fail("Got KeyError") self.fail("TypeError should not be ignored") except TypeError, e: self.assertEqual(e.args[0], 'TypeError') def testCatchSuperException(self): try: raise TypeError('test') except Exception, e: self.assertTrue(True) except: self.fail("Failed to catch exception: bug #254") def testAssertionError(self): try: assert True self.assertTrue(True) except AssertionError, e: self.fail("Got an unexpected assertion error: %r" % e) try: assert False self.fail("AssertionError expected") except AssertionError, e: self.assertTrue(True) try: assert False, 'reason' self.fail("AssertionError expected") except AssertionError, e: self.assertEqual(e.args[0], 'reason')
{'content_hash': 'a9e0d55871fb0fe386079545e3611255', 'timestamp': '', 'source': 'github', 'line_count': 303, 'max_line_length': 95, 'avg_line_length': 29.138613861386137, 'alnum_prop': 0.509797259032733, 'repo_name': 'minghuascode/pyj', 'id': '7d76f9cc65d159facb804976970625a0eee37976', 'size': '8829', 'binary': False, 'copies': '1', 'ref': 'refs/heads/master', 'path': 'examples/libtest/ExceptionTest.py', 'mode': '33188', 'license': 'apache-2.0', 'language': [{'name': 'CSS', 'bytes': '107608'}, {'name': 'JavaScript', 'bytes': '116371'}, {'name': 'PHP', 'bytes': '5473'}, {'name': 'Python', 'bytes': '7572605'}, {'name': 'Shell', 'bytes': '24231'}]}
package com.sensepost.yeti.plugins; import java.awt.event.ActionEvent; import java.io.FileNotFoundException; import java.util.logging.Level; import java.util.logging.Logger; import javax.script.ScriptException; import javax.swing.JMenuItem; /** * * @author willemmouton */ public class ImportPluginManager extends BasePluginManager { protected String args = null; public ImportPluginManager() { super(); this.setLocation("/importPlugins"); } @Override public void pluginMenuEvent(ActionEvent evt) { if (evt.getSource().getClass() == JMenuItem.class) { try { String scriptName = (((JMenuItem) evt.getSource()).getName()); this.executeScript(scriptName); } catch (FileNotFoundException | ScriptException ex) { Logger.getLogger(AttributePluginManager.class.getName()).log(Level.SEVERE, null, ex); } } } public void setArgs(String value) { this.args = value; } public String getArgs() { return this.args; } }
{'content_hash': 'e184fef5680a8e6339560b6861727249', 'timestamp': '', 'source': 'github', 'line_count': 42, 'max_line_length': 101, 'avg_line_length': 25.88095238095238, 'alnum_prop': 0.6421343146274149, 'repo_name': 'sensepost/yeti', 'id': '0f096f43b22065edfd724f0c1d2db9d4212c6ce6', 'size': '1087', 'binary': False, 'copies': '1', 'ref': 'refs/heads/master', 'path': 'src/main/java/com/sensepost/yeti/plugins/ImportPluginManager.java', 'mode': '33188', 'license': 'mit', 'language': [{'name': 'Groovy', 'bytes': '14301'}, {'name': 'Java', 'bytes': '700979'}]}
omhttpfs: Hadoop HTTPFS Output Module ============================================ =========================== =========================================================================== **Module Name:** **omhttpfs** **Available Since:** **8.10.0** **Author:** `sskaje <https://sskaje.me/2014/12/omhttpfs-rsyslog-hdfs-output-plugin/>`_ <sskaje@gmail.com> =========================== =========================================================================== This module is an alternative to omhdfs via `Hadoop HDFS over HTTP <http://hadoop.apache.org/docs/current/hadoop-hdfs-httpfs/index.html>`_. **Dependencies** * libcurl **Configure** :: ./configure --enable-omhttpfs **Config options** Legacy config **NOT** supported. - **host** HttpFS server host. Default: *127.0.0.1* - **port** HttpFS server port. Default: *14000* - **user** HttpFS auth user. Default: *hdfs* - **https** \ <on/**off**> Turn on if your HttpFS runs on HTTPS. Default: *off* - **file** File to write, or a template name. - **isdynfile** \ <on/**off**> Turn this on if your **file** is a template name. See examples below. - **template** Format your message when writing to **file**. Default: *RSYSLOG_FileFormat* **Examples** :: module(load="omhttpfs") template(name="hdfs_tmp_file" type="string" string="/tmp/%$YEAR%/test.log") template(name="hdfs_tmp_filecontent" type="string" string="%$YEAR%-%$MONTH%-%$DAY% %MSG% ==\n") local4.* action(type="omhttpfs" host="10.1.1.161" port="14000" https="off" file="hdfs_tmp_file" isDynFile="on") local5.* action(type="omhttpfs" host="10.1.1.161" port="14000" https="off" file="hdfs_tmp_file" isDynFile="on" template="hdfs_tmp_filecontent")
{'content_hash': '19f861c5ffa7452dd7ffcc498d22fbec', 'timestamp': '', 'source': 'github', 'line_count': 55, 'max_line_length': 150, 'avg_line_length': 32.49090909090909, 'alnum_prop': 0.5416899832120873, 'repo_name': 'rcuza/rsyslog-doc', 'id': 'e63c9b422a59cae6e3c5f74a548a13c89e077c93', 'size': '1787', 'binary': False, 'copies': '4', 'ref': 'refs/heads/master', 'path': 'source/configuration/modules/omhttpfs.rst', 'mode': '33188', 'license': 'apache-2.0', 'language': [{'name': 'CSS', 'bytes': '8459'}, {'name': 'HTML', 'bytes': '409'}, {'name': 'JavaScript', 'bytes': '31866'}, {'name': 'Python', 'bytes': '9348'}, {'name': 'Shell', 'bytes': '1148'}]}
.. Bloch distribution documentation master file, created by sphinx-quickstart on Wed Nov 12 12:37:10 2014. You can adapt this file completely to your liking, but it should at least contain the root `toctree` directive. Welcome to Bloch distribution's documentation! ============================================== Contents: .. toctree:: :maxdepth: 2 installation overview api pdf_change_vars Indices and tables ================== * :ref:`genindex` * :ref:`modindex` * :ref:`search`
{'content_hash': '80996d5df1c0f6c2ed3ce4d699bc7f78', 'timestamp': '', 'source': 'github', 'line_count': 26, 'max_line_length': 76, 'avg_line_length': 19.73076923076923, 'alnum_prop': 0.6257309941520468, 'repo_name': 'jarthurgross/bloch_distribution', 'id': '64dc8b2d2c6e3d305cef2ea0e1e92f885d83a335', 'size': '513', 'binary': False, 'copies': '1', 'ref': 'refs/heads/master', 'path': 'doc/index.rst', 'mode': '33188', 'license': 'mit', 'language': [{'name': 'Python', 'bytes': '28985'}]}
<?php namespace Eloqua\Api\Soap\Service; class QueryResponse { /** * @var DynamicEntityQueryResults $QueryResult */ protected $QueryResult = null; /** * @param DynamicEntityQueryResults $QueryResult */ public function __construct($QueryResult) { $this->QueryResult = $QueryResult; } /** * @return DynamicEntityQueryResults */ public function getQueryResult() { return $this->QueryResult; } /** * @param DynamicEntityQueryResults $QueryResult * @return \Eloqua\Api\Soap\Service\QueryResponse */ public function setQueryResult($QueryResult) { $this->QueryResult = $QueryResult; return $this; } }
{'content_hash': 'bb1b15fdf1193b7c399618ad36738c1f', 'timestamp': '', 'source': 'github', 'line_count': 35, 'max_line_length': 53, 'avg_line_length': 20.62857142857143, 'alnum_prop': 0.6218836565096952, 'repo_name': 'revvi/eloqua-php-api', 'id': '5598bf6b8989d0908a53f39f5a0203fc89561b22', 'size': '722', 'binary': False, 'copies': '1', 'ref': 'refs/heads/master', 'path': 'src/Api/Soap/Service/QueryResponse.php', 'mode': '33188', 'license': 'mit', 'language': [{'name': 'PHP', 'bytes': '183000'}]}
package io.joynr.types; import org.junit.Rule; import org.junit.Test; import org.junit.rules.ExpectedException; import org.junit.runner.RunWith; import org.mockito.junit.MockitoJUnitRunner; @RunWith(MockitoJUnitRunner.class) public class StructSetterTest { @Rule public ExpectedException expectedException = ExpectedException.none(); // joynr.types.TestTypes.TStruct is generated without extra parameters @Test public void setterThrowsOnNullValue() { joynr.types.TestTypes.TStruct tStruct = new joynr.types.TestTypes.TStruct(); expectedException.expect(IllegalArgumentException.class); expectedException.expectMessage("setting tString to null is not allowed"); tStruct.setTString(null); } // joynr.types.TestTypes2.TStruct is generated with optional parameter // ignoreInvalidNullClassMembers true @Test public void setterDoesNotThrowOnNullValue() { joynr.types.TestTypes2.TStruct tStruct = new joynr.types.TestTypes2.TStruct(); tStruct.setTString(null); } }
{'content_hash': '63065234ff4c81a110c1719dcaab8a0c', 'timestamp': '', 'source': 'github', 'line_count': 36, 'max_line_length': 86, 'avg_line_length': 29.47222222222222, 'alnum_prop': 0.7464655984919887, 'repo_name': 'bmwcarit/joynr', 'id': '23a6cc9065bac81a65ac523e7bc6f7105dc6df2e', 'size': '1687', 'binary': False, 'copies': '1', 'ref': 'refs/heads/master', 'path': 'java/javaapi/src/test/java/io/joynr/types/StructSetterTest.java', 'mode': '33188', 'license': 'apache-2.0', 'language': [{'name': 'AIDL', 'bytes': '110'}, {'name': 'C', 'bytes': '3087'}, {'name': 'C++', 'bytes': '4799115'}, {'name': 'CMake', 'bytes': '184499'}, {'name': 'Dockerfile', 'bytes': '51887'}, {'name': 'Gnuplot', 'bytes': '2344'}, {'name': 'Handlebars', 'bytes': '1549'}, {'name': 'Java', 'bytes': '5967524'}, {'name': 'JavaScript', 'bytes': '37186'}, {'name': 'Kotlin', 'bytes': '23721'}, {'name': 'Python', 'bytes': '36320'}, {'name': 'Rust', 'bytes': '10592'}, {'name': 'Shell', 'bytes': '268527'}, {'name': 'TypeScript', 'bytes': '1803452'}, {'name': 'Xtend', 'bytes': '539488'}]}
module ThinkingSphinx::Middlewares; end %w[middleware active_record_translator geographer glazier ids_only inquirer sphinxql stale_id_checker stale_id_filter utf8].each do |middleware| require "thinking_sphinx/middlewares/#{middleware}" end module ThinkingSphinx::Middlewares def self.use(builder, middlewares) middlewares.each { |m| builder.use m } end BASE_MIDDLEWARES = [SphinxQL, Geographer, Inquirer] DEFAULT = ::Middleware::Builder.new do use StaleIdFilter ThinkingSphinx::Middlewares.use self, BASE_MIDDLEWARES use UTF8 use ActiveRecordTranslator use StaleIdChecker use Glazier end RAW_ONLY = ::Middleware::Builder.new do ThinkingSphinx::Middlewares.use self, BASE_MIDDLEWARES use UTF8 end IDS_ONLY = ::Middleware::Builder.new do ThinkingSphinx::Middlewares.use self, BASE_MIDDLEWARES use IdsOnly end end
{'content_hash': '3cf62d4b910102a998eacc6bcbff8644', 'timestamp': '', 'source': 'github', 'line_count': 33, 'max_line_length': 75, 'avg_line_length': 26.818181818181817, 'alnum_prop': 0.7468926553672316, 'repo_name': '0xCCD/thinking-sphinx', 'id': '4032e770be542fdc8e3a3a287f4902416e9daae5', 'size': '885', 'binary': False, 'copies': '2', 'ref': 'refs/heads/master', 'path': 'lib/thinking_sphinx/middlewares.rb', 'mode': '33188', 'license': 'mit', 'language': [{'name': 'Ruby', 'bytes': '379853'}]}
{% extends 'admin/master.html' %} {% from "security/_macros.html" import render_field_with_errors, render_field %} {% block body %} {{ super() }} <div class="row-fluid"> <div class="col-sm-8 col-sm-offset-2"> <h1>Register</h1> <div class="well"> <form action="{{ url_for_security('register') }}" method="POST" name="register_user_form"> {{ register_user_form.hidden_tag() }} {{ render_field_with_errors(register_user_form.first_name) }} {{ render_field_with_errors(register_user_form.last_name) }} {{ render_field_with_errors(register_user_form.email) }} {{ render_field_with_errors(register_user_form.password) }} {% if register_user_form.password_confirm %} {{ render_field_with_errors(register_user_form.password_confirm) }} {% endif %} {{ render_field(register_user_form.submit, class="btn btn-primary") }} </form> <p>Already signed up? Please <a href="{{ url_for('security.login') }}">log in</a>.</p> </div> </div> </div> {% endblock body %}
{'content_hash': 'c58b4f76bd895beba685ee45376c236d', 'timestamp': '', 'source': 'github', 'line_count': 24, 'max_line_length': 102, 'avg_line_length': 48.25, 'alnum_prop': 0.5578583765112263, 'repo_name': 'fapsi/flask-inventory', 'id': '517ae32ef26d50671a10d80cdc0b88ac4d3f7357', 'size': '1158', 'binary': False, 'copies': '1', 'ref': 'refs/heads/master', 'path': 'inventory/templates/security/register_user.html', 'mode': '33188', 'license': 'mit', 'language': [{'name': 'CSS', 'bytes': '6355'}, {'name': 'HTML', 'bytes': '16677'}, {'name': 'JavaScript', 'bytes': '1625'}, {'name': 'Python', 'bytes': '34252'}]}
package crypto import "errors" var ( // ErrInvalidKey means the key argument passed to Signing.Verify // was not the correct type. ErrorInvalidKey = errors.New("key is invalid") ErrorInvalidSign = errors.New("the signing function is not found") ErrorSignatureInvalid = errors.New("signature is invalid") ErrorInvalidKeyType = errors.New("key is of invalid type") ErrorHashUnavailable = errors.New("the requested hash function is unavailable") //ErrorTransferString = errors.New("transfer string error") ErrorECDSAVerification = errors.New("crypto/ecdsa: verification error") ErrorInvalidPrivateKey = errors.New("invalid private key") )
{'content_hash': '29cdffcc699a1bc3dc4ee1818d0c8077', 'timestamp': '', 'source': 'github', 'line_count': 16, 'max_line_length': 81, 'avg_line_length': 41.5, 'alnum_prop': 0.7590361445783133, 'repo_name': 'go-jwt/jwt', 'id': '66fcb7b85fdeb29cc717e569253b105071fc6f86', 'size': '664', 'binary': False, 'copies': '1', 'ref': 'refs/heads/master', 'path': 'crypto/errors.go', 'mode': '33188', 'license': 'mit', 'language': [{'name': 'Go', 'bytes': '49993'}]}
from __future__ import unicode_literals from cssselect.xpath import ExpressionError from cssselect import xpath as cssselect_xpath XPathExprOrig = cssselect_xpath.XPathExpr class XPathExpr(XPathExprOrig): def __init__(self, path='', element='*', condition='', star_prefix=False): self.path = path self.element = element self.condition = condition self.post_condition = None def add_post_condition(self, post_condition): if self.post_condition: self.post_condition = '%s and (%s)' % (self.post_condition, post_condition) else: self.post_condition = post_condition def __str__(self): path = XPathExprOrig.__str__(self) if self.post_condition: path = '%s[%s]' % (path, self.post_condition) return path def join(self, combiner, other): res = XPathExprOrig.join(self, combiner, other) self.post_condition = other.post_condition return res # keep cssselect < 0.8 compat for now class JQueryTranslator(cssselect_xpath.HTMLTranslator): """This class is used to implement the css pseudo classes (:first, :last, ...) that are not defined in the css standard, but are defined in the jquery API. """ xpathexpr_cls = XPathExpr def xpath_first_pseudo(self, xpath): """Matches the first selected element:: >>> from lib.pyquery import PyQuery >>> d = PyQuery('<div><p class="first"></p><p></p></div>') >>> d('p:first') [<p.first>] .. """ xpath.add_post_condition('position() = 1') return xpath def xpath_last_pseudo(self, xpath): """Matches the last selected element:: >>> from lib.pyquery import PyQuery >>> d = PyQuery('<div><p></p><p class="last"></p></div>') >>> d('p:last') [<p.last>] .. """ xpath.add_post_condition('position() = last()') return xpath def xpath_even_pseudo(self, xpath): """Matches even elements, zero-indexed:: >>> from lib.pyquery import PyQuery >>> d = PyQuery('<div><p></p><p class="last"></p></div>') >>> d('p:even') [<p>] .. """ # the first element is 1 in xpath and 0 in python and js xpath.add_post_condition('position() mod 2 = 1') return xpath def xpath_odd_pseudo(self, xpath): """Matches odd elements, zero-indexed:: >>> from lib.pyquery import PyQuery >>> d = PyQuery('<div><p></p><p class="last"></p></div>') >>> d('p:odd') [<p.last>] .. """ xpath.add_post_condition('position() mod 2 = 0') return xpath def xpath_checked_pseudo(self, xpath): """Matches odd elements, zero-indexed:: >>> from lib.pyquery import PyQuery >>> d = PyQuery('<div><input checked="checked"/></div>') >>> d('input:checked') [<input>] .. """ xpath.add_condition("@checked and name(.) = 'input'") return xpath def xpath_selected_pseudo(self, xpath): """Matches all elements that are selected:: >>> from lib.pyquery import PyQuery >>> d = PyQuery('<select><option selected="selected"/></select>') >>> d('option:selected') [<option>] .. """ xpath.add_condition("@selected and name(.) = 'option'") return xpath def xpath_disabled_pseudo(self, xpath): """Matches all elements that are disabled:: >>> from lib.pyquery import PyQuery >>> d = PyQuery('<div><input disabled="disabled"/></div>') >>> d('input:disabled') [<input>] .. """ xpath.add_condition("@disabled") return xpath def xpath_enabled_pseudo(self, xpath): """Matches all elements that are enabled:: >>> from lib.pyquery import PyQuery >>> d = PyQuery('<div><input value="foo" /></div>') >>> d('input:enabled') [<input>] .. """ xpath.add_condition("not(@disabled) and name(.) = 'input'") return xpath def xpath_file_pseudo(self, xpath): """Matches all input elements of type file:: >>> from lib.pyquery import PyQuery >>> d = PyQuery('<div><input type="file"/></div>') >>> d('input:file') [<input>] .. """ xpath.add_condition("@type = 'file' and name(.) = 'input'") return xpath def xpath_input_pseudo(self, xpath): """Matches all input elements:: >>> from lib.pyquery import PyQuery >>> d = PyQuery(('<div><input type="file"/>' ... '<textarea></textarea></div>')) >>> d(':input') [<input>, <textarea>] .. """ xpath.add_condition(( "(name(.) = 'input' or name(.) = 'select') " "or (name(.) = 'textarea' or name(.) = 'button')")) return xpath def xpath_button_pseudo(self, xpath): """Matches all button input elements and the button element:: >>> from lib.pyquery import PyQuery >>> d = PyQuery(('<div><input type="button"/>' ... '<button></button></div>')) >>> d(':button') [<input>, <button>] .. """ xpath.add_condition(( "(@type = 'button' and name(.) = 'input') " "or name(.) = 'button'")) return xpath def xpath_radio_pseudo(self, xpath): """Matches all radio input elements:: >>> from lib.pyquery import PyQuery >>> d = PyQuery('<div><input type="radio"/></div>') >>> d('input:radio') [<input>] .. """ xpath.add_condition("@type = 'radio' and name(.) = 'input'") return xpath def xpath_text_pseudo(self, xpath): """Matches all text input elements:: >>> from lib.pyquery import PyQuery >>> d = PyQuery('<div><input type="text"/></div>') >>> d('input:text') [<input>] .. """ xpath.add_condition("@type = 'text' and name(.) = 'input'") return xpath def xpath_checkbox_pseudo(self, xpath): """Matches all checkbox input elements:: >>> from lib.pyquery import PyQuery >>> d = PyQuery('<div><input type="checkbox"/></div>') >>> d('input:checkbox') [<input>] .. """ xpath.add_condition("@type = 'checkbox' and name(.) = 'input'") return xpath def xpath_password_pseudo(self, xpath): """Matches all password input elements:: >>> from lib.pyquery import PyQuery >>> d = PyQuery('<div><input type="password"/></div>') >>> d('input:password') [<input>] .. """ xpath.add_condition("@type = 'password' and name(.) = 'input'") return xpath def xpath_submit_pseudo(self, xpath): """Matches all submit input elements:: >>> from lib.pyquery import PyQuery >>> d = PyQuery('<div><input type="submit"/></div>') >>> d('input:submit') [<input>] .. """ xpath.add_condition("@type = 'submit' and name(.) = 'input'") return xpath def xpath_hidden_pseudo(self, xpath): """Matches all hidden input elements:: >>> from lib.pyquery import PyQuery >>> d = PyQuery('<div><input type="hidden"/></div>') >>> d('input:hidden') [<input>] .. """ xpath.add_condition("@type = 'hidden' and name(.) = 'input'") return xpath def xpath_image_pseudo(self, xpath): """Matches all image input elements:: >>> from lib.pyquery import PyQuery >>> d = PyQuery('<div><input type="image"/></div>') >>> d('input:image') [<input>] .. """ xpath.add_condition("@type = 'image' and name(.) = 'input'") return xpath def xpath_reset_pseudo(self, xpath): """Matches all reset input elements:: >>> from lib.pyquery import PyQuery >>> d = PyQuery('<div><input type="reset"/></div>') >>> d('input:reset') [<input>] .. """ xpath.add_condition("@type = 'reset' and name(.) = 'input'") return xpath def xpath_header_pseudo(self, xpath): """Matches all header elelements (h1, ..., h6):: >>> from lib.pyquery import PyQuery >>> d = PyQuery('<div><h1>title</h1></div>') >>> d(':header') [<h1>] .. """ # this seems kind of brute-force, is there a better way? xpath.add_condition(( "(name(.) = 'h1' or name(.) = 'h2' or name (.) = 'h3') " "or (name(.) = 'h4' or name (.) = 'h5' or name(.) = 'h6')")) return xpath def xpath_parent_pseudo(self, xpath): """Match all elements that contain other elements:: >>> from lib.pyquery import PyQuery >>> d = PyQuery('<div><h1><span>title</span></h1><h1/></div>') >>> d('h1:parent') [<h1>] .. """ xpath.add_condition("count(child::*) > 0") return xpath def xpath_empty_pseudo(self, xpath): """Match all elements that do not contain other elements:: >>> from lib.pyquery import PyQuery >>> d = PyQuery('<div><h1><span>title</span></h1><h2/></div>') >>> d(':empty') [<span>, <h2>] .. """ xpath.add_condition("count(child::*) = 0") return xpath def xpath_eq_function(self, xpath, function): """Matches a single element by its index:: >>> from lib.pyquery import PyQuery >>> d = PyQuery('<div><h1 class="first"/><h1 class="last"/></div>') >>> d('h1:eq(0)') [<h1.first>] >>> d('h1:eq(1)') [<h1.last>] .. """ if function.argument_types() != ['NUMBER']: raise ExpressionError( "Expected a single integer for :eq(), got %r" % ( function.arguments,)) value = int(function.arguments[0].value) xpath.add_post_condition('position() = %s' % (value + 1)) return xpath def xpath_gt_function(self, xpath, function): """Matches all elements with an index over the given one:: >>> from lib.pyquery import PyQuery >>> d = PyQuery('<div><h1 class="first"/><h1 class="last"/></div>') >>> d('h1:gt(0)') [<h1.last>] .. """ if function.argument_types() != ['NUMBER']: raise ExpressionError( "Expected a single integer for :gt(), got %r" % ( function.arguments,)) value = int(function.arguments[0].value) xpath.add_post_condition('position() > %s' % (value + 1)) return xpath def xpath_lt_function(self, xpath, function): """Matches all elements with an index below the given one:: >>> from lib.pyquery import PyQuery >>> d = PyQuery('<div><h1 class="first"/><h1 class="last"/></div>') >>> d('h1:lt(1)') [<h1.first>] .. """ if function.argument_types() != ['NUMBER']: raise ExpressionError( "Expected a single integer for :gt(), got %r" % ( function.arguments,)) value = int(function.arguments[0].value) xpath.add_post_condition('position() < %s' % (value + 1)) return xpath def xpath_contains_function(self, xpath, function): """Matches all elements that contain the given text >>> from lib.pyquery import PyQuery >>> d = PyQuery('<div><h1/><h1 class="title">title</h1></div>') >>> d(':contains("title")') [<h1.title>] .. """ if function.argument_types() != ['STRING']: raise ExpressionError( "Expected a single string for :contains(), got %r" % ( function.arguments,)) value = self.xpath_literal(function.arguments[0].value) xpath.add_post_condition("contains(text(), %s)" % value) return xpath
{'content_hash': '318b00aaafc2c0c2815ac7727663f3b1', 'timestamp': '', 'source': 'github', 'line_count': 416, 'max_line_length': 79, 'avg_line_length': 30.572115384615383, 'alnum_prop': 0.49559679194841955, 'repo_name': 'collabspot/muninn', 'id': '5c152b2d956a3a3e528a4154ca8eeafd6a41c2d1', 'size': '12859', 'binary': False, 'copies': '1', 'ref': 'refs/heads/master', 'path': 'lib/pyquery/cssselectpatch.py', 'mode': '33188', 'license': 'mit', 'language': [{'name': 'CSS', 'bytes': '131644'}, {'name': 'JavaScript', 'bytes': '907591'}, {'name': 'Python', 'bytes': '1343756'}, {'name': 'Shell', 'bytes': '77'}]}
<html dir="LTR"> <head> <meta http-equiv="Content-Type" content="text/html; charset=Windows-1252" /> <meta name="vs_targetSchema" content="http://schemas.microsoft.com/intellisense/ie5" /> <title>ISelenium.GetValue Method</title> <xml> </xml> <link rel="stylesheet" type="text/css" href="MSDN.css" /> </head> <body id="bodyID" class="dtBODY"> <div id="nsbanner"> <div id="bannerrow1"> <table class="bannerparthead" cellspacing="0"> <tr id="hdr"> <td class="runninghead">An NDoc Documented Class Library</td> <td class="product"> </td> </tr> </table> </div> <div id="TitleRow"> <h1 class="dtH1">ISelenium.GetValue Method </h1> </div> </div> <div id="nstext"> <p>Gets the (whitespace-trimmed) value of an input field (or anything else with a value parameter). For checkbox/radio elements, the value will be "on" or "off" depending on whether the element is checked or not. </p> <div class="syntax"> <a href="ms-help://MS.NETFrameworkSDKv1.1/cpref/html/frlrfSystemStringClassTopic.htm">string</a> GetValue(<br />   <a href="ms-help://MS.NETFrameworkSDKv1.1/cpref/html/frlrfSystemStringClassTopic.htm">string</a> <i>locator</i><br />);</div> <h4 class="dtH4">Parameters</h4> <dl> <dt> <i>locator</i> </dt> <dd>an <a href="#locators">element locator</a></dd> </dl> <h4 class="dtH4">Return Value</h4> <p>the element value, or "on/off" for checkbox/radio elements</p> <h4 class="dtH4">See Also</h4> <p> <a href="Selenium.ISelenium.html">ISelenium Interface</a> | <a href="Selenium.html">Selenium Namespace</a></p> </div> </body> </html>
{'content_hash': 'c22780a6959bf7c84e28b75900d686d3', 'timestamp': '', 'source': 'github', 'line_count': 43, 'max_line_length': 248, 'avg_line_length': 42.48837209302326, 'alnum_prop': 0.5856595511767926, 'repo_name': 'mogotest/selenium', 'id': 'e9a8bbc878e935aac0935b73bb395aa46fe9a563', 'size': '1827', 'binary': False, 'copies': '1', 'ref': 'refs/heads/master', 'path': '1.x_overlay/selenium-dotnet-client-driver-1.0.1/doc/Selenium.ISelenium.GetValue.html', 'mode': '33188', 'license': 'apache-2.0', 'language': [{'name': 'ASP', 'bytes': '853'}, {'name': 'C', 'bytes': '17707'}, {'name': 'C++', 'bytes': '9344838'}, {'name': 'Java', 'bytes': '4950097'}, {'name': 'JavaScript', 'bytes': '11310745'}, {'name': 'Objective-C', 'bytes': '183701'}, {'name': 'PHP', 'bytes': '130864'}, {'name': 'Perl', 'bytes': '184057'}, {'name': 'Python', 'bytes': '2230692'}, {'name': 'Ruby', 'bytes': '192972'}, {'name': 'Shell', 'bytes': '7226'}]}
<!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <title>{pagetitle}</title> {alerts} <meta HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=UTF-8"/> <meta name="viewport" content="width=device-width, initial-scale=1.0"/> <link rel="stylesheet" type="text/css" href="/assets/css/default.css"/> {caboose_styles} </head> <body> <div class="container"> <div class="navbar"> <div class="navbar-inner"> {menubar} </div> </div> <div id="content"> <h1>{pagetitle}</h1> {content} </div> <div id="footer" class="span12"> Copyright &copy; 2017, <a href="mailto:someone@somewhere.com">Me</a>. </div> </div> {caboose_scripts} {caboose_trailings} </body> </html>
{'content_hash': '8eb7e38188aaa3be44d77d6adc15db2b', 'timestamp': '', 'source': 'github', 'line_count': 30, 'max_line_length': 86, 'avg_line_length': 30.766666666666666, 'alnum_prop': 0.49187432286023836, 'repo_name': 'chickypoo/lab6', 'id': '7278b8ded7c99dd038b46d730662289ee9fca3bc', 'size': '923', 'binary': False, 'copies': '2', 'ref': 'refs/heads/develop', 'path': 'application/views/template.php', 'mode': '33188', 'license': 'mit', 'language': [{'name': 'ApacheConf', 'bytes': '602'}, {'name': 'CSS', 'bytes': '3501'}, {'name': 'HTML', 'bytes': '5633'}, {'name': 'JavaScript', 'bytes': '20105'}, {'name': 'PHP', 'bytes': '1818338'}]}
<div ng-controller="Umbraco.PrevalueEditors.IconPickerController"> <ng-form data-element="editor-icon" name="iconForm"> <div class="umb-panel-header-icon" ng-if="!hideIcon" ng-click="openIconPicker()" ng-class="{'-placeholder': model.value==='' || model.value===null}" title="{{model.value}}"> <i class="icon {{model.value}}" ng-if="model.value!=='' && model.value!==null"></i> <div class="umb-panel-header-icon-text" ng-if="model.value==='' || model.value===null"> <localize key="settings_addIcon"></localize> </div> </div> </ng-form> </div>
{'content_hash': 'c35da27eca685442deaff153a3cf8422', 'timestamp': '', 'source': 'github', 'line_count': 11, 'max_line_length': 156, 'avg_line_length': 57.54545454545455, 'alnum_prop': 0.5813586097946287, 'repo_name': 'NikRimington/Umbraco-CMS', 'id': '2d3d4eeae277ce4fa96b50dd554a065d83bc0d1c', 'size': '635', 'binary': False, 'copies': '1', 'ref': 'refs/heads/v8/dev', 'path': 'src/Umbraco.Web.UI.Client/src/views/propertyeditors/listview/icon.prevalues.html', 'mode': '33188', 'license': 'mit', 'language': [{'name': 'ASP', 'bytes': '2203'}, {'name': 'C#', 'bytes': '14475773'}, {'name': 'CSS', 'bytes': '476704'}, {'name': 'HTML', 'bytes': '1077917'}, {'name': 'JavaScript', 'bytes': '4018934'}, {'name': 'PowerShell', 'bytes': '27669'}, {'name': 'TSQL', 'bytes': '98900'}]}
cask 'netron' do version '3.2.9' sha256 'f50975b29e7f62eed0de86eb888c6ff17265cd1a423ac583289b8601ebb006f3' url "https://github.com/lutzroeder/netron/releases/download/v#{version}/Netron-#{version}-mac.zip" appcast 'https://github.com/lutzroeder/netron/releases.atom' name 'Netron' homepage 'https://github.com/lutzroeder/netron' auto_updates true app 'Netron.app' end
{'content_hash': '210bc51176be94d9451083ff8c09f187', 'timestamp': '', 'source': 'github', 'line_count': 13, 'max_line_length': 100, 'avg_line_length': 29.76923076923077, 'alnum_prop': 0.7622739018087855, 'repo_name': 'scribblemaniac/homebrew-cask', 'id': '90823af1f683341f10376a5fa7b84445b99466b9', 'size': '387', 'binary': False, 'copies': '1', 'ref': 'refs/heads/master', 'path': 'Casks/netron.rb', 'mode': '33188', 'license': 'bsd-2-clause', 'language': [{'name': 'Dockerfile', 'bytes': '778'}, {'name': 'HCL', 'bytes': '1658'}, {'name': 'Python', 'bytes': '3532'}, {'name': 'Ruby', 'bytes': '2086879'}, {'name': 'Shell', 'bytes': '36113'}]}
#ifndef _MFnBlinnShader #define _MFnBlinnShader // //- // ========================================================================== // Copyright (C) 1995 - 2005 Alias Systems Corp. and/or its licensors. All // rights reserved. // // The coded instructions, statements, computer programs, and/or related // material (collectively the "Data") in these files contain unpublished // information proprietary to Alias Systems Corp. ("Alias") and/or its // licensors, which is protected by Canadian and US federal copyright law and // by international treaties. // // The Data may not be disclosed or distributed to third parties or be copied // or duplicated, in whole or in part, without the prior written consent of // Alias. // // THE DATA IS PROVIDED "AS IS". ALIAS HEREBY DISCLAIMS ALL WARRANTIES RELATING // TO THE DATA, INCLUDING, WITHOUT LIMITATION, ANY AND ALL EXPRESS OR IMPLIED // WARRANTIES OF NON-INFRINGEMENT, MERCHANTABILITY AND/OR FITNESS FOR A // PARTICULAR PURPOSE. IN NO EVENT SHALL ALIAS BE LIABLE FOR ANY DAMAGES // WHATSOEVER, WHETHER DIRECT, INDIRECT, SPECIAL, OR PUNITIVE, WHETHER IN AN // ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, OR IN EQUITY, // ARISING OUT OF ACCESS TO, USE OF, OR RELIANCE UPON THE DATA. // ========================================================================== //+ // // CLASS: MFnBlinnShader // // ***************************************************************************** // // CLASS DESCRIPTION (MFnBlinnShader) // // MFnBlinnShader facilitates creation and manipulation of dependency graph // nodes representing Blinn shaders. // // ***************************************************************************** #if defined __cplusplus // ***************************************************************************** // INCLUDED HEADER FILES #include <maya/MObject.h> #include <maya/MStatus.h> #include <maya/MFnReflectShader.h> // ***************************************************************************** // DECLARATIONS class MFnReflectShader; // ***************************************************************************** // CLASS DECLARATION (MFnBlinnShader) /// Manage Blinn shaders. /** Facilitate the creation and manipulation of Blinn shaders. */ #ifdef _WIN32 #pragma warning(disable: 4522) #endif // _WIN32 class OPENMAYA_EXPORT MFnBlinnShader : public MFnReflectShader { declareMFn( MFnBlinnShader, MFnReflectShader ); public: /// MObject create( bool UIvisible = true, MStatus * ReturnStatus = NULL ); /// float eccentricity( MStatus * ReturnStatus = NULL ) const; /// MStatus setEccentricity( const float& eccentricity ); /// float specularRollOff( MStatus * ReturnStatus = NULL ) const; /// MStatus setSpecularRollOff( const float& specular_rolloff ); protected: // No protected members private: // No private members }; #ifdef _WIN32 #pragma warning(default: 4522) #endif // _WIN32 // ***************************************************************************** #endif /* __cplusplus */ #endif /* _MFnBlinnShader */
{'content_hash': 'acf2da7fbc4f5a277fb80e71569c1ae7', 'timestamp': '', 'source': 'github', 'line_count': 100, 'max_line_length': 80, 'avg_line_length': 30.8, 'alnum_prop': 0.5756493506493506, 'repo_name': 'SCell555/hl2-asw-port', 'id': '54eb73b6fbf4e5f4a554b445beeae8754c8f92a3', 'size': '3080', 'binary': False, 'copies': '3', 'ref': 'refs/heads/master', 'path': 'src/common/maya/7.0/maya/MFnBlinnShader.h', 'mode': '33188', 'license': 'mit', 'language': [{'name': 'C', 'bytes': '1691191'}, {'name': 'C++', 'bytes': '45039673'}, {'name': 'Objective-C', 'bytes': '149984'}, {'name': 'Squirrel', 'bytes': '4289'}]}
"use strict"; var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) { var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; return c > 3 && r && Object.defineProperty(target, key, r), r; }; var __metadata = (this && this.__metadata) || function (k, v) { if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v); }; var core_1 = require('@angular/core'); var http_1 = require('@angular/http'); require('rxjs/Rx'); //http.get.map var Observable_1 = require('rxjs/Observable'); var path_1 = require('./path'); var step_1 = require('../step/step'); ; var PathService = (function () { function PathService(_http) { this._http = _http; this.stepChunks = []; this.updatePath = new core_1.EventEmitter(); } PathService.prototype.vote = function (decision, stepIndex, alternateIndex) { //console.log("num : " + stepIndex + " a : " + alternateIndex); if (decision === 1 /* Up */) { this.stepChunks[stepIndex][alternateIndex].votes += 2; var temp = void 0; for (var i = alternateIndex - 1; i >= 0; --i) { //Dont need to move in correct place if (this.stepChunks[stepIndex][i].votes >= this.stepChunks[stepIndex][alternateIndex].votes) break; //Move down temp = Object.assign({}, this.stepChunks[stepIndex][alternateIndex]); (this.stepChunks[stepIndex][alternateIndex]).title = (this.stepChunks[stepIndex][i]).title; (this.stepChunks[stepIndex][alternateIndex]).stepNumber = (this.stepChunks[stepIndex][i]).stepNumber; (this.stepChunks[stepIndex][alternateIndex]).expectedDuration = (this.stepChunks[stepIndex][i]).expectedDuration; (this.stepChunks[stepIndex][alternateIndex]).votes = (this.stepChunks[stepIndex][i]).votes; (this.stepChunks[stepIndex][i]).title = temp.title; (this.stepChunks[stepIndex][i]).stepNumber = temp.stepNumber; (this.stepChunks[stepIndex][i]).expectedDuration = temp.expectedDuration; (this.stepChunks[stepIndex][i]).votes = temp.votes; } } else { this.stepChunks[stepIndex][alternateIndex].votes -= 2; var temp = void 0; for (var i = alternateIndex + 1; i < (this.stepChunks[stepIndex]).length; ++i) { //Dont need to move in correct place if (this.stepChunks[stepIndex][i].votes <= this.stepChunks[stepIndex][alternateIndex].votes) break; //Move up temp = Object.assign({}, this.stepChunks[stepIndex][alternateIndex]); (this.stepChunks[stepIndex][alternateIndex]).title = (this.stepChunks[stepIndex][i]).title; (this.stepChunks[stepIndex][alternateIndex]).stepNumber = (this.stepChunks[stepIndex][i]).stepNumber; (this.stepChunks[stepIndex][alternateIndex]).expectedDuration = (this.stepChunks[stepIndex][i]).expectedDuration; (this.stepChunks[stepIndex][alternateIndex]).votes = (this.stepChunks[stepIndex][i]).votes; (this.stepChunks[stepIndex][i]).title = temp.title; (this.stepChunks[stepIndex][i]).stepNumber = temp.stepNumber; (this.stepChunks[stepIndex][i]).expectedDuration = temp.expectedDuration; (this.stepChunks[stepIndex][i]).votes = temp.votes; } } this.updatePath.emit(this.stepChunks); this.updateBackend().subscribe(function (data) { //console.log("Back from db and sorted", data); }, function (error) { console.log("Back from db with error,", error); }); }; PathService.prototype.updateBackend = function () { var _this = this; var test = {}; test.steps = this.stepChunks.reduce(function (previous, next) { return previous.concat(next); }); test = JSON.stringify(test); var token = localStorage.getItem('token'); var headers = new http_1.Headers({ 'Content-Type': 'application/json', 'Authorization': 'Bearer ' + token }); return this._http.patch('http://localhost:3000/paths/' + this.pathId, test, { headers: headers }) .map(function (response) { var data = response.json().obj.steps; _this.pathId = response.json().obj._id; var steps = []; for (var i = 0; i < data.length; ++i) { var step = new step_1.Step(data[i].title, data[i].stepNumber, data[i].alternateNumber, data[i].expectedDuration, data[i].votes, data[i].description); steps.push(step); } //return steps; return _this.arrangeSteps(steps); }) .catch(function (error) { return Observable_1.Observable.throw(error); }); }; PathService.prototype.getPaths = function () { return this._http.get('http://localhost:3000/paths') .map(function (response) { var data = response.json().obj; var paths = []; for (var i = 0; i < data.length; ++i) { var path = new path_1.Path(data[i]._id, data[i].title, data[i].description, data[i].steps, data[i].img); paths.push(path); } return paths; }).catch(function (error) { return Observable_1.Observable.throw(error.json()); }); }; PathService.prototype.getPath = function (_id) { var _this = this; return this._http.get('http://localhost:3000/paths/' + _id) .map(function (response) { var data = response.json().obj.steps; _this.pathId = response.json().obj._id; var steps = []; for (var i = 0; i < data.length; ++i) { var step = new step_1.Step(data[i].title, data[i].stepNumber, data[i].alternateNumber, data[i].expectedDuration, data[i].votes, data[i].description); steps.push(step); } //return steps; return _this.arrangeSteps(steps); }).catch(function (error) { return Observable_1.Observable.throw(error); }); }; PathService.prototype.createPath = function (path) { var body = JSON.stringify(path); var token = localStorage.getItem('token'); var headers = new http_1.Headers({ 'Content-Type': 'application/json', 'Authorization': 'Bearer ' + token }); return this._http.post('http://localhost:3000/paths', body, { headers: headers }) .map(function (response) { return response.json(); }) .catch(function (error) { return Observable_1.Observable.throw(error); }); }; PathService.prototype.arrangeSteps = function (steps) { var i = 0; var temp = []; steps.forEach(function (step) { if (step.stepNumber == i) { temp[i - 1].push(step); } else { i = step.stepNumber; temp.push([]); temp[i - 1].push(step); } }); this.stepChunks = temp; return this.stepChunks; }; PathService = __decorate([ core_1.Injectable(), __metadata('design:paramtypes', [http_1.Http]) ], PathService); return PathService; }()); exports.PathService = PathService; //# sourceMappingURL=path.service.js.map
{'content_hash': 'f757e8e5b0a636f3392a256501778dfe', 'timestamp': '', 'source': 'github', 'line_count': 160, 'max_line_length': 165, 'avg_line_length': 49.8375, 'alnum_prop': 0.5679709054426887, 'repo_name': 'conghan-tay/QuickSteps', 'id': 'ae9bb79ae34c8aa7524e8cc0dd6d80e577465f83', 'size': '7974', 'binary': False, 'copies': '1', 'ref': 'refs/heads/master', 'path': 'app/path/path.service.js', 'mode': '33188', 'license': 'mit', 'language': [{'name': 'CSS', 'bytes': '6096'}, {'name': 'HTML', 'bytes': '53160'}, {'name': 'JavaScript', 'bytes': '29159'}, {'name': 'TypeScript', 'bytes': '37701'}]}
""" recommender_engine ----- recommender_engine is a recommendation application using either item-based or user-based approaches :copyright: (c) 2016 - 2019 by Tran Ly Vu. All Rights Reserved. :license: Apache License 2.0 """ from .find_similar_item import find_similar_item from .preference_space_transform import preference_space_transform from .user_match import user_match name="similar_item" __all__ = ["find_similar_item", "preference_space_transform", "user_match"] __author__ = "Tran Ly Vu (vutransingapore@gmail.com)" __copyright__ = "Copyright (c) 2016 - 2019 Tran Ly Vu. All Rights Reserved." __license__ = "Apache License 2.0" __credits__ = ["Tran Ly Vu"] __maintainer__ = "Tran Ly Vu" __email__ = "vutransingapore@gmail.com" __status__ = "Beta"
{'content_hash': 'd84d7ad9f4abb31d2f89eb5605e2bfe3', 'timestamp': '', 'source': 'github', 'line_count': 22, 'max_line_length': 100, 'avg_line_length': 34.90909090909091, 'alnum_prop': 0.7083333333333334, 'repo_name': 'tranlyvu/recommender', 'id': '83e602f175079061565bc33874abda521d79374c', 'size': '768', 'binary': False, 'copies': '1', 'ref': 'refs/heads/master', 'path': 'recommender_engine/similar_item/__init__.py', 'mode': '33188', 'license': 'apache-2.0', 'language': [{'name': 'Python', 'bytes': '23629'}]}
import { NgModule } from '@angular/core'; import { Routes, RouterModule } from '@angular/router'; import { CallbackComponent } from 'app/callback/callback.component'; import { HomeComponent } from 'app/home/home.component'; import { ProfileComponent } from 'app/profile/profile.component'; const routes: Routes = [ { path: '', component: HomeComponent }, { path: 'callback', component: CallbackComponent }, { path: 'home', component: HomeComponent }, { path: 'profile', component: ProfileComponent } ]; @NgModule({ imports: [RouterModule.forRoot(routes)], exports: [RouterModule] }) export class AppRoutingModule { }
{'content_hash': '6826aed27927de204e977e1baea01dce', 'timestamp': '', 'source': 'github', 'line_count': 18, 'max_line_length': 68, 'avg_line_length': 35.05555555555556, 'alnum_prop': 0.7179080824088748, 'repo_name': 'ruieloi/angular-cli-samples', 'id': 'd5cf0901ed8bf9ca7f2069810160255159f95b9c', 'size': '631', 'binary': False, 'copies': '1', 'ref': 'refs/heads/master', 'path': 'angular-cli-auth0/src/app/app-routing.module.ts', 'mode': '33188', 'license': 'mit', 'language': [{'name': 'CSS', 'bytes': '6598'}, {'name': 'HTML', 'bytes': '34515'}, {'name': 'JavaScript', 'bytes': '11521'}, {'name': 'TypeScript', 'bytes': '114610'}]}
/** * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ 'use strict'; const config = { development: { logLevel: 'debug', policyDir: '/home/athenz/var/zpe', confFileName: '/home/athenz/conf/athenz/athenz.conf', tokenRefresh: 1800, policyRefresh: 1800, allowedOffset: 300, disableCache: false, updater: './ZPEUpdater', disableWatch: true }, production: { logLevel: 'info', policyDir: '/home/athenz/var/zpe', confFileName: '/home/athenz/conf/athenz/athenz.conf', tokenRefresh: 1800, policyRefresh: 1800, allowedOffset: 300, disableCache: false, updater: './ZPEUpdater', disableWatch: true } }; // Fetches 'service' specific config sub-section, and fills defaults if not present /* istanbul ignore next */ module.exports = function() { let c = config[process.env.SERVICE_NAME || 'development']; c.logLevel = c.logLevel || 'debug'; c.policyDir = c.policyDir || '/home/athenz/var/zpe'; c.confFileName = c.confFileName || '/home/athenz/conf/athenz/athenz.conf'; c.tokenRefresh = c.tokenRefresh || 1800; c.policyRefresh = c.policyRefresh || 1800; c.allowedOffset = c.allowedOffset || 300; c.disableCache = c.disableCache || false; c.updater = c.updater || './ZPEUpdater'; c.disableWatch = c.disableWatch || false; return c; };
{'content_hash': '982452fd742dd1be60404f071b6df358', 'timestamp': '', 'source': 'github', 'line_count': 57, 'max_line_length': 83, 'avg_line_length': 32.14035087719298, 'alnum_prop': 0.6899563318777293, 'repo_name': 'yahoo/athenz', 'id': 'b44c37639ce123bab7db91eb002c4ce5327b56b1', 'size': '1832', 'binary': False, 'copies': '1', 'ref': 'refs/heads/master', 'path': 'clients/nodejs/zpe/config/default-config.js', 'mode': '33188', 'license': 'apache-2.0', 'language': [{'name': 'CSS', 'bytes': '45440'}, {'name': 'Dockerfile', 'bytes': '11572'}, {'name': 'Go', 'bytes': '925131'}, {'name': 'HTML', 'bytes': '38533'}, {'name': 'Java', 'bytes': '7064425'}, {'name': 'JavaScript', 'bytes': '498576'}, {'name': 'Makefile', 'bytes': '23932'}, {'name': 'Perl', 'bytes': '951'}, {'name': 'Shell', 'bytes': '82793'}, {'name': 'TSQL', 'bytes': '18162'}]}
from nitrogen import auth from . import * @route('/') def do_index(request): if request.user_id: return Response('logged in as %s' % request.user_id, mimetype='text/plain') else: return Response('not logged in', mimetype='text/plain') @route('/login') def do_login(request): if request.method == 'POST': user = request.form['user'] # Verify their credentials here. response = Response() response.login(user) response.redirect(request.args.get('redirect', '/auth')) return response else: return Response(''' <form method="post"> <input name="user" value="default"/><input type="submit" /> </form> ''') @route('/logout') def do_logout(request): response = Response() response.logout() response.redirect('/auth') return response @route('/protected') @auth.requires(auth.Authenticated()) def do_protected(request): return Response('OK', mimetype='text/plain') @route('/private') @auth.requires(auth.Principal('root')) def do_private(request): return Response('OK', mimetype='text/plain')
{'content_hash': '2030d1fa76942b78b5c03a0b3eb7fe67', 'timestamp': '', 'source': 'github', 'line_count': 44, 'max_line_length': 83, 'avg_line_length': 26.15909090909091, 'alnum_prop': 0.6159860990443093, 'repo_name': 'mikeboers/Nitrogen', 'id': 'cb440caf40dda3580d58bd51a6cd4dbadc8c55f5', 'size': '1151', 'binary': False, 'copies': '1', 'ref': 'refs/heads/master', 'path': 'example/controllers/auth.py', 'mode': '33188', 'license': 'bsd-3-clause', 'language': [{'name': 'JavaScript', 'bytes': '983983'}, {'name': 'PHP', 'bytes': '27269'}, {'name': 'Perl', 'bytes': '1497'}, {'name': 'Python', 'bytes': '197085'}, {'name': 'Ruby', 'bytes': '315'}, {'name': 'Shell', 'bytes': '539'}]}
export default class ThemeSettings { constructor(client) { this.client = client; } retrieve() { return this.client.get('/theme/settings'); } update(data) { return this.client.put('/theme/settings', data); } retrieveSchema() { return this.client.get('/theme/settings_schema'); } }
{'content_hash': 'c26a5b47d11ca81cb1767f5542c933d7', 'timestamp': '', 'source': 'github', 'line_count': 17, 'max_line_length': 51, 'avg_line_length': 17.58823529411765, 'alnum_prop': 0.6755852842809364, 'repo_name': 'cezerin/client', 'id': '7fa97c46f070177fe41664065a64f049213ca2b0', 'size': '299', 'binary': False, 'copies': '1', 'ref': 'refs/heads/master', 'path': 'src/api/theme/settings.js', 'mode': '33188', 'license': 'mit', 'language': [{'name': 'JavaScript', 'bytes': '38514'}]}
package org.usfirst.frc.team166.robot.commands; import edu.wpi.first.wpilibj.Timer; import edu.wpi.first.wpilibj.command.Command; import org.usfirst.frc.team166.robot.Robot; /** * */ public class DriveTime extends Command { double time; // seconds double speed; // motor power (for now) Timer timer; public DriveTime(double desiredTime, double desiredSpeed) { requires(Robot.drive); time = desiredTime; speed = desiredSpeed; } // Called just before this Command runs the first time @Override protected void initialize() { Robot.drive.resetGyro(); timer = new Timer(); timer.reset(); timer.start(); } // Called repeatedly when this Command is scheduled to run @Override protected void execute() { Robot.drive.driveStraightGyro(speed); } // Make this return true when this Command no longer needs to run execute() @Override protected boolean isFinished() { // return Robot.drive.hasDrivenDistance(time); return (timer.get() >= time); } // Called once after isFinished returns true @Override protected void end() { Robot.drive.stopMotors(); timer.stop(); } // Called when another command which requires one or more of the same // subsystems is scheduled to run @Override protected void interrupted() { Robot.drive.stopMotors(); } }
{'content_hash': 'bcb9f22cf56cfa9d4fbb103b2b3974f2', 'timestamp': '', 'source': 'github', 'line_count': 57, 'max_line_length': 76, 'avg_line_length': 22.666666666666668, 'alnum_prop': 0.7221362229102167, 'repo_name': 'astronomer346/frc-2017', 'id': '5148923090f35b4367a47a50ed7dd1ec4a30fa42', 'size': '1292', 'binary': False, 'copies': '1', 'ref': 'refs/heads/master', 'path': 'src/org/usfirst/frc/team166/robot/commands/DriveTime.java', 'mode': '33188', 'license': 'mit', 'language': [{'name': 'Batchfile', 'bytes': '124'}, {'name': 'Java', 'bytes': '53091'}]}
SYNONYM #### According to The Catalogue of Life, 3rd January 2011 #### Published in Illinois Biol. Monogr. (Urbana) 13(4): 89 (1935) #### Original name Lophodermium autumnale Darker, 1932 ### Remarks null
{'content_hash': '5e0d2b3f9cae7dd5d29c3dc8a458f25c', 'timestamp': '', 'source': 'github', 'line_count': 13, 'max_line_length': 48, 'avg_line_length': 16.0, 'alnum_prop': 0.7115384615384616, 'repo_name': 'mdoering/backbone', 'id': '1b0aeefc095fdd3f1f7f31c7fa528dbc7b124030', 'size': '276', 'binary': False, 'copies': '1', 'ref': 'refs/heads/master', 'path': 'life/Fungi/Ascomycota/Leotiomycetes/Rhytismatales/Rhytismataceae/Lophomerum/Lophomerum autumnale/ Syn. Lophodermina autumnalis/README.md', 'mode': '33188', 'license': 'apache-2.0', 'language': []}
package org.asteriskjava.live.internal; import org.asteriskjava.live.AsteriskServer; import org.asteriskjava.live.LiveObject; import org.asteriskjava.lock.Lockable; import org.asteriskjava.util.Log; import org.asteriskjava.util.LogFactory; import java.beans.PropertyChangeListener; import java.beans.PropertyChangeSupport; /** * Abstract base class for all live objects. * * @author srt * @since 0.3 */ abstract class AbstractLiveObject extends Lockable implements LiveObject { private final Log logger = LogFactory.getLog(this.getClass()); private final PropertyChangeSupport changes; protected final AsteriskServerImpl server; // last time this object was updated private long lastUpdate; AbstractLiveObject(AsteriskServerImpl server) { this.server = server; this.changes = new PropertyChangeSupport(this); stampLastUpdate(); } public AsteriskServer getServer() { return server; } public void addPropertyChangeListener(PropertyChangeListener listener) { changes.addPropertyChangeListener(listener); } public void addPropertyChangeListener(String propertyName, PropertyChangeListener listener) { boolean haveToAdd = true; for (PropertyChangeListener l : changes.getPropertyChangeListeners()) { if (l == listener) { haveToAdd = false; break; } } if (haveToAdd) { changes.addPropertyChangeListener(propertyName, listener); } } public void removePropertyChangeListener(PropertyChangeListener listener) { changes.removePropertyChangeListener(listener); } public void removePropertyChangeListener(String propertyName, PropertyChangeListener listener) { changes.removePropertyChangeListener(propertyName, listener); } protected void firePropertyChange(String propertyName, Object oldValue, Object newValue) { if (oldValue != null || newValue != null) { stampLastUpdate(); try { changes.firePropertyChange(propertyName, oldValue, newValue); } catch (Exception e) { logger.warn("Uncaught exception in PropertyChangeListener", e); } } } @Override public long getLastUpdateMillis() { return lastUpdate; } public void stampLastUpdate() { lastUpdate = System.currentTimeMillis(); } }
{'content_hash': 'c9dd7462084a34dcf702c9929ebb18d7', 'timestamp': '', 'source': 'github', 'line_count': 81, 'max_line_length': 100, 'avg_line_length': 30.419753086419753, 'alnum_prop': 0.6842532467532467, 'repo_name': 'asterisk-java/asterisk-java', 'id': '231bb9c0e55e77af6722af3fc69e1af7f1905410', 'size': '3078', 'binary': False, 'copies': '1', 'ref': 'refs/heads/master', 'path': 'src/main/java/org/asteriskjava/live/internal/AbstractLiveObject.java', 'mode': '33188', 'license': 'apache-2.0', 'language': [{'name': 'HTML', 'bytes': '14381'}, {'name': 'Java', 'bytes': '3118231'}]}
/** * Generated with Acceleo */ package org.wso2.developerstudio.eclipse.gmf.esb.parts.impl; // Start of user code for imports import java.util.ArrayList; import java.util.List; import org.eclipse.emf.common.util.BasicEList; import org.eclipse.emf.common.util.EList; import org.eclipse.emf.ecore.EObject; import org.eclipse.emf.edit.ui.provider.AdapterFactoryLabelProvider; import org.eclipse.emf.eef.runtime.api.component.IPropertiesEditionComponent; import org.eclipse.emf.eef.runtime.api.notify.IPropertiesEditionEvent; import org.eclipse.emf.eef.runtime.api.parts.ISWTPropertiesEditionPart; import org.eclipse.emf.eef.runtime.impl.notify.PropertiesEditionEvent; import org.eclipse.emf.eef.runtime.impl.parts.CompositePropertiesEditionPart; import org.eclipse.emf.eef.runtime.ui.parts.PartComposer; import org.eclipse.emf.eef.runtime.ui.parts.sequence.BindingCompositionSequence; import org.eclipse.emf.eef.runtime.ui.parts.sequence.CompositionSequence; import org.eclipse.emf.eef.runtime.ui.parts.sequence.CompositionStep; import org.eclipse.emf.eef.runtime.ui.utils.EditingUtils; import org.eclipse.emf.eef.runtime.ui.widgets.EEFFeatureEditorDialog; import org.eclipse.emf.eef.runtime.ui.widgets.ReferencesTable; import org.eclipse.emf.eef.runtime.ui.widgets.ReferencesTable.ReferencesTableListener; import org.eclipse.emf.eef.runtime.ui.widgets.SWTUtils; import org.eclipse.emf.eef.runtime.ui.widgets.referencestable.ReferencesTableContentProvider; import org.eclipse.emf.eef.runtime.ui.widgets.referencestable.ReferencesTableSettings; import org.eclipse.jface.viewers.ViewerFilter; import org.eclipse.jface.window.Window; import org.eclipse.swt.SWT; import org.eclipse.swt.events.FocusAdapter; import org.eclipse.swt.events.FocusEvent; import org.eclipse.swt.events.KeyAdapter; import org.eclipse.swt.events.KeyEvent; import org.eclipse.swt.events.SelectionAdapter; import org.eclipse.swt.events.SelectionEvent; import org.eclipse.swt.layout.GridData; import org.eclipse.swt.layout.GridLayout; import org.eclipse.swt.widgets.Button; import org.eclipse.swt.widgets.Composite; import org.eclipse.swt.widgets.Group; import org.eclipse.swt.widgets.Text; import org.wso2.developerstudio.eclipse.gmf.esb.EsbPackage; import org.wso2.developerstudio.eclipse.gmf.esb.parts.CloudConnectorPropertiesEditionPart; import org.wso2.developerstudio.eclipse.gmf.esb.parts.EsbViewsRepository; import org.wso2.developerstudio.eclipse.gmf.esb.providers.EsbMessages; // End of user code /** * * */ public class CloudConnectorPropertiesEditionPartImpl extends CompositePropertiesEditionPart implements ISWTPropertiesEditionPart, CloudConnectorPropertiesEditionPart { protected Text description; protected Text commentsList; protected Button editCommentsList; protected EList commentsListList; protected ReferencesTable connectorParameters; protected List<ViewerFilter> connectorParametersBusinessFilters = new ArrayList<ViewerFilter>(); protected List<ViewerFilter> connectorParametersFilters = new ArrayList<ViewerFilter>(); /** * Default constructor * @param editionComponent the {@link IPropertiesEditionComponent} that manage this part * */ public CloudConnectorPropertiesEditionPartImpl(IPropertiesEditionComponent editionComponent) { super(editionComponent); } /** * {@inheritDoc} * * @see org.eclipse.emf.eef.runtime.api.parts.ISWTPropertiesEditionPart# * createFigure(org.eclipse.swt.widgets.Composite) * */ public Composite createFigure(final Composite parent) { view = new Composite(parent, SWT.NONE); GridLayout layout = new GridLayout(); layout.numColumns = 3; view.setLayout(layout); createControls(view); return view; } /** * {@inheritDoc} * * @see org.eclipse.emf.eef.runtime.api.parts.ISWTPropertiesEditionPart# * createControls(org.eclipse.swt.widgets.Composite) * */ public void createControls(Composite view) { CompositionSequence cloudConnectorStep = new BindingCompositionSequence(propertiesEditionComponent); CompositionStep propertiesStep = cloudConnectorStep.addStep(EsbViewsRepository.CloudConnector.Properties.class); propertiesStep.addStep(EsbViewsRepository.CloudConnector.Properties.description); propertiesStep.addStep(EsbViewsRepository.CloudConnector.Properties.commentsList); propertiesStep.addStep(EsbViewsRepository.CloudConnector.Properties.connectorParameters); composer = new PartComposer(cloudConnectorStep) { @Override public Composite addToPart(Composite parent, Object key) { if (key == EsbViewsRepository.CloudConnector.Properties.class) { return createPropertiesGroup(parent); } if (key == EsbViewsRepository.CloudConnector.Properties.description) { return createDescriptionText(parent); } if (key == EsbViewsRepository.CloudConnector.Properties.commentsList) { return createCommentsListMultiValuedEditor(parent); } if (key == EsbViewsRepository.CloudConnector.Properties.connectorParameters) { return createConnectorParametersAdvancedTableComposition(parent); } return parent; } }; composer.compose(view); } /** * */ protected Composite createPropertiesGroup(Composite parent) { Group propertiesGroup = new Group(parent, SWT.NONE); propertiesGroup.setText(EsbMessages.CloudConnectorPropertiesEditionPart_PropertiesGroupLabel); GridData propertiesGroupData = new GridData(GridData.FILL_HORIZONTAL); propertiesGroupData.horizontalSpan = 3; propertiesGroup.setLayoutData(propertiesGroupData); GridLayout propertiesGroupLayout = new GridLayout(); propertiesGroupLayout.numColumns = 3; propertiesGroup.setLayout(propertiesGroupLayout); return propertiesGroup; } protected Composite createDescriptionText(Composite parent) { createDescription(parent, EsbViewsRepository.CloudConnector.Properties.description, EsbMessages.CloudConnectorPropertiesEditionPart_DescriptionLabel); description = SWTUtils.createScrollableText(parent, SWT.BORDER); GridData descriptionData = new GridData(GridData.FILL_HORIZONTAL); description.setLayoutData(descriptionData); description.addFocusListener(new FocusAdapter() { /** * {@inheritDoc} * * @see org.eclipse.swt.events.FocusAdapter#focusLost(org.eclipse.swt.events.FocusEvent) * */ @Override @SuppressWarnings("synthetic-access") public void focusLost(FocusEvent e) { if (propertiesEditionComponent != null) propertiesEditionComponent.firePropertiesChanged(new PropertiesEditionEvent(CloudConnectorPropertiesEditionPartImpl.this, EsbViewsRepository.CloudConnector.Properties.description, PropertiesEditionEvent.COMMIT, PropertiesEditionEvent.SET, null, description.getText())); } }); description.addKeyListener(new KeyAdapter() { /** * {@inheritDoc} * * @see org.eclipse.swt.events.KeyAdapter#keyPressed(org.eclipse.swt.events.KeyEvent) * */ @Override @SuppressWarnings("synthetic-access") public void keyPressed(KeyEvent e) { if (e.character == SWT.CR) { if (propertiesEditionComponent != null) propertiesEditionComponent.firePropertiesChanged(new PropertiesEditionEvent(CloudConnectorPropertiesEditionPartImpl.this, EsbViewsRepository.CloudConnector.Properties.description, PropertiesEditionEvent.COMMIT, PropertiesEditionEvent.SET, null, description.getText())); } } }); EditingUtils.setID(description, EsbViewsRepository.CloudConnector.Properties.description); EditingUtils.setEEFtype(description, "eef::Text"); //$NON-NLS-1$ SWTUtils.createHelpButton(parent, propertiesEditionComponent.getHelpContent(EsbViewsRepository.CloudConnector.Properties.description, EsbViewsRepository.SWT_KIND), null); //$NON-NLS-1$ // Start of user code for createDescriptionText // End of user code return parent; } protected Composite createCommentsListMultiValuedEditor(Composite parent) { commentsList = SWTUtils.createScrollableText(parent, SWT.BORDER | SWT.READ_ONLY); GridData commentsListData = new GridData(GridData.FILL_HORIZONTAL); commentsListData.horizontalSpan = 2; commentsList.setLayoutData(commentsListData); EditingUtils.setID(commentsList, EsbViewsRepository.CloudConnector.Properties.commentsList); EditingUtils.setEEFtype(commentsList, "eef::MultiValuedEditor::field"); //$NON-NLS-1$ editCommentsList = new Button(parent, SWT.NONE); editCommentsList.setText(getDescription(EsbViewsRepository.CloudConnector.Properties.commentsList, EsbMessages.CloudConnectorPropertiesEditionPart_CommentsListLabel)); GridData editCommentsListData = new GridData(); editCommentsList.setLayoutData(editCommentsListData); editCommentsList.addSelectionListener(new SelectionAdapter() { /** * {@inheritDoc} * * @see org.eclipse.swt.events.SelectionAdapter#widgetSelected(org.eclipse.swt.events.SelectionEvent) */ public void widgetSelected(SelectionEvent e) { EEFFeatureEditorDialog dialog = new EEFFeatureEditorDialog( commentsList.getShell(), "CloudConnector", new AdapterFactoryLabelProvider(adapterFactory), //$NON-NLS-1$ commentsListList, EsbPackage.eINSTANCE.getEsbElement_CommentsList().getEType(), null, false, true, null, null); if (dialog.open() == Window.OK) { commentsListList = dialog.getResult(); if (commentsListList == null) { commentsListList = new BasicEList(); } commentsList.setText(commentsListList.toString()); propertiesEditionComponent.firePropertiesChanged(new PropertiesEditionEvent(CloudConnectorPropertiesEditionPartImpl.this, EsbViewsRepository.CloudConnector.Properties.commentsList, PropertiesEditionEvent.COMMIT, PropertiesEditionEvent.SET, null, new BasicEList(commentsListList))); setHasChanged(true); } } }); EditingUtils.setID(editCommentsList, EsbViewsRepository.CloudConnector.Properties.commentsList); EditingUtils.setEEFtype(editCommentsList, "eef::MultiValuedEditor::browsebutton"); //$NON-NLS-1$ // Start of user code for createCommentsListMultiValuedEditor // End of user code return parent; } /** * @param container * */ protected Composite createConnectorParametersAdvancedTableComposition(Composite parent) { this.connectorParameters = new ReferencesTable(getDescription(EsbViewsRepository.CloudConnector.Properties.connectorParameters, EsbMessages.CloudConnectorPropertiesEditionPart_ConnectorParametersLabel), new ReferencesTableListener() { public void handleAdd() { propertiesEditionComponent.firePropertiesChanged(new PropertiesEditionEvent(CloudConnectorPropertiesEditionPartImpl.this, EsbViewsRepository.CloudConnector.Properties.connectorParameters, PropertiesEditionEvent.COMMIT, PropertiesEditionEvent.ADD, null, null)); connectorParameters.refresh(); } public void handleEdit(EObject element) { propertiesEditionComponent.firePropertiesChanged(new PropertiesEditionEvent(CloudConnectorPropertiesEditionPartImpl.this, EsbViewsRepository.CloudConnector.Properties.connectorParameters, PropertiesEditionEvent.COMMIT, PropertiesEditionEvent.EDIT, null, element)); connectorParameters.refresh(); } public void handleMove(EObject element, int oldIndex, int newIndex) { propertiesEditionComponent.firePropertiesChanged(new PropertiesEditionEvent(CloudConnectorPropertiesEditionPartImpl.this, EsbViewsRepository.CloudConnector.Properties.connectorParameters, PropertiesEditionEvent.COMMIT, PropertiesEditionEvent.MOVE, element, newIndex)); connectorParameters.refresh(); } public void handleRemove(EObject element) { propertiesEditionComponent.firePropertiesChanged(new PropertiesEditionEvent(CloudConnectorPropertiesEditionPartImpl.this, EsbViewsRepository.CloudConnector.Properties.connectorParameters, PropertiesEditionEvent.COMMIT, PropertiesEditionEvent.REMOVE, null, element)); connectorParameters.refresh(); } public void navigateTo(EObject element) { } }); for (ViewerFilter filter : this.connectorParametersFilters) { this.connectorParameters.addFilter(filter); } this.connectorParameters.setHelpText(propertiesEditionComponent.getHelpContent(EsbViewsRepository.CloudConnector.Properties.connectorParameters, EsbViewsRepository.SWT_KIND)); this.connectorParameters.createControls(parent); this.connectorParameters.addSelectionListener(new SelectionAdapter() { public void widgetSelected(SelectionEvent e) { if (e.item != null && e.item.getData() instanceof EObject) { propertiesEditionComponent.firePropertiesChanged(new PropertiesEditionEvent(CloudConnectorPropertiesEditionPartImpl.this, EsbViewsRepository.CloudConnector.Properties.connectorParameters, PropertiesEditionEvent.CHANGE, PropertiesEditionEvent.SELECTION_CHANGED, null, e.item.getData())); } } }); GridData connectorParametersData = new GridData(GridData.FILL_HORIZONTAL); connectorParametersData.horizontalSpan = 3; this.connectorParameters.setLayoutData(connectorParametersData); this.connectorParameters.setLowerBound(0); this.connectorParameters.setUpperBound(-1); connectorParameters.setID(EsbViewsRepository.CloudConnector.Properties.connectorParameters); connectorParameters.setEEFType("eef::AdvancedTableComposition"); //$NON-NLS-1$ // Start of user code for createConnectorParametersAdvancedTableComposition // End of user code return parent; } /** * {@inheritDoc} * * @see org.eclipse.emf.eef.runtime.api.notify.IPropertiesEditionListener#firePropertiesChanged(org.eclipse.emf.eef.runtime.api.notify.IPropertiesEditionEvent) * */ public void firePropertiesChanged(IPropertiesEditionEvent event) { // Start of user code for tab synchronization // End of user code } /** * {@inheritDoc} * * @see org.wso2.developerstudio.eclipse.gmf.esb.parts.CloudConnectorPropertiesEditionPart#getDescription() * */ public String getDescription() { return description.getText(); } /** * {@inheritDoc} * * @see org.wso2.developerstudio.eclipse.gmf.esb.parts.CloudConnectorPropertiesEditionPart#setDescription(String newValue) * */ public void setDescription(String newValue) { if (newValue != null) { description.setText(newValue); } else { description.setText(""); //$NON-NLS-1$ } boolean eefElementEditorReadOnlyState = isReadOnly(EsbViewsRepository.CloudConnector.Properties.description); if (eefElementEditorReadOnlyState && description.isEnabled()) { description.setEnabled(false); description.setToolTipText(EsbMessages.CloudConnector_ReadOnly); } else if (!eefElementEditorReadOnlyState && !description.isEnabled()) { description.setEnabled(true); } } /** * {@inheritDoc} * * @see org.wso2.developerstudio.eclipse.gmf.esb.parts.CloudConnectorPropertiesEditionPart#getCommentsList() * */ public EList getCommentsList() { return commentsListList; } /** * {@inheritDoc} * * @see org.wso2.developerstudio.eclipse.gmf.esb.parts.CloudConnectorPropertiesEditionPart#setCommentsList(EList newValue) * */ public void setCommentsList(EList newValue) { commentsListList = newValue; if (newValue != null) { commentsList.setText(commentsListList.toString()); } else { commentsList.setText(""); //$NON-NLS-1$ } boolean eefElementEditorReadOnlyState = isReadOnly(EsbViewsRepository.CloudConnector.Properties.commentsList); if (eefElementEditorReadOnlyState && commentsList.isEnabled()) { commentsList.setEnabled(false); commentsList.setToolTipText(EsbMessages.CloudConnector_ReadOnly); } else if (!eefElementEditorReadOnlyState && !commentsList.isEnabled()) { commentsList.setEnabled(true); } } public void addToCommentsList(Object newValue) { commentsListList.add(newValue); if (newValue != null) { commentsList.setText(commentsListList.toString()); } else { commentsList.setText(""); //$NON-NLS-1$ } } public void removeToCommentsList(Object newValue) { commentsListList.remove(newValue); if (newValue != null) { commentsList.setText(commentsListList.toString()); } else { commentsList.setText(""); //$NON-NLS-1$ } } /** * {@inheritDoc} * * @see org.wso2.developerstudio.eclipse.gmf.esb.parts.CloudConnectorPropertiesEditionPart#initConnectorParameters(EObject current, EReference containingFeature, EReference feature) */ public void initConnectorParameters(ReferencesTableSettings settings) { if (current.eResource() != null && current.eResource().getResourceSet() != null) this.resourceSet = current.eResource().getResourceSet(); ReferencesTableContentProvider contentProvider = new ReferencesTableContentProvider(); connectorParameters.setContentProvider(contentProvider); connectorParameters.setInput(settings); boolean eefElementEditorReadOnlyState = isReadOnly(EsbViewsRepository.CloudConnector.Properties.connectorParameters); if (eefElementEditorReadOnlyState && connectorParameters.isEnabled()) { connectorParameters.setEnabled(false); connectorParameters.setToolTipText(EsbMessages.CloudConnector_ReadOnly); } else if (!eefElementEditorReadOnlyState && !connectorParameters.isEnabled()) { connectorParameters.setEnabled(true); } } /** * {@inheritDoc} * * @see org.wso2.developerstudio.eclipse.gmf.esb.parts.CloudConnectorPropertiesEditionPart#updateConnectorParameters() * */ public void updateConnectorParameters() { connectorParameters.refresh(); } /** * {@inheritDoc} * * @see org.wso2.developerstudio.eclipse.gmf.esb.parts.CloudConnectorPropertiesEditionPart#addFilterConnectorParameters(ViewerFilter filter) * */ public void addFilterToConnectorParameters(ViewerFilter filter) { connectorParametersFilters.add(filter); if (this.connectorParameters != null) { this.connectorParameters.addFilter(filter); } } /** * {@inheritDoc} * * @see org.wso2.developerstudio.eclipse.gmf.esb.parts.CloudConnectorPropertiesEditionPart#addBusinessFilterConnectorParameters(ViewerFilter filter) * */ public void addBusinessFilterToConnectorParameters(ViewerFilter filter) { connectorParametersBusinessFilters.add(filter); } /** * {@inheritDoc} * * @see org.wso2.developerstudio.eclipse.gmf.esb.parts.CloudConnectorPropertiesEditionPart#isContainedInConnectorParametersTable(EObject element) * */ public boolean isContainedInConnectorParametersTable(EObject element) { return ((ReferencesTableSettings)connectorParameters.getInput()).contains(element); } /** * {@inheritDoc} * * @see org.eclipse.emf.eef.runtime.api.parts.IPropertiesEditionPart#getTitle() * */ public String getTitle() { return EsbMessages.CloudConnector_Part_Title; } // Start of user code additional methods // End of user code }
{'content_hash': '5773c523d87781a58b5070ebe7048d62', 'timestamp': '', 'source': 'github', 'line_count': 493, 'max_line_length': 291, 'avg_line_length': 38.01419878296146, 'alnum_prop': 0.7877381142948615, 'repo_name': 'prabushi/devstudio-tooling-esb', 'id': '82dcf1437d3e91ee719d716859426c9e853f891f', 'size': '18741', 'binary': False, 'copies': '2', 'ref': 'refs/heads/master', 'path': 'plugins/org.wso2.developerstudio.eclipse.gmf.esb.edit/src-gen/org/wso2/developerstudio/eclipse/gmf/esb/parts/impl/CloudConnectorPropertiesEditionPartImpl.java', 'mode': '33188', 'license': 'apache-2.0', 'language': [{'name': 'CSS', 'bytes': '41098'}, {'name': 'HTML', 'bytes': '731356'}, {'name': 'Java', 'bytes': '77332976'}, {'name': 'JavaScript', 'bytes': '475592'}, {'name': 'Shell', 'bytes': '7727'}]}
package org.onlab.netty; import static com.google.common.base.Preconditions.*; import java.util.Objects; import org.onlab.packet.IpAddress; import com.google.common.base.MoreObjects; /** * Representation of a TCP/UDP communication end point. */ public final class Endpoint { private final int port; private final IpAddress ip; public Endpoint(IpAddress host, int port) { this.ip = checkNotNull(host); this.port = port; } public IpAddress host() { return ip; } public int port() { return port; } @Override public String toString() { return MoreObjects.toStringHelper(getClass()) .add("ip", ip) .add("port", port) .toString(); } @Override public int hashCode() { return Objects.hash(ip, port); } @Override public boolean equals(Object obj) { if (this == obj) { return true; } if (obj == null) { return false; } if (getClass() != obj.getClass()) { return false; } Endpoint that = (Endpoint) obj; return Objects.equals(this.port, that.port) && Objects.equals(this.ip, that.ip); } }
{'content_hash': '8941e250eaa108aa37d5adc8541fde8f', 'timestamp': '', 'source': 'github', 'line_count': 61, 'max_line_length': 55, 'avg_line_length': 20.852459016393443, 'alnum_prop': 0.5573899371069182, 'repo_name': 'kuangrewawa/onos', 'id': 'ecbb08fa3f01427e21ebf424b2c1726fb5917e6b', 'size': '1881', 'binary': False, 'copies': '3', 'ref': 'refs/heads/master', 'path': 'utils/netty/src/main/java/org/onlab/netty/Endpoint.java', 'mode': '33188', 'license': 'apache-2.0', 'language': [{'name': 'CSS', 'bytes': '48335'}, {'name': 'HTML', 'bytes': '85370'}, {'name': 'Java', 'bytes': '6738735'}, {'name': 'JavaScript', 'bytes': '587794'}]}
<?php chdir(__DIR__); @require_once( '../../vendor/autoload.php' ); new picklesFramework2\pickles('./px-files/');
{'content_hash': '1ad3f78a131879dc404f3f6edd9c9b12', 'timestamp': '', 'source': 'github', 'line_count': 4, 'max_line_length': 45, 'avg_line_length': 29.5, 'alnum_prop': 0.6186440677966102, 'repo_name': 'pickles2/node-pickles2-module-editor', 'id': '7535d1fa300bdcc46e10cc2baf1aabcb8364c647', 'size': '118', 'binary': False, 'copies': '1', 'ref': 'refs/heads/master', 'path': 'tests/htdocs/.px_execute.php', 'mode': '33188', 'license': 'mit', 'language': [{'name': 'Assembly', 'bytes': '8'}, {'name': 'CSS', 'bytes': '19909'}, {'name': 'CoffeeScript', 'bytes': '63674'}, {'name': 'EJS', 'bytes': '10893'}, {'name': 'HTML', 'bytes': '273715'}, {'name': 'JavaScript', 'bytes': '209270'}, {'name': 'PHP', 'bytes': '63367'}, {'name': 'SCSS', 'bytes': '3951'}, {'name': 'Shell', 'bytes': '570'}]}
template <typename T> struct DefaultSingletonTraits; class ShortcutsBackend; namespace ios { class ChromeBrowserState; // Singleton that owns all ShortcutsBackends and associates them with // ios::ChromeBrowserState. class ShortcutsBackendFactory : public RefcountedBrowserStateKeyedServiceFactory { public: static scoped_refptr<ShortcutsBackend> GetForBrowserState( ios::ChromeBrowserState* browser_state); static scoped_refptr<ShortcutsBackend> GetForBrowserStateIfExists( ios::ChromeBrowserState* browser_state); static ShortcutsBackendFactory* GetInstance(); private: friend struct DefaultSingletonTraits<ShortcutsBackendFactory>; ShortcutsBackendFactory(); ~ShortcutsBackendFactory() override; // BrowserStateKeyedServiceFactory implementation. scoped_refptr<RefcountedKeyedService> BuildServiceInstanceFor( web::BrowserState* context) const override; bool ServiceIsNULLWhileTesting() const override; DISALLOW_COPY_AND_ASSIGN(ShortcutsBackendFactory); }; } // namespace ios #endif // IOS_CHROME_BROWSER_AUTOCOMPLETE_SHORTCUTS_BACKEND_FACTORY_H_
{'content_hash': '2e1fcf922d9e46303e51b6e82f61ae50', 'timestamp': '', 'source': 'github', 'line_count': 36, 'max_line_length': 71, 'avg_line_length': 30.694444444444443, 'alnum_prop': 0.8045248868778281, 'repo_name': 'vadimtk/chrome4sdp', 'id': '3fc072415fb00c8e17d528b765dae5d793e42b91', 'size': '1562', 'binary': False, 'copies': '2', 'ref': 'refs/heads/master', 'path': 'ios/chrome/browser/autocomplete/shortcuts_backend_factory.h', 'mode': '33188', 'license': 'bsd-3-clause', 'language': []}
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:tools="http://schemas.android.com/tools" android:layout_width="match_parent" android:layout_height="match_parent" android:paddingTop="@dimen/recycler_vertical_margin" android:paddingBottom="@dimen/recycler_vertical_margin" android:paddingLeft="@dimen/recycler_horizontal_margin" android:paddingRight="@dimen/recycler_horizontal_margin" tools:context="com.sjwoh.grabgas.order.SelectSupplierFragment"> <android.support.v7.widget.RecyclerView android:id="@+id/recyclerViewSuppliers" android:layout_width="match_parent" android:layout_height="match_parent"> </android.support.v7.widget.RecyclerView> </RelativeLayout>
{'content_hash': '4b634f6d9b8bc037b76f95596adcd1e9', 'timestamp': '', 'source': 'github', 'line_count': 18, 'max_line_length': 74, 'avg_line_length': 42.333333333333336, 'alnum_prop': 0.7454068241469817, 'repo_name': 'chooonho/GrabGas', 'id': 'f43b3b960371240ae8c894b8d09c0bd92c94e193', 'size': '762', 'binary': False, 'copies': '1', 'ref': 'refs/heads/master', 'path': 'app/src/main/res/layout/fragment_select_supplier.xml', 'mode': '33188', 'license': 'mit', 'language': [{'name': 'Java', 'bytes': '121479'}]}
package androidx.room.integration.testapp; import android.os.Bundle; import android.widget.Button; import androidx.appcompat.app.AppCompatActivity; import androidx.lifecycle.ViewModelProviders; import androidx.recyclerview.widget.RecyclerView; import io.reactivex.disposables.CompositeDisposable; /** * Sample {@code Flowable<PagedList>} activity which uses Room. */ public class RoomPagedListRxActivity extends AppCompatActivity { private PagedListCustomerAdapter mAdapter; private final CompositeDisposable mDisposable = new CompositeDisposable(); private CustomerViewModel mViewModel; @Override protected void onCreate(final Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_recycler_view); mViewModel = ViewModelProviders.of(this) .get(CustomerViewModel.class); RecyclerView recyclerView = findViewById(R.id.recyclerview); mAdapter = new PagedListCustomerAdapter(); recyclerView.setAdapter(mAdapter); final Button addButton = findViewById(R.id.addButton); addButton.setOnClickListener(v -> mViewModel.insertCustomer()); final Button clearButton = findViewById(R.id.clearButton); clearButton.setOnClickListener(v -> mViewModel.clearAllCustomers()); } @Override protected void onStart() { super.onStart(); mDisposable.add(mViewModel.getPagedListFlowable() .subscribe(list -> mAdapter.submitList(list))); } @Override protected void onStop() { super.onStop(); mDisposable.clear(); } }
{'content_hash': '1932eb7f30b19b14a158caa275bcbfae', 'timestamp': '', 'source': 'github', 'line_count': 55, 'max_line_length': 78, 'avg_line_length': 29.854545454545455, 'alnum_prop': 0.7186358099878197, 'repo_name': 'aosp-mirror/platform_frameworks_support', 'id': '16d24a5dc3fcf08594294ce5750e587145d4b8f7', 'size': '2257', 'binary': False, 'copies': '1', 'ref': 'refs/heads/master', 'path': 'room/integration-tests/testapp/src/main/java/androidx/room/integration/testapp/RoomPagedListRxActivity.java', 'mode': '33188', 'license': 'apache-2.0', 'language': [{'name': 'ANTLR', 'bytes': '20090'}, {'name': 'HTML', 'bytes': '514'}, {'name': 'IDL', 'bytes': '308'}, {'name': 'Java', 'bytes': '30647232'}, {'name': 'Kotlin', 'bytes': '2665731'}, {'name': 'Python', 'bytes': '43821'}, {'name': 'Shell', 'bytes': '18933'}]}
package com.theisenp.harbor.lcm; import lcm.lcm.LCM; import com.theisenp.harbor.Peer; import com.theisenp.harbor.lcmtypes.PeerMessage; import com.theisenp.harbor.utils.LcmConstants; import com.theisenp.harbor.utils.PeerUtils; /** * A {@link Runnable} that publishes a {@link PeerMessage} * * @author patrick.theisen */ public class Publish implements Runnable { private final LCM lcm; private final PeerMessage message; /** * @param lcm * @param peer */ public Publish(LCM lcm, Peer peer) { this.lcm = lcm; this.message = PeerUtils.toMessage(peer); } @Override public void run() { lcm.publish(LcmConstants.PEER_CHANNEL, message); } }
{'content_hash': '6ed3d97281b26455bc34804b8affa6bb', 'timestamp': '', 'source': 'github', 'line_count': 32, 'max_line_length': 58, 'avg_line_length': 20.75, 'alnum_prop': 0.7259036144578314, 'repo_name': 'theisenp/harbor', 'id': '9e51caeefcdffbfe9d5c269940bb8ea18e2858e9', 'size': '664', 'binary': False, 'copies': '1', 'ref': 'refs/heads/master', 'path': 'src/main/java/com/theisenp/harbor/lcm/Publish.java', 'mode': '33188', 'license': 'apache-2.0', 'language': [{'name': 'Java', 'bytes': '81330'}]}
//----------------------------------------------------------------------- // <copyright file="ThrottlerTransportAdapterSpec.cs" company="Akka.NET Project"> // Copyright (C) 2009-2015 Typesafe Inc. <http://www.typesafe.com> // Copyright (C) 2013-2015 Akka.NET project <https://github.com/akkadotnet/akka.net> // </copyright> //----------------------------------------------------------------------- using System; using System.Text.RegularExpressions; using Akka.Actor; using Akka.Configuration; using Akka.Remote.Transport; using Akka.TestKit; using Akka.TestKit.Internal; using Akka.TestKit.Internal.StringMatcher; using Akka.TestKit.TestEvent; using Akka.Util.Internal; using Xunit; namespace Akka.Remote.Tests.Transport { public class ThrottlerTransportAdapterSpec : AkkaSpec { #region Setup / Config public static Config ThrottlerTransportAdapterSpecConfig { get { return ConfigurationFactory.ParseString(@" akka { akka.test.single-expect-default = 6s #to help overcome issues with gated connections actor.provider = ""Akka.Remote.RemoteActorRefProvider, Akka.Remote"" remote.helios.tcp.hostname = ""localhost"" remote.log-remote-lifecycle-events = off remote.retry-gate-closed-for = 1 s remote.transport-failure-detector.heartbeat-interval = 1 s remote.transport-failure-detector.acceptable-heartbeat-pause = 3 s remote.helios.tcp.applied-adapters = [""trttl""] remote.helios.tcp.port = 0 }"); } } private const int PingPacketSize = 350; private const int MessageCount = 15; private const int BytesPerSecond = 700; private static readonly long TotalTime = (MessageCount * PingPacketSize) / BytesPerSecond; public class ThrottlingTester : ReceiveActor { private IActorRef _remoteRef; private IActorRef _controller; private int _received = 0; private int _messageCount = MessageCount; private long _startTime = 0L; public ThrottlingTester(IActorRef remoteRef, IActorRef controller) { _remoteRef = remoteRef; _controller = controller; Receive<string>(s => s.Equals("start"), s => { Self.Tell("sendNext"); _startTime = SystemNanoTime.GetNanos(); }); Receive<string>(s => s.Equals("sendNext") && _messageCount > 0, s => { _remoteRef.Tell("ping"); Self.Tell("sendNext"); _messageCount--; }); Receive<string>(s => s.Equals("pong"), s => { _received++; if (_received >= MessageCount) _controller.Tell(SystemNanoTime.GetNanos() - _startTime); }); } public sealed class Lost : IEquatable<Lost> { public Lost(string msg) { Msg = msg; } public string Msg { get; private set; } public bool Equals(Lost other) { if (ReferenceEquals(null, other)) return false; if (ReferenceEquals(this, other)) return true; return string.Equals(Msg, other.Msg); } public override bool Equals(object obj) { if (ReferenceEquals(null, obj)) return false; if (ReferenceEquals(this, obj)) return true; return obj is Lost && Equals((Lost) obj); } public override int GetHashCode() { return (Msg != null ? Msg.GetHashCode() : 0); } } } public class Echo : UntypedActor { protected override void OnReceive(object message) { var str = message as string; if(!string.IsNullOrEmpty(str) && string.Equals(str, "ping")) Sender.Tell("pong"); else Sender.Tell(message); } } private ActorSystem systemB; private IActorRef remote; private RootActorPath RootB { get { return new RootActorPath(systemB.AsInstanceOf<ExtendedActorSystem>().Provider.DefaultAddress); } } private IActorRef Here { get { Sys.ActorSelection(RootB / "user" / "echo").Tell(new Identify(null), TestActor); return ExpectMsg<ActorIdentity>(TimeSpan.FromSeconds(3)).Subject; } } private bool Throttle(ThrottleTransportAdapter.Direction direction, ThrottleMode mode) { var rootBAddress = new Address("akka", "systemB", "localhost", RootB.Address.Port.Value); var transport = Sys.AsInstanceOf<ExtendedActorSystem>().Provider.AsInstanceOf<RemoteActorRefProvider>().Transport; var task = transport.ManagementCommand(new SetThrottle(rootBAddress, direction, mode)); task.Wait(TimeSpan.FromSeconds(3)); return task.Result; } private bool Disassociate() { var rootBAddress = new Address("akka", "systemB", "localhost", RootB.Address.Port.Value); var transport = Sys.AsInstanceOf<ExtendedActorSystem>().Provider.AsInstanceOf<RemoteActorRefProvider>().Transport; var task = transport.ManagementCommand(new ForceDisassociate(rootBAddress)); task.Wait(TimeSpan.FromSeconds(3)); return task.Result; } #endregion public ThrottlerTransportAdapterSpec() : base(ThrottlerTransportAdapterSpecConfig) { systemB = ActorSystem.Create("systemB", Sys.Settings.Config); remote = systemB.ActorOf(Props.Create<Echo>(), "echo"); } #region Tests [Fact] public void ThrottlerTransportAdapter_must_maintain_average_message_rate() { Throttle(ThrottleTransportAdapter.Direction.Send, new TokenBucket(PingPacketSize*4, BytesPerSecond, 0, 0)).ShouldBeTrue(); var tester = Sys.ActorOf(Props.Create(() => new ThrottlingTester(Here, TestActor))); tester.Tell("start"); var time = TimeSpan.FromTicks(ExpectMsg<long>(TimeSpan.FromSeconds(TotalTime + 12))).TotalSeconds; Log.Warning("Total time of transmission: {0}", time); Assert.True(time > TotalTime - 12); Throttle(ThrottleTransportAdapter.Direction.Send, Unthrottled.Instance).ShouldBeTrue(); } [Fact] public void ThrottlerTransportAdapter_must_survive_blackholing() { Here.Tell(new ThrottlingTester.Lost("BlackHole 1")); ExpectMsg(new ThrottlingTester.Lost("BlackHole 1")); var here = Here; //TODO: muteDeadLetters (typeof(Lost)) for both actor systems Throttle(ThrottleTransportAdapter.Direction.Both, Blackhole.Instance).ShouldBeTrue(); here.Tell(new ThrottlingTester.Lost("BlackHole 2")); ExpectNoMsg(TimeSpan.FromSeconds(1)); Disassociate().ShouldBeTrue(); ExpectNoMsg(TimeSpan.FromSeconds(3)); Throttle(ThrottleTransportAdapter.Direction.Both, Unthrottled.Instance).ShouldBeTrue(); // after we remove the Blackhole we can't be certain of the state // of the connection, repeat until success here.Tell(new ThrottlingTester.Lost("BlackHole 3")); AwaitCondition(() => { var received = ReceiveOne(TimeSpan.Zero); if (received != null && received.Equals(new ThrottlingTester.Lost("BlackHole 3"))) return true; here.Tell(new ThrottlingTester.Lost("BlackHole 3")); return false; }, TimeSpan.FromSeconds(15)); here.Tell("Cleanup"); FishForMessage(o => o.Equals("Cleanup"), TimeSpan.FromSeconds(5)); } #endregion #region Cleanup protected override void BeforeTermination() { EventFilter.Warning(start: "received dead letter").Mute(); EventFilter.Warning(new Regex("received dead letter.*(InboundPayload|Disassociate)")).Mute(); systemB.EventStream.Publish(new Mute(new WarningFilter(new RegexMatcher(new Regex("received dead letter.*(InboundPayload|Disassociate)"))), new ErrorFilter(typeof(EndpointException)), new ErrorFilter(new StartsWithString("AssociationError")))); base.BeforeTermination(); } protected override void AfterTermination() { Shutdown(systemB); base.AfterTermination(); } #endregion } }
{'content_hash': '73b5a3082ff857db8c59a0bef3151436', 'timestamp': '', 'source': 'github', 'line_count': 247, 'max_line_length': 152, 'avg_line_length': 37.60323886639676, 'alnum_prop': 0.5582472006890612, 'repo_name': 'ashic/akka.net', 'id': '7eea6c25aff3dee1d6d99b89dcc82b63f34a4199', 'size': '9290', 'binary': False, 'copies': '5', 'ref': 'refs/heads/dev', 'path': 'src/core/Akka.Remote.Tests/Transport/ThrottlerTransportAdapterSpec.cs', 'mode': '33188', 'license': 'apache-2.0', 'language': [{'name': 'Batchfile', 'bytes': '766'}, {'name': 'C#', 'bytes': '5223897'}, {'name': 'F#', 'bytes': '102364'}, {'name': 'Protocol Buffer', 'bytes': '62996'}, {'name': 'Shell', 'bytes': '1023'}]}
require File.expand_path(File.dirname(__FILE__) + '/../../spec_helper') describe OOPM::Instructions::Rational do describe '.make_bytecode' do before :all do @cases = [ 25,577,-4122,8**50,1 ] end it "should produce bytecode that can be read to get back the original value" do @cases.each do |numerator| @cases.each do |denominator| rational = Rational(numerator, denominator) bytecode = Instructions::Rational.make_into_bytecode rational stream = Streams::ArrayStream.new bytecode rational2 = Instructions::Rational::make_from_bytestream(stream) rational2.should eq rational end end end end end
{'content_hash': '4d7ac6d30bf5bb37556d4b650e68b36a', 'timestamp': '', 'source': 'github', 'line_count': 21, 'max_line_length': 83, 'avg_line_length': 33.61904761904762, 'alnum_prop': 0.6444759206798867, 'repo_name': 'jamestunnell/oopm', 'id': 'eb4fd2334444f04345058f4a2b419d4106f5bcdd', 'size': '706', 'binary': False, 'copies': '1', 'ref': 'refs/heads/master', 'path': 'spec/instructions/numbers/rational_spec.rb', 'mode': '33188', 'license': 'mit', 'language': [{'name': 'Ruby', 'bytes': '139131'}]}